Create Kafka 0.11.0.1 docker image 49/62249/1
authorsunil unnava <su622b@att.com>
Fri, 24 Aug 2018 04:39:15 +0000 (00:39 -0400)
committersunil unnava <su622b@att.com>
Fri, 24 Aug 2018 04:39:30 +0000 (00:39 -0400)
Issue-ID: DMAAP-268
Change-Id: I9e9f7778cc3acbff8f30172f87f594969c8ddde3
Signed-off-by: sunil unnava <su622b@att.com>
src/main/docker/download-kafka.sh
src/main/resources/META-INF/maven/archetype.xml [deleted file]
src/main/resources/archetype-resources/pom.xml [deleted file]
src/main/resources/archetype-resources/src/main/java/App.java [deleted file]
src/main/resources/archetype-resources/src/test/java/AppTest.java [deleted file]

index 2ddc911..fcc3be1 100644 (file)
@@ -1,5 +1,3 @@
 #!/bin/sh
 
-mirror=$(curl --stderr /dev/null https://www.apache.org/dyn/closer.cgi\?as_json\=1 | jq -r '.preferred')
-url="${mirror}kafka/${KAFKA_VERSION}/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz"
-wget -q "${url}" -O "/tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz"
+wget https://archive.apache.org/dist/kafka/${KAFKA_VERSION}/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz -O "/tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz"
\ No newline at end of file
diff --git a/src/main/resources/META-INF/maven/archetype.xml b/src/main/resources/META-INF/maven/archetype.xml
deleted file mode 100644 (file)
index 6f2a4ef..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<archetype>
-  <id>kafka0111</id>
-  <sources>
-    <source>src/main/java/App.java</source>
-  </sources>
-  <testSources>
-    <source>src/test/java/AppTest.java</source>
-  </testSources>
-</archetype>
diff --git a/src/main/resources/archetype-resources/pom.xml b/src/main/resources/archetype-resources/pom.xml
deleted file mode 100644 (file)
index 96f6e1c..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-<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/maven-v4_0_0.xsd">
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>$org.onap.dmaap.kafka</groupId>
-  <artifactId>$kafka0111</artifactId>
-  <version>$0.0.1-SNAPSHOT</version>
-  <dependencies>
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <version>3.8.1</version>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
-</project>
diff --git a/src/main/resources/archetype-resources/src/main/java/App.java b/src/main/resources/archetype-resources/src/main/java/App.java
deleted file mode 100644 (file)
index 55262cd..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-package $org.onap.dmaap.kafka.kafka0111;
-
-/**
- * Hello world!
- *
- */
-public class App 
-{
-    public static void main( String[] args )
-    {
-        System.out.println( "Hello World!" );
-    }
-}
diff --git a/src/main/resources/archetype-resources/src/test/java/AppTest.java b/src/main/resources/archetype-resources/src/test/java/AppTest.java
deleted file mode 100644 (file)
index 2a113cf..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-package $org.onap.dmaap.kafka.kafka0111;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-/**
- * Unit test for simple App.
- */
-public class AppTest 
-    extends TestCase
-{
-    /**
-     * Create the test case
-     *
-     * @param testName name of the test case
-     */
-    public AppTest( String testName )
-    {
-        super( testName );
-    }
-
-    /**
-     * @return the suite of tests being tested
-     */
-    public static Test suite()
-    {
-        return new TestSuite( AppTest.class );
-    }
-
-    /**
-     * Rigourous Test :-)
-     */
-    public void testApp()
-    {
-        assertTrue( true );
-    }
-}