java - How to build Mojarra from source -


i downloaded mojarra source code here. downloaded pom file build source code files. turns out code structure different original , need create directories , files there.

i created directory structure:

laptop@laptop javax.faces-2.1.9-sources]$ tree  . |-- pom.xml `-- src     `-- main         |-- java         |   |-- com         |   |   `-- sun         |   |       `-- faces ....(other sub directories)         |   `-- javax         |       `-- faces ....(other sub directories)         `-- resources             `-- meta-inf                 `-- manifest.mf 

i created directories src, main, java , resources , placed source code directories in directories it's not working. proper way place source code files the package?

best wishes

as of jan 16, 2017, can build mojarra using following steps:

note: building mojarra requires ant , maven installed on system. requires using correct jdk version:

  • for mojarra 2.3.x use jdk 8 (or 1.8).
  • for mojarra 2.2.x use jdk 7 (or 1.7).
  • for mojarra 2.1.x use jdk 6 (or 1.6) (i haven't tested this).

  1. download source git://java.net/mojarra~git:

    git clone git://java.net/mojarra~git 
  2. navigate new mojarra~git directory:

    cd mojarra~git/ 
  3. copy build.properties.glassfish build.properties:

    cp build.properties.glassfish build.properties 
  4. set jsf.build.home property in build.properties file:

    jsf.build.home=/path/to/mojarra 

    here's (gnu) sed command this:

    sed -i "s|jsf[.]build[.]home=.*|jsf.build.home=$pwd|" build.properties 
  5. mojarra 2.3.x note: skip step.

    run ant build mojarra build tools:

    ant main clean main 
  6. run 1 of following ant commands build mojarra:

    1. run following command if want build mojarra single javax.faces.jar:

      ant clean main mvn.deploy.snapshot.local 

      the newly built mojarra jar located in jsf-ri/build/mvn/target javax.faces-${mojarra.version}.jar.

      mojarra 2.3.x note: the newly built jsf/mojarra api jar located in jsf-api/build/mvn/target as javax.faces-api-${mojarra.version}.jar.

    2. mojarra 2.3.x note: this command may not work mojarra 2.3.x.

      run following command if want build mojarra 2 jars, jsf-api.jar , jsf-impl.jar:

      ant clean main mvn.pre-maven-rename.deploy.snapshot.local 

      the newly built mojarra api jar located in jsf-api/build.pre-maven-rename/mvn-pre-maven-rename/target jsf-api-${mojarra.version}.jar. newly built mojarra jar located in jsf-ri/build.pre-maven-rename/mvn-pre-maven-rename/target jsf-impl-${mojarra.version}.jar.

the mojarra snapshot jar(s) installed in local ~/.m2/ repository maven purposes.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -