aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2017-02-21 13:10:47 -0500
committerDan Timoney <dtimoney@att.com>2017-02-21 13:11:00 -0500
commit6bd377b8a1b23f7752dfe1e83c15f5e841b4542b (patch)
tree78cdd069ff42048030dbe3133cae9d5e62f3b49e
parentab569f2ee12043810932191ca4beae9a9e5b879c (diff)
[STAGING] Add build profiles
Use build profiles to enable/disable staging and blackduck scans Change-Id: I32c92bed647d49f428dcd0e3ab681282db413352 Signed-off-by: Dan Timoney <dtimoney@att.com>
-rwxr-xr-xpom.xml84
1 files changed, 66 insertions, 18 deletions
diff --git a/pom.xml b/pom.xml
index 3cdb1bb..0d5357d 100755
--- a/pom.xml
+++ b/pom.xml
@@ -42,25 +42,73 @@
</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>
@@ -79,7 +127,7 @@
<module>sql-resource</module>
</modules>
<organization>
- <name>AT&amp;T</name>
+ <name>OpenECOMP</name>
</organization>
<version>1.0.0</version>