You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2016/01/12 21:12:45 UTC

[jira] [Closed] (MDEP-325) build-classpath adds a newline character when dependency artifact name starts with letter n

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

Michael Osipov closed MDEP-325.
-------------------------------
    Resolution: Auto Closed

This issue has been auto closed because it has been inactive for a long period of time. If you think this issue still persists, retest your problem with the most recent version of Maven and the affected component, reopen and post your results.

> build-classpath adds a newline character when dependency artifact name starts with letter n
> -------------------------------------------------------------------------------------------
>
>                 Key: MDEP-325
>                 URL: https://issues.apache.org/jira/browse/MDEP-325
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: build-classpath
>    Affects Versions: 2.1, 2.2, 2.3
>            Reporter: L. Compère
>         Attachments: MDEP-325.patch
>
>
> I'm using a combination of the maven-dependency-plugin and the maven-assembly-plugin to insert a classpath in a filtered resource.
> It so happens that one of the dependencies to be added to the classpath is "neethi-2.0.4.jar".
> The build-classpath goal of the dependency plugin writes the following in a file (all on one line):
> classpath=%MM_ENV_PATH%J/Lib/\httpcore-nio-4.0-beta1.jar;%MM_ENV_PATH%J/Lib/\neethi-2.0.4.jar;%MM_ENV_PATH%J/Lib/\axiom-api-1.2.7.jar;%MM_ENV_PATH%J/Lib/\axiom-dom-1.2.7.jar;
> When the assembly plugin uses the content of the file generated by the build-classpath goal of the dependency plugin, it translates the \n found in "%MM_ENV_PATH%J/Lib/\neethi-2.0.4.jar;" into a NEWLINE character... causing my classpath to be broken as such (on two lines):
> %MM_ENV_PATH%J/Lib/\httpcore-nio-4.0-beta1.jar;%MM_ENV_PATH%J/Lib/
> eethi-2.0.4.jar;%MM_ENV_PATH%J/Lib/\axiom-api-1.2.7.jar;%MM_ENV_PATH%J/Lib/\axiom-dom-1.2.7.jar;
> notice how neethi-2.0.4.jar has become eethi-2.0.4.jar....
> Has anyone had such a problem?



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