summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2017-02-21 13:31:06 -0500
committerDan Timoney <dtimoney@att.com>2017-02-21 13:31:37 -0500
commitc75b13efe0a7ed33e70822fd149d29c9f3b40de7 (patch)
treea552fa692abe20d8d5c4cd19fcdd048977ee0ed9 /pom.xml
parent2db4ce99a44d798bb1bc380f2bc5405bcba7bbc4 (diff)
[STAGING] Add build profiles
Use build profiles to enable/disable staging and blackduck scans Change-Id: I2e1d749843cff8f051da4beee379a32d3f9ea86c Signed-off-by: Dan Timoney <dtimoney@att.com>
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml81
1 files changed, 64 insertions, 17 deletions
diff --git a/pom.xml b/pom.xml
index 229b945c..a2f6aeb5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -42,26 +42,73 @@
<url>dav:https://${openecomp.nexus.host}:${openecomp.nexus.port}/repository/sdn-c-javadoc/${project.artifactId}/${project.version}</url>
</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>