Commit Graph

2520 Commits

Author SHA1 Message Date
Stephen Connolly 138b3790a3 Add some exotic test environments 2017-04-03 11:59:34 +01:00
Hervé Boutemy 07a70f03c5 [MNG-6198] improved IT to check module case 2017-04-03 00:22:27 +02: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
Michael Osipov cf53410e0c [MNG-6200] Some ITs fail if proxy is configured 2017-04-01 18:00:18 +02:00
Michael Osipov 8abf336178 [MNG-6200] Some ITs fails if proxy is configured 2017-03-31 13:21:19 +02:00
Hervé Boutemy 727cf7f339 upgraded parent pom to benefit from site staging configuration 2017-03-25 11:26:23 +01:00
Hervé Boutemy 762669982b [MNG-5958] Lifecycle.setPhases bin compat restored in 3.5.0-alpha-1 2017-03-25 07:24:47 +01:00
Hervé Boutemy e61e7ca427 force forked mode when hacking for JVM CLI issue 2017-03-25 06:03:07 +01:00
Hervé Boutemy eb10d33d53 [MNG-6189] added IT for maven-site-plugin reportPlugins use warning 2017-03-19 21:52:43 +01:00
Karl Heinz Marbaise 166623a076 [MNG-6057], [MNG-6090], [MNG-5895]
o Added IT's for MNG-5895, MNG-6057, MNG-6090
 o Added flatten-maven-plugin for usage during
   the IT's.
2017-03-13 22:06:57 +01:00
Christoph Böhme 8fac689e58 [MNG-6173] Test getProjects() and getProjectDependencyGraph()
Adds a test for checking that MavenSession.getProjects() contains the
projects being built and that MavenSession.getProjectDependencyGraph()
is set.

The fix for MNG-6173 changed the way these to properties are
initialised. This integration test verifies that the initialisation is
still correct.
2017-03-06 17:37:30 +01:00
Christoph Böhme 00db7bb9ed [MNG-6173] getAllProjects() should return all projects
Adds a test for checking that MavenSession.getAllProjects() returns the full
list of projects in the reactor even when only some of them are selected
for being built.

This closes #19
2017-03-06 17:37:21 +01:00
Stephen Connolly bb739f24d4 3.5.0-alpha-1 < 3.5.0 2017-02-24 19:48:31 +00:00
Hervé Boutemy db4aca5b05 [MNG-5889] .mvn directory should be picked when using --file 2017-02-14 08:03:45 +01:00
Christian Schulte aa4e06da1f [MNG-2199] Support version ranges in parent elements
o Updated the ITs to correctly detect parent resolution failures. Maven does
  not fail the build when it cannot resolve a parent but instead logs a
  warning message. The ITs never checked the log to contain the warning messages
  but instead asserted the build to fail when a parent cannot be resolved.
  The only Maven version supporting parent version ranges is Maven 3.2.2 due to
  this.
o Removed an incorrect test case for local parent resolution. Maven ignored
  the '<version>' in '<parent>' elements for local parent resolution. The core
  has been updated across various versions to eliminate any differences between
  local and remote parent resolution. When local parent resolution had been
  updated to match remote parent resolution, an existing IT started to fail
  testing incorrect behaviour. As soon as the '<parent>' is referenced using a
  version range, the '<version>' element in the project becomes mandatory and
  does no longer support using an expression any more. This has been that way
  for remote parent resolution from day one. It has never been supported to
  inherit a version from a parent when referencing that parent using a version
  range intentionally.
o Updated to account for updated error messages.
2017-02-10 18:46:55 +01:00
Michael Osipov 812069740e Fix incomplete class renaming 2017-02-04 13:14:48 +01:00
Michael Osipov 24da604311 [MNG-6146] Several small stylistic and spelling improvements to code and documentation
Use the proper term for char U+002D (-) hyphen(-minus) instead of dash
2017-02-02 10:46:32 +01:00
Stephen Connolly 2190e3181f Provide a mechanism whereby tests can indicate versions of Maven expected to fail
- This will let us fix broken tests while confirming that the versions of Maven that were released using the broken test contain the bug that escaped the broken test
2017-02-01 22:30:25 +00:00
Karl Heinz Marbaise e54646c7d6 Fixed license header in run-its.bat file. 2017-01-29 21:43:27 +01:00
Karl Heinz Marbaise 393f614650 Fixed RAT issue about missing license in run-its.bat file. 2017-01-29 21:36:13 +01:00
Anton Tanasenko 89afd751a0 [MNG-5958] restore binary compatibility of Lifecycle.setPhases
Modify tests for MNG-5805

