Commit Graph

979 Commits

Author SHA1 Message Date
Stefan Eicher 4c6d3a3462 Minor cleanup in MavenCli.java
There is some unnecessary code in the MavenCli.java from line #1465 to #1474.
The functionality has been moved to line #1215.

Signed-off-by: Karl Heinz Marbaise <khmarbaise@apache.org>
2017-04-05 23:51:26 +02:00
Stephen Connolly 68e38e5086 Make it possible to run unit tests from an IDE 2017-03-19 21:55:46 +00:00
rfscholte f661fc298e [MNG-6078] Confirm commons-cli 1.4-SNAPSHOT before official release 2017-03-18 12:59:51 +01:00
rfscholte 0e7e3eeb59 [MNG-6176] Javadoc errors prevent release with Java 8
Upgrade to modello-1.9.1
Fix javadoc errors in tests
2017-03-18 12:55:05 +01:00
Hervé Boutemy 181b0215aa [MNG-6115] prevent JAnsi from writing temp native files to lib/ext 2017-03-12 12:12:16 +01:00
Karl Heinz Marbaise 809ba34055 Code improvement. 2017-03-11 20:53:18 +01:00
rfscholte 587317b009 [MNG-6176] Javadoc errors prevent release with Java 8
Upgrade modello to 1.9.0
Fix invalid Javadoc
2017-03-10 16:17:28 +01:00
Hervé Boutemy 0db5e32cf5 fixed documentation errors 2017-02-23 19:07:58 +01:00
Stephen Connolly dc9c4db449 [MNG-6078] Perform a proper merge of the two sources of command line arguments
- Needed to extend Commons CLI's CommandLine just to perform the merged
2017-02-23 12:44:34 +00:00
Stephen Connolly 5885e70e24 [MNG-6078] Undo the order reversal hack
- ca43030313 used a hack to reverse the order of arguments
- The side effect of the hack is that the first named system property value on the CLI would win
- The side-effect is causing a lot of integration test builds to fail and will likely have other unintended consequences
- Correct fix is to put system properties at the end.
- If this change passes the integration tests then it will need to be augmented to correctly round-trip the CLI options
  as there is the potential that somebody may legitimately be passing an arg parameter a value that starts with -D
  for example 'mvn -ep -Dsecretpassword' or 'mvn -l -D.log' but given that this requires a parse and unparse
  to handle the escaping, I want to get evidence that the integration tests pass first
2017-02-23 12:44:34 +00:00
August Shi e6217a4555 Fixing misspellings in test names 2017-02-18 18:29:19 +01:00
Michael Osipov b66bdb9cbc [MNG-6150] Javadoc improvements for 3.5.0
* Remove duplicate plugin configuration
* Add workaround for Javadoc locale
* Clean up errors reported by Javadoc 7

Note: Javadoc 8 fails immediately because Modello generates invalid
Javadoc
2017-02-15 17:30:46 +01:00
Alex Henrie 8d91726f78 [MNG-5934] String handling issues identified by PMD 2017-02-11 14:08:24 +01:00
Arnaud Heritier 23ceca36e7 [MNG-5961] Fix the SLF4J logger factory implementation used for LOG4J2 2017-02-06 00:26:14 +01:00
Josh Soref 1740265984 [MNG-6146] Several small stylistic and spelling improvements to code and documentation
Spelling fixes:

* system
* tokenizer
* toolchain
* trailing
* transitive
* unsupported
* version
* artifact
* attachment
* codehaus
* colleagues
* comparison
* concurrency
* configure
* creation
* dependency
* descriptor
* downstream
* efficient
* e.g.
* elements
* encountered
* encounters
* environments
* executed
* explicitly
* happens
* hierarchical
* hierarchy
* ignore
* implemented
* implementers
* independence
* indicates
* inheritance
* inherited
* inherits
* install
* interface
* javascript
* laziness
* management
* maven
* metadata
* mgmt
* minimalist
* nonexistent
* objects
* overridden
* print
* project
* properties
* recessive
* referring
* repository
* representation
* retrieval
* retrieve
* rigorous
* should
* spontaneously
* subsequent

Literal fixes:

*  use static final values

Style fixes:

* use the proper term for char U+002D (-) hyphen(-minus) instead of dash

This closes #100
2017-02-03 10:12:28 +01:00
Karl Heinz Marbaise ca43030313 [MNG-6078] Can't overwrite properties which have been defined in
.mvn/maven.config
 o Reversed the order of properties only to get the properties from
   command line at the end of the properties list which results
   in correct behaviour to be able to overwrite properties from
   command line for properties which have been defined in
   .mvn/maven.config file.
2017-01-29 21:17:36 +01:00
Michael Osipov 065281c43d [MNG-5607] Don't use M2_HOME in mvn shell/command scripts anymore
* Variable has been removed and replaced with an internal one which
  cannot be overriden from outside. From now on, it is an
  implementation detail which it should have been from the beginning.
* Cleaned up license header and style of the variable description
  section graciously borrowed from the Tomcat start scripts.
2017-01-29 16:53:44 +01:00
Hervé Boutemy 4547ff73d8 added link to 3.3.1 release notes for details on .mvn 2017-01-25 00:09:30 +01:00
Hervé Boutemy 8a8f7cd53f removed now unused checkstyle suppress warnings 2017-01-25 00:09:01 +01:00
Hervé Boutemy 84085c0a9c updated urls (https, plexus) and license header formatting 2017-01-24 23:50:10 +01:00
Hervé Boutemy 94bc4de2ea [MNG-6093] use monkey patched slf4j-simple provider with Maven color 2017-01-24 18:40:07 +01:00
Hervé Boutemy b80915b882 [MNG-3507] added color to Maven execution output messages 2017-01-24 18:40:07 +01:00
Michael Osipov be5caccaff [MNG-6102] Introduce ${maven.conf} in m2.conf
Set maven.conf to default ${maven.home}/conf in ${maven.home}/bin/m2.conf
to have a canonical property pointing to global configuration files from
within Java code.

This also helps package maintainers to decouple the Maven installation
from a global configuration by solely modifying m2.conf instead of using
dirty hacks, if possible at all.
2017-01-23 20:54:54 +01:00
Michael Osipov 149cce7a86 [MNG-5977] Improve output readability of our MavenTransferListener implementations
* Applied a general decimal formatter which automatically scales file sizes between [0,10) (one decimal digit) and [10,1000) (whole numbers) along with proper size and time units
* The progress meter will now properly
** tell the amount of transfers along with file names (in debug mode) and absolute progress by size
** visually seperate parallel transfers with " | "
* Optimized and reduced padding to the cases where it actually is necessary
* Padding has to be applied to every event which can succeed with progress update
* Synchronize all calls to console to avoid race conditions where output is terminated by a carriage return only. If no sync is done, SLF4J or INIT/SUCCEEDED update can interleave and overwrite the progress while being shorter as the progress itself.
* Replaced the concurrent hash map with a synchronized linked hash map to retain order of the progress meter. It will behave now like a queue.
* Work around a rounding bug existed upto Java 7
  See http://stackoverflow.com/q/22797964/696632 and Oracle's bugfix
  Announcement: http://www.oracle.com/technetwork/java/javase/8-compatibility-guide-2156366.html

