Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
183 commits
Select commit Hold shift + click to select a range
e289166
Bump version to 3.8.0-SNAPSHOT
michael-o Mar 16, 2021
02bc2a6
Add versionlessMavenDist profile
michael-o Feb 28, 2021
a96fd11
[MNG-3220] fix doc: dependencyManagement import require scope import
hboutemy Mar 13, 2021
09f77da
[MNG-7119] Upgrade Maven Wagon to 3.4.3
michael-o Mar 16, 2021
e5f6634
use Maven Resolver 1.6.2
hboutemy Mar 14, 2021
fa79cb2
[MNG-7116] add support for mirrorOf external:http:*
hboutemy Mar 13, 2021
899465a
[MNG-7117] add support for blocked mirror
hboutemy Mar 13, 2021
907d53a
[MNG-7118] block HTTP repositories by default
hboutemy Mar 13, 2021
6aa1f4a
[maven-release-plugin] prepare release maven-3.8.0
rfscholte Mar 21, 2021
dad8a3e
[maven-release-plugin] prepare for next development iteration
rfscholte Mar 21, 2021
a469068
next version in branch 3.8.x is 3.8.1-SNAPSHOT
hboutemy Mar 24, 2021
d295dc3
[MNG-7128] keep blocked attribute from mirrors in artifact repositories
hboutemy Mar 25, 2021
05c21c6
[maven-release-plugin] prepare release maven-3.8.1
rfscholte Mar 30, 2021
5213f43
[maven-release-plugin] prepare for next development iteration
rfscholte Mar 30, 2021
fbec4e7
[MNG-7152] Upgrade Maven Resolver to 1.6.3
michael-o May 11, 2021
cfe0537
[MNG-7155] upgrade maven-source-plugin from 3.2.0 to 3.2.1
hboutemy May 16, 2021
d6c9614
[MNG-7117] update link to settings xsd for version 1.2.0
hboutemy May 25, 2021
66a4381
[MNG-5868] No duplicate artifacts in attached artifacts
olamy Jun 1, 2020
68e02c2
[MNG-6071] Normalize relative paths for working directory
slachiewicz Jan 26, 2020
3645593
[MNG-6983] Plugin key can get out of sync with artifactId and groupId
Aug 24, 2020
2f144de
[MNG-6819] Fix NullPointerException in StringVisitorModelInterpolator
Dec 13, 2019
b5056e4
[MNG-6828] DependencyResolutionException breaks serialization
slachiewicz Jan 1, 2020
863f919
[MNG-6842] ProjectBuilderTest uses Guava, but Guava is not defined in…
KroArtem Jan 6, 2020
42c99b4
[MNG-6850] Prevent printing the EXEC_DIR when it's just a disk letter
rostidev Dec 31, 2019
76d5f0d
[MNG-6843] Parallel build fails due to missing JAR artifacts in compi…
famod Jun 25, 2021
a9f337f
[MNG-6937] StringSearchModelInterpolatorTest fails on symlinked paths
michael-o Jun 10, 2020
ce27f0e
[MNG-6964] Maven version sorting is internally inconsistent.
dennisl Jul 22, 2020
b476b28
[MNG-7000] metadata.mdo contains invalid link to schema
michael-o Oct 17, 2020
d4ad077
[MNG-6816] Prefer System.lineSeparator() over system properties
KroArtem Dec 9, 2019
3a465e1
[MNG-6837] Simplify detection of the MAVEN_HOME and make it fully qua…
rostidev Jan 1, 2020
5a89973
[MNG-7170] Allow to associate pomFile/${basedir} with DefaultProjectB…
mickaelistria Jun 11, 2021
bfd7c49
[MNG-7179] Upgrade Jansi to 2.3.3
rfscholte Jun 12, 2021
14ff5dd
[MNG-7177] Upgrade Maven Shared Utils to 3.3.4
michael-o Jun 30, 2021
73f34c0
[MNG-7172] Remove expansion of Jansi native libraries
rfscholte Jun 24, 2021
3925486
[MNG-7032] Evaluate --help and --version after configuring the loggin…
gnodet Jan 21, 2021
f98e632
[MNG-7080] Add a --color option to simplify color support
gnodet Jan 21, 2021
484e502
[MNG-7127] fix MavenCliTest.testStyleColors test in JDK 16
cchacin Mar 23, 2021
d862fdd
[MNG-6993] Upgrade SLF4J to 1.7.30
slawekjaranowski Sep 30, 2020
41efc13
[MNG-6886] upgrade plexus-cipher to 1.8 and update changed groupId (#…
olamy Apr 9, 2020
6f5c3d5
[MNG-6872] - Found CVEs in your dependencies - plexus-utils (tests)
khmarbaise Mar 8, 2020
01780c0
[MNG-6853] - Don't box primitives where it's not needed
rostidev Jan 22, 2020
a659ade
[MNG-6827] Replace deprecated StringUtils#defaultString() from Plexus…
KroArtem Dec 17, 2019
8edac61
[MNG-7149] Introduce MAVEN_DEBUG_ADDRESS in mvnDebug scripts
Dufgui Apr 25, 2021
b5ee583
[MNG-6859] Build not reproducible when built from source release
michael-o Feb 1, 2020
8f58b85
[MNG-7064] Use HTTPS for schema location in global settings.xml
michael-o Jan 4, 2021
9189425
[MNG-6967] Improve the command line output from maven-artifact.
dennisl Jul 22, 2020
40f1082
[MNG-6874] - Upgrade Maven Parent to 34
khmarbaise Mar 8, 2020
4259ba8
[MNG-6884] - Cleanup POM File after version upgrade
khmarbaise Apr 4, 2020
2a2392f
[MNG-6873] Align JUnit version to 4.13
kaifeng-h Mar 2, 2020
9ae1d95
[MNG-6844] Use StandardCharsets and remove outdated @SuppressWarnings
KroArtem Jan 9, 2020
8b693cc
Document hacks as such
michael-o Jul 2, 2021
7358b08
Add new ignores
michael-o Jul 3, 2021
7b355f7
[MNG-7180] Make --color option behave more like BSD/GNU grep's --colo…
michael-o Jul 3, 2021
7a8acdd
[MNG-7181] Make --version support -q
michael-o Jul 3, 2021
0635e92
[MNG-7184] document .mavenrc/mavenrc_pre.bat|cmd and MAVEN_SKIP_RC
hboutemy Jul 11, 2021
842e7c8
[MNG-7186] Upgrade Guice to 4.2.2
michael-o Jul 12, 2021
a27b4ee
[MNG-6987] Reorder groupId before artifactId when writing an exclusio…
mbruggmann Sep 10, 2020
5d6bb35
[MNG-6810] - Remove profiles in maven-model
khmarbaise Dec 7, 2019
5060349
[MNG-6811] - Remove unnecessary filtering configuration
khmarbaise Dec 7, 2019
f32c3db
[MNG-6471] Parallel builder should use the module name as thread name
rmannibucau Sep 6, 2018
a3907fc
[MNG-6754] Set the same timestamp in multi module builds
michael-o Oct 11, 2020
176b272
[MNG-7185] Describe explicit and recommended version for VersionRange…
breun Jul 13, 2021
268f956
Use proper term: directory
michael-o Jul 19, 2021
25df095
[MNG-7190] Load mavenrc from /usr/local/etc also in Bourne shell script
michael-o Jul 19, 2021
c395ca9
[MNG-7190] add /usr/local/etc/mavenrc to reference documentation
hboutemy Jul 20, 2021
b74199e
[MNG-7034] StackOverflowError thrown if a cycle exists in BOM imports
gnodet Nov 25, 2020
22a8cfa
[MNG-6648] 'mavenrc_pre' script does not receive arguments like maven…
michael-o Jul 22, 2021
f32eb09
[MNG-7010] Omit "NB: JAVA_HOME should point to a JDK not a JRE"
michael-o Jul 23, 2021
51f6d8b
[MNG-7196] Upgrade Jansi to 2.3.4
michael-o Jul 25, 2021
7ecdb3c
[MNG-7198] Upgrade SLF4J to 1.7.32
michael-o Jul 27, 2021
ea98e05
[maven-release-plugin] prepare release maven-3.8.2
michael-o Aug 4, 2021
865dcaa
[maven-release-plugin] prepare for next development iteration
michael-o Aug 4, 2021
9adb3ae
Document Maven 3.8.1 and 3.8.2 releases
michael-o Aug 13, 2021
4dc1159
Fix DOAP
michael-o Aug 14, 2021
547dfdd
Improve license handling
michael-o Jan 22, 2020
0c3fe07
[MNG-6818] - Upgrade plexus-utils 3.3.0
khmarbaise Dec 9, 2019
ccafe8b
[MNG-6841] update plexus-interpolation to 1.26
Jan 5, 2020
c76c9d9
[MNG-7246] Upgrade Plexus Cipher and Sec Dispatcher to 2.0
cstamas Sep 10, 2021
383cabf
[MNG-7216] [Regression] Revert MNG-7170
michael-o Aug 16, 2021
e08834b
[MNG-7250] Upgrade Sisu Inject/Plexus to 0.3.5
cstamas Sep 13, 2021
4e5b3d5
[MNG-7251] Fix threadLocalArtifactsHolder leaking into cloned project
famod Aug 22, 2021
1ea42b0
[MNG-7219] [Regression] plexus-cipher missing from transitive depende…
michael-o Sep 11, 2021
98a9d08
[MNG-7236] The DefaultPluginVersionResolver should cache results for …
gnodet Sep 9, 2021
93f9e85
[MNG-7045] Drop CDI API from Maven
rmannibucau Dec 3, 2020
d1aa1e1
[MNG-7252] Fix warnings issued by dependency:analyze
michael-o Sep 16, 2021
8c66edc
[MNG-7254] Expand Windows native libraries for Jansi due to JDK-81951…
michael-o Sep 16, 2021
ab54d17
[MNG-7253] Display relocation message defined in model
gastaldi Sep 17, 2021
8882a9c
[MNG-7164] Add constructor MojoExecutionException(Throwable)
ggregory-rocket May 29, 2021
0a6bbb8
[MNG-7235] Speed improvements when calculating the sorted project graph
gnodet Sep 9, 2021
ff8e977
[maven-release-plugin] prepare release maven-3.8.3
michael-o Sep 27, 2021
21e597e
[maven-release-plugin] prepare for next development iteration
michael-o Sep 27, 2021
b6186e2
Remove swap file
michael-o Sep 27, 2021
fb5f3f5
[MNG-7270] Switch to shell alternative to "which"
jmtd Sep 29, 2021
5c36bf5
[MNG-7312] Revert ThreadLocal approach from MNG-6843 and MNG-7251
michael-o Oct 16, 2021
19c3b91
[MNG-7331] Upgrade Jansi to 2.4.0
michael-o Nov 12, 2021
9b656c7
[maven-release-plugin] prepare release maven-3.8.4
michael-o Nov 14, 2021
8af0a67
[maven-release-plugin] prepare for next development iteration
michael-o Nov 14, 2021
ed32798
Update DOAP with Maven 3.8.3 release
michael-o Oct 3, 2021
f568170
Update DOAP with Maven 3.8.4 release
michael-o Nov 20, 2021
5bc395f
Add github checks to maven-3.8.x branch
gnodet Dec 1, 2021
803c215
Fix github checks
gnodet Dec 2, 2021
10a72f3
[MNG-7156][MNG-7285] Add locking in MojoExecutor (#628)
gnodet Dec 17, 2021
4ff27db
[MNG-7156][MNG-7285] Fix typo in test
gnodet Dec 17, 2021
6ae4f7e
Bump Java to 17
slachiewicz Dec 17, 2021
8348d2b
Fix SLF4J license link
michael-o Dec 26, 2021
100b17e
[MNG-7370] Upgrade Maven Wagon to 3.5.1
michael-o Dec 26, 2021
e09baa8
Improve PR template
michael-o Dec 30, 2021
d173bf9
[MNG-7377] Add .vscode/ to .gitignore
jmhodges Dec 29, 2021
ef74a62
[MNG-7374] Mutating RelocatedArtifact does not retain type
michael-o Dec 25, 2021
05b748f
[MNG-5561] Plugin relocation loses configuration
michael-o Dec 25, 2021
0f3c39b
[MNG-6802] FileProfileActivator changes FileProfileActivator.exists w…
dehasi May 15, 2021
f4fd031
Fix checkstyle issue
michael-o Jan 6, 2022
8456294
[MNG-6326] Make the build fail if core extensions can not be loaded (…
gnodet Jan 7, 2022
b4518b5
[MNG-7347] SessionScoped beans should be singletons for a given sessi…
gnodet Jan 10, 2022
84cbe1a
[MNG-7362] DefaultArtifactResolver has spurious "Failure detected" IN…
michael-o Jan 11, 2022
99de6b4
[MNG-7380] Don't log non-threadsafe warning if only building a single…
famod Jan 9, 2022
72c483b
[MNG-7384] Upgrade Maven JAR Plugin to 3.2.2
michael-o Jan 8, 2022
67ff805
[MNG-7381] Shorten parallel builder thread name to artifactId, condit…
famod Jan 17, 2022
2775512
[MNG-7385] improve repository metadata documentation
hboutemy Jan 9, 2022
0cda424
[MNG-7386] Make sure the ModelMerger$MergingList can be serialized
gnodet Jan 21, 2022
83257bf
[MNG-7349] Limit relocation warning message to direct dependencies only
gnodet Jan 24, 2022
d79485f
[MNG-6727] Using version range in parent and CI Friendly Version fails
gnodet Feb 1, 2022
0a118d6
[MNG-7408] explain Maven 3 reporting plugin version selection
hboutemy Feb 6, 2022
6f14196
[MNG-7400] Allow more WorkspaceReaders to participate
Jan 29, 2022
2bb1228
[MNG-7407] Introduce a ModelVersionProcessor component to make CI Fri…
Feb 2, 2022
a5acd3e
[MNG-7395] Support interpolation in extensions.xml
Jan 24, 2022
395411f
[MNG-7417] Several classes do not set properties properly for buildin…
slachiewicz Jan 1, 2020
d29af90
[MNG-7402] BuildListCalculator never detaches the classloader
Feb 25, 2022
05e96da
[MNG-5180] Versioning's snapshot version list is not included in
patope Aug 28, 2020
f0caf9c
[MNG-6960] Use RuntimeInformation instead of reading properties
michael-o Feb 27, 2022
572d526
[MNG-7428] Upgrade Maven Parent to 35
michael-o Mar 3, 2022
cfeea9d
Remove unused imports
michael-o Mar 5, 2022
3599d34
[maven-release-plugin] prepare release maven-3.8.5
michael-o Mar 5, 2022
0a6f12f
[maven-release-plugin] prepare for next development iteration
michael-o Mar 5, 2022
78ca83e
Bump version to 3.9.0-SNAPSHOT
michael-o Mar 6, 2022
52b7186
[MNG-6399] Lift JDK minimum to JDK 8
michael-o Aug 28, 2021
453c173
[MNG-7247] Upgrade Maven Resolver to 1.7.2
michael-o Apr 25, 2021
6ddb751
Remove unnecessary plugin dependency
michael-o Mar 6, 2022
e820dbb
[MNG-6878] Upgrade Guice to 4.2.3
michael-o Mar 6, 2022
e1b46e2
[MNG-7068] Active dependency management for Google Guice/Guava
boris-unckel Jan 5, 2021
7d6f281
[MNG-6826] Remove condition check for JDK8+ in FileSizeFormatTest
khmarbaise Dec 15, 2019
6b7beb4
[MNG-7019] Notify also at start when profile is missing
michael-o Nov 13, 2020
a55300a
[MNG-6972] Allow access to org.apache.maven.graph
mickroll Aug 3, 2020
1954d51
[MNG-7391] add execution strategy+runner required by Maven Build Cache
gnodet Nov 26, 2021
14ca723
[MNG-7350] Introduce a factory for ModelCache
gnodet Dec 2, 2021
5220420
Update DOAP with Maven 3.8.5 release
michael-o Mar 13, 2022
3a5a40c
[MNG-7391] Fix MojosExecutionStrategy lookup to be able to look into …
gnodet Mar 15, 2022
88d2967
[MNG-7413] fix anchor for XML elements with same name but not content
hboutemy Feb 13, 2022
f7b073f
[MNG-7445] - Refactoring, remove the useless line
Gakiii Mar 4, 2022
c604db3
[MNG-7447] - Several Improvements by using Stream API
khmarbaise Sep 30, 2021
a116f25
[MNG-7452] - Remove JDK7 run on Maven 3.9.X Branch
khmarbaise Apr 5, 2022
083423f
[MNG-7441] Update version of loback
cstamas Apr 8, 2022
263cf95
[MNG-7432] Resolver session contains non-MavenWorkspaceReader (#695)
cstamas Apr 8, 2022
08dff22
[MNG-7447] Fix ReactorReader unintended change (#709)
cstamas Apr 8, 2022
ff0300b
[MNG-5222] Maven 3 no longer logs warnings about deprecated plugin pa…
belingueres Sep 9, 2019
1ad5a1b
[MNG-7454] Include resolver-transport-http in Maven 3.9.x (#710)
cstamas Apr 13, 2022
3c6009c
[MNG-7438] add execution id to "configuring mojo" debug message
hboutemy Mar 22, 2022
85caf98
[MNG-7454] Include resolver-transport-http in Maven (#720)
cstamas Apr 16, 2022
aa06073
[MNG-7453] Update Resolver to 1.8.0 (#724)
cstamas Apr 22, 2022
4c9dc5a
[MNG-7055] Fix G level metadata handling in 3.9.x (#691)
cstamas Apr 22, 2022
28c763c
[MNG-5222] Improvement in deprecated params detection
slawekjaranowski Apr 23, 2022
dd0ddef
[MNG-7457] Warn about deprecated plugin Mojo
slawekjaranowski Apr 23, 2022
7b86ce8
[MNG-7466] Align assembly XSD version with plugin used (#728)
cstamas Apr 27, 2022
229cfc8
[MNG-7466] Align assembly XSD version with plugin used (#728)
cstamas Apr 27, 2022
74eba29
[MNG-7464] Warn about using read-only parameters for Mojo in configur…
slawekjaranowski Apr 28, 2022
89237dd
Revert "[MNG-7347] SessionScoped beans should be singletons for a giv…
gnodet May 9, 2022
4de3947
[MNG-7471] Make Resolver util and connector-basic provided (#732)
cstamas May 11, 2022
70e9381
[MNG-7478] Transport selection should use config properties (#739)
cstamas May 17, 2022
5002a0b
[MNG-7448] Don't ignore bin/ otherwise bin/ in apache-maven module ca…
khmarbaise Apr 15, 2022
aec341a
[MNG-7486] Create a multiline message helper for boxed log messages
gnodet May 16, 2022
0b0a967
[MNG-7487] Fix deadlock during forked lifecycle executions
gnodet May 12, 2022
0a94ff7
[MNG-7476] Display a warning when an aggregator mojo is locking other…
gnodet May 16, 2022
8a928e5
[MNG-7488] Upgrade SLF4J to 1.7.36
michael-o May 30, 2022
d0c387b
[MNG-7489] Upgrade JUnit to 4.13.2
michael-o May 30, 2022
ac9132e
deploy master, 3.8.x and 3.9.x
hboutemy May 31, 2022
ca47918
[MNG-7491] Update parent POM 36 (3.9.x) (#748)
cstamas Jun 2, 2022
0504c36
[MNG-7468] Check unsupported plugins parameters in configuration - 3.9
slawekjaranowski May 21, 2022
bb6bbf8
Update DOAP with Maven 3.8.6 release
michael-o Jun 11, 2022
115febf
[MNG-7160] Ability to customize core extensions classloaders (#616)
gnodet Jun 15, 2022
f0cef23
[MNG-7499] Upgrade Maven Resolver to 1.8.1
michael-o Jun 17, 2022
b3e7e57
[MNG-7504] Don't print warning unsupported reportPlugins for m-site-p
slawekjaranowski Jun 19, 2022
9e4b124
WIP
cstamas Jun 22, 2022
ab44914
Add more user friendly(er) locking modes.
cstamas Jun 24, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
Following this checklist to help us incorporate your
Following this checklist to help us incorporate your
contribution quickly and easily:

- [ ] Make sure there is a [JIRA issue](https://issues.apache.org/jira/browse/MNG) filed
for the change (usually before you start working on it). Trivial changes like typos do not
require a JIRA issue. Your pull request should address just this issue, without
- [ ] Make sure there is a [JIRA issue](https://issues.apache.org/jira/browse/MNG) filed
for the change (usually before you start working on it). Trivial changes like typos do not
require a JIRA issue. Your pull request should address just this issue, without
pulling in other changes.
- [ ] Each commit in the pull request should have a meaningful subject line and body.
- [ ] Format the pull request title like `[MNG-XXX] - Fixes bug in ApproximateQuantiles`,
where you replace `MNG-XXX` with the appropriate JIRA issue. Best practice
is to use the JIRA issue title in the pull request title and in the first line of the
commit message.
- [ ] Format the pull request title like `[MNG-XXX] SUMMARY`, where you replace `MNG-XXX`
and `SUMMARY` with the appropriate JIRA issue. Best practice is to use the JIRA issue
title in the pull request title and in the first line of the commit message.
- [ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
- [ ] Run `mvn clean verify` to make sure basic checks pass. A more thorough check will
- [ ] Run `mvn clean verify` to make sure basic checks pass. A more thorough check will
be performed on your pull request automatically.
- [ ] You have run the [Core IT][core-its] successfully.

If your pull request is about ~20 lines of code you don't need to sign an
[Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf) if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
To make clear that you license your contribution under
the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
you have to acknowledge this by using the following check-box.

Expand Down
121 changes: 121 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

name: Java CI

on: [push, pull_request]

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

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

steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'temurin'
cache: 'maven'

- name: Build with Maven
run: mvn verify -e -B -V -DdistributionFileName=apache-maven

- name: Upload built Maven
uses: actions/upload-artifact@v2
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
name: built-maven
path: apache-maven/target/

integration-test:
needs: build
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
java: [8, 11, 17]

fail-fast: false
runs-on: ${{ matrix.os }}

steps:
- name: Collect environment context variables
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
else
echo "Integration tests will run against $target_user/$repo for master builds."
fi
echo "REPO_BRANCH=$target_branch" >> $GITHUB_ENV
echo "REPO_USER=$target_user" >> $GITHUB_ENV

- name: Checkout maven-integration-testing
uses: actions/checkout@v2
with:
repository: ${{ env.REPO_USER }}/maven-integration-testing
path: maven-integration-testing/
ref: ${{ env.REPO_BRANCH }}

- name: Set up cache for ~/.m2/repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: it-m2-repo-${{ matrix.os }}-${{ hashFiles('maven-integration-testing/**/pom.xml') }}
restore-keys: |
it-m2-repo-${{ matrix.os }}-

- name: Download built Maven
uses: actions/download-artifact@v2
with:
name: built-maven
path: built-maven/

- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: 'maven'

- name: Running integration tests
shell: bash
run: mvn install -e -B -V -Prun-its,embedded -Dmaven.repo.local="$HOME/.m2/repository" -DmavenDistro="$GITHUB_WORKSPACE/built-maven/apache-maven-bin.zip" -f maven-integration-testing/pom.xml
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ target/
.classpath
.settings/
.svn/
bin/
# Intellij
*.ipr
*.iml
.idea
out/
.DS_Store
/bootstrap
/dependencies.xml
.java-version
.factorypath
.checkstyle
.vscode/
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def buildOs = 'linux'
def buildJdk = '8'
def buildMvn = '3.6.0'
def runITsOses = ['linux', 'windows']
def runITsJdks = ['7', '8', '11','12']
def runITsJdks = ['8', '11','17']
def runITsMvn = '3.6.0'
def runITscommand = "mvn clean install -Prun-its,embedded -B -U -V" // -DmavenDistro=... -Dmaven.test.failure.ignore=true
def tests
Expand All @@ -41,7 +41,7 @@ node(jenkinsEnv.nodeSelection(osNode)) {
def MAVEN_GOAL='verify'

stage('Configure deploy') {
if (env.BRANCH_NAME == 'master'){
if (env.BRANCH_NAME in ['master', 'maven-3.8.x', 'maven-3.9.x']){
MAVEN_GOAL='deploy'
}
}
Expand Down
43 changes: 17 additions & 26 deletions apache-maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ under the License.
<parent>
<groupId>org.apache.maven</groupId>
<artifactId>maven</artifactId>
<version>3.6.3</version>
<version>3.9.0-SNAPSHOT</version>
</parent>

<artifactId>apache-maven</artifactId>
Expand Down Expand Up @@ -63,29 +63,10 @@ under the License.
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-http</artifactId>
<classifier>shaded</classifier>
<exclusions>
<exclusion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-http-shared</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<!-- this is included in Wagon Http
we are just making the dependency explicit
in order to ease license attribution -->
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<scope>runtime</scope>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-file</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
Expand All @@ -94,12 +75,16 @@ under the License.
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-file</artifactId>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-connector-basic</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-connector-basic</artifactId>
<artifactId>maven-resolver-transport-file</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-transport-http</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
Expand Down Expand Up @@ -136,7 +121,7 @@ under the License.
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<includeArtifactIds>jansi</includeArtifactIds>
<includes>META-INF/native/**</includes>
<includes>org/fusesource/jansi/internal/native/Windows/**</includes>
</configuration>
<executions>
<execution>
Expand Down Expand Up @@ -319,6 +304,12 @@ under the License.
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>versionlessMavenDist</id>
<build>
<finalName>${project.artifactId}</finalName>
</build>
</profile>
</profiles>
</project>
11 changes: 7 additions & 4 deletions apache-maven/src/bin/mvn
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

if [ -z "$MAVEN_SKIP_RC" ] ; then

if [ -f /usr/local/etc/mavenrc ] ; then
. /usr/local/etc/mavenrc
fi

if [ -f /etc/mavenrc ] ; then
. /etc/mavenrc
fi
Expand Down Expand Up @@ -90,15 +94,14 @@ if $mingw ; then
fi

if [ -z "$JAVA_HOME" ] ; then
JAVACMD=`which java`
JAVACMD="`\\unset -f command; \\command -v java`"
else
JAVACMD="$JAVA_HOME/bin/java"
fi

if [ ! -x "$JAVACMD" ] ; then
echo "The JAVA_HOME environment variable is not defined correctly" >&2
echo "This environment variable is needed to run this program" >&2
echo "NB: JAVA_HOME should point to a JDK not a JRE" >&2
echo "The JAVA_HOME environment variable is not defined correctly," >&2
echo "this environment variable is needed to run this program." >&2
exit 1
fi

Expand Down
23 changes: 9 additions & 14 deletions apache-maven/src/bin/mvn.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
@REM Execute a user defined script before this one
if not "%MAVEN_SKIP_RC%"=="" goto skipRcPre
@REM check for pre script, once with legacy .bat ending and once with .cmd ending
if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat"
if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd"
if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %*
if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %*
:skipRcPre

@setlocal
Expand All @@ -54,21 +54,16 @@ set "JAVACMD=%JAVA_HOME%\bin\java.exe"
:checkJCmd
if exist "%JAVACMD%" goto chkMHome

echo The JAVA_HOME environment variable is not defined correctly >&2
echo This environment variable is needed to run this program >&2
echo NB: JAVA_HOME should point to a JDK not a JRE >&2
echo The JAVA_HOME environment variable is not defined correctly, >&2
echo this environment variable is needed to run this program. >&2
goto error

:chkMHome
set "MAVEN_HOME=%~dp0.."
if not "%MAVEN_HOME%"=="" goto stripMHome
set "MAVEN_HOME=%~dp0"
set "MAVEN_HOME=%MAVEN_HOME:~0,-5%"
if not "%MAVEN_HOME%"=="" goto checkMCmd
goto error

:stripMHome
if not "_%MAVEN_HOME:~-1%"=="_\" goto checkMCmd
set "MAVEN_HOME=%MAVEN_HOME:~0,-1%"
goto stripMHome

:checkMCmd
if exist "%MAVEN_HOME%\bin\mvn.cmd" goto init
goto error
Expand All @@ -78,7 +73,7 @@ goto error

set MAVEN_CMD_LINE_ARGS=%*

@REM Find the project basedir, i.e., the directory that contains the folder ".mvn".
@REM Find the project basedir, i.e., the directory that contains the directory ".mvn".
@REM Fallback to current working directory if not found.

set "MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%"
Expand Down Expand Up @@ -156,7 +151,7 @@ goto endDetectBaseDir
:baseDirNotFound
if "_%EXEC_DIR:~-1%"=="_\" set "EXEC_DIR=%EXEC_DIR:~0,-1%"
set "MAVEN_PROJECTBASEDIR=%EXEC_DIR%"
cd "%EXEC_DIR%"
cd /d "%EXEC_DIR%"

:endDetectBaseDir

Expand Down
9 changes: 5 additions & 4 deletions apache-maven/src/bin/mvnDebug
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
#
# Environment Variable Prerequisites
#
# JAVA_HOME Must point at your Java Development Kit installation.
# MAVEN_OPTS (Optional) Java runtime options used when Maven is executed.
# MAVEN_SKIP_RC (Optional) Flag to disable loading of mavenrc files.
# JAVA_HOME Must point at your Java Development Kit installation.
# MAVEN_OPTS (Optional) Java runtime options used when Maven is executed.
# MAVEN_SKIP_RC (Optional) Flag to disable loading of mavenrc files.
# MAVEN_DEBUG_ADDRESS (Optional) Set the debug address. Default value is 8000
# -----------------------------------------------------------------------------

MAVEN_DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000"
MAVEN_DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=${MAVEN_DEBUG_ADDRESS:-8000}"

echo Preparing to execute Maven in debug mode

Expand Down
Loading