Updated Branches: refs/heads/trunk 90719cf40 -> ae054ee68
distribution management Project: http://git-wip-us.apache.org/repos/asf/mina/repo Commit: http://git-wip-us.apache.org/repos/asf/mina/commit/ae054ee6 Tree: http://git-wip-us.apache.org/repos/asf/mina/tree/ae054ee6 Diff: http://git-wip-us.apache.org/repos/asf/mina/diff/ae054ee6 Branch: refs/heads/trunk Commit: ae054ee68babf395349b93fb1ed5b06756d65799 Parents: 90719cf Author: jvermillard <[email protected]> Authored: Thu Jun 20 22:17:09 2013 +0200 Committer: jvermillard <[email protected]> Committed: Thu Jun 20 22:17:09 2013 +0200 ---------------------------------------------------------------------- distribution/pom.xml | 120 ++++++++++++++++++++++++++++ distribution/src/main/assembly/bin.xml | 90 +++++++++++++++++++++ distribution/src/main/assembly/src.xml | 80 +++++++++++++++++++ pom.xml | 46 +++++++++++ 4 files changed, 336 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mina/blob/ae054ee6/distribution/pom.xml ---------------------------------------------------------------------- diff --git a/distribution/pom.xml b/distribution/pom.xml new file mode 100644 index 0000000..7dfdbb4 --- /dev/null +++ b/distribution/pom.xml @@ -0,0 +1,120 @@ +<?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> + <artifactId>mina-parent</artifactId> + <groupId>org.apache.mina</groupId> + <version>3.0.0-M1-SNAPSHOT</version> + </parent> + + <artifactId>distribution</artifactId> + <packaging>pom</packaging> + <name>Apache MINA Distribution</name> + + <properties> + <docsFolder>${project.build.directory}/docs</docsFolder> + </properties> + + <build> + <finalName>apache-mina-${project.version}</finalName> + + <!-- Here, we create the src and bin packages --> + <plugins> + <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <configuration> + <descriptors> + <descriptor>src/main/assembly/bin.xml</descriptor> + <descriptor>src/main/assembly/src.xml</descriptor> + </descriptors> + <tarLongFileMode>gnu</tarLongFileMode> + </configuration> + + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + </execution> + </executions> + </plugin> + + <plugin> + <artifactId>maven-deploy-plugin</artifactId> + <configuration> + <skip>true</skip> + </configuration> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>mina-core</artifactId> + <version>${project.version}</version> + </dependency> + + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>mina-examples</artifactId> + <version>${project.version}</version> + </dependency> + + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>mina-codec</artifactId> + <version>${project.version}</version> + </dependency> + + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>mina-http</artifactId> + <version>${project.version}</version> + </dependency> + + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>mina-coap</artifactId> + <version>${project.version}</version> + </dependency> + + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>mina-protobuf</artifactId> + <version>${project.version}</version> + </dependency> + + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>mina-thrift</artifactId> + <version>${project.version}</version> + </dependency> + + + <!-- We don't include distribution nor benchmark as a dependency : it's not part of the release --> + </dependencies> + +</project> + http://git-wip-us.apache.org/repos/asf/mina/blob/ae054ee6/distribution/src/main/assembly/bin.xml ---------------------------------------------------------------------- diff --git a/distribution/src/main/assembly/bin.xml b/distribution/src/main/assembly/bin.xml new file mode 100644 index 0000000..034d4e9 --- /dev/null +++ b/distribution/src/main/assembly/bin.xml @@ -0,0 +1,90 @@ +<?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> + <id>bin</id> + <formats> + <format>tar.gz</format> + <format>tar.bz2</format> + <format>zip</format> + </formats> + + <fileSets> + <!-- Copy licenses into '/' --> + <fileSet> + <directory>..</directory> + <outputDirectory></outputDirectory> + <includes> + <include>README*</include> + <include>LICENSE*</include> + </includes> + </fileSet> + + <!-- Copy Javadoc into '/docs' --> + <fileSet> + <directory>../target/site</directory> + <outputDirectory>docs</outputDirectory> + <includes> + <include>apidocs*/**</include> + <include>xref*/**</include> + </includes> + </fileSet> + + </fileSets> + + <files> + <file> + <source>../NOTICE-bin.txt</source> + <outputDirectory></outputDirectory> + <destName>NOTICE.txt</destName> + </file> + </files> + + <dependencySets> + <!-- Copy Mina modules into '/dist' --> + <dependencySet> + <outputDirectory>dist</outputDirectory> + <includes> + <!-- Including only Mina modules --> + <include>${project.groupId}:*</include> + </includes> + + <excludes> + <!-- Excluding sources jars --> + <exclude>*:sources</exclude> + + <!-- Excluding transport-serial jar --> + <exclude>${project.groupId}:mina-transport-serial</exclude> + </excludes> + </dependencySet> + + <!-- Copy Mina dependencies into '/lib' --> + <dependencySet> + <outputDirectory>lib</outputDirectory> + <excludes> + <!-- Excluding Mina modules --> + <exclude>${project.groupId}:*</exclude> + + <!-- Excluding sources jars --> + <exclude>*:sources</exclude> + </excludes> + </dependencySet> + </dependencySets> +</assembly> http://git-wip-us.apache.org/repos/asf/mina/blob/ae054ee6/distribution/src/main/assembly/src.xml ---------------------------------------------------------------------- diff --git a/distribution/src/main/assembly/src.xml b/distribution/src/main/assembly/src.xml new file mode 100644 index 0000000..2a2180d --- /dev/null +++ b/distribution/src/main/assembly/src.xml @@ -0,0 +1,80 @@ +<?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> + <id>src</id> + <formats> + <format>tar.gz</format> + <format>tar.bz2</format> + <format>zip</format> + </formats> + + <fileSets> + <!-- Copy licenses into '/' --> + <fileSet> + <directory>..</directory> + <outputDirectory></outputDirectory> + <includes> + <include>README*</include> + <include>LICENSE*</include> + <include>NOTICE*</include> + </includes> + </fileSet> + + <!-- Copy Javadoc into '/docs' --> + <fileSet> + <directory>../target/site</directory> + <outputDirectory>docs</outputDirectory> + <includes> + <include>apidocs*/**</include> + <include>xref*/**</include> + </includes> + </fileSet> + + <!-- Copy sources into '/src' --> + <fileSet> + <directory>..</directory> + <outputDirectory>src</outputDirectory> + <includes> + <include>**/*</include> + </includes> + <excludes> + <exclude>.git/**</exclude> + <exclude>KEYS</exclude> + <exclude>LICENSE*.txt</exclude> + <exclude>NOTICE.txt</exclude> + <exclude>**/target</exclude> + <exclude>**/target/**</exclude> + <exclude>**/.settings</exclude> + <exclude>**/.settings/**</exclude> + <exclude>**/.classpath</exclude> + <exclude>**/.project</exclude> + <exclude>**/*.gen</exclude> + <exclude>**/.wtpmodules</exclude> + <exclude>**/surefire*</exclude> + <exclude>**/cobertura.ser</exclude> + <exclude>**/velocity.log</exclude> + <exclude>distribution</exclude> + <exclude>distribution/**</exclude> + </excludes> + </fileSet> + </fileSets> + +</assembly> http://git-wip-us.apache.org/repos/asf/mina/blob/ae054ee6/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index e6540fa..cf6bb90 100644 --- a/pom.xml +++ b/pom.xml @@ -671,5 +671,51 @@ <module>benchmarks</module> </modules> </profile> + + <profile> + <id>apache-release</id> + + <build> + <plugins> + <plugin> + <artifactId>maven-javadoc-plugin</artifactId> + <executions> + <execution> + <phase>install</phase> + + <goals> + <goal>javadoc</goal> + </goals> + <configuration> + <aggregate>true</aggregate> + </configuration> + </execution> + </executions> + </plugin> + + <plugin> + <artifactId>maven-jxr-plugin</artifactId> + <configuration> + <aggregate>true</aggregate> + </configuration> + + <executions> + <execution> + <phase>install</phase> + + <goals> + <goal>jxr</goal> + <goal>test-jxr</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + + <modules> + <module>distribution</module> + </modules> + </profile> </profiles> </project>
