ali-rezvani / onejar-maven-plugin

Maven onejar plugin
0 stars 0 forks source link

Can this be used under Java 1.5? #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello, 

I am trying to run mvn install against java 1.5 and it doesn't seem to work. I 
am getting 

"
[ERROR] Failed to execute goal com.jolira:onejar-maven-plugin:1.4.4:one-jar 
(default) on project BulkMigrationM02: Execution default of goal com.jolira:one
jar-maven-plugin:1.4.4:one-jar failed: Unable to load the mojo 'one-jar' in the 
plugin 'com.jolira:onejar-maven-plugin:1.4.4' due to an API incompatibility
: org.codehaus.plexus.component.repository.exception.ComponentLookupException: 
Bad version number in .class file
"

On the other hand when I am running same command for java 1.7 it's running ok.

Is java 5 not supported? Any workarounds for this?

Thanks.

What version of onejar-maven-plugin are you using?
1.4.4

What is the output of "mvn -version" on your machine?
Apache Maven 3.0.3 (r1075438; 2011-02-28 17:31:09+0000)
Maven home: 
C:\instant_energy_files\instant_energy_cvs\instant_energy\trunk\build\apache-mav
en-3.0.3
Java version: 1.5.0_22, vendor: Sun Microsystems Inc.
Java home: C:\Program Files (x86)\Java\jdk1.5.0_22\jre
Default locale: en_GB, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
C:\Users\kaliakoudass>

Original issue reported on code.google.com by sendmeam...@gmail.com on 20 Dec 2013 at 1:50