Commit Graph

139 Commits

Author SHA1 Message Date
Hervé Boutemy c516ef79ae [MNG-5836] put $maven.home/conf/logging first in classpath to avoid
extension jar overriding logging config
2017-01-22 17:17:11 +01:00
Karl Heinz Marbaise cf2f373ddb [MNG-5882] Nonportable shell constructs cause bin/mvn errors on Debian 2015-11-08 15:08:18 +01:00
Jason van Zyl 1a8413bef9 MNG-5858: mvn script fails to locate .mvn in current directory
Submitted by: Dave Syer

closes #58
2015-09-11 19:15:12 -04:00
Stephen Kitt f0cc5e8af9 Support directories with spaces in mvn
find_maven_basedir() doesn't handle a current working directory containing spaces; this patch fixes this behaviour.
2015-09-04 23:01:14 +02:00
Andreas Gudian f104ef8850 [MNG-5813] pass debug-opts from mvnDebug to mvn script in the additional env-variable MAVEN_DEBUG_OPTS to not interfere with user-specified MAVEN_OPTS (e.g. when read from .mavenrc).
Fixed as suggested by Robert Patrick on the ML
2015-06-27 17:41:33 +02:00
tssp ad905af669 [MNG-5812] Project base dir not fully working in Cygwin
Converted project base dir from Cygwin path to Windows path before
executing Maven.
2015-06-22 22:02:58 +02:00
sugartxy 7f206ef1cc try-with-resources
Reformatted to code style by me. This fixes #53
2015-06-20 14:32:46 +02:00
Kristian Rosenvold 7badeb5b5b Upgraded to java7 language features 2015-06-20 10:56:07 +02:00
Andreas Gudian f27c348bba MNG-5796 fix mvn.cmd execution when invoked at drive root 2015-05-02 19:33:38 +02:00
Jason van Zyl 0d32cbe6ac Make sure paths with spaces are treated correctly.
Fixes the issue of endlessly looping with project directory paths like "/my/project/this & that"
2015-03-13 12:18:24 -07:00
Arcadiy Ivanov 2f21481d06 mvn script is not compatible with OSX (Darwin)
Signed-off-by: Jason van Zyl <jason@tesla.io>

closes #39
2015-03-13 11:11:35 -07:00
Jason van Zyl 50899962f6 Make sure the windows *.cmd files make it into the assembly 2015-02-28 13:41:34 -08:00
Andreas Gudian c6faf8dd65 MNG-5776 Drop support for Win9x in mvn launch scripts for Windows, rename .bat to .cmd, remove duplicate code from mvnDebug.cmd 2015-02-28 15:50:58 +01:00
Igor Fedorenko b01bf0c3d4 MNG-5767 enforce use of maven.multiModuleProjectDirectory, fixed mvn*.bat
Signed-off-by: Igor Fedorenko <ifedorenko@apache.org>
2015-02-26 11:45:29 -05:00
Andreas Gudian 562896a192 MNG-5767 .mvn/ for project specific jvm options and maven parameters -- adapted Windows .bat scripts 2015-02-25 21:58:29 +01:00
Igor Fedorenko e28be4d33a MNG-5767 renamed projectBasedir to more descriptive multiModuleProjectDirectory
Signed-off-by: Igor Fedorenko <ifedorenko@apache.org>
2015-02-23 13:47:34 -05:00
Igor Fedorenko 8ed9a1caa8 MNG-5767 .mvn/ for project specific jvm options and maven parameters
Signed-off-by: Igor Fedorenko <ifedorenko@apache.org>
2015-02-20 08:14:08 -05:00
Igor Fedorenko 7c7bf4dfef cleaned up duplication code in bin/mvn shell scripts
changed mvnDebug and mvnyjp to delegate to the main mvn script
to do the actual work. this eliminated all code duplication
among the three scripts.

Signed-off-by: Igor Fedorenko <ifedorenko@apache.org>
2015-02-09 15:24:58 -05:00
Bernd Eckenfels fbd6e53e83 [MNG-5686] Use /usr/libexec/java_home to find JAVA_HOME 2015-01-22 00:54:33 +01:00
Robert Scholte 71976ecf4d [MNG-5745] Add example of toolchains.xml to Maven distribution 2014-12-26 14:29:21 +01:00
Kristian Rosenvold 44d06d890f [MNG-5686] mvn cannot execute /usr/libexec/java_home/bin/java on OS X.
Patch supplied by Jonathan Sailor, applied unmodified
2014-12-13 09:24:55 +01:00
Michael Osipov 0343c52601 Trimmed trailing whitespace 2014-11-23 13:04:30 +01:00
Hervé Boutemy 603f26addf Revert "Account the the jsoup license URL which appears to have
changed." because https://github.com/jhy/jsoup/issues/471 fixed

