Commit Graph

2329 Commits

Author SHA1 Message Date
Maarten Mulders d139dd68f7 Use the loopback address for connecting to an in-process web server
This may resolve the connection issues we sometimes see in GitHub
Actions where the Maven process that is being tested cannot connect
to the Jetty server that was just started.

This closes #107
2021-04-24 22:19:52 +02:00
Michael Osipov aea9276d50 Disable IT for MNG-6772 2021-04-22 18:48:15 +02:00
Maarten Mulders 7f42b2cc6c [MNG-7045] Upgrade to IT to use Groovy 4.0.0-alpha-3 2021-04-17 20:29:46 +02:00
Maarten Mulders 6db9cfb1db [MNG-7045] Make sure Ant 1.10.8 is available 2021-04-04 16:16:00 +02:00
Martin Kanters 4209fbf7b6 [MNG-7112] Test that --non-recursive can be used together with --projects to just build the aggregator project.
Closes #104
2021-04-02 16:13:03 +02:00
Maarten Mulders 9baeaba95b [MNG-7045] Make sure Groovy 4.0.0-alpha-2 is available 2021-04-02 11:48:55 +02:00
Maarten Mulders 1083586aac [MNG-7045] Upgrade to IT to use Groovy 4.0.0-alpha-2
Closes #105.
2021-04-02 09:16:25 +02:00
Hervé Boutemy a3d6fac56a [MNG-7128] test blocked HTTP repository in pom.xml 2021-03-27 03:18:05 +01:00
Martin Kanters 0e982c2c9a [MNG-6511] Testing whether projects can be marked optional during (de)selection using --projects.
Closes #100.
2021-03-22 14:41:19 +01:00
Michael Osipov 3d59306302 [MNG-6075] Increase the model validation level to the next minor level version
* Modify ITs to pass with Maven 4
* Disable MavenITmng3719PomExecutionOrderingTest for Maven 4 because it
  deliberately relies on duplicate plugin declarations

This closes #103
2021-03-14 15:10:55 +01:00
Michael Osipov c4bcd09ecf Fix syntax error 2021-03-14 12:31:24 +01:00
Michael Osipov 4eb9f2026c Revert "[MNG-7046] Revert MNG-5639 and make repo config static only"
This reverts commit bba1d5cb04.
2021-03-13 17:26:07 +01:00
rfscholte ef313b620c Merge branch 'MNG-7110' 2021-03-12 18:22:26 +01:00
rfscholte 16fa596774 [MNG-7110] Different behavior of extensions 2021-03-12 17:21:19 +01:00
Martin Kanters e3a74e940b [MNG-7051] When an optional profile could not be found, an info message should be thrown instead of a warning. 2021-03-08 16:24:05 +01:00
rfscholte a469fd5823 Make tests verifiable with at least Maven 3.6.3 2021-02-28 23:26:58 +01:00
Michael Osipov 218ce6c7e7 [MNG-6114] Elements from the global settings should be ordered before elements from the user settings
Central from global settings with 'file:' comes first and is ignored by the
mirrorOf definition. The next central definition is ignored too due to
MNG-7018/MNG-5984. As long as these issues aren't resolved we need to mirror
even local repos to make the IT work as intended.

This closes #92
2021-02-28 19:39:39 +01:00
Guillaume Nodet d4f7ebaa1e [MNG-7095] Support for parallel builds when resuming
Resolves #98
2021-02-13 11:35:30 +01:00
Michael Osipov 6ff4e40e4a [MNG-7029] Remove super POM release profile
This closes #86
2021-02-02 17:45:13 +01:00
Maarten Mulders 574f0f1351 [MNG-7051] Optionally skip non-existing profiles and break on missing required profiles. 2021-02-02 08:19:59 +01:00
Michael Osipov db6f8bfef8 Correct terms: Java operates on files and directories
Use 'directory' instead of the term 'folder' from Windows Explorer.
2021-01-23 22:59:43 +01:00
Michael Osipov a5ea1640e0 Clean to avoid stale files 2021-01-23 21:44:53 +01:00
Sylwester Lachiewicz b46310ef89 Set minimal default target/source/release for maven-compiler to Java 7 2021-01-08 03:50:12 +01:00
Sylwester Lachiewicz 36d9f925c4 [MNG-6972] Fix IT - explicitly set compiler target versions to 8 2021-01-08 03:46:12 +01:00
Michael Osipov 5cae9178ad Test for consistent logging
This closes #97
2021-01-05 16:00:48 +01:00
Michael Osipov 350eef8388 Correct last remaining incorrect checksums
Notes: Some checksums are intentionally incorrect for testing purposes.
Broken checksums can be found by:
$ algo=...; for checksum_file in $(find . -name \*.$algo); do \
  expected_checksum=$(cat $checksum_file); \
  file="$(dirname $checksum_file)/$(basename $checksum_file .$algo)"; \
  actual_checksum=$($algo -q $file); \
  if [[ "$actual_checksum" != "$expected_checksum" ]] ; \
  then echo "$file: $expected_checksum != $actual_checksum"; fi; \
  done | sort
