[ https://issues.apache.org/jira/browse/MDEP-541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15576607#comment-15576607 ]
Giedrius Noreikis commented on MDEP-541: ---------------------------------------- We need more flexibility, and {{maven-archiver}} does not allow (at least I couldn't find a way) to exclude some dependencies from the {{Class-Path}}, which is necessary in our case as we repackage some jars from dependencies into the final jar (with a help of {{proguard-maven-plugin}}). > Allow for a space character as a pathSeparator in dependency:build-classpath > ---------------------------------------------------------------------------- > > Key: MDEP-541 > URL: https://issues.apache.org/jira/browse/MDEP-541 > Project: Maven Dependency Plugin > Issue Type: Improvement > Components: build-classpath > Reporter: Giedrius Noreikis > > Currently, the {{dependency:build-classpath}} goal does not allow a space > character to be specified as a {{pathSeparator}}, which is necessary to > generate {{Class-Path}} values for manifests. > Because of a check {{isPathSepSet = StringUtils.isNotEmpty( pathSeparator )}} > in {{BuildClasspathMojo.java}}, the parameter gets ignored in this case, and > the classpath is built with a default separator. > The possible workaround is to fix the path with > {{build-helper:regex-property}}: > {code:xml} > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>build-helper-maven-plugin</artifactId> > <executions> > <execution> > <id>fix-classpath-for-manifest</id> > <phase>prepare-package</phase> > <goals><goal>regex-property</goal></goals> > <configuration> > <name>appClasspath</name> > <value>${appClasspath}</value> > <regex>;</regex> > <replacement xml:space="preserve"> </replacement> > <failIfNoMatch>false</failIfNoMatch> > </configuration> > </execution> > </executions> > </plugin> > {code} > but a fix would allow for a more straightforward solution. -- This message was sent by Atlassian JIRA (v6.3.4#6332)