blob: b775cc281ca49205143b74f4157c5f4ffc4d89a6 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ 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.
-->
<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>
<parent>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2</artifactId>
<version>1.8.0-SNAPSHOT</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>axis2.eclipse.codegen.plugin</artifactId>
<name>Apache Axis2 - tool - Eclipse Codegen Plugin</name>
<packaging>bundle</packaging>
<description>The Axis 2 Eclipse Codegen Plugin for wsdl2java and java2wsdl</description>
<url>http://axis.apache.org/axis2/java/core/</url>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/tool/axis2-eclipse-codegen-plugin</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/tool/axis2-eclipse-codegen-plugin</developerConnection>
<url>http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/tool/axis2-eclipse-codegen-plugin</url>
</scm>
<dependencies>
<dependency>
<groupId>osgi.bundle</groupId>
<artifactId>org.eclipse.core.jobs</artifactId>
</dependency>
<dependency>
<groupId>osgi.bundle</groupId>
<artifactId>org.eclipse.core.resources</artifactId>
</dependency>
<dependency>
<groupId>osgi.bundle</groupId>
<artifactId>org.eclipse.core.runtime</artifactId>
</dependency>
<dependency>
<groupId>osgi.bundle</groupId>
<artifactId>org.eclipse.equinox.common</artifactId>
</dependency>
<dependency>
<groupId>osgi.bundle</groupId>
<artifactId>org.eclipse.jface</artifactId>
</dependency>
<dependency>
<groupId>osgi.bundle</groupId>
<artifactId>org.eclipse.osgi</artifactId>
</dependency>
<dependency>
<groupId>osgi.bundle</groupId>
<artifactId>org.eclipse.swt</artifactId>
</dependency>
<dependency>
<groupId>osgi.bundle</groupId>
<artifactId>org.eclipse.swt.win32.win32.x86_64</artifactId>
</dependency>
<dependency>
<groupId>osgi.bundle</groupId>
<artifactId>org.eclipse.ui.ide</artifactId>
</dependency>
<dependency>
<groupId>osgi.bundle</groupId>
<artifactId>org.eclipse.ui.workbench</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>axis2-java2wsdl</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>axis2-adb-codegen</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>axis2-xmlbeans-codegen</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>axis2-jibx-codegen</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
<resource>
<directory>.</directory>
<includes>
<include>plugin.xml</include>
<include>icons/**</include>
<include>help_toc.xml</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-remote-resources-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
<configuration>
<resourceBundles>
<resourceBundle>org.apache.axis2:axis2-resource-bundle:${project.version}</resourceBundle>
</resourceBundles>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<!-- This copies the dependencies so that they can be located by Eclipse -->
<id>copy-dependencies</id>
<phase>process-sources</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>lib</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>lib</directory>
</fileset>
<fileset>
<directory>META-INF</directory>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<!-- Produce the manifest in the location expected by Eclipse -->
<manifestLocation>META-INF</manifestLocation>
<instructions>
<!-- Embed all dependencies, except those which are provided by the Eclipse runtime -->
<Embed-Dependency>*;scope=compile|runtime;groupId=!osgi.bundle;artifactId=!commons-logging|woodstox-core-asl|ant*</Embed-Dependency>
<Embed-Directory>lib</Embed-Directory>
<Embed-Transitive>true</Embed-Transitive>
<!-- Exclude imports that are actually not used -->
<Import-Package>
!org.dom4j*,
!nu.xom,
!org.jdom*,
!javax.portlet,
!com.sun.*,
!org.jvnet.ws.databinding,
!org.apache.xmlbeans.*,
!org.xmlpull.*,
!org.apache.commons.io*,
!org.relaxng.datatype,
*
</Import-Package>
<Export-Package />
<Bundle-Name>Axis2 Codegen Wizard Plug-in</Bundle-Name>
<Bundle-Activator>org.apache.axis2.tool.codegen.eclipse.plugin.CodegenWizardPlugin</Bundle-Activator>
<Bundle-SymbolicName>org.apache.axis2.eclipse.codegen.plugin;singleton:=true</Bundle-SymbolicName>
<Bundle-ActivationPolicy>lazy</Bundle-ActivationPolicy>
<Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment>
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<executions>
<execution>
<id>extract-bundle-symbolicname-and-version</id>
<phase>package</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<scripts>
<script>
import java.util.jar.Manifest
Manifest manifest = new Manifest(new FileInputStream(new File(project.basedir, "META-INF/MANIFEST.MF")))
project.properties["bundle-symbolic-name"] = manifest.mainAttributes.getValue("Bundle-SymbolicName").find("^[^;]*")
project.properties["bundle-version"] = manifest.mainAttributes.getValue("Bundle-Version")
</script>
</scripts>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>distribution-package</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>${pom.basedir}/eclipse-codegen-plugin-assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>apache-release</id>
<build>
<plugins>
<plugin>
<groupId>net.nicoulaj.maven.plugins</groupId>
<artifactId>checksum-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>artifacts</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>