summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorTimoney, Daniel (dt5972) <dtimoney@att.com>2017-02-21 09:40:28 -0500
committerTimoney, Daniel (dt5972) <dtimoney@att.com>2017-02-21 09:40:36 -0500
commiteaa55e31c466c7bdce5b05ced9597e6c301e5081 (patch)
tree421f6106e2af8433a268bc56dddbc215bbc8d661 /pom.xml
parent5771678a73418d4e424ec184e20db74bbb4297a6 (diff)
[PROFILE] Add build profiles
Define build profiles to enable/disable blackduck and staging Change-Id: If6baee97316011cb49b23b081d8120ed832866a4 Signed-off-by: Timoney, Daniel (dt5972) <dtimoney@att.com> Former-commit-id: 4d2aecb1d6d0b6fa84bef709b142c0d70b514044
Diffstat (limited to 'pom.xml')
-rwxr-xr-xpom.xml110
1 files changed, 70 insertions, 40 deletions
diff --git a/pom.xml b/pom.xml
index f0e3120c..30dbc4dc 100755
--- a/pom.xml
+++ b/pom.xml
@@ -41,41 +41,79 @@
<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>
+ <profile>
+ <id>docker</id>
+ <modules>
+ <module>installation</module>
+ </modules>
+ </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>
@@ -92,14 +130,6 @@
<module>platform-logic</module>
</modules>
- <profiles>
- <profile>
- <id>docker</id>
- <modules>
- <module>installation</module>
- </modules>
- </profile>
- </profiles>
<organization>
<name>AT&amp;T</name>
</organization>