diff options
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 67 |
1 files changed, 67 insertions, 0 deletions
@@ -43,6 +43,9 @@ <!-- Atmosphere versions --> <atmosphere.runtime.version>2.2.7.vaadin1</atmosphere.runtime.version> <atmosphere.js.version>2.2.6.vaadin4</atmosphere.js.version> + + <!-- Dependency unpack directory --> + <dependency.unpack.directory>${project.build.directory}/dependency-unpack</dependency.unpack.directory> </properties> <!-- TODO: remove this after maven plugin has been released --> @@ -96,6 +99,7 @@ </plugin> <plugin> <artifactId>maven-resources-plugin</artifactId> + <!-- Downgraded due to filtering related bug --> <version>2.6</version> </plugin> <plugin> @@ -127,6 +131,11 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.10</version> + <configuration> + <outputDirectory>${dependency.unpack.directory}</outputDirectory> + <overWriteReleases>false</overWriteReleases> + <overWriteSnapshots>true</overWriteSnapshots> + </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> @@ -134,6 +143,15 @@ <version>1.4.0</version> </plugin> <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <version>1.10</version> + </plugin> + <plugin> + <artifactId>maven-source-plugin</artifactId> + <version>3.0.0</version> + </plugin> + <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> @@ -165,6 +183,33 @@ </plugin> </plugins> </pluginManagement> + + <plugins> + <!-- Unpacked Dependencies as resource --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + + <!-- Needs extra resource folder for unpacked dependencies --> + <executions> + <execution> + <id>add-dependency-resources</id> + <phase>generate-resources</phase> + <goals> + <goal>add-resource</goal> + </goals> + <configuration> + <resources> + <resource> + <directory>${dependency.unpack.directory}</directory> + <filtering>false</filtering> + </resource> + </resources> + </configuration> + </execution> + </executions> + </plugin> + </plugins> </build> <profiles> @@ -176,6 +221,28 @@ <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> + </plugins> + </build> </profile> </profiles> |