Author: elecharny
Date: Fri Sep 10 11:37:19 2010
New Revision: 995758
URL: http://svn.apache.org/viewvc?rev=995758&view=rev
Log:
Added distribution packages
Added:
mina/trunk/distribution/release.xml
mina/trunk/distribution/sources.xml
Removed:
mina/trunk/distribution/src/
Modified:
mina/trunk/distribution/pom.xml
Modified: mina/trunk/distribution/pom.xml
URL:
http://svn.apache.org/viewvc/mina/trunk/distribution/pom.xml?rev=995758&r1=995757&r2=995758&view=diff
==============================================================================
--- mina/trunk/distribution/pom.xml (original)
+++ mina/trunk/distribution/pom.xml Fri Sep 10 11:37:19 2010
@@ -22,27 +22,20 @@
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>2.0.0-RC2-SNAPSHOT</version>
</parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.apache.mina</groupId>
- <artifactId>build</artifactId>
+ <artifactId>distribution</artifactId>
<packaging>pom</packaging>
- <name>Apache MINA build</name>
- <version>2.0.0-RC2-SNAPSHOT</version>
-
- <scm>
-
<connection>scm:svn:http://svn.apache.org/repos/asf/mina/trunk/distribution</connection>
-
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/mina/trunk/distribution</developerConnection>
- <url>http://svn.apache.org/viewvc/mina/trunk/distribution</url>
- </scm>
+ <name>Apache MINA distribution</name>
<build>
- <finalName>apache-${project.artifactId}-${project.version}</finalName>
+ <finalName>apache-mina-${project.version}</finalName>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
@@ -50,14 +43,14 @@
<executions>
<execution>
- <id>bin</id>
+ <id>release</id>
<phase>package</phase>
<goals>
<goal>attached</goal>
</goals>
<configuration>
<descriptors>
- <descriptor>src/main/assemblies/bin.xml</descriptor>
+ <descriptor>release.xml</descriptor>
</descriptors>
<tarLongFileMode>gnu</tarLongFileMode>
</configuration>
@@ -71,7 +64,7 @@
</goals>
<configuration>
<descriptors>
- <descriptor>src/main/assemblies/src.xml</descriptor>
+ <descriptor>sources.xml</descriptor>
</descriptors>
<tarLongFileMode>gnu</tarLongFileMode>
</configuration>
@@ -79,6 +72,7 @@
</executions>
</plugin>
+
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>rat-maven-plugin</artifactId>
Added: mina/trunk/distribution/release.xml
URL:
http://svn.apache.org/viewvc/mina/trunk/distribution/release.xml?rev=995758&view=auto
==============================================================================
--- mina/trunk/distribution/release.xml (added)
+++ mina/trunk/distribution/release.xml Fri Sep 10 11:37:19 2010
@@ -0,0 +1,104 @@
+<?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>all</id>
+ <formats>
+ <format>tar.gz</format>
+ <format>tar.bz2</format>
+ <format>zip</format>
+ </formats>
+
+ <moduleSets>
+ <moduleSet>
+ <includeSubModules/>
+ <sources>
+
<outputDirectoryMapping>src/${module.basedir.name}</outputDirectoryMapping>
+ <fileSets>
+ <fileSet>
+ <includes>
+ <!-- copy per-module sources into src/mina-*/ -->
+ <include>src/**</include>
+ <include>pom.xml</include>
+ <include>LICENSE*</include>
+ <include>NOTICE*</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+ </sources>
+ <binaries>
+ <!-- copy project jars into dist/ -->
+ <outputDirectory>dist</outputDirectory>
+ <includeDependencies>false</includeDependencies>
+ <unpack>false</unpack>
+ <dependencySets>
+ <dependencySet>
+ <!-- copy project dependencies into lib/ -->
+ <outputDirectory>lib</outputDirectory>
+ <useTransitiveDependencies>true</useTransitiveDependencies>
+ <unpack>false</unpack>
+ <useProjectArtifact>false</useProjectArtifact>
+ <excludes>
+ <!-- during build, the plugin warns that this exclusion is never
+ triggered, but the truth is it works just fine and you can't
+ do without it. -->
+ <exclude>org.apache.mina:*</exclude>
+ <exclude>org.rxtx:*</exclude>
+ </excludes>
+ </dependencySet>
+ </dependencySets>
+ </binaries>
+ </moduleSet>
+ </moduleSets>
+
+ <fileSets>
+ <fileSet>
+ <!-- copy the root pom into src/ -->
+ <outputDirectory>src</outputDirectory>
+ <filtered>false</filtered>
+ <includes>
+ <include>pom.xml</include>
+ </includes>
+ </fileSet>
+
+ <fileSet>
+ <!-- copy the licenses into / -->
+ <outputDirectory></outputDirectory>
+ <filtered>false</filtered>
+ <includes>
+ <include>README*</include>
+ <include>LICENSE*</include>
+ <include>NOTICE*</include>
+ </includes>
+ </fileSet>
+
+ <fileSet>
+ <!-- copy the javadoc into docs/ -->
+ <directory>target/site</directory>
+ <outputDirectory>docs</outputDirectory>
+ <includes>
+ <include>apidocs*/**</include>
+ <include>xref*/**</include>
+ </includes>
+ </fileSet>
+
+ </fileSets>
+</assembly>
+
Added: mina/trunk/distribution/sources.xml
URL:
http://svn.apache.org/viewvc/mina/trunk/distribution/sources.xml?rev=995758&view=auto
==============================================================================
--- mina/trunk/distribution/sources.xml (added)
+++ mina/trunk/distribution/sources.xml Fri Sep 10 11:37:19 2010
@@ -0,0 +1,121 @@
+<?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.
+-->
+
+<!--
+
+OPEN ISSUES:
+
+2008-08-12 - duplicate entries in the lib/ directory. This is a Maven bug
filed
+ here: http://jira.codehaus.org/browse/MASSEMBLY-285. A work-around
+ might be to use the assembly plugin to create an assembly
directory
+ only, and add an antrun to make the final tarballs.
+
+2008-08-12 - I'm not convinced that the xrefs should be includes under docs, as
+ the sources are available under src/ anyway.
+
+2008-08-12 - The assembly plugin supports filtering line endings to unix/win32
+ style. May want to pull the zip and tar.* distributions into two
+ separate release.xml files and use this feature.
+
+-->
+<assembly>
+ <id>all</id>
+ <formats>
+ <format>tar.gz</format>
+ <format>tar.bz2</format>
+ <format>zip</format>
+ </formats>
+
+ <moduleSets>
+ <moduleSet>
+ <includeSubModules/>
+ <sources>
+
<outputDirectoryMapping>src/${module.basedir.name}</outputDirectoryMapping>
+ <fileSets>
+ <fileSet>
+ <includes>
+ <!-- copy per-module sources into src/mina-*/ -->
+ <include>src/**</include>
+ <include>pom.xml</include>
+ <include>LICENSE*</include>
+ <include>NOTICE*</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+ </sources>
+ <binaries>
+ <!-- copy project jars into dist/ -->
+ <outputDirectory>dist</outputDirectory>
+ <includeDependencies>false</includeDependencies>
+ <unpack>false</unpack>
+ <dependencySets>
+ <dependencySet>
+ <!-- copy project dependencies into lib/ -->
+ <outputDirectory>lib</outputDirectory>
+ <useTransitiveDependencies>true</useTransitiveDependencies>
+ <unpack>false</unpack>
+ <useProjectArtifact>false</useProjectArtifact>
+ <excludes>
+ <!-- during build, the plugin warns that this exclusion is never
+ triggered, but the truth is it works just fine and you can't
+ do without it. -->
+ <exclude>org.apache.mina:*</exclude>
+ </excludes>
+ </dependencySet>
+ </dependencySets>
+ </binaries>
+ </moduleSet>
+ </moduleSets>
+
+ <fileSets>
+ <fileSet>
+ <!-- copy the root pom into src/ -->
+ <outputDirectory>src</outputDirectory>
+ <filtered>false</filtered>
+ <includes>
+ <include>pom.xml</include>
+ </includes>
+ </fileSet>
+
+ <fileSet>
+ <!-- copy the licenses into / -->
+ <outputDirectory></outputDirectory>
+ <filtered>false</filtered>
+ <includes>
+ <include>README*</include>
+ <include>LICENSE*</include>
+ <include>NOTICE*</include>
+ </includes>
+ </fileSet>
+
+ <fileSet>
+ <!-- copy the javadoc into docs/ -->
+ <directory>target/site</directory>
+ <outputDirectory>docs</outputDirectory>
+ <includes>
+ <include>apidocs*/**</include>
+ <include>xref*/**</include>
+ </includes>
+ </fileSet>
+
+ </fileSets>
+</assembly>
+