Commit Graph

791 Commits

Author SHA1 Message Date
John Dennis Casey 0e5015360b PR: MNG-1666
Submitted By: John Casey

Fixed escaped expression handling in the plugin parameter expression evaluator. '$$' was not being replaced by '$' correctly.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@348489 13f79535-47bb-0310-9956-ffa450edef68
2005-11-23 17:01:09 +00:00
Jason van Zyl 02902d53a2 --------------------------------------------------------------
Issue: MNG-1470
     URL: http://jira.codehaus.org/browse/MNG-1470
 Summary: mvn can't calculate M2_HOME when mvn is a relative symlink
Reporter: Nicolás Lichtmaier (niqueco)
--------------------------------------------------------------

o patch applied
 


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@345559 13f79535-47bb-0310-9956-ffa450edef68
2005-11-18 20:12:21 +00:00
John Dennis Casey eb1651be3c Fixing CI. Had to move the addPlugin(..) call back to its original spot, and expose a new method in MavenProject to inject PluginManagement info to a Plugin instance that's passed in as a parameter.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@344294 13f79535-47bb-0310-9956-ffa450edef68
2005-11-15 02:38:33 +00:00
John Dennis Casey 9a0b2544f2 PR: MNG-1424
Fixing addPlugin(..) ordering relative to plugin verification from the lifecycle executor's getMojoDescriptor(..) method, which will ensure that pluginManagement versions take precedence over resolved plugin versions. I'm not sure how to test this  one yet, so I'm not adding anything in that regard yet.



git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@344257 13f79535-47bb-0310-9956-ffa450edef68
2005-11-14 22:55:49 +00:00
Emmanuel Venisse 4b310ef198 Add MAVEN_TERMINATE_CMD.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@332782 13f79535-47bb-0310-9956-ffa450edef68
2005-11-12 15:20:21 +00:00
John Dennis Casey ed7cc01b88 PR: MNG-699
Submitted By: Piotr Bzdyl
Reviewed By: John Casey

Applied portions of the patch that pertained to the lifecycle mappings and artifact handlers for ejb3/par. The implementations of these plugins is in the sandbox (or soon will be).

Thanks for the patch, Piotr!



