Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2573 commits
Select commit Hold shift + click to select a range
e833f9e
[MNG-7189] Remove undocumented environment variable MAVEN_BASEDIR in …
michael-o Jul 19, 2021
4d3a639
Normalize line endings
michael-o Aug 2, 2021
d70be17
[MNG-7230] Replace assert by simpler but equivalent calls
arturobernalg Sep 5, 2021
f1c00d9
[MNG-7231] Fix Javadoc errors
arturobernalg Sep 5, 2021
d066437
[MNG-4463] Dependency management import should support version ranges
ChristianSchulte Jan 30, 2016
547870f
Up enforcer version (#115)
cstamas Oct 1, 2021
c27293d
Renormalize line endings (#117)
gnodet Oct 5, 2021
26c5559
Fix pom content comparison to avoid line ending problems (#119)
gnodet Oct 6, 2021
445adba
[MNG-6914] update wrapper distro directory, now apache-maven-wrapper
hboutemy Oct 11, 2021
dc3359a
Update ITs for simplify args help
michael-o Oct 17, 2021
2513f4b
[MNG-7332] Remove --define (long arg)
mthmulders Nov 15, 2021
75c4cf8
Fix integration tests
gnodet Jul 8, 2021
9e5b5a1
[MNG-7335] Add an integration test
gnodet Dec 1, 2021
625fd59
[MNG-7335] Make IT compatible with Java 7
michael-o Dec 22, 2021
8647239
[MNG-7045] Align test project name with rest
michael-o Dec 25, 2021
3cb3dbe
[MWRAPPER-14] remove wrapper-related ITs: not in core any more
hboutemy Dec 26, 2021
a8bc217
Remove profile not supported since MNG-7047
michael-o Dec 29, 2021
789f35b
[MNG-5561] Plugin relocation loses configuration
michael-o Dec 25, 2021
df4a313
[MNG-6326] Make the build fail if core extensions can not be loaded (…
gnodet Jan 7, 2022
657c4e9
[MNG-7217] Separate argument and value for -fos
mthmulders Nov 3, 2021
e4b2fc7
document addition resolution groups, fix javadoc, upgrade parent
hboutemy Jan 16, 2022
6d5b007
fix "edit" link to markup source and bootstrap doc on ITs Suite deps
hboutemy Jan 16, 2022
1d00773
fix links (apt, not markdown), better split ITs vs support vs suite
hboutemy Jan 16, 2022
993f324
fix javadoc issues for JDK 8
hboutemy Jan 16, 2022
d3cbcda
Add missing dependencies to bootstrap for some ITs
michael-o Jan 16, 2022
5b67a4e
add a note about mirror settings for central
hboutemy Jan 17, 2022
69132de
[MNG-7349] Limit relocation warning message to direct dependencies only
gnodet Jan 24, 2022
75050a7
Set Maven compiler and release versions to 7 for integration test pro…
MartinKanters Feb 11, 2022
a49c0a4
[MNG-7395] Support interpolation in extensions.xml
Feb 9, 2022
0776e8e
[MNG-7244] Remove deprecated WARNING for usage of pom.X placeholders
Giovds Feb 1, 2022
ca3e806
[MNG-7390] Allow selecting modules outside the cwd into the reactor u…
MartinKanters Jan 14, 2022
7ec0b72
[MNG-7349] Fix IT not working on a clean repo
gnodet Feb 21, 2022
d626bbd
[MNG-7045] Drop CDI API from Maven
michael-o Mar 6, 2022
a9ca68e
[MNG-6972] Allow access to org.apache.maven.graph
michael-o Mar 6, 2022
248a452
[MNG-828] add regression test for listing plugin configuration values…
slawekjaranowski Mar 22, 2022
89589b3
[MNG-828] fix date format in assertions
slawekjaranowski Mar 25, 2022
2f4fd12
[MNG-828] fix assertions for maps, properties
slawekjaranowski Mar 25, 2022
66cd7b5
Fix MNG-828
belingueres Apr 3, 2022
98af977
Fix tests on JDK 1.7 - setup TLS protocol for verifier
slawekjaranowski Apr 7, 2022
135685b
Skip mng7045 DropUselessAndOutdatedCdiApiTest on JDK 1.7
slawekjaranowski Apr 8, 2022
6303d3e
Use old version of m-enforcer-p for JDK 1.7
slawekjaranowski Apr 8, 2022
8599cec
[MNG-5222] Maven 3 no longer logs warnings about deprecated plugin pa…
slawekjaranowski Apr 1, 2022
1b85c83
[MNG-5222] Enable tests for 3.9.x
slawekjaranowski Apr 12, 2022
98be639
Replace o.codehaus.doxia.sink.Sink with o.a.m.doxia.sink.Sink
michael-o Apr 15, 2022
c8c99c3
[MNG-5222] Improvement in deprecated params detection
slawekjaranowski Apr 16, 2022
c841300
[MNG-5222] Improvement in deprecated params detection enable for 3.9.x
slawekjaranowski Apr 23, 2022
cbafd07
[MNG-7457] Warn about deprecated plugin Mojo
slawekjaranowski Apr 23, 2022
c6af9d2
[MNG-7404] Drop support for prefixless expressions
mthmulders Mar 15, 2022
8fd5645
[MNG-7464] Warn about using read-only parameters for Mojo in configur…
slawekjaranowski Apr 28, 2022
7e1181b
[MNG-7464] Warn about using read-only parameters for Mojo in configur…
slawekjaranowski May 6, 2022
7942ac1
Fix test Maven version range assumptions MavenITmng7464ReadOnlyMojoPa…
slawekjaranowski May 9, 2022
e7d7e92
Remove a seemingly unused file
mthmulders May 10, 2022
07f35e0
[MNG-7470] mvn 3.9+ IT that uses wagon (default) and native transport…
cstamas May 11, 2022
1c034e2
Extend MavenITmng7470ResolverTransportTest (#160)
cstamas May 13, 2022
6c2ba86
Fix the MavenITmng7470ResolverTransportTest (#161)
cstamas May 16, 2022
2ea97ba
Mute Jetty (#159)
cstamas May 18, 2022
c2d9fff
Fix - mute Jetty
slawekjaranowski May 18, 2022
c6079bb
Upgrade maven-verifier to 1.8.0
slawekjaranowski May 19, 2022
5b5ea2a
upgrade sonatype -> eclipse for sisu-maven-plugin
slawekjaranowski May 21, 2022
0d5f16c
[MNG-7487] Fix deadlock during forked lifecycle executions
gnodet May 17, 2022
fa2ff6e
[MNG-7468] Check unsupported plugins parameters in configuration
slawekjaranowski Jun 3, 2022
0985a9e
[MNG-7468] Check unsupported plugins parameters in configuration - 3.9
slawekjaranowski Jun 4, 2022
30689b6
[MNG-7160] Integration test for extension classloading strategy
gnodet Nov 23, 2021
745306b
[MNG-7160] Fix integration tests with element renaming
gnodet Nov 23, 2021
a7826ef
Fix WS
michael-o Jun 14, 2022
cb46021
[MNG-7160] Integration test for extension classloading strategy
gnodet Jun 15, 2022
ae3adfe
[MNG-7160] Backport to 3.9.x
gnodet Jun 15, 2022
e47b177
create a simple Jenkinsfile/gh actions to validate PR and branches wi…
olamy Jun 17, 2022
df0d899
Demonstrating that importing a BOM works even when it declares those …
jglick Jun 23, 2022
8631416
[MNG-6965] Extensions suddenly have org.codehaus.plexus:plexus-utils:…
michael-o Jun 17, 2022
34fe4f4
[MNG-7360] Add an IT for build consumer with tags in plugin configs (…
gnodet Jun 28, 2022
7bef757
[MNG-7504] Don't print warning unsupported reportPlugins for m-site-p
slawekjaranowski Jun 19, 2022
6b72f2f
Upgrade to JDK8, use a plugin to download all dependencies to bypass …
gnodet Jul 1, 2022
d98b184
Fix minor typos
marcwrobel Jul 19, 2022
be210ff
[MNG-7353] test prefix:version:goal invocation and every other CLI
hboutemy Jul 3, 2022
3e892f9
[MNG-7020] Remove Maven 2 WagonExcluder backward compat code
michael-o Nov 13, 2020
b9eae39
[MNG-7474] SessionScoped beans should be singletons for a given sessi…
gnodet Jul 25, 2022
ced91eb
[MNG-7517] Improve MavenITmng6391PrintVersionTest tests resiliency
marcwrobel Jul 19, 2022
274a81d
[MNG-7443] Implement consistent logging between optional projects and…
Giovds May 24, 2022
1307bf3
[MNG-7529] Integration test for MNG-7529
hgschmie Aug 20, 2022
afe5d88
[MNG-7353] choose m-dependency-p versions that match bootstrap
hboutemy Aug 22, 2022
bf87496
[MNG-7353] Add missing dependencies to bootstrap.txt
hgschmie Aug 22, 2022
fac10d2
Merge pull request #189 from hgschmie/mng-7529
hgschmie Aug 26, 2022
7d52000
[MNG-7474] Add and fix IT (#192)
gnodet Sep 2, 2022
4a57270
Disable merge button on GitHub
slawekjaranowski Sep 2, 2022
bd25080
Add cli arguments one by one for Verifier
slawekjaranowski Sep 7, 2022
46eb052
Add missing artifacts for tests to bootstrap
slawekjaranowski Sep 7, 2022
7fe25b4
[MNG-7537] Remove pre 3.9.x tests (#196)
gnodet Sep 9, 2022
82f5356
Remove verifier.getCliOptions().add( x ) pattern (#197)
gnodet Sep 9, 2022
bef57cd
Remove remaining reference to verifier.getCliOptions() (#198)
gnodet Sep 9, 2022
e4bc37a
Add org.apache.maven.plugins:maven-plugin-plugin:3.2 to bootstrap
slawekjaranowski Sep 15, 2022
ceb7715
[MNG-7310] Add a test for MNG-7310 which installs an extension and th…
MartinKanters Dec 23, 2021
88c46ff
Remove unused imports
michael-o Sep 28, 2022
13b14eb
[MNG-7549] Upgrade Core ITs to Maven Verifier 2.0.0-M1
michael-o Sep 22, 2022
6e8ff2d
Move ITs to JDK 8 / JUnit 5 (#176)
gnodet Sep 30, 2022
3b98814
Make sure the rat plugin is only run once on the parent
gnodet Oct 7, 2022
77a2226
Allow running the it suite with mvn4 (#203)
gnodet Oct 7, 2022
1a7b5a3
[MNG-7566] Support Java prerequisites in plugin descriptor (#204)
kwin Oct 21, 2022
bc1c707
[MNG-6609] packaging specific profile activation (#206)
kwin Oct 24, 2022
2c2c7fb
[MNG-7378] Add documentation about the location of ITs and how to run…
broodjetom Oct 28, 2022
fc6d231
Allow basedir system property to be null for build info.txt
slawekjaranowski Nov 11, 2022
27271e4
Fix flappy test - mng-6720-fail-fast
slawekjaranowski Nov 11, 2022
d61443c
Update actions in GH build
slawekjaranowski Nov 12, 2022
38502e2
[MNG-6609] enable IT for Maven 3.9.0 (#208)
kwin Nov 27, 2022
9510499
Revert "[MNG-6609] enable IT for Maven 3.9.0 (#208)"
cstamas Nov 28, 2022
0161e27
[MNG-7606] add IT (#214)
kwin Dec 1, 2022
66d369f
Revert "Revert "[MNG-6609] enable IT for Maven 3.9.0 (#208)""
kwin Dec 1, 2022
8949df8
MNG-7608] Make native transport the default (#216)
cstamas Dec 2, 2022
4d465f3
[MNG-7618] Fix display for plugins (#217)
gnodet Dec 5, 2022
23ca811
Disable tests on maven >= 4.0.0-alpha-3 (#218)
gnodet Dec 12, 2022
a5d4d3f
[MNG-7634] Pass user properties instead of system properties
michael-o Dec 20, 2022
3506f01
Add missing javax.annotation:javax.annotation-api:1.2
michael-o Dec 21, 2022
e19a8c7
Use Maven 3.8.7 for GH builds
slawekjaranowski Jan 1, 2023
78c3506
[MNG-7640] Investigate which ITs really need to set system properties
michael-o Dec 26, 2022
e24b2ed
Upgrade Groovy in one of the ITs to support JDK 19
psiroky Jan 1, 2023
1a78c89
[MNG-7661] Remove deprecated 'verifier.resetStreams()'
psiroky Jan 4, 2023
9eb3ee9
[MNG-7661] Use provided scope for Maven deps in IT plugins
psiroky Dec 31, 2022
5ec9452
[MNG-7661] Replace deprecated 'verifier.executeGoal()'
psiroky Jan 4, 2023
59f503b
Modernize IT plugins to use annotations (#184)
gnodet Jan 11, 2023
cb51050
[MNG-7661] Fix verifier 'clean' call in one of the ITs (#227)
psiroky Jan 11, 2023
1b31813
[MNG-7665] Update Jetty to latest Java8 capable version (#228)
cstamas Jan 12, 2023
11e8501
Fix plexus-component-metadata plugin version (#229)
cstamas Jan 12, 2023
b035fb3
[MNG-7667] Fix Bootstrap IT (#230)
cstamas Jan 12, 2023
ff9047a
Fix MavenITmng5669ReadPomsOnce
slawekjaranowski Jan 12, 2023
3f029c1
[MNG-7661] Replace deprecated 'verifier.addCliOption()'
psiroky Jan 4, 2023
40aa111
[MNG-7661] Replace deprecated 'verifier.newDefaultFilterProperties()'
psiroky Jan 5, 2023
8d8dba4
[MNG-7661] Replace deprecated 'verifier.setMavenDebug()'
psiroky Jan 5, 2023
76c0d13
[MNG-7667] Fix DownloadMojo to properly resolve (#236)
cstamas Jan 16, 2023
25c982e
Remove a few system properties before initializing the maven verifier…
gnodet Jan 16, 2023
348170e
[MNG-7608] Adjust IT for default transport (#237)
cstamas Jan 17, 2023
49c1257
[MNG-7629] Change reactor reader to copy packaged artifacts and reuse…
gnodet Jan 19, 2023
d45dba3
[MNG-7646] Fix IT broken by the change to not always read the whole r…
gnodet Jan 26, 2023
3747448
No logic change, just improve logging (#241)
cstamas Feb 15, 2023
a5744e8
[MNG-7679] [REGRESSION] Build fails when executing a single mojo with…
cstamas Feb 20, 2023
9b63abe
Upgrade to Maven Surefire 3.0.0-M9
michael-o Feb 20, 2023
57c1066
[MNG-7706] Fix for ITs WARNING detection (#245)
cstamas Feb 23, 2023
497bede
Replace deprecated systemProperties by systemPropertyVariables
slawekjaranowski Feb 24, 2023
e80821c
[MNG-5181] Improve "missing dependency" message (#249)
cstamas Mar 2, 2023
dca86bf
[MNG-7716] ConcurrencyDependencyGraph deadlock if no root can be sele…
Mar 2, 2023
a988e5c
Add missing bootstrap dependencies
michael-o Mar 8, 2023
da33f06
[MNG-7737] IT for profiles (#252)
cstamas Mar 13, 2023
21e39ea
Detecting tests which was not added to TestSuiteOrdering
slawekjaranowski Feb 24, 2023
19e668e
[MNG-7661] Fix few build / compiler warnings
psiroky Jan 4, 2023
de74b86
[MNG-7754] Improve plugin validation (#256)
cstamas Apr 5, 2023
39db9e6
[MNG-7697] IT - pom with emoji
slawekjaranowski Mar 14, 2023
31e2f5f
[MNG-7767] Put related ITs into verbose mode (#258)
cstamas Apr 17, 2023
4a2a51c
[MNG-7763] Provide UTF-8 as a default value for project.build.sourceE…
gnodet Apr 18, 2023
7366fe6
[MNG-7038] Introduce public properties to point to the root and top d…
gnodet Apr 20, 2023
5e0613e
[MNG-7788] Fix for IT MavenITmng6562WarnDefaultBindings (#261)
cstamas May 19, 2023
425b92d
[MNG-7587] Add an IT for jsr330 components (#264)
gnodet Jun 2, 2023
aedbb15
Upgrade to parent 39
gnodet May 24, 2023
386efc3
Reformat
gnodet Jun 2, 2023
74c1775
Reformat ITs
gnodet Jun 2, 2023
81abb58
[MNG-7740] Remove old temporary consumer*pom files from buildDir (#263)
gnodet Jun 5, 2023
b8f4ef8
Adjust test failing on CI
gnodet Jun 6, 2023
fca1dd6
[MNG-7338] Disable CI mode for certain tests which verify on log stat…
MartinKanters Jun 8, 2023
50f2334
[MNG-7587] Only test with 4.0 because the fix has been reverted in 3.9.x
gnodet Jun 9, 2023
16a7489
[MNG-5600] Dependency management import should support exclusions. (#…
gnodet Jun 15, 2023
5787317
[MNG-4645] Fix IT to not use the newly supported syntax (#266)
gnodet Jun 19, 2023
0226d93
[MNG-5659] Add an IT for project settings (#265)
gnodet Jun 20, 2023
24f25a0
[MNG-7819] Add IT that excercise the bug (#271)
cstamas Jun 21, 2023
c029658
Remove MNG-7819 Maven Metadata XML leading newline
cstamas Jun 23, 2023
e85fb90
[MNG-7228] Add IT that ensure nothing "leaks" into installed model (#…
cstamas Jun 24, 2023
a9bf8ed
[MNG-7830] Switch from plexus-xml to stax / woodstox (#274)
gnodet Jun 29, 2023
65f2d39
[MNG-6401] IT for proxy port interpolation (#275)
gnodet Aug 23, 2023
6326854
[MNG-7862] The ModelLocator should always be used when locating pom.x…
gnodet Aug 23, 2023
4336110
[MNG-6847] Use diamond operator (#288)
timtebeek Aug 29, 2023
1ed2264
[MNG-7792] Fix shaded javaagent to relocate the asm package (#290)
gnodet Sep 5, 2023
e85a09a
[MNG-7876] Add model version analysis and downgrade (#291)
gnodet Sep 11, 2023
c3c7981
[MNG-7877] Fix ITs for build bom + consumer/pom simplification (#292)
gnodet Sep 13, 2023
4c64e10
[MNG-7891] IT for configuring extensions (#296)
gnodet Sep 22, 2023
c6d8f2f
[MNG-7836] IT for alternative pom syntax (#276)
gnodet Sep 22, 2023
f0fca33
Fix IT compilation problem with recent merges (#297)
gnodet Sep 22, 2023
ad1e925
Use 1.8 for source/target in ITs - allow to execute by newer JDK
slawekjaranowski Sep 23, 2023
caf44be
Fix IT for trimmed consumer POM (#293)
gnodet Sep 26, 2023
d60a1cc
[MNG-7895] Support ${project.basedir} in file profile activation - fi…
slawekjaranowski Sep 24, 2023
7046a8c
Add .java-version to .gitignore
slawekjaranowski Sep 26, 2023
d640bde
Fix expectations on IT MNG-7836 following the modifications on the co…
gnodet Sep 27, 2023
27bc847
[MNG-7895] Support ${project.basedir} in file profile activation - fi…
slawekjaranowski Sep 25, 2023
08fceb5
Remove methods used for JUnit 3/4
slawekjaranowski Sep 25, 2023
464536d
Use Maven 3.9.5 on GitHub (#242)
slawekjaranowski Oct 4, 2023
5797211
[MNG-7898] Missing .mvn directory should not be reported in quiet mode
slawekjaranowski Oct 4, 2023
cf71c39
Require JDK 11 and support JDK 21 at build time (#310)
gnodet Oct 16, 2023
1219804
[MNG-7804] IT for plugin execution order (#268)
gnodet Oct 16, 2023
cd1ef16
Add missing HoconReader#getIntegerValue (#313)
gnodet Oct 16, 2023
5c88324
[MNG-7837] Add IT for project element in pom (#277)
gnodet Oct 18, 2023
6a83ac6
[MNG-7772] Test for extensions.xml defined in an ext directory in the…
juulhobert Oct 18, 2023
40acbf6
Add a note about ITs requiring maven snapshots (#314)
gnodet Oct 19, 2023
ad25b2e
Use 4.0.0-alpha-8 instead of SNAPSHOT (#315)
gnodet Nov 6, 2023
d77141d
[MNG-7909] Apply Resolver 2.0.0 changes (#317)
cstamas Nov 7, 2023
e26e1d6
[MNG-7909] IT changes (#318)
cstamas Nov 7, 2023
ab9aca3
Update parent to 41
slawekjaranowski Nov 18, 2023
1570770
[MNG-7939] Allow to exclude plugins from validation
slawekjaranowski Nov 18, 2023
b806d59
Change bootstrap syntax to align with the usual one (#316)
gnodet Nov 26, 2023
8880639
Preparations for resolver alpha-3 (#322)
cstamas Dec 6, 2023
38f543d
Fix ITs master build (#323)
cstamas Dec 6, 2023
46ed670
[MNG-7965] Verify non-parseable POM is detected (#327)
gnodet Dec 15, 2023
61cb0c7
Update Jetty to 9.4.53.v20231009 (#326)
cstamas Dec 17, 2023
fff02a9
Use Maven 3.9.6 (#328)
cstamas Dec 17, 2023
ac8874e
[MNG-7967] Verify javadoc:jar is invoked (#324)
cstamas Dec 17, 2023
95d384d
Enables debug logs in MavenITmng6127
CrazyHZM Jan 1, 2024
536a9c9
Disable MNG-1088 test for MNG-7977 (#329)
gnodet Jan 8, 2024
a9a0908
Remove experimental bit from buildconsumer (#331)
gnodet Jan 9, 2024
aac2328
[MNG-8005] test for ide WorkspaceReader (#332)
jonasrutishauser Jan 18, 2024
d7a3445
[MNG-8103] Upgrade default plugin bindings - fix ITs
slawekjaranowski Apr 20, 2024
aa92202
[MNG-8106] IT (#336)
cstamas Apr 25, 2024
c959b7e
Fix MNG-7819 IT (#339)
cstamas Apr 30, 2024
ff1d119
[MNG-8123] IT for build cache extension (#342)
gnodet May 22, 2024
6de0ea1
Bump Maven to 3.9.7 on GH build
slawekjaranowski Jun 1, 2024
fe968ff
Add .mvn directory in project root
slawekjaranowski Jun 1, 2024
30b237e
[MNG-7758] Report dependency problems for all repository - fix IT
slawekjaranowski Jun 6, 2024
42f15e5
[MNG-7758] Report dependency problems for all repository - extends IT…
slawekjaranowski Jun 12, 2024
b5c0377
[MNG-8181] Add IT for maven.repo.central variable (#350)
gnodet Aug 26, 2024
517bc99
Fix failing MavenITmng4387QuietLoggingTest (#351)
gnodet Aug 27, 2024
fefb93b
Use non deprecated option for Maven >= 4.0.0-beta-4
gnodet Aug 27, 2024
458301c
[MNG-8052] Fix IT 2693 (#353)
gnodet Aug 29, 2024
5b6378d
[MNG-8220] Add IT to check DI in extensions (#355)
gnodet Aug 29, 2024
c6d7a36
[MNG-7897] Use project.rootDirectory (#354)
gnodet Aug 29, 2024
2f62d16
[MNG-7838] Fix IT and add another one (#278)
gnodet Aug 29, 2024
4fc6536
[MNG-8252] Test parent inference and subprojects detection (#360)
gnodet Sep 11, 2024
e6af8ff
[MNG-8190] Fix ITs (#359)
gnodet Sep 11, 2024
71c6162
[MNG-8252] Fix build (#362)
gnodet Sep 12, 2024
b2c2e88
[MNG-8234] Fix IT (#361)
gnodet Sep 12, 2024
8e0d731
[MNG-8259] Improve Sisu / DI bridge (#363)
gnodet Sep 18, 2024
6a54531
[MNG-7255] Infer groupId for dependencies (#356)
gnodet Sep 18, 2024
101fe8f
Fix IT to not use m-install-p 4.0-alpha (#357)
gnodet Sep 28, 2024
4e91c20
[MNG-8230] Add tests for CI-friendly versions (#366)
gnodet Oct 1, 2024
c5211f9
[MNG-8258] activate Reproducible Builds by default (#369)
gnodet Oct 1, 2024
fa84327
[MNG-8281] Change the outcome of an IT wrt interpolation (#370)
gnodet Oct 2, 2024
4e1de4e
[MNG-8133] IT for ${project.rootDirectory} in external parent (#368)
gnodet Oct 2, 2024
e289098
[MNG-8267] Disable MNG-5774 ITs for beta-5+
cstamas Sep 30, 2024
0bfde63
[MNG-8282] Disable MNG-0553 IT for Maven 4-beta5+ (feature reworked)
cstamas Oct 3, 2024
2e0d09e
Workaround just to test this
cstamas Oct 3, 2024
218d11b
Add dependabot, we have stale actions
cstamas Oct 3, 2024
d9d6200
Bump actions/checkout from 3 to 4
dependabot[bot] Oct 3, 2024
9ef2164
Bump actions/setup-java from 3 to 4
dependabot[bot] Oct 3, 2024
2ce2200
[MNG-8293] [MNG-8288] Two new ITs and disable MNG-2196 IT (#382)
gnodet Oct 7, 2024
83f034d
[MNG-8294] Consistency checks when loading parent (#383)
gnodet Oct 9, 2024
d98fe8e
[MNG-8295] Add IT for Dependency Manager Transitivity (#384)
gnodet Oct 15, 2024
eff246a
[MNG-8299] IT for custom lifecycle phase ordering (#389)
gnodet Oct 16, 2024
d8f9b3f
[MNG-8322] The EventSpy receives the new settings request/result (#391)
gnodet Oct 17, 2024
314e983
[MNG-8258] Change the fixed reproducible build outputTimestamp to 1 F…
gnodet Oct 17, 2024
fc444a4
[MNG-8331] Demonstrate the problem with disappearing dependencies
mthmulders Oct 18, 2024
94049cd
[MNG-8341] Add IT for deadlock during model building (#394)
gnodet Oct 25, 2024
8dc7f3b
[MNG-8347] IT for transitive dependency management (#395)
cstamas Oct 25, 2024
216c16c
[MNG-8360] IT for subproject profile activation (#396)
gnodet Oct 25, 2024
9e62984
[MNG-8347] Additional tests (#398)
cstamas Oct 29, 2024
2f8f380
Merge remote-tracking branch 'its/master' into merge-its
gnodet Nov 5, 2024
4270e78
Simplify hocon IT to not rely on a complex parent POM
gnodet Nov 5, 2024
75258af
Integrate into maven's build
gnodet Oct 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
*.css text
*.js text
*.sql text
*.jar binary
*.war binary
208 changes: 125 additions & 83 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,128 +17,170 @@

name: Java CI

on: [push, pull_request, workflow_dispatch]
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

# clear all permissions for GITHUB_TOKEN
permissions: {}

jobs:
build:

# execute on any push, workflow_dispatch or pull request from forked repo
if: >
github.event_name == 'push' ||
github.event_name == 'workflow_dispatch' ||
( github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork )

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
fail-fast: false

runs-on: ${{ matrix.os }}

initial-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'

- name: Checkout maven
uses: actions/checkout@v4
with:
persist-credentials: false

- uses: actions/setup-java@v4
- name: Cache Maven packages
uses: actions/cache@v4
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'
path: ~/.m2/repository/cached
key: maven-${{ hashFiles('**/pom.xml') }}
restore-keys: maven-
enableCrossOsArchive: true

- name: Set up Maven
run:
mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.3.2:wrapper "-Dmaven=3.9.7"
shell: bash
run: mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.3.2:wrapper "-Dmaven=4.0.0-beta-4"

- name: Build with Maven
- name: Build Maven distributions
shell: bash
run: ./mvnw verify -e -B -V -DdistributionFileName=apache-maven

- name: Upload built Maven
- name: List contents of target directory
shell: bash
run: ls -la apache-maven/target

- name: Upload Maven distributions
uses: actions/upload-artifact@v4
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
name: built-maven
path: apache-maven/target/
name: maven-distributions
path: |
apache-maven/target/apache-maven*.zip
apache-maven/target/apache-maven*.tar.gz

integration-test:
needs: build
full-build:
needs: initial-build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
java: [17, 21]
os: [ubuntu-latest, macos-latest, windows-latest]
java: ['17', '21']
steps:
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'

fail-fast: false
runs-on: ${{ matrix.os }}
- name: Install Graphviz (MacOS)
if: runner.os == 'macOS'
run: brew install graphviz

steps:
- name: Collect environment context variables
- name: Install Graphviz (Ubuntu)
if: runner.os == 'Linux'
run: sudo apt-get install graphviz

- name: Install Graphviz (Windows)
if: runner.os == 'Windows'
run: choco install graphviz

- name: Checkout maven
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Download Maven distribution
uses: actions/download-artifact@v4
with:
name: maven-distributions
path: maven-dist

- name: List downloaded files
shell: bash
run: ls -la maven-dist

- name: Extract Maven distribution
shell: bash
env:
PR_HEAD_LABEL: ${{ github.event.pull_request.head.label }}
run: |
set +e
repo=maven-integration-testing
target_branch=master
target_user=apache
if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
user=${PR_HEAD_LABEL%:*}
branch=${PR_HEAD_LABEL#*:}
else
user=${GITHUB_REPOSITORY%/*}
branch=${GITHUB_REF#refs/heads/}
fi
if [ $branch != "master" ]; then
git ls-remote https://github.com/$user/$repo.git | grep "refs/heads/${branch}$" > /dev/null
if [ $? -eq 0 ]; then
echo "Found a branch \"$branch\" in fork \"$user/$repo\", configuring this for the integration tests to be run against."
target_branch=$branch
target_user=$user
else
echo "Could not find fork \"$user/$repo\" or a branch \"$branch\" in this fork. Falling back to \"$target_branch\" in \"$target_user/$repo\"."
fi
mkdir -p maven-local
if [ "${{ runner.os }}" = "Windows" ]; then
unzip maven-dist/apache-maven-bin.zip -d maven-local
else
echo "Integration tests will run against $target_user/$repo for master builds."
tar xzf maven-dist/apache-maven-bin.tar.gz -C maven-local --strip-components 1
fi
echo "REPO_BRANCH=$target_branch" >> $GITHUB_ENV
echo "REPO_USER=$target_user" >> $GITHUB_ENV
echo "MAVEN_HOME=$PWD/maven-local" >> $GITHUB_ENV
echo "$PWD/maven-local/bin" >> $GITHUB_PATH

- name: Checkout maven-integration-testing
uses: actions/checkout@v4
with:
repository: ${{ env.REPO_USER }}/maven-integration-testing
path: maven-integration-testing/
ref: ${{ env.REPO_BRANCH }}
persist-credentials: false
- name: Build site with downloaded Maven
shell: bash
run: mvn verify site -e -B -V -DdistributionFileName=apache-maven -Preporting

- name: Set up JDK
integration-tests:
needs: initial-build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
java: ['17', '21']
steps:
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
# cache: 'maven' - don't use cache for integration tests

- uses: actions/checkout@v4
- name: Checkout maven
uses: actions/checkout@v4
with:
path: maven/
persist-credentials: false

- name: Set up Maven
run:
mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.3.2:wrapper "-Dmaven=3.9.7"
- name: Download Maven distribution
uses: actions/download-artifact@v4
with:
name: maven-distributions
path: maven-dist

- name: List downloaded files
shell: bash
run: ls -la maven-dist

- name: Build Maven
run: ./mvnw install -e -B -V -DdistributionFileName=apache-maven -DskipTests -f maven/pom.xml
- name: Extract Maven distribution
shell: bash
run: |
mkdir -p maven-local
if [ "${{ runner.os }}" = "Windows" ]; then
unzip maven-dist/apache-maven-bin.zip -d maven-local
# Get the name of the extracted directory
MAVEN_DIR=$(ls maven-local)
# Move contents up one level
mv "maven-local/$MAVEN_DIR"/* maven-local/
rm -r "maven-local/$MAVEN_DIR"
else
tar xzf maven-dist/apache-maven-bin.tar.gz -C maven-local --strip-components 1
fi
echo "MAVEN_HOME=$PWD/maven-local" >> $GITHUB_ENV
echo "$PWD/maven-local/bin" >> $GITHUB_PATH

- name: Running integration tests
- name: Run integration tests
shell: bash
run: ./mvnw install -e -B -V -Prun-its,embedded -DmavenDistro="$GITHUB_WORKSPACE/maven/apache-maven/target/apache-maven-bin.zip" -f maven-integration-testing/pom.xml
run: mvn install -e -B -V -Prun-its,embedded

- name: Upload artifact on integration testing
- name: Upload test artifacts
uses: actions/upload-artifact@v4
if: failure() && matrix.os != 'windows-latest'
if: failure()
with:
name: ${{ github.run_number }}-integration-test-artifact-${{ matrix.os }}-${{ matrix.java }}
path: ./maven-integration-testing/core-it-suite/target/test-classes/
name: ${{ github.run_number }}-integration-test-artifact-${{ runner.os }}-${{ matrix.java }}
path: ./its/core-it-suite/target/test-classes/
87 changes: 0 additions & 87 deletions .github/workflows/maven_build_itself.yml

This file was deleted.

28 changes: 28 additions & 0 deletions apache-maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,34 @@ under the License.
</plugins>
</build>
</profile>
<profile>
<id>run-its</id>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>create-distribution-dir</id>
<goals>
<goal>single</goal>
</goals>
<phase>package</phase>
<configuration>
<finalName>./</finalName>
<appendAssemblyId>false</appendAssemblyId>
<attach>false</attach>
<outputDirectory>${basedir}/target/maven</outputDirectory>
<descriptors>
<descriptor>src/assembly/dir.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>apache-release</id>
<build>
Expand Down
Loading