You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by pk...@apache.org on 2015/03/25 11:26:04 UTC
svn commit: r1669087 - in /uima/ruta/trunk/ruta-maven-plugin/src: main/
main/java/ main/java/org/ main/java/org/apache/ main/java/org/apache/uima/
main/java/org/apache/uima/ruta/ main/java/org/apache/uima/ruta/maven/
main/resources/ main/resources/META...
Author: pkluegl
Date: Wed Mar 25 10:26:03 2015
New Revision: 1669087
URL: http://svn.apache.org/r1669087
Log:
UIMA-3650
- added project structure
Added:
uima/ruta/trunk/ruta-maven-plugin/src/main/
uima/ruta/trunk/ruta-maven-plugin/src/main/java/
uima/ruta/trunk/ruta-maven-plugin/src/main/java/org/
uima/ruta/trunk/ruta-maven-plugin/src/main/java/org/apache/
uima/ruta/trunk/ruta-maven-plugin/src/main/java/org/apache/uima/
uima/ruta/trunk/ruta-maven-plugin/src/main/java/org/apache/uima/ruta/
uima/ruta/trunk/ruta-maven-plugin/src/main/java/org/apache/uima/ruta/maven/
uima/ruta/trunk/ruta-maven-plugin/src/main/java/org/apache/uima/ruta/maven/RutaGenerateDescriptorMojo.java (with props)
uima/ruta/trunk/ruta-maven-plugin/src/main/resources/
uima/ruta/trunk/ruta-maven-plugin/src/main/resources/META-INF/
uima/ruta/trunk/ruta-maven-plugin/src/main/resources/META-INF/m2e/
uima/ruta/trunk/ruta-maven-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml (with props)
uima/ruta/trunk/ruta-maven-plugin/src/test/java/
uima/ruta/trunk/ruta-maven-plugin/src/test/resources/
Added: uima/ruta/trunk/ruta-maven-plugin/src/main/java/org/apache/uima/ruta/maven/RutaGenerateDescriptorMojo.java
URL: http://svn.apache.org/viewvc/uima/ruta/trunk/ruta-maven-plugin/src/main/java/org/apache/uima/ruta/maven/RutaGenerateDescriptorMojo.java?rev=1669087&view=auto
==============================================================================
--- uima/ruta/trunk/ruta-maven-plugin/src/main/java/org/apache/uima/ruta/maven/RutaGenerateDescriptorMojo.java (added)
+++ uima/ruta/trunk/ruta-maven-plugin/src/main/java/org/apache/uima/ruta/maven/RutaGenerateDescriptorMojo.java Wed Mar 25 10:26:03 2015
@@ -0,0 +1,65 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.uima.ruta.maven;
+
+import java.io.File;
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.Component;
+import org.apache.maven.plugins.annotations.LifecyclePhase;
+import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
+import org.apache.maven.plugins.annotations.ResolutionScope;
+import org.apache.maven.project.MavenProject;
+import org.sonatype.plexus.build.incremental.BuildContext;
+
+
+/**
+ * Generate descriptors from UIMA Ruta script files.
+ *
+ */
+@Mojo(name = "generate", defaultPhase = LifecyclePhase.PROCESS_RESOURCES, requiresDependencyResolution = ResolutionScope.COMPILE)
+public class RutaGenerateDescriptorMojo extends AbstractMojo {
+ @Component
+ private MavenProject project;
+
+ @Component
+ private BuildContext buildContext;
+
+ /**
+ * The directory where the generated type system descriptors will be written.
+ */
+ @Parameter(defaultValue = "${project.build.directory}/generated-sources/ruta/descriptor", required = true)
+ private File typeSystemOutputDirectory;
+
+ /**
+ * The directory where the generated analysis engine descriptors will be written.
+ */
+ @Parameter(defaultValue = "${project.build.directory}/generated-sources/ruta/descriptor", required = true)
+ private File analysisEngineOutputDirectory;
+
+
+ public void execute() throws MojoExecutionException, MojoFailureException {
+
+ }
+
+
+}
Propchange: uima/ruta/trunk/ruta-maven-plugin/src/main/java/org/apache/uima/ruta/maven/RutaGenerateDescriptorMojo.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: uima/ruta/trunk/ruta-maven-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml
URL: http://svn.apache.org/viewvc/uima/ruta/trunk/ruta-maven-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml?rev=1669087&view=auto
==============================================================================
--- uima/ruta/trunk/ruta-maven-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml (added)
+++ uima/ruta/trunk/ruta-maven-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml Wed Mar 25 10:26:03 2015
@@ -0,0 +1,35 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<lifecycleMappingMetadata>
+ <pluginExecutions>
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <execute>
+ <runOnIncremental>true</runOnIncremental>
+ <runOnConfiguration>true</runOnConfiguration>
+ </execute>
+ </action>
+ </pluginExecution>
+ </pluginExecutions>
+</lifecycleMappingMetadata>
Propchange: uima/ruta/trunk/ruta-maven-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml
------------------------------------------------------------------------------
svn:eol-style = native