I am trying to build an EAR with Maven 1.0.2 and jdk 1.3.1.
One of the goal fails while replacing a text in the file, the details of which are given below.
maven.xml>>>
File contents where the text is to be replaced: VersionInfo.java>>
The build is successful with jdk 1.4.
I refered ReplaceRegExp.java the API suggests:
For jdk <= 1.3, there are two available implementations:
* org.apache.tools.ant.util.regexp.JakartaOroRegexp (the default)
* Requires the jakarta-oro package
*
* org.apache.tools.ant.util.regexp.JakartaRegexpRegexp
* Requires the jakarta-regexp package
*
* For jdk >= 1.4 an additional implementation is available:
* org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp
* Requires the jdk 1.4 built in regular expression package.
Hence, I tried the following:
maven -Dant.regexp.regexpimp=org.apache.tools.ant.util.regexp.JakartaOroRegexp install