Commit Graph

11665 Commits

Author SHA1 Message Date
Guillaume Nodet b4773576a8 [MNG-6326] Make the build fail if core extensions can not be loaded (#648) 2022-01-07 10:03:15 +01:00
Michael Osipov 2670c00751 [MNG-5561] Plugin relocation loses configuration
Previously, to locate plugin configuration in a project the plugin descriptor
was read first and then the GA were extracted. This always worked because the
GA from the model and the GA from plugin descriptor (plugin.xml) were identical.
When a plugin is relocated the target artifact is read, thus its plugin
descriptor as well. Naturally, the GA of new (relocated) does not correspond to
the old (static) one in the model. Therefore, the configuration is not found.
New approach is to use the original plugin GA to locate the configuration in
the model regardless of the relocation.

This closes #642
2022-01-06 16:54:03 +01:00
Hervé Boutemy d6b9108f58 [MNG-6917] upgrade maven-wrapper-plugin to 3.1.0 2022-01-05 00:09:35 +01:00
Michael Osipov 706d9319f1 [MNG-7369] Maven BOM doesn't need to package as a JAR
This closes #647
2022-01-02 15:11:41 +01:00
Michael Osipov 46d57bdb3f [MNG-7374] Mutating RelocatedArtifact does not retain type
This closes #641
2021-12-30 16:50:58 +01:00
Jeff Hodges 2cb4fe949a [MNG-7377] Add .vscode/ to .gitignore
VS Code creates directories with configurations in project directories. This
is usually fine, but triggers the `apache-rat` license alarms and future
VS Code users might accidentally commit the directory.

To solve the alarm and avoid future issues, we add it to .gitignore.

This closes #646
2021-12-30 14:58:09 +01:00
Michael Osipov d8445a54bb Improve PR template 2021-12-30 14:52:36 +01:00
Michael Osipov 0a8bd727ac [MNG-7370] Upgrade Maven Wagon to 3.5.1
This closes #644
2021-12-28 22:20:45 +01:00
Michael Osipov 951b5ee95f Fix SLF4J license link 2021-12-26 22:12:10 +01:00
Hervé Boutemy 3d4d6d8bea fix wrong dependencies 2021-12-26 22:06:43 +01:00
Hervé Boutemy f793d862e3 [MWRAPPER-14] remove Maven Wrapper from core 2021-12-26 17:42:35 +01:00
Michael Osipov 6257b33142 [MNG-7193] Introduce MAVEN_ARGS environment variable
Add args directly after the class name and leave users the option to override
with maven.config or CLI args.

This closes #637
2021-12-21 10:29:19 +01:00
Michael Osipov e6287b4701 Improve startup scripts
This closes #636
* Properly name jump labels for jvm.config in cmd
* Supply one arg per line
2021-12-20 21:24:40 +01:00
Guillaume Nodet 33aedfc28b
[MNG-7156][MNG-7285] Add locking in MojoExecutor (#627) 2021-12-17 09:18:40 +01:00
Julian de Bruin 16dd31aba1 [MNG-7339] Verify Maven can build itself
Closes #613.
2021-12-13 08:53:45 +01:00
Guillaume Nodet 3a06530dbc
Remove duplicate call to longOpt (#626) 2021-12-02 11:43:23 +01:00
Martin Kanters c9c6844dd4
Update organization of Martin Kanters 2021-12-01 10:11:48 +01:00
Guillaume Nodet ae8aebea19
[MNG-7182] Use the MX xpp parser instead of a STAX transformation (#486) 2021-11-29 13:31:55 +01:00
Julian de Bruin 98a6c4f14c [MNG-7340] Option fail-on-severity takes one argument
Closes #620
2021-11-25 11:35:01 +01:00
Michael Osipov 9dbd8e7366 Update DOAP with Maven 3.8.4 release 2021-11-20 15:55:23 +01:00
Giovanni van der Schelde f43f9f8a3b [MNG-7332] No longer support --define
The reason is that it is broken in Commons CLI and -D just works.
We don't want to work around symptoms. Another point is that
java(1) does not have --define either so we'd like to keep that
consistent.

Closes #611.
2021-11-15 10:46:27 +01:00
Michael Osipov 0a72185a6e [MNG-7331] Upgrade Jansi to 2.4.0 2021-11-12 18:58:57 +01:00
Guillaume Nodet a748596cd8 [MNG-7329] Upgrade maven-enforcer-plugin 2021-11-10 19:33:29 +01:00
Sylwester Lachiewicz 712199a004
(doc) hacktoberfest 2021-10-30 19:43:50 +02:00
Hervé Boutemy a5f1bca9ef improve documentation 2021-10-24 11:09:07 +02:00
Michael Osipov 8784812cf6 [MNG-7312] Revert ThreadLocal approach from MNG-6843 and MNG-7251
Revert "[MNG-7251] Fix threadLocalArtifactsHolder leaking into cloned project"

This reverts commit a6e462b53a.

Revert "[MNG-6843] Parallel build fails due to missing JAR artifacts in compilePath"

This reverts commit 73e00ed85d.

===

This closes #594
2021-10-22 21:57:09 +02:00
Karl Heinz Marbaise 965aaa53da
[MNG-7314] - Refactoring - Remove unused MavenExecutionResult 2021-10-18 20:47:55 +02:00
Michael Osipov 2c37a7a38e Simplify args help 2021-10-17 12:44:14 +02:00
Hervé Boutemy f46a9131d5 fix javadoc errors 2021-10-17 12:07:50 +02:00
Hervé Boutemy 2f81b7d93b [MNG-6914] move assembly descriptors to src/assembly 2021-10-16 19:44:39 +02:00
Hervé Boutemy ede86ab4b6 [MNG-6914] move apache-maven-wrapper to its own separate Maven module 2021-10-16 19:44:39 +02:00
Hervé Boutemy b58d8b3a4f [MNG-6914] move mvnw scripts from maven/shared to wrapper/shared 2021-10-16 19:44:39 +02:00
Hervé Boutemy 5be4192ded [MNG-6914] drop tar.gz archives for wrapper install distributions 2021-10-16 19:44:39 +02:00
Hervé Boutemy bf59026554 [MNG-6914] rename MAVEN_LAUNCHER to LAUNCHER_CLASS (from LAUNCHER_JAR) 2021-10-16 19:44:39 +02:00
Hervé Boutemy bb0fed9f40 [MNG-6914] rename .mvn hidden directory in source to mvn 2021-10-16 19:44:39 +02:00
Arturo Bernal 4c21e11b01 [MNG-7298] - Avoid redundant conditions. 2021-10-13 22:53:52 +02:00
Arturo Bernal 274388fc0f [MNG-7303] - Replace Throwable.initCause() with constructor. 2021-10-13 22:52:02 +02:00
Giovanni van der Schelde ffc2b99e3e [MNG-6389] Move the toolchains model to a separate artifactId
Closes #586
2021-10-13 16:10:22 +02:00
Jonathan Dowland 8852b87412 [MNG-7270] Switch to shell alternative to "which"
In some circumstances the init script calls `which`, which may or may not be
available on the host system. Instead, use `command -v`, which is nearly
equivalent. One area it differs is if the command being queried is defined as
a shell alias. To avoid that, call `unset -f command` to avoid the situation
where "command" has been re-defined as a shell function.

See here for more information on this approach:
<https://pubs.opengroup.org/onlinepubs/009695399/utilities/command.html>

Tested with bash, sh (bash invoked as sh), posh, dash, zsh and mksh.

This closes #556
2021-10-11 22:17:23 +02:00
Arturo Bernal 0080e84588
[MNG-7297] Remove redundant type arguments (#581) 2021-10-11 20:58:38 +02:00
Arturo Bernal 4daa48e0f6 [MNG-7287] Simplify assertion with simpler and equivalent calls
Closes #576
2021-10-10 22:34:07 +02:00
Arturo Bernal b31f3aeef3
[MNG-7291] Avoid String concatenation in loops (#572) 2021-10-10 22:12:41 +02:00
Hervé Boutemy 25796220ad fix indentation 2021-10-10 19:36:15 +02:00
Arturo Bernal 16afe061c9 [MNG-7290] Java8 improvements
Closes #571
2021-10-10 12:50:42 +02:00
Arturo Bernal d61fcf7da1 [MNG-7288] Remove redundant local variables
Closes #569
2021-10-10 12:42:12 +02:00
Arturo Bernal b9fb762215 [MNG-7292] Unnecessarily escaped character
Closes #573
2021-10-10 12:18:15 +02:00
lujie fbb9d95d50 MNG-7293:fix resource leak due to Files.walk 2021-10-10 12:05:42 +02:00
Giovanni van der Schelde ccb76b0db6 (doc) Update dead link for Github PR docs 2021-10-10 11:48:27 +02:00
Sylwester Lachiewicz c825b97bf7 (doc) Update GH build config - bump 17-ea to 17, use new setup-java@2 action 2021-10-10 11:38:50 +02:00
Arturo Bernal 4fafe44112 MNG-7296 - Remove redundant 'if' statement 2021-10-10 10:53:58 +02:00