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 2 & 3
  • MNG-1911

Building plugins with extensions in a reactor fails

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Critical Critical
  • Resolution: Unresolved
  • Affects Version/s: 2.0.1
  • Fix Version/s: 3.1
  • Component/s: Plugins and Lifecycle
  • Labels:
    None
  • Complexity:
    Intermediate

Description

I have the following in my main pom

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.servicemix.plugins</groupId>
<artifactId>maven2-jbi-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<extensions>true</extensions>
</plugin>
</plugins>
</pluginManagement>
</build>

If i try to add it to the modules, the first time, maven complains that it can not download the plugin.
If i remove the <extensions> tag, all works, but i need it

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

Attachments

  1. Hide
    Zip Archive
    MNG-1911.zip
    14/Jan/10 9:37 AM
    6 kB
    Brett Porter
    1. XML File
      MNG-1911/MNG-1911-artifact/pom.xml 0.7 kB
    2. Java Source File
      MNG-1911/MNG-1911-artifact/.../test/App.java 0.2 kB
    3. Java Source File
      MNG-1911/MNG-1911-artifact/.../AppTest.java 0.6 kB
    4. XML File
      MNG-1911/MNG-1911-plugin/pom.xml 1.0 kB
    5. Java Source File
      MNG-1911/MNG-1911-plugin/.../MyMojo.java 2 kB
    6. XML File
      MNG-1911/pom.xml 1.0 kB
    Download Zip
    Show
    Zip Archive
    MNG-1911.zip
    14/Jan/10 9:37 AM
    6 kB
    Brett Porter

Issue Links

is related to

Bug - A problem which impairs or prevents the functions of the product. MNG-1323 Plugin extensions (dependencies) not resolved in reactor build

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

Improvement - An improvement or enhancement to an existing feature or task. MNG-656 lazily resolve extensions

  • Minor - Minor loss of function, or other problem where easy workaround is present.
  • Open - The issue is open and ready for the assignee to start work on it.
relates to

Bug - A problem which impairs or prevents the functions of the product. MNG-1682 Plugins do not honor the correct extension when run as a part of a multiproject build

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

Improvement - An improvement or enhancement to an existing feature or task. MNG-4081 Subtle case: Avoid resolving artifacts from outside the reactor for plugins and extensions whose projects are inside the reactor

  • 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
John Casey added a comment - 22/Jun/06 3:32 PM

so, how is the pluginManagement item getting triggered? Do you have the plugin referenced in the main part of your build in the main POM or something?

Show
John Casey added a comment - 22/Jun/06 3:32 PM so, how is the pluginManagement item getting triggered? Do you have the plugin referenced in the main part of your build in the main POM or something?
Hide
Permalink
Brett Porter added a comment - 03/Jul/06 7:42 PM

The current Geronimo build has the same problem. Order of build doesn't matter - it just needs to be used somewhere as the extensions are pre-loaded.

Workaround is to deploy a snapshot of the plugin so that Maven downloads the snapshot, uses that to load the extensions, builds the plugin, then reloads the new plugin when it is used.

Show
Brett Porter added a comment - 03/Jul/06 7:42 PM The current Geronimo build has the same problem. Order of build doesn't matter - it just needs to be used somewhere as the extensions are pre-loaded. Workaround is to deploy a snapshot of the plugin so that Maven downloads the snapshot, uses that to load the extensions, builds the plugin, then reloads the new plugin when it is used.
Hide
Permalink
Jason Dillon added a comment - 17/Aug/06 11:38 AM

Any status on when this will make it into a m2 release?

Show
Jason Dillon added a comment - 17/Aug/06 11:38 AM Any status on when this will make it into a m2 release?
Hide
Permalink
Jason van Zyl added a comment - 04/Jun/07 7:00 PM

John is this fixed now in trunk with your most recent build plan work?

Show
Jason van Zyl added a comment - 04/Jun/07 7:00 PM John is this fixed now in trunk with your most recent build plan work?
Hide
Permalink
John Casey added a comment - 08/Jun/07 10:03 AM

no, i haven't tested this use case with the new build plan. It may work, but I haven't tried yet.

