As I already said, the error message shows up on my Eclipse when I open the
pom.xml file without running any commands. The whole error stack is the
following:

Multiple annotations found at this line:
        - Failure to find org.apache.maven.plugins:maven-war-plugin:pom:2.3.2 in
http://localhost:8081/nexus/content/groups/public was cached in the 
         local repository, resolution will not be reattempted until the update
interval of nexus has elapsed or updates are forced
        - No plugin found for prefix 'war' in the current project and in the 
plugin
groups [] available from the repositories [local (C:\Documents and Settings
         \mine\.m2\repository), nexus
(http://localhost:8081/nexus/content/groups/public)]

When I run a build with the stacktraces on, the output messages are the
followings:

Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
Maven home: C:\myapp\vsm\EMBEDDED
Java version: 1.6.0_29, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.6.0_29\jre
Default locale: en_CA, platform encoding: UTF-8
OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from EMBEDDED\conf\settings.xml
[DEBUG] Reading user settings from C:\Documents and
Settings\mine\.m2\settings.xml
[DEBUG] Using local repository at C:\Documents and
Settings\mine\.m2\repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for
C:\Documents and Settings\mine\.m2\repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project com.abc:com.abc.vsm:war:1.0.0: (none)
[DEBUG] Looking up lifecyle mappings for packaging war from
ClassRealm[plexus.core, parent: null]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 0.343s
[INFO] Finished at: Fri Jan 13 22:54:52 PST 2012
[INFO] Final Memory: 2M/15M
[INFO]
------------------------------------------------------------------------
[ERROR] No goals have been specified for this build. You must specify a
valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or
<plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available
lifecycle phases are: validate, initialize, generate-sources,
process-sources, generate-resources, process-resources, compile,
process-classes, generate-test-sources, process-test-sources,
generate-test-resources, process-test-resources, test-compile,
process-test-classes, test, prepare-package, package, pre-integration-test,
integration-test, post-integration-test, verify, install, deploy, pre-site,
site, post-site, site-deploy, pre-clean, clean, post-clean. -> [Help 1]
org.apache.maven.lifecycle.NoGoalSpecifiedException: No goals have been
specified for this build. You must specify a valid lifecycle phase or a goal
in the format <plugin-prefix>:<goal> or
<plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available
lifecycle phases are: validate, initialize, generate-sources,
process-sources, generate-resources, process-resources, compile,
process-classes, generate-test-sources, process-test-sources,
generate-test-resources, process-test-resources, test-compile,
process-test-classes, test, prepare-package, package, pre-integration-test,
integration-test, post-integration-test, verify, install, deploy, pre-site,
site, post-site, site-deploy, pre-clean, clean, post-clean.
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:104)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        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:597)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[ERROR] 
[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/NoGoalSpecifiedException


I shall point out that the version of pom file worked fine before. Those
problems occur after an Eclipse upgrading as well as Nexus upgrading. I had
changed the dependencies' versions to reflect the most current ones.

--
View this message in context: 
http://maven.40175.n5.nabble.com/No-plugin-found-for-prefix-war-in-the-current-project-tp5143517p5144535.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to