jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 1.x Multi-Project Plugin
  • MPMULTIPROJECT-59

Multiproject plugin problem in Maven 1.1-betaX

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: None
  • Fix Version/s: 1.5
  • Labels:
    None
  • Environment:
    Hide
    Win2000 Professional SP3
    Maven 1.1-beta1 and Maven1.1-beta2
    java version "1.4.1"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1)
    Classic VM (build 1.4.1, J2RE 1.4.1 IBM Windows 32 build cn1411-20031011 (JIT enabled: jitc))
    Show
    Win2000 Professional SP3 Maven 1.1-beta1 and Maven1.1-beta2 java version "1.4.1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1) Classic VM (build 1.4.1, J2RE 1.4.1 IBM Windows 32 build cn1411-20031011 (JIT enabled: jitc))

Description

A multiproject that works fine in Maven 1.02 fails in 1.1-betaX.

The first project always runs fine. The second project seems to fail after uploading the jar to the repository. Even if I switch the order of the projects or remove some of them, the second seems to fail always.

>maven multiproject:install

>Unable to obtain goal [multiproject:install-callback] – C:\Documents and Settings\AB36632\.maven\cache\maven-artifact-plugin-1.6\plugin.jelly:73:9: <artifact:artifact-install> Error getting the project as a string

See the stack trace below. If I go to the subproject in question and run maven, it works fine. (Default goal is set in project.xml).

One item to note is that the <defaultGoal> is different in different projects, i.e. jar:install and ejb:install.

As is, this is a complete showstopper for Maven 1.1-betaX.

Stack trace:

org.apache.maven.werkz.UnattainableGoalException: Unable to obtain goal [multiproject:install] – C:\Documents and Settings\AB36632\.maven\cache\maven-multiproject-plugin-1.4.1\plugin.jelly:218:9: <maven:reactor> Reactor subproject failure occurred
at org.apache.maven.werkz.Goal.fire(Goal.java:663)
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:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
org.apache.commons.jelly.JellyTagException: C:\Documents and Settings\AB36632\.maven\cache\maven-multiproject-plugin-1.4.1\plugin.jelly:218:9: <maven:reactor> Reactor subproject failure occurred
at org.apache.maven.jelly.tags.maven.ReactorTag.doTag(ReactorTag.java:378)
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.werkz.WerkzProject.attainGoal(WerkzProject.java:210)
at org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTag.java:114)
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:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
Caused by: org.apache.maven.werkz.UnattainableGoalException: Unable to obtain goal [multiproject:install-callback] – C:\Documents and Settings\AB36632\.maven\cache\maven-artifact-plugin-1.6\plugin.jelly:73:9: <artifact:artifact-install> Error getting the project as a string
at org.apache.maven.werkz.Goal.fire(Goal.java:663)
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.jelly.tags.maven.ReactorTag.doTag(ReactorTag.java:368)
... 24 more
Root cause
org.apache.maven.werkz.UnattainableGoalException: Unable to obtain goal [multiproject:install-callback] – C:\Documents and Settings\AB36632\.maven\cache\maven-artifact-plugin-1.6\plugin.jelly:73:9: <artifact:artifact-install> Error getting the project as a string
at org.apache.maven.werkz.Goal.fire(Goal.java:663)
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.jelly.tags.maven.ReactorTag.doTag(ReactorTag.java:368)
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.werkz.WerkzProject.attainGoal(WerkzProject.java:210)
at org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTag.java:114)
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:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Zip Archive
    MPMULTIPROJECT-59.zip
    15/Apr/06 3:57 AM
    2 kB
    Arnaud Heritier
    1. File
      modules/modA/project.properties 0.0 kB
    2. XML File
      modules/modA/project.xml 0.5 kB
    3. File
      modules/modB/project.properties 0.0 kB
    4. XML File
      modules/modB/project.xml 0.5 kB
    5. File
      project.properties 0.0 kB
    6. XML File
      project.xml 1 kB
    Download Zip
    Show
    Zip Archive
    MPMULTIPROJECT-59.zip
    15/Apr/06 3:57 AM
    2 kB
    Arnaud Heritier
  2. XML File
    project_root.xml
    15/Sep/05 9:45 AM
    1 kB
    Oddmar Sandvik
  3. XML File
    project_sub1.xml
    15/Sep/05 9:45 AM
    0.7 kB
    Oddmar Sandvik
  4. XML File
    project_sub2.xml
    15/Sep/05 9:45 AM
    1 kB
    Oddmar Sandvik

Issue Links

relates to

Bug - A problem which impairs or prevents the functions of the product. MPARTIFACT-51 Issue with dependency properties in POM when deploying

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Lukas Theussl added a comment - 20/Feb/06 11:21 PM

I cannot reproduce this with current maven 1.1-beta-3 trunk. Running multiproject:install on your test project installs both the jar and ejb into my local repo (I had to remove some dependencies that could not be downloaded though). Maybe this is fixed with MPARTIFACT-51?

Show
Lukas Theussl added a comment - 20/Feb/06 11:21 PM I cannot reproduce this with current maven 1.1-beta-3 trunk. Running multiproject:install on your test project installs both the jar and ejb into my local repo (I had to remove some dependencies that could not be downloaded though). Maybe this is fixed with MPARTIFACT-51?
Hide
Permalink
Arnaud Heritier added a comment - 15/Apr/06 3:56 AM

I don't reproduce this error. It was certainly related to MPARTIFACT-51
FYI, to use the multiproject:install goal you have to set the property 'maven.multiproject.type' as explained in the doco :
http://maven.apache.org/maven-1.x/plugins/multiproject/properties.html
The default goal isn't used (actually) for this task.

Show
Arnaud Heritier added a comment - 15/Apr/06 3:56 AM I don't reproduce this error. It was certainly related to MPARTIFACT-51 FYI, to use the multiproject:install goal you have to set the property 'maven.multiproject.type' as explained in the doco : http://maven.apache.org/maven-1.x/plugins/multiproject/properties.html The default goal isn't used (actually) for this task.
Hide
Permalink
Arnaud Heritier added a comment - 15/Apr/06 3:57 AM

The test case I used

Show
Arnaud Heritier added a comment - 15/Apr/06 3:57 AM The test case I used
Hide
Permalink
Arnaud Heritier added a comment - 15/Apr/06 4:06 AM

Already fixed. The problem wasn't in the multiproject plugin.

Show
Arnaud Heritier added a comment - 15/Apr/06 4:06 AM Already fixed. The problem wasn't in the multiproject plugin.

People

  • Assignee:
    Arnaud Heritier
    Reporter:
    Oddmar Sandvik
Vote (1)
Watch (2)

Dates

  • Created:
    15/Sep/05 9:45 AM
    Updated:
    15/Apr/06 4:06 AM
    Resolved:
    15/Apr/06 4:06 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.