You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2007/08/31 06:43:57 UTC

svn commit: r571374 - /maven/components/trunk/maven-embedder/pom.xml

Author: jvanzyl
Date: Thu Aug 30 21:43:57 2007
New Revision: 571374

URL: http://svn.apache.org/viewvc?rev=571374&view=rev
Log:
o creating a profile for the embedder that needs to be created for IntelliJ

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?rev=571374&r1=571373&r2=571374&view=diff
==============================================================================
--- maven/components/trunk/maven-embedder/pom.xml (original)
+++ maven/components/trunk/maven-embedder/pom.xml Thu Aug 30 21:43:57 2007
@@ -149,38 +149,107 @@
   <distributionManagement>
     <site>
       <id>apache.website</id>
-      <!--
       <url>scp://people.apache.org/www/maven.apache.org/embedder/${project.version}/</url>
-      -->
-      <url>scp://people.apache.org/home/jvanzyl/public_html/embedder/</url>
     </site>
   </distributionManagement>
-  
   <profiles>
     <profile>
-      <id>make-dependency-repo</id>
+      <id>idea</id>
       <build>
         <plugins>
           <plugin>
-            <artifactId>maven-assembly-plugin</artifactId>
-            <version>2.2-beta-1</version>
-            <!--
-            <version>2.2-beta-2-SNAPSHOT</version>
-            -->
-            
+            <artifactId>shade-maven-plugin</artifactId>
+            <groupId>org.codehaus.mojo</groupId>
+            <version>1.0-alpha-10</version>
             <executions>
               <execution>
-                <id>make-dependency-repo</id>
                 <phase>package</phase>
                 <goals>
-                  <goal>single</goal>
+                  <goal>shade</goal>
                 </goals>
                 <configuration>
-                  <descriptor>src/main/assembly/repo.xml</descriptor>
+                  <shadedArtifactAttached>true</shadedArtifactAttached>
+                  <createDependencyReducedPom>false</createDependencyReducedPom>
+                  <!-- this will work with shade plugin 1.0-alpha-11-SNAP -->
+                  <keepDependenciesWithProvidedScope>true</keepDependenciesWithProvidedScope>
+                  <transformers>
+                   <transformer implementation="org.codehaus.mojo.shade.resource.ComponentsXmlResourceTransformer"/>
+                  </transformers>
+                  <artifactSet>
+                    <excludes>
+                      <exclude>org.codehaus.plexus:plexus-component-api</exclude>
+                      <exclude>classworlds:classworlds</exclude>
+                      <exclude>junit:junit</exclude>
+                      <exclude>jmock:jmock</exclude>
+                      <exclude>xml-apis:xml-apis</exclude>
+                      <!-- So this is required for the IDEA embedder which already has its own copy of JDOM -->
+                      <exclude>jdom:jdom</exclude>
+                      <exclude>jtidy:jtidy</exclude>
+                    </excludes>
+                  </artifactSet>
+                  <relocations>
+                    <relocation>
+                      <pattern>org.codehaus.plexus.util</pattern>
+                      <excludes>
+                        <exclude>org.codehaus.plexus.util.xml.Xpp3Dom</exclude>
+                        <exclude>org.codehaus.plexus.util.xml.pull.*</exclude>
+                      </excludes>
+                    </relocation>
+                  </relocations>
                 </configuration>
               </execution>
             </executions>
-          </plugin>      
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+    <profile>
+      <id>standard</id>
+      <activation>
+        <activeByDefault>true</activeByDefault>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>shade-maven-plugin</artifactId>
+            <groupId>org.codehaus.mojo</groupId>
+            <version>1.0-alpha-10</version>
+            <executions>
+              <execution>
+                <phase>package</phase>
+                <goals>
+                  <goal>shade</goal>
+                </goals>
+                <configuration>
+                  <shadedArtifactAttached>true</shadedArtifactAttached>
+                  <createDependencyReducedPom>false</createDependencyReducedPom>
+                  <!-- this will work with shade plugin 1.0-alpha-11-SNAP -->
+                  <keepDependenciesWithProvidedScope>true</keepDependenciesWithProvidedScope>
+                  <transformers>
+                   <transformer implementation="org.codehaus.mojo.shade.resource.ComponentsXmlResourceTransformer"/>
+                  </transformers>
+                  <artifactSet>
+                    <excludes>
+                      <exclude>org.codehaus.plexus:plexus-component-api</exclude>
+                      <exclude>classworlds:classworlds</exclude>
+                      <exclude>junit:junit</exclude>
+                      <exclude>jmock:jmock</exclude>
+                      <exclude>xml-apis:xml-apis</exclude>
+                    </excludes>
+                  </artifactSet>
+                  <relocations>
+                    <relocation>
+                      <pattern>org.codehaus.plexus.util</pattern>
+                      <excludes>
+                        <exclude>org.codehaus.plexus.util.xml.Xpp3Dom</exclude>
+                        <exclude>org.codehaus.plexus.util.xml.pull.*</exclude>
+                      </excludes>
+                    </relocation>
+                  </relocations>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
         </plugins>
       </build>
     </profile>