2 Replies Latest reply on Jan 31, 2011 6:52 AM by xminoxde

    Maven Dependency Resource Plugin produces errors

    xminoxde Newbie

      Hi,

       

      I am using this plugin with RichFaces version 3.3.3.Final. During resource concatenating phase occurs following error:

       

      [ERROR] Error process: org.ajax4jsf.renderkit.html.scripts.QueueScript

      org.ajax4jsf.renderkit.html.scripts.QueueScript.getPath()

      java.lang.NoSuchMethodException: org.ajax4jsf.renderkit.html.scripts.QueueScript.getPath()

              at java.lang.Class.getMethod(Class.java:1605)

              at org.richfaces.cdk.rd.generator.ResourcesGenerator.getResourceURL(ResourcesGenerator.java:93)

              at org.richfaces.cdk.rd.generator.ResourcesGenerator.iterate(ResourcesGenerator.java:73)

              at org.richfaces.cdk.rd.generator.ResourcesGenerator.doAssembly(ResourcesGenerator.java:61)

              at org.richfaces.cdk.rd.mojo.ResourceDependencyMojo.mergeResources(ResourceDependencyMojo.java:333)

              at org.richfaces.cdk.rd.mojo.ResourceDependencyMojo.execute(ResourceDependencyMojo.java:291)

              at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)

              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)

              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

              at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

              at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

              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.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)

       

      If I exclude affected script in my configuration:

       

      <scriptExcludes>

          <scriptExclude>org.ajax4jsf.renderkit.html.scripts.QueueScript</scriptExclude>

      </scriptExcludes>

       

      maven build runs through but AJAX Queues don't work with generated java script.

       

      Any idea ?

       

      Thanks,

      Milan