Name | Description |
---|---|
RichFaces Repository | https://repository.jboss.org/maven2/org/richfaces |
RichFaces 3.3 Nuxeo Fork | https://github.com/nuxeo/richfaces-3.3 |
SupplyOn RichFaces Fixes | https://doc.supplyon.de/x/woWZBg |
-
Download and Install maven:
apache-maven-3.9.3
from: Apache Distribution Directory -
Download and Install
jdk1.5.0_12
from: Oracle Archive Download
Also archive could be found at:Project Shared Directory
:\\epam.com\Projects\Minsk\SLON-INIT\Software\java\jdk-1_5_0_12-windows-i586-p.exe
-
Copy
toolchnains.xml
to~/m2./toolchains.xml
copy toolchnains.xml ~/m2/toolchains.xml
- Copy
settings.xml
to~/m2/settings.xml
and setpassword
to correct value forepam-repository
copy settings.xml ~/m2/settings.xml
mvn clean package
- Publish project to epam-repository
Note: check that username/password was defined forepam-repository
in~/m2/settings.xml
mvn deploy
- Copy generated artifacts to permanent storage according to Adding new libraries to Artifactory. Path in Bit Bucket repository: RichFaces artifacts
-
Java
1.5.0_12
is used to build the projectframework/impl/pom.xml
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-toolchains-plugin</artifactId> <version>3.1.0</version> <executions> <execution> <goals> <goal>toolchain</goal> </goals> </execution> </executions> <configuration> <toolchains> <jdk> <version>1.5</version> <vendor>sun</vendor> </jdk> </toolchains> </configuration> </plugin>
-
scriptaculous.js
is assembled as concat of files:builder.js, effects.js, dragdrop.js, controls.js, slider.js, sound.js
using Apache Ant script:generatescript.xml
<concat append="false" binary="false" destfile="${target.dir}/${richfaces.scripts.path}/scriptaculous/scriptaculous.js" fixlastline="yes" eol="unix"> <filelist refid="scriptaculous"></filelist> </concat>
-
jquery.js
is assembled as concat of fies:jquery-3.7.0-patched.js, jquery.richfaces.js
-
JavaScript files are copied to
target
directory using Apache Ant scriptassemble-scripts.xml
<copy todir="${target.dir}/${ajax4jsf.scripts.path}"> <fileset dir="${source.dir}/${ajax4jsf.scripts.path}" includes="**/*.js"/> </copy> <copy todir="${target.dir}/${richfaces.scripts.path}"> <fileset dir="${source.dir}/${richfaces.scripts.path}" includes="**/*.js"/> </copy>
-
JavaScript files are compressed and concat into
framework.pack.js
file usingorg.richfaces.cdk:maven-javascript-plugin
pluginframework/impl/pom.xml
<plugin> <groupId>org.richfaces.cdk</groupId> <artifactId>maven-javascript-plugin</artifactId> <version>3.2.1.GA</version> <dependencies> <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-utils</artifactId> <version>1.4.9</version> </dependency> </dependencies> </plugin>
-
To switch
on
oroff
javascript files minification inframework.pack.js
use option<nomunge>false</nomunge>
or<nomunge>true</nomunge>
framework/impl/pom.xml
<executions> <execution> <goals> <goal>compress</goal> </goals> <configuration> <nosuffix>false</nosuffix> <!-- Uncomment to disable minification --> <!-- <nomunge>true</nomunge> --> <outputDirectory>${project.build.directory}/compressed/</outputDirectory>