You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "fabrizio giustina (JIRA)" <ji...@codehaus.org> on 2005/06/16 22:47:26 UTC

[jira] Created: (MAVEN-1625) Maven 1.1-b1: NoSuchMethodError: Dependency.setProperties()

Maven 1.1-b1: NoSuchMethodError: Dependency.setProperties()
-----------------------------------------------------------

         Key: MAVEN-1625
         URL: http://jira.codehaus.org/browse/MAVEN-1625
     Project: maven
        Type: Bug
  Components: core  
    Versions: 1.1-beta-1    
    Reporter: fabrizio giustina


Trying maven 1.1-b1 on an existing project, working with maven 1.0.2, I get a NoSuchMethodError if the pom contains a dependency with properties.

The project.xml seems to be valid according to the 3.0 schema, but with this dependency defined:

<dependency>
          <groupId>openmind</groupId>
          <artifactId>openutils</artifactId>
          <version>1.0-dev</version>
          <type>jar</type>
          <properties>
            <eclipse.dependency>true</eclipse.dependency>
          </properties>
</dependency>

I get this error:

jar:install:
    [echo] Installing...
Uploading to faber/jars/faber-dataobjects-1.0.jar:
.................... (342K)

BUILD FAILED
java.lang.NoSuchMethodError: org.apache.maven.project.Dependency.setProperties(Ljava/util/List;)V
        at org.apache.maven.artifact.PomRewriter.getRewrittenModel(PomRewriter.java:124)
        at org.apache.maven.artifact.PomRewriter.getRewrittenPom(PomRewriter.java:57)
        at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.handleInstall(DefaultArtifactDeployer.java:174)
        at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.install(DefaultArtifactDeployer.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(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java:180)
        at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:102)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:79)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:78)
        at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:109)
        at org.apache.maven.werkz.Goal.fire(Goal.java:656)
        at org.apache.maven.werkz.Goal.attain(Goal.java:592)
        at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:693)
        at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
        at org.apache.maven.cli.App.doMain(App.java:511)
        at org.apache.maven.cli.App.main(App.java:1258)
        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 com.werken.forehead.Forehead.run(Forehead.java:551)
        at com.werken.forehead.Forehead.main(Forehead.java:581)

removing 
<properties>
            <eclipse.dependency>true</eclipse.dependency>
</properties>
makes maven 1.1 happy and everything works as expected. The same happens on different projects, jar:install only works after removing all the <properties> tags


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (MAVEN-1625) Maven 1.1-b1: NoSuchMethodError: Dependency.setProperties()

Posted by "dion gillard (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MAVEN-1625?page=comments#action_42043 ] 

dion gillard commented on MAVEN-1625:
-------------------------------------

I've got the same issue. Has there been a release of the artifact plugin?

> Maven 1.1-b1: NoSuchMethodError: Dependency.setProperties()
> -----------------------------------------------------------
>
>          Key: MAVEN-1625
>          URL: http://jira.codehaus.org/browse/MAVEN-1625
>      Project: maven
>         Type: Bug
>   Components: core
>     Versions: 1.1-beta-1
>     Reporter: fabrizio giustina
>      Fix For: 1.1-beta-2

