Commit Graph

15153 Commits

Author SHA1 Message Date
Guillaume Nodet eefe2c73bc
Improve speed in stax readers (#1748) 2024-10-01 13:02:58 +02:00
Guillaume Nodet 3fdc54c975
Use Version and Severity directly (#1756) 2024-10-01 13:02:36 +02:00
Guillaume Nodet 0cff3ea22b
Improve model validator wrt modelVersion which is now set in the file model (#1757) 2024-10-01 13:02:25 +02:00
Guillaume Nodet 075d3acd10
Cleanup assembly rat plugin config (#1758) 2024-10-01 13:02:14 +02:00
Guillaume Nodet 04f3609eb0
Fix possible NPE during project building (#1759) 2024-10-01 13:02:03 +02:00
dependabot[bot] 5207475361
[MNG-8275] Bump com.google.guava:guava from 33.3.0-jre to 33.3.1-jre (#1740)
Bumps [com.google.guava:guava](https://github.com/google/guava) from 33.3.0-jre to 33.3.1-jre.
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

---
updated-dependencies:
- dependency-name: com.google.guava:guava
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-30 21:28:56 +02:00
dependabot[bot] 9a02b3b39d
[MNG-8276] Bump org.apache.velocity:velocity-engine-core from 2.3 to 2.4 (#1741)
Bumps org.apache.velocity:velocity-engine-core from 2.3 to 2.4.

---
updated-dependencies:
- dependency-name: org.apache.velocity:velocity-engine-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-30 21:28:24 +02:00
dependabot[bot] e48ff26885
[MNG-8273] Bump mockitoVersion from 5.13.0 to 5.14.1 (#1762)
Bumps `mockitoVersion` from 5.13.0 to 5.14.1.

Updates `org.mockito:mockito-bom` from 5.13.0 to 5.14.1
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v5.13.0...v5.14.1)

Updates `org.mockito:mockito-junit-jupiter` from 5.13.0 to 5.14.1
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v5.13.0...v5.14.1)

---
updated-dependencies:
- dependency-name: org.mockito:mockito-bom
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.mockito:mockito-junit-jupiter
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-30 21:27:48 +02:00
dependabot[bot] ba76c6288e
[MNG-8277] Bump org.junit:junit-bom from 5.11.0 to 5.11.1 (#1747)
Bumps [org.junit:junit-bom](https://github.com/junit-team/junit5) from 5.11.0 to 5.11.1.
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.11.0...r5.11.1)

---
updated-dependencies:
- dependency-name: org.junit:junit-bom
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-30 21:26:18 +02:00
dependabot[bot] 6625c0e9ea
[MNG-8274] Bump net.bytebuddy:byte-buddy from 1.15.1 to 1.15.3 (#1749)
Bumps [net.bytebuddy:byte-buddy](https://github.com/raphw/byte-buddy) from 1.15.1 to 1.15.3.
- [Release notes](https://github.com/raphw/byte-buddy/releases)
- [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md)
- [Commits](https://github.com/raphw/byte-buddy/compare/byte-buddy-1.15.1...byte-buddy-1.15.3)

---
updated-dependencies:
- dependency-name: net.bytebuddy:byte-buddy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-30 21:23:02 +02:00
Guillaume Nodet be6a535b83 Disable Jenkins temporarily 2024-09-30 16:11:55 +02:00
Guillaume Nodet e28283d81c Disable parallelism 2024-09-30 16:11:42 +02:00
XenoAmess 6ffdc2015a Add license header to m2.conf 2024-09-30 11:23:02 +02:00
Martin Desruisseaux 8f34ea4ce0 More readable formatting in the warning advising users to not publish a project having auto-named dependencies.
Note: this warning is questionable. Should it be removed?
2024-09-30 10:55:03 +02:00
Guillaume Nodet 2efeaf75f5 [MNG-8264] Deprecate maven-model-builder 2024-09-28 20:56:59 +02:00
Guillaume Nodet 75738858d6 [MNG-8264] Deprecate maven-resolver-provider 2024-09-28 20:56:59 +02:00
Guillaume Nodet 9404145faa [MNG-8264] Deprecate maven-settings-builder 2024-09-28 20:56:59 +02:00
Guillaume Nodet db74ba8788 [MNG-8264] Deprecate maven-toolchain-builder 2024-09-28 20:56:59 +02:00
Guillaume Nodet d77462e78a
[MNG-8261] Remove jline-terminal-ffm direct dependency (#1719) 2024-09-28 20:51:07 +02:00
Guillaume Nodet 2d224623a3
[MNG-8120] Refactor ModelBuilder and ProjectBuilder (#1700)
With the introduction of the build pom and raw -> build pom transformation, the construction of the effective poms in two steps become very problematic. Over the time, multiple caches have been added to the ProjectBuilder and ModelBuilder related classes which are often redundant.

This PR thus changes things and move the recursive construction of the models fully into the ModelBuilder in a single call. When building build poms, a first step is done by parsing the file models from the root, then building all needed effective models from those. All the inference can be cleanly done because the builder has all the file models ready. The result will be used by the ProjectBuilder to build the projects.
2024-09-28 11:03:24 +02:00
Guillaume Nodet 101fe8f0f0 Fix IT to not use m-install-p 4.0-alpha (#357)
* Disable MNG-6330 because it now validly finds the parent given the path is not specified
* Add missing roots
2024-09-28 11:03:16 +02:00
Tamas Cservenak 2c6846b09b
No issue, no change (#1745)
Just a simple PR to make properties file a "properties file"
as majority would expect. According to spec '=', ':', or white space
can be delimiter and this file IS valid, but still, users my
be surprised, or tools like IDEs may misinterpret this,
otherwise valid Java Properties File.
2024-09-24 17:34:45 +02:00
Tamas Cservenak 034ef155da
[MNG-8263] Remove last remnants of wrapper integration (#1736)
Last two bits to be removed:
* wrapper lifecycle
* exploded scripts

---

https://issues.apache.org/jira/browse/MNG-8263
2024-09-24 09:54:24 +02:00
Tamas Cservenak 45f9b81b4a
Simple typo bugfix (NPE) (#1731)
No issue, just spotted.
2024-09-19 21:15:51 +02:00
Tamas Cservenak 368ddec0e4
[MNG-8233] Client should handle modelIds as "opaque" (#1701)
Javadoc states wrong things (about format of modelId, they are
paths in reality), but also these all are "implementation details".
Crafting modelIds to "walk" lineage is wrong, there is a dedicated
method that provide "opaque" key Strings in defined order to
do that. And client should not care (nor assume) anything
about format of the key String.

---

https://issues.apache.org/jira/browse/MNG-8233
2024-09-19 19:38:41 +02:00
Guillaume Nodet e1e23d9e26
[MNG-8242] Cache flattened parents during model building (#1703)
During model building, we do not cache any hierarchy inheritance due to profiles that may be activated based on properties from the child projects.
So there's no way to cache the effective parent and just inject it into the child, the whole hierarchy need to be taken into account.
However, flattening the parent (i.e. inject the flattened parent's parent into the raw parent) should provide a parent model which has no parents anymore, not activated and not interpolated, but which can be cached and reused.
2024-09-18 16:37:24 +02:00
Guillaume Nodet 2f5f61a043
[MNG-7255] Infer groupId for intra-reactor dependencies (#1696) 2024-09-18 14:26:20 +02:00
Guillaume Nodet 6a54531a0f [MNG-7255] Infer groupId for dependencies (#356) 2024-09-18 14:26:05 +02:00
Guillaume Nodet 9811df363b
[MNG-8260] Fix warning on latest JDK 24.ea (#1718) 2024-09-18 14:00:33 +02:00
Guillaume Nodet 8d9f8da444
[MNG-8239] Add missing ModelCacheFactory (#1728) 2024-09-18 13:42:07 +02:00
Guillaume Nodet deb15be3b6
[MNG-8259] Improve Sisu / DI bridge (#1722) 2024-09-18 13:05:13 +02:00
Guillaume Nodet 8e0d731440 [MNG-8259] Improve Sisu / DI bridge (#363) 2024-09-18 13:04:50 +02:00
Guillaume Nodet 30f52651a7 [MNG-8249] Fix annotation processor to correctly handle inner-inner classes 2024-09-16 08:25:19 +02:00
Tamas Cservenak 7ea795b789
[MNG-8256] FilteredProjectDependencyGraph fix for non-transitive case (#1723)
The `FilteredProjectDependencyGraph` class fix for non-transitive case and an UT. Also contains some improvement in classes, making them immutable as intended.

---

https://issues.apache.org/jira/browse/MNG-8256
2024-09-12 22:50:39 +02:00
Guillaume Nodet 2b13a43c09
[MNG-8235] Move remote repositories into requests (#1712) 2024-09-12 08:19:14 +02:00
Guillaume Nodet 85f5dca4a6
[MNG-8234] Revert the addition of the priority tag (#1711) 2024-09-12 08:18:35 +02:00
Guillaume Nodet b2c2e88915 [MNG-8234] Fix IT (#361) 2024-09-12 08:17:33 +02:00
Guillaume Nodet 625b4561f0
[MNG-8232] Introduce ModelTransformer (#1702) 2024-09-12 08:15:53 +02:00
Guillaume Nodet bcd5d9c9f9
DI improvements (#1717)
* Code cleanup
* Provide build path with causes when an exception occur
* Fix toString to display meaningful info
* Javadoc
* Add @NonNull and @Overrides annotations
* Support for @Nullable on fields and parameters
2024-09-12 08:14:46 +02:00
Guillaume Nodet 36de1c6e51
[MNG-8237] Option deprecation notices cleanup (#1713) 2024-09-12 06:39:22 +02:00
Guillaume Nodet 237eeba760
[MNG-8252] Fully infer the parent coordinates if the location points to a valid model (#1706) (#1721) 2024-09-12 06:37:14 +02:00
Guillaume Nodet 71c6162dcb [MNG-8252] Fix build (#362) 2024-09-12 06:36:51 +02:00
Guillaume Nodet e6af8ffeee [MNG-8190] Fix ITs (#359) 2024-09-11 19:19:53 +02:00
Guillaume Nodet f137c13877
[MNG-8190] Restrict build pom feature to 4.1.0 model version (#1707) 2024-09-11 18:31:06 +02:00
Guillaume Nodet e6d038ac07
[MNG-8252] Fully infer the parent coordinates if the location points to a valid model (#1706) 2024-09-11 18:30:15 +02:00
Guillaume Nodet 4fc65368c7 [MNG-8252] Test parent inference and subprojects detection (#360) 2024-09-11 18:30:05 +02:00
Guillaume Nodet e0b01fb5a4
[MNG-8210] Fix broken inference of version when using -f option (#1720) 2024-09-11 16:57:21 +02:00
Guillaume Nodet bb99857f34 Enhance DiIndexProcessor
Sort and *update* the file (in case of a partial build)
2024-09-10 22:18:44 +02:00
Guillaume Nodet 0c7e73335d Fix broken circular references detection 2024-09-10 21:22:47 +02:00
Guillaume Nodet 8a61f7d20a
[MNG-8249] Provide an annotation processor for DI (#1704) 2024-09-10 19:18:47 +02:00