diff options
Diffstat (limited to 'org.eclipse.m2e.maven.indexer/pom.xml')
-rw-r--r-- | org.eclipse.m2e.maven.indexer/pom.xml | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/org.eclipse.m2e.maven.indexer/pom.xml b/org.eclipse.m2e.maven.indexer/pom.xml new file mode 100644 index 00000000..b9584515 --- /dev/null +++ b/org.eclipse.m2e.maven.indexer/pom.xml @@ -0,0 +1,118 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright (c) 2008 Sonatype, Inc. + All rights reserved. This program and the accompanying materials + are made available under the terms of the Eclipse Public License v1.0 + which accompanies this distribution, and is available at + http://www.eclipse.org/legal/epl-v10.html +--> +<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/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.eclipse.m2e</groupId> + <artifactId>org.eclipse.m2e.parent</artifactId> + <version>0.13.0-SNAPSHOT</version> + <relativePath>../org.eclipse.m2e.parent</relativePath> + </parent> + + <artifactId>org.eclipse.m2e.maven.indexer</artifactId> + <packaging>eclipse-plugin</packaging> + + <name>Nexus Indexer Bundle</name> + + <!-- + To include new nexus-indexer, + + * run the command below from CLI (use proper Tycho version, see below) + * right-click on the project in Eclipse, PDE->Update Classpath + + /opt/maven/bin/mvn -o \ + -Dtycho.mode=maven -Pupdate-dependencies \ + clean org.sonatype.tycho:maven-osgi-packaging-plugin:generate-bundle + --> + <profiles> + <profile> + <id>update-dependencies</id> + <dependencies> + <dependency> + <groupId>org.sonatype.nexus</groupId> + <artifactId>nexus-indexer</artifactId> + <version>${nexus_indexer.version}</version> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <artifactId>maven-clean-plugin</artifactId> + <configuration> + <filesets> + <fileset> + <directory>jars</directory> + <followSymlinks>false</followSymlinks> + <includes> + <include>**/*.jar</include> + </includes> + </fileset> + <fileset> + <directory>META-INF</directory> + <followSymlinks>false</followSymlinks> + <includes> + <include>**/MANIFEST.MF</include> + </includes> + </fileset> + </filesets> + </configuration> + </plugin> + + <plugin> + <groupId>org.sonatype.tycho</groupId> + <artifactId>maven-osgi-packaging-plugin</artifactId> + <executions> + <execution> + <phase>process-classes</phase> + <goals> + <goal>generate-bundle</goal> + </goals> + </execution> + </executions> + <configuration> + <packageSources>false</packageSources> + <includes> + <include> + <groupId>org.sonatype.nexus</groupId> + <artifactId>nexus-indexer</artifactId> + </include> + <include> + <groupId>org.apache.lucene</groupId> + <artifactId>lucene-core</artifactId> + </include> + </includes> + <exportPackages> + org.maven.sonatype.nexus.*, + org.apache.lucene.*, + META-INF.plexus, + </exportPackages> + <manifestAttributes> + <Bundle-RequiredExecutionEnvironment>J2SE-1.5, JavaSE-1.6</Bundle-RequiredExecutionEnvironment> + </manifestAttributes> + <requireBundles> + <requireBundle> + <groupId>org.eclipse.m2e</groupId> + <artifactId>org.eclipse.m2e.maven.runtime</artifactId> + <version>${maven_embedder.version}</version> + </requireBundle> + <requireBundle> + <groupId>org.eclipse.m2e</groupId> + <artifactId>org.eclipse.m2e.archetype_common</artifactId> + <version>${archetype_common.version}</version> + </requireBundle> + </requireBundles> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> + +</project> |