>
>
> Trying maven 1.1-b1 on an existing project, working with maven 1.0.2, I get a NoSuchMethodError if the pom contains a dependency with properties.
> The project.xml seems to be valid according to the 3.0 schema, but with this dependency defined:
> <dependency>
>           <groupId>openmind</groupId>
>           <artifactId>openutils</artifactId>
>           <version>1.0-dev</version>
>           <type>jar</type>
>           <properties>
>             <eclipse.dependency>true</eclipse.dependency>
>           </properties>
> </dependency>
> I get this error:
> jar:install:
>     [echo] Installing...
> Uploading to faber/jars/faber-dataobjects-1.0.jar:
> .................... (342K)
> BUILD FAILED
> java.lang.NoSuchMethodError: org.apache.maven.project.Dependency.setProperties(Ljava/util/List;)V
>         at org.apache.maven.artifact.PomRewriter.getRewrittenModel(PomRewriter.java:124)
>         at org.apache.maven.artifact.PomRewriter.getRewrittenPom(PomRewriter.java:57)
>         at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.handleInstall(DefaultArtifactDeployer.java:174)
>         at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.install(DefaultArtifactDeployer.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(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java:180)
>         at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:102)
>         at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:79)
>         at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
>         at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:78)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:109)
>         at org.apache.maven.werkz.Goal.fire(Goal.java:656)
>         at org.apache.maven.werkz.Goal.attain(Goal.java:592)
>         at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:693)
>         at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
>         at org.apache.maven.cli.App.doMain(App.java:511)
>         at org.apache.maven.cli.App.main(App.java:1258)
>         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 com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
> removing 
> <properties>
>             <eclipse.dependency>true</eclipse.dependency>
> </properties>
> makes maven 1.1 happy and everything works as expected. The same happens on different projects, jar:install only works after removing all the <properties> tags

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (MAVEN-1625) Maven 1.1-b1: NoSuchMethodError: Dependency.setProperties()

Posted by "fabrizio giustina (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MAVEN-1625?page=comments#action_42050 ] 

fabrizio giustina commented on MAVEN-1625:
------------------------------------------

recompiling the plugin from svn is enough to fix the problem: the error is due to a BINARY incompatibility:
the setDependencies() method was using a different parameter type than the one in maven 1.1: since the plugin is doing a  setDependencies(null) you can compile it with any version, but you cannot use a precompiled one with different maven versions.
The method should be fixed using reflection (just like all the other get/set call) for compatibility...

This is really a show stopper for maven 1.1, nobody cares about releasing an updated jar plugin? :(


> Maven 1.1-b1: NoSuchMethodError: Dependency.setProperties()
> -----------------------------------------------------------
>
>          Key: MAVEN-1625
>          URL: http://jira.codehaus.org/browse/MAVEN-1625
>      Project: maven
>         Type: Bug
>   Components: core
>     Versions: 1.1-beta-1
>     Reporter: fabrizio giustina
>      Fix For: 1.1-beta-2

>
>
> Trying maven 1.1-b1 on an existing project, working with maven 1.0.2, I get a NoSuchMethodError if the pom contains a dependency with properties.
> The project.xml seems to be valid according to the 3.0 schema, but with this dependency defined:
> <dependency>
>           <groupId>openmind</groupId>
>           <artifactId>openutils</artifactId>
>           <version>1.0-dev</version>
>           <type>jar</type>
>           <properties>
>             <eclipse.dependency>true</eclipse.dependency>
>           </properties>
> </dependency>
> I get this error:
> jar:install:
>     [echo] Installing...
> Uploading to faber/jars/faber-dataobjects-1.0.jar:
> .................... (342K)
> BUILD FAILED
> java.lang.NoSuchMethodError: org.apache.maven.project.Dependency.setProperties(Ljava/util/List;)V
>         at org.apache.maven.artifact.PomRewriter.getRewrittenModel(PomRewriter.java:124)
>         at org.apache.maven.artifact.PomRewriter.getRewrittenPom(PomRewriter.java:57)
>         at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.handleInstall(DefaultArtifactDeployer.java:174)
>         at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.install(DefaultArtifactDeployer.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(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java:180)
>         at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:102)
>         at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:79)
>         at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
>         at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:78)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:109)
>         at org.apache.maven.werkz.Goal.fire(Goal.java:656)
>         at org.apache.maven.werkz.Goal.attain(Goal.java:592)
>         at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:693)
>         at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
>         at org.apache.maven.cli.App.doMain(App.java:511)
>         at org.apache.maven.cli.App.main(App.java:1258)
>         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 com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
> removing 
> <properties>
>             <eclipse.dependency>true</eclipse.dependency>
> </properties>
> makes maven 1.1 happy and everything works as expected. The same happens on different projects, jar:install only works after removing all the <properties> tags

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (MAVEN-1625) Maven 1.1-b1: NoSuchMethodError: Dependency.setProperties()

