博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
How to setup Wicket Examples in Eclipse
阅读量:7079 次
发布时间:2019-06-28

本文共 1904 字,大约阅读时间需要 6 分钟。

Wicket examples is a good place to learn Apache Wicket by examples, and a must reference site for new or experienced Wicket’s developers. In this Wicket examples site, it almost contains all of the usage of the common wicket’s components.

In this guide, we show you how to setup the above Apache Wicket example site in your local development environment (Eclipse IDE).

Tools used :

  • Apache Wicket 1.4.17
  • Eclipse 3.6
  • Maven 3

1. Download Source Code

Download Apache Wicket 1.4.17 from . The Wicket example code is packaged inside the “src” folder.

2. Review Directory

Extracts the downloaded Wicket zip file, review the directory structure. The folder “wicket-examples“, which inside the “$WICKET_PATH/src” folder is what you need.

wicket example folder structure

3. Maven Build

Navigate to the “wicket-examples” folder , compile and build with Maven, and make it support Eclipse WTP features.

$WICKET_EXAMPLE_FILE_PATH> mvn eclipse:eclipse -Dwtpversion=2.0

P.S Maven will configure the project and download the project dependencies automatically.

4. Eclipse Project + WTP

Import the project into Eclipse IDE (you should know how :)).

However, in Wicket 1.4.17, the Maven “-Dwtpversion=2.0” option seem not working in my Eclipse 3.6, because i noticed Eclipse facets files and deployment dependency libraries are not configure properly. If you have the same problem, do following steps :

  1. Right click on project –> Properties –> “Project Facets“. Select “Dynamic Web Module” and “Java“.

    wicket example eclipse facets

  2. Same windows –> Select “Deployment Assembly“, make sure the libraries and root deploy path “/” are configured properly. Just add it if it’s missing.

    wicket example eclipse depoyment dependency

5. Deploy + Test

In Eclipse IDE, create a Tomcat instance, assigned your configured “wicket-example” project to the new Tomcat instance and start it.

Visit this URL :

wicket example cloned site

Done. The entire wicket examples site is cloned into your local development environment.

转载于:https://www.cnblogs.com/ghgyj/p/4765406.html

你可能感兴趣的文章
笔记本系统恢复连载之七:华硕笔记本系统恢复
查看>>
流量×××与流量监控的区别
查看>>
判断对象属性中是否有空值
查看>>
语境驱动测试7原则
查看>>
解读cdsn 600万 用户信息泄露事件,打开CSDN 600万用户数据之迷
查看>>
Nagios监控搭建与配置详细步骤
查看>>
Tomcat内存设置
查看>>
20经典英语谚语
查看>>
设计模式概述
查看>>
java axis webservice 开发实例
查看>>
OOA/OOP/OOD
查看>>
css-reset
查看>>
Maven镜像
查看>>
响应式Web设计(二):响应式Web设计的概念
查看>>
AngularJS' Internals In Depth(深入理解 AngularJS)
查看>>
Keras实现的文本情感分类例子
查看>>
StringBuilder和StringBuffer有什么区别?
查看>>
定制MyBatis Generator输出内容
查看>>
JAVA流之管道流PipedInputStream,PipedOutputStream
查看>>
golang gopath的新用法
查看>>