2 Replies Latest reply on Jul 8, 2019 6:21 AM by Michal Petrov

    Can't build RF 3.3.4

    John Manko Newbie

      I'm attempting to build Richfaces 3.3.4 from richfaces - Revision 23293: /branches/community/release-3.3.4 , but ran into a few problems.

       

      First, the repos listed in the root pom no longer exist:

       

      Original:

           <repositories>           <repository>                <releases />                <snapshots>                     <enabled>false</enabled>                     <updatePolicy>never</updatePolicy>                </snapshots>                <id>maven-repository.dev.java.net</id>                <name>Java.net Repository for Maven</name>                <url>http://download.java.net/maven/1</url>                <layout>legacy</layout>           </repository>           <repository>                <releases />                <snapshots>                     <enabled>false</enabled>                     <updatePolicy>never</updatePolicy>                </snapshots>                <id>maven2-repository.dev.java.net</id>                <name>Java.net Repository for Maven</name>                <url>http://download.java.net/maven/2/</url>                <layout>default</layout>           </repository>           <repository>                <releases />                <snapshots>                     <enabled>false</enabled>                     <updatePolicy>never</updatePolicy>                </snapshots>                <id>repository.jboss.org</id>                <url>http://repository.jboss.org/maven2</url>           </repository>      </repositories>     <pluginRepositories>       <pluginRepository>         <id>atlassian-m2-repository</id>         <name>Atlassian Maven 2.x Repository</name>         <url>http://repository.atlassian.com/maven2</url>       </pluginRepository>     </pluginRepositories>     

       

      Updated:

      <repositories>      <repository>           <releases />           <snapshots>                <enabled>false</enabled>                <updatePolicy>never</updatePolicy>           </snapshots>           <id>repository.jboss.org</id>           <url>http://repository.jboss.org/maven2</url>      </repository> </repositories> <pluginRepositories>      <pluginRepository>           <id>atlassian-m2-repository</id>           <name>Atlassian Maven 2.x Repository</name>           <url>https://packages.atlassian.com/repository/public/</url>      </pluginRepository> </pluginRepositories>

      I can't get past building Java Server Faces AJAX framework:

      [ERROR] Error on generate component

      java.lang.NullPointerException

          at org.ajax4jsf.builder.mojo.GenerateMojo.createConfig (GenerateMojo.java:277)

          at org.ajax4jsf.builder.mojo.GenerateMojo.execute (GenerateMojo.java:99)

          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)

          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)

          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)

          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)

          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)

          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)

          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)

          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)

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

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

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

          at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)

          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)

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

          at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke (Method.java:498)

          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)

          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)

          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)

          at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

       

      [ERROR] Failed to execute goal org.richfaces.cdk:maven-cdk-plugin:3.3.4.Final:generate (default) on project core: Error in component generation: NullPointerException -> [Help 1]

      [ERROR]

      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

      [ERROR] Re-run Maven using the -X switch to enable full debug logging.

      [ERROR]

      [ERROR] For more information about the errors and possible solutions, please read the following articles:

      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

        • 1. Re: Can't build RF 3.3.4
          John Manko Newbie

          Starting with a clean copy of the project, here is the output when only changing the repos like above (previously I added a missing "compress" directory to the framework/impl/target directory just to get past a previous error.):

           

          mvn -X  compile:

           

          [ERROR] Failed to execute goal org.richfaces.cdk:maven-javascript-plugin:3.3.4.Final:compress (default) on project richfaces-impl: Execution default of goal org.richfaces.cdk:maven-javascript-plugin:3.3.4.Final:compress failed: basedir /home/john/projects/third-party-custom/richfaces/framework/impl/target/compressed does not exist -> [Help 1]

          org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.richfaces.cdk:maven-javascript-plugin:3.3.4.Final:compress (default) on project richfaces-impl: Execution default of goal org.richfaces.cdk:maven-javascript-plugin:3.3.4.Final:compress failed: basedir /home/john/projects/third-party-custom/richfaces/framework/impl/target/compressed does not exist

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)

              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)

              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)

              at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)

              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)

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

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

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

              at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)

              at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)

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

              at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke (Method.java:498)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)

              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)

              at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)

          Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal org.richfaces.cdk:maven-javascript-plugin:3.3.4.Final:compress failed: basedir /home/john/projects/third-party-custom/richfaces/framework/impl/target/compressed does not exist

              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:148)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)

              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)

              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)

              at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)

              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)

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

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

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

              at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)

              at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)

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

              at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke (Method.java:498)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)

              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)

              at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)

          Caused by: java.lang.IllegalStateException: basedir /home/john/projects/third-party-custom/richfaces/framework/impl/target/compressed does not exist

              at org.codehaus.plexus.util.DirectoryScanner.scan (DirectoryScanner.java:542)

              at net.sf.alchim.mojo.yuicompressor.Aggregation.addInto (Aggregation.java:89)

              at net.sf.alchim.mojo.yuicompressor.Aggregation.getIncludedFiles (Aggregation.java:79)

              at net.sf.alchim.mojo.yuicompressor.Aggregation.run (Aggregation.java:46)

              at net.sf.alchim.mojo.yuicompressor.YuiCompressorMojo.afterProcess (YuiCompressorMojo.java:153)

              at net.sf.alchim.mojo.yuicompressor.MojoSupport.execute (MojoSupport.java:139)

              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)

              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)

              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)

              at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)

              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)

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

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

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

              at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)

              at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)

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

              at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke (Method.java:498)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)

              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)

              at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)

           

          mvn -X generate-sources:

           

          [ERROR] Failed to execute goal org.richfaces.cdk:maven-cdk-plugin:3.3.4.Final:generate (default) on project core: Error in component generation: NullPointerException -> [Help 1]

          org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.richfaces.cdk:maven-cdk-plugin:3.3.4.Final:generate (default) on project core: Error in component generation

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)

              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)

              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)

              at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)

              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)

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

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

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

              at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)

              at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)

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

              at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke (Method.java:498)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)

              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)

              at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)

          Caused by: org.apache.maven.plugin.MojoExecutionException: Error in component generation

              at org.ajax4jsf.builder.mojo.GenerateMojo.execute (GenerateMojo.java:248)

              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)

              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)

              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)

              at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)

              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)

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

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

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

              at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)

              at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)

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

              at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke (Method.java:498)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)

              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)

              at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)

          Caused by: java.lang.NullPointerException

              at org.ajax4jsf.builder.mojo.GenerateMojo.createConfig (GenerateMojo.java:277)

              at org.ajax4jsf.builder.mojo.GenerateMojo.execute (GenerateMojo.java:99)

              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)

              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)

              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)

              at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)

              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)

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

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

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

              at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)

              at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)

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

              at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke (Method.java:498)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)

              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)

              at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)

          • 2. Re: Can't build RF 3.3.4
            Michal Petrov Master

            There is some patching required to build this with newer versions of maven, try this. (Repositories shouldn't be a problem as maven will simply ignore them if they don't work.)