Race conditions cannot be avoided if -T is employed since one does not have access to the output stream of a SLF4J backend to synchronize on.
2017-01-23 11:18:15 +01:00
Michael Osipov deefd9342b [MNG-5954] Remove outdated maven-embedder/src/main/resources/META-INF/MANIFEST.MF 2017-01-22 21:37:57 +01:00
Michael Osipov 355f4dff03 [MNG-5975] Use Java 7's SimpleDateFormat in CLIReportingUtils#formatTimestamp 2017-01-22 21:37:57 +01:00
Hervé Boutemy 079f6b3ba3 [MNG-6088] add a newline after forked execution success message 2017-01-22 17:14:05 +01:00
Michael Osipov 618e62dd33 [MNG-5649] Use Commons Lang's Validate to intercept invalid input
Use wherever possible Validate with consistent messages and exceptions.
2015-10-16 17:32:57 +02:00
Michael Osipov d556da8434 Capitalize names in missing -v output 2015-10-10 19:52:56 +02:00
Karl Heinz Marbaise 8a51f9e512 [MNG-5681] Properties on command line with leading or trailing quotes are stripped
Refactored out cleanArgs method from CLIManager into separate class
and added appropriate tests which proves the solution
of the issue.
2015-10-07 17:13:43 +02:00
Keith Turner 7f0e1b7538 [MNG-5891] Log file command line option description contains an extra word
Signed-off-by: Michael Osipov <michaelo@apache.org>
2015-09-21 20:47:02 +02:00
Hervé Boutemy 2669980461 [MNG-5887] updated Modello site url 2015-09-14 19:52:21 +02:00
Karl Heinz Marbaise d12f6501f2 Refactored code to be consistent with other code. 2015-09-06 11:19:48 +02:00
Karl Heinz Marbaise 15223116a6 Fixed URL's to issue tracking after transition to
Apache Software Foundation.
2015-07-19 09:53:50 +02:00
tssp 193778ec0e [MNG-5816] Empy maven.config cause Maven to exit with failure
Avoid adding non empty configuration argument that causes exception.

Signed-off-by: Karl Heinz Marbaise <khmarbaise@apache.org>
2015-07-06 20:21:39 +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
Robert Stern 49a3e55208 Fixed typo 'propery' to 'property' 2015-05-06 13:16:44 +02:00
Jason van Zyl 56e6db1231 MNG-5795: Maven extensions can not be retrieved from authenticated repositories 2015-04-02 00:49:50 -04:00
Hervé Boutemy 08715d87d9 [MNG-5771] added core extension reference 2015-03-12 23:20:10 +01:00
Hervé Boutemy cb356ed478 [MNG-5767] added documentation for project-specific jvm options and
maven command-line parameters
2015-03-12 23:16:02 +01:00
Igor Fedorenko cc429e8451 MNG-5774 restored MavenCli user/global settings location contants
Signed-off-by: Igor Fedorenko <ifedorenko@apache.org>
2015-03-11 18:24:14 -04:00
Hervé Boutemy 207d18ddb6 stupid "enchancement" :) 2015-03-07 09:07:08 +01:00
Hervé Boutemy 5947c4ef71 [MNG-5771] enabled modello xdoc/xsd for core extensions mdo, with
minimum intro.
Still need to improve descriptions and info in mdo
2015-03-06 02:04:17 +01:00
Jason van Zyl 7997634209 MNG-5774 Provide an extension point for alternate CLI configuration source 2015-03-01 10:22:26 -08: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
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 6efacdb3fc MNG-5771 user-defined core extensions
read ${maven.projectBasedir}/.mvn/extensions.xml and create core
extensions realms during maven runtime bootstrap. this required
short-lived bootstrap plexus container to resolve extensions.

individual extensions realms are wired to maven.ext realm according
to META-INF/maven/extension.xml exported packages specification

Signed-off-by: Igor Fedorenko <ifedorenko@apache.org>
2015-02-20 14:05:54 -05:00
Igor Fedorenko 117df855e2 dispose dynamically created class realms
this is mostly to help integration tests reuse the same realm ids,
but plugging resource leaks is generally a good thing.

Signed-off-by: Igor Fedorenko <ifedorenko@apache.org>
2015-02-20 10:26:04 -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
Jason van Zyl 2d34e67eed First pass at cleaning up MavenExecutionRequestPopulator and its use.
Push MavenExecutionRequestPopulator down to only operate in the MavenCli. Two of the three methods were already called from MavenCli so now all of them are. In the process I deleted a bunch of code and pursue my quest to remove Settings from the core in order to make a general configuration mechanism that can be plugged into the core via the MavenCli.

Also removed the requirement of the LegacyRepositorySystem in the DefaultMavenExecutionRequestPopulator which breaks another tie with the legacy code. I took the bits that were needed and a lot of the code, after tracing through it, is redundant so it has been deleted.

Turning off:

injectMirror( request, request.getRemoteRepositories(), request.getMirrors() );
injectMirror( request, request.getPluginArtifactRepositories(), request.getMirrors() );

in DefaultMavenExecutionRequestPopulator

Results :

Failed tests:
  MavenITmng4190MirrorRepoMergingTest>AbstractMavenIntegrationTestCase.runTest:220->testit:76 null expected:<[1]> but was:<[4]>

Tests in error:
  MavenITmng4991NonProxyHostsTest>AbstractMavenIntegrationTestCase.runTest:220->testit:89 » Verification
  MavenITmng4963ParentResolutionFromMirrorTest>AbstractMavenIntegrationTestCase.runTest:220->testit:58 » Verification

There is mirror evaluation code in DefaultMaven:newRepositorySession( MavenExecutionRequest request ) which appears to
duplicate this logic but not quite enough for the ITs to pass.

---

Turning off:

injectProxy( request.getRemoteRepositories(), request.getProxies() );
injectProxy( request.getPluginArtifactRepositories(), request.getProxies() );

in

DefaultMavenExecutionRequestPopulator

Result:

The ITs pass

So the code is not needed so it has been deleted.

---

Turning off:

