aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2017-02-21 14:41:15 -0500
committerDan Timoney <dtimoney@att.com>2017-02-21 14:41:31 -0500
commit5257c04804bd05c83b99e6e11fae2aa4f446f652 (patch)
tree8d4f4feece55448d2e9de62f6aaa60441e224a44
parent750d7ad2792aa18e9b81a14880f604dff4a8972b (diff)
[STAGING] Add build profiles
Use build profiles to enable/disable staging and blackduck scans Change-Id: Ie0b9d7ea65cd7f141a034e65b3325ebd51f2aa10 Signed-off-by: Dan Timoney <dtimoney@att.com>
-rwxr-xr-xpom.xml81
1 files changed, 64 insertions, 17 deletions
diff --git a/pom.xml b/pom.xml
index e54e6ae..c47017e 100755
--- a/pom.xml
+++ b/pom.xml
@@ -44,25 +44,72 @@
</site>
</distributionManagement>
+ <profiles>
+ <profile>
+ <id>blackduck</id>
+ <activation>
+ <property>
+ <name>blackduck-scan</name>
+ </property>
+ </activation>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>com.blackducksoftware.integration</groupId>
+ <artifactId>hub-maven-plugin</artifactId>
+ <version>1.4.0</version>
+ <inherited>false</inherited>
+ <configuration>
+ <hubProjectName>${project.name}</hubProjectName>
+ <outputDirectory>${project.basedir}</outputDirectory>
+ </configuration>
+ <executions>
+ <execution>
+ <id>create-bdio-file</id>
+ <phase>package</phase>
+ <goals>
+ <goal>createHubOutput</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+
+ </pluginManagement>
+
+ </build>
+
+ </profile>
+ <profile>
+ <id>staging</id>
+ <activation>
+ <property>
+ <name>!no-staging</name>
+ </property>
+ </activation>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.sonatype.plugins</groupId>
+ <artifactId>nexus-staging-maven-plugin</artifactId>
+ <version>1.6.7</version>
+ <extensions>true</extensions>
+ <configuration>
+ <nexusUrl>https://${openecomp.nexus.host}</nexusUrl>
+ <stagingProfileId>${openecomp.nexus.staging.profile-id}</stagingProfileId>
+ <serverId>${openecomp.nexus.staging.server-id}</serverId>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+ </profile>
+
+ </profiles>
<build>
<plugins>
- <!-- Blackduck plugin breaks release build <plugin> <groupId>com.blackducksoftware.integration</groupId>
- <artifactId>hub-maven-plugin</artifactId> <version>1.4.0</version> <inherited>false</inherited>
- <configuration> <hubProjectName>${project.name}</hubProjectName> <outputDirectory>${project.basedir}</outputDirectory>
- </configuration> <executions> <execution> <id>create-bdio-file</id> <phase>package</phase>
- <goals> <goal>createHubOutput</goal> </goals> </execution> </executions>
- </plugin> -->
- <plugin>
- <groupId>org.sonatype.plugins</groupId>
- <artifactId>nexus-staging-maven-plugin</artifactId>
- <version>1.6.7</version>
- <extensions>true</extensions>
- <configuration>
- <nexusUrl>https://nexus.openecomp.org</nexusUrl>
- <stagingProfileId>176c31dfe190a</stagingProfileId>
- <serverId>ecomp-staging</serverId>
- </configuration>
- </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>