Commit Graph

3130 Commits

Author SHA1 Message Date
Hervé Boutemy 28b4ea92d3 [MNG-7117] add support for blocked mirror 2021-03-19 20:36:00 +01:00
Hervé Boutemy 3b21386c3f [MNG-7116] add support for mirrorOf external:http:* 2021-03-19 20:35:50 +01:00
Michael Osipov a5c68f7a4a Revert "[MNG-7046] Revert MNG-5639 and make repo config static only"
This reverts commit 8c9c303f9c.
2021-03-13 17:09:40 +01:00
Maarten Mulders ad24f599ce [MNG-7051] Return unmodifiable profile lists
This helps deprecation and keeps the code consistent.

Closes #452.
2021-03-08 16:52:28 +01:00
Martin Kanters 9643ac630c [MNG-7051] When an optional profile could not be found, an info message should be thrown instead of a warning. 2021-03-08 16:24:16 +01:00
Hervé Boutemy 0e75baae25 improve and fix javadoc 2021-03-05 21:23:44 +01:00
Romain Manni-Bucau a242c1a912 [MNG-6471] Parallel builder should use the module name as thread name
This closes #177
2021-02-28 19:59:45 +01:00
rfscholte 8ceb6c6e99 [MNG-7063] Infinite loop using Shade plugin and JUnit 5 dependency 2021-02-21 11:23:08 +01:00
Hervé Boutemy 9b5b8d4082 extract AbstractMavenLifecycleParticipant dispatch methods 2021-02-20 19:55:40 +01:00
Hervé Boutemy 441cf73c06 improve documentation 2021-02-20 19:34:43 +01:00
rfscholte 84a1ff2d5c [MNG-7063] Add unittest to ensure rereading a pom won't return the cached Model 2021-02-14 16:56:25 +01:00
Guillaume Nodet 619973b91c [MNG-7063] Infinite loop using Shade plugin and JUnit 5 dependency
Signed-off-by: rfscholte <rfscholte@apache.org>
2021-02-14 15:52:04 +01:00
Guillaume Nodet f820b41aed [MNG-7095] Fix resume for parallel builds
Resolves #444
2021-02-13 11:32:34 +01:00
Guillaume Nodet 48fc10889e [MNG-7077] Use JUnit 5 extension
Signed-off-by: rfscholte <rfscholte@apache.org>
2021-02-12 17:21:59 +01:00
boris-unckel 1e575a2bd7 [MNG-7068] Active dependency management for Google Guice/Guava
This closes #462
2021-02-02 14:17:43 +01:00
Maarten Mulders 8defd16965 [MNG-7051] Optionally skip non-existing profiles and break on missing required profiles. 2021-02-02 08:20:21 +01:00
Michael Osipov 8df10f93be Test for empty value and avoid needless space 2021-01-31 20:20:23 +01:00
Michael Osipov ceb08cfa77 Test for empty locations and avoid printing them 2021-01-30 23:04:46 +01:00
Guillaume Nodet bb916d0784 [MNG-7035] Migrate unit tests to Unit 5
Signed-off-by: rfscholte <rfscholte@apache.org>
2021-01-15 15:07:06 +01:00
Martin Kanters 83dc6909aa [MNG-7071] Remove the profiles.xml warning, since the functionality is ignored since Maven 3. 2021-01-11 19:17:16 +01:00
Sylwester Lachiewicz b877445cb9 [MNG-6909] Convert to JSR330 in tests - maven-core
Closes #346
2021-01-08 03:55:24 +01:00
Michael Osipov a6d5e86155 Use consistent static final loggers 2021-01-05 15:47:20 +01:00
Michael Osipov 2201698234 Apply consistent log argument quoting for sigle- and multi-valued args 2021-01-05 15:47:20 +01:00
rfscholte 94612f96fa [MNG-7060] Let build fail fast in case any maven-gpg-plugin goal is called 2021-01-03 13:09:59 +01:00
Michael Osipov 31ad2ff43a Use system line separator wherever possible
This closes #424
2021-01-01 12:55:01 +01:00
Maarten Mulders 2caed6218a [MNG-4660] Increase usefulness of logging
Closes #416
2020-12-28 11:27:28 +01:00
Michael Osipov c79682bca9 [MNG-7057] Param style of Javadoc in ReactorModelPool is wrong 2020-12-27 01:00:25 +01:00
Michael Osipov 8eda091d4e Replace tabs with proper count of spaces 2020-12-24 19:50:27 +01:00
Michael Osipov 673a7d1fef Trim trailing whitespace 2020-12-24 19:09:10 +01:00
Michael Osipov 8c9c303f9c [MNG-7046] Revert MNG-5639 and make repo config static only
This closes #409
2020-12-24 15:23:59 +01:00
Michael Osipov 7f63daccc7 [MNG-7021] Remove old MHELP backward compat code
This closes #395
2020-12-24 13:40:58 +01:00
Michael Osipov 72a125ef04 [MNG-7022] Remove o.a.m.lifecycle.mapping.Lifecycle optional mojos backward compat code
This closes #396
2020-12-24 00:52:57 +01:00
Christian Schulte d2adab7bf3 [MNG-6054] Remove super POM plugin management section
This closes #410
2020-12-24 00:05:32 +01:00
Maarten Mulders 7e21a521c7 [MNG-4660] Increase usefulness of logging 2020-12-23 16:45:58 +01:00
rfscholte 9f88494b60 [MNG-6957] Versionless reactor dependencies/parent should work even if modules are aggregated in reverse order
This closes #391
2020-12-22 16:30:37 +01:00
Romain Manni-Bucau 2609cdcbc0 [MNG-7045] Drop CDI API from Maven
This closes #408
2020-12-22 09:58:55 +01:00
Martin Kanters d8c2cc7e4a [MNG-6566] Plugins that require a certain phase should not fork goals that are already in the execution plan.
This closes #397
2020-12-15 09:21:16 +01:00
Nicolas Juneau 95ee890837 [MNG-5728] Switch the default checksum policy from "warn" to "fail"
Signed-off-by: rfscholte <rfscholte@apache.org>
Signed-off-by: Michael Osipov <michaelo@apache.org>
2020-12-02 20:49:46 +01:00
Robert Scholte 251ba225c6 Revert "[MNG-5728] Switch the default checksum policy from "warn" to "fail"" 2020-12-02 20:28:04 +01:00
rfscholte 06c3217899 Merge branch 'MNG-5728' of https://gitbox.apache.org/repos/asf/maven 2020-12-02 19:57:23 +01:00
Nicolas Juneau d8ad76b9cb [MNG-5728] Switch the default checksum policy from "warn" to "fail"
Signed-off-by: rfscholte <rfscholte@apache.org>
Signed-off-by: Michael Osipov <michaelo@apache.org>
2020-11-30 21:12:14 +01:00
Michael Osipov b24c34bb23 [MNG-7041] Update @since, version ranges and other version related strings
This closes #404
2020-11-29 11:23:53 +01:00
rfscholte 3736be9c15 Updating version in preparation for Maven 4 2020-11-27 12:22:47 +01:00
Michael Osipov 827224c7c8 [MNG-7019] Notify also at start when profile is missing 2020-11-13 19:49:35 +01:00
Michael Osipov 72688805c4 [MNG-6754] Set the same timestamp in multi module builds
Reuse MavenExecutionRequest#getStartTime() throughout for snapshot versions,
last updated fields in metadata consistently for local and remote repositories
for the entire reactor and its modules.

