Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: f79c78980aa9c493465a67f19a31229326cf77f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
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>1.0.200.20111228-1245</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