From 150b2366f88788b1415e6c43f33043ef4df908cb Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Fri, 5 Feb 2021 09:17:43 +0100 Subject: [qemu] Add empty Maven project for 'qemu' runvirt plugin --- core/modules/qemu/module.conf.debian | 4 ++ core/modules/qemu/module.conf.ubuntu | 4 ++ core/modules/qemu/runvirt-plugin-qemu/.gitignore | 3 + core/modules/qemu/runvirt-plugin-qemu/pom.xml | 84 ++++++++++++++++++++++ .../java/org/openslx/runvirt/plugin/qemu/App.java | 12 ++++ .../org/openslx/runvirt/plugin/qemu/AppTest.java | 20 ++++++ 6 files changed, 127 insertions(+) create mode 100644 core/modules/qemu/runvirt-plugin-qemu/.gitignore create mode 100644 core/modules/qemu/runvirt-plugin-qemu/pom.xml create mode 100644 core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/App.java create mode 100644 core/modules/qemu/runvirt-plugin-qemu/src/test/java/org/openslx/runvirt/plugin/qemu/AppTest.java diff --git a/core/modules/qemu/module.conf.debian b/core/modules/qemu/module.conf.debian index d4af965d..f4892d81 100644 --- a/core/modules/qemu/module.conf.debian +++ b/core/modules/qemu/module.conf.debian @@ -2,6 +2,9 @@ REQUIRED_INSTALLED_PACKAGES=" qemu qemu-kvm + mvn + openjdk-11-jdk-headless + openjdk-11-jre " REQUIRED_CONTENT_PACKAGES=" @@ -13,4 +16,5 @@ REQUIRED_CONTENT_PACKAGES=" qemu-utils seabios ovmf + openjdk-11-jre " diff --git a/core/modules/qemu/module.conf.ubuntu b/core/modules/qemu/module.conf.ubuntu index d4af965d..651d7a37 100644 --- a/core/modules/qemu/module.conf.ubuntu +++ b/core/modules/qemu/module.conf.ubuntu @@ -2,6 +2,9 @@ REQUIRED_INSTALLED_PACKAGES=" qemu qemu-kvm + mvn + openjdk-8-jdk-headless + openjdk-8-jre " REQUIRED_CONTENT_PACKAGES=" @@ -13,4 +16,5 @@ REQUIRED_CONTENT_PACKAGES=" qemu-utils seabios ovmf + openjdk-8-jre " diff --git a/core/modules/qemu/runvirt-plugin-qemu/.gitignore b/core/modules/qemu/runvirt-plugin-qemu/.gitignore new file mode 100644 index 00000000..49b2bfee --- /dev/null +++ b/core/modules/qemu/runvirt-plugin-qemu/.gitignore @@ -0,0 +1,3 @@ +/target/ +.classpath +.settings/ diff --git a/core/modules/qemu/runvirt-plugin-qemu/pom.xml b/core/modules/qemu/runvirt-plugin-qemu/pom.xml new file mode 100644 index 00000000..d4aace6e --- /dev/null +++ b/core/modules/qemu/runvirt-plugin-qemu/pom.xml @@ -0,0 +1,84 @@ + + + + 4.0.0 + + org.openslx.runvirt.plugin.qemu + runvirt-plugin-qemu + 1.0-SNAPSHOT + + runvirt-plugin-qemu + https://git.openslx.org/openslx-ng/mltk.git/ + + + UTF-8 + 1.8 + 1.8 + + + + + org.junit.jupiter + junit-jupiter-api + 5.7.1 + test + + + org.junit.jupiter + junit-jupiter-engine + 5.7.1 + test + + + + + + + + + maven-clean-plugin + 3.1.0 + + + + maven-resources-plugin + 3.0.2 + + + maven-compiler-plugin + 3.8.0 + + + maven-surefire-plugin + 2.22.1 + + + maven-failsafe-plugin + 2.22.1 + + + maven-jar-plugin + 3.0.2 + + + maven-install-plugin + 2.5.2 + + + maven-deploy-plugin + 2.8.2 + + + + maven-site-plugin + 3.7.1 + + + maven-project-info-reports-plugin + 3.0.0 + + + + + diff --git a/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/App.java b/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/App.java new file mode 100644 index 00000000..ce6e7e12 --- /dev/null +++ b/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/App.java @@ -0,0 +1,12 @@ +package org.openslx.runvirt.plugin.qemu; + +/** + * Hello world! + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} diff --git a/core/modules/qemu/runvirt-plugin-qemu/src/test/java/org/openslx/runvirt/plugin/qemu/AppTest.java b/core/modules/qemu/runvirt-plugin-qemu/src/test/java/org/openslx/runvirt/plugin/qemu/AppTest.java new file mode 100644 index 00000000..90b658cd --- /dev/null +++ b/core/modules/qemu/runvirt-plugin-qemu/src/test/java/org/openslx/runvirt/plugin/qemu/AppTest.java @@ -0,0 +1,20 @@ +package org.openslx.runvirt.plugin.qemu; + +import static org.junit.jupiter.api.Assertions.assertTrue; + +import org.junit.jupiter.api.Test; + +/** + * Unit test for simple App. + */ +public class AppTest +{ + /** + * Rigorous Test :-) + */ + @Test + public void shouldAnswerWithTrue() + { + assertTrue( true ); + } +} -- cgit v1.2.3-55-g7522