]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add snapshot profile for snapshot releases (#11132)
authorTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>
Wed, 22 Aug 2018 11:25:26 +0000 (14:25 +0300)
committerGitHub <noreply@github.com>
Wed, 22 Aug 2018 11:25:26 +0000 (14:25 +0300)
pom.xml

diff --git a/pom.xml b/pom.xml
index f591dbfcd81fa563ea99746165a8d853da8ca425..69948ee844cc00511f98cf59635dc034462a80b8 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                 <module>test</module>
             </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>