Add dry-run profile.

This commit is contained in:
Manuele Simi 2019-05-28 18:48:39 -04:00
parent 82ddf0005c
commit e87e8b7c96
2 changed files with 27 additions and 0 deletions

View File

@ -25,6 +25,9 @@ A parent pom for all the gCube artifacts.
* Deployments of snapshot artifacts are not permitted * Deployments of snapshot artifacts are not permitted
* Release artifacts deployed to gcube-releases * Release artifacts deployed to gcube-releases
## dry-run
This profile disables the deployment of the artifacts.
## disable-java8-doclint ## disable-java8-doclint
This profile sets an additional parameter for javadoc generation to disables the doclint. This profile sets an additional parameter for javadoc generation to disables the doclint.
It avoids the build fails if formal/syntax errors are found in javadoc comments. It avoids the build fails if formal/syntax errors are found in javadoc comments.

24
pom.xml
View File

@ -200,6 +200,30 @@
</distributionManagement> </distributionManagement>
</profile> </profile>
<profile>
<id>dry-run</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>build-dry-run</name>
<value>true</value>
</property>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.0.0-M1</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles> </profiles>