summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorSingal, Kapil (ks220y) <ks220y@att.com>2019-09-27 14:09:00 -0400
committerSingal, Kapil (ks220y) <ks220y@att.com>2019-09-27 14:09:00 -0400
commit632a1f3cc13664249eb6f7f95d19ded659d1b98b (patch)
treea7654c8b8edab90b17ccbb1b39358420cce75cf2 /pom.xml
parentd2c9eb891016e691b1bd5af8dd059f0abd877f90 (diff)
Adding new Profiles and Plugins
Adding maven-tidy-plugin to root pom to format/validate pom content. Copying Quick (q) profile from odlparent-lite to springboot-starter-parent (as spring-boot-starter-parent is not inheriting anything from odl parent pom hirearchy.) Issue-ID: CCSDK-1764 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: I3aefe0790fb1c57faa8663900e9edbd7fd3beaf3
Diffstat (limited to 'pom.xml')
-rwxr-xr-xpom.xml78
1 files changed, 60 insertions, 18 deletions
diff --git a/pom.xml b/pom.xml
index 755e01fb..d64cf26a 100755
--- a/pom.xml
+++ b/pom.xml
@@ -1,21 +1,21 @@
<?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/maven-v4_0_0.xsd">
-
-
+<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>
- <packaging>pom</packaging>
+
<groupId>org.onap.ccsdk.parent</groupId>
<artifactId>parent</artifactId>
<version>1.5.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+
<name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
- <properties>
- <onap.nexus.host>nexus.onap.org</onap.nexus.host>
- <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
- <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
- </properties>
+ <modules>
+ <module>dependencies-bom</module>
+ <module>dependencies-odl-bom</module>
+ <module>standalone</module>
+ <module>odlparent</module>
+ <module>springboot</module>
+ </modules>
<distributionManagement>
<repository>
@@ -28,6 +28,16 @@
</snapshotRepository>
</distributionManagement>
+ <properties>
+ <onap.nexus.host>nexus.onap.org</onap.nexus.host>
+ <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
+ <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
+
+ <!-- Properties for POM Format -->
+ <format.skipValidate>false</format.skipValidate>
+ <format.skipExecute>true</format.skipExecute>
+ </properties>
+
<build>
<plugins>
<plugin>
@@ -38,14 +48,46 @@
<processAllModules>true</processAllModules>
</configuration>
</plugin>
+
+ <!-- Plugin to Format/Validate POM Files -->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>tidy-maven-plugin</artifactId>
+ <version>1.1.0</version>
+ <executions>
+ <execution>
+ <id>format-pom</id>
+ <phase>process-sources</phase>
+ <goals>
+ <goal>pom</goal>
+ </goals>
+ <configuration>
+ <skip>${format.skipExecute}</skip>
+ </configuration>
+ </execution>
+ <execution>
+ <id>validate-pom</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <configuration>
+ <skip>${format.skipValidate}</skip>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
- <modules>
- <module>dependencies-bom</module>
- <module>dependencies-odl-bom</module>
- <module>standalone</module>
- <module>odlparent</module>
- <module>springboot</module>
- </modules>
+ <profiles>
+ <!-- Profile to format skip validate or execute -->
+ <profile>
+ <id>format</id>
+ <properties>
+ <format.skipValidate>true</format.skipValidate>
+ <format.skipExecute>false</format.skipExecute>
+ </properties>
+ </profile>
+ </profiles>
</project>