injectProxy( request.getRemoteRepositories(), request.getProxies() );
injectProxy( request.getPluginArtifactRepositories(), request.getProxies() );
injectAuthentication( request.getRemoteRepositories(), request.getServers() );
injectAuthentication( request.getPluginArtifactRepositories(), request.getServers() );

in

DefaultMavenExecutionRequestPopulator

Result:

The ITs pass

The code in DefaultMaven:newRepositorySession( MavenExecutionRequest request ) appears to populate proxies and authentication correctly. The injectAuthentication code has been deleted.

---

This is also perfunctory in DefaultMavenExecutionRequestPopulator after tracing through it:

request.setRemoteRepositories( getEffectiveRepositories( request, request.getRemoteRepositories() ) );
request.setPluginArtifactRepositories( getEffectiveRepositories( request, request.getPluginArtifactRepositories() ) );
2015-02-08 22:26:48 -05:00
Robert Scholte 4f05b59de9 [MNG-5754] Toolchains should be read during initialization
No need to wrap ToolchainsBuildingException with MisconfiguredToolchainException.
The latter was required when using ToolchainManagerPrivate
2015-01-17 16:27:55 +01:00
Robert Scholte f75008743b [MNG-5754] Toolchains should be read during initialization
MavenExecutionRequest has been extended with toolchains, which is filled by MavenCli
Interfaces have been extended with new methods, assuming only Maven provides implementations
2015-01-17 15:45:53 +01:00
Robert Scholte ceae922653 [MNG-3891] Modify maven-toolchain to look in ${maven.home}/conf/toolchains.xml and in ${user.home}/.m2/toolchains.xml
Also added new cmdline option: -gt / --global-toolchains
2014-12-25 14:55:02 +01:00
Michael Osipov 0343c52601 Trimmed trailing whitespace 2014-11-23 13:04:30 +01:00
Hervé Boutemy 9ce1f17d1b [MNG-5707] warn if Maven unsupported slf4j binding used 2014-10-30 14:32:10 +01:00
Hervé Boutemy 366f57c563 updated parent pom (and fixed issues...) 2014-10-24 01:25:49 +02:00
Hervé Boutemy 1ba9a6ffe0 test code formatting 2014-08-19 17:17:05 +02:00
Hervé Boutemy ca2b26ac5d fix a lot of checkstyle violations for future m-checkstyle-p 2.13, as
proof of concept for misc violations suppressions strategies
2014-08-19 00:17:28 +02:00
Igor Fedorenko 8980f67b9b MNG-5670 guard against ConcurrentModificationException iterating over System properties
Signed-off-by: Igor Fedorenko <ifedorenko@apache.org>
2014-07-30 07:57:53 +04:00
a-horst d8fd65a3ae MNG-2570: logging configuration now no longer overwrites the default log level as specified in conf/logging/simplelogger.properties
Submitted by: Andreas Horst <horst.andreas82@gmail.com>
Signed-off-by: Jason van Zyl <jason@tesla.io>
2014-07-06 13:09:41 -04:00
Hervé Boutemy ffff00e908 fixed errors reported by Checkstyle 2014-06-16 18:30:24 +02:00
Michael Osipov 5c78a8d2fa [MNG-5648] Regression of MNG-5176, DST in effect is ignored 2014-06-15 19:16:07 +02:00
Hervé Boutemy a90d71e024 [MNG-5630] added missing ':' in case of forked goal 2014-05-16 22:21:45 +02:00
Hervé Boutemy c2700f38eb updated javadoc 2014-05-13 00:35:15 +02:00
Hervé Boutemy 2cea7c6f84 [MNG-5630] improved display of forked executions: added phase or goal 2014-05-10 20:53:56 +02:00
Michael Osipov 45ab718bc0 [MNG-5623] Exception when printing Reactor Summary 2014-04-30 21:38:22 +02:00
Michael Osipov a39d1d33f2 Remove unused imports. 2014-04-27 11:27:11 +02:00
Michael Osipov 0afed871f2 Small improvement on comments in formatTimestamp. 2014-02-16 16:31:42 +01:00
Jason van Zyl 7a15512d88 Add missing header 2014-02-14 12:11:55 -05:00
Jason van Zyl 87bdfe5168 Add a test for parsing the thread configuration with the core multiplier 2014-02-14 11:47:20 -05:00
Jason van Zyl 30fadd074e Fix for multithreading configuration where you have something like -TC2.2 2014-02-12 11:43:51 -05:00
Michael Osipov be19ddb6d9 [MNG-5176] Print build times in an ISO 8601-style manner 2014-02-09 12:14:43 +01:00
Hervé Boutemy 4a39c02156 fixed errors reported by Checkstyle 2014-02-08 16:38:31 +01:00
Jason van Zyl 0c5678fa89 Remove weave mode building from the core 2014-02-06 16:27:15 -05:00
Jason van Zyl 09961c3150 MNG-5575: Separate distinct build strategies into their own new Builder implementation. The interface is not ideal yet, but gives us a cleaner
separation of implementations and gives us a path forward.
2014-02-05 22:43:04 -05:00
Michael Osipov d55dca85a1 Leave a space between colon and Console read password to improve
readability.
2014-02-01 12:23:10 +01:00
Robert Scholte 626884e9ee [MNG-4099] Password encryption CLI switches should prompt for password if missing 2014-01-10 22:29:00 +01:00
Robert Scholte 91499839cf [MNG-5230] Command line option to exclude modules from reactor
Contributed by Luuk van den Broek, slightly changed by Robert Scholte
Exclude/include marker char now match profiles, i.e +, ! and -
2014-01-09 00:06:19 +01:00
Robert Scholte 61dbaabfbd [MNG-5528] Help text confuses people 2014-01-06 23:21:26 +01:00
Stephen Connolly 3929f55c31 Remove redundant casts 2014-01-06 11:23:19 +00:00
Stephen Connolly 5f29be799f Remove dead code (initializers) 2014-01-06 11:21:26 +00:00
Stephen Connolly 9bec8d7386 Use chained .append calls rather than concatenate strings in arguments to .append 2014-01-06 10:42:20 +00:00
Stephen Connolly 9a55914061 Remove unnecessary unboxing 2014-01-06 10:32:16 +00:00
Stephen Connolly c30c76e423 Use StringBuilder 2014-01-06 10:31:04 +00:00
Hervé Boutemy 19b0bb3ff3 link to SLF4J documentation on switching SLF4J binding 2013-08-02 10:58:06 +02:00
Hervé Boutemy 8bbfb6f3c2 more explanations on logger names 2013-08-02 10:05:27 +02:00
Hervé Boutemy f63335c4e6 more details on logging implementation 2013-08-02 09:58:43 +02:00
Hervé Boutemy ea97145dfc javadoc improvement 2013-08-02 01:28:45 +02:00
Hervé Boutemy aaa198abfb improved logging documentation 2013-08-02 01:27:07 +02:00
Hervé Boutemy b83de53e86 [MNG-5500] tracking file is now _remote.repositories (was
_maven.repositories in Maven 3.0.x)
2013-07-28 18:35:31 +02:00
Olivier Lamy e2f99c2ca5 add missing @since 3.1.0 2013-07-20 15:42:08 +10:00
Arnaud Héritier 21907a74e7 Revert "Code cleanup - It's better (for perfs) to use a chain of append() calls than a unique append with several Strings concatenations"
This reverts commit c8e94a5b08.

