123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387 |
- <?xml version="1.0"?>
- <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/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>at.acdp.urweb</groupId>
- <artifactId>urweb</artifactId>
- <version>1.0-SNAPSHOT</version>
- <name>urweb</name>
- <packaging>bundle</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>
- </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>
- </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>
- <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>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <id>server-copy</id>
- <goals>
- <goal>run</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>
- </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>
- <configuration>
- <descriptors>
- <descriptor>assembly.xml</descriptor>
- </descriptors>
- </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>
- <!-- 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>
- <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>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-jdk14</artifactId>
- <version>1.7.25</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>
|