[
http://jira.codehaus.org/browse/MEXEC-36?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jerome Lacoste updated MEXEC-36:
--------------------------------
Attachment: mexec-36.tar
I've created the following test project. I reproduce the issue with 1.1-beta-1
but not with the trunk:
Basically,
cd mexec-36/
mvn install
mvn install > mvn.log.1
cd sub
mvn install > ../mvn.log.2
produces the following logs:
[EMAIL PROTECTED]:~/Code/OSS/m2/exec-maven-plugin/src/test/projects/mexec-36$
cat mvn.log.1
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Maven Exec Plugin
[INFO] Maven Exec Plugin Test project15 Sub Project
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Exec Plugin
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing
/home/jerome/Code/OSS/m2/exec-maven-plugin/src/test/projects/mexec-36/pom.xml
to
/home/jerome/.m2/repository/org/cb/maven/plugins/exec/project15/0.1/project15-0.1.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Exec Plugin Test project15 Sub Project
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Building jar:
/home/jerome/Code/OSS/m2/exec-maven-plugin/src/test/projects/mexec-36/sub/target/sub-0.1.jar
[INFO] [install:install]
[INFO] Installing
/home/jerome/Code/OSS/m2/exec-maven-plugin/src/test/projects/mexec-36/sub/target/sub-0.1.jar
to
/home/jerome/.m2/repository/org/cb/maven/plugins/exec/project15/sub/0.1/sub-0.1.jar
[INFO] [exec:exec {execution: default}]
[INFO] Working
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] Maven Exec Plugin ..................................... SUCCESS [2.582s]
[INFO] Maven Exec Plugin Test project15 Sub Project .......... SUCCESS [1.645s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Sun May 11 09:44:35 CEST 2008
[INFO] Final Memory: 12M/81M
[INFO] ------------------------------------------------------------------------
[EMAIL PROTECTED]:~/Code/OSS/m2/exec-maven-plugin/src/test/projects/mexec-36$
cat mvn.log.2
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Exec Plugin Test project15 Sub Project
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] [install:install]
[INFO] Installing
/home/jerome/Code/OSS/m2/exec-maven-plugin/src/test/projects/mexec-36/sub/target/sub-0.1.jar
to
/home/jerome/.m2/repository/org/cb/maven/plugins/exec/project15/sub/0.1/sub-0.1.jar
[INFO] [exec:exec {execution: default}]
[INFO] Working
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Sun May 11 09:44:45 CEST 2008
[INFO] Final Memory: 10M/79M
[INFO] ------------------------------------------------------------------------
I expect then this to be fixed in 1.1-beta-2.
Quickly looking at the diff I don't see what fixed it...
> <executable> path is not relative to 'current' project in multi-module project
> ------------------------------------------------------------------------------
>
> Key: MEXEC-36
> URL: http://jira.codehaus.org/browse/MEXEC-36
> Project: Maven 2.x Exec Plugin
> Issue Type: Bug
> Components: exec
> Affects Versions: 1.1-beta-1
> Environment: Maven 2.0.7, Windows
> Reporter: Maarten Brugman
> Priority: Critical
> Fix For: 1.1
>
> Attachments: mexec-36.tar
>
>
> I have a configuration that runs fine with exec-maven-plugin v1.0.2, but
> fails with version 1.1-beta1.
> In 1.0.2, the <executable> path is relative to the 'current' project in a
> multi-module project.
> E.g. I have a multi-module project, with a sub-project 'ear' that runs a
> batch file ear/target/install.bat.
> I refer to this batch file with <executable>target/install.bat</executable>.
> This works fine in 1.0.2, both when I run maven in the main project directory
> and when I run maven in the 'ear' sub-project directory.
> It does not work in 1.1-beta-1 when I run it in the main project directory: '
> BUILD ERROR - system cannot find the path specified'.
> It seems that the 1.1-beta-1 version uses the current working dir as the
> starting point for the <executable> path.
> In my humble opinion, verison 1.0.2 did the right thing: use the working dir
> of the maven project at hand as the starting point.
> I hope I made my point clear; if any questions remain, feel free to e-mail me
> at maartenbrugman at-sign gmail ddott com.
> By the way, thanks for donating this useful plugin to the community!
--
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
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email