0 Replies Latest reply on Feb 17, 2010 11:51 AM by Renato Bellia

    problems with richfaces-demo-jsf2-3.3.3-20100217.084415-58.pom

    Renato Bellia Newbie

      Hello,

       

      I'm trying richfaces/jsf2 demo from

      http://snapshots.jboss.org/maven2/org/richfaces/samples/richfaces-demo-jsf2/3.3.3-SNAPSHOT/richfaces-demo-jsf2-3.3.3-20100217.084415-58.pom

       

      My environment is: JDK 6, Maven 2.2.1

      I downloaded the pom file (as suggested here: http://community.jboss.org/wiki/RichFaces333andJSF20) to an empty dir, renamed it to pom.xml.

       

      But i get the following error:

       

      mvn -e
      + Error stacktraces are turned on.
      [INFO] Scanning for projects...
      [INFO] ------------------------------------------------------------------------
      [INFO] Building richfaces-demo Maven Webapp
      [INFO]    task-segment: [jetty:run]
      [INFO] ------------------------------------------------------------------------
      [INFO] Preparing jetty:run
      [INFO] [dependency:unpack {execution: unpack}]
      [INFO] Configured Artifact: org.richfaces.ui:richfaces-ui:3.3.3-SNAPSHOT:jar
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Unable to find artifact.

       

      Embedded error: Unable to download the artifact from any repository

       

      Try downloading the file manually from the project website.

       

      Then, install it using the command:
          mvn install:install-file -DgroupId=org.richfaces.ui -DartifactId=richfaces-ui -Dversion=3.3.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

       

      Alternatively, if you host your own repository you can deploy the file there:
          mvn deploy:deploy-file -DgroupId=org.richfaces.ui -DartifactId=richfaces-ui -Dversion=3.3.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

       


        org.richfaces.ui:richfaces-ui:jar:3.3.3-SNAPSHOT

       

      from the specified remote repositories:
        repository.jboss.com (http://repository.jboss.com/maven2/),
        central (http://repo1.maven.org/maven2),
        repository.jboss.org (http://repository.jboss.org/maven2),
        maven2-repository.dev.java.net (http://download.java.net/maven/2/),
        maven-repository.dev.java.net (http://download.java.net/maven/1)

       

      I managed it by adding the following in the pom file:

       

          <repository>
              <id>snapshots.jboss.org</id>
              <name>Jboss Snapshot Repository for Maven</name>
              <url>http://snapshots.jboss.org/maven2</url>
          </repository>


      However, the project lacks some directory entries:

       

      mvn -e
      + Error stacktraces are turned on.
      [INFO] Scanning for projects...
      [INFO] ------------------------------------------------------------------------
      [INFO] Building richfaces-demo Maven Webapp
      [INFO]    task-segment: [jetty:run]
      [INFO] ------------------------------------------------------------------------
      [INFO] Preparing jetty:run
      [INFO] [dependency:unpack {execution: unpack}]
      [INFO] Configured Artifact: org.richfaces.ui:richfaces-ui:3.3.3-SNAPSHOT:jar
      [INFO] snapshot org.richfaces.ui:richfaces-ui:3.3.3-SNAPSHOT: checking for updates from snapshots.jboss.org
      Downloading: http://snapshots.jboss.org/maven2/org/richfaces/ui/richfaces-ui/3.3.3-SNAPSHOT/richfaces-ui-3.3.3-20100217.061226-98.jar
      4336K downloaded  (richfaces-ui-3.3.3-20100217.061226-98.jar)
      [INFO] Unpacking /home/theuser/.m2/repository/org/richfaces/ui/richfaces-ui/3.3.3-SNAPSHOT/richfaces-ui-3.3.3-SNAPSHOT.jarto
      /home/theuser/java/richfaces-demo-jsf2/target/richfaces
      with Includes null and excludes:null
      [INFO] [resources:resources {execution: default-resources}]
      [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
      [INFO] skip non existing resourceDirectory /home/theuser/java/richfaces-demo-jsf2/src/main/resources
      [INFO] Preparing exec:java
      [WARNING] Removing: java from forked lifecycle, to prevent recursive invocation.
      [INFO] No goals needed for project - skipping
      Downloading: http://snapshots.jboss.org/maven2/org/richfaces/ui/richfaces-ui/3.3.3-SNAPSHOT/richfaces-ui-3.3.3-20100217.061226-98.pom
      14K downloaded  (richfaces-ui-3.3.3-20100217.061226-98.pom)
      [INFO] snapshot org.richfaces:ui:3.3.3-SNAPSHOT: checking for updates from snapshots.jboss.org
      Downloading: http://snapshots.jboss.org/maven2/org/richfaces/ui/3.3.3-SNAPSHOT/ui-3.3.3-20100217.061226-120.pom
      7K downloaded  (ui-3.3.3-20100217.061226-120.pom)

      [INFO] [exec:java {execution: tlddoc}]
      Loading and translating 2 Tag Libraries...
      Generating docs for Ajax4Jsf...
      Generating docs for RichFaces...

      Documentation generated.  If your tag library is intended for public use,
      please add it to the repository at http://taglibrarydoc.dev.java.net/
      [INFO] [compiler:compile {execution: default-compile}]
      [INFO] No sources to compile
      [INFO] [resources:testResources {execution: default-testResources}]
      [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
      [INFO] skip non existing resourceDirectory /home/theuser/java/richfaces-demo-jsf2/src/test/resources
      [INFO] [compiler:testCompile {execution: default-testCompile}]
      [INFO] No sources to compile
      [INFO] [jetty:run {execution: default-cli}]
      [INFO] Configuring Jetty for project: richfaces-demo Maven Webapp
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Webapp source directory /home/theuser/java/richfaces-demo-jsf2/src/main/webapp does not exist
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      org.apache.maven.lifecycle.LifecycleExecutionException: Webapp source directory /home/theuser/java/richfaces-demo-jsf2/src/main/webapp does not exist
          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
          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:

          ...
      Caused by: org.apache.maven.plugin.MojoExecutionException: Webapp source directory /home/theuser/java/richfaces-demo-jsf2/src/main/webapp does not exist
          at org.mortbay.jetty.plugin.AbstractJettyRunMojo.checkPomConfiguration(AbstractJettyRunMojo.java:225)
          at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:382)
          at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
          at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
          at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
          ... 17 more
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 40 seconds
      [INFO] Finished at: Wed Feb 17 14:44:03 BRST 2010
      [INFO] Final Memory: 24M/82M
      [INFO] ------------------------------------------------------------------------

       

      Is there some configuration step missing ?

       

      Regards,

      Renato