Thomas Gaudin wrote:
Hi,
I had similar problem and to have the plugin installed I had to modify
the pom.xml :
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>mojo-sandbox</artifactId>
<groupId>org.codehaus.mojo</groupId>
<version>1</version>
</parent>
....
Thanks for the feed back. Unfortunatly that does not fix the problem.
I changed <version>2-SNAPSHOT</version> to <version>1</version>
I also tried various version of 1 1.0 1-SNAPSHOT etc.
Hmm Im even more confused, now, having just checked out the previous
revisions of pom.xml (rev 1275 and 1168) I get the same error.
Perhaps the problem is outside of my environment?
Peter.
and run "mvn install" from the root directory but not from src
Hope it helps,
Thomas
Peter Henderson a écrit :
Hi list.
Im trying to build MyFaces using Maven, by following the instructions
at http://wiki.apache.org/myfaces/Building_With_Maven.
The trouble is I cant even get the XSLT plugin to build. (Step 0)
I check out the src.
svn co
https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/xslt-maven-plugin
A xslt-maven-plugin/src
A xslt-maven-plugin/src/main
A xslt-maven-plugin/src/main/java
A xslt-maven-plugin/src/main/java/org
A xslt-maven-plugin/src/main/java/org/codehaus
A xslt-maven-plugin/src/main/java/org/codehaus/mojo
A xslt-maven-plugin/src/main/java/org/codehaus/mojo/xslt
A
xslt-maven-plugin/src/main/java/org/codehaus/mojo/xslt/XsltMojo.java
A xslt-maven-plugin/pom.xml
Checked out revision 1356.
OK no problem so far.
Then I run
mvn install -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] artifact org.apache.maven.plugins:maven-resources-plugin:
checking for updates from central
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.pom
888b downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0/maven-plugin-parent-2.0.pom
6K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.jar
10K downloaded
[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin:
checking for updates from central
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0/maven-compiler-plugin-2.0.pom
1K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0/maven-compiler-plugin-2.0.jar
13K downloaded
[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin:
checking for updates from central
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.1.2/maven-surefire-plugin-2.1.2.pom
2K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.1.2/maven-surefire-plugin-2.1.2.jar
9K downloaded
[INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking
for updates from central
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.0/maven-jar-plugin-2.0.pom
737b downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.0/maven-jar-plugin-2.0.jar
7K downloaded
[INFO] artifact org.apache.maven.plugins:maven-install-plugin:
checking for updates from central
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.pom
981b downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.jar
8K downloaded
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Cannot execute mojo: resources. It requires a project with an
existing pom.xml, but the build is not using one.
[INFO]
----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Cannot
execute mojo: resources. It requires a project with an existing
pom.xml, but the build is not using one.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot
execute mojo: resources. It requires a project with an existing
pom.xml, but the build is not using one.
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:359)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
... 16 more
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 2 minutes 44 seconds
[INFO] Finished at: Thu Jan 19 14:37:12 GMT 2006
[INFO] Final Memory: 2M/4M
[INFO]
----------------------------------------------------------------------------
Whats wrong?
Cheers
Peter Henderson.
---------------------------------------------------------------------------------------
Wanadoo vous informe que cet e-mail a ete controle par l'anti-virus
mail. Aucun virus connu a ce jour par nos services n'a ete detecte.