Decreases too much the code readibility
2013-06-14 10:29:43 +02:00
Arnaud Héritier d92746dc25 Code cleanup - Maven requires Java 5+ : Replace for and while loops by for each 2013-06-11 22:21:54 +02:00
Arnaud Héritier c8e94a5b08 Code cleanup - It's better (for perfs) to use a chain of append() calls than a unique append with several Strings concatenations 2013-06-11 21:58:50 +02:00
Arnaud Héritier a2897f86b3 Code cleanup - Maven requires Java 5+ : Remove unnecessary unboxing 2013-06-11 21:47:18 +02:00
Arnaud Héritier 96db1abbe9 Code cleanup - Maven requires Java 5+ : Remove unnecessary boxing 2013-06-11 21:43:53 +02:00
Arnaud Héritier 4e24edbcfe Add missing carriage return after version details 2013-06-02 21:32:45 +02:00
Stephen Connolly c6c6bdc49f Add ASL license header 2013-05-28 10:19:32 +01:00
Hervé Boutemy 42962fa281 code formatting 2013-03-30 09:37:11 +01:00
Hervé Boutemy 833b5f0e93 fixed merge conflicts 2013-03-19 23:55:04 +01:00
Jason van Zyl f50ae7b059 o Merge branch 'master' into eclipse-aether
Conflicts:
	maven-embedder/src/main/java/org/slf4j/impl/MavenSlf4jSimpleFriend.java
	pom.xml