This reverts commit 71f8d04be6.
2014-10-13 23:54:18 +02:00
Jason van Zyl 71f8d04be6 Account the the jsoup license URL which appears to have changed.
The JSoup license URL was recorded as http://jsoup.com/license but the
site appears to now be http://jsoup.org/ and so the URL is now
http://jsoup.org/license
2014-10-12 07:23:56 -04:00
Jason van Zyl 69448a7f09 MNG-5658: Fix syntax error in unix script on Solaris SPARC
Submitted by: Frank Langelage <frank.langelage@osnanet.de>
2014-07-06 13:47:11 -04:00
Jason van Zyl 65863e0a28 MNG-4226: Detect JAVA_HOME on newer Mac OS X
Submitted by: Christopher Tubbs <ctubbsii@apache.org>
https://github.com/apache/maven/pull/11
2014-05-20 20:48:57 -04:00
Karl Heinz Marbaise 550966dfa7 [MNG-5631]
- Cleared WARNINGs during build.
2014-05-12 16:55:38 +02:00
Stephen Connolly 3ebab97737 maybe this pattern will prevent the ever-growing source bundle 2014-02-18 17:21:31 +00:00
Stephen Connolly e1f096f93c exclude the Jenkins private local repo 2014-02-18 17:10:16 +00:00
Stephen Connolly a83ece077b exclude the Jenkins private local repo 2014-02-18 16:46:54 +00:00
Michael Osipov d266733f04 [MNG-5574] Write error/warning messages from mvn shell and batch scripts
to stderr

- Only errors go to stderr, warnings don't stop Maven from working
2014-02-09 12:07:44 +01:00
Michael Osipov 088193ca4c [MNG-5574] Write error/warning messages from mvn shell and batch scripts
to stderr
2014-02-08 16:53:52 +01:00
Michael Osipov 8e2247dc30 Add error label to a shell script before exiting. 2014-02-08 16:06:20 +01:00
Hervé Boutemy 07fecbd9e6 fixed 70218af1c1 in case comand line
contains spaces
2013-11-24 19:50:10 +01:00
John Casey 70218af1c1 Adding envar MAVEN_CMD_LINE_ARGS to shell scripts to provide consistency for accessing CLI args via env.MAVEN_CMD_LINE_ARGS user property (from plugins, for example). 2013-10-21 13:26:56 -05:00
Daniel Kulp eb2f2b1acd Add a LICENSE/NOTICE that can be picked up for the src assembly 2013-09-11 16:39:30 -04:00
Daniel Kulp 380dc43a7a Use the latest remote-resources snapshot (for now, testing purposes) to update the license links 2013-07-08 13:45:40 -04:00
Daniel Kulp b4dc8931f2 Some updates to start working on a proper LICENCE/NOTICE 2013-07-01 16:28:28 -04:00
Stephen Connolly c6c6bdc49f Add ASL license header 2013-05-28 10:19:32 +01:00
Jason van Zyl 527cee25ef - Look for older setups as well, thanks to @mcculls for spotting this
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1413474 13f79535-47bb-0310-9956-ffa450edef68
2012-11-26 03:50:32 +00:00
Jason van Zyl a284ef279c - keep git init script out of the source distribution
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1413393 13f79535-47bb-0310-9956-ffa450edef68
2012-11-25 19:23:04 +00:00
Jason van Zyl becf420bfa - export JAVA_HOME if it is not set or it commands, like javadoc, that expect it don't work very well
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1413378 13f79535-47bb-0310-9956-ffa450edef68
2012-11-25 17:50:48 +00:00
Jason van Zyl 63fd9ed4d8 MNG-5376: Account for changes between the Apple and Oracle JDKs on OSX
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1413208 13f79535-47bb-0310-9956-ffa450edef68
2012-11-24 17:22:54 +00:00
Jason van Zyl 325972aed0 MNG-5376: Account for changes between the Apple and Oracle JDKs on OSX
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1412409 13f79535-47bb-0310-9956-ffa450edef68
2012-11-22 02:24:16 +00:00
Jason van Zyl 44f65114cc MNG-5053: Remove obsolete debugger arguments
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1409024 13f79535-47bb-0310-9956-ffa450edef68
2012-11-13 23:35:05 +00:00
Jason van Zyl 78a18e907d o update to slf4j 1.7.2 which allows the customization of the WARN level label. in the case of maven we vary slightly from all the standard logging implementations in that we use the string WARNING instead of WARN. once this change is made all the ITs pass again as all the failures were the result of string searches anchored on WARNING.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1397289 13f79535-47bb-0310-9956-ffa450edef68
2012-10-11 20:26:24 +00:00
Jason van Zyl d2a9a88c9e Explicitly set Sisu container logging to 'info' so it doesn't appear during Maven debug (-X) logging. To re-enable, remove this line from conf/logging/simplelogger.properties in the distribution.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1396843 13f79535-47bb-0310-9956-ffa450edef68
2012-10-10 22:48:14 +00:00
Jason van Zyl a23f7cfd10 o Use SLF4J for logging
Conflicts:

	pom.xml

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1396842 13f79535-47bb-0310-9956-ffa450edef68
2012-10-10 22:48:08 +00:00
Robert Scholte ecb64a623a Adjust default value of localRepository in xml-comment
Issue id: MNG-5258


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1300694 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 19:30:17 +00:00
Benson Margulies 9b7613b81c Take the dir format away.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1212997 13f79535-47bb-0310-9956-ffa450edef68
2011-12-11 12:30:30 +00:00
Benson Margulies 52beaf6221 MNG-5214: Dependency resolution substitutes g🅰️v:jar for j🅰️v:something-else when something-else isn't in the reacto
o When Aether asks the ReactorReader for a file for an artifact, remember to match type and classifier. And if all else
  fails, do not return target/classes if the desired artifact is not of type 'jar'. Arguably, if type or classifier
  are non-default, then we should never return those default paths at all.
