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 jdk8
(or1.8
). - for mojarra
2.2.x
use jdk7
(or1.7
). - for mojarra
2.1.x
use jdk6
(or1.6
) (i haven't tested this).
download source
git://java.net/mojarra~git
:git clone git://java.net/mojarra~git
navigate new
mojarra~git
directory:cd mojarra~git/
copy
build.properties.glassfish
build.properties
:cp build.properties.glassfish build.properties
set
jsf.build.home
property inbuild.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
mojarra
2.3.x
note: skip step.run
ant
build mojarra build tools:ant main clean main
run 1 of following
ant
commands build mojarra: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 injsf-api/build/mvn/target
asjavax.faces-api-${mojarra.version}.jar
.mojarra
2.3.x
note: this command may not work mojarra2.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 injsf-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
Post a Comment