-
1. Re: Failed to build RichFaces 4 due to org.apache.maven.plugins:maven-checkstyle-plugin:2.5:check
ppitonak Feb 1, 2013 8:18 AM (in response to rodmarcm)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
rodmarcm Feb 1, 2013 10:52 AM (in response to ppitonak)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
rodmarcm Feb 2, 2013 11:22 AM (in response to rodmarcm)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
rodmarcm Feb 2, 2013 3:05 PM (in response to rodmarcm)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