Author: jvanzyl Date: Tue Oct 23 23:58:27 2007 New Revision: 587800 URL: http://svn.apache.org/viewvc?rev=587800&view=rev Log: o put the tycho profile back
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=587800&r1=587799&r2=587800&view=diff ============================================================================== --- maven/components/trunk/maven-embedder/pom.xml (original) +++ maven/components/trunk/maven-embedder/pom.xml Tue Oct 23 23:58:27 2007 @@ -1,5 +1,4 @@ <?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 @@ -18,9 +17,7 @@ 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/maven-v4_0_0.xsd"> +<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/maven-v4_0_0.xsd"> <parent> <artifactId>maven</artifactId> <groupId>org.apache.maven</groupId> @@ -39,7 +36,7 @@ <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-container-default</artifactId> </dependency> - <!-- CLI --> +<!-- CLI --> <dependency> <groupId>commons-cli</groupId> <artifactId>commons-cli</artifactId> @@ -137,6 +134,67 @@ </build> </profile> <profile> + <!-- + | + | This profile is specifically for creating an embedder that can be used for Eclipse integration. We need to + | need a single embedder JAR that looks like an OSGi bundle. + | + --> + <id>tycho</id> + <properties> + <bundleVersion>2.1.0.v20070901-1427</bundleVersion> + </properties> + <build> + <resources> + <resource> + <directory>src/main/resources</directory> + <filtering>true</filtering> + </resource> + </resources> + <plugins> + <plugin> + <artifactId>shade-maven-plugin</artifactId> + <groupId>org.codehaus.mojo</groupId> + <version>1.0-alpha-12</version> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <finalName>maven-embedder-tycho-${bundleVersion}</finalName> + <createDependencyReducedPom>false</createDependencyReducedPom> + <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> + <profile> <id>standard</id> <activation> <activeByDefault>true</activeByDefault> @@ -160,14 +218,14 @@ </execution> </executions> </plugin> - <plugin> - <artifactId>maven-surefire-plugin</artifactId> - <version>2.3</version> - <configuration> - <forkMode>once</forkMode> - </configuration> - </plugin> - </plugins> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <version>2.3</version> + <configuration> + <forkMode>once</forkMode> + </configuration> + </plugin> + </plugins> </build> </profile> <profile> @@ -187,21 +245,4 @@ </build> </profile> </profiles> - - <!-- - <build> - <pluginManagement> - <plugins> - <plugin> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <excludes> - <exclude>**/TestEmbedderLogger.java</exclude> - </excludes> - </configuration> - </plugin> - </plugins> - </pluginManagement> - </build> - --> </project>