Posted by "Archimedes Trajano (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MAVEN-1625?page=comments#action_41540 ] 

Archimedes Trajano commented on MAVEN-1625:
-------------------------------------------

Current "Artiftact" plugin in CVS seems to work properly now.  Someone might want to remove the unused imports.

> Maven 1.1-b1: NoSuchMethodError: Dependency.setProperties()
> -----------------------------------------------------------
>
>          Key: MAVEN-1625
>          URL: http://jira.codehaus.org/browse/MAVEN-1625
>      Project: maven
>         Type: Bug
>   Components: core
>     Versions: 1.1-beta-1
>     Reporter: fabrizio giustina

>
>
> Trying maven 1.1-b1 on an existing project, working with maven 1.0.2, I get a NoSuchMethodError if the pom contains a dependency with properties.
> The project.xml seems to be valid according to the 3.0 schema, but with this dependency defined:
> <dependency>
>           <groupId>openmind</groupId>
>           <artifactId>openutils</artifactId>
>           <version>1.0-dev</version>
>           <type>jar</type>
>           <properties>
>             <eclipse.dependency>true</eclipse.dependency>
>           </properties>
> </dependency>
> I get this error:
> jar:install:
>     [echo] Installing...
> Uploading to faber/jars/faber-dataobjects-1.0.jar:
> .................... (342K)
> BUILD FAILED
> java.lang.NoSuchMethodError: org.apache.maven.project.Dependency.setProperties(Ljava/util/List;)V
>         at org.apache.maven.artifact.PomRewriter.getRewrittenModel(PomRewriter.java:124)
>         at org.apache.maven.artifact.PomRewriter.getRewrittenPom(PomRewriter.java:57)
>         at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.handleInstall(DefaultArtifactDeployer.java:174)
>         at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.install(DefaultArtifactDeployer.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(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java:180)
>         at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:102)
>         at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:79)
>         at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
>         at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:78)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:109)
>         at org.apache.maven.werkz.Goal.fire(Goal.java:656)
>         at org.apache.maven.werkz.Goal.attain(Goal.java:592)
>         at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:693)
>         at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
>         at org.apache.maven.cli.App.doMain(App.java:511)
>         at org.apache.maven.cli.App.main(App.java:1258)
>         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 com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
> removing 
> <properties>
>             <eclipse.dependency>true</eclipse.dependency>
> </properties>
> makes maven 1.1 happy and everything works as expected. The same happens on different projects, jar:install only works after removing all the <properties> tags

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (MAVEN-1625) Maven 1.1-b1: NoSuchMethodError: Dependency.setProperties()

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MAVEN-1625?page=all ]

Brett Porter updated MAVEN-1625:
--------------------------------

    Fix Version: 1.1-beta-2

> Maven 1.1-b1: NoSuchMethodError: Dependency.setProperties()
> -----------------------------------------------------------
>
>          Key: MAVEN-1625
>          URL: http://jira.codehaus.org/browse/MAVEN-1625
>      Project: maven
>         Type: Bug
>   Components: core
>     Versions: 1.1-beta-1
>     Reporter: fabrizio giustina
>      Fix For: 1.1-beta-2

