#12 maven-nsis-plugin fails on JDK 1.4.2

open-fixed
5
2009-03-10
2008-04-24
Joerg Schaible
No

The maven-nsis-plugin fails on JDK 1.4.2 although it is compiled alt least for 1.4 compatibility since it uses methods of JDK 1.5:

[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] java.lang.String.contains(Ljava/lang/CharSequence;)Z
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.NoSuchMethodError: java.lang.String.contains(Ljava/lang/CharSequence;)Z
at com.mindtree.techworks.insight.releng.mvn.nsis.actions.LoadDefaultsAction.resolveMavenVariables(LoadDefaultsAction.java:240)
at com.mindtree.techworks.insight.releng.mvn.nsis.actions.LoadDefaultsAction.loadInstallerSettingDefaults(LoadDefaultsAction.java:105)
at com.mindtree.techworks.insight.releng.mvn.nsis.actions.LoadDefaultsAction.execute(LoadDefaultsAction.java:77)
at com.mindtree.techworks.insight.releng.mvn.nsis.mojos.AbstractNsisMojo.execute(AbstractNsisMojo.java:128)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

Discussion

  • Bindul Bhowmik
    Bindul Bhowmik
    2009-03-09

    • labels: --> maven-nsis-plugin
    • assigned_to: nobody --> bindul
    • status: open --> open-accepted
     
  • Bindul Bhowmik
    Bindul Bhowmik
    2009-03-10

    • status: open-accepted --> open-fixed
     
  • Bindul Bhowmik
    Bindul Bhowmik
    2009-03-10

    Fixed on branch: maven-nsis-plugin-0.2.0
    Revision: 197 (http://mindtreeinsight.svn.sourceforge.net/viewvc/mindtreeinsight?view=rev&revision=197).

    We have made the maven plug-ins JRE 1.4.2 compatible. At a later point JRE 1.5 may be made mandatory when the world moves on a little bit.

    This will be available from 0.2.0 release of the maven-nsis-plugin.