Adds Maven POM and configuration files
Signed-off-by: Patrick Pschorn <patrick.pschorn@iese.fraunhofer.de>
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..6b468b6
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*.class
diff --git a/sdks/java/basys.sdk/.classpath b/sdks/java/basys.sdk/.classpath
index 58616f3..688d6d6 100644
--- a/sdks/java/basys.sdk/.classpath
+++ b/sdks/java/basys.sdk/.classpath
@@ -1,12 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
- <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" output="target/classes" path="src">
+ <attributes>
+ <attribute name="optional" value="true"/>
+ <attribute name="maven.pomderived" value="true"/>
+ </attributes>
+ </classpathentry>
<classpathentry kind="src" path="regression"/>
- <classpathentry kind="src" path="extern"/>
+ <classpathentry excluding="**" kind="src" output="target/classes" path="extern">
+ <attributes>
+ <attribute name="maven.pomderived" value="true"/>
+ </attributes>
+ </classpathentry>
<classpathentry kind="src" path="backends"/>
- <classpathentry kind="src" path="compliance"/>
- <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
- <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
+ <classpathentry excluding="**" kind="src" output="target/classes" path="compliance">
+ <attributes>
+ <attribute name="maven.pomderived" value="true"/>
+ </attributes>
+ </classpathentry>
<classpathentry kind="lib" path="libraries/jersey/javax.ws.rs-api-2.1.jar">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
@@ -170,8 +181,14 @@
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/5"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
- <attribute name="owner.project.facets" value="java"/>
+ <attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
- <classpathentry kind="output" path="build/classes"/>
+ <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
+ <attributes>
+ <attribute name="maven.pomderived" value="true"/>
+ <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="output" path="target/classes"/>
</classpath>
diff --git a/sdks/java/basys.sdk/.gitignore b/sdks/java/basys.sdk/.gitignore
new file mode 100644
index 0000000..b83d222
--- /dev/null
+++ b/sdks/java/basys.sdk/.gitignore
@@ -0,0 +1 @@
+/target/
diff --git a/sdks/java/basys.sdk/.project b/sdks/java/basys.sdk/.project
index 6450223..87deadc 100644
--- a/sdks/java/basys.sdk/.project
+++ b/sdks/java/basys.sdk/.project
@@ -20,8 +20,14 @@
<arguments>
</arguments>
</buildCommand>
+ <buildCommand>
+ <name>org.eclipse.m2e.core.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
</buildSpec>
<natures>
+ <nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
diff --git a/sdks/java/basys.sdk/.settings/org.eclipse.jdt.core.prefs b/sdks/java/basys.sdk/.settings/org.eclipse.jdt.core.prefs
index 295926d..1ab2bb5 100644
--- a/sdks/java/basys.sdk/.settings/org.eclipse.jdt.core.prefs
+++ b/sdks/java/basys.sdk/.settings/org.eclipse.jdt.core.prefs
@@ -4,4 +4,5 @@
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.8
diff --git a/sdks/java/basys.sdk/.settings/org.eclipse.m2e.core.prefs b/sdks/java/basys.sdk/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 0000000..14b697b
--- /dev/null
+++ b/sdks/java/basys.sdk/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/sdks/java/basys.sdk/.settings/org.eclipse.wst.common.component b/sdks/java/basys.sdk/.settings/org.eclipse.wst.common.component
index 0fc3c92..9df1f52 100644
--- a/sdks/java/basys.sdk/.settings/org.eclipse.wst.common.component
+++ b/sdks/java/basys.sdk/.settings/org.eclipse.wst.common.component
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
- <wb-module deploy-name="basys.sdk">
+ <wb-module deploy-name="basys.sdk-0.0.1-SNAPSHOT">
+ <wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
<wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/regression"/>
diff --git a/sdks/java/basys.sdk/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml b/sdks/java/basys.sdk/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml
new file mode 100644
index 0000000..b01fdb7
--- /dev/null
+++ b/sdks/java/basys.sdk/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml
@@ -0,0 +1,7 @@
+<root>
+ <facet id="jst.jaxrs">
+ <node name="libprov">
+ <attribute name="provider-id" value="jaxrs-no-op-library-provider"/>
+ </node>
+ </facet>
+</root>
diff --git a/sdks/java/basys.sdk/.settings/org.eclipse.wst.common.project.facet.core.xml b/sdks/java/basys.sdk/.settings/org.eclipse.wst.common.project.facet.core.xml
index 6b92200..c77818e 100644
--- a/sdks/java/basys.sdk/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ b/sdks/java/basys.sdk/.settings/org.eclipse.wst.common.project.facet.core.xml
@@ -6,4 +6,5 @@
<installed facet="java" version="1.8"/>
<installed facet="jst.web" version="3.1"/>
<installed facet="wst.jsdt.web" version="1.0"/>
+ <installed facet="jst.jaxrs" version="2.0"/>
</faceted-project>
diff --git a/sdks/java/basys.sdk/.settings/org.eclipse.wst.validation.prefs b/sdks/java/basys.sdk/.settings/org.eclipse.wst.validation.prefs
new file mode 100644
index 0000000..6f1cba6
--- /dev/null
+++ b/sdks/java/basys.sdk/.settings/org.eclipse.wst.validation.prefs
@@ -0,0 +1,2 @@
+disabled=06target
+eclipse.preferences.version=1
diff --git a/sdks/java/basys.sdk/build/classes/.gitignore b/sdks/java/basys.sdk/build/classes/.gitignore
deleted file mode 100644
index cf1db2e..0000000
--- a/sdks/java/basys.sdk/build/classes/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/org/
diff --git a/sdks/java/basys.sdk/pom.xml b/sdks/java/basys.sdk/pom.xml
new file mode 100644
index 0000000..9a0671e
--- /dev/null
+++ b/sdks/java/basys.sdk/pom.xml
@@ -0,0 +1,133 @@
+<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>basys.sdk</groupId>
+ <artifactId>basys.sdk</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>war</packaging>
+ <name>BaSyx SDK</name>
+
+ <build>
+ <sourceDirectory></sourceDirectory>
+ <resources>
+ <resource>
+ <directory>regression/org/eclipse/basyx/testsuite/support</directory>
+ <excludes>
+ <exclude>**/*.java</exclude>
+ </excludes>
+ </resource>
+ <resource>
+ <directory>src</directory>
+ <excludes>
+ <exclude>**/*.java</exclude>
+ </excludes>
+ </resource>
+ <resource>
+ <directory>backends</directory>
+ <excludes>
+ <exclude>**/*.java</exclude>
+ </excludes>
+ </resource>
+ <resource>
+ <directory>extern</directory>
+ <excludes>
+ <exclude>**/*.java</exclude>
+ </excludes>
+ </resource>
+ <resource>
+ <directory>compliance</directory>
+ <excludes>
+ <exclude>**/*.java</exclude>
+ </excludes>
+ </resource>
+ </resources>
+ <testSourceDirectory>
+ regression/org/eclipse/basyx/testsuite/regression
+ </testSourceDirectory>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.12.1</version>
+ <configuration>
+ <excludes>
+ <exclude>**/*HTTP*</exclude>
+ <exclude>**/*TCP*</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ <version>2.12.4</version>
+ <configuration>
+ <includes>
+ <include>**/*HTTP*</include>
+ <include>**/*TCP*</include>
+ </includes>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>integration-test</goal>
+ <goal>verify</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.json</groupId>
+ <artifactId>json</artifactId>
+ <version>20180813</version>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.12</version>
+ </dependency>
+ <!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-api</artifactId>
+ <version>5.3.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.derby</groupId>
+ <artifactId>derby</artifactId>
+ <version>10.14.2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.mail</groupId>
+ <artifactId>mail</artifactId>
+ <version>1.4</version>
+ </dependency>
+ <!-- https://mvnrepository.com/artifact/javax.ws.rs/javax.ws.rs-api -->
+ <dependency>
+ <groupId>javax.ws.rs</groupId>
+ <artifactId>javax.ws.rs-api</artifactId>
+ <version>2.1</version>
+ </dependency>
+ <!-- https://mvnrepository.com/artifact/org.glassfish.jersey.core/jersey-client -->
+ <dependency>
+ <groupId>org.glassfish.jersey.core</groupId>
+ <artifactId>jersey-client</artifactId>
+ <version>2.26-b03</version>
+ </dependency>
+ <!-- https://mvnrepository.com/artifact/javax.servlet/servlet-api -->
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>javax.servlet-api</artifactId>
+ <version>4.0.1</version>
+ <scope>provided</scope>
+ </dependency>
+ <!-- https://mvnrepository.com/artifact/org.apache.tomcat/tomcat-catalina (Tomcat 8, not 9) -->
+ <dependency>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>tomcat-catalina</artifactId>
+ <version>8.0.32</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file