<?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.axis</groupId>
        <artifactId>axis-project</artifactId>
        <version>1.4.1-SNAPSHOT</version>
        <relativePath>../pom.xml</relativePath>
    </parent>
    <artifactId>axis-model</artifactId>
    <name>EMF Model for WSDD Files</name>
    <url>${baseUrl}/model</url>
    <distributionManagement>
        <site>
            <id>axis</id>
            <url>${baseSiteUrl}/model</url>
        </site>
    </distributionManagement>
    <dependencies>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>axis-rt-core</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.eclipse.emf</groupId>
            <artifactId>common</artifactId>
            <version>2.2.3</version>
        </dependency>
        <dependency>
            <groupId>org.eclipse.emf</groupId>
            <artifactId>ecore</artifactId>
            <version>2.2.3</version>
        </dependency>
        <dependency>
            <groupId>org.eclipse.emf</groupId>
            <artifactId>ecore-xmi</artifactId>
            <version>2.2.3</version>
        </dependency>
        <dependency>
            <groupId>org.eclipse.xsd</groupId>
            <artifactId>xsd</artifactId>
            <version>2.2.3</version>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>
    <build>
        <extensions>
            <extension>
                <groupId>com.github.veithen.cosmos</groupId>
                <artifactId>p2-maven-connector</artifactId>
                <version>0.3</version>
            </extension>
        </extensions>
        <plugins>
            <plugin>
                <groupId>com.github.veithen.cosmos</groupId>
                <artifactId>emf-maven-plugin</artifactId>
                <version>0.1-SNAPSHOT</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>generate-sources</goal>
                        </goals>
                        <configuration>
                            <genmodel>model/axis.genmodel</genmodel>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-shade-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <artifactSet>
                                <includes>
                                    <include>org.eclipse.*:*</include>
                                </includes>
                            </artifactSet>
                            <filters> 
                                <filter>
                                   <artifact>org.eclipse.*:*</artifact>
                                   <includes>
                                       <include>**/*.class</include>
                                   </includes>
                                </filter> 
                            </filters>
                            <!-- minimizeJar>true</minimizeJar -->
                            <relocations>
                                <relocation>
                                    <pattern>org.eclipse.emf</pattern>
                                    <shadedPattern>org.apache.axis.model</shadedPattern>
                                </relocation>
                                <relocation>
                                    <pattern>org.eclipse.xsd</pattern>
                                    <shadedPattern>org.apache.axis.model.xsd</shadedPattern>
                                </relocation>
                            </relocations>
                            <dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                    <tags>
                        <tag>
                            <name>generated</name>
                            <placement>X</placement>
                        </tag>
                        <tag>
                            <name>model</name>
                            <placement>X</placement>
                        </tag>
                        <tag>
                            <name>ordered</name>
                            <placement>X</placement>
                        </tag>
                    </tags>
                    <!-- TODO: check if a newer EMF version produces correct HTML -->
                    <doclint>all,-html</doclint>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