git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@332151 13f79535-47bb-0310-9956-ffa450edef68
2005-11-09 21:36:10 +00:00
Brett Leslie Porter d848ba2acd PR: MNG-1232
Submitted by: Jerome Lacoste
avoid NPE in error reporting under some circumstances

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@330207 13f79535-47bb-0310-9956-ffa450edef68
2005-11-02 08:03:25 +00:00
Brett Leslie Porter 51650e5f15 PR: MNG-1271
Submitted by: Edwin Punzalan
improve error message when pom.xml not found and required


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@329996 13f79535-47bb-0310-9956-ffa450edef68
2005-11-01 07:07:44 +00:00
John Dennis Casey e244bc5072 Searching for the project-specified plugin instance, to get configuration...
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@328899 13f79535-47bb-0310-9956-ffa450edef68
2005-10-27 15:41:33 +00:00
John Dennis Casey 69fda56d91 Adding '$' as an escape character for variable-syntax which should be passed through.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@328885 13f79535-47bb-0310-9956-ffa450edef68
2005-10-27 14:47:55 +00:00
Brett Leslie Porter a9571267db PR: MNG-1244
Submitted by: Mark Hobson
Final fix for paths with spaces in the executable


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@328137 13f79535-47bb-0310-9956-ffa450edef68
2005-10-24 19:12:46 +00:00
Brett Leslie Porter d8d5807fae PR: MNG-1291
correct the executable name

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@327919 13f79535-47bb-0310-9956-ffa450edef68
2005-10-24 02:32:29 +00:00
Brett Leslie Porter ea8e16f26d PR: MNG-1244
Submitted by: Mark Hobson
make m2 wrapper script work under cygwin when there are spaces in the path


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@327899 13f79535-47bb-0310-9956-ffa450edef68
2005-10-24 01:10:00 +00:00
Brett Leslie Porter d7c3795f1c remove unused code
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@327887 13f79535-47bb-0310-9956-ffa450edef68
2005-10-23 23:58:31 +00:00
Brett Leslie Porter 56f566e79e clean some imports and unused code
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@327885 13f79535-47bb-0310-9956-ffa450edef68
2005-10-23 23:50:38 +00:00
Brett Leslie Porter 772bf37124 PR: MNG-1223
error out if there are duplicate modules in the reactor


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@327763 13f79535-47bb-0310-9956-ffa450edef68
2005-10-23 08:07:38 +00:00
Brett Leslie Porter 623efa6119 apply changes from tag maven-2.0 rev 326239
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@326240 13f79535-47bb-0310-9956-ffa450edef68
2005-10-18 21:01:19 +00:00
Brett Leslie Porter 2be4e802b2 don't echo commands
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@321473 13f79535-47bb-0310-9956-ffa450edef68
2005-10-15 19:17:11 +00:00
Brett Leslie Porter 5c3f720375 include mvn script
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@321458 13f79535-47bb-0310-9956-ffa450edef68
2005-10-15 19:01:49 +00:00
Brett Leslie Porter c51faea5d1 merg from tag up to r321409
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@321412 13f79535-47bb-0310-9956-ffa450edef68
2005-10-15 18:27:49 +00:00
Brett Leslie Porter ca0e872a5a - fix MojoFailureExceptionDiagnoser so that even under the reactor the long message is shown
- remove long message from BuildFailureException as it was only there for that reason, and caused dual diagnosis

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@320990 13f79535-47bb-0310-9956-ffa450edef68
2005-10-14 03:48:39 +00:00
Brett Leslie Porter c74d08fa48 if the plugin version is not working with this version of Maven, rollback until one is found.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@320983 13f79535-47bb-0310-9956-ffa450edef68
2005-10-14 02:57:13 +00:00
Brett Leslie Porter 156464c205 don't need extra message as the exception message is guaranteed to say that
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@320964 13f79535-47bb-0310-9956-ffa450edef68
2005-10-14 01:31:05 +00:00
John Dennis Casey ed17ce3aba Adding conditional logic to pull out root cause to a couple diagnosers.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@320918 13f79535-47bb-0310-9956-ffa450edef68
2005-10-13 21:03:54 +00:00
Brett Leslie Porter 1c7c34f027 more error diagnostics improvements
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@320869 13f79535-47bb-0310-9956-ffa450edef68
2005-10-13 18:49:19 +00:00
John Dennis Casey 62149297e4 Resolving: MNG-1150
Applied patch for configuring Wagon instances via DefaultWagonManager. I reworked the configuration exception to be a derivative of TransferFailedException, since it pertains to the WagonManager usage of maven-wagon.

Thanks to Juan Codagnone for the patch.



