diff options
-rw-r--r-- | all/pom.xml | 1 | ||||
-rw-r--r-- | buildhelpers/pom.xml | 12 | ||||
-rw-r--r-- | client-compiler/pom.xml | 8 | ||||
-rw-r--r-- | client/pom.xml | 9 | ||||
-rw-r--r-- | liferay/liferay-assembly-descriptor.xml | 2 | ||||
-rw-r--r-- | liferay/pom.xml | 2 | ||||
-rw-r--r-- | pom.xml | 67 | ||||
-rw-r--r-- | server/pom.xml | 8 | ||||
-rw-r--r-- | shared/pom.xml | 8 | ||||
-rw-r--r-- | shared/src/main/java-templates/com/vaadin/shared/Version.java | 4 | ||||
-rw-r--r-- | themes/pom.xml | 9 | ||||
-rw-r--r-- | uitest/pom.xml | 3 | ||||
-rw-r--r-- | widgets/pom.xml | 10 |
13 files changed, 103 insertions, 40 deletions
diff --git a/all/pom.xml b/all/pom.xml index 436e92ab93..97fb714f0e 100644 --- a/all/pom.xml +++ b/all/pom.xml @@ -80,7 +80,6 @@ <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> - <version>1.10</version> <executions> <execution> <phase>initialize</phase> diff --git a/buildhelpers/pom.xml b/buildhelpers/pom.xml index 977f44dea4..48b558b932 100644 --- a/buildhelpers/pom.xml +++ b/buildhelpers/pom.xml @@ -63,5 +63,17 @@ </configuration> </plugin> </plugins> + + <!-- Skip sources jar --> + <pluginManagement> + <plugins> + <plugin> + <artifactId>maven-source-plugin</artifactId> + <configuration> + <skipSource>true</skipSource> + </configuration> + </plugin> + </plugins> + </pluginManagement> </build> </project> diff --git a/client-compiler/pom.xml b/client-compiler/pom.xml index f44bd4dcca..fbdd0d81a4 100644 --- a/client-compiler/pom.xml +++ b/client-compiler/pom.xml @@ -214,7 +214,7 @@ <executions> <execution> <id>unpack-dependencies</id> - <phase>process-classes</phase> + <phase>generate-resources</phase> <goals> <goal>unpack</goal> </goals> @@ -248,9 +248,6 @@ </excludes> </artifactItem> </artifactItems> - <outputDirectory>${project.build.directory}/classes</outputDirectory> - <overWriteReleases>false</overWriteReleases> - <overWriteSnapshots>true</overWriteSnapshots> </configuration> </execution> </executions> @@ -267,7 +264,7 @@ <goal>copy-resources</goal> </goals> <configuration> - <outputDirectory>${project.build.directory}/classes</outputDirectory> + <outputDirectory>${project.build.outputDirectory}</outputDirectory> <resources> <resource> <directory>src/main/java</directory> @@ -320,5 +317,4 @@ </plugins> </build> <!--todo .javadoc.jar file --> - <!--todo .sources.java --> </project> diff --git a/client/pom.xml b/client/pom.xml index 0e4932936f..4cd5c5b384 100644 --- a/client/pom.xml +++ b/client/pom.xml @@ -53,7 +53,7 @@ <version>${javax.validation.version}</version> <scope>provided</scope> </dependency> - + <dependency> <groupId>javax.validation</groupId> <artifactId>validation-api</artifactId> @@ -101,7 +101,7 @@ <executions> <execution> <id>unpack-dependencies</id> - <phase>prepare-package</phase> + <phase>generate-resources</phase> <goals> <goal>unpack</goal> </goals> @@ -129,9 +129,6 @@ <excludes>META-INF/**</excludes> </artifactItem> </artifactItems> - <outputDirectory>${project.build.directory}/classes</outputDirectory> - <overWriteReleases>false</overWriteReleases> - <overWriteSnapshots>true</overWriteSnapshots> </configuration> </execution> </executions> @@ -150,7 +147,7 @@ <goal>copy-resources</goal> </goals> <configuration> - <outputDirectory>${project.build.directory}/classes</outputDirectory> + <outputDirectory>${project.build.outputDirectory}</outputDirectory> <resources> <resource> <directory>src/main/resources</directory> diff --git a/liferay/liferay-assembly-descriptor.xml b/liferay/liferay-assembly-descriptor.xml index 18708516fc..64766813cc 100644 --- a/liferay/liferay-assembly-descriptor.xml +++ b/liferay/liferay-assembly-descriptor.xml @@ -9,7 +9,7 @@ <fileSets> <fileSet> <outputDirectory/> - <directory>${project.build.directory}/dependency</directory> + <directory>${dependency.unpack.directory}</directory> <includes> <include>**</include> </includes> diff --git a/liferay/pom.xml b/liferay/pom.xml index 70164a96ba..9f30b4ea7e 100644 --- a/liferay/pom.xml +++ b/liferay/pom.xml @@ -55,7 +55,7 @@ <executions> <execution> <id>unpack</id> - <phase>prepare-package</phase> + <phase>generate-resources</phase> <goals> <goal>unpack</goal> </goals> @@ -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> diff --git a/server/pom.xml b/server/pom.xml index 722115d90b..b713d949fc 100644 --- a/server/pom.xml +++ b/server/pom.xml @@ -168,7 +168,6 @@ <build> <plugins> - <!-- Copy needed GWT dependencies to package --> <plugin> <groupId>org.apache.maven.plugins</groupId> @@ -176,7 +175,7 @@ <executions> <execution> <id>unpack-dependencies</id> - <phase>prepare-package</phase> + <phase>generate-resources</phase> <goals> <goal>unpack</goal> </goals> @@ -188,9 +187,6 @@ </artifactItem> </artifactItems> <includes>com/google/gwt/*/server/**</includes> - <outputDirectory>${project.build.directory}/classes</outputDirectory> - <overWriteReleases>false</overWriteReleases> - <overWriteSnapshots>true</overWriteSnapshots> </configuration> </execution> </executions> @@ -209,7 +205,7 @@ <goal>copy-resources</goal> </goals> <configuration> - <outputDirectory>${project.build.directory}/classes</outputDirectory> + <outputDirectory>${project.build.outputDirectory}</outputDirectory> <resources> <resource> <directory>src/main/resources</directory> diff --git a/shared/pom.xml b/shared/pom.xml index 1825a6dfcf..21ea7fc9bf 100644 --- a/shared/pom.xml +++ b/shared/pom.xml @@ -85,7 +85,7 @@ <executions> <execution> <id>unpack-dependencies</id> - <phase>prepare-package</phase> + <phase>generate-resources</phase> <goals> <goal>unpack</goal> </goals> @@ -112,15 +112,11 @@ </includes> </artifactItem> </artifactItems> - <outputDirectory>${project.build.directory}/classes</outputDirectory> - <overWriteReleases>false</overWriteReleases> - <overWriteSnapshots>true</overWriteSnapshots> </configuration> </execution> </executions> </plugin> - <plugin> <artifactId>maven-resources-plugin</artifactId> <executions> @@ -133,7 +129,7 @@ <goal>copy-resources</goal> </goals> <configuration> - <outputDirectory>${project.build.directory}/classes</outputDirectory> + <outputDirectory>${project.build.outputDirectory}</outputDirectory> <resources> <resource> <directory>src/main/java</directory> diff --git a/shared/src/main/java-templates/com/vaadin/shared/Version.java b/shared/src/main/java-templates/com/vaadin/shared/Version.java index 7bcc8c6f65..d401105ed0 100644 --- a/shared/src/main/java-templates/com/vaadin/shared/Version.java +++ b/shared/src/main/java-templates/com/vaadin/shared/Version.java @@ -47,10 +47,10 @@ public class Version implements Serializable { /* Initialize version numbers from string replaced by build-script. */ static { - if ("${vaadin.version}".equals("${" + "vaadin.version" + "}")) { + if ("${project.version}".equals("${" + "project.version" + "}")) { VERSION = "9.9.9.INTERNAL-DEBUG-BUILD"; } else { - VERSION = "${vaadin.version}"; + VERSION = "${project.version}"; } final String[] digits = VERSION.split("\\.", 4); VERSION_MAJOR = Integer.parseInt(digits[0]); diff --git a/themes/pom.xml b/themes/pom.xml index eb8990b6df..c75a491bb4 100644 --- a/themes/pom.xml +++ b/themes/pom.xml @@ -219,7 +219,14 @@ <pluginManagement> <plugins> - <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.--> + <plugin> + <artifactId>maven-source-plugin</artifactId> + <configuration> + <skipSource>true</skipSource> + </configuration> + </plugin> + <!--This plugin's configuration is used to store Eclipse m2e settings + only. It has no influence on the Maven build itself. --> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> diff --git a/uitest/pom.xml b/uitest/pom.xml index 03bbcd2db4..3f73d51253 100644 --- a/uitest/pom.xml +++ b/uitest/pom.xml @@ -252,7 +252,6 @@ <plugins> <plugin> <artifactId>maven-clean-plugin</artifactId> - <version>3.0.0</version> <configuration> <filesets> <fileset> @@ -319,7 +318,6 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-install-plugin</artifactId> - <version>2.4</version> <configuration> <skip>true</skip> </configuration> @@ -327,7 +325,6 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> - <version>2.7</version> <configuration> <skip>true</skip> </configuration> diff --git a/widgets/pom.xml b/widgets/pom.xml index fda3459365..43d0b21c34 100644 --- a/widgets/pom.xml +++ b/widgets/pom.xml @@ -89,7 +89,7 @@ <executions> <execution> <id>unpack-dependencies</id> - <phase>prepare-package</phase> + <phase>generate-resources</phase> <goals> <goal>unpack</goal> </goals> @@ -156,9 +156,6 @@ <outputDirectory>${project.build.directory}/themes</outputDirectory> </artifactItem> </artifactItems> - <outputDirectory>${project.build.directory}/classes</outputDirectory> - <overWriteReleases>false</overWriteReleases> - <overWriteSnapshots>true</overWriteSnapshots> </configuration> </execution> </executions> @@ -175,7 +172,7 @@ <goal>copy-resources</goal> </goals> <configuration> - <outputDirectory>${project.build.directory}/classes</outputDirectory> + <outputDirectory>${project.build.outputDirectory}</outputDirectory> <resources> <resource> <directory>src/main/java</directory> @@ -192,8 +189,7 @@ <goal>copy-resources</goal> </goals> <configuration> - <outputDirectory>${project.build.directory}/classes/com/vaadin/themes/public - </outputDirectory> + <outputDirectory>${project.build.outputDirectory}/com/vaadin/themes/public</outputDirectory> <resources> <resource> <directory>${project.build.directory}/themes/VAADIN/themes</directory> |