This closes #381
2020-11-11 23:09:49 +01:00
Michael Osipov 207237223a [MNG-6550] Packaging 'pom' binding plugin upgrades
* Upgrade to Maven Install Plugin 3.0.0-M1
* Upgrade to Maven Deploy Plugin 3.0.0-M1
2020-11-11 23:04:53 +01:00
Michael Osipov 7251b8dda8 [MNG-6551] Packaging 'jar' binding plugin upgrades
* Upgrade to Maven Resources Plugin 3.2.0
* Upgrade to Maven Compiler Plugin 3.8.1
* Upgrade to Maven Surefire Plugin 3.0.0-M5
* Upgrade to Maven JAR Plugin 3.2.0
* Upgrade to Maven Install Plugin 3.0.0-M1
* Upgrade to Maven Deploy Plugin 3.0.0-M1
2020-11-10 15:02:47 +01:00
Michael Osipov 7b04f82f87 [MNG-6556] Packaging 'maven-plugin' binding plugin upgrades
* Upgrade to Maven Resources Plugin 3.2.0
* Upgrade to Maven Compiler Plugin 3.8.1
* Upgrade to Maven Surefire Plugin 3.0.0-M5
* Upgrade to Maven Deploy Plugin 2.8.2
* Upgrade to Maven Install Plugin 2.5.2
* Upgrade to Maven Plugin Plugin 3.6.0
* Upgrade to Maven JAR Plugin 3.2.0
2020-11-10 14:59:06 +01:00
Michael Osipov 033a7a2b71 [MNG-6553] Packaging 'war' binding plugin upgrades
* Upgrade to Maven Resources Plugin 3.2.0
* Upgrade to Maven Compiler Plugin 3.8.1
* Upgrade to Maven Surefire Plugin 3.0.0-M5
* Upgrade to Maven WAR Plugin 3.3.1
* Upgrade to Maven Install Plugin 3.0.0-M1
* Upgrade to Maven Deploy Plugin 3.0.0-M1
2020-11-10 11:33:24 +01:00
Michael Osipov 658b7a9362 [MNG-6552] Packaging 'rar' binding plugin upgrades
* Upgrade to Maven Resources Plugin 3.2.0
* Upgrade to Maven Compiler Plugin 3.8.1
* Upgrade to Maven Surefire Plugin 3.0.0-M5
* Upgrade to Maven RAR Plugin 2.4
* Upgrade to Maven Install Plugin 3.0.0-M1
* Upgrade to Maven Deploy Plugin 3.0.0-M1
2020-11-10 11:31:36 +01:00
Michael Osipov 6d75136fa5 [MNG-6552] Packaging 'ejb' binding plugin upgrades
* Upgrade to Maven Resources Plugin 3.2.0
* Upgrade to Maven Compiler Plugin 3.8.1
* Upgrade to Maven Surefire Plugin 3.0.0-M5
* Upgrade to Maven EJB Plugin 3.1.0
* Upgrade to Maven Install Plugin 3.0.0-M1
* Upgrade to Maven Deploy Plugin 3.0.0-M1
2020-11-10 11:07:26 +01:00
Michael Osipov 230773a35d [MNG-6554] Packaging 'ear' binding plugin upgrades
* Upgrade to Maven EAR Plugin 3.1.2
* Upgrade to Maven Resources Plugin 3.2.0
* Upgrade to Maven Install Plugin 3.0.0-M1
* Upgrade to Maven Deploy Plugin 3.0.0-M1
2020-11-10 10:55:16 +01:00
Michael Osipov 7a4b77b582 [MNG-6548] Lifecycle plugin version upgrades
* Upgrade to Maven Clean Plugin 3.1.0
* Upgrade to Maven Site Plugin 3.9.1
2020-11-08 16:18:41 +01:00
Maarten Mulders ba7a0376b1 Refactor ProjectsCollector.collectProjects
This method now returns it result instead of modifying one of its arguments.
Closes #388.
2020-11-08 09:43:19 +01:00
rfscholte e7eef9d34f [MNG-6999] Chained (consumer) XMLFilters can result in "floating" comments 2020-10-30 12:39:23 +01:00
rfscholte 24697184cc Merge branch 'master' of https://gitbox.apache.org/repos/asf/maven 2020-10-27 20:09:23 +01:00
Sylwester Lachiewicz 449e6dc9db [MNG-6873] update junit dependency to 4.13.1 - also in unit tests 2020-10-27 11:08:56 +01:00
Martin Kanters afd17a3979 [MNG-7002] Added a test scenario for including child modules when using the --pl switch. 2020-10-23 10:41:31 +02:00
rfscholte 8913502589 Merge branch 'master' of https://gitbox.apache.org/repos/asf/maven 2020-10-21 21:25:41 +02:00
Martin Kanters 42af8ba5a2 [MNG-6981] Include the child projects (modules) of the selected projects with --pl in the reactor.
This closes #374.
2020-10-19 20:14:10 +02:00
Maarten Mulders a5b292ddf8 [MNG-6118] Make Maven aware of all projects in a multi module project when using -f or when changing directory to a submodule.
This closes #373
2020-10-18 20:34:51 +02:00
rfscholte 789d75fc68 Merge branch 'master' of https://gitbox.apache.org/repos/asf/maven 2020-10-16 20:34:10 +02:00
Sylwester Lachiewicz c61e63032f [MNG-6965] Extensions suddenly have org.codehaus.plexus:plexus-utils:jar:1.1 on their classpath
This closes #367
2020-10-05 09:06:46 +02:00
Slawomir Jaranowski d5a5bc553a [MNG-6992] Allow access to org.eclipse.aether.transform
This closes #379
2020-10-04 21:45:53 +02:00
pazderski 39641ac803 [MNG-6983] Plugin key can get out of sync with artifactId and groupId
The plugin key is build as combination of artifactId and groupId but not
updated if either of these two ids change.
This can be a problem if artifactId or groupId is a variable. The calculated
key will likely contain the unresolved property and is not updated once the
variable is interpolated.

