| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.2"?> |
| <plugin> |
| <extension-point id="mojoParameterMetadata" name="%extension-point.mojoParameterMetadata.name" schema="schema/mojoParameterMetadata.exsd"/> |
| |
| <extension point="org.eclipse.wst.sse.ui.editorConfiguration"> |
| <sourceViewerConfiguration |
| class="org.eclipse.m2e.editor.xml.PomStructuredTextViewConfiguration" |
| target="org.eclipse.m2e.core.pomFile"/> |
| <contentOutlineConfiguration |
| class="org.eclipse.m2e.editor.xml.PomContentOutlineConfiguration" |
| target="org.eclipse.m2e.core.pomFile"/> |
| <provisionalConfiguration |
| type="org.eclipse.jface.text.quickassist.IQuickAssistProcessor" |
| class="org.eclipse.m2e.editor.xml.PomQuickAssistProcessor" |
| target="org.eclipse.m2e.core.pomFile"/> |
| </extension> |
| <extension point="org.eclipse.wst.sse.core.modelHandler"> |
| <modelHandler |
| associatedContentTypeId="org.eclipse.m2e.core.pomFile" |
| class="org.eclipse.m2e.editor.xml.PomModelHandler" |
| id="org.eclipse.m2e.core.pomFile.handler"> |
| </modelHandler> |
| </extension> |
| <extension |
| point="org.eclipse.ui.ide.markerResolution"> |
| <markerResolutionGenerator |
| class="org.eclipse.m2e.editor.xml.MavenMarkerResolutionGenerator" |
| markerType="org.eclipse.m2e.core.maven2Problem.pomloading"> |
| </markerResolutionGenerator> |
| <markerResolutionGenerator |
| class="org.eclipse.m2e.editor.xml.MavenMarkerResolutionGenerator" |
| markerType="org.eclipse.m2e.core.maven2Problem.lifecycleMapping"> |
| </markerResolutionGenerator> |
| </extension> |
| <extension |
| point="org.eclipse.core.filebuffers.annotationModelCreation"> |
| <factory |
| contentTypeId="org.eclipse.m2e.core.pomFile" |
| class="org.eclipse.m2e.editor.xml.internal.POMMarkerAnnotationModelFactory" /> |
| </extension> |
| <extension point="org.eclipse.ui.editors.templates"> |
| <contextType name="%contextType.document" |
| class="org.eclipse.m2e.editor.xml.PomTemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.#document"/> |
| |
| <contextType name="%contextType.project" |
| class="org.eclipse.m2e.editor.xml.PomTemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.project"/> |
| |
| <contextType name="%contextType.parent" |
| class="org.eclipse.m2e.editor.xml.PomTemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.parent"/> |
| |
| <contextType name="%contextType.properties" |
| class="org.eclipse.m2e.editor.xml.PomTemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.properties"/> |
| |
| <contextType name="%contextType.properties2" |
| class="org.eclipse.m2e.editor.xml.PomTemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.properties"/> |
| |
| <contextType name="%contextType.dependencies" |
| class="org.eclipse.m2e.editor.xml.PomTemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.dependencies"/> |
| |
| <contextType name="%contextType.exclusions" |
| class="org.eclipse.m2e.editor.xml.PomTemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.exclusions"/> |
| |
| <contextType name="%contextType.plugins" |
| class="org.eclipse.m2e.editor.xml.PomTemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.plugins"/> |
| |
| <contextType name="%contextType.plugin" |
| class="org.eclipse.m2e.editor.xml.PomTemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.plugin"/> |
| |
| <contextType name="%contextType.configuration" |
| class="org.eclipse.m2e.editor.xml.PomTemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.configuration"/> |
| |
| <contextType name="%contextType.executions" |
| class="org.eclipse.m2e.editor.xml.PomTemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.executions"/> |
| |
| <contextType name="%contextType.execution" |
| class="org.eclipse.m2e.editor.xml.PomTemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.execution"/> |
| |
| <contextType name="%contextType.profiles" |
| class="org.eclipse.m2e.editor.xml.PomTemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.profiles"/> |
| |
| <contextType name="%contextType.repositories" |
| class="org.eclipse.m2e.editor.xml.PomTemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.repositories"/> |
| |
| <contextType name="%contextType.groupid" |
| class="org.eclipse.jface.text.templates.TemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.groupId"/> |
| |
| <contextType name="%contextType.artifactid" |
| class="org.eclipse.jface.text.templates.TemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.artifactId"/> |
| |
| <contextType name="%contextType.version" |
| class="org.eclipse.jface.text.templates.TemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.version"/> |
| |
| <contextType name="%contextType.classifier" |
| class="org.eclipse.jface.text.templates.TemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.classifier"/> |
| |
| <contextType name="%contextType.type" |
| class="org.eclipse.jface.text.templates.TemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.type"/> |
| |
| <contextType name="%contextType.systemPath" |
| class="org.eclipse.jface.text.templates.TemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.systemPath"/> |
| |
| <contextType name="%contextType.packaging" |
| class="org.eclipse.jface.text.templates.TemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.packaging"/> |
| |
| <contextType name="%contextType.scope" |
| class="org.eclipse.jface.text.templates.TemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.scope"/> |
| |
| <contextType name="%contextType.phase" |
| class="org.eclipse.jface.text.templates.TemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.phase"/> |
| |
| <contextType name="%contextType.goal" |
| class="org.eclipse.jface.text.templates.TemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.goal"/> |
| |
| <contextType name="%contextType.module" |
| class="org.eclipse.jface.text.templates.TemplateContextType" |
| id="org.eclipse.m2e.editor.xml.templates.contextType.module"/> |
| |
| <template id="org.eclipse.m2e.editor.xml.templates.project.skeleton" |
| contextTypeId="org.eclipse.m2e.editor.xml.templates.contextType.#document" |
| name="%template.project.name" |
| description="%template.project.description"> |
| <pattern><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></pattern> |
| </template> |
| |
| <template id="org.eclipse.m2e.editor.xml.templates.property.skeleton" |
| contextTypeId="org.eclipse.m2e.editor.xml.templates.contextType.properties" |
| name="%template.property.name" |
| description="%template.property.description"> |
| <pattern><${cursor}${name}>${value}</${name}></pattern> |
| </template> |
| <template id="org.eclipse.m2e.editor.xml.templates.property.encoding" |
| contextTypeId="org.eclipse.m2e.editor.xml.templates.contextType.properties" |
| name="%template.encoding.name" |
| description="%template.encoding.description"> |
| <pattern><project.build.sourceEncoding>${encoding}</project.build.sourceEncoding></pattern> |
| </template> |
| |
| <template id="org.eclipse.m2e.editor.xml.templates.exclusion.skeleton" |
| contextTypeId="org.eclipse.m2e.editor.xml.templates.contextType.exclusions" |
| name="%template.exclusion.name" |
| description="%template.exclusion.description"> |
| <pattern><exclusion> |
| <groupId>${cursor}</groupId> |
| <artifactId></artifactId> |
| </exclusion></pattern> |
| </template> |
| |
| |
| <template id="org.eclipse.m2e.editor.xml.templates.plugin.javac" |
| contextTypeId="org.eclipse.m2e.editor.xml.templates.contextType.plugins" |
| name="%template.compiler.name" |
| description="%template.compiler.description"> |
| <pattern><plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>3.3</version> |
| <configuration> |
| <!-- http://maven.apache.org/plugins/maven-compiler-plugin/ --> |
| <source>${cursor}1.8</source> |
| <target>1.8</target> |
| </configuration> |
| </plugin></pattern> |
| </template> |
| |
| <template id="org.eclipse.m2e.editor.xml.templates.plugin.aspectj" |
| contextTypeId="org.eclipse.m2e.editor.xml.templates.contextType.plugins" |
| name="%template.aspectj.name" |
| description="%template.aspectj.description"> |
| <pattern><plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>aspectj-maven-plugin</artifactId> |
| <version>1.7</version> |
| <!-- http://mojo.codehaus.org/aspectj-maven-plugin/ --> |
| <executions> |
| <execution> |
| <goals> |
| <goal>compile</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin></pattern> |
| </template> |
| |
| <template id="org.eclipse.m2e.editor.xml.templates.plugin.war" |
| contextTypeId="org.eclipse.m2e.editor.xml.templates.contextType.plugins" |
| name="%template.war.name" |
| description="%template.war.description"> |
| <pattern><plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-war-plugin</artifactId> |
| <version>2.6</version> |
| <configuration> |
| <!-- web.xml is not mandatory since JavaEE 5 --> |
| <failOnMissingWebXml>false</failOnMissingWebXml> |
| <!-- |
| <filteringDeploymentDescriptors>true</filteringDeploymentDescriptors> |
| <warSourceDirectory>WebContent</warSourceDirectory> |
| <webResources> |
| <resource> |
| <directory>src/main/webapp2</directory> |
| <filtering>true</filtering> |
| </resource> |
| </webResources> |
| --> |
| </configuration> |
| </plugin></pattern> |
| </template> |
| |
| <template id="org.eclipse.m2e.editor.xml.templates.plugin.ejb" |
| contextTypeId="org.eclipse.m2e.editor.xml.templates.contextType.plugins" |
| name="%template.ejb.name" |
| description="%template.ejb.description"> |
| <pattern><plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-ejb-plugin</artifactId> |
| <version>2.5</version> |
| <configuration> |
| <!-- http://maven.apache.org/plugins/maven-ejb-plugin/ --> |
| <ejbVersion>3.1${cursor}</ejbVersion> |
| </configuration> |
| </plugin></pattern> |
| </template> |
| |
| <template id="org.eclipse.m2e.editor.xml.templates.plugin.ear" |
| contextTypeId="org.eclipse.m2e.editor.xml.templates.contextType.plugins" |
| name="%template.ear.name" |
| description="%template.ear.description"> |
| <pattern><plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-ear-plugin</artifactId> |
| <version>2.10</version> |
| <configuration> |
| <!-- http://maven.apache.org/plugins/maven-ear-plugin/ --> |
| <version>6${cursor}</version> |
| <defaultLibBundleDir>lib</defaultLibBundleDir> |
| <!-- |
| <generateApplicationXml>false</generateApplicationXml> |
| <earSourceDirectory>EarContent</earSourceDirectory> |
| <applicationXml>EarContent/META-INF/application.xml</applicationXml> |
| <modules> |
| <webModule> |
| <groupId>org.foo2</groupId> |
| <artifactId>test-war</artifactId> |
| <contextRoot>/custom-context-root</contextRoot> |
| </webModule> |
| <ejbModule> |
| <groupId>org.foo2</groupId> |
| <artifactId>test-ejb</artifactId> |
| <bundleFileName>anothername.jar</bundleFileName> |
| </ejbModule> |
| <jarModule> |
| <groupId>org.foo2</groupId> |
| <artifactId>test-jar</artifactId> |
| </jarModule> |
| </modules> |
| --> |
| </configuration> |
| </plugin></pattern> |
| </template> |
| |
| <template id="org.eclipse.m2e.editor.xml.templates.plugin.jetty" |
| contextTypeId="org.eclipse.m2e.editor.xml.templates.contextType.plugins" |
| name="%template.jetty.name" |
| description="%template.jetty.description"> |
| <pattern><plugin> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-maven-plugin</artifactId> |
| <version>${cursor}9.2.10.v20150310</version> |
| <configuration> |
| <!-- http://www.eclipse.org/jetty/documentation/current/jetty-maven-plugin.html --> |
| <scanIntervalSeconds>3</scanIntervalSeconds> |
| <!-- By Default, jetty start on port 8080 |
| <httpConnector> |
| <port>9090</port> |
| </httpConnector> |
| --> |
| </configuration> |
| </plugin></pattern> |
| </template> |
| |
| <template id="org.eclipse.m2e.editor.xml.templates.repository.skeleton" |
| contextTypeId="org.eclipse.m2e.editor.xml.templates.contextType.repositories" |
| name="%template.repository.name" |
| description="%template.repository.description"> |
| <pattern><repository> |
| <id>${cursor}</id> |
| <url></url> |
| <releases> |
| <enabled>true</enabled> |
| </releases> |
| <snapshots> |
| <enabled>false</enabled> |
| </snapshots> |
| </repository></pattern> |
| </template> |
| |
| <template id="org.eclipse.m2e.editor.xml.templates.execution.skeleton" |
| contextTypeId="org.eclipse.m2e.editor.xml.templates.contextType.executions" |
| name="%template.execution.name" |
| description="%template.execution.description"> |
| <pattern><execution> |
| <id>${cursor}</id> |
| <phase>${verify}</phase> |
| <goals> |
| <goal>${run}</goal> |
| </goals> |
| <inherited>${false}</inherited> |
| <configuration> |
| </configuration> |
| </execution></pattern> |
| </template> |
| |
| <template id="org.eclipse.m2e.editor.xml.templates.profile.skeleton" |
| contextTypeId="org.eclipse.m2e.editor.xml.templates.contextType.profiles" |
| name="%template.profile.name" |
| description="%template.profile.description"> |
| <pattern><profile> |
| <id>${cursor}${test}</id> |
| <activation> |
| </activation> |
| </profile></pattern> |
| </template> |
| |
| <template id="org.eclipse.m2e.editor.xml.templates.profile.tools.jar" |
| contextTypeId="org.eclipse.m2e.editor.xml.templates.contextType.profiles" |
| name="%template.tools.name" |
| description="%template.tools.description"> |
| <pattern><profile> |
| <id>tools.jar</id> |
| <activation> |
| <property> |
| <name>java.vendor</name> |
| <value>Sun Microsystems Inc.</value> |
| </property> |
| </activation> |
| <dependencies> |
| <dependency> |
| <groupId>com.sun</groupId> |
| <artifactId>tools</artifactId> |
| <version>1.4.2</version> |
| <scope>system</scope> |
| <systemPath>$${java.home}/../lib/tools.jar</systemPath> |
| </dependency> |
| </dependencies> |
| </profile></pattern> |
| </template> |
| |
| <template id="org.eclipse.m2e.editor.xml.templates.profile.m2e" |
| contextTypeId="org.eclipse.m2e.editor.xml.templates.contextType.profiles" |
| name="%template.m2e.profile.name" |
| description="%template.m2e.profile.description"> |
| <pattern><profile> |
| <id>m2e</id> |
| <!-- This profile is only activated when building in Eclipse with m2e --> |
| <activation> |
| <property> |
| <name>m2e.version</name> |
| </property> |
| </activation> |
| ${cursor} |
| </profile> |
| </pattern> |
| </template> |
| |
| |
| <template id="org.eclipse.m2e.editor.xml.templates.systemPath.tools.jar" |
| contextTypeId="org.eclipse.m2e.editor.xml.templates.contextType.systemPath" |
| name="%template.tools2.name" |
| description="%template.tools2.description"> |
| <pattern>$${java.home}/../lib/tools.jar</pattern> |
| </template> |
| </extension> |
| |
| <extension point="org.eclipse.ui.keywords"> |
| <keyword id="org.eclipse.m2e.maven" label="%keyword.label"/> |
| </extension> |
| |
| <extension point="org.eclipse.ui.preferencePages"> |
| <page id="org.eclipse.m2e.editor.xml.preferences.PomTemplatesPreferencePage" |
| category="org.eclipse.m2e.core.preferences.Maven2PreferencePage" |
| class="org.eclipse.m2e.editor.xml.preferences.PomTemplatesPreferencePage" |
| name="%page.name"> |
| <keywordReference id="org.eclipse.m2e.maven"/> |
| </page> |
| </extension> |
| <!--extension |
| point="org.eclipse.wst.sse.ui.quickFixProcessor"> |
| <quickFixProcessor |
| class="org.eclipse.m2e.editor.xml.PomQuickAssistProcessor" |
| problemType="pomhint"> |
| </quickFixProcessor> |
| </extension--> |
| |
| </plugin> |