git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@320827 13f79535-47bb-0310-9956-ffa450edef68
2005-10-13 17:49:41 +00:00
Brett Leslie Porter b4cdb4a785 PR: MNG-122
cleanup formatting

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@320812 13f79535-47bb-0310-9956-ffa450edef68
2005-10-13 17:21:00 +00:00
Brett Leslie Porter a9f4d9f1e5 PR: MNG-122
fix fail at end

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@320809 13f79535-47bb-0310-9956-ffa450edef68
2005-10-13 17:05:41 +00:00
Brett Leslie Porter 11df168337 PR: MNG-122
final exception cleanup - reduce the noise in the lifecycle executor, get rid of response object in favour of exception handling from DefaultMaven.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@320797 13f79535-47bb-0310-9956-ffa450edef68
2005-10-13 16:36:54 +00:00
Brett Leslie Porter 1f638e6945 PR: MNG-122
finish cleanup artifact/plugin not found exception

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@320712 13f79535-47bb-0310-9956-ffa450edef68
2005-10-13 10:28:36 +00:00
Brett Leslie Porter 1f97932050 PR: MNG-122
cleanup artifact/plugin not found exception

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@320704 13f79535-47bb-0310-9956-ffa450edef68
2005-10-13 09:51:36 +00:00
Brett Leslie Porter 562facf5d2 PR: MNG-122
cleanup artifact metadata retrieval exceptions

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@320701 13f79535-47bb-0310-9956-ffa450edef68
2005-10-13 09:13:11 +00:00
Brett Leslie Porter 04e02209b1 PR: MNG-122
use real exceptions for repository metadata

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@320683 13f79535-47bb-0310-9956-ffa450edef68
2005-10-13 08:04:27 +00:00
Brett Leslie Porter 1901992586 PR: MNG-122
exception clean up phase 2

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@320675 13f79535-47bb-0310-9956-ffa450edef68
2005-10-13 06:50:22 +00:00
Brett Leslie Porter 5de6418c69 PR: MNG-122
exception clean up phase 1

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@320668 13f79535-47bb-0310-9956-ffa450edef68
2005-10-13 05:30:22 +00:00
Brett Leslie Porter 10a8e05df6 clean up project exception handling
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@314994 13f79535-47bb-0310-9956-ffa450edef68
2005-10-12 18:49:01 +00:00
John Dennis Casey c933da0504 Generalized error diagnosis for use outside of maven-core. This allows us to print diagnostic messages in the Ant tasks, for instance (these modifications are also included), and share diagnosers between multiple uses (maven-core, maven-artifact-ant, for example). This should help with MNG-784, but I'll verify that before I close it.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@314804 13f79535-47bb-0310-9956-ffa450edef68
2005-10-12 06:46:29 +00:00
Brett Leslie Porter 0497cc28e7 clarify
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@314802 13f79535-47bb-0310-9956-ffa450edef68
2005-10-12 06:35:11 +00:00
John Dennis Casey 41be861bed Adding code to flush the plugin collector when reloading the plugin container, so that discovery will proceed normally in the new container instance.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@314798 13f79535-47bb-0310-9956-ffa450edef68
2005-10-12 06:16:16 +00:00
John Dennis Casey 36c7208f9f Adding self-check for plugin version to the end of the resolution process, as a default.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@314797 13f79535-47bb-0310-9956-ffa450edef68
2005-10-12 06:15:28 +00:00
John Dennis Casey 06dc81b54e Cleaning up diagnosis output for MojoExecutionException's.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@314785 13f79535-47bb-0310-9956-ffa450edef68
2005-10-12 05:05:39 +00:00
Brett Leslie Porter 25f64b0cd2 add copyright
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@314767 13f79535-47bb-0310-9956-ffa450edef68
2005-10-12 03:45:34 +00:00
John Dennis Casey e1fe63e664 Adding error diagnoser for MojoExecutionExceptions.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@312976 13f79535-47bb-0310-9956-ffa450edef68
2005-10-11 23:21:51 +00:00
John Dennis Casey 32841e4e03 Fixing standalone maven-core build...fixing metadata merge where lastUpdated == "null" (null-string)...and finally, disabling plugin resolution from referencing the current project, since this will really screw up builds of plugins that are referenced in the plugin lifecycle mapping...like maven-surefire-plugin.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@312948 13f79535-47bb-0310-9956-ffa450edef68
2005-10-11 20:01:43 +00:00
Brett Leslie Porter 46c22374bc correct blacklisting logic
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@312921 13f79535-47bb-0310-9956-ffa450edef68
2005-10-11 17:36:17 +00:00
Brett Leslie Porter 3968063fb2 look in the reactor and the current project for the appropriate version to use
(before the registry and repository, but after the build section)


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@312889 13f79535-47bb-0310-9956-ffa450edef68
2005-10-11 14:18:06 +00:00
John Dennis Casey d4aa23726f Took the plugin LATEST stuff back out of the jar lifecycle mapping...made a boneheaded mistake.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@312829 13f79535-47bb-0310-9956-ffa450edef68
2005-10-11 07:41:36 +00:00
John Dennis Casey 9c0f1209c4 Re-enabling RELEASE resolution as a last-ditch, for backward compat...since I just re-enabled plugin LATEST metadata production.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@312828 13f79535-47bb-0310-9956-ffa450edef68
2005-10-11 07:40:12 +00:00
John Dennis Casey f685d8605d Resolving: MNG-449, MNG-152, MNG-1090, MNG-1089, MNG-1122
o Removed -cpl and related command line switches for controlling use of LATEST metadata for resolving plugin versions
o Made LATEST the only metadata used to resolve plugin versions, since this is also available when releases are performed
o Added various error diagnostics for project build exceptions
o Enhanced artifact not found error diagnostics
o Removed maven-project and added maven-artifact to maven-surefire-plugin's pom
o Removed the stanza that added pluginArtifacts to the test-booter's classpath...they are already covered by the classpathElements
o Fixed ITs in connection to the removal of -cpl
o Changed the plugin manager to detect whether a plugin's artifact file has changed since the plugin container was created...if so, reload it.
o Took the projecthelp plugin out of the build until I can diagnose the problems with its build (probably tomorrow).



git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@312827 13f79535-47bb-0310-9956-ffa450edef68
2005-10-11 07:35:33 +00:00
Brett Leslie Porter bc9f623a81 enable batch mode on the wagon
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@312818 13f79535-47bb-0310-9956-ffa450edef68
2005-10-11 06:42:21 +00:00