[
https://issues.apache.org/jira/browse/FELIX-3037?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Work on FELIX-3037 started by Stuart McCulloch.
> Plugin does not work with Java 5
> --------------------------------
>
> Key: FELIX-3037
> URL: https://issues.apache.org/jira/browse/FELIX-3037
> Project: Felix
> Issue Type: Bug
> Components: Maven Bundle Plugin
> Affects Versions: maven-bundle-plugin-2.3.5
> Reporter: Carsten Ziegeler
> Assignee: Stuart McCulloch
> Fix For: maven-bundle-plugin-2.3.6
>
>
> When trying to build projects with the latest maven bundle plugin and Java 5,
> I get:
> INFO]
> [INFO] --- maven-bundle-plugin:2.3.5:bundle (default-bundle) @
> org.apache.felix.eventadmin ---
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 19.227s
> [INFO] Finished at: Wed Jul 13 16:01:41 CEST 2011
> [INFO] Final Memory: 8M/21M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.felix:maven-bundle-plugin:2.3.5:bundle (default-bundle) on project
> org.apache.felix.eventadmin: Execution default-bundle of goal
> org.apache.felix:maven-bundle-plugin:2.3.5:bundle failed: An API
> incompatibility was encountered while executing
> org.apache.felix:maven-bundle-plugin:2.3.5:bundle:
> java.lang.NoSuchMethodError:
> java.lang.String.getBytes(Ljava/nio/charset/Charset;)[B
> [ERROR] -----------------------------------------------------
> [ERROR] realm = plugin>org.apache.felix:maven-bundle-plugin:2.3.5
> [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] =
> file:/Users/cziegeler/.m2/repository/org/apache/felix/maven-bundle-plugin/2.3.5/maven-bundle-plugin-2.3.5.jar
> [ERROR] urls[1] =
> file:/Users/cziegeler/.m2/repository/biz/aQute/bndlib/1.43.0/bndlib-1.43.0.jar
> [ERROR] urls[2] =
> file:/Users/cziegeler/.m2/repository/org/apache/felix/org.apache.felix.bundlerepository/1.6.6/org.apache.felix.bundlerepository-1.6.6.jar
> [ERROR] urls[3] =
> file:/Users/cziegeler/.m2/repository/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar
> [ERROR] urls[4] =
> file:/Users/cziegeler/.m2/repository/org/easymock/easymock/2.4/easymock-2.4.jar
> [ERROR] urls[5] =
> file:/Users/cziegeler/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.7/maven-reporting-api-2.0.7.jar
> [ERROR] urls[6] =
> file:/Users/cziegeler/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.jar
> [ERROR] urls[7] =
> file:/Users/cziegeler/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
> [ERROR] urls[8] =
> file:/Users/cziegeler/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
> [ERROR] urls[9] =
> file:/Users/cziegeler/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
> [ERROR] urls[10] =
> file:/Users/cziegeler/.m2/repository/org/apache/maven/maven-archiver/2.4.1/maven-archiver-2.4.1.jar
> [ERROR] urls[11] =
> file:/Users/cziegeler/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0/plexus-archiver-1.0.jar
> [ERROR] urls[12] =
> file:/Users/cziegeler/.m2/repository/org/codehaus/plexus/plexus-io/1.0/plexus-io-1.0.jar
> [ERROR] urls[13] =
> file:/Users/cziegeler/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.13/plexus-interpolation-1.13.jar
> [ERROR] urls[14] =
> file:/Users/cziegeler/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
> [ERROR] urls[15] =
> file:/Users/cziegeler/.m2/repository/org/codehaus/plexus/plexus-utils/2.1/plexus-utils-2.1.jar
> [ERROR] Number of foreign imports: 1
> [ERROR] import: Entry[import from realm
> ClassRealm[project>org.apache.felix:org.apache.felix.eventadmin:1.2.13-SNAPSHOT,
> parent: ClassRealm[maven.api, parent: null]]]
> This can be reproduced for example with the Felix EventAdmin project
> Switching to Java 6 solves the problem.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira