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.xuse jdk8(or1.8). - for mojarra
2.2.xuse jdk7(or1.7). - for mojarra
2.1.xuse jdk6(or1.6) (i haven't tested this).
download source
git://java.net/mojarra~git:git clone git://java.net/mojarra~gitnavigate new
mojarra~gitdirectory:cd mojarra~git/copy
build.properties.glassfishbuild.properties:cp build.properties.glassfish build.propertiesset
jsf.build.homeproperty inbuild.propertiesfile:jsf.build.home=/path/to/mojarrahere's (gnu)
sedcommand this:sed -i "s|jsf[.]build[.]home=.*|jsf.build.home=$pwd|" build.propertiesmojarra
2.3.xnote: skip step.run
antbuild mojarra build tools:ant main clean mainrun 1 of following
antcommands build mojarra:run following command if want build mojarra single
javax.faces.jar:ant clean main mvn.deploy.snapshot.localthe newly built mojarra jar located in
jsf-ri/build/mvn/targetjavax.faces-${mojarra.version}.jar.mojarra
2.3.xnote: the newly built jsf/mojarra api jar located injsf-api/build/mvn/targetasjavax.faces-api-${mojarra.version}.jar.mojarra
2.3.xnote: 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.localthe newly built mojarra api jar located in
jsf-api/build.pre-maven-rename/mvn-pre-maven-rename/targetjsf-api-${mojarra.version}.jar. newly built mojarra jar located injsf-ri/build.pre-maven-rename/mvn-pre-maven-rename/targetjsf-impl-${mojarra.version}.jar.
the mojarra snapshot jar(s) installed in local ~/.m2/ repository maven purposes.
Comments
Post a Comment