Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 895ac9e8277485e678d3619b9914ec74d7c0a26d (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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <parent>
    <artifactId>org.eclipse.m2e.discovery-parent</artifactId>
    <groupId>org.eclipse.m2e</groupId>
    <version>1.0.0-SNAPSHOT</version>
    <relativePath>../org.eclipse.m2e.discovery-parent/pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>

  <artifactId>org.eclipse.m2e.discovery.oss</artifactId>
  <packaging>jar</packaging>

  <properties>
    <m2e.marketplace.repositoryUrl>https://repository.sonatype.org/content/sites/forge-sites/m2e-marketplace-p2-repo</m2e.marketplace.repositoryUrl>
    <!-- 
    <m2e.marketplace.repositoryUrl>http://localhost:8081/nexus/content/sites/xx/m2e-marketplace-p2-repo</m2e.marketplace.repositoryUrl>
    -->
  </properties>

  <build>
    <resources>
      <resource>
        <targetPath>.</targetPath>
        <filtering>false</filtering>
        <directory>${basedir}/</directory>
        <includes>
          <include>plugin.*</include>
          <include>images/**</include>
          <include>lifecycle/**</include>
        </includes>
      </resource>
    </resources>
     
    <plugins>
      <plugin>
        <groupId>org.sonatype.m2e.discovery.publisher</groupId>
        <artifactId>org.sonatype.m2e.discovery.publisher.maven-plugin</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <executions>
          <execution>
            <id>standard</id>
            <goals>
              <goal>generate</goal>
            </goals>
            <configuration>
              <p2RepositoryUrl>${m2e.marketplace.repositoryUrl}</p2RepositoryUrl>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
    
    <pluginManagement>
      <plugins>
        <!--TODO TEXT. This plugin's configuration is used in m2e only.-->
        <plugin>
          <groupId>org.eclipse.m2e</groupId>
          <artifactId>lifecycle-mapping</artifactId>
          <version>1.0.0</version>
          <configuration>
            <lifecycleMappingMetadata>
              <pluginExecutions>
                <pluginExecution>
                  <pluginExecutionFilter>
                    <groupId>org.sonatype.m2e.discovery.publisher</groupId>
                    <artifactId>org.sonatype.m2e.discovery.publisher.maven-plugin</artifactId>
                    <versionRange>[0.0.1-SNAPSHOT,)</versionRange>
                    <goals>
                      <goal>generate</goal>
                    </goals>
                  </pluginExecutionFilter>
                  <action>
                    <ignore/>
                  </action>
                </pluginExecution>
              </pluginExecutions>
            </lifecycleMappingMetadata>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>

  <profiles>
    <profile>
      <id>publish-site</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.sonatype.plugins</groupId>
            <artifactId>maven-upload-plugin</artifactId>
            <version>0.0.1</version>
            <executions>
              <execution>
                <id>publish-site</id>
                <phase>deploy</phase>
                <goals>
                  <goal>upload-files</goal>
                </goals>
                <configuration>
                  <basedir>${project.build.directory}/p2repository/</basedir>
                  <includes>
                    <include>**</include>
                  </includes>
                  <serverId>forge-releases</serverId>
                  <repositoryUrl>${m2e.marketplace.repositoryUrl}</repositoryUrl>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>wagon-maven-plugin</artifactId>
            <version>1.0-beta-4-SNAPSHOT</version>
            <executions>
              <execution>
                <id>upload-file</id>
                <phase>deploy</phase>
                <goals>
                  <goal>upload</goal>
                </goals>
                <configuration>
                  <fromDir>${project.build.directory}</fromDir>
                  <serverId>download.eclipse.org</serverId>
                  <includes>org.eclipse.m2e.discovery.oss-1.0.0-SNAPSHOT.jar</includes>
                  <url>scpexe://dev.eclipse.org/</url>
                  <toDir>${discovery.folder}/${project.artifactId}/</toDir>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>

Back to the top