maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Heinz Marbaise (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (MSHADE-137) Shade Plugin does not consider Maven repositories contributed via profiles
Date Thu, 04 Jun 2015 20:47:38 GMT

     [ https://issues.apache.org/jira/browse/MSHADE-137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Karl Heinz Marbaise closed MSHADE-137.
--------------------------------------
    Resolution: Won't Fix

In general having repositories within a pom is a bad idea. The solution should be done by
a repository manager which is configured in a single location the settings.xml file. 

> Shade Plugin does not consider Maven repositories contributed via profiles
> --------------------------------------------------------------------------
>
>                 Key: MSHADE-137
>                 URL: https://issues.apache.org/jira/browse/MSHADE-137
>             Project: Maven Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: bernd
>
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message