[ 
http://jira.codehaus.org/browse/MSHADE-23?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135390#action_135390
 ] 

Max Bowsher commented on MSHADE-23:
-----------------------------------

I found this in another context (shade+eclipse), and mused about it on #maven:

Apr 22 14:53:53 <maxb>  I've found a bit of an odd bug. I ran "mvn install 
eclipse:eclipse" in a project using the shade plugin and the eclipse files were 
placed into the target/ directory incorrectly
Apr 22 14:54:11 <maxb>  This is because the shade plugin reset the project's 
file.
Apr 22 14:54:20 <maxb>  But I'm not sure where to file the bug
Apr 22 14:54:28 <maxb>  The shade plugin is working as designed
Apr 22 14:55:09 <maxb>  The eclipse plugin is using 
project.getFile().getParentFile() to find the dir to write in
Apr 22 14:55:33 <maxb>  This is arguably a bit odd... but this is exactly what 
project.getBasedir() does internally too :-(
Apr 22 14:56:16 <maxb>  I guess I could file a MNG bug suggesting that 
project.getBasedir() be decoupled from project.getFile(), and a MECLIPSE bug 
suggesting that the plugin should use getBasedir().


I never did get around to filing a bug, because of the above-mentioned 
difficulties in figuring out which project was actually at fault. I guess the 
sad truth is that the shade plugin is playing with undocumented features by 
resetting the project's file, and things are breaking as a result. Of course, 
I'm not quite sure how else the shade plugin could do its job, so no "fix" is 
immediately apparent.


> ${basedir} is wrong after running shade plugin
> ----------------------------------------------
>
>                 Key: MSHADE-23
>                 URL: http://jira.codehaus.org/browse/MSHADE-23
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>         Environment: Maven version: 2.0.8
> Java version: 1.5.0_06
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
>            Reporter: Andreas Schouten
>            Assignee: Daniel Kulp
>
> After the shade plugin has run, the ${basedir} points to target.

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

        

Reply via email to