diff options
author | Dan Timoney <dtimoney@att.com> | 2017-02-21 14:41:15 -0500 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2017-02-21 14:41:31 -0500 |
commit | 5257c04804bd05c83b99e6e11fae2aa4f446f652 (patch) | |
tree | 8d4f4feece55448d2e9de62f6aaa60441e224a44 | |
parent | 750d7ad2792aa18e9b81a14880f604dff4a8972b (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-x | pom.xml | 81 |
1 files changed, 64 insertions, 17 deletions
@@ -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> |