Elliotte Rusty Harold
bec19ec41d
replace deprecated methods that don't properly handle encoding ( #1033 )
2023-03-08 00:11:30 +00:00
Andrey Bruykhov
f7d3e30d10
Using Set<>() for contains()
...
This closes #998
2023-03-07 17:54:07 +01:00
Elliotte Rusty Harold
009ec5dc41
remove plexus utils dependency ( #1032 )
2023-03-07 10:44:46 -05:00
Tamas Cservenak
c1dfb947b5
[MNG-7715] Update to resolver 1.9.6 ( #1036 )
...
Adjust some UTs as error message did change.
---
https://issues.apache.org/jira/browse/MNG-7715
2023-03-06 11:17:56 +01:00
Elliotte Rusty Harold
0dd9ebc126
restore src/mdo/reader.vm ( #1034 )
2023-03-05 12:43:42 +00:00
Elliotte Rusty Harold
dcc916a9e3
Merge branch 'master' of github.com:apache/maven
2023-03-04 18:44:39 -05:00
Elliotte Rusty Harold
d86cee4f90
revert accidental commit
2023-03-04 18:44:29 -05:00
Elliotte Rusty Harold
9e797f5e1b
let hte XML parser detect th encoding
2023-03-04 18:42:08 -05:00
Christoph Läubrich
f41d533e71
[MNG-7716] ConcurrencyDependencyGraph deadlock if no root is selected
...
If ConcurrencyDependencyGraph#getRootSchedulableBuilds returns an empty
list then MultiThreadedBuilder is locked forever as it never gets a
build result (because nothing is scheduled).
This changes the method, that in such case just the first project is
returned, this might not give the best performance, but ensures that
there is at least one build scheduled and the build-loop can proceed.
This closes #1029
2023-03-03 18:04:36 +01:00
Tamas Cservenak
65d95f08a6
[MNG-7717] Maven warns wrongly about deprecated parameter ( #1031 )
...
The implementation for MNG-7706 is wrong: it changes parameter NAME,
where it should check type and defaultValue instead.
---
https://issues.apache.org/jira/browse/MNG-7717
2023-03-03 08:52:40 +01:00
Alexey Venderov
7967c204e4
[MNG-7683] Iterate over each dominant child ( #986 )
...
* Iterate over each dominant child
* Use more generic test data
2023-03-02 06:30:24 +01:00
Elliotte Rusty Harold
b9b6d85957
[MNG-7700] test some edge cases with leading zeroes ( #1014 )
...
* add tests for MNG-7700
2023-03-02 00:37:27 +00:00
Tamas Cservenak
da64ee9c91
[MNG-7713] Make Maven fail if option present ( #1021 ) ( #1022 )
...
As with previous PR (simple removal) the `-llr` got
interpreted as `-l lr`, it logged all output to `lr`
file. This would maean that use of `-llr` would still
sneakily 'work' and probably cause surprise down the
road to users.
Returned the option, and expicitly checking for it's
presence to be able to fail with meaningful message.
---
https://issues.apache.org/jira/browse/MNG-7713
2023-03-01 13:51:51 +01:00
Tamas Cservenak
afc1a2bd86
[MNG-7713] Drop legacy-local-repository option ( #1020 )
...
There is really no need for it, and there is a resolver option if really must (but really should not, local repo is and should be considered as transient).
---
https://issues.apache.org/jira/browse/MNG-7713
2023-03-01 11:17:55 +01:00
Elliotte Rusty Harold
4e098a3205
Simplify code with try with resources ( #1017 )
2023-02-27 07:38:19 -05:00
Elliotte Rusty Harold
85ac42dbd9
remove unused code ( #1016 )
2023-02-26 18:27:58 +00:00
Tamas Cservenak
22d2b47c04
[MNG-7706] Deprecate 'localRepository' parameter expression ( #1009 ) ( #1012 )
...
This PR deprecates the 'localRepository' mojo parameter expression, and Core will emit warning if used by any Mojo.
---
https://issues.apache.org/jira/browse/MNG-7706
2023-02-23 18:14:45 +01:00
Tamas Cservenak
b1bffd68b8
[MNG-7695] Update resolver to 1.9.5 ( #1011 )
...
Update resolver to 1.9.5 w/ many fixes.
---
https://issues.apache.org/jira/browse/MNG-7695
2023-02-23 09:43:33 +01:00
Tamas Cservenak
a35307771c
[MNG-7702] Use latest deploy plugin ( #1007 )
...
And have it aligned with install plugin. These two now provides all the fixes and new functionalities like working deployAtEnd etc.
---
https://issues.apache.org/jira/browse/MNG-7702
2023-02-22 13:21:34 +01:00
Guillaume Nodet
1d9dd4a364
[MNG-7679] [REGRESSION] Build fails when executing a single mojo without a POM
...
This closes #993
2023-02-20 21:21:34 +01:00
Michael Osipov
e2a8db3f02
Remove unneeded exclusion
2023-02-19 15:45:54 +01:00
Andrey Bruykhov
b17c968a0b
Close stream with try-with-resources
...
This closes #997
2023-02-17 20:59:36 +01:00
Alexey Venderov
b82479bf11
[MNG-7689] Check if execution lifecycle phase is not null ( #996 )
2023-02-15 08:49:39 +01:00
Andrey Bruykhov
7b38457506
Normalize regex patterns
...
This #990
2023-02-09 18:47:51 +01:00
Andrey Bruykhov
6e25a2674b
[MNG-7686] Speed up by replacing non-pattern #replaceAll() with #replace() or precompiled patterns
...
This closes #984
2023-02-07 21:55:12 +01:00
Andrey Bruykhov
ef3cf56b51
Added missing @Deprecated/@deprecated annotations
...
@Deprecated annotatio is helpful to prevent usage of deprecated API.
For example: developer can see crossed out method/field name if this item
is deprecated.
This closes #985
2023-02-07 20:46:28 +01:00
Tamas Cservenak
769f2f3a47
Add maven 3.9.0 release to doap
2023-02-06 13:05:03 +01:00
Christoph Läubrich
0525d90d42
[MNG-7544] MavenMetadataSource#retrieve(MetadataResolutionRequest) does not check for null when reading from project map
...
Currently, if a project is returned from the workspace reader, but is not part
of the reactor, a NPE occurs. In this case, the repositories are read from
the model instead.
This closes #981
2023-02-05 13:17:09 +01:00
Tamas Cservenak
f9ea10688c
Add bin packages to SHA512 checksumming as well ( #978 )
...
Not only src but bin needs SHA512 as well. Plugin now does:
```
[INFO] --- checksum:1.11:artifacts (source-release-checksum) @ apache-maven ---
[INFO] apache-maven-4.0.0-alpha-5-SNAPSHOT-bin.tar.gz - SHA-512 : 2ee4c27ff611852caffab6543582918c06d900da184cdd389e64bae05fb8a2ac959edf27a946c60c9129c87baa6ec593a64d25edf3739339dd3f8d3d7942c7db
[INFO] apache-maven-4.0.0-alpha-5-SNAPSHOT-bin.zip - SHA-512 : 078667f3aad060163cad692eab7ced00fa377ba3a89f43431b23bd5248fc1603d3668cd68a7f096abcbc460ef4fbb47981b6bf5acc236a522e40fd700bb415c6
[INFO] apache-maven-4.0.0-alpha-5-SNAPSHOT-src.tar.gz - SHA-512 : ad2ca325ef138389fa967bde5e176a2447b5dd9e7edfa5cd1bf3f586fd39b93a1d415b55bb41b29e996104a4e14d4ef5fcc0e2c2eff65609121595f2695c96d4
[INFO] apache-maven-4.0.0-alpha-5-SNAPSHOT-src.zip - SHA-512 : 060de415118365954918079c73bf0ecc5d1ea8989b1864b32e3ebccd94306263878805c6d997d6c4a69700ebedd6fe42485a3692570c6466deb5e1be136e3e3e
```
2023-02-01 08:17:09 +01:00
Guillaume Nodet
80bd00c9b0
Add maven 4.0.0-alpha-4 release to doap
2023-01-31 18:16:53 +01:00
Tamas Cservenak
489e4e6526
[MNG-7676] Fix checksum plugin configuration ( #977 )
...
Wrong goal is being used that does not honor classifiers. Also,
have to reshuffle the config, move it inside execution otherwise
ASF parent pom execution is NOT overridden.
---
https://issues.apache.org/jira/browse/MNG-7676
2023-01-31 13:22:31 +01:00
Tamas Cservenak
dfb406c5b3
Fix site plugin warning ( #974 )
...
As date format in these two files were not parsed.
2023-01-30 16:20:35 +01:00
Guillaume Nodet
41429b15ab
[MNG-7673] IllegalArgumentException thrown for invalid checksum 'never' ( #972 )
2023-01-30 15:11:30 +01:00
Guillaume Nodet
30fafa6741
[MNG-7672] Fork should only execute the project and its submodules ( #968 )
2023-01-30 15:08:08 +01:00
Guillaume Nodet
fbeefb85ab
[maven-release-plugin] prepare for next development iteration
2023-01-27 16:33:47 +01:00
Guillaume Nodet
009cf4a721
[maven-release-plugin] prepare release maven-4.0.0-alpha-4
2023-01-27 16:33:38 +01:00
Guillaume Nodet
f153ac134c
[MNG-7598] Fix compatibility issues with toolchains and settings ( #971 )
...
* Split the header on two lines
* Properly delegates equals/hashCode to the v4 models
* Introduce object tracking in settings / toolchains
* Get back to a single template for v3 models
* Switch settings / toolchains mergers to deep merge
* Fix binary compatibility with 3.x
2023-01-27 15:56:16 +01:00
Karl Heinz Marbaise
74cf7eae8f
[MNG-7543] - Upgrade JUnit Jupiter Version 5.9.1 ( #837 )
...
Co-authored-by: Guillaume Nodet <gnodet@gmail.com>
2023-01-27 15:51:08 +01:00
Guillaume Nodet
f77de570b7
[MNG-7646] Do not parse the whole reactor unless required by command line options ( #963 )
2023-01-26 11:42:23 +01:00
Tamas Cservenak
38b447b85f
Get rid of surefire warning ( #966 )
...
* Get rid of surefire warning
As we use deprecated configuration.
* Fix it
2023-01-25 15:22:26 +01:00
Tamas Cservenak
8918c8144f
[MNG-7622] Maven Transformation and Consumer POM ( #907 )
...
Maven Consumer POM redone, it happens only in "maven3 realm" (before resolver), and allows use cases like m-gog-p and checksum-m-p work as before.
Key aspects:
* consumer POM is injected to build earliest possible as attached artifact
* it lives and is visible just like any other attached artifact (so m-gpg-p can process it)
* just before the install/deploy, they are "swapped out" to replace POM along with all "extras" it may have (checksum, signature)
* to support use cases like MNG-7067 (in memory model is changed, but not POM file), OnChangeTransformer could be extended to take into account both: file content and model content.
---
https://issues.apache.org/jira/browse/MNG-7622
2023-01-25 11:27:00 +01:00
Hervé Boutemy
74548dde8e
[MNG-7664] consolidate Velocity templates used to generate code from models ( #949 )
2023-01-20 00:38:51 +01:00
Guillaume Nodet
c1a900190f
[MNG-7629] Change reactor reader to copy packaged artifacts and reuse them across builds if needed ( #954 )
2023-01-19 11:55:20 +01:00
Slawomir Jaranowski
20f7c65a52
Execute IT tests with clean local repository
2023-01-17 19:48:48 +01:00
Tamas Cservenak
01ba8291cd
[MNG-7666] Update default binding and lifecycle plugin versions ( #956 )
...
Finally use 3.x plugins for all.
---
https://issues.apache.org/jira/browse/MNG-7666
2023-01-16 14:30:48 +01:00
Tamas Cservenak
2fba4471c9
[MNG-7668] Update Resolver to 1.9.4 ( #959 )
...
Update Maven Resolver to 1.9.4
---
https://issues.apache.org/jira/browse/MNG-7668
2023-01-16 14:29:21 +01:00
Slawomir Jaranowski
c0d942b56b
Jenkinsfile: pickup results from ITs and Maven 3.8.x for build ( #953 )
...
Co-authored-by: Petr Široký <petr.siroky@pm.me>
2023-01-13 12:00:48 +01:00
Guillaume Nodet
1968951a53
[MNG-7642] Restore compatibility with flatten-maven-plugin ( #947 )
...
Revert "[MNG-7505] Remove ReportingConverter (#906 )"
This reverts commit adf89ef63f
.
2023-01-09 16:06:48 +01:00
Guillaume Nodet
fc2d94f077
[MNG-7652] switch to Modello Velocity ( #944 )
2023-01-04 13:57:45 +01:00
Hervé Boutemy
a7399a4d52
[MNG-7652] switch to Modello Velocity ( #944 )
2023-01-03 22:08:35 +01:00