开发者

Creating Wicket Project Using Maven

I try to create a wicket project with:

mvn archetype:create 
-DarchetypeGroupId=org.apache.wicket 
-DarchetypeArtifactId=wicket-archetype-quickstart 
-DarchetypeVersion=1.5-M2.1 
-DgroupId=com.mycompany 
-DartifactId=myproject

The statement was created with the tool on http://wicket.apache.org/start/quickstart.html

If i execute it I get:

The META-INF/maven/archetype.xml descriptor cannot be found

whats wrong. I am a Maven开发者_如何学运维 novice

Every help appreciated

Marcel


Update: It seems that the Wicket archetype is using the "new" archetype descriptor (i.e. post Archetype 1.0.x). So use the generate goal instead of create:

$ mvn archetype:generate \
      -DarchetypeArtifactId=wicket-archetype-quickstart \
      -DarchetypeGroupId=org.apache.wicket \
      -DarchetypeVersion=1.5-M2.1 \
      -DgroupId=com.mycompany \
      -DartifactId=myproject \
      -Dversion=1.0-SNAPSHOT \
      -DinteractiveMode=false
[INFO] Scanning for projects...

There seems to be a problem with the archetype.xml of the version 1.5-M2.1 (and the current SNAPSHOT version) of the wicket-archetype-quickstart. I suggest using the previous version and upgrading the version of the wicket artifacts in the generated project:

mvn archetype:create \
-DarchetypeGroupId=org.apache.wicket \
-DarchetypeArtifactId=wicket-archetype-quickstart \
-DarchetypeVersion=1.4.11 \
-DgroupId=com.mycompany \
-DartifactId=myproject
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