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

rick gordon commented on MSHADE-55:
-----------------------------------

unfortunately its not public code. i've been porting some internal legacy code 
into a fully-mavenized project. I am sure the .properties file was in both the 
3.3.5 and 3.3.6 jars. as further evidence of this, the code throws an exception 
if it cannot find this .properties file at startup time, and it ran fine when 
the 3.3.5 jar was directly in the classpath.
that exception is how i first spotted the problem, so I explicitly searched for 
the file in each jar.

example project is always ideal, i realize. i haven't tried that yet -  i just 
managed to get it to work today (by updating all dependencies to the same 3.3.6 
version.)


> dependency conflict causes only .class files included in jar, not .properties
> -----------------------------------------------------------------------------
>
>                 Key: MSHADE-55
>                 URL: http://jira.codehaus.org/browse/MSHADE-55
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.2.1
>         Environment: Maven 2.0.9, Windows
>            Reporter: rick gordon
>            Priority: Minor
>
> My pom had a direct dependency on one version of a jar (3.3.5), but several 
> of the transitive dependencies had a dependency on a later version (3.3.6). 
> Looking at maven debug output (-X) I could see that it was choosing the 3.3.5 
> version because it was 'nearer' than the the 3.3.6 version. But when 
> including it, it would only include the .class files and skip a .properties 
> file in it. Switching the original dependency to the newer version (3.3.6) 
> 'fixed' the problem, so that the .properties file was now included.

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