maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (Jira)" <j...@apache.org>
Subject [jira] [Commented] (MASSEMBLY-929) assembly fails trying to include file with space in name from JAR
Date Thu, 05 Mar 2020 18:40:00 GMT

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

Michael Osipov commented on MASSEMBLY-929:
------------------------------------------

Also works on:

{noformat}
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T20:33:14+02:00)
Maven home: /usr/local/apache-maven-3.5.4
Java version: 1.8.0_242, vendor: Oracle Corporation, runtime: /usr/local/openjdk8/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "freebsd", version: "12.1-stable", arch: "amd64", family: "unix"
{noformat}

{noformat}
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T20:33:14+02:00)
Maven home: /usr/local/apache-maven-3.5.4
Java version: 11.0.6, vendor: Oracle Corporation, runtime: /usr/local/openjdk11
Default locale: de_DE, platform encoding: UTF-8
OS name: "freebsd", version: "12.1-stable", arch: "amd64", family: "unix"
{noformat}

{noformat}
$ unzip -t target/camel-activemq-1.0.0-SNAPSHOT-jar-with-dependencies.jar  | grep JAXB
    testing: org/apache/camel/impl/DefaultModelJAXBContextFactory.class  OK
    testing: org/apache/camel/spi/ModelJAXBContextFactory.class  OK
    testing: org/apache/camel/spring/SpringModelJAXBContextFactory.class         OK
    testing: META-INF/JAXB/episode_generate%20schema.xjb         OK
{noformat}


> assembly fails trying to include file with space in name from JAR
> -----------------------------------------------------------------
>
>                 Key: MASSEMBLY-929
>                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-929
>             Project: Maven Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 3.2.0
>            Reporter: Michael Ritzert
>            Priority: Major
>             Fix For: waiting-for-feedback
>
>         Attachments: pom.xml
>
>
> When I try to assemble a complete jar from the attached pom.xml (no other files needed),
it ends with this error:
>  
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:assembly
(default-cli) on project camel-activemq: Failed to create assembly: Error creating assembly
archive jar-with-dependencies: Problem creating jar: JAR entry META-INF/JAXB/episode_generate
schema.xjb not found in /root/.m2/repository/org/apache/camel/camel-spring/3.0.1/camel-spring-3.0.1.jar
-> [Help 1]                                                                                     
> ...
> Caused by: java.io.FileNotFoundException: JAR entry META-INF/JAXB/episode_generate schema.xjb
not found in /root/.m2/repository/org/apache/camel/camel-spring/3.0.1/camel-spring-3.0.1.jar
>     at sun.net.www.protocol.jar.JarURLConnection.connect (JarURLConnection.java:147)
>     at sun.net.www.protocol.jar.JarURLConnection.getInputStream (JarURLConnection.java:155)
>     at java.net.URL.openStream (URL.java:1163)
>     at org.codehaus.plexus.components.io.resources.PlexusIoURLResource.getContents
(PlexusIoURLResource.java:30)
> {noformat}
>  
> To reproduce, put the pom.xml in a directory and run
> {code:java}
> docker run --network=host -it --rm --name my-maven-project -v "$(pwd)":/usr/src/mymaven
-w /usr/src/mymaven maven:3.6.3-jdk-13 mvn -X -e clean package assembly:assembly
> {code}
> The file name in the jar file is URL-encoded, i.e.
> {code:java}
>        131  2020-01-11 06:18   META-INF/JAXB/episode_generate%20schema.xjb{code}
> So the problem may as well be in the JAR file. Please tell me so, and I will report it
against camel (or can this report be moved around within Jira?).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message