|
| 1 | +<?xml version='1.0' encoding='utf-8'?> |
| 2 | +<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"> |
| 3 | + |
| 4 | + <modelVersion>4.0.0</modelVersion> |
| 5 | + |
| 6 | + <name>${artifactId} - Application</name> |
| 7 | + <description>${artifactId} - Application</description> |
| 8 | + |
| 9 | + <artifactId>${artifactId}-application</artifactId> |
| 10 | + <version>${version}</version> |
| 11 | + |
| 12 | + <parent> |
| 13 | + <groupId>${groupId}</groupId> |
| 14 | + <artifactId>${artifactId}</artifactId> |
| 15 | + <version>${version}</version> |
| 16 | + </parent> |
| 17 | + |
| 18 | + <properties> |
| 19 | + <surefire.skipTests>false</surefire.skipTests> |
| 20 | + <surefire.forkCount>1</surefire.forkCount> |
| 21 | + <surefire.include>*</surefire.include> |
| 22 | + <surefire.exclude /> |
| 23 | + <surefire.groups /> |
| 24 | + <surefire.excludedGroups /> |
| 25 | + <surefire.maxMemorySize>1024m</surefire.maxMemorySize> |
| 26 | + <surefire.logLevel>info</surefire.logLevel> |
| 27 | + |
| 28 | + <!-- |
| 29 | + Use the argLine property to define the arguments for the JVMs that are forked by the surefire plugin. |
| 30 | + This avoids the need to use late property evaluation for configuring the jacoco plugin. |
| 31 | + Relying on late evaluation of properties such as @{argLine} can result in issues with certain IDEs. |
| 32 | +
|
| 33 | + For more details, visit: |
| 34 | + https://www.eclemma.org/jacoco/trunk/doc/prepare-agent-mojo.html |
| 35 | + --> |
| 36 | + <argLine>-Xmx${surefire.maxMemorySize} -Dorg.slf4j.simpleLogger.defaultLogLevel=${surefire.logLevel}</argLine> |
| 37 | + |
| 38 | + <jacoco.executionDataFile>${project.build.directory}/coverage-reports/jacoco.exec</jacoco.executionDataFile> |
| 39 | + <jacoco.includes>*</jacoco.includes> |
| 40 | + <jacoco.excludes>org.apache.*</jacoco.excludes> |
| 41 | + </properties> |
| 42 | + |
| 43 | + <dependencies> |
| 44 | + <dependency> |
| 45 | + <groupId>com.sap.cloud.sdk</groupId> |
| 46 | + <artifactId>sdk-core</artifactId> |
| 47 | + </dependency> |
| 48 | + |
| 49 | + <dependency> |
| 50 | + <groupId>org.slf4j</groupId> |
| 51 | + <artifactId>slf4j-api</artifactId> |
| 52 | + </dependency> |
| 53 | + <dependency> |
| 54 | + <groupId>ch.qos.logback</groupId> |
| 55 | + <artifactId>logback-classic</artifactId> |
| 56 | + </dependency> |
| 57 | + <dependency> |
| 58 | + <groupId>com.sap.hcp.cf.logging</groupId> |
| 59 | + <artifactId>cf-java-logging-support-logback</artifactId> |
| 60 | + <version>3.7.1</version> |
| 61 | + </dependency> |
| 62 | + <dependency> |
| 63 | + <groupId>org.springframework.boot</groupId> |
| 64 | + <artifactId>spring-boot-starter-webmvc</artifactId> |
| 65 | + </dependency> |
| 66 | + <dependency> |
| 67 | + <groupId>org.springframework.boot</groupId> |
| 68 | + <artifactId>spring-boot-web-server</artifactId> |
| 69 | + </dependency> |
| 70 | + |
| 71 | + <!-- Dependencies for generated OData V4 VDM --> |
| 72 | + <!-- |
| 73 | + <dependency> |
| 74 | + <groupId>com.sap.cloud.sdk.datamodel</groupId> |
| 75 | + <artifactId>odata-v4-core</artifactId> |
| 76 | + </dependency> |
| 77 | + <dependency> |
| 78 | + <groupId>org.projectlombok</groupId> |
| 79 | + <artifactId>lombok</artifactId> |
| 80 | + <scope>provided</scope> |
| 81 | + </dependency> |
| 82 | + --> |
| 83 | + |
| 84 | + <!-- Dependencies for security setup --> |
| 85 | + <!-- |
| 86 | + <dependency> |
| 87 | + <groupId>org.springframework.boot</groupId> |
| 88 | + <artifactId>spring-boot-starter-security</artifactId> |
| 89 | + </dependency> |
| 90 | + <dependency> |
| 91 | + <groupId>com.sap.cloud.security</groupId> |
| 92 | + <artifactId>resourceserver-security-spring-boot-starter</artifactId> |
| 93 | + </dependency> |
| 94 | + --> |
| 95 | + |
| 96 | + <dependency> |
| 97 | + <groupId>org.junit.jupiter</groupId> |
| 98 | + <artifactId>junit-jupiter-api</artifactId> |
| 99 | + <scope>test</scope> |
| 100 | + </dependency> |
| 101 | + <dependency> |
| 102 | + <groupId>org.springframework</groupId> |
| 103 | + <artifactId>spring-test</artifactId> |
| 104 | + <scope>test</scope> |
| 105 | + </dependency> |
| 106 | + <dependency> |
| 107 | + <groupId>org.springframework.boot</groupId> |
| 108 | + <artifactId>spring-boot-test</artifactId> |
| 109 | + <scope>test</scope> |
| 110 | + </dependency> |
| 111 | + <dependency> |
| 112 | + <groupId>org.springframework.boot</groupId> |
| 113 | + <artifactId>spring-boot-test-autoconfigure</artifactId> |
| 114 | + <scope>test</scope> |
| 115 | + </dependency> |
| 116 | + <!-- Provides MockMvc test auto-configuration (e.g. @AutoConfigureMockMvc), split into its own module in Spring Boot 4. --> |
| 117 | + <dependency> |
| 118 | + <groupId>org.springframework.boot</groupId> |
| 119 | + <artifactId>spring-boot-webmvc-test</artifactId> |
| 120 | + <scope>test</scope> |
| 121 | + </dependency> |
| 122 | + <dependency> |
| 123 | + <groupId>org.springframework.security</groupId> |
| 124 | + <artifactId>spring-security-test</artifactId> |
| 125 | + <scope>test</scope> |
| 126 | + </dependency> |
| 127 | + <!-- Dependencies for security setup --> |
| 128 | + <!-- |
| 129 | + <dependency> |
| 130 | + <groupId>com.sap.cloud.security</groupId> |
| 131 | + <artifactId>java-security-test</artifactId> |
| 132 | + <scope>test</scope> |
| 133 | + </dependency> |
| 134 | + --> |
| 135 | + |
| 136 | + <dependency> |
| 137 | + <groupId>org.skyscreamer</groupId> |
| 138 | + <artifactId>jsonassert</artifactId> |
| 139 | + <version>1.5.1</version> |
| 140 | + <scope>test</scope> |
| 141 | + <exclusions> |
| 142 | + <!-- exclude android-json to avoid conflict with org.json:json --> |
| 143 | + <!-- see also: https://github.com/spring-projects/spring-boot/issues/8706 --> |
| 144 | + <exclusion> |
| 145 | + <groupId>com.vaadin.external.google</groupId> |
| 146 | + <artifactId>android-json</artifactId> |
| 147 | + </exclusion> |
| 148 | + </exclusions> |
| 149 | + </dependency> |
| 150 | + </dependencies> |
| 151 | + |
| 152 | + <build> |
| 153 | + <finalName>${project.artifactId}</finalName> |
| 154 | + <plugins> |
| 155 | + <plugin> |
| 156 | + <groupId>org.springframework.boot</groupId> |
| 157 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 158 | + <version>${spring-boot.version}</version> |
| 159 | + <configuration> |
| 160 | + <attach>false</attach> |
| 161 | + </configuration> |
| 162 | + <executions> |
| 163 | + <execution> |
| 164 | + <goals> |
| 165 | + <goal>repackage</goal> |
| 166 | + </goals> |
| 167 | + </execution> |
| 168 | + </executions> |
| 169 | + </plugin> |
| 170 | + |
| 171 | + <plugin> |
| 172 | + <groupId>org.jacoco</groupId> |
| 173 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 174 | + <version>0.8.13</version> |
| 175 | + <configuration> |
| 176 | + <destFile>${jacoco.executionDataFile}</destFile> |
| 177 | + <dataFile>${jacoco.executionDataFile}</dataFile> |
| 178 | + <includes>${jacoco.includes}</includes> |
| 179 | + <excludes>${jacoco.excludes}</excludes> |
| 180 | + </configuration> |
| 181 | + <executions> |
| 182 | + <execution> |
| 183 | + <id>prepare-agent</id> |
| 184 | + <goals> |
| 185 | + <goal>prepare-agent</goal> |
| 186 | + </goals> |
| 187 | + </execution> |
| 188 | + </executions> |
| 189 | + </plugin> |
| 190 | + |
| 191 | + <plugin> |
| 192 | + <groupId>org.apache.maven.plugins</groupId> |
| 193 | + <artifactId>maven-surefire-plugin</artifactId> |
| 194 | + <version>3.1.0</version> |
| 195 | + <configuration> |
| 196 | + <skipTests>${surefire.skipTests}</skipTests> |
| 197 | + <includes> |
| 198 | + <include>${surefire.include}</include> |
| 199 | + </includes> |
| 200 | + <excludes> |
| 201 | + <exclude>${surefire.exclude}</exclude> |
| 202 | + </excludes> |
| 203 | + <forkCount>${surefire.forkCount}</forkCount> |
| 204 | + <reuseForks>false</reuseForks> |
| 205 | + <groups>${surefire.groups}</groups> |
| 206 | + <excludedGroups>${surefire.excludedGroups}</excludedGroups> |
| 207 | + <systemPropertyVariables> |
| 208 | + <surefire.forkDir>${project.build.directory}/surefire-fork/${surefire.forkNumber}/ |
| 209 | + </surefire.forkDir> |
| 210 | + </systemPropertyVariables> |
| 211 | + </configuration> |
| 212 | + </plugin> |
| 213 | + |
| 214 | + <!-- Plugin for generating Java classes from OData V4 metadata --> |
| 215 | + <!-- Have a look into our documentation for more details as well as the OData V2 generator: --> |
| 216 | + <!-- https://sap.github.io/cloud-sdk/docs/java/features/odata/vdm-generator --> |
| 217 | + <!-- |
| 218 | + <plugin> |
| 219 | + <groupId>com.sap.cloud.sdk.datamodel</groupId> |
| 220 | + <artifactId>odata-v4-generator-maven-plugin</artifactId> |
| 221 | + <version>${cloud-sdk.version}</version> |
| 222 | + <executions> |
| 223 | + <execution> |
| 224 | + <id>generate-consumption</id> |
| 225 | + <phase>generate-sources</phase> |
| 226 | + <goals> |
| 227 | + <goal>generate</goal> |
| 228 | + </goals> |
| 229 | + <configuration> |
| 230 | + <inputDirectory>${project.basedir}/src/main/resources/edmx</inputDirectory> |
| 231 | + <outputDirectory>${project.build.directory}/vdm</outputDirectory> |
| 232 | + <deleteOutputDirectory>true</deleteOutputDirectory> |
| 233 | + <packageName>${package}</packageName> |
| 234 | + <defaultBasePath>odata/v4/</defaultBasePath> |
| 235 | + <compileScope>COMPILE</compileScope> |
| 236 | + <serviceMethodsPerEntitySet>true</serviceMethodsPerEntitySet> |
| 237 | + </configuration> |
| 238 | + </execution> |
| 239 | + </executions> |
| 240 | + </plugin> |
| 241 | + --> |
| 242 | + </plugins> |
| 243 | + </build> |
| 244 | +</project> |
0 commit comments