Java: added Maven build script
authorjani <jani@asema.com>
Wed, 6 Mar 2019 21:21:11 +0000 (23:21 +0200)
committerjani <jani@asema.com>
Wed, 6 Mar 2019 21:21:11 +0000 (23:21 +0200)
Common/Java/SmartAPI/README
Common/Java/SmartAPI/build_maven.sh [new file with mode: 0755]
Common/Java/SmartAPI/src/smartapi/tests/TestSequence.java

index eec13dc764470fa9973b4666ba7f3f0947177bcc..ca4a09d4cbfd9745e0b4f5daac6e436428c1e5eb 100644 (file)
@@ -72,11 +72,7 @@ file.
                                <updatePolicy>always</updatePolicy>
                                <checksumPolicy>fail</checksumPolicy>
                        </releases>
-<<<<<<< HEAD
                        <id>SmartAPI</id>
-=======
-                       <id>SmartAPI</id>                       
->>>>>>> refs/remotes/origin/master
                        <url>http://maven.smart-api.io</url>
                        <layout>default</layout>
                </repository> 
diff --git a/Common/Java/SmartAPI/build_maven.sh b/Common/Java/SmartAPI/build_maven.sh
new file mode 100755 (executable)
index 0000000..c20d998
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+echo "  *** Build latest version ***"
+./build.sh
+
+echo "  *** Package maven ***"
+mvn deploy:deploy-file -Durl=file://maven.smart-api.io -DrepositoryId=local -Dfile=./dist/smartapi.jar -DpomFile=pom.xml
+
index 708e68ac6473b67ae102ebddd64cada8633fbb4f..3ad217d9a1b57f859b0af0f327b0014f98182877 100644 (file)
@@ -17,7 +17,6 @@ import java.lang.reflect.InvocationTargetException;
 import java.security.PrivateKey;
 import java.security.PublicKey;
 import javax.crypto.SecretKey;
-import javax.xml.bind.DatatypeConverter;
 import javax.xml.datatype.Duration;
 
 import org.apache.jena.rdf.model.Model;