2 Replies Latest reply on Mar 28, 2010 11:50 PM by Dan Allen

    Problems building any of the JSF Weld distro projects

    Arbi Sookazian Master

      I'm currently running Ubuntu 9.10.  I can't build any of the damn JSF examples! 


      mvn output below for login example.  I had to manually download and install the jsf-api.jar and jsf-impl.jar.  So apparently they're not in the classpath.  How can I fix this so I can build the project?  thx.


      asookazian@asookazian-desktop:/opt/weld-1.0.1-Final/examples/jsf/login:08:58 PM:$mvn
      [INFO] Scanning for projects...
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Weld Examples: Login
      [INFO]    task-segment: [package]
      [INFO] ------------------------------------------------------------------------
      [INFO] [enforcer:enforce {execution: enforce}]
      [INFO] [build-helper:maven-version {execution: default}]
      [INFO] [build-helper:parse-version {execution: default}]
      [INFO] [buildnumber:create {execution: set-build-properties}]
      [INFO] Checking for local modifications: skipped.
      [INFO] Updating project files from SCM: skipped.
      [INFO] Executing: /bin/sh -c cd /opt/weld-1.0.1-Final/examples/jsf/login && svn --non-interactive info
      [INFO] Working directory: /opt/weld-1.0.1-Final/examples/jsf/login
      Provider message:
      The svn command failed.
      Command output:
      svn: '.' is not a working copy
      
      [WARNING] Cannot get the revision information from the scm repository, proceeding with revision of unavailable : 
      Error!
      [INFO] Storing buildNumber: unavailable at timestamp: March 27, 2010 8:58:25 PM PDT
      [INFO] [resources:resources {execution: default-resources}]
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory /opt/weld-1.0.1-Final/examples/jsf/login/src/main/resources
      [INFO] [compiler:compile {execution: default-compile}]
      [INFO] Compiling 4 source files to /opt/weld-1.0.1-Final/examples/jsf/login/target/classes
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Compilation failure
      
      /opt/weld-1.0.1-Final/examples/jsf/login/src/main/java/org/jboss/weld/examples/login/Login.java:[9,30] package javax.faces.application does not exist
      
      /opt/weld-1.0.1-Final/examples/jsf/login/src/main/java/org/jboss/weld/examples/login/Login.java:[10,26] package javax.faces.context does not exist
      
      /opt/weld-1.0.1-Final/examples/jsf/login/src/main/java/org/jboss/weld/examples/login/Login.java:[35,35] cannot find symbol
      symbol  : class FacesMessage
      location: class org.jboss.weld.examples.login.Login
      
      /opt/weld-1.0.1-Final/examples/jsf/login/src/main/java/org/jboss/weld/examples/login/Login.java:[34,10] cannot find symbol
      symbol  : variable FacesContext
      location: class org.jboss.weld.examples.login.Login
      
      /opt/weld-1.0.1-Final/examples/jsf/login/src/main/java/org/jboss/weld/examples/login/Login.java:[42,32] cannot find symbol
      symbol  : class FacesMessage
      location: class org.jboss.weld.examples.login.Login
      
      /opt/weld-1.0.1-Final/examples/jsf/login/src/main/java/org/jboss/weld/examples/login/Login.java:[41,7] cannot find symbol
      symbol  : variable FacesContext
      location: class org.jboss.weld.examples.login.Login
      
      
      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 6 seconds
      [INFO] Finished at: Sat Mar 27 20:58:26 PDT 2010
      [INFO] Final Memory: 20M/115M
      [INFO] ------------------------------------------------------------------------
      



      well, it looks like jsf-impl.jar was not installed into the local mvn repo:


      asookazian@asookazian-desktop:~/.m2/repository/javax/faces:09:08 PM:$ls -la
      total 12
      drwxr-xr-x 3 asookazian asookazian 4096 2010-03-25 22:29 .
      drwxr-xr-x 9 asookazian asookazian 4096 2010-03-25 22:29 ..
      drwxr-xr-x 3 asookazian asookazian 4096 2010-03-25 22:30 jsf-api
      



      But I don't see the hint in the mvn output to run mvn install...