Repository: incubator-beam Updated Branches: refs/heads/master c0b67ab12 -> 523e820b0
[BEAM-319][BEAM-320] Add distributions module responsible of packaging source and binaries distributions. Project: http://git-wip-us.apache.org/repos/asf/incubator-beam/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam/commit/6adcdd09 Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam/tree/6adcdd09 Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam/diff/6adcdd09 Branch: refs/heads/master Commit: 6adcdd09c94f1ea2bf57ddefb934230aa1cf4a85 Parents: c0b67ab Author: Jean-Baptiste Onofré <[email protected]> Authored: Fri Jun 3 13:05:58 2016 +0200 Committer: Jean-Baptiste Onofré <[email protected]> Committed: Mon Jun 6 21:46:22 2016 +0200 ---------------------------------------------------------------------- distributions/pom.xml | 62 ++++++++++++++++++++ distributions/src/main/assembly/src.xml | 55 +++++++++++++++++ pom.xml | 25 +------- sdks/java/build-tools/src/main/assembly/src.xml | 55 ----------------- 4 files changed, 118 insertions(+), 79 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/6adcdd09/distributions/pom.xml ---------------------------------------------------------------------- diff --git a/distributions/pom.xml b/distributions/pom.xml new file mode 100644 index 0000000..03bd72a --- /dev/null +++ b/distributions/pom.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.beam</groupId> + <artifactId>parent</artifactId> + <version>0.2.0-incubating-SNAPSHOT</version> + <relativePath>../pom.xml</relativePath> + </parent> + + <artifactId>apache-beam</artifactId> + <packaging>pom</packaging> + <name>Apache Beam :: Distributions</name> + + <profiles> + <profile> + <id>release</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <executions> + <execution> + <id>src</id> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + <configuration> + <finalName>apache-beam-${project.version}</finalName> + <descriptors> + <descriptor>src/main/assembly/src.xml</descriptor> + </descriptors> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/6adcdd09/distributions/src/main/assembly/src.xml ---------------------------------------------------------------------- diff --git a/distributions/src/main/assembly/src.xml b/distributions/src/main/assembly/src.xml new file mode 100644 index 0000000..a823267 --- /dev/null +++ b/distributions/src/main/assembly/src.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd"> + + <id>src</id> + + <formats> + <format>zip</format> + </formats> + + <fileSets> + <fileSet> + <directory>${basedir}</directory> + <outputDirectory>/</outputDirectory> + <excludes> + <!-- NB: the exclude here should be sync with content of .gitignore --> + <!-- Ignore files generated by the Maven build process --> + <exclude>**/target/**</exclude> + <exclude>**/bin/**</exclude> + <!-- Ignore IntelliJ files --> + <exclude>**/.idea/**</exclude> + <exclude>**/*.iml</exclude> + <exclude>**/*.ipr</exclude> + <exclude>**/*.iws</exclude> + <!-- Ignore Eclipse files --> + <exclude>**/.classpath</exclude> + <exclude>**/.project</exclude> + <exclude>**/.factorypath</exclude> + <exclude>**/.checkstyle</exclude> + <exclude>**/.settings/**</exclude> + <!-- The build process generates the dependency-reduced POM, but it shouldn't be part of the src distro --> + <exclude>**/dependency-reduced-pom.xml</exclude> + <!-- Ignore files that end with '~', since they are most likely auto-save files produced by a text editor --> + <exclude>**/*~</exclude> + </excludes> + </fileSet> + </fileSets> + +</assembly> http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/6adcdd09/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 2a6e584..d602459 100644 --- a/pom.xml +++ b/pom.xml @@ -140,6 +140,7 @@ build order. --> <module>sdks/java/maven-archetypes</module> <module>examples</module> + <module>distributions</module> </modules> <profiles> @@ -200,26 +201,6 @@ </plugin> <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-assembly-plugin</artifactId> - <executions> - <execution> - <id>src</id> - <phase>package</phase> - <goals> - <goal>single</goal> - </goals> - <configuration> - <finalName>apache-beam-${project.version}</finalName> - <descriptors> - <descriptor>sdks/java/build-tools/src/main/assembly/src.xml</descriptor> - </descriptors> - </configuration> - </execution> - </executions> - </plugin> - - <plugin> <groupId>org.apache.rat</groupId> <artifactId>apache-rat-plugin</artifactId> <version>0.11</version> @@ -257,10 +238,6 @@ <groupId>org.apache.rat</groupId> <artifactId>apache-rat-plugin</artifactId> </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-assembly-plugin</artifactId> - </plugin> </plugins> </build> </profile> http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/6adcdd09/sdks/java/build-tools/src/main/assembly/src.xml ---------------------------------------------------------------------- diff --git a/sdks/java/build-tools/src/main/assembly/src.xml b/sdks/java/build-tools/src/main/assembly/src.xml deleted file mode 100644 index a823267..0000000 --- a/sdks/java/build-tools/src/main/assembly/src.xml +++ /dev/null @@ -1,55 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd"> - - <id>src</id> - - <formats> - <format>zip</format> - </formats> - - <fileSets> - <fileSet> - <directory>${basedir}</directory> - <outputDirectory>/</outputDirectory> - <excludes> - <!-- NB: the exclude here should be sync with content of .gitignore --> - <!-- Ignore files generated by the Maven build process --> - <exclude>**/target/**</exclude> - <exclude>**/bin/**</exclude> - <!-- Ignore IntelliJ files --> - <exclude>**/.idea/**</exclude> - <exclude>**/*.iml</exclude> - <exclude>**/*.ipr</exclude> - <exclude>**/*.iws</exclude> - <!-- Ignore Eclipse files --> - <exclude>**/.classpath</exclude> - <exclude>**/.project</exclude> - <exclude>**/.factorypath</exclude> - <exclude>**/.checkstyle</exclude> - <exclude>**/.settings/**</exclude> - <!-- The build process generates the dependency-reduced POM, but it shouldn't be part of the src distro --> - <exclude>**/dependency-reduced-pom.xml</exclude> - <!-- Ignore files that end with '~', since they are most likely auto-save files produced by a text editor --> - <exclude>**/*~</exclude> - </excludes> - </fileSet> - </fileSets> - -</assembly>
