You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ceki Gulcu (JIRA)" <ji...@codehaus.org> on 2008/10/03 17:15:08 UTC

[jira] Commented: (MANTRUN-95) Plugin classpath problem in multi module maven project

    [ http://jira.codehaus.org/browse/MANTRUN-95?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=149812#action_149812 ] 

Ceki Gulcu commented on MANTRUN-95:
-----------------------------------

It seems that if a antrun-plugin is declared in say module M0, then the dependency declaration 
within the antrun-plugin are ignored nut only if building from the top-level directory. Building 
from the module itself, that is from TOP_LEVEL/M0/ folder works fine.

I have tested this with Maven 2.0.8., 2.0.9 and 2.1.0-M1 as well as antrun-plugin and 1.1 and 1.2.

> Plugin classpath problem in multi module maven project
> ------------------------------------------------------
>
>                 Key: MANTRUN-95
>                 URL: http://jira.codehaus.org/browse/MANTRUN-95
>             Project: Maven 2.x Antrun Plugin
>          Issue Type: Bug
>         Environment: WindowsXP Pro
> jdk1.5.0_11
> MAVEN 2.0.9
>            Reporter: Alexandre GIGLEUX
>         Attachments: ProblemMavenPluginClasspath.zip
>
>
> We have a pom.xml with <modules> :
> <modules>
> <module>./Module1</module>
> <module>./Module2</module>
> </modules>
> In Module1 we use the define <dependencies>.
> In Module2 we also define <dependencies> for maven-antrun-plugin with other <dependency>.
> Problem when we display <echo message="plugin classpath: ${plugin_classpath}" />, in Module2 we have the classpath of the Module1.
> The only workaround is to add specific <dependency> of Module2, in Module1 (for the maven-antrun-plugin plugin).
> It looks like the plugin classpath is not updated for each Module.

-- 
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