This closes #13 #18
2017-01-26 20:24:02 +01:00
Hervé Boutemy 46278d17b2 added license link 2017-01-24 23:41:59 +01:00
Stephen Connolly fd95c004a8 [MNG-6155] The mirror's id is used when comparing the origin so use the same id as when resolving the extension 2017-01-13 13:27:41 +00:00
Stephen Connolly ae3e547587 [MNG-3599] The upgrade of Wagon to 2.10 breaks the test using older versions of wagon
- Need to use `--legacy-local-repository` on newer maven versions
(noting workaround as MNG-6155)
2017-01-11 20:10:26 +00:00
Stephen Connolly ac3b760f78 [MNG-6151] Reset to integration test state as of 3.3.9 release of core 2017-01-04 09:20:35 +00:00
Stephen Connolly cbbbe584f8 [MNG-5840] Argh! tests added but not added to suite 2015-11-02 12:04:08 +00:00
Karl Heinz Marbaise 8da228f290 Downgrade maven-compiler-plugin int MNG-5898 2015-10-25 14:12:03 +01:00
Karl Heinz Marbaise 373aa153a2 Going back to maven-compiler-plugin 2.0.2 in bootstrap,
cause maven-compiler-plugin 3.1 is already defined in group-6
2015-10-25 11:10:01 +01:00
Karl Heinz Marbaise 344ea0f8aa Downgrade maven-jar-plugin in boostrap
MNG-5898 using the same version.
2015-10-24 23:57:59 +02:00
Karl Heinz Marbaise b99c105e27 Pinned maven-compiler-plugin (3.1)
and added maven-ejb-plugin to bootstrap.
Added the required plugins to the MNG-5898
to use the same versions.
2015-10-24 23:04:09 +02:00
Karl Heinz Marbaise 36820dcad1 Removed duplicate definition of
mng-5805-pkg-type-mojo-configuration-plugin in bootstrap/group-3/pom.xml
2015-10-24 21:14:03 +02:00
Karl Heinz Marbaise c9c095cbfa Make resultion to artifacts and plugins
more reliable during integration tests
2015-10-24 20:10:25 +02:00
Karl Heinz Marbaise cf37b87b42 Added missing plugin version. 2015-10-21 22:34:31 +02:00
Karl Heinz Marbaise d3682bbdeb [MNG-5898] Multi-module build with ear fails to resolve war in 3.3.3
Added maven-ear-plugin and maven-war-plugin to bootstrap.
2015-10-21 01:10:13 +02:00
Karl Heinz Marbaise add953b287 [MNG-5898] Multi-module build with ear fails to resolve war in 3.3.3
Added MavenITmng5898BuildMultimoduleWithEARFailsToResolveWARTest
2015-10-21 00:09:11 +02: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 6c66d92737 Use properties for source/target, so we can adjust it based on JDK (e.g. JDK9 support 1.6 and above, so not 1.5) 2015-09-23 17:52:19 +02:00
Robert Scholte d6f5e952eb Add jdk9 as profile activation 2015-09-19 23:04:35 +02:00
Robert Scholte c07cf19229 Expand test with java7 diamonds 2015-09-19 22:16:17 +02:00
Robert Scholte e2cc95e53a Auto set source+target to 1.6 when testing with JDK9 2015-09-19 20:50:08 +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
Stephen Connolly 7ab01081d9 [MNG-5840] Add tests for when the parent version is a range.
Maven 3.3.0 through 3.3.3 are expected to have the following tests fail:

```
mng5840ParentVersionRanges(ParentRangeRelativePathPointsToWrongVersion)
mng5840ParentVersionRanges(ParentRangeRelativePathPointsToCorrectVersion)
mng5840RelativePathReactorMatching(RelativePathPointsToWrongVersion)
```

Maven 3.3.4 through 3.3.5 are expected to have the following tests fail:

```
mng5840ParentVersionRanges(ParentRangeRelativePathPointsToWrongVersion)
mng5840ParentVersionRanges(ParentRangeRelativePathPointsToCorrectVersion)
```

As of 25f5143169 in the Maven core repo the following
test results are expected and observed:

```
mng2199ParentVersionRange(ValidParentVersionRangeWithInclusiveUpperBound)OK (3.3 s)
mng2199ParentVersionRange(ValidParentVersionRangeWithExclusiveUpperBound)OK (1.7 s)
mng2199ParentVersionRange(InvalidParentVersionRange)........OK (0.7 s)
mng2199ParentVersionRange(ValidParentVersionRangeInvalidVersionExpression)OK (0.4 s)
mng2199ParentVersionRange(ValidParentVersionRangeInvalidVersionInheritance)OK (0.5 s)
mng2199ParentVersionRange(ValidLocalParentVersionRange).....OK (0.4 s)
mng5840ParentVersionRanges(ParentRangeRelativePathPointsToWrongVersion)FAILURE (0.4 s)
mng5840ParentVersionRanges(ParentRangeRelativePathPointsToCorrectVersion)OK (0.4 s)
mng5840RelativePathReactorMatching(RelativePathPointsToWrongVersion)OK (0.4 s)
```

With the one failure: mng5840ParentVersionRanges(ParentRangeRelativePathPointsToWrongVersion) expected
as the rumoured [validation in the workspace resolver](25f5143169/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java (L938)) does not actually exist.
2015-07-22 09:26:40 +01:00
Igor Fedorenko 0d2b1d1b5c MNG-2199 local parent pom matches parent version range
Signed-off-by: Igor Fedorenko <ifedorenko@apache.org>
2015-07-21 19:52:44 -04:00
Karl Heinz Marbaise 597c57d6db Fixed another codehaus JIRA link to correct new location at Apache JIRA 2015-07-19 09:57:17 +02:00
Karl Heinz Marbaise 65e8cfcae4 Changed all codehaus JIRA links to new location at Apache JIRA. 2015-07-06 23:43:58 +02:00
Karl Heinz Marbaise 5484eeb59f Upgrade to maven-verifier version 1.6 instead of
1.6-SNAPSHOT cause maven-verifier has been released
in the meantime.
2015-07-06 21:06:25 +02:00
Stephen Connolly 26e16b613d [MNG-5840] Adding a test case to ensure regression does not repeat
- Confirmed that this test case passes on 3.0.4, 3.2.5 and current 3.3.4-SNAPSHOT after fix merged while failing on 3.3.3
2015-06-24 14:44:08 +01:00
Kristian Rosenvold e8de3ad0a1 Moved test extension and support code to the proper place. Hopefully this will make
test more reliable
2015-06-23 19:14:10 +02:00
Kristian Rosenvold f105120a26 Fix IT, take 5 2015-06-21 21:54:36 +02:00
Kristian Rosenvold a07afe0135 Added more plugins 2015-06-21 18:34:59 +02:00