Show
John Casey added a comment - 08/Jun/07 10:03 AM no, i haven't tested this use case with the new build plan. It may work, but I haven't tried yet.
Hide
Permalink
Marvin Froeder added a comment - 13/Jan/09 10:22 AM

Hi John,

Do you have any news on that?

Flex-mojos is suffering with this too.

VELO

Show
Marvin Froeder added a comment - 13/Jan/09 10:22 AM Hi John, Do you have any news on that? Flex-mojos is suffering with this too. VELO
Hide
Permalink
Brett Porter added a comment - 14/Jan/10 9:37 AM

This actually works on Maven 2.2.1, but seems to have regressed in 3.0-SNAPSHOT. Attaching the test program (artifacts must not be in the local repository for failure to appear), as I do not currently have time for a full IT/investigation.

Show
Brett Porter added a comment - 14/Jan/10 9:37 AM This actually works on Maven 2.2.1, but seems to have regressed in 3.0-SNAPSHOT. Attaching the test program (artifacts must not be in the local repository for failure to appear), as I do not currently have time for a full IT/investigation.
Hide
Permalink
Benjamin Bentmann added a comment - 18/Mar/10 5:53 AM

Until we extend the POM to allow to distinguish between different types of extensions in order to tell which of them can loaded sometime later during the build, there is no path forward.

Show
Benjamin Bentmann added a comment - 18/Mar/10 5:53 AM Until we extend the POM to allow to distinguish between different types of extensions in order to tell which of them can loaded sometime later during the build, there is no path forward.
Hide
Permalink
Brett Porter added a comment - 06/Oct/10 12:11 AM

putting into 3.1 so that such an extension to the POM can be made so that this can be made to work again

Show
Brett Porter added a comment - 06/Oct/10 12:11 AM putting into 3.1 so that such an extension to the POM can be made so that this can be made to work again
Hide
Permalink
Brett Porter added a comment - 06/Oct/10 3:21 AM

I didn't investigate enough originally, and the attached IT isn't complete to test this. This wasn't fixed in 2.2.1 - it doesn't actually load the extension, as it never ended up in the effective POM. Maven 3 now does that, and attempts to load the extension, which is not built.

The workaround to this, if suitable, is to use an older version of the plugin to use throughout the build.

Show
Brett Porter added a comment - 06/Oct/10 3:21 AM I didn't investigate enough originally, and the attached IT isn't complete to test this. This wasn't fixed in 2.2.1 - it doesn't actually load the extension, as it never ended up in the effective POM. Maven 3 now does that, and attempts to load the extension, which is not built. The workaround to this, if suitable, is to use an older version of the plugin to use throughout the build.
Hide
Permalink
Lars Corneliussen added a comment - 01/Apr/11 6:16 AM

Does anybody know what the concrete work would be to solve this issue? We struggle with this in NPanday...

Show
Lars Corneliussen added a comment - 01/Apr/11 6:16 AM Does anybody know what the concrete work would be to solve this issue? We struggle with this in NPanday...
Hide
Permalink
Vincent Massol added a comment - 03/Apr/12 10:00 AM

We really need this on the xwiki project too. Using an older version is not really a solution since when you make a change you need to use the latest version. We have some automated script to release XWiki which uses the maven release plugin and doing a 2 step release with the release plugin is really difficult (and probably impossible actually).

Show
Vincent Massol added a comment - 03/Apr/12 10:00 AM We really need this on the xwiki project too. Using an older version is not really a solution since when you make a change you need to use the latest version. We have some automated script to release XWiki which uses the maven release plugin and doing a 2 step release with the release plugin is really difficult (and probably impossible actually).
Hide
Permalink
Robert Munteanu added a comment - 25/Apr/12 6:52 AM

This also affects the Apache Sling build.

Show
Robert Munteanu added a comment - 25/Apr/12 6:52 AM This also affects the Apache Sling build.

People

  • Assignee:
    Unassigned
    Reporter:
    Guillaume Nodet
Vote (9)
Watch (12)

Dates

  • Created:
    02/Jan/06 9:44 AM
    Updated:
    25/Apr/12 6:52 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.