4 Replies Latest reply on Feb 2, 2013 3:05 PM by Rodmar Conde

    Failed to build RichFaces 4 due to org.apache.maven.plugins:maven-checkstyle-plugin:2.5:check

    Rodmar Conde Newbie

      Hello, I'm getting this problem to build RichFaces while executing from the build directory:

       

       

      mvn clean install -P build

       

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.5:check (richfaces-checkstyle-report) on project richfaces-ui-iteration-ui:You have 6 Checkstyle violations. -> [Help 1]

       

      I've searched what to do in the discussions, I've found something about changing the maeven url.

       

      I've already changed the url of maven settings.xml but it still doesn't works.

       

      I've changed the url http://repository.jboss.org/nexus/content/groups/public/ to http://repository.jboss.org/nexus/content/groups/public-jboss/ without succes.

       

       

      This is the content of directory, Am I missing something ?

       

      archetypes
      build   (I execute the command inside this directory)

      cdk
      checkstyle
      components
      core
      dev-examples
      showcase

       

      Any help ? Is there any other way to obtain a RichFaces build ? What I want to do is to watch execution of richfaces components step by step (debug).

       

      Thank you !

        • 1. Re: Failed to build RichFaces 4 due to org.apache.maven.plugins:maven-checkstyle-plugin:2.5:check
          Pavol Pitonak Master

          Hi,

           

          which version of RichFaces are you building? Please try with latest 4.3.0.Final (git tag 4.3.0.20130130-Final).

           

          Regards,

          Palo

          • 2. Re: Failed to build RichFaces 4 due to org.apache.maven.plugins:maven-checkstyle-plugin:2.5:check
            Rodmar Conde Newbie

            Hello Pavol,

             

            I update to version 4.3.0.20130130-Final and I still get the same message:

             

            Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.5:check (richfaces-checkstyle-report) on project richfaces-arquillian: Execution richfaces-checkstyle-report of goal org.apache.maven.plugins:maven-checkstyle-plugin:2.5:check failed: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.5 or one of its dependencies could not be resolved: Failure to find org.richfaces:richfaces-build-checkstyle:jar:5 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

             

             

             

            This is my settings.xml file:

             

            <profiles>

                <profile>

            <id>jboss-public-repository</id>

            <repositories>

             

            <repository>

                  <id>jboss-public-repository-group</id>

                  <name>JBoss Public Repository Group</name>

                  <url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url>

                  <layout>default</layout>

                  <releases>

                    <enabled>true</enabled>

                    <updatePolicy>never</updatePolicy>

                  </releases>

                  <snapshots>

                    <enabled>true</enabled>

                    <updatePolicy>never</updatePolicy>

                  </snapshots>

                </repository>

              </repositories>

             

              <pluginRepositories>

                <pluginRepository>

                  <id>jboss-public-repository-group</id>

                  <name>JBoss Public Repository Group</name>

                  <url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url>

            <layout>default</layout>

                  <releases>

                    <enabled>true</enabled>

            <updatePolicy>never</updatePolicy>

                  </releases>

                  <snapshots>

                    <enabled>true</enabled>

            <updatePolicy>never</updatePolicy>

                  </snapshots>

                </pluginRepository>

              </pluginRepositories>

            </profile>

              </profiles>

             

            <activeProfiles>

                <activeProfile>jboss-public-repository</activeProfile>

              </activeProfiles>

             

             

            I also tried:

             

            mvn -DskipTests=true -Dcheckstyle.skip=true clean install -P build

             

            but I get the same error.

             

            Any other ideas ?

             

            Regards,

            Rodmar

            • 3. Re: Failed to build RichFaces 4 due to org.apache.maven.plugins:maven-checkstyle-plugin:2.5:check
              Rodmar Conde Newbie

              I tried changing the directory. Now I'm inside sandbox directory and I get this error:

               

              [ERROR] Plugin org.richfaces.cdk:maven-cdk-plugin:4.3.0-SNAPSHOT or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.richfaces.cdk:maven-cdk-plugin:jar:4.3.0-SNAPSHOT: Could not find artifact org.richfaces.cdk:maven-cdk-plugin:pom:4.3.0-SNAPSHOT -> [Help 1]

               

              Any ideas of what can be the problem ?

               

              Thank you !

              • 4. Re: Failed to build RichFaces 4 due to org.apache.maven.plugins:maven-checkstyle-plugin:2.5:check
                Rodmar Conde Newbie

                Ok, I found the problem (and solution):

                 

                I was executing maven command as root user while the file settings.xml with the correct repository configurations (http://repository.jboss.org/nexus/content/groups/public-jboss/) was in another users account....

                 

                I realized this while executing maven with debug information:

                 

                mvn -X clean install -P build

                 

                Therefore, changing user to the one that has the correct settings.xml worked perfectly!

                 

                However, it was neccessary to have this maven configuration to avoid a crash during the build process:

                 

                MAVEN_OPTS="-Xms256m -Xmx512m -XX:MaxPermSize=128m"

                 

                 

                Thank you

                 

                Rodmar