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
  • MAVEN-1435

Plugin classpath are not overwriting project classpath.

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Duplicate
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

My project uses picocontainer 1.1 and andromda maven plugin uses picocontainer 1.0. In pluginīs project.xml thereīs a pico 1.0 depedencie declaration, but as in my project thereīs a pico 1.1 declaration so I cant run it.

Okay, Iīve looked plugin code and I found:
<j:new var="pluginUtils" className="org.andromda.maven.MavenPluginUtils"/> that uses pico 1.0 and I tried to find a way to set itīs context classpath, but I could not find it (Someway like ant).

Iīve looked at project.xml and wrote "<properties><classloader>root</classloader></properties>" at pico 1.0 depedency.
It goes perfectly... well, not so perfectly because if I run another plugin that needs pico 1.1 (like xdoclet 2.0 will soon) I got problem because when I finish to run a plugin classpath configuration does not come back to normal.

In my opinion if I write plugins depedencies should overwrite project depedencies when a plugin is running and just when its running.

I wrote a example, there is two jars on this zip, one of them is my andromda cartridge and the andromda plugin with classloader fixed.

test1 - Just run andromda plugin
test2 - Run andromda plugin and other code that uses pico 1.1.
test3 - Run a code that uses pico 1.1 and andromda plugin.

Thankīs

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

Attachments

  1. Hide
    Zip Archive
    example.zip
    03/Sep/04 8:58 AM
    33 kB
    Jose Peleteiro
    1. Java Archive File
      biz.intelli.mda.andromda.cartridge.java-SNAPSHOT.jar 5 kB
    2. XML File
      maven.xml 0.9 kB
    3. Java Archive File
      maven-andromda-plugin-3.0M3-SNAPSHOT-FIXED.jar 15 kB
    4. File
      project.properties 0.5 kB
    5. XML File
      project.xml 2 kB
    6. File
      src/doc/uml/model.zuml 15 kB
    Download Zip
    Show
    Zip Archive
    example.zip
    03/Sep/04 8:58 AM
    33 kB
    Jose Peleteiro

Issue Links

duplicates

Bug - A problem which impairs or prevents the functions of the product. MAVEN-1690 maven 1.1 beta 2 confuses class loaders while compiling plugin-genererated code

  • Critical - Crashes, loss of data, severe memory leak.
  • 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
Jose Peleteiro added a comment - 03/Sep/04 8:58 AM

test1 - Just run andromda plugin
test2 - Run andromda plugin and other code that uses pico 1.1.
test3 - Run a code that uses pico 1.1 and andromda plugin.

Show
Jose Peleteiro added a comment - 03/Sep/04 8:58 AM test1 - Just run andromda plugin test2 - Run andromda plugin and other code that uses pico 1.1. test3 - Run a code that uses pico 1.1 and andromda plugin.
Hide
Permalink
Brett Porter added a comment - 21/Sep/04 8:22 AM

I think this is a dupe - it requires classloader separation.
I believe we can try this in 1.1 - I've done it before, and it just requires carefully a documented break in backwards compatibility. I think the end result is worth it.

Show
Brett Porter added a comment - 21/Sep/04 8:22 AM I think this is a dupe - it requires classloader separation. I believe we can try this in 1.1 - I've done it before, and it just requires carefully a documented break in backwards compatibility. I think the end result is worth it.

People

  • Assignee:
    Lukas Theussl
    Reporter:
    Jose Peleteiro
Vote (1)
Watch (2)

Dates

  • Created:
    03/Sep/04 8:57 AM
    Updated:
    14/Apr/06 10:30 AM
    Resolved:
    14/Apr/06 10:30 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.