Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: ce5db6c7f32e89b0aa6b0ed31c4dd14b0efb9f60 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                                                                                                                                                            
                                       















                                                                          
                                                                     



































                                                        

                                                           















































                                                                                                               
<?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>1.0.100-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.eclipse.tycho:tycho-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.eclipse.tycho</groupId>
            <artifactId>tycho-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>

Back to the top