Commit Graph

10494 Commits

Author SHA1 Message Date
Stefan Oehme 44ad1aafa6 [MNG-6631] - Make DefaultArtifactVersion faster
Use if-statements instead of exception-based control flow.
Throwing exceptions is very expensive and should not be used
for normal flow.
2019-04-27 18:03:38 +02:00
Stefan Oehme ebac165990 [MNG-6630] - Make ComparableVersion faster
By not allocating the canonical representation for equals/hashcode,
but instead using the items we already have. This saves both time
and memory.

I left the canonical field around for testing purposes.
2019-04-27 18:03:31 +02:00
Stefan Oehme baed5a294f [MNG-6629] - Make ID validation faster
Use a simple list of allowed characters instead of a regex.
2019-04-27 18:03:20 +02:00
Karl Heinz Marbaise 80c6fe3a01
[MNG-6643] - Version comparison CLI does not work anymore 2019-04-24 19:56:24 +02:00
Joseph Walton fdde73fcb4 Remove unused code that triggers Error Prone (#245)
Running Error Prone over Maven triggers an infinite recursion
check in AbstractCoreMavenComponentTestCase.PluginBuilder
2019-04-20 16:08:06 +02:00
Sylwester Lachiewicz 763f76cf83 [MNG-6642] Revert "[MNG-5995] Remove dependency to maven-compat (#185)"
This partially reverts commit bb3ec5da71 to restore working with Tycho P2 repository.
2019-04-20 00:10:59 +02:00
Sylwester Lachiewicz 61d888c785 [MNG-6646] Upgrade maven-assembly-plugin to 3.1.1 2019-04-19 23:42:59 +02:00
Jesse Glick 0940c7c973 [MNG-6405] Fix basedir in MavenProject.deepCopy (#225)
* [MNG-6405] Fix basedir in MavenProject.deepCopy.

* Reproduced bug in test.
Failure without patch:
junit.framework.AssertionFailedError: Base directory is preserved across clone expected:<…/maven-core/target/test-classes> but was:<…/maven-core/target/test-classes/target>
	at org.apache.maven.project.MavenProjectTest.testCloneWithBaseDir(MavenProjectTest.java:188)

* Code style. Not enforced in tests during build?
2019-04-16 21:28:03 +10:00
Karl Heinz Marbaise 715d90b880
Update DOAP Information for new release. 2019-04-12 19:58:11 +02:00
Hervé Boutemy 55614d32d9 [MNG-6627] upgrade Plexus container to 2.0.0 for Reproducible Builds 2019-04-07 16:18:23 +02:00
Karl Heinz Marbaise 5222f03d05
[maven-release-plugin] prepare for next development iteration 2019-04-04 20:56:37 +02:00
Karl Heinz Marbaise d66c9c0b31
[maven-release-plugin] prepare release maven-3.6.1 2019-04-04 20:56:16 +02:00
Romain Manni-Bucau 0ba5753c17 [MNG-6618] adding org.slf4j.event in exported packages
Based on MNG-6360
2019-04-01 11:55:58 +02:00
Raymond Auge 95401cf7a6 [MNG-6605] Unable to suppress download/upload messages (in interactive mode)
This closes #239
2019-04-01 08:47:10 +02:00
Sylwester Lachiewicz a7acfe75b1 [MNG-6611] Update animal-sniffer-maven-plugin to version 1.17
Fixes #237
2019-03-29 15:55:28 +01:00
Sylwester Lachiewicz 5306cd010e [MNG-6506] [MNG-6543] Upgrade Plexus Classworlds to 2.6.0
Enable plugins that use the new JPMS Java 9 API to work in Java 9+
2019-03-28 21:06:18 +01:00
Sylwester Lachiewicz 0be26449fb
[MNG-6538] Upgrade maven-resolver to 1.3.3 2019-03-24 22:47:59 +01:00
Gabriel Belingueres f5a13746e1 [MNG-6572] use int or long instead of BigIntegers for little numbers in
ComparableVersion

- Added class IntItem and LongItem for handling numbers lower than 2^31
and 2^63.
- Renamed IntegerItem to BigIntegerItem for handling larger numbers.
- Changed old Stack implementation to LinkedList.
- Changed LinkedList to ArrayDeque.
- Changed thrown RuntimeException by IllegalStateException.
- Ensure numeric values don't have leading zeroes, therefore ensuring
that IntItem, LongItem and BigIntItem represent bigger numeric values,
respectively.
- Only compare item value when the other Item is of the same type.
Otherwise infer comparison result from the quantity of digits of the
numerical value representing the other Item.
- Added tests.
2019-03-17 10:58:26 +01:00
Hervé Boutemy 49c8f17ed4 [MNG-6601] add input location tracking for m-site-p converted reports 2019-03-11 23:44:32 +01:00
Hervé Boutemy 0b10fe75a5 [MNG-6597] add input location tracking for plugins configuration
add also xpp3-extended-writer directly in Maven core
2019-03-11 23:44:31 +01:00
Hervé Boutemy 4bec5502d5 [MNG-6600] add inputlocation tracking for default lifecycle executions 2019-03-11 23:44:31 +01:00
Hervé Boutemy 37676a2617 [MNG-6599] use version from parent if necessary, like groupId 2019-03-11 23:44:31 +01:00
Michael Osipov 9dd4732b74 Revert "[MNG-6548] Lifecycle plugin version upgrades"
This reverts commit 33e4f201d3.
Commit will be postponed to 3.7.0.
2019-02-17 20:30:25 +01:00
Hervé Boutemy bd4a3a0d22 [MNG-6593] track input location for super-pom content 2019-02-17 15:28:39 +01:00
Michael Osipov c674bcfb42 [MNG-6495] ModelResolver cannot be null 2019-02-16 22:37:27 +01:00
Michael Osipov 4decfcfcfe [MNG-6591] Upgrade to Wagon 3.3.2 2019-02-13 19:46:38 +01:00
Hervé Boutemy 961746f25f [MNG-6571] separate caches for create from spec and version 2019-02-11 14:31:13 +01:00
Hervé Boutemy 657fbb76cf Revert "[MNG-6571] forgot to put new instance in cache"
This reverts commit 6bd8bb9ba6.
2019-02-06 08:49:04 +01:00
Hervé Boutemy 6bd8bb9ba6 [MNG-6571] forgot to put new instance in cache 2019-02-05 08:34:55 +01:00
Hervé Boutemy 8f9075d3ad [MNG-6571] cache VersionRange instances, they are immutable 2019-02-05 00:38:25 +01:00
Sylwester Lachiewicz b7249aff22 Revert [MNG-6069] Migrate to non deprecated parts of Commons CLI
This reverts commit 396291bba0 due to regression
2019-02-01 21:41:23 +01:00
Guy Brand 15c647182a [MNG-6558] ToolchainsBuildingResult event is not sent on EventSpy
Closes #231
2019-01-27 12:01:35 +01:00
Sylwester Lachiewicz 7e3e5453c0 [MNG-6573] Use Maven 3.6.0 for CI
Closes #235
2019-01-27 11:02:00 +01:00
Sylwester Lachiewicz bb3ec5da71 [MNG-5995] Remove dependency to maven-compat (#185)
No implementation for deprecated Maven 2.x RepositorySystem interface
2019-01-26 14:37:51 +01:00
Hervé Boutemy 24c762d7c3 [MNG-6533] catch InvalidArtifactRTException runtime exception
instead of global Exception that may hide too many cases
2019-01-14 14:30:06 +01:00
Mickael Istria 27332cfab0 [MNG-6533] ProjectBuilder report ModelProblem instead of Exception
Sending ModelProblems allows to keep processing other pom files.
2019-01-14 13:55:45 +01:00
Mickael Istria 8b7055fe3f [MNG-6533] Prefer passing the interim project in ProjectBuildingResult
Initialize the interim project with "simple" items (ie do not build
not reference parent if it's not yet in the projectIndex) and returns
it when installation fails further.
This give a partial validation of the file, pretty convenient in IDEs.
2019-01-14 13:55:45 +01:00
Mickael Istria ae1c32aa09 [MNG-6533] Test: ProjectBuildingException miss reference to MavenProject 2019-01-14 13:55:44 +01:00
Hervé Boutemy 049b7a7ba8 refactoring: reduced try/catch scope 2019-01-14 13:52:03 +01:00
Hervé Boutemy 2928dc6b68 refactoring: extracted initParent() method 2019-01-14 13:52:03 +01:00
Sylwester Lachiewicz 396291bba0 [MNG-6069] Migrate to non deprecated parts of Commons CLI (#153) 2019-01-13 21:19:39 +01:00
Hervé Boutemy fdf5d921a3 renamed variables for better understanding 2019-01-13 19:18:30 +01:00
John Lin 375cd7b7ae [MNG-6559] Fix mailing list URL (#230) 2019-01-13 22:36:47 +13:00
Hervé Boutemy 8e5ecf0622 fixed link (that goes to implementation in maven-core) 2019-01-12 18:36:44 +01:00
Christoph Etzel a939654b76 [MNG-6256] Surround parameter of echo command with double quotes
Fixes #128, #228
2019-01-08 22:22:34 +01:00
Mickael Istria d9facde3bc [MNG-6530] Introduce system property to disable global model cache
The global model cache introduced in MNG-6311 causes severe regressions
in case of POM files changing during application lifetime.
This patch adds a system property
`defaultProjectBuilder.disableGlobalModelCache` that disables this global
model cache when set to true, ensure pom modifications are honored.

This closes #194
2019-01-08 15:25:27 +01:00
Michael Osipov 33e4f201d3 [MNG-6548] Lifecycle plugin version upgrades
* Upgrade to Maven Clean Plugin 3.1.0
* Upgrade to Maven Site Plugin 3.7.1
2019-01-07 13:23:57 +01:00
Sylwester Lachiewicz eab62f169d [MNG-6520] Update namespaces for maven-assembly to 2.0.0
Fixes #227
2019-01-07 12:11:58 +01:00
Michael Osipov 391a1118fa [MNG-6526] Upgrade to Wagon 3.3.1 2019-01-06 19:31:04 +01:00
Michael Warnecke 9c946263fa [MNG-6213] Validate scope in dependencyManagement
This closes #131
2018-12-28 23:45:45 +01:00