diff --git a/console/pom.xml b/console/pom.xml
index a8be3f2..71420be 100644
--- a/console/pom.xml
+++ b/console/pom.xml
@@ -14,8 +14,4 @@
${display.name} Console
jar
-
- ${jar.finalName}
-
-
\ No newline at end of file
diff --git a/fsm/pom.xml b/fsm/pom.xml
index 8a26652..9abb59a 100644
--- a/fsm/pom.xml
+++ b/fsm/pom.xml
@@ -65,6 +65,20 @@
true
+
+ org.apache.maven.plugins
+ maven-failsafe-plugin
+ 2.19.1
+
+
+
+ integration-test
+ verify
+
+
+
+
+
maven-assembly-plugin
2.6
diff --git a/fsm/src/assembly/fsm.xml b/fsm/src/assembly/fsm.xml
index 2df45db..cc21ec6 100644
--- a/fsm/src/assembly/fsm.xml
+++ b/fsm/src/assembly/fsm.xml
@@ -26,9 +26,6 @@
${project.groupId}:toolbar
true
-
- ${project.groupId}-${project.artifactId}-${project.version}
-
diff --git a/fsm/src/main/resources/module.xml b/fsm/src/main/resources/module.xml
index becf15e..06b81aa 100644
--- a/fsm/src/main/resources/module.xml
+++ b/fsm/src/main/resources/module.xml
@@ -13,7 +13,7 @@
- lib/${project.groupId}-console-${project.version}.jar
- lib/${project.groupId}-toolbar-${project.version}.jar
+ lib/console-${project.version}.jar
+ lib/toolbar-${project.version}.jar
diff --git a/fsm/src/test/java/de/marza/firstspirit/modules/logging/fsm/FsmIT.java b/fsm/src/test/java/de/marza/firstspirit/modules/logging/fsm/FsmIT.java
new file mode 100644
index 0000000..b96b4f0
--- /dev/null
+++ b/fsm/src/test/java/de/marza/firstspirit/modules/logging/fsm/FsmIT.java
@@ -0,0 +1,64 @@
+package de.marza.firstspirit.modules.logging.fsm;
+
+import org.apache.commons.io.FileUtils;
+import org.apache.commons.io.filefilter.WildcardFileFilter;
+import org.junit.BeforeClass;
+import org.junit.Rule;
+import org.junit.Test;
+import org.junit.rules.ErrorCollector;
+
+import java.io.File;
+import java.io.InputStream;
+import java.util.Collection;
+import java.util.Properties;
+import java.util.zip.ZipEntry;
+import java.util.zip.ZipFile;
+
+import static org.hamcrest.Matchers.is;
+import static org.hamcrest.Matchers.notNullValue;
+import static org.junit.Assert.assertTrue;
+
+
+public class FsmIT {
+
+ private static final String MODULE_DESCRIPTOR = "META-INF/module.xml";
+ private static Properties pomProperties;
+
+ @Rule
+ public ErrorCollector errors = new ErrorCollector();
+
+ @BeforeClass
+ public static void setUpBefore() throws Exception {
+ pomProperties = new Properties();
+ final ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
+ final InputStream inputStream = systemClassLoader.getResourceAsStream("moduleTest.properties");
+ pomProperties.load(inputStream);
+ }
+
+ /**
+ * Check if FSM is valid
+ */
+ @Test
+ public void testisFSMValid() throws Exception {
+ final File directory = new File("target");
+ final Collection files = FileUtils.listFiles(directory, new WildcardFileFilter("*.fsm"), null);
+ assertTrue("FSM doesn't contain any files", files.iterator().hasNext());
+ if (files.iterator().hasNext()) {
+ final ZipFile _fsmZip = new ZipFile(files.iterator().next());
+ final ZipEntry license = _fsmZip.getEntry("LICENSE");
+ errors.checkThat("Couldn't find module descriptor (module.xml) in fsm file", license,
+ is(notNullValue()));
+ final ZipEntry moduleXML = _fsmZip.getEntry(MODULE_DESCRIPTOR);
+ errors.checkThat("Couldn't find module descriptor (module.xml) in fsm file", moduleXML,
+ is(notNullValue()));
+ final ZipEntry consoleLib = _fsmZip.getEntry("lib/console-"
+ + pomProperties.getProperty("version") + ".jar");
+ errors.checkThat("Couldn't find lib in fsm file", consoleLib, is(notNullValue()));
+ final ZipEntry toolbarLib = _fsmZip.getEntry("lib/toolbar-"
+ + pomProperties.getProperty("version") + ".jar");
+ errors.checkThat("Couldn't find lib in fsm file", toolbarLib, is(notNullValue()));
+ }
+
+ }
+
+}
diff --git a/pom.xml b/pom.xml
index 3dc7e21..1b0473a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -51,9 +51,8 @@
UTF-8
UTF-8
1.8
- 1.0.8
+ 1.0.9
The Second-Hand Log
- ${project.groupId}-${project.artifactId}-${project.version}
A tiny extension for the FirstSpirit CMS for displaying a log console
Marian Zaplatynski
diff --git a/toolbar/pom.xml b/toolbar/pom.xml
index bda4abe..5559b97 100644
--- a/toolbar/pom.xml
+++ b/toolbar/pom.xml
@@ -30,12 +30,7 @@
-
-
- ${jar.finalName}
-
-
-
+
FirstSpiritVersion