Commit Graph

89 Commits

Author SHA1 Message Date
Tamas Cservenak e74bde05c9
[MNG-8403] Maven ITs use maven-executor (#1940)
The goal of this PR is manifold, but major one is to be able to use in ITs new options introduced in Maven4. Currently the "embedded" mode supports only Maven3 options, as Maven4 got new CLI entry point (CLIng), while verifier uses old MavenCli entry point, that is also deprecated. Finally, a full cleanup of (black) magic happened as well, keep ITs simple and clean.

Changes:
* dropped from ITs classpath maven-shared-util
* dropped from ITs classpath maven-verifier, copied last master Verifier to maven-it-helper and modified
* enhancements to new maven-executor to make it fully replace maven-verifier
* ITs are now using new infra and are using new CLIng "entry point" as well (so far ITs used deprecated maven-embedder/MavenCLI class).

---

https://issues.apache.org/jira/browse/MNG-8403
2024-12-05 09:02:41 +01:00
Tamas Cservenak 88c6ff5e7e
IT: Consolidate ITs somewhat (#1924)
Align versions where possible, remove dead stuff.

Ant based Mojos were deprecated in Maven3 era, and
this is Maven4, so no need to test this. Is full
of ancient artifacts anyway.
2024-11-19 14:30:27 +01:00
dependabot[bot] a8057b0920
IT: Bump org.apache.maven.wagon:wagon-webdav-jackrabbit from 3.0.0 to 3.5.3 (#1923)
Bumps org.apache.maven.wagon:wagon-webdav-jackrabbit from 3.0.0 to 3.5.3.

---
updated-dependencies:
- dependency-name: org.apache.maven.wagon:wagon-webdav-jackrabbit
  dependency-type: direct:development
  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-11-19 11:51:29 +01:00
dependabot[bot] ce096fea3e
Bump org.sonatype.maven.plugin:emma4it-maven-plugin from 1.2 to 1.3 (#1918)
Bumps org.sonatype.maven.plugin:emma4it-maven-plugin from 1.2 to 1.3.

---
updated-dependencies:
- dependency-name: org.sonatype.maven.plugin:emma4it-maven-plugin
  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-11-18 09:54:18 +01:00
Guillaume Nodet 12b3dae3ce
Add CI cache (#1914)
* Add cache for all steps
* Pass through the maven.repo.loca.tail property
2024-11-17 15:50:32 +01:00
dependabot[bot] 49482c53fc
IT: Bump org.hamcrest:hamcrest from 2.2 to 3.0 (#1900)
Bumps [org.hamcrest:hamcrest](https://github.com/hamcrest/JavaHamcrest) from 2.2 to 3.0.
- [Release notes](https://github.com/hamcrest/JavaHamcrest/releases)
- [Changelog](https://github.com/hamcrest/JavaHamcrest/blob/master/CHANGES.md)
- [Commits](https://github.com/hamcrest/JavaHamcrest/compare/v2.2...v3.0)

---
updated-dependencies:
- dependency-name: org.hamcrest:hamcrest
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-12 20:35:01 +01:00
dependabot[bot] 0752547314
IT: Bump org.apache.maven.shared:maven-shared-utils from 0.9 to 3.4.2 (#1896)
Bumps [org.apache.maven.shared:maven-shared-utils](https://github.com/apache/maven-shared-utils) from 0.9 to 3.4.2.
- [Release notes](https://github.com/apache/maven-shared-utils/releases)
- [Commits](https://github.com/apache/maven-shared-utils/compare/maven-shared-utils-0.9...maven-shared-utils-3.4.2)

---
updated-dependencies:
- dependency-name: org.apache.maven.shared:maven-shared-utils
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-11 12:10:32 +01:00
Tamas Cservenak a836e898b0
IT: cleanup (#1886)
Yet another round

Changes:
* get rid of Guava (2 classes affected)
* align dependencies
* align plugins
2024-11-07 12:43:46 +01:00
dependabot[bot] 8f2ef8ebe1
Bump org.eclipse.jetty:jetty-server in /its/core-it-suite (#1872)
Bumps org.eclipse.jetty:jetty-server from 9.4.53.v20231009 to 9.4.55.v20240627.

---
updated-dependencies:
- dependency-name: org.eclipse.jetty:jetty-server
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-06 13:58:58 +01:00
Guillaume Nodet 75258afcc6 Integrate into maven's build 2024-11-05 16:56:49 +01:00
Tamas Cservenak 2e0d09ec7e Workaround just to test this 2024-10-03 17:46:10 +02:00
Tamas Cservenak 61cb0c796a Update Jetty to 9.4.53.v20231009 (#326)
As currently used one is plagued with CVEs etc.

As long as we are stuck on Java8, we cannot move forward
with Jetty, as Jetty 10.x (that is drop in replacement)
is Java 11.
2023-12-17 13:55:56 +01:00
Tamas Cservenak e85fb9029a [MNG-7228] Add IT that ensure nothing "leaks" into installed model (#273) 2023-06-24 10:51:01 +02:00
Guillaume Nodet 74c1775d05 Reformat ITs 2023-06-05 08:54:28 +02:00
Guillaume Nodet 386efc3d6c Reformat 2023-06-05 08:54:28 +02:00
Slawomir Jaranowski 21e39ea511 Detecting tests which was not added to TestSuiteOrdering
Even test is skipped by `@Disabled` annotation
newer surefire schedule it for execution.

When tests are missing in TestSuiteOrdering
are executed as one of first tests in unpredictable order.
2023-03-13 22:37:35 +01:00
Slawomir Jaranowski 497bede577 Replace deprecated systemProperties by systemPropertyVariables 2023-02-24 21:50:32 +01:00
Tamas Cservenak 1b31813b91 [MNG-7665] Update Jetty to latest Java8 capable version (#228)
Update Jetty to latest 9.4.50, last Java 8 capable version. Apply API changes and also remove jetty-servlet as ITs does NOT use servlet aspect of Jetty HTTP server.. This will simplify our lives in future, to make jump to later versions (that are Java 11+). Also, drop jetty-servlet as test do not use any servlet aspect.

---

https://issues.apache.org/jira/browse/MNG-7665
2023-01-12 11:20:33 +01:00
Guillaume Nodet 59f503bece Modernize IT plugins to use annotations (#184)
* Modernize IT plugins to use annotations

* Align some tests to maven 3.8.6

# Conflicts:
#	core-it-suite/src/test/resources-filtered/bootstrap.txt
#	core-it-suite/src/test/resources/mng-3221/report/pom.xml
#	core-it-suite/src/test/resources/mng-3428/pom.xml
#	core-it-suite/src/test/resources/mng-3530/build-path/plugin/pom.xml
#	core-it-suite/src/test/resources/mng-3530/pom-property/plugin/pom.xml
#	core-it-suite/src/test/resources/mng-3530/resource-object/plugin/pom.xml
#	core-it-suite/src/test/resources/mng-3704/maven-mng3704-plugin/pom.xml
#	core-it-suite/src/test/resources/mng-3743/plugins/maven-mng3743-check-plugin/pom.xml
#	core-it-suite/src/test/resources/mng-3743/plugins/maven-mng3743-report-plugin/pom.xml
#	core-it-suite/src/test/resources/mng-3743/project/pom.xml
#	core-it-suite/src/test/resources/mng-4086/repo/org/apache/maven/its/mng4086/maven-it-plugin-a/0.1/maven-it-plugin-a-0.1.pom
#	core-it-suite/src/test/resources/mng-4086/repo/org/apache/maven/its/mng4086/maven-it-plugin-a/0.2-SNAPSHOT/maven-it-plugin-a-0.2-20090315.124508-1.pom
#	core-it-suite/src/test/resources/mng-5581-lifecycle-mapping-delegate/extension/pom.xml
#	core-it-suite/src/test/resources/mng-7310-lifecycle-activated-in-specified-module/project/pom.xml

* Add dependencies on all support artifacts to ensure multithreaded builds can use correct ordering

* Add missing dependencies on plexus-utils

* Fix for mng-7335 test

* Fix ITs for maven 4

* Rename Component -> TestComponent to leave room for the annotation

* Upgrade a few plugin versions

* Upgrade some JDK requirements to 1.8

* Remove unwanted parentheseses

* Convert the last mojo to annotations

* Force timestamped build

* Fix ITs following Component -> TestComponent rename

* Remove commented block

* Remove versions infered from plugin management

* The implementation parameter is not supported anymore

* Align maven core version

* Fix bad merge
2023-01-11 13:35:56 +01:00
Guillaume Nodet 6e8ff2d151 Move ITs to JDK 8 / JUnit 5 (#176)
* Move ITs to JDK 8 / JUnit 5
* Add missing tests, move disabled test comments to the test itself
* Add unreferenced tests (Unreferenced tests are automatically added at the beginning, but it looks more coherent to add them anyway)
* Reset verifier to run fresh test in MNG-5581
* Remove useless lines
* Minimize changes in imports

Co-authored-by: Michael Osipov <michaelo@apache.org>
2022-09-30 22:23:04 +02:00
Michael Osipov 3e892f99ed [MNG-7020] Remove Maven 2 WagonExcluder backward compat code
* Disable unused tests
* Update Maven 2 plugins to Maven 3 to avoid conflicts with old Maven
  and Wagon 1

This closes #78
2022-07-24 10:51:52 +02:00
Guillaume Nodet 6b72f2f9a5 Upgrade to JDK8, use a plugin to download all dependencies to bypass conflict resolution (#178) 2022-07-01 20:54:18 +02:00
Olivier Lamy e47b17772b create a simple Jenkinsfile/gh actions to validate PR and branches without changes in core (#172)
* create a simple Jenkinsfile and GHA to validate PR and branches

Signed-off-by: Olivier Lamy <olamy@apache.org>
2022-06-17 10:50:33 +10:00
Hervé Boutemy 3cb3dbe2fa [MWRAPPER-14] remove wrapper-related ITs: not in core any more 2021-12-26 11:15:17 +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
rfscholte 0ac723e2a6 [5937] Maven-Wrapper for unified project environments 2020-05-22 22:33:01 +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
rfscholte bf7e8f5ec4 http to central not supported anymore, switch to https 2020-01-15 22:00:12 +01:00
Hervé Boutemy fdfc9c581e clarify Core ITs vs Core IT Support vs Core ITs Suite 2019-08-23 23:42:19 +02:00
tibordigana 7c87d046e2 [MNG-6731] Jetty getLocalPort() returns -1 resulting in build failures 2019-08-14 22:35:26 +02:00
rfscholte 010191c7b4 [INFRA-18812] Revert unnecessary commits after fixing root cause 2019-08-05 18:30:03 +02:00
tibordigana f576fefa0a [MNG-6725] Skip '.mavenrc' via MAVEN_SKIP_RC=1 and '-Dmaven.skip.rc=true' on child ITs (by default on Jenkins CI). 2019-07-30 11:48:44 +02:00
rfscholte 1e09c00cd8 [MNG-6330] Parents relativePath not verified anymore 2017-12-29 10:42:32 +01:00
Michael Osipov d9c9a8551d [MNG-6202] Cannot pass nonProxyHosts to ITs making remote tests lock up when proxy rejects to proxy internal hosts
Set default value 'localhost' of 'proxy.nonProxyHosts' and allow users to
override if necessary.
2017-04-01 23:11:05 +02:00
Hervé Boutemy 727cf7f339 upgraded parent pom to benefit from site staging configuration 2017-03-25 11:26:23 +01:00
Karl Heinz Marbaise cae83cea78 Upgrade maven-shared-utils from 0.6 to 0.9 2015-10-18 17:15:22 +02:00
Robert Scholte df7a76abd9 MaxPermSize removed since Java8, see http://bugs.java.com/bugdatabase/view_bug.do?bug_id=6964458 2015-09-19 17:46:24 +02:00
Jason van Zyl 030eb3cf6f MNG-5795: Verify that core extensions can be retrieved when a mirror is used that requires basic auth. 2015-04-02 00:20:19 -04:00
Igor Fedorenko 78c916b70e maven-dependency-plugin 2.10
Signed-off-by: Igor Fedorenko <ifedorenko@apache.org>
2015-02-26 11:38:30 -05:00
Robert Scholte 8ee8479080 Trying to fix MNG4625 on Jenkins
Update maven-shared-utils to 0.6
2014-07-05 15:26:29 +02:00
Igor Fedorenko a348e29b23 manage verifier version
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
2014-02-09 15:57:56 -05:00
Kristian Rosenvold aa9ac3093b Added parallel profile.
It works sometimes, but fails miserably other times.
2014-01-04 20:10:16 +01:00
Igor Fedorenko c83fbbb60d maven-verifier 1.5
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
2013-12-06 15:40:55 -05:00
Hervé Boutemy 29b3b054ad updated maven-verifier to released version 2012-12-29 20:57:22 +01:00
Jason van Zyl 7f8e038f68 - update to use m-s-u 0.1 and verifier 1.4-SNAPSHOT
trying to restore the embedded ITs and verifier trunk has already been updated so I just kept going



git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@1413294 13f79535-47bb-0310-9956-ffa450edef68
2012-11-25 05:35:50 +00:00
Jason van Zyl ae2cce2fce Changing version of SLF4J back to 1.6.1 to see if that makes the ITs happy again
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@1407921 13f79535-47bb-0310-9956-ffa450edef68
2012-11-11 05:34:57 +00:00
Jason van Zyl acb025276c Adding SLF4J Simple as a test dependency so that ITs that depend on a particular logging output match as the output has always been
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@1407911 13f79535-47bb-0310-9956-ffa450edef68
2012-11-11 04:36:28 +00:00
Benjamin Bentmann 808a5b04ad o Increased perm gen mem for embedded tests
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@1180683 13f79535-47bb-0310-9956-ffa450edef68
2011-10-09 18:37:01 +00:00
Benjamin Bentmann 89523769f5 o Added profile to point ITs at already downloaded but unpacked Maven distro
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@1180647 13f79535-47bb-0310-9956-ffa450edef68
2011-10-09 16:50:22 +00:00