1 Reply Latest reply on May 15, 2008 2:55 AM by altfatterz

    building richfaces samples

    altfatterz

      Hi,

      I am using Richfaces 3.1.5-GA, Maven 2.0.9

      I tried to build the samples from the richfaces source package.
      I always receive this:

      Failed to resolve artifact.
      GroupId: org.ajax4jsf.cdk
      ArtifactId: maven-archetype-jsfwebapp
      Version: 1.1.1-SNAPSHOT
      Unable to download the artifact from any repository

      After reading some blogs I have added the following to settings.xml in my maven repository:

      <profile>
       <id>ajax4jsf</id>
       <repositories>
       <repository>
       <releases>
       <enabled>true</enabled>
       </releases>
       <snapshots>
       <enabled>false</enabled>
       <updatePolicy>never</updatePolicy>
       </snapshots>
       <id>repository.jboss.com</id>
       <name>Jboss Repository for Maven</name>
       <url>
       http://repository.jboss.com/maven2/
       </url>
       <layout>default</layout>
       </repository>
       <repository>
       <releases>
       <enabled>false</enabled>
       </releases>
       <snapshots>
       <enabled>true</enabled>
       <updatePolicy>always</updatePolicy>
       </snapshots>
       <id>maven.exadel.com</id>
       <name>Exadel Repository for Maven Snapshots</name>
       <url>http://maven.exadel.com/</url>
       <layout>default</layout>
       </repository>
       </repositories>
       <pluginRepositories>
       <pluginRepository>
       <id>maven.exadel.com</id>
       <name>Exadel Repository for Maven Snapshots</name>
       <url>http://maven.exadel.com/</url>
       <releases>
       <enabled>false</enabled>
       </releases>
       <snapshots>
       <enabled>true</enabled>
       <updatePolicy>always</updatePolicy>
       </snapshots>
       </pluginRepository>
       <pluginRepository>
       <releases>
       <enabled>true</enabled>
       </releases>
       <snapshots>
       <enabled>false</enabled>
       <updatePolicy>never</updatePolicy>
       </snapshots>
       <id>repository.jboss.com</id>
       <name>Jboss Repository for Maven</name>
       <url>
       http://repository.jboss.com/maven2/
       </url>
       <layout>default</layout>
       </pluginRepository>
       </pluginRepositories>
       </profile>


      an just after the
      </profiles>
      the following:

      <activeProfiles>
       <activeProfile>ajax4jsf</activeProfile>
      </activeProfiles>


      But still it can not download the artifact.

      The createProject.bat in the samples dir is the following:

      mvn archetype:create -DarchetypeGroupId=org.ajax4jsf.cdk -DarchetypeArtifactId=maven-archetype-jsfwebapp -DarchetypeVersion=1.1.1-SNAPSHOT -DgroupId=org.richfaces -DartifactId=%1

      I have two comments:
      - I have checked that the "create" goal is deprecated, and they are advising to use "generate".
      - I have changed the "archetypeVersion" from "1.1.1-SNAPSHOT" to "3.1.5-GA" to the version which I'm using.

      But still no success.

      Could you help me?

      Thanks