summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2018-08-22 14:25:26 +0300
committerGitHub <noreply@github.com>2018-08-22 14:25:26 +0300
commit4e82495f67a54064d8a9c05ca279bdcbddd8dd02 (patch)
tree9254c3cb6c5312b83abef88fc78ffd1a4db41df9
parent6462d54a2d32ac1539cccedac72e30b84ba7e3af (diff)
downloadvaadin-framework-4e82495f67a54064d8a9c05ca279bdcbddd8dd02.tar.gz
vaadin-framework-4e82495f67a54064d8a9c05ca279bdcbddd8dd02.zip
Add snapshot profile for snapshot releases (#11132)
-rw-r--r--pom.xml46
1 files changed, 46 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index f591dbfcd8..69948ee844 100644
--- a/pom.xml
+++ b/pom.xml
@@ -320,6 +320,52 @@
</modules>
</profile>
<profile>
+ <!-- Snapshot build only builds artifacts that are deployed or
+ needed by them -->
+ <id>snapshot</id>
+ <properties>
+ <vaadin.plugin.version>${project.version}</vaadin.plugin.version>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>sources-jar</id>
+ <phase>package</phase>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ <configuration>
+ <!-- Only include java files -->
+ <includes>
+ <include>**/*.java</include>
+ </includes>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.10.3</version>
+ <executions>
+ <execution>
+ <id>generate-javadoc</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ <configuration>
+ <failOnError>false</failOnError>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
<id>release</id>
<activation>
<activeByDefault>false</activeByDefault>