maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MDEP-488) Build-classpath for maven repository layout
Date Thu, 08 Dec 2016 21:28:58 GMT

    [ https://issues.apache.org/jira/browse/MDEP-488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15733443#comment-15733443
] 

Robert Scholte commented on MDEP-488:
-------------------------------------

The documentation of {{prefix}} is: 
bq. The prefix to prepend on each dependent artifact. If undefined, the paths refer to the
actual files store in the local repository (the stripVersion parameter does nothing then).

This doesn't seem to be true. So we have 2 options: fix according to docs or apply your fix
+  adjust the documentation. I've been looking if this could be fixed without introducing
a new parameter, but haven't found a solution yet. 

> Build-classpath for maven repository layout
> -------------------------------------------
>
>                 Key: MDEP-488
>                 URL: https://issues.apache.org/jira/browse/MDEP-488
>             Project: Maven Dependency Plugin
>          Issue Type: Improvement
>          Components: build-classpath
>    Affects Versions: 2.10
>            Reporter: Gaƫl Lalire
>         Attachments: classpathPatch.diff
>
>
> Build-classpath cannot create a classpath for a maven repository layout in multimodules
projects.
> Indeed project.artifacts returns artifacts whose file may be from the local repository
or from your project target directories.
> For last one the replace mechanism failed.
> We could execute the build-classpath with invoker plugin as a workaround but it is not
clean.
> I propose to make it possible with following configuration {code}
>               <outputFile>${project.build.directory}/unix-classpath.txt</outputFile>
>               <pathSeparator>:</pathSeparator>
>               <fileSeparator>/</fileSeparator>
>               <prefix>repository</prefix>
>               <useRepositoryLayout>true</useRepositoryLayout>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message