| <?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> |
| |
| <!-- This project must name Spring as parent; cannot name Portal --> |
| <parent> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-parent</artifactId> |
| <version>1.4.2.RELEASE</version> |
| <relativePath/> <!-- lookup parent from repository --> |
| </parent> |
| |
| <groupId>org.onap.portal</groupId> |
| <artifactId>widget-ms</artifactId> |
| <version>2.3.0</version> |
| <packaging>jar</packaging> |
| <name>widget-microservice</name> |
| |
| <properties> |
| <docker.imagename>widget-ms</docker.imagename> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| <java.version>1.8</java.version> |
| <hibernate.version>4.3.11.Final</hibernate.version> |
| <skipTests>false</skipTests> |
| <!-- Replicate this from OParent --> |
| <jacocoVersion>0.7.6.201602180812</jacocoVersion> |
| </properties> |
| |
| <dependencies> |
| <!-- This pom pulls in artifacts --> |
| <dependency> |
| <groupId>org.onap.portal</groupId> |
| <artifactId>common-widgets</artifactId> |
| <version>${project.version}</version> |
| <type>pom</type> |
| </dependency> |
| <dependency> |
| <!-- Setup Spring Data JPA Repository support --> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-data-jpa</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-security</artifactId> |
| <exclusions> |
| <exclusion> |
| <groupId>org.springframework.security</groupId> |
| <artifactId>spring-security-web</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-thymeleaf</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-devtools</artifactId> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-configuration-processor</artifactId> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.hibernate</groupId> |
| <artifactId>hibernate-core</artifactId> |
| <!-- <version>${hibernate.version}</version> --> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-test</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-web</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>commons-codec</groupId> |
| <artifactId>commons-codec</artifactId> |
| <!-- <version>1.10</version> --> |
| </dependency> |
| <dependency> |
| <groupId>org.mariadb.jdbc</groupId> |
| <artifactId>mariadb-java-client</artifactId> |
| <!-- <version>1.5.8</version> --> |
| </dependency> |
| <dependency> |
| <groupId>com.github.ulisesbocchio</groupId> |
| <artifactId>jasypt-spring-boot-starter</artifactId> |
| <version>1.9</version> |
| </dependency> |
| <!-- hibernate-core depends on dom4j, which has optional dependencies. |
| On jenkins, contrary to doc, mvn 3.0.5 packages the optional dependencies |
| in the war. Workaround: exclude them explicitly. --> |
| <dependency> |
| <groupId>dom4j</groupId> |
| <artifactId>dom4j</artifactId> |
| <!-- <version>1.6.1</version> --> |
| <exclusions> |
| <exclusion> |
| <groupId>jaxme</groupId> |
| <artifactId>jaxme-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>jaxen</groupId> |
| <artifactId>jaxen</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>msv</groupId> |
| <artifactId>xsdlib</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>msv</groupId> |
| <artifactId>relaxngDatatype</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>pull-parser</groupId> |
| <artifactId>pull-parser</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>xpp3</groupId> |
| <artifactId>xpp3</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>stax</groupId> |
| <artifactId>stax-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <!-- Jacoco offline instrumentation agent --> |
| <dependency> |
| <groupId>org.jacoco</groupId> |
| <artifactId>org.jacoco.agent</artifactId> |
| <version>${jacocoVersion}</version> |
| <classifier>runtime</classifier> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.tomcat.embed</groupId> |
| <artifactId>tomcat-embed-core</artifactId> |
| <version>8.5.28</version> |
| </dependency> |
| <dependency> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>logback-core</artifactId> |
| <version>1.2.3</version> |
| </dependency> |
| <dependency> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>logback-classic</artifactId> |
| <version>1.2.3</version> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-annotations</artifactId> |
| <version>2.8.10</version> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-core</artifactId> |
| <version>2.8.10</version> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-databind</artifactId> |
| <version>2.8.10</version> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.security</groupId> |
| <artifactId>spring-security-web</artifactId> |
| <version>4.1.4.RELEASE</version> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| |
| <finalName>${project.artifactId}</finalName> |
| |
| <!-- To add resources, must name all including usual src/main/resources --> |
| <resources> |
| <resource> |
| <directory>src/main/resources</directory> |
| <filtering>true</filtering> |
| </resource> |
| <resource> |
| <directory>../common-widgets/target</directory> |
| <includes> |
| <include>**/*.zip</include> |
| </includes> |
| </resource> |
| </resources> |
| |
| <pluginManagement> |
| <plugins> |
| <!-- replicated from OParent --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-site-plugin</artifactId> |
| <version>3.6</version> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.maven.wagon</groupId> |
| <artifactId>wagon-webdav-jackrabbit</artifactId> |
| <version>2.10</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| |
| <plugins> |
| |
| <plugin> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-maven-plugin</artifactId> |
| </plugin> |
| |
| <!-- No deployment step for this project --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-deploy-plugin</artifactId> |
| <!-- version set by spring <version>2.8</version> --> |
| <configuration> |
| <skip>true</skip> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.jacoco</groupId> |
| <artifactId>jacoco-maven-plugin</artifactId> |
| <version>${jacocoVersion}</version> |
| <executions> |
| <!-- disable jacoco executions from oparent --> |
| <execution> |
| <id>pre-unit-test</id> |
| <phase>none</phase> |
| </execution> |
| <execution> |
| <id>post-unit-test</id> |
| <phase>none</phase> |
| </execution> |
| <execution> |
| <id>pre-integration-test</id> |
| <phase>none</phase> |
| </execution> |
| <execution> |
| <id>post-integration-test</id> |
| <phase>none</phase> |
| </execution> |
| <!-- Order matters --> |
| <execution> |
| <id>portal-prepare-agent</id> |
| <goals> |
| <goal>prepare-agent</goal> |
| </goals> |
| <configuration> |
| <destFile>${sonar.jacoco.reportPath}</destFile> |
| </configuration> |
| </execution> |
| <!-- offline instrumentation for PowerMock --> |
| <execution> |
| <id>portal-offline-instrument</id> |
| <goals> |
| <goal>instrument</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>portal-restore-instrumented-classes</id> |
| <phase>test</phase> |
| <goals> |
| <goal>restore-instrumented-classes</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>portal-post-unit-test</id> |
| <phase>test</phase> |
| <goals> |
| <goal>report</goal> |
| </goals> |
| <configuration> |
| <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| <outputDirectory>${project.basedir}/target/site/jacoco</outputDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <systemPropertyVariables> |
| <jacoco-agent.destfile>${project.build.directory}/code-coverage/jacoco-ut.exec</jacoco-agent.destfile> |
| </systemPropertyVariables> |
| </configuration> |
| </plugin> |
| </plugins> |
| |
| </build> |
| |
| <!-- This POM cannot inherit from OParent --> |
| <distributionManagement> |
| <site> |
| <id>ecomp-site</id> |
| <url>dav:https://nexus.onap.org/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</url> |
| </site> |
| </distributionManagement> |
| |
| </project> |