2013-03-18 13:27:43 -07:00
Stuart McCulloch 8b97b0a2da Fix call to SimpleLoggerFactory.reset method (use LoggerFactory to make sure we get the right instance to reset, as SimpleLoggerFactory.INSTANCE is not actually used by slf4j-simple's StaticLoggerBinder) and remove temporary reflection workaround
Signed-off-by: Jason van Zyl <jason@tesla.io>
2013-03-18 12:12:22 -07:00
Jason van Zyl cc2da2fabe o using slf4j 1.7.4 which adds the method to clear the logger cache
o update the code to use slf4j 1.7.4
o the logging failures in the embedded ITs are now fixed
2013-03-18 11:01:40 -07:00
Jason van Zyl 33abdd2ccf o update to slf4j 1.7.3 and use logger factory reset() 2013-03-17 18:48:06 -07:00
Jason van Zyl ebf2e4ddea Merge branch 'eclipse-aether' of github.com:tesla/tesla-build into eclipse-aether
Conflicts:
	.gitignore
	pom.xml
2013-03-14 13:03:31 -07:00
rfscholte 41a292d9a2 [MNG-5213] Verify time formatting 2013-03-09 13:09:48 +01:00
Jason van Zyl 137cbd8a97 Merge branch 'trunk' into eclipse-aether
Conflicts:
	maven-aether-provider/src/main/java/org/apache/maven/repository/internal/DefaultArtifactDescriptorReader.java
	maven-aether-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionRangeResolver.java
	maven-aether-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java
	maven-aether-provider/src/test/java/org/apache/maven/repository/internal/AbstractRepositoryTestCase.java
	maven-aether-provider/src/test/java/org/apache/maven/repository/internal/DefaultVersionResolverTest.java
	maven-core/src/main/java/org/apache/maven/DefaultMaven.java
	maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultLegacySupport.java
	maven-core/src/main/java/org/apache/maven/plugin/prefix/PluginPrefixResult.java
	maven-embedder/src/main/java/org/apache/maven/cli/transfer/Slf4jMavenTransferListener.java
	pom.xml
	src/site/site.xml
2013-02-14 22:08:26 -05:00
Jason van Zyl 8181e7c7fa Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/maven into trunk 2013-02-14 21:13:42 -05:00
Jason van Zyl 27ad9858d2 Merge branch 'aether' of github.com:bentmann/maven-3 into eclipse-aether
Conflicts:
	.gitignore
	apache-maven/pom.xml
	maven-aether-provider/pom.xml
	maven-aether-provider/src/main/java/org/apache/maven/repository/internal/DefaultArtifactDescriptorReader.java
	maven-aether-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionRangeResolver.java
	maven-aether-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java
	maven-aether-provider/src/main/java/org/apache/maven/repository/internal/LocalSnapshotMetadataGenerator.java
	maven-aether-provider/src/main/java/org/apache/maven/repository/internal/MavenRepositorySystemSession.java
	maven-aether-provider/src/main/java/org/apache/maven/repository/internal/MavenServiceLocator.java
	maven-aether-provider/src/main/java/org/apache/maven/repository/internal/RemoteSnapshotMetadataGenerator.java
	maven-artifact/pom.xml
	maven-compat/pom.xml
	maven-compat/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java
	maven-compat/src/test/java/org/apache/maven/project/LegacyLocalRepositoryManager.java
	maven-core/pom.xml
	maven-core/src/main/java/org/apache/maven/DefaultMaven.java
	maven-core/src/main/java/org/apache/maven/ReactorReader.java
	maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginRealmCache.java
	maven-core/src/main/java/org/apache/maven/project/DefaultProjectDependenciesResolver.java
	maven-core/src/main/resources/META-INF/plexus/artifact-handlers.xml
	maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java
	maven-core/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java
	maven-core/src/test/java/org/apache/maven/project/LegacyLocalRepositoryManager.java
	maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java
	maven-core/src/test/java/org/apache/maven/repository/TestRepositoryConnector.java
	maven-core/src/test/java/org/apache/maven/settings/PomConstructionWithSettingsTest.java
	maven-embedder/pom.xml
	maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java
	maven-model-builder/pom.xml
	maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java
	maven-model/pom.xml
	maven-plugin-api/pom.xml
	maven-plugin-api/src/main/mdo/plugin.mdo
	maven-plugin-api/src/site/apt/index.apt
	maven-repository-metadata/pom.xml
	maven-settings-builder/pom.xml
	maven-settings/pom.xml
	pom.xml
	src/site/site.xml
2013-02-14 20:21:50 -05:00
Jason van Zyl 38d132b64d Merge branch 'trunk' of github.com:apache/maven-3 into trunk
Conflicts:
	apache-maven/src/bin/mvn
	maven-embedder/src/site/apt/logging.apt
2013-02-14 18:02:32 -05:00
rfscholte b1b526ac9e Improve description 2013-02-11 16:13:45 +01:00
rfscholte 353f73bf22 Fix typo 2013-02-11 11:19:55 +01:00
Hervé Boutemy 720bef7df7 [MNG-5181] renamed *simple* local repository *manager* to *legacy* local
repository
2013-02-09 15:43:00 +01:00
Hervé Boutemy 5d06bc6a25 fixed typo 2013-02-02 16:59:20 +01:00
olivier lamy 8ada7e763b [MNG-5185] [MNG-5181]
can be activated using -Dmaven.simpleLocalRepoMan=true (for add in MAVEN_OPTS)
2013-02-01 00:41:44 +01:00
olivier lamy 27f8b0f81a [MNG-5185] [MNG-5181]
add cli flag to be able to remove use of EnhancedLocalRepositoryManager.
2013-02-01 00:35:46 +01:00
Hervé Boutemy 72bdc8602e added slf4j-simple logging configuration reinitialization to have
Core ITs run without errors
2013-01-06 11:50:25 +01:00
Hervé Boutemy 57d9c68e56 stdout/stderr redirection should be sufficient 2012-12-21 07:50:56 +01:00
Hervé Boutemy 0ab0641d3f added Logback support 2012-12-19 00:36:27 +01:00
Hervé Boutemy 3269928699 added log4j2 configuration support 2012-12-19 00:09:04 +01:00
Hervé Boutemy 3511b09d1e added Slf4jConfigurationFactory to detect actual slf4j logging
implementation and load appropriate Slf4jConfiguration implementation
from META-INF/maven/slf4j-configuration.properties
2012-12-18 23:44:18 +01:00
Hervé Boutemy eb190f0295 mark @Override 2012-12-18 04:35:48 +01:00
Hervé Boutemy 9eeb098380 can't be a Plexus component since Plexus container is not initialized at
logging configuration time
2012-12-18 04:35:08 +01:00
Hervé Boutemy 8112e6a835 created Slf4jConfiguration.Level enum to replace int 2012-12-18 04:23:52 +01:00
Hervé Boutemy e950603218 is Slf4jConfiguration.setLoggerFile(File) API useful? 2012-12-18 04:11:57 +01:00
Hervé Boutemy 7f21c4a31a improved javadoc 2012-12-16 21:15:26 +01:00
Hervé Boutemy eb9257e70c added javadoc for logging levels int values accepted 2012-12-16 11:21:30 +01:00
Hervé Boutemy 25bae5acd7 fixed indentation 2012-12-16 09:49:17 +01:00
Hervé Boutemy aa0b71ca62 improved javadoc 2012-12-16 09:44:26 +01:00
Hervé Boutemy 39e11cf2e5 extracted Slf4jConfiguration interface and corresponding implementation
to clearly separate code depending on slf4j binding

still need to add automatic selection of implementation
2012-12-16 01:57:36 +01:00
Hervé Boutemy 73ffdaf863 added license header 2012-12-16 01:52:20 +01:00
Anders Hammar f95ab2e7cd [MNG-5402] Better build number for git
Signed-off-by: Anders Hammar <anders@hammar.net>
2012-12-05 14:21:04 +01:00
Hervé Boutemy 5ccb925067 added Plexus LoggerManager injection 2012-12-03 22:37:43 +01:00
Hervé Boutemy 543870467f fixed errors reported by Checkstyle 2012-12-02 20:22:52 +01:00
Hervé Boutemy 1062524b39 [MNG-5396] changed logger name for execution events and batch transfer
(was MavenCli)

this shows some logging patterns we should discuss about and document
our conventions
2012-12-01 09:35:12 +01:00
Hervé Boutemy aebb647020 removed unused import 2012-12-01 09:14:57 +01:00
Jason van Zyl a4c34bfa3f - fix typo 2012-11-30 15:13:07 -08:00
Jason van Zyl d5e5717dd7 [MNG-5390] mvn -rf (no argument) results in NPE
Created a simple primordial logger that implements the error methods required between CLI parsing and logger initialization. I don't want to have to look to see if the logger is null.
2012-11-30 15:12:03 -08:00
Herve Boutemy 567cd13787 fixed typos
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1413425 13f79535-47bb-0310-9956-ffa450edef68
2012-11-25 21:23:34 +00:00
Herve Boutemy 9009b8f858 fixed errors reported by Checkstyle
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1413335 13f79535-47bb-0310-9956-ffa450edef68
2012-11-25 11:04:16 +00:00
Herve Boutemy 8a0d8ecb12 code format
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1413323 13f79535-47bb-0310-9956-ffa450edef68
2012-11-25 10:48:50 +00:00
Jason van Zyl 451c43152b cleanup of the class realm purging
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1413287 13f79535-47bb-0310-9956-ffa450edef68
2012-11-25 03:12:49 +00:00
Herve Boutemy eff45b31ba added notes about logger name, with Plexus Logger API that cannot follow logger name as class name convention :(
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1412766 13f79535-47bb-0310-9956-ffa450edef68
2012-11-23 07:45:43 +00:00
Herve Boutemy a71baa4579 added notes about logger name, with Plexus Logger API that cannot follow logger name as class name convention :(
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1412766 13f79535-47bb-0310-9956-ffa450edef68
2012-11-23 07:45:43 +00:00
Herve Boutemy d36522363f added info about direct SLF4J use
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1412765 13f79535-47bb-0310-9956-ffa450edef68
2012-11-23 07:17:37 +00:00
Herve Boutemy c4703d2437 added info about direct SLF4J use
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1412765 13f79535-47bb-0310-9956-ffa450edef68
2012-11-23 07:17:37 +00:00
Herve Boutemy db109865ab require Velocity filtering
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1410883 13f79535-47bb-0310-9956-ffa450edef68
2012-11-18 12:59:14 +00:00
Herve Boutemy aac56f0f97 require Velocity filtering
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1410883 13f79535-47bb-0310-9956-ffa450edef68
2012-11-18 12:59:14 +00:00
Herve Boutemy b1a90588d2 added developer documentation about logging APIs
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1410815 13f79535-47bb-0310-9956-ffa450edef68
2012-11-18 02:23:48 +00:00
Herve Boutemy b1dbec59ab added developer documentation about logging APIs
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1410815 13f79535-47bb-0310-9956-ffa450edef68
2012-11-18 02:23:48 +00:00
Herve Boutemy 3c6b12aec9 moved CLI Options Reference to a dedicated page
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1410808 13f79535-47bb-0310-9956-ffa450edef68
2012-11-18 00:58:30 +00:00
Herve Boutemy 5869fc1197 moved CLI Options Reference to a dedicated page
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1410808 13f79535-47bb-0310-9956-ffa450edef68
2012-11-18 00:58:30 +00:00
Herve Boutemy ac0897486e o code formatting
o added license header

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1410724 13f79535-47bb-0310-9956-ffa450edef68
2012-11-17 12:27:48 +00:00
Herve Boutemy b838131093 o code formatting
o added license header

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1410724 13f79535-47bb-0310-9956-ffa450edef68
2012-11-17 12:27:48 +00:00
Olivier Lamy 7200f2d038 avoid logger with name ended with .null if no hint
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1409719 13f79535-47bb-0310-9956-ffa450edef68
2012-11-15 10:18:21 +00:00
Olivier Lamy e1e683cbbb avoid logger with name ended with .null if no hint
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1409719 13f79535-47bb-0310-9956-ffa450edef68
2012-11-15 10:18:21 +00:00
Olivier Lamy bd143134c9 code format and add @since
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1409718 13f79535-47bb-0310-9956-ffa450edef68
2012-11-15 10:18:06 +00:00
Olivier Lamy 72df73f9e8 code format and add @since
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1409718 13f79535-47bb-0310-9956-ffa450edef68
2012-11-15 10:18:06 +00:00
Herve Boutemy 1a6a6bd2e3 removed unused imports
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1407920 13f79535-47bb-0310-9956-ffa450edef68
2012-11-11 05:33:06 +00:00
Jason van Zyl d698618204 MNG-5374: Fix transfer listener after the JSR330 merge
For the following cases I have done the following:

1) Logging to the console: I simply restored the class that was there such that when logging to the console it uses System.out as it did and the d
ownload progress appears as it did.

2) Logging in batch mode: the batch mode transfer listener uses an SLF4J logger and the batch mode transfer listener doesn't report download progr
ess so there is no issue. Download progress would just create a bunch of noise. The size and the speed at which it is downloaded are logged.

3) Logging to a file: same as 2) except it's all diverted to the specified file.

