maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Don Corley (JIRA)" <>
Subject [jira] Commented: (MRESOURCES-116) maven-resources-plugin corrupts my class file on move
Date Fri, 15 Jan 2010 10:41:55 GMT


Don Corley commented on MRESOURCES-116:

Oh, I am using
mvn install
to build this project

> maven-resources-plugin corrupts my class file on move
> -----------------------------------------------------
>                 Key: MRESOURCES-116
>                 URL:
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>    Affects Versions: 2.4.1
>         Environment: Linux, jdk 1.6.0_17, maven 2.2.1
>            Reporter: Don Corley
>         Attachments: pom.xml
> I'm trying to create a copy of my class files and they seem to get corrupted.
> I'm new to maven, so maybe I'm not understanding how it works.
> To recreate this bug, create the simple maven project:
> mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart
-DarchetypeVersion=1.0 -DgroupId=com.example -DartifactId=zjar
> Now, add this maven-resources-plugin from the
page to the pom.
> Change the source directory to target/classes and the phase to package (since I want
this to run after compile)
> My new pom is attached.
> Now,
> cd target/extra-resources
> java -cp . com.example.App
> gives me Incompatible magic value error. The weird thing is the class in the target/classes
directory is fine.
> Thanks

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message