You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Allen, Daniel" <Da...@kbcfp.com> on 2008/02/27 20:29:13 UTC

Started getting exception when packaging war

Hi, all. 

I'm using the war:exploded goal, it was working before, and then I
switched projects for a couple weeks, came back, and found that the same
POM results in this exception now. Does anyone know if there was a
non-backwards compatible update to the WAR plugin or to Maven itself
that might have gotten downloaded automatically while I wasn't looking?

Thanks,
~Dan Allen

[INFO] Processing war project
[INFO] Copy webapp
webResources[H:\workspace\insurancederiv-m2\/src/main/webapp/
WEB-INF] to[H:\workspace\insurancederiv-m2\target\insurancederiv]
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO]
org.apache.maven.shared.filtering.MavenFileFilter.getDefaultFilterWrappe
r
s(Lorg/apache/maven/project/MavenProject;Ljava/util/List;Z)Ljava/util/Li
st;
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NoSuchMethodError:
org.apache.maven.shared.filtering.MavenFileFilter.getDefaultFilterWrappe
rs(Lorg/apache/maven/project/MavenProject;Ljava/util/List;Z)Ljava/util/L
ist;
        at
org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask.copyFilte
redFile(AbstractWarPackagingTask.java:206)
        at
org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.copyResour
ces(WarProjectPackagingTask.java:278)
        at
org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.handleWebR
esources(WarProjectPackagingTask.java:124)
        at
org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.performPac
kaging(WarProjectPackagingTask.java:84)
        at
org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo.
java:378)
        at
org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(Abstract
WarMojo.java:331)
        at
org.apache.maven.plugin.war.WarExplodedMojo.execute(WarExplodedMojo.java
:40)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:447)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:539)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:480)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:459)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:311)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:143)
        at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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)
[INFO]
------------------------------------------------------------------------

-- 
This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as "KBC FP"). 

This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided "as is", without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns.


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


RE: Started getting exception when packaging war

Posted by "Allen, Daniel" <Da...@kbcfp.com>.
It's building again--thanks, Olivier!

I'll add a version lock to the plugin delcaration too; that's a good
idea.
~Dan Allen


-----Original Message-----
From: oliver.lamy@gmail.com [mailto:oliver.lamy@gmail.com] On Behalf Of
Olivier Lamy
Sent: Wednesday, February 27, 2008 3:43 PM
To: Maven Users List
Subject: Re: Started getting exception when packaging war

Hi,
A method has been changed but everything has been deployed on 25Feb.

Can you cleanup a part of your local repo :
- rm -rf ~/.m2/repository/org/apache/maven/plugins/maven-war-plugin
- rm -rf ~/.m2/repository/org/apache/maven/shared/maven-filtering/

Then try again.

But unless you reallly need it the best is to not declare the apache
snapshot in your settings and to lock the plugin versions in your pom.

Thanks,
--
Olivier

-- 
This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as "KBC FP"). 

This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided "as is", without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns.


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


Re: Started getting exception when packaging war

Posted by Olivier Lamy <ol...@apache.org>.
Hi,
A method has been changed but everything has been deployed on 25Feb.

Can you cleanup a part of your local repo :
- rm -rf ~/.m2/repository/org/apache/maven/plugins/maven-war-plugin
- rm -rf ~/.m2/repository/org/apache/maven/shared/maven-filtering/

Then try again.

But unless you reallly need it the best is to not declare the apache
snapshot in your settings and to lock the plugin versions in your pom.

Thanks,
--
Olivier




2008/2/27, Allen, Daniel <Da...@kbcfp.com>:
> Still getting the same result, but adding the -U didn't update the WAR plugin (the only thing in the output that was listed as downloaded was a new version of the Surefire plugin). I know using --version gives the Maven version, but how can I check what version of a particular plugin I'm using?
>
>  Also, out of curiosity, do you have any idea why an old dependency would leave to a NoSuchMethodException? That seems peculiar.
>
>  ~DVA
>
>
>  -----Original Message-----
>  From: Rémy Sanlaville [mailto:remy.sanlaville@gmail.com]
>  Sent: Wednesday, February 27, 2008 2:45 PM
>  To: Maven Users List
>  Subject: Re: Started getting exception when packaging war
>
>  Hi Daniel,
>
>  Just try to update your repository :
>  mvn package -U
>
>  or indicate the last version (2.1-alpha-1) of maven war plugin in you pom.
>
>  We also had this error and it seems that it comes from an old version of a
>  transitive dependency of the maven-war-plugin.
>
>  HTH,
>
>  Rémy
>
>
> --
>  This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as "KBC FP").
>
>  This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided "as is", without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns.
>
>
>  ---------------------------------------------------------------------
>  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: Started getting exception when packaging war

Posted by "Allen, Daniel" <Da...@kbcfp.com>.
Still getting the same result, but adding the -U didn't update the WAR plugin (the only thing in the output that was listed as downloaded was a new version of the Surefire plugin). I know using --version gives the Maven version, but how can I check what version of a particular plugin I'm using?

Also, out of curiosity, do you have any idea why an old dependency would leave to a NoSuchMethodException? That seems peculiar.

~DVA

-----Original Message-----
From: Rémy Sanlaville [mailto:remy.sanlaville@gmail.com] 
Sent: Wednesday, February 27, 2008 2:45 PM
To: Maven Users List
Subject: Re: Started getting exception when packaging war

Hi Daniel,

Just try to update your repository :
mvn package -U

or indicate the last version (2.1-alpha-1) of maven war plugin in you pom.

We also had this error and it seems that it comes from an old version of a
transitive dependency of the maven-war-plugin.

HTH,

Rémy

-- 
This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as "KBC FP"). 

This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided "as is", without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns.


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


Re: Started getting exception when packaging war

Posted by Rémy Sanlaville <re...@gmail.com>.
Hi Daniel,

Just try to update your repository :
mvn package -U

or indicate the last version (2.1-alpha-1) of maven war plugin in you pom.

We also had this error and it seems that it comes from an old version of a
transitive dependency of the maven-war-plugin.

HTH,

Rémy