833 Commits

Author SHA1 Message Date
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 c8e94a5b085b1cb1543861d40db7a7a108bef499.

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