Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2011-02-23 13:02:19 -0500
committerIgor Fedorenko2011-02-23 13:11:51 -0500
commit4a3ba6acf496dda6d16b53a69b72de35a6c62a95 (patch)
treee91df5a09ade413957a010d34c2513c4cf3c7d01 /org.eclipse.m2e.discovery-directory
parent02e8c75779abfc23c664f77d8e3e600ced9d5ba9 (diff)
downloadm2e-core-4a3ba6acf496dda6d16b53a69b72de35a6c62a95.tar.gz
m2e-core-4a3ba6acf496dda6d16b53a69b72de35a6c62a95.tar.xz
m2e-core-4a3ba6acf496dda6d16b53a69b72de35a6c62a95.zip
335701 discover required m2e extensions during project import
Introduced ability to see project lifecycle mapping configuration as part of import wizard and to check m2e marketplace for extensions that provide support for non-covered mojo executions and unsupported packaging types. This is a proof-of-concept implemenation. UI is completely throw-away code. Backend requires significact work as well. Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
Diffstat (limited to 'org.eclipse.m2e.discovery-directory')
-rw-r--r--org.eclipse.m2e.discovery-directory/org.eclipse.m2e.discovery.oss/discovery.xml6
-rw-r--r--org.eclipse.m2e.discovery-directory/org.eclipse.m2e.discovery.oss/lifecycle/org.eclipse.m2e.discovery.lifecyclemapping.extras.xml124
-rw-r--r--org.eclipse.m2e.discovery-directory/org.eclipse.m2e.discovery.oss/lifecycle/org.eclipse.m2e.discovery.lifecycles.tycho.xml204
-rw-r--r--org.eclipse.m2e.discovery-directory/org.eclipse.m2e.discovery.oss/plugin.properties8
-rw-r--r--org.eclipse.m2e.discovery-directory/org.eclipse.m2e.discovery.oss/plugin.xml23
5 files changed, 261 insertions, 104 deletions
diff --git a/org.eclipse.m2e.discovery-directory/org.eclipse.m2e.discovery.oss/discovery.xml b/org.eclipse.m2e.discovery-directory/org.eclipse.m2e.discovery.oss/discovery.xml
new file mode 100644
index 00000000..6f81c2f0
--- /dev/null
+++ b/org.eclipse.m2e.discovery-directory/org.eclipse.m2e.discovery.oss/discovery.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<directory xmlns="http://www.eclipse.org/mylyn/discovery/directory/">
+ <entry
+ url="file:///workspaces/m2e-dev/m2e-core/org.eclipse.m2e.discovery-directory/org.eclipse.m2e.discovery.oss/target/org.eclipse.m2e.discovery.oss-1.0.0-SNAPSHOT.jar"
+ permitCategories="true" />
+</directory> \ No newline at end of file
diff --git a/org.eclipse.m2e.discovery-directory/org.eclipse.m2e.discovery.oss/lifecycle/org.eclipse.m2e.discovery.lifecyclemapping.extras.xml b/org.eclipse.m2e.discovery-directory/org.eclipse.m2e.discovery.oss/lifecycle/org.eclipse.m2e.discovery.lifecyclemapping.extras.xml
new file mode 100644
index 00000000..49423021
--- /dev/null
+++ b/org.eclipse.m2e.discovery-directory/org.eclipse.m2e.discovery.oss/lifecycle/org.eclipse.m2e.discovery.lifecyclemapping.extras.xml
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<lifecycleMappingMetadata>
+ <pluginExecutions>
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <versionRange>[1.0,)</versionRange>
+ <goals>
+ <goal>add-source</goal>
+ <goal>add-test-source</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <configurator>
+ <id>org.sonatype.m2e.buildhelper.buildhelperConfigurator</id>
+ </configurator>
+ </action>
+ </pluginExecution>
+
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>org.codehaus.modello</groupId>
+ <artifactId>modello-maven-plugin</artifactId>
+ <versionRange>[1.0.1,)</versionRange>
+ <goals>
+ <goal>java</goal>
+ <goal>xpp3-reader</goal>
+ <goal>xpp3-writer</goal>
+ <goal>xpp3-extended-reader</goal>
+ <goal>xsd</goal>
+ <goal>stax-reader</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <configurator>
+ <id>org.sonatype.m2e.modello.modelloConfigurator</id>
+ </configurator>
+ </action>
+ </pluginExecution>
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>org.sonatype.plugins</groupId>
+ <artifactId>modello-plugin-upgrade</artifactId>
+ <versionRange>[1.1,)</versionRange>
+ <goals>
+ <goal>upgrade</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <configurator>
+ <id>org.sonatype.m2e.modello.modelloConfigurator</id>
+ </configurator>
+ </action>
+ </pluginExecution>
+
+
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>antlr-maven-plugin</artifactId>
+ <versionRange>[2.1,)</versionRange>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <configurator>
+ <id>org.sonatype.m2e.antlr.antlrConfigurator</id>
+ </configurator>
+ </action>
+ </pluginExecution>
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>org.antlr</groupId>
+ <artifactId>antlr3-maven-plugin</artifactId>
+ <versionRange>[3.1.1,)</versionRange>
+ <goals>
+ <goal>antlr</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <configurator>
+ <id>org.sonatype.m2e.antlr.antlrConfigurator</id>
+ </configurator>
+ </action>
+ </pluginExecution>
+
+
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <versionRange>[2.0,)</versionRange>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <configurator>
+ <id>org.sonatype.m2e.mavenarchiver.pomProperties</id>
+ </configurator>
+ </action>
+ </pluginExecution>
+
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-component-metadata</artifactId>
+ <versionRange>[1.0-beta-3.0.6,)</versionRange>
+ <goals>
+ <goal>generate-metadata</goal>
+ <goal>generate-test-metadata</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <configurator>
+ <id>org.sonatype.m2e.plexus.annotations.plexusConfigurator</id>
+ </configurator>
+ </action>
+ </pluginExecution>
+
+ </pluginExecutions>
+</lifecycleMappingMetadata> \ No newline at end of file
diff --git a/org.eclipse.m2e.discovery-directory/org.eclipse.m2e.discovery.oss/lifecycle/org.eclipse.m2e.discovery.lifecycles.tycho.xml b/org.eclipse.m2e.discovery-directory/org.eclipse.m2e.discovery.oss/lifecycle/org.eclipse.m2e.discovery.lifecycles.tycho.xml
index d4227b06..8f48a96c 100644
--- a/org.eclipse.m2e.discovery-directory/org.eclipse.m2e.discovery.oss/lifecycle/org.eclipse.m2e.discovery.lifecycles.tycho.xml
+++ b/org.eclipse.m2e.discovery-directory/org.eclipse.m2e.discovery.oss/lifecycle/org.eclipse.m2e.discovery.lifecycles.tycho.xml
@@ -1,103 +1,105 @@
<?xml version="1.0" encoding="UTF-8"?>
<lifecycleMappingMetadata>
- <lifecycleMappings>
- <!-- Tycho packaging types -->
- <lifecycleMapping>
- <packagingType>eclipse-plugin</packagingType>
- <lifecycleMappingId>org.sonatype.tycho.m2e.tychoLifecycleMapping
- </lifecycleMappingId>
- </lifecycleMapping>
- <lifecycleMapping>
- <packagingType>eclipse-test-plugin</packagingType>
- <lifecycleMappingId>org.sonatype.tycho.m2e.tychoLifecycleMapping
- </lifecycleMappingId>
- </lifecycleMapping>
- <lifecycleMapping>
- <packagingType>eclipse-feature</packagingType>
- <lifecycleMappingId>org.sonatype.tycho.m2e.tychoLifecycleMapping
- </lifecycleMappingId>
- </lifecycleMapping>
- <lifecycleMapping>
- <packagingType>eclipse-update-site</packagingType>
- <lifecycleMappingId>org.sonatype.tycho.m2e.tychoLifecycleMapping
- </lifecycleMappingId>
- </lifecycleMapping>
- <lifecycleMapping>
- <packagingType>eclipse-application</packagingType>
- <lifecycleMappingId>org.sonatype.tycho.m2e.tychoLifecycleMapping
- </lifecycleMappingId>
- </lifecycleMapping>
- <!-- maven-bundle-plugin packaging types -->
- <lifecycleMapping>
- <packagingType>bundle</packagingType>
- <lifecycleMappingId>org.eclipse.m2e.jdt.JarLifecycleMapping
- </lifecycleMappingId>
- <pluginExecutions>
- <pluginExecution>
- <pluginExecutionFilter>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <versionRange>[2.0,)</versionRange>
- <goals>
- <goal>compile</goal>
- <goal>testCompile</goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <configurator>
- <id>org.eclipse.m2e.jdt.javaConfigurator</id>
- </configurator>
- </action>
- </pluginExecution>
- </pluginExecutions>
- </lifecycleMapping>
- </lifecycleMappings>
- <pluginExecutions>
- <!-- Tycho mojos -->
- <pluginExecution>
- <pluginExecutionFilter>
- <groupId>org.sonatype.tycho</groupId>
- <artifactId>maven-osgi-compiler-plugin</artifactId>
- <versionRange>[0.9.0,)</versionRange>
- <goals>
- <goal>compile</goal>
- <goal>testCompile</goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <ignore />
- </action>
- </pluginExecution>
- <pluginExecution>
- <pluginExecutionFilter>
- <groupId>org.sonatype.tycho</groupId>
- <artifactId>maven-osgi-packaging-plugin</artifactId>
- <versionRange>[0.9.0,)</versionRange>
- <goals>
- <goal>build-qualifier</goal>
- <goal>validate-version</goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <ignore />
- </action>
- </pluginExecution>
- <!-- maven-bundle-plugin mojos -->
- <pluginExecution>
- <pluginExecutionFilter>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <versionRange>[1.0.0,)</versionRange>
- <goals>
- <goal>manifest</goal>
- <goal>bundle</goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <configurator>
- <id>maven-bundle-plugin</id>
- </configurator>
- </action>
- </pluginExecution>
- </pluginExecutions>
-</lifecycleMappingMetadata> \ No newline at end of file
+ <lifecycleMappings>
+
+ <!-- Tycho packaging types -->
+ <lifecycleMapping>
+ <packagingType>eclipse-plugin</packagingType>
+ <lifecycleMappingId>org.sonatype.tycho.m2e.tychoLifecycleMapping</lifecycleMappingId>
+ </lifecycleMapping>
+ <lifecycleMapping>
+ <packagingType>eclipse-test-plugin</packagingType>
+ <lifecycleMappingId>org.sonatype.tycho.m2e.tychoLifecycleMapping</lifecycleMappingId>
+ </lifecycleMapping>
+ <lifecycleMapping>
+ <packagingType>eclipse-feature</packagingType>
+ <lifecycleMappingId>org.sonatype.tycho.m2e.tychoLifecycleMapping</lifecycleMappingId>
+ </lifecycleMapping>
+ <lifecycleMapping>
+ <packagingType>eclipse-update-site</packagingType>
+ <lifecycleMappingId>org.sonatype.tycho.m2e.tychoLifecycleMapping</lifecycleMappingId>
+ </lifecycleMapping>
+ <lifecycleMapping>
+ <packagingType>eclipse-application</packagingType>
+ <lifecycleMappingId>org.sonatype.tycho.m2e.tychoLifecycleMapping</lifecycleMappingId>
+ </lifecycleMapping>
+
+ <!-- maven-bundle-plugin packaging types -->
+ <lifecycleMapping>
+ <packagingType>bundle</packagingType>
+ <lifecycleMappingId>org.eclipse.m2e.jdt.JarLifecycleMapping</lifecycleMappingId>
+ <pluginExecutions>
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <versionRange>[2.0,)</versionRange>
+ <goals>
+ <goal>compile</goal>
+ <goal>testCompile</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <configurator>
+ <id>org.eclipse.m2e.jdt.javaConfigurator</id>
+ </configurator>
+ </action>
+ </pluginExecution>
+ </pluginExecutions>
+ </lifecycleMapping>
+
+ </lifecycleMappings>
+
+ <pluginExecutions>
+
+ <!-- Tycho mojos -->
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>org.sonatype.tycho</groupId>
+ <artifactId>maven-osgi-compiler-plugin</artifactId>
+ <versionRange>[0.9.0,)</versionRange>
+ <goals>
+ <goal>compile</goal>
+ <goal>testCompile</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <ignore />
+ </action>
+ </pluginExecution>
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>org.sonatype.tycho</groupId>
+ <artifactId>maven-osgi-packaging-plugin</artifactId>
+ <versionRange>[0.9.0,)</versionRange>
+ <goals>
+ <goal>build-qualifier</goal>
+ <goal>validate-version</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <ignore />
+ </action>
+ </pluginExecution>
+
+ <!-- maven-bundle-plugin mojos -->
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <versionRange>[1.0.0,)</versionRange>
+ <goals>
+ <goal>manifest</goal>
+ <goal>bundle</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <configurator>
+ <id>maven-bundle-plugin</id>
+ </configurator>
+ </action>
+ </pluginExecution>
+ </pluginExecutions>
+
+</lifecycleMappingMetadata>
+ \ No newline at end of file
diff --git a/org.eclipse.m2e.discovery-directory/org.eclipse.m2e.discovery.oss/plugin.properties b/org.eclipse.m2e.discovery-directory/org.eclipse.m2e.discovery.oss/plugin.properties
index 6e008fbc..cecc41fd 100644
--- a/org.eclipse.m2e.discovery-directory/org.eclipse.m2e.discovery.oss/plugin.properties
+++ b/org.eclipse.m2e.discovery-directory/org.eclipse.m2e.discovery.oss/plugin.properties
@@ -16,3 +16,11 @@ configuratorDescriptor.tycho.description = Tycho Configurator bridges tycho base
configuratorDescriptor.tycho.license = EPL
configuratorDescriptor.tycho.provider = Sonatype, Inc.
configuratorDescriptor.tycho.overview-summary = Tycho is focused on a Maven-centric, manifest-first approach to building Eclipse plug-ins, features, update sites, RCP applications and OSGi bundles. Tycho is a set of Maven plugins and extensions for building Eclipse plugins and OSGi bundles with Maven. Eclipse plugins and OSGi bundles have their own metadata for expressing dependencies, source folder locations, etc. that are normally found in a Maven POM. Tycho uses native metadata for Eclipse plugins and OSGi bundles and uses the POM to configure and drive the build. Tycho supports bundles, fragments, features, update site projects and RCP applications. Tycho also knows how to run JUnit test plugins using OSGi runtime and there is also support for sharing build results using Maven artifact repositories. Tycho plugins introduce new packaging types and the corresponding lifecycle bindings that allow Maven to use OSGi and Eclipse metadata during a Maven build.
+
+
+# m2e-extras
+configuratorDescriptor.extras.name = m2e-extras
+configuratorDescriptor.extras.description = m2e-extras
+configuratorDescriptor.extras.license = EPL
+configuratorDescriptor.extras.provider = Sonatype, Inc.
+configuratorDescriptor.extras.overview-summary = m2e-extras
diff --git a/org.eclipse.m2e.discovery-directory/org.eclipse.m2e.discovery.oss/plugin.xml b/org.eclipse.m2e.discovery-directory/org.eclipse.m2e.discovery.oss/plugin.xml
index 1fbc8382..05a78d7f 100644
--- a/org.eclipse.m2e.discovery-directory/org.eclipse.m2e.discovery.oss/plugin.xml
+++ b/org.eclipse.m2e.discovery-directory/org.eclipse.m2e.discovery.oss/plugin.xml
@@ -19,13 +19,30 @@
license="%configuratorDescriptor.tycho.license"
name="%configuratorDescriptor.tycho.name"
provider="%configuratorDescriptor.tycho.provider"
- siteUrl="http://repository.sonatype.org/content/sites/forge-sites/m2eclipse-tycho/0.5.0/N/0.5.0.201101121400/">
- <iu id="org.sonatype.tycho.m2e.feature.feature.group">
- </iu>
+ siteUrl="https://repository.sonatype.org/content/repositories/forge-sites/m2eclipse-tycho/0.5.0/N/0.5.0.201102181024/">
+ <iu id="org.sonatype.tycho.m2e.feature.feature.group"/>
<overview
summary="%configuratorDescriptor.tycho.overview-summary"
url="http://eclipse.org/tycho/">
</overview>
</connectorDescriptor>
+
+ <connectorDescriptor
+ categoryId="org.eclipse.m2e.discovery.category.lifecycles"
+ description="%configuratorDescriptor.extras.description"
+ groupId="lifecycles"
+ id="org.eclipse.m2e.discovery.lifecyclemapping.extras"
+ kind="lifecycles"
+ license="%configuratorDescriptor.extras.license"
+ name="%configuratorDescriptor.extras.name"
+ provider="%configuratorDescriptor.extras.provider"
+ siteUrl="https://repository.sonatype.org/content/repositories/forge-sites/m2e-extras/0.13.0/N/0.13.0.201102171012/">
+ <iu id="org.sonatype.m2e.temporary.mojos.feature.feature.group"/>
+ <overview
+ summary="%configuratorDescriptor.extras.overview-summary"
+ url="http://eclipse.org/tycho/">
+ </overview>
+ </connectorDescriptor>
+
</extension>
</plugin>

Back to the top