moving to dev ml. fully agree. But my question here : is do we have to do this for multimodules as the tarball in root contains all sources from modules ?
-- Olivier 2009/8/1 Jason van Zyl <[email protected]>: > Ok, we need to figure out how to do this generally. I really don't want to > see this in every POM we have. Brian, is there no way to share this? > > On 31-Jul-09, at 3:06 PM, [email protected] wrote: > >> Author: olamy >> Date: Fri Jul 31 22:06:43 2009 >> New Revision: 799755 >> >> URL: http://svn.apache.org/viewvc?rev=799755&view=rev >> Log: >> Add an ASF-compliant source release assembly >> >> Added: >> maven/scm/trunk/src/main/ >> maven/scm/trunk/src/main/assembly/ >> maven/scm/trunk/src/main/assembly/source-release.xml (with props) >> Modified: >> maven/scm/trunk/pom.xml >> >> Modified: maven/scm/trunk/pom.xml >> URL: >> http://svn.apache.org/viewvc/maven/scm/trunk/pom.xml?rev=799755&r1=799754&r2=799755&view=diff >> >> ============================================================================== >> --- maven/scm/trunk/pom.xml (original) >> +++ maven/scm/trunk/pom.xml Fri Jul 31 22:06:43 2009 >> @@ -318,5 +318,33 @@ >> </plugins> >> </reporting> >> </profile> >> + <profile> >> + <id>release</id> >> + <build> >> + <plugins> >> + <plugin> >> + <!-- Using this plugin configuration to produce a buildable >> project source distro, >> + per the discussion on memb...@asf regarding what >> constitutes a valid release. >> + --> >> + <artifactId>maven-assembly-plugin</artifactId> >> + <executions> >> + <execution> >> + <id>make-project-src-distro</id> >> + <phase>package</phase> >> + <goals> >> + <goal>single</goal> >> + </goals> >> + <configuration> >> + <descriptors> >> + >> <descriptor>src/main/assembly/source-release.xml</descriptor> >> + </descriptors> >> + <tarLongFileMode>gnu</tarLongFileMode> >> + </configuration> >> + </execution> >> + </executions> >> + </plugin> >> + </plugins> >> + </build> >> + </profile> >> </profiles> >> </project> >> >> Added: maven/scm/trunk/src/main/assembly/source-release.xml >> URL: >> http://svn.apache.org/viewvc/maven/scm/trunk/src/main/assembly/source-release.xml?rev=799755&view=auto >> >> ============================================================================== >> --- maven/scm/trunk/src/main/assembly/source-release.xml (added) >> +++ maven/scm/trunk/src/main/assembly/source-release.xml Fri Jul 31 >> 22:06:43 2009 >> @@ -0,0 +1,49 @@ >> +<?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>source-release</id> >> + <formats> >> + <format>tar.gz</format> >> + <format>tar.bz2</format> >> + <format>zip</format> >> + </formats> >> + <fileSets> >> + <fileSet> >> + <directory>${project.basedir}</directory> >> + <outputDirectory>/</outputDirectory> >> + <useDefaultExcludes>true</useDefaultExcludes> >> + <excludes> >> + <exclude>**/*.iws</exclude> >> + <exclude>**/*.ipr</exclude> >> + <exclude>**/*.iml</exclude> >> + <exclude>*.log</exclude> >> + <exclude>target/**</exclude> >> + <exclude>**/.settings/**</exclude> >> + <exclude>**/*.classpath</exclude> >> + <exclude>**/*.project</exclude> >> + </excludes> >> + </fileSet> >> + <fileSet> >> + >> <directory>${project.build.directory}/maven-shared-archive-resources/META-INF</directory> >> + <outputDirectory>/</outputDirectory> >> + </fileSet> >> + </fileSets> >> +</assembly> >> >> Propchange: maven/scm/trunk/src/main/assembly/source-release.xml >> >> ------------------------------------------------------------------------------ >> svn:eol-style = native >> >> Propchange: maven/scm/trunk/src/main/assembly/source-release.xml >> >> ------------------------------------------------------------------------------ >> svn:keywords = Author Date Id Revision >> >> > > Thanks, > > Jason > > ---------------------------------------------------------- > Jason van Zyl > Founder, Apache Maven > http://twitter.com/jvanzyl > http://twitter.com/SonatypeNexus > http://twitter.com/SonatypeM2E > ---------------------------------------------------------- > > believe nothing, no matter where you read it, > or who has said it, > not even if i have said it, > unless it agrees with your own reason > and your own common sense. > > -- Buddha > > -- Olivier --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
