The following issue has been updated:

    Updater: Jose Luiz (mailto:[EMAIL PROTECTED])
       Date: Fri, 3 Sep 2004 8:58 AM
    Comment:
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.
    Changes:
             Attachment changed to example.zip
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://jira.codehaus.org/browse/MAVEN-1435?page=history

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MAVEN-1435

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1435
    Summary: Plugin classpath are not overwriting project classpath.
       Type: Bug

     Status: Unassigned
   Priority: Critical

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven

   Assignee: 
   Reporter: Jose Luiz

    Created: Fri, 3 Sep 2004 8:57 AM
    Updated: Fri, 3 Sep 2004 8:58 AM

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


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to