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

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

as far as logs, i don't know - there was nothing explicit - I just noticed the 
discrepancy and changed it to find the "correct" behavior. I'll include some 
snippets and see if it helps. If there is something explicit you're looking for 
let me know.

When building the final Jar it said (near the beginning):
     go.barista:barista:jar:3.3.5:compile (selected for compile)
then later as its encountering transitive dependencies:
    go.barista:barista:jar:3.3.6:compile (removed - nearer found: 3.3.5)

then finally as its starting to build the shaded jar:
   [INFO] Including go.barista:barista:jar:3.3.5 in the shaded jar.

here are debug configuration values being dumped too:
[DEBUG]   (f) artifactSet = 
org.apache.maven.plugins.shade.mojo.artifact...@124614c
[DEBUG]   (f) createDependencyReducedPom = true
[DEBUG]   (f) createSourcesJar = false
[DEBUG]   (f) artifact = javax.activation:activation
[DEBUG]   (f) excludes = [META-INF/**]
[DEBUG]   (f) artifact = javax.mail:mail
[DEBUG]   (f) excludes = [META-INF/**]
[DEBUG]   (f) artifact = com.microsoft.sqlserver.jdbc:sqljdbc
[DEBUG]   (f) excludes = [META-INF/**]
[DEBUG]   (f) filters = 
[Lorg.apache.maven.plugins.shade.mojo.ArchiveFilter;@e2b07b
[DEBUG]   (f) keepDependenciesWithProvidedScope = false
[DEBUG]   (f) promoteTransitiveDependencies = false
[DEBUG]   (f) shadedArtifactAttached = false
[DEBUG]   (f) shadedClassifierName = shaded

> 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