Bernd Vogt created MSHADE-137:
---------------------------------

             Summary: Shade Plugin does not consider Maven repositories 
contributed via profiles
                 Key: MSHADE-137
                 URL: https://jira.codehaus.org/browse/MSHADE-137
             Project: Maven 2.x Shade Plugin
          Issue Type: Bug
    Affects Versions: 2.0
            Reporter: Bernd Vogt


We're using a global parent pom vor all our projects. this pom is accessible 
via a company internal Maven repository, which will be contributed via a maven 
profile specified in the local settings.xml.

Now, building sth. with Maven Shade Plugin breaks, because Schade Plugin 
doesn't include the repo contributed via the profile in settings.xml to the 
list of available repositories.


In the following error log the artifact 
{{de.visualrules.maven:visualrules-parent:pom:5}} cannot be resolved, but it is 
accessible via the internal repo contributed via the profile in the 
settings.xml. The build stebs bevore are aware of the repo and could resolve 
the artifact without any problems.

{noformat}
[INFO] --- maven-shade-plugin:1.4:shade (default) @ maven2x-agent ---
[INFO] Including 
de.visualrules.runtimetools:maven-interceptor:jar:0.5.0-SNAPSHOT in the shaded 
jar.
[INFO] Including 
de.visualrules.runtimetools:artifactbuilder-common:jar:0.5.0-SNAPSHOT in the 
shaded jar.
[INFO] Including commons-codec:commons-codec:jar:1.3 in the shaded jar.
[INFO] Replacing original artifact with shaded artifact.
[INFO] Replacing 
D:\src\e43\vr\ws\runtime-tools\maven-interception\maven2x-agent\target\maven2x-agent-0.5.0-SNAPSHOT.jar
 with 
D:\src\e43\vr\ws\runtime-tools\maven-interception\maven2x-agent\target\maven2x-agent-0.5.0-SNAPSHOT-shaded.jar
Downloading: 
http://repo.bosch-si.com/content/groups/public/de/visualrules/maven/visualrules-parent/5/visualrules-parent-5.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Visual Rules Runtime Tools ........................ SUCCESS [1.279s]
[INFO] artifactbuilder-common ............................ SUCCESS [3.248s]
[INFO] maven-interception ................................ SUCCESS [0.016s]
[INFO] maven-interceptor ................................. SUCCESS [2.934s]
[INFO] maven2x-agent ..................................... FAILURE [5.496s]
[INFO] maven3x-agent ..................................... SKIPPED
[INFO] vmspy ............................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.288s
[INFO] Finished at: Fri Jan 18 11:47:59 CET 2013
[INFO] Final Memory: 12M/148M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-shade-plugin:1.4:shade (default) on project 
maven2x-agent: Error creating shaded jar: 1 problem was encountered while 
building the effective model for 
de.visualrules.runtimetools:maven2x-agent:0.5.0-SNAPSHOT
[ERROR] [FATAL] Non-resolvable parent POM for 
de.visualrules.runtimetools:runtime-tools:0.5.0-SNAPSHOT: Could not find 
artifact de.visualrules.maven:visualrules-parent:pom:5 in bosch-si.com 
(http://repo.bosch-si.com/content/groups/public) and 'parent.relativePath' 
points at wrong local POM @ 
de.visualrules.runtimetools:runtime-tools:0.5.0-SNAPSHOT, 
D:\src\e43\vr\ws\runtime-tools\pom.xml, line 4, column 10
[ERROR] for project de.visualrules.runtimetools:maven2x-agent:0.5.0-SNAPSHOT at 
D:\src\e43\vr\ws\runtime-tools\maven-interception\maven2x-agent\dependency-reduced-pom.xml
 for project de.visualrules.runtimetools:maven2x-agent:0.5.0-SNAPSHOT at 
D:\src\e43\vr\ws\runtime-tools\maven-interception\maven2x-agent\dependency-reduced-pom.xml
[ERROR] -> [Help 1]
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to