summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Bentele2021-02-05 09:17:43 +0100
committerManuel Bentele2021-02-05 09:17:43 +0100
commit150b2366f88788b1415e6c43f33043ef4df908cb (patch)
tree7cd32e49bb3719332eb23287efc8e78f077a528b
parent[libvirt] Fix installation of package files (diff)
downloadmltk-150b2366f88788b1415e6c43f33043ef4df908cb.tar.gz
mltk-150b2366f88788b1415e6c43f33043ef4df908cb.tar.xz
mltk-150b2366f88788b1415e6c43f33043ef4df908cb.zip
[qemu] Add empty Maven project for 'qemu' runvirt plugin
-rw-r--r--core/modules/qemu/module.conf.debian4
-rw-r--r--core/modules/qemu/module.conf.ubuntu4
-rw-r--r--core/modules/qemu/runvirt-plugin-qemu/.gitignore3
-rw-r--r--core/modules/qemu/runvirt-plugin-qemu/pom.xml84
-rw-r--r--core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/App.java12
-rw-r--r--core/modules/qemu/runvirt-plugin-qemu/src/test/java/org/openslx/runvirt/plugin/qemu/AppTest.java20
6 files changed, 127 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<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.openslx.runvirt.plugin.qemu</groupId>
+ <artifactId>runvirt-plugin-qemu</artifactId>
+ <version>1.0-SNAPSHOT</version>
+
+ <name>runvirt-plugin-qemu</name>
+ <url>https://git.openslx.org/openslx-ng/mltk.git/</url>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <maven.compiler.source>1.8</maven.compiler.source>
+ <maven.compiler.target>1.8</maven.compiler.target>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-api</artifactId>
+ <version>5.7.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-engine</artifactId>
+ <version>5.7.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
+ <plugins>
+ <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
+ <plugin>
+ <artifactId>maven-clean-plugin</artifactId>
+ <version>3.1.0</version>
+ </plugin>
+ <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>3.0.2</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.8.0</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ <version>2.22.1</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>3.0.2</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-install-plugin</artifactId>
+ <version>2.5.2</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <version>2.8.2</version>
+ </plugin>
+ <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
+ <plugin>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>3.7.1</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <version>3.0.0</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+</project>
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 );
+ }
+}