forked from SAP-samples/cloud-gamification-demo-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
121 lines (117 loc) · 3.67 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?xml version="1.0"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.sap.gamification</groupId>
<artifactId>helpdesk</artifactId>
<packaging>war</packaging>
<version>1.41.0</version>
<properties>
<ldi.jacoco.skip />
<sonar.javascript.eslint.reportPath>target/eslint/eslint.xml</sonar.javascript.eslint.reportPath>
</properties>
<dependencies>
<!-- The SAP Cloud Platform Java Web API -->
<dependency>
<groupId>com.sap.cloud</groupId>
<artifactId>neo-java-web-api</artifactId>
<version>1.86.27</version>
<scope>provided</scope>
</dependency>
<!-- used to handle JSON transformation in servlets -->
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.2.2</version>
</dependency>
</dependencies>
<build>
<!-- Controlling web context, e.g. to https://hostname/helpdesk instead
of https://hostname/helpdesk-0.8.0. We do not implement this via filename,
e.g. "helpdesk.war", with the <finalName> tag but define META-INF/MANIFEST.MF
-> Web-ContextPath: helpdesk instead. -->
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<archive>
<manifestEntries>
<Version>${project.version}</Version>
<Web-ContextPath>helpdesk</Web-ContextPath>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.13</version>
<configuration>
<outputFileFormat>xml</outputFileFormat>
<consoleOutput>false</consoleOutput>
<enableRSS>false</enableRSS>
<linkXRef>false</linkXRef>
<configLocation>checkstyle-config.xml</configLocation>
<sourceDirectory>${basedir}/src</sourceDirectory>
<encoding>UTF-8</encoding>
<failOnViolation>true</failOnViolation>
<violationSeverity>error</violationSeverity>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>eslint</id>
<build>
<plugins>
<plugin>
<groupId>com.sap.eslint</groupId>
<artifactId>eslint-maven-plugin</artifactId>
<version>0.1.16</version>
<executions>
<execution>
<id>static-code-check</id>
<goals>
<goal>eslint</goal>
</goals>
<phase>verify</phase>
<configuration>
<failOnError>false</failOnError>
<configFile>../.eslintrc.json</configFile>
<useEsLintRc>false</useEsLintRc>
<version>3.0.1</version>
<ignorePath>../.eslintignore</ignorePath>
<includes>
<include>src/main/webapp/**</include>
</includes>
<formatters>
<formatter
implementation="com.sap.eslint.java.formatters.JSLintSonarFormatter">
<outputFile>${sonar.javascript.eslint.reportPath}</outputFile>
</formatter>
<formatter
implementation="com.sap.eslint.java.formatters.CheckstyleFormatter">
<outputFile>target/eslint/checkstyle.xml</outputFile>
</formatter>
</formatters>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>