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/04/04 22:13:34 UTC

[jira] Commented: (MAVEN-1124) Add exit to maven.bat

The following comment has been added to this issue:

     Author: Bryan Davis
    Created: Sun, 4 Apr 2004 4:11 PM
       Body:
Hm.  I don't really understand why this is not a Maven issue.  My company's build machine only invokes Ant, so I have a build.xml which does an Ant <exec> to run the Maven command (.sh or .bat depending on platform).  Some time ago the builds for my project started always returning success, even when they have failed.

I've been a staunch proponent of Maven (against much resistance I might add) at my company.  This issue was highly visible... and not in a good way.  As you might imagine, failed builds that no one knows about are pretty serious.

All I know is that this used to work, the build machine has not been OS upgraded to XP or anything, and the EXIT %ERRORLEVEL% seems to fix the problem (although with the aforementioned nasty side-effects if you are running Maven in a CMD window yourself).

Could someone at least take the time to explain why this isn't a Maven bug?  Stuff like this may sound trivial but I can assure you that it is not.  The fact of the matter is that most people use and are familiar with Ant, so making Maven seamlessly callable from Ant is a pretty big requirement.  The Maven Ant task seems to be outdated (I spent quite a bit of time trying to get it to work but never solved forehead-related classloader issues).
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1124&page=comments#action_18162

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1124

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1124
    Summary: Add exit to maven.bat
       Type: Improvement

     Status: Closed
   Priority: Trivial
 Resolution: WON'T FIX

 Original Estimate: 1 minute
 Time Spent: Unknown
  Remaining: 1 minute

    Project: maven
 Components: 
             core
   Fix Fors:
             1.0-rc3

   Assignee: 
   Reporter: Ronald Blaschke

    Created: Thu, 22 Jan 2004 5:59 AM
    Updated: Sun, 4 Apr 2004 4:11 PM
Environment: Windows (XP)

Description:
Windows (XP) seems to not propagate the last ERRORLEVEL in batch files.  Thus, when calling maven.bat from an ant build file, ant reports success, even when maven fails.

...
1 error
2 warnings
BUILD FAILED

Total time: 6 seconds
Finished at: Thu Jan 22 11:49:10 CET 2004

File...... file:/C:/Documents and Settings/user/.maven/plugins/maven-test-plugin-1
.4/
Element... javac
Line...... 34
Column.... 46
Compile failed; see the compiler error output for details.



BUILD SUCCESSFUL
Total time: 8 seconds


---------------------------------------------------------------------
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