You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jd...@apache.org on 2007/08/09 19:48:36 UTC

svn commit: r564306 - in /maven/components/trunk/maven-embedder: pom.xml src/main/assembly/repo.xml

Author: jdcasey
Date: Thu Aug  9 10:48:21 2007
New Revision: 564306

URL: http://svn.apache.org/viewvc?view=rev&rev=564306
Log:
Adding new assembly descritor to assemble a repository containing the dependencies for maven (pre-shaded), and adding a profile to the POM to allow us to trigger the creation of this new assembly. This is valuable for plugins and other components that list one or more maven artifacts as dependencies, so they can be built without rebuilding all of maven.

Added:
    maven/components/trunk/maven-embedder/src/main/assembly/repo.xml   (with props)
Modified:
    maven/components/trunk/maven-embedder/pom.xml

Modified: maven/components/trunk/maven-embedder/pom.xml
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-embedder/pom.xml?view=diff&rev=564306&r1=564305&r2=564306
==============================================================================
--- maven/components/trunk/maven-embedder/pom.xml (original)
+++ maven/components/trunk/maven-embedder/pom.xml Thu Aug  9 10:48:21 2007
@@ -79,16 +79,17 @@
       <plugin>
         <artifactId>maven-assembly-plugin</artifactId>
         <version>2.2-beta-1</version>
-        <configuration>
-          <descriptor>src/main/assembly/bin.xml</descriptor>
-          <finalName>maven-${version}</finalName>
-        </configuration>
         <executions>
           <execution>
+            <id>create-distro</id>
             <phase>package</phase>
             <goals>
               <goal>single</goal>
             </goals>
+            <configuration>
+              <descriptor>src/main/assembly/bin.xml</descriptor>
+              <finalName>maven-${version}</finalName>
+            </configuration>
           </execution>
         </executions>
       </plugin>      
@@ -150,4 +151,31 @@
       <url>scp://people.apache.org/home/jvanzyl/public_html/embedder/</url>
     </site>
   </distributionManagement>
+  
+  <profiles>
+    <profile>
+      <id>make-dependency-repo</id>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-assembly-plugin</artifactId>
+            <version>2.2-beta-2-SNAPSHOT</version>
+            
+            <executions>
+              <execution>
+                <id>make-dependency-repo</id>
+                <phase>package</phase>
+                <goals>
+                  <goal>single</goal>
+                </goals>
+                <configuration>
+                  <descriptor>src/main/assembly/repo.xml</descriptor>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>      
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>

Added: maven/components/trunk/maven-embedder/src/main/assembly/repo.xml
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-embedder/src/main/assembly/repo.xml?view=auto&rev=564306
==============================================================================
--- maven/components/trunk/maven-embedder/src/main/assembly/repo.xml (added)
+++ maven/components/trunk/maven-embedder/src/main/assembly/repo.xml Thu Aug  9 10:48:21 2007
@@ -0,0 +1,35 @@
+<!--
+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>dependency-repository</id>
+  <formats>
+    <format>tar.gz</format>
+    <format>tar.bz2</format>
+    <format>zip</format>
+  </formats>
+  <baseDirectory>repository</baseDirectory>
+  <repositories>
+    <repository>
+      <includeMetadata>true</includeMetadata>
+      <scope>runtime</scope>
+      <outputDirectory>/</outputDirectory>
+    </repository>
+  </repositories>
+</assembly>

Propchange: maven/components/trunk/maven-embedder/src/main/assembly/repo.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/components/trunk/maven-embedder/src/main/assembly/repo.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"