This closes #372
2020-10-03 12:51:51 +02:00
Maarten Mulders ac80f5c2b9 Refactor MavenCli.populateRequest 2020-09-20 11:33:53 +02:00
Eddie Wiegers 2a23d7bf16 [MNG-6772] Prevent Super POM central entry from overriding
Closes #289
2020-09-01 08:31:58 +02:00
Michael Osipov 9120d86573 [MNG-6977] Use hyphen when creating builder threads (names) 2020-08-17 11:43:20 +02:00
rfscholte f2116001b9 Merge branch 'master' of https://gitbox.apache.org/repos/asf/maven 2020-08-08 11:25:29 +02:00
mickroll 6087444430 [MNG-6972] Allow access to org.apache.maven.graph
This is, for example, needed for rebuilding the dependency graph during build
extension execution after changing dependencies.

This closes #368
2020-08-04 14:04:51 +02:00
Maarten Mulders 117cfde44e [MNG-5760] Several fixes for the --resume feature.
BuildResumptionDataRepository is not used in MavenCli

Make setResume() on MavenExecutionRequest a traditional setter

Fix resolution of resume.properties file

Add unit test for DefaultBuildResumptionDataRepository#applyResumptionData

Avoid storing and using an empty excludedProjects field in the resume.properties file.

Avoid star imports