o Add 'dir' format to make it quicker to run a quick test. If everyone hates this I'll revert it.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1212564 13f79535-47bb-0310-9956-ffa450edef68
2011-12-09 18:30:26 +00:00
Benjamin Bentmann f83b0bf199 [MNG-5158] Make loading of extensions from lib/ext more robust with regard to existence of ext directory
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1159520 13f79535-47bb-0310-9956-ffa450edef68
2011-08-19 07:27:11 +00:00
Herve Boutemy 799d63bf87 [MNG-5119] added Javadocs and JXR links in left menu for every module to give easy access to code
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1137154 13f79535-47bb-0310-9956-ffa450edef68
2011-06-18 10:00:46 +00:00
Benjamin Bentmann e2ad36018b [MNG-5046] Remove $Id$ from sources
Submitted by: Jesse Glick

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1084807 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 23:30:11 +00:00
Benjamin Bentmann 6f04bf8499 [MNG-5020] JAVA_HOME auto discovery
Submitted by: Maciej Mazur

o Extended original patch to other run scripts as well

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1074273 13f79535-47bb-0310-9956-ffa450edef68
2011-02-24 19:47:42 +00:00
Benjamin Bentmann 9d08406782 o Set svn:eol-style=LF
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1070159 13f79535-47bb-0310-9956-ffa450edef68
2011-02-12 22:05:23 +00:00
Benjamin Bentmann ddf3bce5fa [MNG-4956] Cygwin mvn script modifies CLASSPATH environment variable
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1070158 13f79535-47bb-0310-9956-ffa450edef68
2011-02-12 21:57:20 +00:00
Benjamin Bentmann 4be6fd8705 [MNG-5005] bin/mvn contains platform specific echo when on Mac OSX and JAVA_VERSION envvar is set
Submitted by: Jason Dillon

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1068201 13f79535-47bb-0310-9956-ffa450edef68
2011-02-07 22:54:34 +00:00
Benjamin Bentmann 6c1e1a0297 o Set svn:eol-style=native
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1061323 13f79535-47bb-0310-9956-ffa450edef68
2011-01-20 14:47:34 +00:00
Benjamin Bentmann 3d56dc15e8 [MNG-4984] Simplify drop in of 3rd party extensions for Maven core
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1060814 13f79535-47bb-0310-9956-ffa450edef68
2011-01-19 13:48:17 +00:00
Benjamin Bentmann b0e468190e [MNG-4937] Allow the platform scripts to avoid loading mavenrc content
Submitted by: Jason Dillon

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1050135 13f79535-47bb-0310-9956-ffa450edef68
2010-12-16 20:03:37 +00:00
Benjamin Bentmann e79d41e749 o Splitted .gitattributes
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1027905 13f79535-47bb-0310-9956-ffa450edef68
2010-10-27 10:46:45 +00:00
Benjamin Bentmann 21611f899a o Excluded Git metafiles from source bundle
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1027904 13f79535-47bb-0310-9956-ffa450edef68
2010-10-27 10:45:23 +00:00
Benjamin Bentmann 267d537031 [MNG-4867] incorrect namespace in settings.xml
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1023249 13f79535-47bb-0310-9956-ffa450edef68
2010-10-16 11:23:44 +00:00
Benjamin Bentmann 05d9ee3cfb [MNG-4767] Regression in parsing command-line arguments including variables
Submitted by: Jesse Glick