4) I created two protected methods in MavenCli so that integrators can supply their own console and batch transfer listeners if they wish.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1407913 13f79535-47bb-0310-9956-ffa450edef68
2012-11-11 04:40:00 +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
Herve Boutemy 9c54c7a660 renamed method to match the output format: html, not apt
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1395807 13f79535-47bb-0310-9956-ffa450edef68
2012-10-08 23:10:18 +00:00
Olivier Lamy 541bc917e8 [MNG-5338] Accept a directory with -f/--file
Submitted by Jesse Glick.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1382080 13f79535-47bb-0310-9956-ffa450edef68
2012-09-07 16:02:54 +00:00
Jason van Zyl 6e901c5797 o Enabled support and discovery of JSR-330 components
o Added Slf4j logger factory to support generic JSR-330 logging

o Exported Guice package for components that access Guice (or better it's injector) directly

Widen export of Guice packages (not ideal, need to look into ways to avoid this)

o use specific exports

o for now we will attempt to hide all of Guice in plugin realms and we'll do a bit of testing

closes #3

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1380105 13f79535-47bb-0310-9956-ffa450edef68
2012-09-03 01:07:31 +00:00
Herve Boutemy 1087f9339a o renamed method to better match the work done
o added documentation

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1377393 13f79535-47bb-0310-9956-ffa450edef68
2012-08-26 09:03:03 +00:00
Herve Boutemy 3289f39cb9 [MNG-5279] added anchors for each option
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1332308 13f79535-47bb-0310-9956-ffa450edef68
2012-04-30 17:30:04 +00:00
Herve Boutemy b7cd7e8bc8 renamed generated file: it's .html, not .apt (even if I initially wanted apt, but snippet macro could not do it)
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1332305 13f79535-47bb-0310-9956-ffa450edef68
2012-04-30 17:27:29 +00:00
Herve Boutemy 8904ba6889 [MNG-5279] added CLI options to the code documentation site
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1332011 13f79535-47bb-0310-9956-ffa450edef68
2012-04-29 22:33:19 +00:00
Herve Boutemy 32357134cd formatting
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1331989 13f79535-47bb-0310-9956-ffa450edef68
2012-04-29 20:29:06 +00:00
Benjamin Bentmann 82b345e009 o Migrated to Eclipse Aether 2011-12-30 21:43:28 +01:00
Olivier Lamy e6ef3dd660 [MNG-5206] plexus container never disposed
Submitted by Stuart McCulloch.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1211692 13f79535-47bb-0310-9956-ffa450edef68
2011-12-07 22:55:08 +00:00
Olivier Lamy 50b6e3b621 [MNG-5206] plexus container never disposed
Submitted by Stuart McCulloch.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1211692 13f79535-47bb-0310-9956-ffa450edef68
2011-12-07 22:55:08 +00:00
Herve Boutemy ab6e3f0e06 added javadoc
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1160417 13f79535-47bb-0310-9956-ffa450edef68
2011-08-22 20:33:06 +00:00
Jason van Zyl ef62188881 o make it possible to change:
- the overarching archive name
 - id of the product
 - long name of the product
 - short name of the product
 - have "mvn -v" output this information so that it's clear it's not Apache Maven

This allows people in the community creating builds of their own builds of Apache Maven to conform to the naming conventions put forth by the Apache Software Foundation.



git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1151924 13f79535-47bb-0310-9956-ffa450edef68
2011-07-28 16:46:23 +00:00
Paul Gier 2e1d7433ff [MNG-4112] Add properties "maven.version" and "maven.build.version" which contain the current version of Maven
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1147597 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 13:16:12 +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 5e4393cc5e [MNG-5023] Wrong calculation of Build Total time
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1074258 13f79535-47bb-0310-9956-ffa450edef68
2011-02-24 19:06:19 +00:00
Benjamin Bentmann b6ee02c3df [MNG-5019] [regression] String-based component lookups performed by report mojos fail with ClassCastException
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1074184 13f79535-47bb-0310-9956-ffa450edef68
2011-02-24 15:12:30 +00:00
Benjamin Bentmann 11f5546e6d [MNG-4971] Display maven home in version info
Submitted by: Guo Du

o Applied with minor modification

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1059267 13f79535-47bb-0310-9956-ffa450edef68
2011-01-15 05:35:54 +00:00
Benjamin Bentmann 6b46e51179 [MNG-4944] Include JRE vendor in version info
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1050717 13f79535-47bb-0310-9956-ffa450edef68
2010-12-18 21:13:02 +00:00
Benjamin Bentmann a670011864 o Tweaked logging to ensure version info comes out first
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1050715 13f79535-47bb-0310-9956-ffa450edef68
2010-12-18 21:00:22 +00:00
Benjamin Bentmann 887c5b82b5 [MNG-4936] Allow to better monitor and adjust a Maven build during CI
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1050096 13f79535-47bb-0310-9956-ffa450edef68
2010-12-16 18:58:54 +00:00
Benjamin Bentmann 5e1ef3d327 o Fixed deprecation warnings
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1038720 13f79535-47bb-0310-9956-ffa450edef68
2010-11-24 17:47:50 +00:00
Benjamin Bentmann 24df3d6782 o Polished CLI help output
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1034894 13f79535-47bb-0310-9956-ffa450edef68
2010-11-13 22:26:21 +00:00
Benjamin Bentmann 99b2cd2576 [MNG-4896] Help for -pl option does not include use of comma-sep, also more than one -pl does not work or complain
Submitted by: Jason Dillon

o Applied with fixed formatting

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1034892 13f79535-47bb-0310-9956-ffa450edef68
2010-11-13 22:09:24 +00:00
Benjamin Bentmann a77e4c2ebf [MNG-4892] Use of --log-file doesn't capture all output, e.g. from maven-antrun-plugin
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1032976 13f79535-47bb-0310-9956-ffa450edef68
2010-11-09 13:09:51 +00:00
Benjamin Bentmann 04d718d737 o Removed unused import
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1027865 13f79535-47bb-0310-9956-ffa450edef68
2010-10-27 09:19:10 +00:00
Benjamin Bentmann 5ab998fa4e [MNG-4864] npe when transferring artifacts
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1023501 13f79535-47bb-0310-9956-ffa450edef68
2010-10-17 13:51:13 +00:00
Benjamin Bentmann ca16d93499 [MNG-4829] [regression] Checksum failures aren't logged
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@998895 13f79535-47bb-0310-9956-ffa450edef68
2010-09-20 11:44:20 +00:00
Benjamin Bentmann 3996f56e85 [MNG-4824] multiple failures need additional whitespace
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@998878 13f79535-47bb-0310-9956-ffa450edef68
2010-09-20 10:35:45 +00:00
Benjamin Bentmann 11afa6961f o Fixed repo logging to go consistently through listener
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@998715 13f79535-47bb-0310-9956-ffa450edef68
2010-09-19 18:54:25 +00:00
Benjamin Bentmann 9e678193cf [MNG-4592] Snapshot artifacts that could not be downloaded due to communication problems are "blacklisted" for a day by default.
o Disabled error cache but kept not-found caching for MNG-4343

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@995606 13f79535-47bb-0310-9956-ffa450edef68
2010-09-09 23:09:58 +00:00
Benjamin Bentmann 901e599986 [MNG-4782] Automatically dump stack trace in case of internal Maven error
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@989869 13f79535-47bb-0310-9956-ffa450edef68
2010-08-26 18:46:33 +00:00
Benjamin Bentmann 6c37a89744 [MNG-4756] Aether integration
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@988749 13f79535-47bb-0310-9956-ffa450edef68
2010-08-24 22:46:07 +00:00
Herve Boutemy 23f2095652 fixed errors reported by Checkstyle
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@958295 13f79535-47bb-0310-9956-ffa450edef68
2010-06-26 23:16:18 +00:00
Benjamin Bentmann c94f27a8b4 [MNG-4697] Deprecate ununsed CLI options for plugin registry
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@951135 13f79535-47bb-0310-9956-ffa450edef68
2010-06-03 19:53:09 +00:00
Benjamin Bentmann 81b3f432b0 o Suppressed stack trace for unrecognized CLI options
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@948688 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 06:43:04 +00:00
Benjamin Bentmann 8dc242a54e [MNG-4678] CLI: AbstractConsoleDownloadMonitor, BatchModeDownloadMonitor output download progress to STDOUT
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@947404 13f79535-47bb-0310-9956-ffa450edef68
2010-05-23 12:22:55 +00:00
Benjamin Bentmann 21997b5c6b o Improved logging for forked executions
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@932966 13f79535-47bb-0310-9956-ffa450edef68
2010-04-11 18:10:07 +00:00
Kristian Rosenvold 643337864b [MNG-3004] Re-added calculateExecutionPlan to DLE, fixed ASF code standard
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@931921 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 13:06:58 +00:00
Kristian Rosenvold 83237e46af [MNG-3004] Concurrent building of multimodule projects
This commit consists of a modularization of the DefaultLifecycleExecutor into smaller
components. This is primarily done with the intention of extracting execution strategy 
somewhat from the rest of the logic.

It also contains three differenent execution strategies:
A) Linear ("Classic")
B) Parallel (Based on Dan's original implemementation)
C) Weave (Still experimental) 

 
The command line -T option activates parallel running, and the argument
is in the form -T <[nThreads, a float][C][W]|auto>

