Commit Graph

10547 Commits

Author SHA1 Message Date
rfscholte 7ac4fa5eff [INFRA-18812] Revert unnecessary commits after fixing INFRA-18812 2019-08-05 18:43:09 +02:00
Hervé Boutemy d5b0f4cef3 improved handlers documentation: artifact vs dependency attributes 2019-08-05 13:12:08 +01:00
tibordigana cb71885c14 IT archives 2019-07-31 22:24:14 +02:00
tibordigana 93c88a2bd0 [MNG-6725] Skip '.mavenrc' via MAVEN_SKIP_RC=1 and '-Dmaven.skip.rc=true' on child ITs (by default on Jenkins CI). 2019-07-30 11:53:03 +02:00
Stefan Oehme 0515cb1f0e [MNG-6720] MultiThreadedBuilder: wait for parallel running projects when using --fail-fast
Otherwise the sessionFinished event may be sent before some
projects/goals finish, which violates the contracts of execution
listeners and makes it hard to properly life cycle components that
are needed for goal execution.

This closes #272
2019-07-26 23:38:16 +02:00
Michael Osipov dd0776d949 [MNG-6653] DefaultProjectBuildingRequest copy constructor does not copy all fields 2019-07-26 22:18:45 +02:00
Mickael Istria 809cac2266 [MNG-6723] MavenProject.getParentFile() not set when using ProjectBuilder.build()
This closes #273
2019-07-26 22:16:49 +02:00
Michael Osipov 2d0c3bc75b [MNG-6704] MavenRepositorySystemUtils.newSession() misses assignment 2019-07-25 21:58:26 +02:00
Guillaume Nodet 690841e9be [MNG-6697] New fast model interpolator not using reflection (#261)
* [MNG-6697] New fast model interpolator not using reflection

* [MNG-6697] Fix management key in case a field has been modified

* [MNG-6697] Remove the unused FIELDS_CACHE and make the InnerInterpolator private

* [MNG-6697] Clean up the code to remove a few warnings
2019-07-24 12:30:12 +10:00
Guillaume Nodet 74e85329fc [MNG-6718] Upgrade to plexus-utils 3.2.1 (#271) 2019-07-23 19:12:51 +10:00
Hervé Boutemy ecc317b77f added NODE_NAME to output 2019-07-21 11:18:45 +02:00
Hervé Boutemy f7b4a657db [MNG-6549] Remove unused transitive dependencies of Guava
while at it, did a little bit of cleanup:
- removed aopalliance (like done in maven-resolver-provider)
- removed guice dependency management that should be part of MNG-6475
2019-07-20 11:29:45 +02:00
tibordigana 383c8c11ef [MNG-6712] Downgrade maven-resolver:1.4.0 to 1.3.3 2019-07-18 14:10:34 +02:00
Guillaume Nodet 53f04f03e3 [MNG-6705] Speep up Artifact version check and Parent interpolation
This closes #260
2019-07-10 21:29:23 +02:00
Guillaume Nodet 9b8ae7d528 [MNG-6702] Improve DefaultModelValidator performance:
Avoid tons of string concatenations that are done but usually not used

This closes #268
2019-07-10 21:27:36 +02:00
Joseph Walton 4fa882c30f [MNG-6703] DefaultUrlNormalizer doesn't normalize all relative URIs
* Switch behaviour on relative URIs to match Path#normalize()
* Adopt RFC 3986 behaviour for traversal past the root
* Add a test that this isn't applied to relative URI references

This closes #264
2019-07-10 11:56:42 +02:00
Guillaume Nodet 7ba9700386 [MNG-6698] Lazily compute the ManagedVersionMap
This map is not used by Maven and the computation can be quite heavy, so lazily
compute it. In addition, do not clone the map as it's an unmodifiable one already.

This closes #263
2019-07-07 00:30:10 +02:00
Bo Zhang 84bf1877f0 [MNG-6700] Equal compile source roots are added multiple times
This closes #266
2019-07-06 18:27:47 +02:00
AElMehdi 8da81ce73c [MNG-6701] Document maven.repo.local property
This closes #265
2019-07-06 18:15:49 +02:00
Joseph Walton 353d3eaa8f [MNG-6685] Convert Maven Model Builder to JSR 330
This closes #256
2019-06-23 00:20:54 +02:00
Sylwester Lachiewicz 59bd396e6e [MNG-6686] Convert Maven Embedder to JSR 330
This closes #257
2019-06-21 23:57:49 +02:00
Sylwester Lachiewicz 0bffc8a932 [MNG-5577] Maven Artifact module has no Plexus annotations 2019-06-21 23:01:45 +02:00
Michael Osipov edf61684c8 [MNG-6674] Upgrade Wagon to 3.3.3 2019-06-17 22:19:34 +02:00
Hervé Boutemy 58de88f95c MNG-6681 dependency type = extension+classifier
removed misleading "While it usually represents the extension on the
filename of the dependency, that is not always the case. A type can be
mapped to a different extension and a classifier. The type often
corresponds to the packaging used, though this is also not always the
case."
2019-06-16 16:54:58 +02:00
Joseph Walton c5ede2fef8 [MNG-6680] Convert Maven Settings Builder to JSR 330
Use @Named and @Singleton throughout, and switch to constructor injection
for DefaultSettingsBuilder.

This closes #246
2019-06-15 20:35:50 +02:00
Christian Schulte c2f13f7e87 [MNG-6675] Make Resolver debug log messages for projects and plugins consistent
This closes #124 and closes #253
2019-06-15 20:12:36 +02:00
Michael Osipov 3d76faed00 Merge branch 'MNG-6672' 2019-06-13 11:40:08 +02:00
Michael Osipov 25ffca0633 [MNG-6672] Upgrade Maven Resolver to 1.4.0 2019-06-12 23:23:14 +02:00
Mao Shuai da05c25584 Use properly quoted shell arguments with "$@"
This closes #238
2019-06-10 20:26:40 +02:00
Stefan Oehme 8f1cac0b1c [MNG-6671] Upgrade Modello to 1.11 2019-06-10 15:18:30 +02:00
Michael Osipov 92b5191726 Revert "Modello changes"
They weren't properly squashed and worded.

This reverts commit 5035837094.
This reverts commit 8aaeb8adf5.
2019-06-10 13:55:38 +02:00
Michael Osipov 5035837094 [MNG-6671] Upgrade Modello to 1.10.1
This closes #252
2019-06-10 11:35:48 +02:00
Stefan Oehme 8aaeb8adf5 [MNG-6581] - Update to latest Modello plugin version 2019-06-10 11:08:29 +02:00
MartinKanters aed5130487 [MNG-6665] toolchain.xml file should support environment variables 2019-06-08 10:43:12 +02:00
Stephen Connolly 01405a2d60
[MNG-6667] Enhance the error reporting when trying to build a modelVersion that the current Maven doesn't understand 2019-06-03 21:33:44 +01:00
rfscholte 275a9714c6 Include Java 12 for testing 2019-06-01 21:54:59 +02:00
Olivier Lamy 3495521a12
-DdeployAtEnd=true doesn't deploy anything 2019-05-29 16:19:00 +10:00
Olivier Lamy a117168395
oops fix branch name 2019-05-29 14:34:45 +10:00
Olivier Lamy 8524e04e66
fix Jenkinsfile as it is script 2019-05-29 13:20:38 +10:00
Mickael Istria 660e745d85 Always deploy snapshot from master (#250)
Signed-off-by: Mickael Istria <mistria@redhat.com>
2019-05-29 13:13:49 +10:00
Stefan Oehme d3ace78602 [MNG-6638] Prevent reparsing POMs in MavenMetadataSource
If a dependency on another project is found, don't parse its
POM again, but instead use the model we already have in memory.
This saves a large amount of time and memory for builds that have
lots of subprojects and dependencies between them.
The approach was directly copied from DefaultArtifactDescriptorReader,
which does the same optimization.

This closes #244
2019-05-27 23:11:09 +02:00
Sylwester Lachiewicz 6c01ec18cb [MNG-6633] - Reduce memory usage of excludes - fix rat/checkstyle errors 2019-05-25 14:26:09 +02:00
Stefan Oehme 790dc0f2b7 [MNG-6633] - Reduce memory usage of excludes
ExcludesArtifactFilter was highly inefficient.
It took the group and artifact ID of an Exclusion, concatenated them into
a new String, which was kept in memory for the whole duration
of the build and then compared that String against the concatenation
of group and artifact ID of each incoming artifact, adding more
CPU cycles than necessary.

Instead we now just wrap the existing Exclusion object and check its
groupId and artifactId against the artifact to tell whether it should
be excluded.

The old class is kept around for binary compatibility, but is now unused.

Closes #243
2019-05-25 13:12:47 +02:00
rfscholte ff8c5c8706 MNG-6069: unittest with compact and spaced -D options 2019-05-17 22:09:48 +02:00
Joseph Walton 658301276a [MNG-6069] Avoid (some) deprecated commons-cli methods
Switch from OptionBuilder to Option.Builder. Confirm by
inspection that the resulting Option objects are the same.

For now, leave GnuParser. Despite the upgrade advice in the GnuParser
Javadoc ("since 1.3, use the DefaultParser instead"), it behaves
differently.

Closes #247
2019-05-17 22:09:48 +02:00
Sergey Chernov 1a18eb6c9c [MNG-6626] fix DefaultExceptionHandler NPE
Closes #241
2019-05-13 09:43:56 +02:00
Michael Osipov 3ac9718f82 [MNG-6655] Add support for "release" qualifier
This closes #249
2019-05-12 18:16:31 +02:00
Piotrek Żygieło 2760e3e175 (doc) - correct plural form of 'child'
Closes #248
2019-05-08 21:00:55 +02:00
rfscholte 4ff24e3678 [MNG-6643] Integration test 2019-04-29 23:27:58 +02:00
Hervé Boutemy 5350ed8a1f [MNG-6644] don't fail if no input location tracking available
this can happen when the POM is not parsed by Maven core from XML
2019-04-28 19:42:25 +02:00