From 0f5925e907ab8f37eefc29a1843f4beb6ba9f4a8 Mon Sep 17 00:00:00 2001 From: Maros Marsalek Date: Thu, 11 Aug 2016 13:03:40 +0200 Subject: HONEYCOMB-21 Common parents for minimal distributions Change-Id: Iaa2e3f80289444d1a965eaaebfdb4a77d1bea301 Signed-off-by: Maros Marsalek --- common/minimal-assembly-descriptor/pom.xml | 24 +++ .../resources/assemblies/honeycomb-minimal.xml | 45 +++++ common/minimal-distro-parent/pom.xml | 195 +++++++++++++++++++++ common/pom.xml | 3 + 4 files changed, 267 insertions(+) create mode 100644 common/minimal-assembly-descriptor/pom.xml create mode 100644 common/minimal-assembly-descriptor/src/main/resources/assemblies/honeycomb-minimal.xml create mode 100644 common/minimal-distro-parent/pom.xml diff --git a/common/minimal-assembly-descriptor/pom.xml b/common/minimal-assembly-descriptor/pom.xml new file mode 100644 index 000000000..ff00fbb40 --- /dev/null +++ b/common/minimal-assembly-descriptor/pom.xml @@ -0,0 +1,24 @@ + + + + + io.fd.honeycomb.common + minimal-assembly-descriptor + 1.0.0-SNAPSHOT + ${project.artifactId} + 4.0.0 + + diff --git a/common/minimal-assembly-descriptor/src/main/resources/assemblies/honeycomb-minimal.xml b/common/minimal-assembly-descriptor/src/main/resources/assemblies/honeycomb-minimal.xml new file mode 100644 index 000000000..03f403b21 --- /dev/null +++ b/common/minimal-assembly-descriptor/src/main/resources/assemblies/honeycomb-minimal.xml @@ -0,0 +1,45 @@ + + + + hc + + tar.gz + zip + + + + ${project.build.directory} + + + ${project.artifactId}-${project.version}.jar + + + + ${project.build.directory}/lib + lib + + *.jar + + + + ${project.build.outputDirectory}/honeycomb-minimal-resources + + + + \ No newline at end of file diff --git a/common/minimal-distro-parent/pom.xml b/common/minimal-distro-parent/pom.xml new file mode 100644 index 000000000..0994b667a --- /dev/null +++ b/common/minimal-distro-parent/pom.xml @@ -0,0 +1,195 @@ + + + + + + http://nexus.fd.io/content + + -Xms128m -Xmx256m + + 4.1.0 + 1.2.0 + 1.3.2-Beryllium-SR2 + 1.0.2-Beryllium-SR2 + 1.19.1 + 9.3.11.v20160721 + 3.1.0 + 2.4.7 + 0.8.2-Beryllium-SR2 + 1.3.2-Beryllium-SR2 + + 5.0.0 + + + 4.0.0 + io.fd.honeycomb.common + minimal-distribution-parent + 1.0.0-SNAPSHOT + pom + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.3 + + + javac-with-errorprone + true + true + 1.8 + 1.8 + + + + org.codehaus.plexus + plexus-compiler-javac-errorprone + 2.5 + + + + com.google.errorprone + error_prone_core + 2.0.9 + + + + + org.apache.maven.plugins + maven-jar-plugin + 2.6 + + + + ${main.class} + true + lib/ + + + config/ + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.10 + + + copy-dependencies + package + + copy-dependencies + + + ${project.build.directory}/lib + + + + unpack-configuration + prepare-package + + unpack-dependencies + + + **/honeycomb-minimal-resources/ + ${project.build.outputDirectory}/ + + + + + + + + org.codehaus.gmaven + groovy-maven-plugin + 2.0 + + + package + + execute + + + + import java.nio.file.Paths + + log.info "Generating shell exec script" + def args = properties.getOrDefault("exec.parameters", "") + log.debug "Additional shell exec script properties: ${args}" + def scriptContent = "java ${args} -jar ${project.artifactId}-${project.version}.jar" + log.info "Generating shell exec script as ${scriptContent}" + def scriptParent = Paths.get(project.build.outputDirectory, "honeycomb-minimal-resources") + scriptParent.toFile().mkdirs() + def scriptPath = Paths.get(scriptParent.toString(), "honeycomb.sh") + log.info "Writing shell exec script to ${scriptPath}" + scriptPath.toFile().text = scriptContent + + + + + + + + + maven-assembly-plugin + 2.5.3 + + + io.fd.honeycomb.common + minimal-assembly-descriptor + 1.0.0-SNAPSHOT + + + + + create-archive + package + + single + + + + honeycomb-minimal + + + + + + + + + + + + fdio-release + ${nexusproxy}/repositories/fd.io.release/ + + + fdio-snapshot + ${nexusproxy}/repositories/fd.io.snapshot/ + + + diff --git a/common/pom.xml b/common/pom.xml index 0ac3a74d0..64f85af11 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -30,6 +30,9 @@ features-parent impl-parent karaf-parent + minimal-assembly-descriptor + minimal-distro-parent + -- cgit 1.2.3-korg