You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/10/04 17:59:51 UTC

[jira] Commented: (MAVEN-1413) StackOverflowError in maven:reactor when invoking Maven from Ant

The following comment has been added to this issue:

     Author: Jeff French
    Created: Mon, 4 Oct 2004 11:57 AM
       Body:
Looks like the problem is in how the undefined property is passed from Ant to Maven. The special characters "${}" must be causing a problem. When using Maven 1.0, you can handle empty properties by quoting them like this:

      <arg value='-Dmdb.version="${mdb.version}"'/> 


---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MAVEN-1413?page=comments#action_24914

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MAVEN-1413

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1413
    Summary: StackOverflowError in maven:reactor when invoking Maven from Ant
       Type: Bug

     Status: Unassigned
   Priority: Minor

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
   Versions:
             1.0

   Assignee: 
   Reporter: Jeff French

    Created: Tue, 3 Aug 2004 3:46 PM
    Updated: Mon, 4 Oct 2004 11:57 AM
Environment: Mandrake 9.0, JDK 1.4.2, Maven 1.0 final, Ant 1.5.3-1, AnthillOS 1.6.3.67. Of these, only the Maven version has changed in the past several months.

Description:
I use Anthill for my build tool. Since it does not run Maven directly, I use an Ant build.xml wrapper around Maven. This worked fine through RC4, but started giving a StackOverflowError in maven:reactor after upgrading to 1.0 Final. I've traced it down to the following.

In my Ant wrapper:

  <target name="maven" depends="init">
    <exec executable="${maven.cmd}" vmlauncher="true" failonerror="true">
      <arg value="-d" />
      <arg value="${project.dir}" />
      <arg value="-Dmdb.version=${mdb.version}"/>
      <arg value="${goal}"/>
    </exec>
  </target>

If mdb.version has a value, this works. If mdb.version is not defined, I get the StackOverflowError for 1.0 Final, but not RC4.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org