2021-01-02 01:49:34 +01:00
Michael Osipov c968c96eb8 Trim line endings as done by Maven Resolver 2021-01-01 23:00:54 +01:00
Michael Osipov ad8a5d0813 [MNG-6972] Allow access to org.apache.maven.graph
Use a fresh, preconfigured verifier which has global settings set.

This issue can be observed when Maven is ran with MNG-4645 where
no preconfigured Maven Central is in global settings.

This closes #94
2021-01-01 21:31:19 +01:00
Michael Osipov 15eacdf57c [MNG-5760] Add `-r/--resume` to automatically resume from the last failure point
Use a fresh, preconfigured verifier and do not clear CLI options because
on clear all preconfigurations, especially global settings are gone.

This issue can be observed when Maven is ran with MNG-4645 where
preconfigured Maven Central is lost in global settings.

This closes #93
2021-01-01 21:10:55 +01:00
Maarten Mulders 3d5d544112 [MNG-4660] Increase usefulness of logging
Closes #91
2020-12-28 11:25:52 +01:00
Michael Osipov bba1d5cb04 [MNG-7046] Revert MNG-5639 and make repo config static only
This closes #85
2020-12-24 15:27:58 +01:00
Michael Osipov 9d46bc98d5 [MNG-7022] Remove o.a.m.lifecycle.mapping.Lifecycle optional mojos backward compat code
Disable test which still declares optional mojos. The test runs fine
when optional mojos are removed from components.xml.

This closes #79
2020-12-24 12:07:25 +01:00
Michael Osipov 6b0efd992c Trim trailing whitespace 2020-12-24 00:31:14 +01:00
Maarten Mulders 103f9c0b41 [MNG-4660] Increase usefulness of logging 2020-12-23 16:48:14 +01:00
rfscholte 976a706ddd [MNG-6957] versionless reactor dependencies/parent should work even if modules are aggregated in reverse order 2020-12-22 17:32:02 +01:00
Falko Modler 71064cdf5b Fix MNG-3259 IT on JDK 16
This closes #89
2020-12-22 11:25:09 +01:00
Christoph Hümbert 3ec0d6ead6 [MNG-7045] Drop CDI API from Maven
This closes #88
2020-12-22 10:24:06 +01:00
Michael Osipov 4c130bb2ef Use consistently groupId prefix 'org.apache.maven.its.' in ITs 2020-12-22 10:15:02 +01:00
rfscholte 0895ed0c45 [MNG-6957] versionless reactor dependencies/parent should work even if modules are aggregated in reverse order 2020-12-21 22:20:45 +01:00
Martin Kanters bc3cdccb68 [MNG-6566] Plugins that require a certain phase should not fork goals that are already in the execution plan.
This resolves #74
2020-12-15 09:34:03 +01:00
Michael Osipov 0b3c0cab86 Fix incorrect line ending issue 2020-12-06 01:45:25 +01:00
Michael Osipov ce575c91a4 [MNG-5728] Switch the default checksum policy from "warn" to "fail" 2020-11-30 20:21:11 +01:00
Michael Osipov 0176e3cc77 [MNG-7041] Update @since, version ranges and other version related strings
This closes #83
2020-11-29 11:25:10 +01:00
rfscholte 043899d3c5 [MNG-3485] Fix IT by locking maven-surefire-plugin to original version 2020-11-25 23:12:15 +01:00
Michael Osipov b84481f249 Add checksums to avoid warnings in ITs 2020-11-16 20:15:15 +01:00
Michael Osipov 3b4ecab8ba Move test plugin for MNG-4338 to Maven 3.0 Plugin API 2020-11-14 01:11:05 +01:00
Michael Osipov 43f7c3dc4e Use new style altDeploymentRepository option format 2020-11-13 18:41:12 +01:00
Michael Osipov 02bd24851a Don't require SNAPSHOT versions 2020-11-13 18:40:41 +01:00
Michael Osipov bdf4914e8f Add checksums for MNG-5771 2020-11-13 18:39:50 +01:00
Michael Osipov 1e1db6958f [MNG-3203] Supply release parameter when run on Java 9+ 2020-11-12 14:37:15 +01:00
Michael Osipov db7be8d178 [MNG-6754] Set the same timestamp in multi module builds (2/2)
Verify snapshot versions also with all deployed artifact files.
2020-11-12 12:01:50 +01:00
Maarten Mulders ae6f0133b7 [MNG-6754] Set the same timestamp in multi module builds (1/2)
Install and deploy a multi module project, compare local and remote
last updated timestamps with each other and Maven build timestamp.