Notes:
* The output demultiplexer is disabled in this commit, and output will appear intermingled.
* The modello plugin has known problems
* Surefire must be run in forkmode at least once.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@931884 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 11:29:13 +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 e472d8f539 o Enabled stack traces until we know otherwise to make errors during CLI parsing show up in detail
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@928210 13f79535-47bb-0310-9956-ffa450edef68
2010-03-27 14:51:31 +00:00
Benjamin Bentmann b433187006 [MNG-4591] Enhance the download rate output to include downloaded file name
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@923457 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 22:00:54 +00:00
Benjamin Bentmann b8f5443e13 [MNG-4564] Location (and name) for settings-security.xml has changed in Maven 3
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@912163 13f79535-47bb-0310-9956-ffa450edef68
2010-02-20 17:57:33 +00:00
Benjamin Bentmann 046666a715 [MNG-3168] Correct error message when project descriptor not found
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@902614 13f79535-47bb-0310-9956-ffa450edef68
2010-01-24 17:52:36 +00:00
Benjamin Bentmann 04983c0111 o Refactored code
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@901701 13f79535-47bb-0310-9956-ffa450edef68
2010-01-21 13:38:42 +00:00
Olivier Lamy 3264611447 [MNG-4432] reimplement parallel artifacts download
Prevent possible ConcurrentModificationException

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@901149 13f79535-47bb-0310-9956-ffa450edef68
2010-01-20 11:54:02 +00:00
Benjamin Bentmann 9417640359 [MNG-4432] reimplement parallel artifacts download
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@900982 13f79535-47bb-0310-9956-ffa450edef68
2010-01-19 22:25:12 +00:00
Benjamin Bentmann 34c2aa8acc o Clean up properties processing in CLI
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@900969 13f79535-47bb-0310-9956-ffa450edef68
2010-01-19 21:38:37 +00:00
Benjamin Bentmann a5b2dd1a1f o Preferred JRE API
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@895277 13f79535-47bb-0310-9956-ffa450edef68
2010-01-02 20:01:19 +00:00
Benjamin Bentmann 669ab43ef2 o Fixed transfer progress output
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@881524 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 21:12:50 +00:00
Benjamin Bentmann 0f465258e5 [MNG-4440] error message should clearly indicate the module that failed, and how to continue
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@836267 13f79535-47bb-0310-9956-ffa450edef68
2009-11-14 21:36:31 +00:00
Benjamin Bentmann 61ba8778b6 [MNG-4426] No javac errors in console when error stacktraces are turned on
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@832729 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 12:51:58 +00:00
Benjamin Bentmann 21fff93ae9 [MNG-4408] Missing settings.xml is silently ignores
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@830204 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 14:32:07 +00:00
Benjamin Bentmann 642904917a o Extended debug logging
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@830186 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 13:51:28 +00:00
Benjamin Bentmann fca0b52ab4 o Restored support for IT execution using embedded Maven
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@830178 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 13:32:56 +00:00
Benjamin Bentmann 2362f58ef5 [MNG-4410] [regression] Maven execution does not end after showing usage help
[MNG-4411] [regression] Maven execution does not stop after showing version


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@830142 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 12:00:49 +00:00
Benjamin Bentmann 611bd1c998 o Fixed regressions after refactoring
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@830017 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 23:29:17 +00:00
Jason van Zyl 8f85d87b5c o another pass at cleaning up the MavenCli, it still needs work but at least I can see a pattern now for embedding
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@829988 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 21:42:53 +00:00
Benjamin Bentmann d8942acd68 o Tweaked transfer progress output
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@829115 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 16:10:41 +00:00
Benjamin Bentmann 46584fbf1e o Fixed transfer listener to output to proper stream
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@829018 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 12:11:47 +00:00
Benjamin Bentmann 5160b63bc0 o Changed transfer listener to consequently use the event for data
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@828870 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 22:09:45 +00:00
Benjamin Bentmann bb889e5895 o Revised transfer listener to retain resource identity
o Allowed to monitor transfer duration

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@828109 13f79535-47bb-0310-9956-ffa450edef68
2009-10-21 17:07:39 +00:00
Benjamin Bentmann 4e3d791eef o Revised transfer listener to provide better feedback
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@828026 13f79535-47bb-0310-9956-ffa450edef68
2009-10-21 14:17:38 +00:00
Benjamin Bentmann 504f5bca65 [MNG-4186] Provide an exact pointer to documentation specific to each known exception that can occur
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@827792 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 21:08:08 +00:00
Benjamin Bentmann d6ad00a1f3 o Improved some exception messages
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@825852 13f79535-47bb-0310-9956-ffa450edef68
2009-10-16 11:39:40 +00:00
Benjamin Bentmann 6821063783 o Added transfer listener for project dependency downloads
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@825289 13f79535-47bb-0310-9956-ffa450edef68
2009-10-14 21:22:35 +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
Benjamin Bentmann 05dc94a90e o Fixed logging
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@824321 13f79535-47bb-0310-9956-ffa450edef68
2009-10-12 12:44:48 +00:00
Benjamin Bentmann a98ec9089f o Removed unused code
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@824180 13f79535-47bb-0310-9956-ffa450edef68
2009-10-11 21:30:54 +00:00
Benjamin Bentmann d4ca575f08 o Added new settings builder that uses request/result pattern to allow for better problem reporting
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@824172 13f79535-47bb-0310-9956-ffa450edef68
2009-10-11 21:25:11 +00:00
Jason van Zyl 07398e00bc o push all pom format specific handling up to the front-end, internally inside maven we do not care what the source of POM information is
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@824098 13f79535-47bb-0310-9956-ffa450edef68
2009-10-11 16:18:10 +00:00
Benjamin Bentmann 737bc0f63b o Replaced hard-coded use of "pom.xml" with a component to enable customizers using other formats to use other file names as well
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@823852 13f79535-47bb-0310-9956-ffa450edef68
2009-10-10 13:26:44 +00:00
Benjamin Bentmann b55562328b o Enabled reuse of MavenCli for embedded execution during the ITs
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@823736 13f79535-47bb-0310-9956-ffa450edef68
2009-10-09 23:16:40 +00:00
Jason van Zyl b6c70ca1f9 o another pass at removing wagon from the core.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@823064 13f79535-47bb-0310-9956-ffa450edef68
2009-10-08 06:32:35 +00:00
Benjamin Bentmann 3b57a2b55a [MNG-3183] Allow a user to specify logging to a text file
o Restored feature

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@821036 13f79535-47bb-0310-9956-ffa450edef68
2009-10-02 14:40:27 +00:00
Benjamin Bentmann 5c660d362d [MNG-4386] [regression] Debug logging can't be activated
[MNG-4387] [regression] Quiet logging can't be activated


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@820987 13f79535-47bb-0310-9956-ffa450edef68
2009-10-02 12:28:56 +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
Benjamin Bentmann e66e2cf2f7 o Refactored code
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@814350 13f79535-47bb-0310-9956-ffa450edef68
2009-09-13 17:29:26 +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
Herve Boutemy af5b761568 fixed errors reported by Checkstyle
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@813615 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 22:05:49 +00:00
Benjamin Bentmann 504fbed09e o Added API docs
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@811372 13f79535-47bb-0310-9956-ffa450edef68
2009-09-04 12:49:47 +00:00
Benjamin Bentmann 08cc074b50 [MNG-4335] [regression] <settings><offline>true</offline</settings> is not honored
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@811352 13f79535-47bb-0310-9956-ffa450edef68
2009-09-04 11:41:49 +00:00
Benjamin Bentmann 102f4ab603 [MNG-4334] maven core caches settings.xml
o Last pass: proxies moved out of the components into the requests

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@810444 13f79535-47bb-0310-9956-ffa450edef68
2009-09-02 10:16:19 +00:00
Benjamin Bentmann 3c34aa8c14 [MNG-4334] maven core caches settings.xml
o First pass: auth & mirror moved out of the components into the requests

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@810296 13f79535-47bb-0310-9956-ffa450edef68
2009-09-01 22:49:05 +00:00
Benjamin Bentmann b8b148cf8b o Collected repo settings in request
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@810174 13f79535-47bb-0310-9956-ffa450edef68
2009-09-01 19:03:27 +00:00
Benjamin Bentmann 5a3334c3e0 o Restored backward-compat with 2.x
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@810131 13f79535-47bb-0310-9956-ffa450edef68
2009-09-01 17:20:32 +00:00