Don't create a unneeded Path when resolving resume.properties

Support the scenario where the first project was failed, but subsequent projects succeeded. (e.g. by fail-at-end or parallel builds)

Maven invocations without project shouldn't fail
2020-07-15 08:58:45 +02:00
rfscholte 2e66809e0e [MNG-6952] Fail early if pom cannot be transformed 2020-07-04 23:27:12 +02:00
rfscholte a945ca4ed3 [MNG-6944] Fix ordering lifecycles 2020-06-23 19:37:29 +02:00
rfscholte bdec668de9 [MNG-6656] Introduce base for build/consumer pom 2020-06-22 21:24:49 +02:00
rfscholte 881274914a [MNG-6917] Introduce wrapper lifecycle 2020-06-22 20:26:56 +02:00
rfscholte 1e217703a8 [MNG-6863] Support --also-make flag in combination with --resume-from.
Author: Martin Kanters <Martin.Kanters@infosupport.com>
2020-06-20 22:39:29 +02:00
rfscholte 658ad90b38 [MNG-5760] Add `-r/--resume` to automatically resume from the last failure point
Author: Martin Kanters <mkanters93@gmail.com>
2020-06-20 13:55:48 +02:00
rfscholte a7771a1234 [MNG-6562] WARN if plugins injected by default lifecycle bindings don't have their version locked in pom.xml or parent 2020-06-19 17:28:46 +02:00
rfscholte 46ed754572 Revert "[MNG-6562] added WARNING on default bindings plugins unlocked versions"
This reverts commit d9bf929c74.
2020-06-19 17:28:01 +02:00
Sylwester Lachiewicz b4725dbe06 Fix maven-checkstyle-plugin 3.1.1 reported error
- with maven-shared-resources v3
2020-06-11 20:53:36 +02:00
Sylwester Lachiewicz 2537e5306c [MNG-6828] DependencyResolutionException breaks serialization 2020-06-11 09:32:54 +02:00
olivier lamy 295c205a65 [MNG-5868] No duplicate artifacts in attached artifacts
if attached artifacts already contains the artifact remove it and add the new one