This closes #77
2020-11-12 10:51:50 +01:00
Michael Osipov 622eece3a6 [MNG-6551] Packaging 'jar' binding plugin upgrades
Add missing dependencies and set plugin versions.
2020-11-11 22:33:46 +01:00
Michael Osipov 2f29204de8 [MNG-6890] MavenITmng5669ReadPomsOnce is unreliable
Add explicit plugin versions to solve instability.

This closes #75
2020-11-09 22:38:21 +01:00
Martin Kanters ea8263c317 [MNG-6981] Verify that the --projects switch will include the children of the targeted projects.
This closes #71
2020-10-19 20:05:59 +02:00
Maarten Mulders 0706005a29 [MNG-6118] Test various scenarios of invoking Maven in a sub-module.
This closes #68
2020-10-18 20:29:43 +02:00
Michael Osipov be4bfc559d [MNG-6965] Extensions suddenly have org.codehaus.plexus:plexus-utils:jar:1.1 on their classpath
Scope a few ITs for (,3.7.0).

This closes #73
2020-10-04 21:19:23 +02:00
Michael Osipov b0f5e8665b Add JUnit 4.12 to bootstrap group 9 2020-09-11 10:57:49 +02:00
Maarten Mulders 8a989d5e4b [MNG-6985] Use correct maven.multiModuleProjectDirectory in Embedded mode 2020-09-11 07:48:41 +02:00
Sylwester Lachiewicz ea0c164e9c [MNG-6772] check old versions - comment from review 2020-09-01 08:22:23 +02:00
Eddie Wiegers 1e26257f44 [MNG-6772] Prove Super POM central entry won't override
Closes #49
2020-08-31 23:45:07 +02:00
Hervé Boutemy f5eb5bda4c update ASF CI url 2020-08-29 14:15:02 +02:00
Michael Osipov b3c4bb34f1 Sort ITs in reverse numerical order 2020-08-05 20:57:33 +02:00
mickroll 822504183a [MNG-6972] Allow access to org.apache.maven.graph
This closes #69
2020-08-04 19:19:52 +02:00
mickroll 2a7a7637ca [MNG-6974] IT for MNG-5175 (Wagon HTTP) fails with JDK 14
Increase sleep timeout to avoid ephemeral race conditions.

This closes #70
2020-08-04 14:21:47 +02:00
Maarten Mulders beee89ebf0 [MNG-5760] Added several more test cases for the --resume feature
Enable test for --resume feature

Verifying that resuming the build works when the resume.properties file does not have excludedProjects to skip in the next build.

Enabled back temporarily ignored test.

Added a test case for the --resume feature to skip failed modules after the first multi module project failed.

Maven invocations without project shouldn't fail

Ensure empty folder is there
2020-07-15 12:05:20 +02:00
Michael Osipov f1ab8c4264 [MNG-6951] Failing integration test MNG-6386 (Unicode chars) on macOS 2020-07-02 18:11:53 +02:00
Sylwester Lachiewicz def39b9e5a MacOS - url encode differences - needs more investigation 2020-07-01 18:06:09 +02:00
Sylwester Lachiewicz bdd3edeb67 Print url to verify MacOS issue 2020-07-01 14:58:28 +02:00
rfscholte 7c24168f69 [MNG-6656] Support build/consumer process 2020-06-22 21:30:47 +02:00
rfscholte a0f5f08325 [MNG-5760] Add `-r/--resume` to automatically resume from the last failure point
Author: Maarten Mulders <maartenm@infosupport.com>
2020-06-20 13:52:39 +02:00
rfscholte d573cbb597 [MNG-6562] WARN if plugins injected by default lifecycle bindings don't have their version locked in pom.xml or parent 2020-06-20 10:13:56 +02:00
rfscholte de89cf15c7 Lock plugin versions in extension lifecycle to prevent it'll pick up the LATEST, which might behave differently 2020-06-19 23:12:36 +02:00
rfscholte e8eff294f3 [MNG-6939] ITs fail when MAVENCODEBASE is relative (Windows) 2020-06-12 22:19:46 +02:00
Michael Osipov d53ceab6ea [MNG-6939] ITs fail when MAVENCODEBASE is relative (Unix) 2020-06-12 22:19:36 +02:00
Michael Osipov 0944ed2259 [MNG-6938] MavenITBootstrapTest fails with StringIndexOutOfBoundsException: String index out of range: -1
This is a regression introduced by 1c88bf3e1c.
2020-06-11 00:23:29 +02:00
Michael Osipov 424691b80e Fix ugly labels caused by b804f9c6fa
When the test method name is solely 'test()' the output is:
<issue> <className>.()

