15,000 Jobs Available in:
Java, ASP, C#, PHP, SQL, SAP, MySQL and many more.
- Class Quick -
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven 1.0.2 :  <replaceregexp> No expression to match. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Maven 1.0.2 :  <replaceregexp> No expression to match." Watch "Maven 1.0.2 :  <replaceregexp> No expression to match." New topic
Author

Maven 1.0.2 : <replaceregexp> No expression to match.

Ketan Mohite
Ranch Hand

Joined: Feb 14, 2006
Posts: 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.
 
 
subject: Maven 1.0.2 : <replaceregexp> No expression to match.
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture