Permalink
Browse files

simplified pom.xml

Change-Id: I35bb293ada666fe38fb26924b871e93340eb0f24
Signed-off-by: Matthias Steiner <matthias.steiner@inscope.net>
  • Loading branch information...
steinermatt committed Oct 14, 2016
1 parent 44ed3e3 commit e03faffb2e2b6fbea039ce5341dc90efa45b9755
Showing with 20 additions and 70 deletions.
  1. +1 −1 README.md
  2. +19 −69 pom.xml
View
@@ -15,7 +15,7 @@ To run the app stand-alone with an embedded Tomcat run
To create a `WAR` file that can be deployed to SAP HANA Cloud Platform (Tomcat 8 runtime) execute the following command:
``mvn -P production clean package``
``mvn clean package install``
Versioning
View
88 pom.xml
@@ -22,7 +22,6 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<m2eclipse.wtp.contextRoot>/</m2eclipse.wtp.contextRoot>
</properties>
@@ -33,83 +32,34 @@
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
<profiles>
<!--Local development profile-->
<profile>
<id>dev</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<dependencies>
<!--Embedded tomcat etc.-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
</profile>
<!--SAP HCP profile-->
<profile>
<id>production</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<!--These two are *both* necessary to prevent different inclusion of the embedded tomcat.-->
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-el</artifactId>
</exclusion>
<exclusion>
<artifactId>logback-classic</artifactId>
<groupId>ch.qos.logback</groupId>
</exclusion>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
<!--Logging provided by Tomcat.-->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.12</version>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
</profiles>
<!--Embedded tomcat etc.-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<finalName>ROOT</finalName>
<!--
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
-->
</build>
<organization>

0 comments on commit e03faff

Please sign in to comment.