Commit 9d3d0cf1 authored by Petyo Bogdanov Ilov's avatar Petyo Bogdanov Ilov

Script and pom.xml fix

parent 663a9587
......@@ -23,53 +23,4 @@
<scope>test</scope>
</dependency>
</dependencies>
<!-- Set up profiles -->
<profiles>
<profile>
<id>Windows</id>
<activation>
<os>
<family>windows</family>
</os>
</activation>
<properties>
<script.extension>.bat</script.extension>
</properties>
</profile>
<profile>
<id>Unix</id>
<activation>
<os>
<family>unix</family>
</os>
</activation>
<properties>
<script.extension>.sh</script.extension>
</properties>
</profile>
</profiles>
<build>
<plugins>
<!-- Exec plugin -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<id>Launch</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>${project.basedir}/scripts/run${script.extension}</executable>
</configuration>
</plugin>
</plugins>
</build>
</project>
#run rmi registry on port 10101
rmiregistry 10101 &
#run rmi server
java -classpath ./target/rmi-model-server.jar -Djava.rmi.server.codebase=./target/rmi-model-server-1.0.0.jar rwth.rmi.model.server.RMIServer &
java -cp ./target/rmi-model-server-1.0.0.jar -Djava.rmi.server.codebase=./target/rmi-model-server-1.0.0.jar -Djava.rmi.server.hostname=server.rmi -Djava.security.policy=server.policy rwth.rmi.model.server.RMIServer
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment