|
@@ -8,226 +8,80 @@
|
|
|
<artifactId>urweb</artifactId>
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
<name>urweb</name>
|
|
|
- <packaging>bundle</packaging>
|
|
|
-
|
|
|
+ <packaging>jar</packaging>
|
|
|
<properties>
|
|
|
-
|
|
|
- <!--********************************************************************-->
|
|
|
- <!-- Note: Update this section with relevant meta data -->
|
|
|
- <!-- that comes along with your URCap -->
|
|
|
- <!--********************************************************************-->
|
|
|
- <!--******************* BEGINNING OF URCAP META DATA *******************-->
|
|
|
- <urcap.symbolicname>at.acdp.urweb</urcap.symbolicname>
|
|
|
- <urcap.vendor>cdp</urcap.vendor>
|
|
|
- <urcap.contactAddress>Seestadtstraße 27/10 1220 Wien</urcap.contactAddress>
|
|
|
- <urcap.copyright>Copyright (C) 2018 Center for Digital Production GmbH</urcap.copyright>
|
|
|
- <urcap.description>urweb description</urcap.description>
|
|
|
- <urcap.licenseType>Commercial</urcap.licenseType>
|
|
|
- <!--********************** END OF URCAP META DATA **********************-->
|
|
|
- <!--********************************************************************-->
|
|
|
-
|
|
|
- <!-- Host, username and password of the robot to be used when running "mvn install -Premote" -->
|
|
|
- <urcap.install.host></urcap.install.host>
|
|
|
- <urcap.install.username>root</urcap.install.username>
|
|
|
- <urcap.install.password>easybot</urcap.install.password>
|
|
|
-
|
|
|
- <!--Install path for the UR Sim-->
|
|
|
- <ursim.home></ursim.home>
|
|
|
-
|
|
|
- <!--Host and standard user/password for UR Sim running in a VM-->
|
|
|
- <ursimvm.install.host></ursimvm.install.host>
|
|
|
- <ursimvm.install.username>ur</ursimvm.install.username>
|
|
|
- <ursimvm.install.password>easybot</ursimvm.install.password>
|
|
|
-
|
|
|
-
|
|
|
- <embed-dep>*;scope=compile;type=!pom;inline=true</embed-dep>
|
|
|
- <unpack-bundle>false</unpack-bundle>
|
|
|
-
|
|
|
+ <undertow.version>2.0.15.Final</undertow.version>
|
|
|
</properties>
|
|
|
-
|
|
|
<build>
|
|
|
<plugins>
|
|
|
<plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-compiler-plugin</artifactId>
|
|
|
- <version>3.6.0</version>
|
|
|
- <configuration>
|
|
|
- <source>1.8</source>
|
|
|
- <target>1.8</target>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <artifactId>maven-jar-plugin</artifactId>
|
|
|
- <version>3.1.0</version>
|
|
|
- <configuration>
|
|
|
- <archive>
|
|
|
- <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
|
|
- </archive>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <artifactId>maven-resources-plugin</artifactId>
|
|
|
- <version>3.1.0</version>
|
|
|
+ <groupId>com.github.spotbugs</groupId>
|
|
|
+ <artifactId>spotbugs-maven-plugin</artifactId>
|
|
|
+ <version>3.1.8</version>
|
|
|
+ <dependencies>
|
|
|
+ <!-- overwrite dependency on spotbugs if you want to specify the version of spotbugs -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.github.spotbugs</groupId>
|
|
|
+ <artifactId>spotbugs</artifactId>
|
|
|
+ <version>3.1.8</version>
|
|
|
+ </dependency>
|
|
|
+ </dependencies>
|
|
|
</plugin>
|
|
|
<plugin>
|
|
|
- <groupId>org.apache.felix</groupId>
|
|
|
- <artifactId>maven-bundle-plugin</artifactId>
|
|
|
- <version>4.1.0</version>
|
|
|
- <extensions>true</extensions>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>bundle-manifest</id>
|
|
|
- <phase>process-classes</phase>
|
|
|
- <goals>
|
|
|
- <goal>manifest</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <version>3.8.0</version>
|
|
|
<configuration>
|
|
|
- <instructions>
|
|
|
- <!--********** DO NOT MODIFY THE ENTRIES OF THIS SECTION **********-->
|
|
|
- <Bundle-Category>URCap</Bundle-Category>
|
|
|
- <Bundle-Activator>at.acdp.urweb.Activator</Bundle-Activator>
|
|
|
- <Bundle-Vendor>${urcap.vendor}</Bundle-Vendor>
|
|
|
- <Bundle-ContactAddress>${urcap.contactAddress}</Bundle-ContactAddress>
|
|
|
- <Bundle-Copyright>${urcap.copyright}</Bundle-Copyright>
|
|
|
- <Bundle-LicenseType>${urcap.licenseType}</Bundle-LicenseType>
|
|
|
- <Bundle-Description>${urcap.description}</Bundle-Description>
|
|
|
- <!--***************************************************************-->
|
|
|
- <Import-Package>
|
|
|
- com.ur.urcap.api*;version="[1.3.0,2.0.0)",
|
|
|
- *
|
|
|
- </Import-Package>
|
|
|
- <Embed-Dependency>*;scope=compile;type=!pom;inline=true</Embed-Dependency>
|
|
|
- </instructions>
|
|
|
+ <source>11</source>
|
|
|
+ <target>11</target>
|
|
|
+ <excludes>
|
|
|
+ <exclude>module-info.java</exclude>
|
|
|
+ </excludes>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-antrun-plugin</artifactId>
|
|
|
+ <artifactId>maven-shade-plugin</artifactId>
|
|
|
+ <version>3.2.1</version>
|
|
|
<executions>
|
|
|
<execution>
|
|
|
- <id>server-copy</id>
|
|
|
+ <phase>package</phase>
|
|
|
<goals>
|
|
|
- <goal>run</goal>
|
|
|
+ <goal>shade</goal>
|
|
|
</goals>
|
|
|
- <phase>install</phase>
|
|
|
<configuration>
|
|
|
- <tasks>
|
|
|
- <echo message="Pushing to host..." />
|
|
|
- <scp file="target/${project.build.finalName}.jar" port="22" trust="true"
|
|
|
- todir="root:easybot@192.168.20.130:/programs/urweb.urcap"/>
|
|
|
- </tasks>
|
|
|
+ <minimizeJar>true</minimizeJar>
|
|
|
</configuration>
|
|
|
</execution>
|
|
|
</executions>
|
|
|
- <dependencies>
|
|
|
- <dependency>
|
|
|
- <groupId>org.apache.ant</groupId>
|
|
|
- <artifactId>ant-jsch</artifactId>
|
|
|
- <version>1.10.5</version>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>com.jcraft</groupId>
|
|
|
- <artifactId>jsch</artifactId>
|
|
|
- <version>0.1.54</version>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>commons-net</groupId>
|
|
|
- <artifactId>commons-net</artifactId>
|
|
|
- <version>3.6</version>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>ant</groupId>
|
|
|
- <artifactId>ant-commons-net</artifactId>
|
|
|
- <version>1.6.5</version>
|
|
|
- </dependency>
|
|
|
- </dependencies>
|
|
|
</plugin>
|
|
|
-
|
|
|
- <!--<plugin>-->
|
|
|
- <!--<groupId>org.codehaus.mojo</groupId>-->
|
|
|
- <!--<artifactId>exec-maven-plugin</artifactId>-->
|
|
|
- <!--<version>1.1</version>-->
|
|
|
- <!--<executions>-->
|
|
|
- <!--<!– generate URCap package after compiling –>-->
|
|
|
- <!--<execution>-->
|
|
|
- <!--<id>package-urcap</id>-->
|
|
|
- <!--<phase>package</phase>-->
|
|
|
- <!--<goals>-->
|
|
|
- <!--<goal>exec</goal>-->
|
|
|
- <!--</goals>-->
|
|
|
- <!--<configuration>-->
|
|
|
- <!--<executable>cp</executable>-->
|
|
|
- <!--<commandlineArgs>target/${project.build.finalName}.jar target/${project.build.finalName}.urcap</commandlineArgs>-->
|
|
|
- <!--<workingDirectory>.</workingDirectory>-->
|
|
|
- <!--</configuration>-->
|
|
|
- <!--</execution>-->
|
|
|
- <!--</executions>-->
|
|
|
- <!--</plugin>-->
|
|
|
<plugin>
|
|
|
- <artifactId>maven-assembly-plugin</artifactId>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-jar-plugin</artifactId>
|
|
|
+ <version>3.1.0</version>
|
|
|
<configuration>
|
|
|
- <descriptors>
|
|
|
- <descriptor>assembly.xml</descriptor>
|
|
|
- </descriptors>
|
|
|
+ <archive>
|
|
|
+ <manifest>
|
|
|
+ <addClasspath>true</addClasspath>
|
|
|
+ <mainClass>at.acdp.urweb.Main</mainClass>
|
|
|
+ </manifest>
|
|
|
+ </archive>
|
|
|
</configuration>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <phase>package</phase>
|
|
|
- <goals>
|
|
|
- <goal>single</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
- <extensions>
|
|
|
- <extension>
|
|
|
- <groupId>org.apache.maven.wagon</groupId>
|
|
|
- <artifactId>wagon-ssh</artifactId>
|
|
|
- <version>3.2.0</version>
|
|
|
- </extension>
|
|
|
- </extensions>
|
|
|
</build>
|
|
|
|
|
|
<dependencies>
|
|
|
- <dependency>
|
|
|
- <groupId>org.osgi</groupId>
|
|
|
- <artifactId>org.osgi.core</artifactId>
|
|
|
- <version>4.3.1</version>
|
|
|
- <scope>provided</scope>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>com.ur.urcap</groupId>
|
|
|
- <artifactId>api</artifactId>
|
|
|
- <version>1.3.0</version>
|
|
|
- <scope>provided</scope>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <dependency>
|
|
|
- <artifactId>nanohttpd</artifactId>
|
|
|
- <groupId>org.nanohttpd</groupId>
|
|
|
- <version>2.3.2-SNAPSHOT</version>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <artifactId>nanohttpd-websocket</artifactId>
|
|
|
- <groupId>org.nanohttpd</groupId>
|
|
|
- <version>2.3.2-SNAPSHOT</version>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <dependency>
|
|
|
- <artifactId>nanohttpd-webserver</artifactId>
|
|
|
- <groupId>org.nanohttpd</groupId>
|
|
|
- <version>2.3.2-SNAPSHOT</version>
|
|
|
- </dependency>
|
|
|
-
|
|
|
<dependency>
|
|
|
<groupId>com.eclipsesource.minimal-json</groupId>
|
|
|
<artifactId>minimal-json</artifactId>
|
|
|
<version>0.9.5</version>
|
|
|
</dependency>
|
|
|
-
|
|
|
+ <dependency>
|
|
|
+ <groupId>io.undertow</groupId>
|
|
|
+ <artifactId>undertow-core</artifactId>
|
|
|
+ <version>${undertow.version}</version>
|
|
|
+ </dependency>
|
|
|
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->
|
|
|
<dependency>
|
|
|
<groupId>org.junit.jupiter</groupId>
|
|
@@ -235,152 +89,16 @@
|
|
|
<version>5.3.1</version>
|
|
|
<scope>test</scope>
|
|
|
</dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>org.nanohttpd</groupId>
|
|
|
- <artifactId>nanohttpd-nanolets</artifactId>
|
|
|
- <version>2.3.2-SNAPSHOT</version>
|
|
|
- </dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
<artifactId>slf4j-api</artifactId>
|
|
|
<version>1.7.25</version>
|
|
|
</dependency>
|
|
|
+ <!-- https://mvnrepository.com/artifact/ch.qos.logback/logback-classic -->
|
|
|
<dependency>
|
|
|
- <groupId>org.slf4j</groupId>
|
|
|
- <artifactId>slf4j-jdk14</artifactId>
|
|
|
- <version>1.7.25</version>
|
|
|
+ <groupId>ch.qos.logback</groupId>
|
|
|
+ <artifactId>logback-classic</artifactId>
|
|
|
+ <version>1.2.3</version>
|
|
|
</dependency>
|
|
|
-
|
|
|
-
|
|
|
</dependencies>
|
|
|
-
|
|
|
- <profiles>
|
|
|
- <profile>
|
|
|
- <id>remote</id>
|
|
|
- <build>
|
|
|
- <plugins>
|
|
|
- <plugin>
|
|
|
- <groupId>org.codehaus.mojo</groupId>
|
|
|
- <artifactId>exec-maven-plugin</artifactId>
|
|
|
- <version>1.1</version>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>remote-install-urcap</id>
|
|
|
- <phase>install</phase>
|
|
|
- <goals>
|
|
|
- <goal>exec</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <executable>sshpass</executable>
|
|
|
- <commandlineArgs>-p ${urcap.install.password} scp -o StrictHostKeyChecking=no target/${project.build.finalName}.jar ${urcap.install.username}@${urcap.install.host}:/root/.urcaps/${urcap.symbolicname}.jar</commandlineArgs>
|
|
|
- <workingDirectory>.</workingDirectory>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- <execution>
|
|
|
- <id>remote-restart-ui</id>
|
|
|
- <phase>install</phase>
|
|
|
- <goals>
|
|
|
- <goal>exec</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <executable>sshpass</executable>
|
|
|
- <commandlineArgs>-p ${urcap.install.password} ssh ${urcap.install.username}@${urcap.install.host} pkill java</commandlineArgs>
|
|
|
- <workingDirectory>.</workingDirectory>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- </plugins>
|
|
|
- </build>
|
|
|
- </profile>
|
|
|
- <profile>
|
|
|
- <id>local</id>
|
|
|
- <build>
|
|
|
- <plugins>
|
|
|
- <plugin>
|
|
|
- <groupId>org.codehaus.mojo</groupId>
|
|
|
- <artifactId>exec-maven-plugin</artifactId>
|
|
|
- <version>1.1</version>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>local-install-urcap</id>
|
|
|
- <phase>install</phase>
|
|
|
- <goals>
|
|
|
- <goal>exec</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <executable>cp</executable>
|
|
|
- <commandlineArgs>target/${project.build.finalName}.jar ${user.home}/.urcaps/${urcap.symbolicname}.jar</commandlineArgs>
|
|
|
- <workingDirectory>.</workingDirectory>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- </plugins>
|
|
|
- </build>
|
|
|
- </profile>
|
|
|
- <profile>
|
|
|
- <id>ursim</id>
|
|
|
- <build>
|
|
|
- <plugins>
|
|
|
- <plugin>
|
|
|
- <groupId>org.codehaus.mojo</groupId>
|
|
|
- <artifactId>exec-maven-plugin</artifactId>
|
|
|
- <version>1.1</version>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>ursim-install-urcap</id>
|
|
|
- <phase>install</phase>
|
|
|
- <goals>
|
|
|
- <goal>exec</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <executable>cp</executable>
|
|
|
- <commandlineArgs>target/${project.build.finalName}.jar ${ursim.home}/.urcaps/${urcap.symbolicname}.jar</commandlineArgs>
|
|
|
- <workingDirectory>.</workingDirectory>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- </plugins>
|
|
|
- </build>
|
|
|
- </profile>
|
|
|
- <profile>
|
|
|
- <id>ursimvm</id>
|
|
|
- <build>
|
|
|
- <plugins>
|
|
|
- <plugin>
|
|
|
- <groupId>org.codehaus.mojo</groupId>
|
|
|
- <artifactId>exec-maven-plugin</artifactId>
|
|
|
- <version>1.1</version>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>ursimvm-install-urcap</id>
|
|
|
- <phase>install</phase>
|
|
|
- <goals>
|
|
|
- <goal>exec</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <executable>sshpass</executable>
|
|
|
- <commandlineArgs>-p ${ursimvm.install.password} scp -o StrictHostKeyChecking=no target/${project.build.finalName}.jar ${ursimvm.install.username}@${ursimvm.install.host}:/home/ur/ursim-current/.urcaps/${urcap.symbolicname}.jar</commandlineArgs>
|
|
|
- <workingDirectory>.</workingDirectory>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- </plugins>
|
|
|
- </build>
|
|
|
- </profile>
|
|
|
- </profiles>
|
|
|
-
|
|
|
- <repositories>
|
|
|
- <repository>
|
|
|
- <id>sonatype-snapshots</id>
|
|
|
- <url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
|
|
- <snapshots>
|
|
|
- <enabled>true</enabled>
|
|
|
- </snapshots>
|
|
|
- </repository>
|
|
|
- </repositories>
|
|
|
-
|
|
|
</project>
|