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

rfscholte pushed a commit to branch MSHARED-817
in repository https://gitbox.apache.org/repos/asf/maven-artifact-transfer.git

commit 3ad4fb0747f50f7d0321cc664e16305cb4a14a76
Author: Gabriel Belingueres <[email protected]>
AuthorDate: Sat Aug 17 20:21:44 2019 -0300

    Removed IT with app execution outside of Maven Classworld's context.
---
 src/it/artifact-transfer-no-classworlds/pom.xml    | 80 ----------------------
 .../artifact/transfer/noclassworlds/App.java       | 50 --------------
 .../artifact-transfer-no-classworlds/verify.groovy | 27 --------
 3 files changed, 157 deletions(-)

diff --git a/src/it/artifact-transfer-no-classworlds/pom.xml 
b/src/it/artifact-transfer-no-classworlds/pom.xml
deleted file mode 100644
index 70cf869..0000000
--- a/src/it/artifact-transfer-no-classworlds/pom.xml
+++ /dev/null
@@ -1,80 +0,0 @@
-<!--
-  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.
--->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0";
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
-  <modelVersion>4.0.0</modelVersion>
-
-  <groupId>org.apache.maven.shared</groupId>
-  <artifactId>artifact-transfer-no-classworlds</artifactId>
-  <version>1.0.0-SNAPSHOT</version>
-  <packaging>jar</packaging>
-
-  <name>artifact-transfer-no-classworlds</name>
-  <url>http://maven.apache.org</url>
-
-  <properties>
-    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-  </properties>
-
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.maven.shared</groupId>
-      <artifactId>maven-artifact-transfer</artifactId>
-      <version>@project.version@</version>
-    </dependency>
-    <dependency>
-        <groupId>org.slf4j</groupId>
-        <artifactId>slf4j-simple</artifactId>
-        <version>1.7.5</version>
-        <scope>runtime</scope>
-    </dependency>
-  </dependencies>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-shade-plugin</artifactId>
-        <version>3.2.1</version>
-        <executions>
-          <execution>
-            <phase>package</phase>
-            <goals>
-              <goal>shade</goal>
-            </goals>
-            <configuration>
-              <artifactSet>
-                <excludes>
-                  <exclude>org.codehaus.plexus:plexus-classworlds</exclude>
-                </excludes>
-              </artifactSet>
-              <transformers>
-                <transformer 
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
-                  
<mainClass>org.apache.maven.shared.artifact.transfer.noclassworlds.App</mainClass>
-                </transformer>
-              </transformers>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-</project>
diff --git 
a/src/it/artifact-transfer-no-classworlds/src/main/java/org/apache/maven/shared/artifact/transfer/noclassworlds/App.java
 
b/src/it/artifact-transfer-no-classworlds/src/main/java/org/apache/maven/shared/artifact/transfer/noclassworlds/App.java
deleted file mode 100644
index edbd6e3..0000000
--- 
a/src/it/artifact-transfer-no-classworlds/src/main/java/org/apache/maven/shared/artifact/transfer/noclassworlds/App.java
+++ /dev/null
@@ -1,50 +0,0 @@
-package org.apache.maven.shared.artifact.transfer.noclassworlds;
-
-/*
- * 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.
- */
-
-import org.apache.maven.shared.transfer.project.MavenAetherUtils;
-
-/**
- * Test that if there is no dependecy with Classworlds artifact, the import of 
the library will fallback to doing
- * nothing without runtime errors.
- *
- * @since 0.11.1
- */
-public class App
-{
-    private void test()
-    {
-        try
-        {
-            MavenAetherUtils.importAetherLibrary();
-            System.out.println( "OK" );
-        }
-        catch ( Exception e )
-        {
-            System.out.println( "ERROR" );
-        }
-    }
-
-    public static void main( String[] args )
-    {
-        App app = new App();
-        app.test();
-    }
-}
diff --git a/src/it/artifact-transfer-no-classworlds/verify.groovy 
b/src/it/artifact-transfer-no-classworlds/verify.groovy
deleted file mode 100644
index 2797fe0..0000000
--- a/src/it/artifact-transfer-no-classworlds/verify.groovy
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * 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.
- */
-
-String command = 'java -jar 
artifact-transfer-no-classworlds-1.0.0-SNAPSHOT.jar';
-File commandDir = new File( basedir, "target" );
-
-def output = command.execute(null, commandDir).text;
-
-assert output.contains( 'OK' );
-
-return true;
\ No newline at end of file

Reply via email to