On May 29, 2012, at 9:53 AM, Jeremie BOUSQUET wrote: > I think it has more to do with the repository manager not knowing the > version of archetype plugin to retrieve, or something like that.
It uses the latest version so I don't think it's a version issue. However, maybe the FQN will help indeed. > You should retry your command-line using full plugin specification : > > mvn org.apache.maven.plugins:maven-archetype-plugin:2.2:generate > -D.......(your options) > > You should only have to do this once, then using archetype:generate > should be enough. Let us know Paul. If it works it would be nice to add the information to http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents Thanks -Vincent > Hope this helps, > Jeremie > > 2012/5/28 Paul Moore <p.f.mo...@gmail.com>: >> On 28 May 2012 17:50, Sergiu Dumitriu <ser...@xwiki.com> wrote: >>> On 05/28/2012 11:39 AM, Paul Moore wrote: >>>> >>>> When I try to use Maven as described in the tutorial, I get an error: >>>> >>>> PS D:\Data\Java\x> mvn archetype:generate >>>> -DarchetypeArtifactId=xwiki-commons-component-archetype >>>> -DarchetypeGroupId=org.xwiki.commons -DarchetypeVersion=3.3 >>>> [INFO] Scanning for projects... >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [INFO] BUILD FAILURE >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [INFO] Total time: 0.130s >>>> [INFO] Finished at: Mon May 28 16:35:02 BST 2012 >>>> [INFO] Final Memory: 2M/15M >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [ERROR] The goal you specified requires a project to execute but there >>>> is no POM in this directory (D:\Data\Java\x). Please verify you >>>> invoked Maven from the correct directory. -> [Help 1] >>> >>> >>> That is not the right behavior of Maven... archetype:generate doesn't >>> expect a pom to exist already, since the goal of this command is to generate >>> a pom. >>> >>> What version of Maven are you using? >>> >>> mvn -version >>> >>> should print something like: >>> >>> Apache Maven 3.0.4 >> >> PS D:\Data> mvn -version >> Apache Maven 3.0.4 (r1232337; 2012-01-17 08:44:56+0000) >> Maven home: D:\Java\apache-maven-3.0.4\bin\.. >> Java version: 1.7.0_04, vendor: Oracle Corporation >> Java home: C:\Program Files\Java\jdk1.7.0_04\jre >> Default locale: en_GB, platform encoding: Cp1252 >> OS name: "windows 7", version: "6.1", arch: "x86", family: "windows" >> >>>> [ERROR] >>>> [ERROR] To see the full stack trace of the errors, re-run Maven with >>>> the -e switch. >>>> [ERROR] Re-run Maven using the -X switch to enable full debug logging. >>>> [ERROR] >>>> [ERROR] For more information about the errors and possible solutions, >>>> please read the following articles: >>>> [ERROR] [Help 1] >>>> http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException >>>> >>>> I'm a little concerned about the "-DarchetypeVersion=3.3" flag. I'm >>>> using XWiki 4.0. Is this page out of date? >>> >>> >>> Indeed, you should use the most recent (stable) version available, so 4.0 >> >> Same result :-( >> >> Paul. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users