Consistently modified a few tests to use the generic name 'testit()'.
2020-06-10 10:45:16 +02:00
Hervé Boutemy b804f9c6fa display (near-)method name as a method 2020-06-07 10:16:50 +02:00
Hervé Boutemy d49faf1147 [MNG-5937] fail in setUp() instead of constructor gives better reporting 2020-06-06 22:30:22 +02:00
Hervé Boutemy 1c88bf3e1c add color to ITs rendering 2020-06-06 22:05:19 +02:00
Hervé Boutemy 5fd80e5082 [MNG-5937] improved check & msg for unconfigured wrapper properties 2020-06-06 18:34:41 +02:00
olivier lamy bb1b892144 [MNG-5868] Adding serval times the same artifact via MavenProjectHelper (attachArtifact) keep adding to the List duplicate artifacts
Signed-off-by: olivier lamy <olamy@apache.org>
2020-06-04 11:49:52 +10:00
olivier lamy 9d793585ae this need to use install to install plugins
Signed-off-by: olivier lamy <olamy@apache.org>
2020-06-01 17:47:13 +10:00
olivier lamy 1e72287309 fix typo on profile id
Signed-off-by: olivier lamy <olamy@apache.org>
2020-06-01 16:32:58 +10:00
olivier lamy 0a666f3050 fix script with the file path separator :)
Signed-off-by: olivier lamy <olamy@apache.org>
2020-06-01 12:19:44 +10:00
rfscholte 59d1b4854e [MNG-6919] test maven-wrapper with spaced paths 2020-05-27 22:55:50 +02:00
rfscholte e6c2c2e644 Update documentation on how to run ITs including tests for maven-wrapper 2020-05-26 20:14:01 +02:00
rfscholte 0ac723e2a6 [5937] Maven-Wrapper for unified project environments 2020-05-22 22:33:01 +02:00
Michael Osipov b60b15d8e7 [MNG-2478] add "resources-filtered" filtered resource directories to super POM
Modified MavenITmng3843PomInheritanceTest to accommodate additional resource
directories.
2020-04-27 23:35:14 +02:00
Michael Osipov 0dc01ef157 Prepare IT of MNG-2741 for Wagon 3.4.0 2020-04-20 13:45:05 +02:00
Sylwester Lachiewicz df98cdb4ca Upgrade maven-antrun-plugin to 3.0.0 2020-04-17 22:59:18 +02:00
Maarten Mulders 3615723179 [MNG-4660] Use of --resume-from in multi-module project fails with missing inter-module dependencies 2020-04-14 22:03:37 +02:00
Michael Osipov 83c6b84540 [MNG-5640] AbstractMavenLifecycleParticipant#afterSessionEnd is not invoked in some cases
Explicitly set Maven Surefire Plugin version because the test will otherwise be
broken by MNG-6551. In version 3.0.0-M4 the output format has changed.
2020-04-13 16:46:50 +02:00
rfscholte ee290b5e36 Update maven-verifier to 1.7.1
Fix MavenITmng3810BadProfileActivationTest, target/profile.properties was never created
2020-04-07 19:27:14 +02:00
Michael Osipov fc175cc968 Some ITs test with SNAPSHOT versions 2020-04-04 00:39:13 +02:00
Michael Osipov e542897532 Remove overhauled comment 2020-04-03 23:53:05 +02:00
Michael Osipov e57c86ceb5 [MNG-6613] Mirror matching ignores closest/nearest definition
Replace faulty test which relies on outbound connections with a local,
non-existing repository.
2020-04-03 22:48:32 +02:00
Michael Osipov 1c160d444a Sort ITs in reverse numerical order 2020-04-03 18:00:31 +02:00
Hervé Boutemy fdac028100 [MNG-6562] fixed issues caused by new WARNING on default plugins 2020-02-06 07:40:02 +01:00
rfscholte 430152c1e5 Merge branch 'master' of https://gitbox.apache.org/repos/asf/maven-integration-testing 2020-01-29 21:16:09 +01:00