You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by hp <ad...@homepage.kgbinternet.com> on 2012/01/13 20:37:46 UTC

"No plugin found for prefix 'war' in the current project ..."

Why this error occurs? I commented out the packaging type war and that
doesn't help

No plugin found for prefix 'war' in the current project and in the plugin
groups [] available from the repositories [local (C:\Documents and Settings
	 \mydirectory\.m2\repository), nexus
(http://localhost:8081/nexus/content/groups/public)]

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

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


Re: "No plugin found for prefix 'war' in the current project ..."

Posted by hp <ad...@homepage.kgbinternet.com>.
Thanks Barrie. I will try the mailing list then.

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

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


Re: "No plugin found for prefix 'war' in the current project ..."

Posted by Barrie Treloar <ba...@gmail.com>.
On Sat, Jan 14, 2012 at 5:43 PM, hp <ad...@homepage.kgbinternet.com> wrote:
> 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


Are you using m2e?

I ask because opening a pom.xml file in Eclipse has nothing to do with Maven.
And you output includes
> Maven home: C:\myapp\vsm\EMBEDDED

If yes, you might want to try the m2e mailing list.

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


Re: "No plugin found for prefix 'war' in the current project ..."

Posted by hp <ad...@homepage.kgbinternet.com>.
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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: "No plugin found for prefix 'war' in the current project ..."

Posted by Wayne Fay <wa...@gmail.com>.
You missed these lines:
> Post the complete command line used to run maven.
>
> Post the complete error message.

Wayne

On Friday, January 13, 2012, hp <ad...@homepage.kgbinternet.com> wrote:
> Thanks both.
>
> Here is my  http://pastebin.com/k7LiUs9k pom file  and the
> http://pastebin.com/HZ9gh6wi settings.xml
>
> The error messages are shown when I open my pom file in Eclipse.
>
> --
> View this message in context:
http://maven.40175.n5.nabble.com/No-plugin-found-for-prefix-war-in-the-current-project-tp5143517p5144123.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: "No plugin found for prefix 'war' in the current project ..."

Posted by hp <ad...@homepage.kgbinternet.com>.
Thanks both.

Here is my  http://pastebin.com/k7LiUs9k pom file  and the 
http://pastebin.com/HZ9gh6wi settings.xml 

The error messages are shown when I open my pom file in Eclipse.

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

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


Re: "No plugin found for prefix 'war' in the current project ..."

Posted by Wayne Fay <wa...@gmail.com>.
Ideally you'd post all this at pastebin.com or a similar place and not
Nabble because Nabble is terrible about XML and this mailing list
strips attachments.

Please post your file(s) at pastebin.com and send link(s) to the list.

Wayne

On Fri, Jan 13, 2012 at 4:02 PM, Ansgar Konermann
<an...@googlemail.com> wrote:
> Post your POM.
>
> Post your complete settings.xml (replace sensitive data like passwords with
> ***).
>
> Post the complete command line used to run maven.
>
> Post the complete error message.
>  Am 13.01.2012 20:38 schrieb "hp" <ad...@homepage.kgbinternet.com>:
>
>> Why this error occurs? I commented out the packaging type war and that
>> doesn't help
>>
>> No plugin found for prefix 'war' in the current project and in the plugin
>> groups [] available from the repositories [local (C:\Documents and Settings
>>         \mydirectory\.m2\repository), nexus
>> (http://localhost:8081/nexus/content/groups/public)]
>>
>> --
>> View this message in context:
>> http://maven.40175.n5.nabble.com/No-plugin-found-for-prefix-war-in-the-current-project-tp5143517p5143517.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>

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


Re: "No plugin found for prefix 'war' in the current project ..."

Posted by Ansgar Konermann <an...@googlemail.com>.
Post your POM.

Post your complete settings.xml (replace sensitive data like passwords with
***).

Post the complete command line used to run maven.

Post the complete error message.
 Am 13.01.2012 20:38 schrieb "hp" <ad...@homepage.kgbinternet.com>:

> Why this error occurs? I commented out the packaging type war and that
> doesn't help
>
> No plugin found for prefix 'war' in the current project and in the plugin
> groups [] available from the repositories [local (C:\Documents and Settings
>         \mydirectory\.m2\repository), nexus
> (http://localhost:8081/nexus/content/groups/public)]
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/No-plugin-found-for-prefix-war-in-the-current-project-tp5143517p5143517.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>