>
>
> Trying maven 1.1-b1 on an existing project, working with maven 1.0.2, I get a NoSuchMethodError if the pom contains a dependency with properties.
> The project.xml seems to be valid according to the 3.0 schema, but with this dependency defined:
> <dependency>
>           <groupId>openmind</groupId>
>           <artifactId>openutils</artifactId>
>           <version>1.0-dev</version>
>           <type>jar</type>
>           <properties>
>             <eclipse.dependency>true</eclipse.dependency>
>           </properties>
> </dependency>
> I get this error:
> jar:install:
>     [echo] Installing...
> Uploading to faber/jars/faber-dataobjects-1.0.jar:
> .................... (342K)
> BUILD FAILED
> java.lang.NoSuchMethodError: org.apache.maven.project.Dependency.setProperties(Ljava/util/List;)V
>         at org.apache.maven.artifact.PomRewriter.getRewrittenModel(PomRewriter.java:124)
>         at org.apache.maven.artifact.PomRewriter.getRewrittenPom(PomRewriter.java:57)
>         at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.handleInstall(DefaultArtifactDeployer.java:174)
>         at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.install(DefaultArtifactDeployer.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(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java:180)
>         at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:102)
>         at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:79)
>         at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
>         at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:78)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:109)
>         at org.apache.maven.werkz.Goal.fire(Goal.java:656)
>         at org.apache.maven.werkz.Goal.attain(Goal.java:592)
>         at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:693)
>         at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
>         at org.apache.maven.cli.App.doMain(App.java:511)
>         at org.apache.maven.cli.App.main(App.java:1258)
>         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 com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
> removing 
> <properties>
>             <eclipse.dependency>true</eclipse.dependency>
> </properties>
> makes maven 1.1 happy and everything works as expected. The same happens on different projects, jar:install only works after removing all the <properties> tags

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (MAVEN-1625) Maven 1.1-b1: NoSuchMethodError: Dependency.setProperties()

Posted by "Routis Haralampos (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MAVEN-1625?page=comments#action_42066 ] 

Routis Haralampos commented on MAVEN-1625:
------------------------------------------

I have the same problem but using the ejb:install goal

> Maven 1.1-b1: NoSuchMethodError: Dependency.setProperties()
> -----------------------------------------------------------
>
>          Key: MAVEN-1625
>          URL: http://jira.codehaus.org/browse/MAVEN-1625
>      Project: maven
>         Type: Bug
>   Components: core
>     Versions: 1.1-beta-1
>     Reporter: fabrizio giustina
>      Fix For: 1.1-beta-2

>
>
> Trying maven 1.1-b1 on an existing project, working with maven 1.0.2, I get a NoSuchMethodError if the pom contains a dependency with properties.
> The project.xml seems to be valid according to the 3.0 schema, but with this dependency defined:
> <dependency>
>           <groupId>openmind</groupId>
>           <artifactId>openutils</artifactId>
>           <version>1.0-dev</version>
>           <type>jar</type>
>           <properties>
>             <eclipse.dependency>true</eclipse.dependency>
>           </properties>
> </dependency>
> I get this error:
> jar:install:
>     [echo] Installing...
> Uploading to faber/jars/faber-dataobjects-1.0.jar:
> .................... (342K)
> BUILD FAILED
> java.lang.NoSuchMethodError: org.apache.maven.project.Dependency.setProperties(Ljava/util/List;)V
>         at org.apache.maven.artifact.PomRewriter.getRewrittenModel(PomRewriter.java:124)
>         at org.apache.maven.artifact.PomRewriter.getRewrittenPom(PomRewriter.java:57)
>         at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.handleInstall(DefaultArtifactDeployer.java:174)
>         at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.install(DefaultArtifactDeployer.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(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java:180)
>         at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:102)
>         at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:79)
>         at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
>         at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:78)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:109)
>         at org.apache.maven.werkz.Goal.fire(Goal.java:656)
>         at org.apache.maven.werkz.Goal.attain(Goal.java:592)
>         at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:693)
>         at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
>         at org.apache.maven.cli.App.doMain(App.java:511)
>         at org.apache.maven.cli.App.main(App.java:1258)
>         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 com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
> removing 
> <properties>
>             <eclipse.dependency>true</eclipse.dependency>
> </properties>
> makes maven 1.1 happy and everything works as expected. The same happens on different projects, jar:install only works after removing all the <properties> tags

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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