You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2008/02/13 16:53:26 UTC
svn commit: r627493 -
/incubator/uima/uimaj/trunk/uimaj-ep-configurator/pom.xml
Author: schor
Date: Wed Feb 13 07:53:23 2008
New Revision: 627493
URL: http://svn.apache.org/viewvc?rev=627493&view=rev
Log:
[UIMA-709] change to using bundle packaging and maven-bundle-plugin
Modified:
incubator/uima/uimaj/trunk/uimaj-ep-configurator/pom.xml
Modified: incubator/uima/uimaj/trunk/uimaj-ep-configurator/pom.xml
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-ep-configurator/pom.xml?rev=627493&r1=627492&r2=627493&view=diff
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-ep-configurator/pom.xml (original)
+++ incubator/uima/uimaj/trunk/uimaj-ep-configurator/pom.xml Wed Feb 13 07:53:23 2008
@@ -14,178 +14,281 @@
"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.
+ under the License.
-->
-<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/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.apache.uima</groupId>
- <artifactId>uimaj-ep-configurator</artifactId>
- <packaging>jar</packaging>
- <version>${uimaj-release-eclipse-version}</version>
- <name>Apache UIMA Configurator Eclipse Plugin</name>
- <url>http://incubator.apache.org/uima</url>
- <licenses>
- <license>
- <name>The Apache Software License, Version 2.0</name>
- <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
- <distribution>repo</distribution>
- </license>
- </licenses>
+<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/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.uima</groupId>
+ <artifactId>uimaj-ep-configurator</artifactId>
+ <packaging>bundle</packaging>
+ <version>${uimaj-release-eclipse-version}</version>
+ <name>Apache UIMA Configurator Eclipse Plugin</name>
+ <url>http://incubator.apache.org/uima</url>
+ <licenses>
+ <license>
+ <name>The Apache Software License, Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
<scm>
<url>http://svn.apache.org/viewvc/incubator/uima</url>
- </scm>
- <parent>
- <groupId>org.apache.uima</groupId>
- <artifactId>uimaj</artifactId>
- <version>2.3.0-incubating-SNAPSHOT</version>
- </parent>
- <dependencies>
- <!-- UIMA dependencies -->
- <dependency>
- <groupId>org.apache.uima</groupId>
- <artifactId>uimaj-core</artifactId>
- <version>${uimaj-release-version}</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.uima</groupId>
- <artifactId>uimaj-tools</artifactId>
- <version>${uimaj-release-version}</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.uima</groupId>
- <artifactId>uimaj-ep-jcasgen</artifactId>
- <version>${uimaj-release-eclipse-version}</version>
- <scope>compile</scope>
- </dependency>
-
+ </scm>
+ <parent>
+ <groupId>org.apache.uima</groupId>
+ <artifactId>uimaj</artifactId>
+ <version>2.3.0-incubating-SNAPSHOT</version>
+ </parent>
+ <dependencies>
+ <!-- UIMA dependencies -->
+ <!-- depending on the ep-runtime doesn't work without manual intervention because
+ eclipse:eclipse on the ep-runtime doesn't mark the embedded things as "exported".
+ It doesn't matter which scope - compile or provided - is used, both fail
+
+ Other posts indicate that plugins should have explicit dependencies, anyway.
+ And, it lets these plugins work when the library plugin is "open" in the same workspace.
+ -->
+ <!--dependency>
+ <groupId>org.apache.uima</groupId>
+ <artifactId>uimaj-ep-runtime</artifactId>
+ <version>${uimaj-release-eclipse-version}</version>
+ <scope>compile</scope>
+ </dependency-->
+
+ <dependency>
+ <groupId>org.apache.uima</groupId>
+ <artifactId>uimaj-core</artifactId>
+ <version>${uimaj-release-version}</version>
+ <scope>compile</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.uima</groupId>
+ <artifactId>uimaj-tools</artifactId>
+ <version>${uimaj-release-version}</version>
+ <!-- must be provided to get pax:eclipse to work, but
+ must be compile to get eclipse:eclipse to include
+ them as Referenced Libraries -->
+ <scope>compile</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.uima</groupId>
+ <artifactId>uimaj-ep-jcasgen</artifactId>
+ <version>${uimaj-release-eclipse-version}</version>
+ <scope>provided</scope>
+ </dependency>
+
<!-- Eclipse dependencies -->
- <dependency>
- <groupId>org.eclipse.core</groupId>
- <artifactId>org.eclipse.core.runtime</artifactId>
- <version>3.2.0</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.eclipse.core</groupId>
+
+ <!-- most of these are commented out as of 2/2008
+ They're not needed because the dependency mechanism
+ includes the transitive closure
+
+ Not sure what's the best practice here, so leaving these
+ in as comments
+ -->
+
+ <!-- core -->
+ <!--dependency>
+ <groupId>org.eclipse.core</groupId>
+ <artifactId>org.eclipse.core.runtime</artifactId>
+ <version>3.2.0</version>
+ <scope>provided</scope>
+ </dependency-->
+
+ <!--dependency>
+ <groupId>org.eclipse.core</groupId>
<artifactId>org.eclipse.core.runtime.compatibility</artifactId>
<version>3.1.100</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.eclipse.ui</groupId>
- <artifactId>org.eclipse.ui.ide</artifactId>
- <version>3.2.0</version>
<scope>provided</scope>
- </dependency>
- <dependency>
+ </dependency-->
+
+ <!--dependency>
<groupId>org.eclipse.core</groupId>
<artifactId>org.eclipse.core.resources</artifactId>
- <version>3.2.0</version>
+ <version>3.2.0</version>
<scope>provided</scope>
- </dependency>
- <dependency>
+ </dependency-->
+
+ <!-- ui -->
+ <!-- next one causes NPE with maven 2.0.7.
+ Might be related to http://jira.codehaus.org/browse/MNG-3086
+ Workaround - change version from 3.2.0 to 3.2.1 as of 2/2008 is OK-->
+ <!--dependency>
<groupId>org.eclipse.ui</groupId>
- <artifactId>org.eclipse.ui.workbench.texteditor</artifactId>
- <version>3.2.0</version>
+ <artifactId>org.eclipse.ui</artifactId>
+ <version>3.2.1</version>
<scope>provided</scope>
- </dependency>
-
- <!-- next two cause NPE with maven 2.0.6. Might be related to http://jira.codehaus.org/browse/MNG-2123 -->
-
- <!-- next one causes NPE with maven 2.0.7. Might be related to http://jira.codehaus.org/browse/MNG-3086 -->
- <!--dependency>
+ </dependency-->
+
+ <!--dependency>
<groupId>org.eclipse.ui</groupId>
- <artifactId>org.eclipse.ui</artifactId>
+ <artifactId>org.eclipse.ui.editors</artifactId>
<version>3.2.0</version>
- </dependency-->
-
- <!-- this dependency is OK with maven 2.0.7 release -->
- <dependency>
+ <scope>provided</scope>
+ </dependency-->
+
+ <!--dependency>
<groupId>org.eclipse.ui</groupId>
<artifactId>org.eclipse.ui.forms</artifactId>
<version>3.2.0</version>
- </dependency>
-
- <dependency>
+ <scope>provided</scope>
+ </dependency-->
+
+ <!--dependency>
+ <groupId>org.eclipse.ui</groupId>
+ <artifactId>org.eclipse.ui.ide</artifactId>
+ <version>3.2.0</version>
+ <scope>provided</scope>
+ </dependency-->
+
+ <!--dependency>
<groupId>org.eclipse.ui</groupId>
<artifactId>org.eclipse.ui.workbench.texteditor</artifactId>
- <version>3.2.0</version>
+ <version>3.2.0</version>
+ <scope>provided</scope>
+ </dependency-->
+
+ <!-- jdt -->
+ <!--dependency>
+ <groupId>org.eclipse.jdt</groupId>
+ <artifactId>org.eclipse.jdt.core</artifactId>
+ <version>3.2.0</version>
<scope>provided</scope>
- </dependency>
+ </dependency-->
+
+ <!-- added in Feb 2008 rework -->
+ <!--dependency>
+ <groupId>org.eclipse.jdt</groupId>
+ <artifactId>org.eclipse.jdt.launching</artifactId>
+ <version>3.2.0</version>
+ <scope>provided</scope>
+ </dependency-->
+
<dependency>
- <groupId>org.eclipse.ui</groupId>
- <artifactId>org.eclipse.ui.editors</artifactId>
- <version>3.2.0</version>
+ <groupId>org.eclipse.jdt</groupId>
+ <artifactId>org.eclipse.jdt.ui</artifactId>
+ <version>3.2.0</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <!-- misc -->
+ <!--dependency>
+ <groupId>org.eclipse.jface</groupId>
+ <artifactId>org.eclipse.jface.text</artifactId>
+ <version>3.2.0</version>
+ <scope>provided</scope>
+ </dependency-->
+
+ <!--dependency>
+ <groupId>org.eclipse.pde</groupId>
+ <artifactId>org.eclipse.pde.ui</artifactId>
+ <version>3.2.0</version>
+ <scope>provided</scope>
+ </dependency-->
+
+ <dependency>
+ <groupId>org.eclipse.swt</groupId>
+ <artifactId>org.eclipse.swt.win32.win32.x86</artifactId>
+ <version>3.2.0</version>
<scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.eclipse.jdt</groupId>
- <artifactId>org.eclipse.jdt.core</artifactId>
- <version>3.2.0</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.eclipse.jdt</groupId>
- <artifactId>org.eclipse.jdt.ui</artifactId>
- <version>3.2.0</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.eclipse.pde</groupId>
- <artifactId>org.eclipse.pde.ui</artifactId>
- <version>3.2.0</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.eclipse.jface</groupId>
- <artifactId>org.eclipse.jface.text</artifactId>
- <version>3.2.0</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.eclipse.swt</groupId>
- <artifactId>org.eclipse.swt.win32.win32.x86</artifactId>
- <version>3.2.0</version>
- <scope>provided</scope>
- </dependency>
- </dependencies>
- <build>
- <finalName>uima-ep-configurator</finalName>
- <plugins>
- <plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <executions>
- <execution>
- <id>bin</id>
- <phase>package</phase>
- <goals>
- <goal>attached</goal>
- </goals>
- <configuration>
- <descriptors>
- <descriptor>
- src/main/assembly/assemble-plugin.xml</descriptor>
- </descriptors>
- <finalName>org.apache.uima.desceditor_${uimaj-release-eclipse-version}</finalName>
- <appendAssemblyId>false</appendAssemblyId>
- </configuration>
- </execution>
- </executions>
- </plugin>
+ </dependency>
+
+ </dependencies>
+
+ <build>
+
+ <finalName>org.apache.uima.desceditor_${uimaj-release-eclipse-version}</finalName>
+
+ <!-- needed to copy resources, icons, and the plugin.xml to the result -->
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ </resource>
+ <resource>
+ <directory>.</directory>
+ <includes>
+ <include>plugin.xml</include>
+ <include>icons/*.*</include>
+ </includes>
+ </resource>
+ </resources>
+
+ <plugins>
+ <!--plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>bin</id>
+ <phase>package</phase>
+ <goals>
+ <goal>attached</goal>
+ </goals>
+ <configuration>
+ <descriptors>
+ <descriptor>
+ src/main/assembly/assemble-plugin.xml</descriptor>
+ </descriptors>
+ <finalName>org.apache.uima.desceditor_${uimaj-release-eclipse-version}</finalName>
+ <appendAssemblyId>false</appendAssemblyId>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin-->
+
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
- <version>2.3</version>
+ <version>2.4</version>
<configuration>
<manifest>.ignore</manifest>
<pde>true</pde>
</configuration>
- </plugin>
- </plugins>
- </build>
-</project>
\ No newline at end of file
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <extensions>true</extensions>
+ <configuration>
+ <manifestLocation>META-INF</manifestLocation>
+ <instructions>
+ <Export-Package>
+ org.apache.uima.taeconfigurator,
+ org.apache.uima.taeconfigurator.editors,
+ org.apache.uima.taeconfigurator.editors.point,
+ org.apache.uima.taeconfigurator.editors.ui,
+ org.apache.uima.taeconfigurator.editors.ui.dialogs,
+ org.apache.uima.taeconfigurator.editors.xml,
+ org.apache.uima.taeconfigurator.files,
+ org.apache.uima.taeconfigurator.model,
+ org.apache.uima.taeconfigurator.wizards
+ </Export-Package>
+ <Bundle-Activator>org.eclipse.core.internal.compatibility.PluginActivator</Bundle-Activator>
+ <Bundle-SymbolicName>org.apache.uima.desceditor;singleton:=true</Bundle-SymbolicName>
+
+ <!-- these determined to be needed empiracally, due to a flaw in the bundle resolver -
+ it works from the .class files, so references to things like org.eclipse.swt.SWT.ABORT
+ are not visible - this is a static final constant that gets compiled into a number
+ -->
+ <Import-Package>*,
+ org.eclipse.core.commands.common,
+ org.eclipse.core.runtime.jobs,
+ org.eclipse.core.runtime.content,
+ org.eclipse.swt,
+ org.eclipse.jface.window
+ </Import-Package>
+
+ <Eclipse-AutoStart>true</Eclipse-AutoStart>
+ <Plugin-Class>org.apache.uima.taeconfigurator.TAEConfiguratorPlugin</Plugin-Class>
+ <Eclipse-ExtensibleAPI>true</Eclipse-ExtensibleAPI>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>