o Duplicated patch to mvnDebug as well

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@989236 13f79535-47bb-0310-9956-ffa450edef68
2010-08-25 17:26:09 +00:00
Brett Leslie Porter 0579e639c2 improve profiling script
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@983208 13f79535-47bb-0310-9956-ffa450edef68
2010-08-07 11:03:52 +00:00
Benjamin Bentmann bbcd44e011 [MNG-3529] mvn -Da=" " throws an exception
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@928714 13f79535-47bb-0310-9956-ffa450edef68
2010-03-29 11:02:03 +00:00
Benjamin Bentmann 953b339e1c o Removed broken scripts
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@928698 13f79535-47bb-0310-9956-ffa450edef68
2010-03-29 10:40:13 +00:00
Benjamin Bentmann 4b084a7e3f o Excluded unwanted test files as pointed out by Brett
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@926045 13f79535-47bb-0310-9956-ffa450edef68
2010-03-22 12:00:03 +00:00
Dan Tran 1520e0f8f3 [MNG-4509] set MAVEN_DEBUG_OPTS after setlocal so that it is clear after mvnDebug.bat is done
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@894928 13f79535-47bb-0310-9956-ffa450edef68
2009-12-31 19:19:53 +00:00
Benjamin Bentmann 109f5dab66 [MNG-4495] mvnUpdate attempts to use a non-existent .cd directory
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@891050 13f79535-47bb-0310-9956-ffa450edef68
2009-12-15 22:36:51 +00:00
Benjamin Bentmann 4a1c9d84ae o Fixed warning about missing project artifact
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@835936 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 17:42:21 +00:00
Brett Leslie Porter def1fef6d9 [MNG-4439] apache-maven project should not deploy a source JAR or JAR, as it is only a distribution module
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@835644 13f79535-47bb-0310-9956-ffa450edef68
2009-11-12 23:42:20 +00:00
Benjamin Bentmann fb58386561 o Synced source distro creation with 2.x branch
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@834095 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09 15:03:04 +00:00
Benjamin Bentmann 07776ae834 [MNG-4396] [regression] Ant plugin fails with Maven-3
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@826644 13f79535-47bb-0310-9956-ffa450edef68
2009-10-19 11:21:55 +00:00
Brian E Fox 8b81c423ce insert the correct url for the plexus snapshots and set for snapshots only
restored tar.gz and commented out unused excludes in the assembly bin.xml

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@826567 13f79535-47bb-0310-9956-ffa450edef68
2009-10-19 00:19:31 +00:00
Jason van Zyl 787008b34a o changes to allow polyglot maven to work
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@824607 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 06:49:25 +00:00
Jason van Zyl dc92f34610 o first pass at cleaning up the embedding pattern
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@820905 13f79535-47bb-0310-9956-ffa450edef68
2009-10-02 06:51:50 +00:00
Herve Boutemy 0553695bcb added XML schema location for site.xml
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@813781 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 11:34:15 +00:00
Jason van Zyl 36e43b2951 o cleaning up project builder, removed signatures that i've corrected in the RR plugin, moved properties injection up to the main Maven component
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@770390 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 18:49:42 +00:00
Jason van Zyl aafe040406 git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@768839 13f79535-47bb-0310-9956-ffa450edef68 2009-04-27 00:16:42 +00:00
Benjamin Bentmann d9bf8c6a60 o Reverted r750083 which is a bad approach with respect to embedding, instead just programmatically injected the central repo if not already given/overriden in the settings
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750098 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 18:40:33 +00:00
Benjamin Bentmann fd1c4b534c o Prepared extraction of central from super POM and moved it into global settings
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750083 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 17:25:10 +00:00
Oleg Gusakov f8488670e7 point to people.apache.org for versions by default
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@739160 13f79535-47bb-0310-9956-ffa450edef68
2009-01-30 03:57:10 +00:00
Oleg Gusakov cdafc86f58 [MNG-3962] - moved self-update into bin/.cd
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@739147 13f79535-47bb-0310-9956-ffa450edef68
2009-01-30 02:39:23 +00:00
Jason van Zyl d70cd00961 o cleaning up the excludes to trim what we can for now and getting rid of the custom assemblies for IDEs
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@739135 13f79535-47bb-0310-9956-ffa450edef68
2009-01-30 01:44:21 +00:00
Benjamin Bentmann b11a196b55 o Added mvnUpdate for Windows
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@739078 13f79535-47bb-0310-9956-ffa450edef68
2009-01-29 23:16:04 +00:00
Oleg Gusakov 5d3a525e28 [MNG-3962] - self-update
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@739053 13f79535-47bb-0310-9956-ffa450edef68
2009-01-29 22:26:34 +00:00
Jason van Zyl 4611e43a15 o everyone is having problems with this not name as the artifact we ship with and we can't change it from apache-maven now so back it goes.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@733845 13f79535-47bb-0310-9956-ffa450edef68
2009-01-12 17:16:22 +00:00