Signed-off-by: olivier lamy <olamy@apache.org>
2020-06-04 12:37:04 +10:00
huangkaifeng 5397fb66e7 [MNG-6873] Align JUnit version to 4.13
Closes #331
2020-05-09 21:19:41 +02:00
Martin Kanters f6c07d9358
[MNG-6863] --also-make is being ignored when calling --resume-from
[MNG-6676] Resume reactor build after skipped project using -pl !X -rf X combination

Co-authored-by: Martin Kanters <Martin.Kanters@infosupport.com>
2020-04-24 12:01:27 +02:00
Maarten Mulders ec92934bf0
[MNG-4660] --resume-from flag resolves inter-module dependencies
Co-authored-by: Martin Kanters <Martin.Kanters@infosupport.com>
2020-04-14 22:04:55 +02:00
Olivier Lamy af1bf4c8b4
[MNG-6886] upgrade plexus-cipher to 1.8 and update changed groupId (#335)
Signed-off-by: olivier lamy <olamy@apache.org>
2020-04-10 09:17:25 +10:00
Lewinski, Arne d127bce8c9 Revert "[MNG-6867] extract methods, apply SLA"
This reverts commit c423a090e3.
2020-04-02 23:31:20 +02:00
Lewinski, Arne c423a090e3 [MNG-6867] extract methods, apply SLA 2020-04-02 22:51:55 +02:00
Joseph Walton 9567da2bc8 [MNG-5577] Convert maven-core to JSR 330
Convert (almost) all Plexus components in maven-core to JSR 330 annotations

Closes #332
2020-04-02 15:38:26 +02:00
Joseph Walton d4207748a8 [MNG-5577] Don't use LegacyRepositoryLayout in tests.
This class was deleted, but retained in tests. We don't need
it anymore, so drop it.
2020-04-01 19:40:53 +02:00
Joseph Walton b962ff361a [MNG-5577] Simplify tests to reduce use of wiring.
- Reduce the use of wiring in unit tests
- Enable class scanning for tests that require it.
- Remove test and wiring that's not used.
2020-04-01 19:40:37 +02:00
Karl Heinz Marbaise 2628d713a9
[MNG-6882] - Change the URL's in tests etc. from http to https 2020-03-29 21:02:56 +02:00
Karl Heinz Marbaise 9e92a93ab8
[MNG-6872] - Found CVEs in your dependencies - plexus-utils (tests) 2020-03-08 15:38:11 +01:00
rfscholte f2e9afd788 Refactor getLocalRepository() in tests by using the repositorySystem 2020-02-29 21:01:24 +01:00
Hervé Boutemy d9bf929c74 [MNG-6562] added WARNING on default bindings plugins unlocked versions 2020-02-06 08:58:05 +01:00
Michael Osipov b0d2846e07 [MNG-6859] Build not reproducible when built from source release
This closes #322
2020-02-05 09:30:39 +01:00
rfscholte 716cc1fe02 [MNG-5669] same pom.xml is read multiple times 2020-01-29 21:18:42 +01:00
thelproad 96e11e1c84 [MNG-6855] Remove redundant code
Closes #280
2020-01-26 11:13:26 +01:00
Lipmanpoi e6c897efb6 [MNG-6855] Simplify some code
Closes #279
2020-01-26 11:13:18 +01:00
Sylwester Lachiewicz ace32fdbe0 [MNG-6855] Simplify code - computeIfAbsent() 2020-01-26 11:13:09 +01:00