[cal10n-dev] [JIRA] Created: (CAL-18) maven-cal10n-plugin do not work with maven 3.0-beta1

Paul Merlin (JIRA) noreply-jira at qos.ch
Mon May 24 11:22:16 CEST 2010


maven-cal10n-plugin do not work with maven 3.0-beta1
----------------------------------------------------

                 Key: CAL-18
                 URL: http://jira.qos.ch/browse/CAL-18
             Project: CAL10N
          Issue Type: Bug
         Environment: linux
sun-jdk-1.6.18
apache-maven-3.0-beta1
            Reporter: Paul Merlin
            Assignee: Ceki Gulcu


The very same project using maven-cal10n-plugin verify goal works flawlessly with maven 2.2.1 but fails with 3.0-beta1.

It simply errors out with a ClassNotFoundException on the enumType given in the configuration.

Here is the stacktrace :


[ERROR] Failed to execute goal ch.qos.cal10n.plugins:maven-cal10n-plugin:0.7.2:verify (commons-resources-verifier) on project ekCommonsNG: Failed to instantiate MessageKeyVerifier class: InvocationTargetException: Failed to find enum class [my.resources.CommonsResources] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal ch.qos.cal10n.plugins:maven-cal10n-plugin:0.7.2:verify (commons-resources-verifier) on project ekCommonsNG: Failed to instantiate MessageKeyVerifier class
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:141)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:77)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:69)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:82)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:54)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.singleThreadedBuild(DefaultLifecycleExecutor.java:218)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:190)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:246)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:95)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:430)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:160)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:124)
        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:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to instantiate MessageKeyVerifier class
        at ch.qos.cal10n.plugins.VerifyMojo.getMessageKeyVerifierInstance(VerifyMojo.java:154)
        at ch.qos.cal10n.plugins.VerifyMojo.execute(VerifyMojo.java:90)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:105)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:133)
        ... 19 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at ch.qos.cal10n.plugins.VerifyMojo.getMessageKeyVerifierInstance(VerifyMojo.java:146)
        ... 22 more
Caused by: java.lang.IllegalStateException: Failed to find enum class [my.resources.CommonsResources]
        at ch.qos.cal10n.verifier.MessageKeyVerifier.<init>(MessageKeyVerifier.java:63)
        ... 27 more
Caused by: java.lang.ClassNotFoundException: my.resources.CommonsResources
        at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at ch.qos.cal10n.verifier.MessageKeyVerifier.<init>(MessageKeyVerifier.java:61)
        ... 27 more


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the cal10n-dev mailing list