Skip to content

Commit

Permalink
#2 add root pom project
Browse files Browse the repository at this point in the history
  • Loading branch information
obriensystems committed Jun 7, 2019
1 parent 8b85ded commit 03a6324
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
6 changes: 3 additions & 3 deletions difference-nbi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
</parent>
<groupId>cloud.difference</groupId>
<artifactId>difference-nbi</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>nbi</name>
<description>Demo project for Spring Boot</description>
<version>0.0.2-SNAPSHOT</version>
<name>difference-nbi</name>
<description>difference-nbi project</description>


<properties>
Expand Down
2 changes: 1 addition & 1 deletion difference-nbi/src/main/docker/DockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN mkdir -p $MICROSERVICE_HOME/config/
RUN mkdir -p $MICROSERVICE_HOME/lib/
RUN mkdir -p $MICROSERVICE_HOME/bin/

ADD difference-nbi-0.0.1-SNAPSHOT.jar $MICROSERVICE_HOME/lib/
ADD difference-nbi-0.0.2-SNAPSHOT.jar $MICROSERVICE_HOME/lib/
ADD startService.sh $MICROSERVICE_HOME/bin/
COPY config/ $MICROSERVICE_HOME/config/

Expand Down
4 changes: 2 additions & 2 deletions difference-nbi/src/main/docker/startService.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
cd /opt/app
#-Dlogging.config=config/logback.xml
if [ -z "${java_runtime_arguments}" ]; then
java -Xms128m -Xmx512m -jar /opt/app/lib/difference-nbi-0.0.1-SNAPSHOT.jar
java -Xms128m -Xmx512m -jar /opt/app/lib/difference-nbi-0.0.2-SNAPSHOT.jar
else
java $java_runtime_arguments -jar /opt/app/lib/difference-nbi-0.0.1-SNAPSHOT.jar
java $java_runtime_arguments -jar /opt/app/lib/difference-nbi-0.0.2-SNAPSHOT.jar
fi
14 changes: 14 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>cloud.difference</groupId>
<artifactId>difference-root</artifactId>
<version>0.0.2-SNAPSHOT</version>
<name>difference</name>
<description>difference-cloud project</description>
<packaging>pom</packaging>
<modules>
<module>difference-nbi</module>
</modules>
</project>

0 comments on commit 03a6324

Please sign in to comment.