You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2020/07/17 15:26:00 UTC

[jira] [Resolved] (MDEP-541) Allow for a space character as a pathSeparator in dependency:build-classpath

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

Elliotte Rusty Harold resolved MDEP-541.
----------------------------------------
    Resolution: Won't Fix

> 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
>            Priority: Major
>
> 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
(v8.3.4#803005)