| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| ! | |
| ! Copyright 2006 The Apache Software Foundation. | |
| ! | |
| ! Licensed 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> | |
| <groupId>org.apache.axis2</groupId> | |
| <artifactId>eclipse.service.plugin</artifactId> | |
| <version>SNAPSHOT</version> | |
| <name>Apache Axis 2.0 - Eclipse service Plugin</name> | |
| <packaging>maven-plugin</packaging> | |
| <description>The Axis 2 Eclipse Service Plugin for Service archive creation</description> | |
| <repositories> | |
| <repository> | |
| <id>repo1</id> | |
| <name>maven repository</name> | |
| <url>http://repo1.maven.org/maven2/</url> | |
| </repository> | |
| <repository> | |
| <id>ibiblio</id> | |
| <name>ibiblio repository</name> | |
| <url>http://ibiblio.org/maven/</url> | |
| <layout>legacy</layout> | |
| </repository> | |
| <repository> | |
| <id>ibiblio</id> | |
| <name>ibiblio repository</name> | |
| <url>http://ibiblio.org/maven2/</url> | |
| </repository> | |
| <repository> | |
| <id>apache-m1</id> | |
| <name>apache m1-ibiblio-rsync repository</name> | |
| <url>http://people.apache.org/repo/m1-ibiblio-rsync-repository/</url> | |
| <layout>legacy</layout> | |
| </repository> | |
| <repository> | |
| <snapshots> | |
| <enabled>true</enabled> | |
| </snapshots> | |
| <id>apache-people-repo</id> | |
| <name>apache people maven repository</name> | |
| <url>http://people.apache.org/repository/</url> | |
| <layout>legacy</layout> | |
| </repository> | |
| <repository> | |
| <snapshots> | |
| <enabled>true</enabled> | |
| </snapshots> | |
| <id>ws-zones</id> | |
| <name>ws.zones maven repository</name> | |
| <url>http://ws.zones.apache.org/repository2/</url> | |
| <layout>legacy</layout> | |
| </repository> | |
| <repository> | |
| <id>eclipse-repo</id> | |
| <name>eclipse maven repository</name> | |
| <url>http://repo1.maven.org/eclipse</url> | |
| </repository> | |
| </repositories> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.apache.axis2</groupId> | |
| <artifactId>axis2-kernel</artifactId> | |
| <version>SNAPSHOT</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.axis2</groupId> | |
| <artifactId>axis2-codegen</artifactId> | |
| <version>SNAPSHOT</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>commons-logging</groupId> | |
| <artifactId>commons-logging</artifactId> | |
| <version>1.1</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>log4j</groupId> | |
| <artifactId>log4j</artifactId> | |
| <version>1.2.13</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.eclipse.core</groupId> | |
| <artifactId>runtime</artifactId> | |
| <version>3.1.2</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.eclipse</groupId> | |
| <artifactId>swt</artifactId> | |
| <version>3.2</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.eclipse</groupId> | |
| <artifactId>osgi</artifactId> | |
| <version>3.2</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.eclipse.swt</groupId> | |
| <artifactId>gtk_linux_x86</artifactId> | |
| <version>3.2</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.eclipse.ui</groupId> | |
| <artifactId>ide</artifactId> | |
| <version>3.2</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.eclipse.ui</groupId> | |
| <artifactId>workbench</artifactId> | |
| <version>3.2</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.eclipse</groupId> | |
| <artifactId>jface</artifactId> | |
| <version>3.2</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>ant</groupId> | |
| <artifactId>ant</artifactId> | |
| <version>1.6.2</version> | |
| </dependency> | |
| </dependencies> | |
| <build> | |
| <resources> | |
| <resource> | |
| <directory>src/main/java</directory> | |
| </resource> | |
| </resources> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-assembly-plugin</artifactId> | |
| <version>2.1</version> | |
| <executions> | |
| <execution> | |
| <id>distribution-package</id> | |
| <phase>package</phase> | |
| <goals> | |
| <goal>attached</goal> | |
| </goals> | |
| <configuration> | |
| <descriptors> | |
| <descriptor>./eclipse-service-plugin-assembly.xml</descriptor> | |
| </descriptors> | |
| <finalName>dist</finalName> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-antrun-plugin</artifactId> | |
| <version>1.1</version> | |
| <executions> | |
| <execution> | |
| <id>package</id> | |
| <phase>package</phase> | |
| <configuration> | |
| <tasks> | |
| <property name="service.plugin.version" value="Axis2_Service_Archiver_1.0.0"></property> | |
| <property name="service.plugin.zip.name" value="axis2-eclipse-service-archiver-wizard.zip"></property> | |
| <property name="service.plugin.jar.name" value="Axis_Service_Archiver.jar"></property> | |
| <property name="src" value="./src"></property> | |
| <property name="service.src.dir" value="../axis2-eclipse-service-plugin/src/main/java"></property> | |
| <property name="output" value="../target/eclipse_plugins"></property> | |
| <property name="output.target" value="${output}/release"></property> | |
| <property name="service.output.dir" value="${output}/service-archiver"></property> | |
| <property name="plugin.output.dir" value="${output}/plugin"></property> | |
| <property name="service.plugin.output.dir" value="${plugin.output.dir}/${service.plugin.version}"></property> | |
| <property name="source.dir.name" value="src"></property> | |
| <property name="lib.dir.name" value="lib"></property> | |
| <property name="bin.dir.name" value="bin"></property> | |
| <property name="help.dir.name" value="help"></property> | |
| <property name="icons.dir.name" value="icons"></property> | |
| <property name="plugin.project.file.name" value=".project"></property> | |
| <property name="plugin.classpath.file.name" value=".classpath"></property> | |
| <property name="plugin.help.file.name" value="help_toc.xml"></property> | |
| <property name="service.resource.dir" value="../conf/service"></property> | |
| <property name="service.help.resource.file" value="../../../xdocs/tools/1_1/eclipse/servicearchiver-plugin.html"></property> | |
| <property name="service.help.images.dir" value="../../../xdocs/tools/1_1/eclipse/images"></property> | |
| <property name="axis2.lib.dir" value="../../../target/lib"></property> | |
| <!--Filter tockens for the copy command to filter the versions of external dependencies --> | |
| <filter token="version_number" value="SNAPSHOT" /> | |
| <filter token="ant.version" value="1.6.5" /> | |
| <filter token="commons.logging.version" value="1.1" /> | |
| <filter token="log4j.version" value="1.2.13" /> | |
| <delete dir="./target/plugin/${service.plugin.version}"/> | |
| <mkdir dir="./target/plugin/${service.plugin.version}"/> | |
| <delete dir="./target/dist"/> | |
| <mkdir dir="./target/dist"/> | |
| <unzip src="./target/dist-axis2-service-codege-plugin.zip" | |
| dest="./target/plugin/${service.plugin.version}"/> | |
| <!-- Copy to the same position with the filtering on--> | |
| <copy todir="./target/plugin/${service.plugin.version}" filtering="on" > | |
| <fileset dir="${service.resource.dir}"> | |
| <include name="plugin.xml" /> | |
| <include name="build.properties" /> | |
| <include name="${plugin.classpath.file.name}" /> | |
| </fileset> | |
| </copy> | |
| <!-- copy the help directory --> | |
| <mkdir dir="./target/plugin/${service.plugin.version}/${help.dir.name}" /> | |
| <mkdir dir="./target/plugin/${service.plugin.version}/${help.dir.name}/${icons.dir.name}" /> | |
| <copy todir="./target/plugin/${service.plugin.version}/${help.dir.name}"> | |
| <fileset file="${service.help.resource.file}"></fileset> | |
| </copy> | |
| <copy todir="./target/plugin/${service.plugin.version}/${help.dir.name}/${icons.dir.name}"> | |
| <fileset dir="${service.help.images.dir}"></fileset> | |
| </copy> | |
| <!-- copy the icons--> | |
| <mkdir dir="./target/plugin/${service.plugin.version}/${icons.dir.name}" /> | |
| <copy todir="./target/plugin/${service.plugin.version}/${icons.dir.name}"> | |
| <fileset dir="${service.resource.dir}/${icons.dir.name}" /> | |
| </copy> | |
| <!-- copy the other project files--> | |
| <copy todir="./target/plugin/${service.plugin.version}"> | |
| <fileset file="${service.resource.dir}/${plugin.project.file.name}" /> | |
| <fileset file="${service.resource.dir}/${plugin.help.file.name}" /> | |
| </copy> | |
| <!--Zip the classes to a jar file --> | |
| <zip destfile="./target/plugin/${service.plugin.version}/${service.plugin.jar.name}" | |
| basedir="./target/plugin/${service.plugin.version}/classes" | |
| update="true" | |
| /> | |
| <delete dir="./target/plugin/${service.plugin.version}/classes" /> | |
| <!--Zip the eclipse plugin to the target/dist directory --> | |
| <zip destfile="./target/dist/${service.plugin.zip.name}" | |
| basedir="./target/plugin" | |
| update="true" | |
| /> | |
| <delete dir="./target/temp" /> | |
| <delete dir="./target/classes" /> | |
| <delete dir="./target/test-classes" /> | |
| </tasks> | |
| </configuration> | |
| <goals> | |
| <goal>run</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </project> |