Browse Source

Add properties to exclude demo from deploy, javadoc, etc

pull/89/head
Decebal Suiu 9 years ago
parent
commit
b87f20ee49
  1. 6
      demo/pom.xml
  2. 20
      pom.xml

6
demo/pom.xml

@ -14,6 +14,12 @@
<packaging>pom</packaging>
<name>Demo Parent</name>
<properties>
<javadoc.disabled>true</javadoc.disabled>
<deploy.disabled>true</deploy.disabled>
<source.disabled>true</source.disabled>
</properties>
<build>
<resources>
<resource>

20
pom.xml

@ -38,6 +38,10 @@
<mockito.version>2.0.28-beta</mockito.version>
<cobertura.version>2.7</cobertura.version>
<coveralls.version>3.1.0</coveralls.version>
<javadoc.disabled>false</javadoc.disabled>
<deploy.disabled>false</deploy.disabled>
<source.disabled>false</source.disabled>
</properties>
<build>
@ -57,6 +61,9 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
<configuration>
<skip>${javadoc.disabled}</skip>
</configuration>
<executions>
<execution>
<goals>
@ -70,6 +77,9 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2</version>
<configuration>
<skipSource>${source.disabled}</skipSource>
</configuration>
<executions>
<execution>
<goals>
@ -79,6 +89,15 @@
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.1</version>
<configuration>
<skip>${deploy.disabled}</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
@ -91,6 +110,7 @@
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.3</version>
</plugin>

Loading…
Cancel
Save