Skip to content

Commit

Permalink
distribution management
Browse files Browse the repository at this point in the history
  • Loading branch information
jvermillard committed Jun 20, 2013
1 parent 90719cf commit ae054ee
Show file tree
Hide file tree
Showing 4 changed files with 336 additions and 0 deletions.
120 changes: 120 additions & 0 deletions distribution/pom.xml
Original file line number Diff line number Diff line change
@@ -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>

90 changes: 90 additions & 0 deletions distribution/src/main/assembly/bin.xml
Original file line number Diff line number Diff line change
@@ -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>
80 changes: 80 additions & 0 deletions distribution/src/main/assembly/src.xml
Original file line number Diff line number Diff line change
@@ -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>
46 changes: 46 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit ae054ee

Please sign in to comment.