You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2018/05/21 16:52:30 UTC

[maven-integration-testing] branch MNG-6364 updated (1327a7e -> b064089)

This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a change to branch MNG-6364
in repository https://gitbox.apache.org/repos/asf/maven-integration-testing.git.


 discard 1327a7e  Fixed IT's related to JDK 9  o Need to separate between JDK..8 and JDK 9 cause    the error output looks different for JDK 9.
 discard 5307189  [MNG-6364] - Make an activation also for JDK 9   o This will make this test pass for JDK 9.
     add eb2f30e  upgraded parent POM and updated site.xml
     add e13f75c  [MNG-6377] switch from Git-WIP to GitBox
     add 364c345  [MNG-6377] switch from Git-WIP to Gitbox
     add 63b8c54  [MNG-6386] ${project.baseUri} is not a valid URI (according to RFC 3986)
     new 27833a0  [MNG-6364] - Make an activation also for JDK 9   o This will make this test pass for JDK 9.
     new b064089  Fixed IT's related to JDK 9  o Need to separate between JDK..8 and JDK 9 cause    the error output looks different for JDK 9.

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (1327a7e)
            \
             N -- N -- N   refs/heads/MNG-6364 (b064089)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 README.md                                          |   2 +-
 core-it-suite/src/site/site.xml                    |   7 +-
 .../org/apache/maven/it/IntegrationTestSuite.java  |   1 +
 .../it/MavenITmng3760BaseUriPropertyTest.java      |   2 +-
 .../it/MavenITmng6386BaseUriPropertyTest.java      | 100 +++++++++++++++++++++
 .../pom.xml"                                       |   7 +-
 .../test/resources/{mng-3760 => mng-6386}/pom.xml  |   7 +-
 .../maven/it/AbstractMavenIntegrationTestCase.java |   6 +-
 environments/README.md                             |  27 ++++--
 pom.xml                                            |   8 +-
 src/site/site.xml                                  |  17 ++--
 11 files changed, 148 insertions(+), 36 deletions(-)
 create mode 100644 core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6386BaseUriPropertyTest.java
 copy core-it-suite/src/test/resources/mng-3760/pom.xml => "core-it-suite/src/test/resources/mng-6386-\321\215\321\202\320\276 \320\277\320\276-\321\200\321\203\321\201\321\201\320\272\320\270\320\271/pom.xml" (90%)
 copy core-it-suite/src/test/resources/{mng-3760 => mng-6386}/pom.xml (90%)

-- 
To stop receiving notification emails like this one, please contact
hboutemy@apache.org.

[maven-integration-testing] 01/02: [MNG-6364] - Make an activation also for JDK 9 o This will make this test pass for JDK 9.

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to branch MNG-6364
in repository https://gitbox.apache.org/repos/asf/maven-integration-testing.git

commit 27833a023985ac3e5b1887d46e8045d7c30b2b9a
Author: Karl Heinz Marbaise <kh...@apache.org>
AuthorDate: Sun Feb 18 16:13:47 2018 +0100

    [MNG-6364] - Make an activation also for JDK 9
      o This will make this test pass for JDK 9.
---
 core-it-suite/src/test/resources/mng-1957/pom.xml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/core-it-suite/src/test/resources/mng-1957/pom.xml b/core-it-suite/src/test/resources/mng-1957/pom.xml
index bf24ede..9651c47 100644
--- a/core-it-suite/src/test/resources/mng-1957/pom.xml
+++ b/core-it-suite/src/test/resources/mng-1957/pom.xml
@@ -166,5 +166,15 @@ under the License.
         <jdkProperty6>PASSED</jdkProperty6>
       </properties>
     </profile>
+    <profile>
+      <!-- This will work for JDK 9 -->
+      <id>test-6g</id>
+      <activation>
+        <jdk>[9,10)</jdk>
+      </activation>
+      <properties>
+        <jdkProperty6>PASSED</jdkProperty6>
+      </properties>
+    </profile>
   </profiles>
 </project>

-- 
To stop receiving notification emails like this one, please contact
hboutemy@apache.org.

[maven-integration-testing] 02/02: Fixed IT's related to JDK 9 o Need to separate between JDK..8 and JDK 9 cause the error output looks different for JDK 9.

Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to branch MNG-6364
in repository https://gitbox.apache.org/repos/asf/maven-integration-testing.git

commit b06408906d47dfb7723270036ee46347a02b54dd
Author: Karl Heinz Marbaise <kh...@apache.org>
AuthorDate: Sun Feb 18 20:10:46 2018 +0100

    Fixed IT's related to JDK 9
     o Need to separate between JDK..8 and JDK 9 cause
       the error output looks different for JDK 9.
---
 .../MavenITmng5958LifecyclePhaseBinaryCompat.java  | 28 ++++++++++++++++++----
 1 file changed, 24 insertions(+), 4 deletions(-)

diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5958LifecyclePhaseBinaryCompat.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5958LifecyclePhaseBinaryCompat.java
index 3ee3fe1..4891fe2 100644
--- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5958LifecyclePhaseBinaryCompat.java
+++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5958LifecyclePhaseBinaryCompat.java
@@ -17,19 +17,20 @@ public class MavenITmng5958LifecyclePhaseBinaryCompat
         throws Exception
     {
         File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-5958-lifecycle-phases/good" );
-        
+
         Verifier verifier = newVerifier( testDir.getAbsolutePath() );
         verifier.executeGoal( "validate" );
         verifier.verifyErrorFreeLog();
         verifier.verifyTextInLog( "CLASS_NAME=java.lang.String" );
         verifier.resetStreams();
     }
-    
-    public void testBad()
+
+    public void testBadTillJDK8()
         throws Exception
     {
+        requiresJavaVersion( "[,1.8]" );
         File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-5958-lifecycle-phases/bad" );
-        
+
         Verifier verifier = newVerifier( testDir.getAbsolutePath() );
         try
         {
@@ -42,4 +43,23 @@ public class MavenITmng5958LifecyclePhaseBinaryCompat
         }
         verifier.resetStreams();
     }
+
+    public void testBadJDK9()
+        throws Exception
+    {
+        requiresJavaVersion( "[9.0,)" );
+        File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-5958-lifecycle-phases/bad" );
+        
+        Verifier verifier = newVerifier( testDir.getAbsolutePath() );
+        try
+        {
+            verifier.executeGoal( "validate" );
+        }
+        catch ( VerificationException e )
+        {
+            verifier.verifyTextInLog( "[ERROR] Internal error: java.lang.ClassCastException: "
+                + "org.apache.maven.lifecycle.mapping.LifecyclePhase cannot be cast to java.base/java.lang.String -> [Help 1]" );
+        }
+        verifier.resetStreams();
+    }
 }

-- 
To stop receiving notification emails like this one, please contact
hboutemy@apache.org.