You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Vitaliy Geraymovych <vi...@gmail.com> on 2005/08/19 16:52:08 UTC

m[1] Exception on war:deploy/war:install

Hi All,

I am getting this exception while running war:deploy goal (it also
happens on war:install)
I can deploy and install jars without any problem.

Maven 1.1-b1
war-plugin 1.6.1
artifact-plugin 1.6


war:install:
    [echo] Installing...
Uploading to ******-web-1.0-SNAPSHOT.war:
.................... (11628K)

BUILD FAILED
java.lang.NoSuchMethodError: org.apache.maven.project.Dependency.setProperties(L
java/util/List;)V
        at org.apache.maven.artifact.PomRewriter.getRewrittenModel(PomRewriter.j
ava:124)
        at org.apache.maven.artifact.PomRewriter.getRewrittenPom(PomRewriter.jav
a:57)
        at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.handleInst
all(DefaultArtifactDeployer.java:174)
        at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.install(De
faultArtifactDeployer.java:143)
        at org.apache.maven.artifact.deployer.DeployBean.install(DeployBean.java
:160)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.jav
a:180)
        at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
a:102)
.....(snip).....

File...... C:\Documents and Settings\*******\.maven\cache\maven-artifact-plugi
-1.5.2\plugin.jelly
Element... artifact:artifact-install
Line...... 62
Column.... 9
org.apache.maven.project.Dependency.setProperties(Ljava/util/List;)V
Total time   : 2 minutes 34 seconds
Finished at  : Friday, August 19, 2005 10:46:28 AM EDT

Any help greatly appreciated.

Thanks,
Vitaliy

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


Re: m[1] Exception on war:deploy/war:install

Posted by Vitaliy Geraymovych <vi...@gmail.com>.
Thanks, that solved the issue. I forgot to download new plugin on our
CruiseControl box.

Vitaliy

On 8/19/05, Brett Porter <br...@gmail.com> wrote:
> You need artifact 1.6. I know you said you were using it, but the
> error message says 1.5.2 - check that you don't still have 1.5.2 JAR
> in $MAVEN_HOME/plugins or ~/.maven/plugins.
> 
> - Brett
> 
> On 8/20/05, Vitaliy Geraymovych <vi...@gmail.com> wrote:
> > Hi All,
> >
> > I am getting this exception while running war:deploy goal (it also
> > happens on war:install)
> > I can deploy and install jars without any problem.
> >
> > Maven 1.1-b1
> > war-plugin 1.6.1
> > artifact-plugin 1.6
> >
> >
> > war:install:
> >     [echo] Installing...
> > Uploading to ******-web-1.0-SNAPSHOT.war:
> > .................... (11628K)
> >
> > BUILD FAILED
> > java.lang.NoSuchMethodError: org.apache.maven.project.Dependency.setProperties(L
> > java/util/List;)V
> >         at org.apache.maven.artifact.PomRewriter.getRewrittenModel(PomRewriter.j
> > ava:124)
> >         at org.apache.maven.artifact.PomRewriter.getRewrittenPom(PomRewriter.jav
> > a:57)
> >         at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.handleInst
> > all(DefaultArtifactDeployer.java:174)
> >         at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.install(De
> > faultArtifactDeployer.java:143)
> >         at org.apache.maven.artifact.deployer.DeployBean.install(DeployBean.java
> > :160)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> > java:39)
> >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> > sorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:324)
> >         at org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.jav
> > a:180)
> >         at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
> > a:102)
> > .....(snip).....
> >
> > File...... C:\Documents and Settings\*******\.maven\cache\maven-artifact-plugi
> > -1.5.2\plugin.jelly
> > Element... artifact:artifact-install
> > Line...... 62
> > Column.... 9
> > org.apache.maven.project.Dependency.setProperties(Ljava/util/List;)V
> > Total time   : 2 minutes 34 seconds
> > Finished at  : Friday, August 19, 2005 10:46:28 AM EDT
> >
> > Any help greatly appreciated.
> >
> > Thanks,
> > Vitaliy
> >
> > ---------------------------------------------------------------------
> > 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
> 
>

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


Re: m[1] Exception on war:deploy/war:install

Posted by Brett Porter <br...@gmail.com>.
You need artifact 1.6. I know you said you were using it, but the
error message says 1.5.2 - check that you don't still have 1.5.2 JAR
in $MAVEN_HOME/plugins or ~/.maven/plugins.

- Brett

On 8/20/05, Vitaliy Geraymovych <vi...@gmail.com> wrote:
> Hi All,
> 
> I am getting this exception while running war:deploy goal (it also
> happens on war:install)
> I can deploy and install jars without any problem.
> 
> Maven 1.1-b1
> war-plugin 1.6.1
> artifact-plugin 1.6
> 
> 
> war:install:
>     [echo] Installing...
> Uploading to ******-web-1.0-SNAPSHOT.war:
> .................... (11628K)
> 
> BUILD FAILED
> java.lang.NoSuchMethodError: org.apache.maven.project.Dependency.setProperties(L
> java/util/List;)V
>         at org.apache.maven.artifact.PomRewriter.getRewrittenModel(PomRewriter.j
> ava:124)
>         at org.apache.maven.artifact.PomRewriter.getRewrittenPom(PomRewriter.jav
> a:57)
>         at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.handleInst
> all(DefaultArtifactDeployer.java:174)
>         at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.install(De
> faultArtifactDeployer.java:143)
>         at org.apache.maven.artifact.deployer.DeployBean.install(DeployBean.java
> :160)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.jav
> a:180)
>         at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
> a:102)
> .....(snip).....
> 
> File...... C:\Documents and Settings\*******\.maven\cache\maven-artifact-plugi
> -1.5.2\plugin.jelly
> Element... artifact:artifact-install
> Line...... 62
> Column.... 9
> org.apache.maven.project.Dependency.setProperties(Ljava/util/List;)V
> Total time   : 2 minutes 34 seconds
> Finished at  : Friday, August 19, 2005 10:46:28 AM EDT
> 
> Any help greatly appreciated.
> 
> Thanks,
> Vitaliy
> 
> ---------------------------------------------------------------------
> 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