The most intelligent Java IDE
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Reply Bookmark it! Watch this topic JavaRanch » Forums » Engineering » Ant, Maven and Other Build Tools
 
RSS feed
 
New topic
Author

Maven 1.0.2 : <replaceregexp> No expression to match.

Ketan Mohite
Ranch Hand

Joined: Feb 14, 2006
Messages: 45

Hello,

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

maven -Dant.regexp.regexpimp=org.apache.tools.ant.util.regexp.JakartaRegexpRegexp install

Still the error continues. Please share your suggestions.

Thanks in advance.
 
jQuery in Action
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Engineering » Ant, Maven and Other Build Tools
 
RSS feed
 
New topic
JProfiler
Get rid of your performance problems and memory leaks!