<?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</groupId>
        <artifactId>apache</artifactId>
        <version>7</version>
  </parent>
  <groupId>org.apache.woden</groupId>
  <artifactId>woden</artifactId>
  <version>1.0M9</version>
  <packaging>pom</packaging>
  <inceptionYear>2005</inceptionYear>
  <name>Woden</name>
  <description>The Woden project is a subproject of the Apache Web Services Project to
    develop a Java class library for reading, manipulating, creating and writing WSDL documents,
    initially to support WSDL 2.0 but with the longer term aim of supporting past, present and
    future versions of WSDL.

    There are two main deliverables: an API and an implementation. The Woden API consists of
    a set of Java interfaces. The WSDL 2.0-specific portion of the Woden API conforms to the
    W3C WSDL 2.0 specification. The implementation will be a high performance implementation
    directly usable in other Apache projects such as Axis2.
  </description>
  <url>http://ws.apache.org/woden/</url>
  <scm>
    <connection>scm:svn:http://svn.apache.org/repos/asf/webservices/woden/tags/1.0M9</connection>
    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/webservices/woden/tags/1.0M9</developerConnection>
    <url>http://svn.apache.org/viewvc/webservices/woden/tags/1.0M9</url>
  </scm>
  <reporting>
    <plugins>
      <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <configuration>
              <systemProperties>
                  <property>
                      <name>org.apache.woden.resolver.logging</name>
                      <value>off</value>
                  </property>
              </systemProperties>
          </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-report-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
        <version>1.0.0</version>
      </plugin>
    </plugins>
  </reporting>
  <mailingLists>
    <mailingList>
      <name>Woden Developers</name>
      <subscribe>woden-dev-subscribe@ws.apache.org</subscribe>
      <unsubscribe>woden-dev-unsubscribe@ws.apache.org</unsubscribe>
      <archive>http://mail-archives.apache.org/mod_mbox/ws-woden-dev/</archive>
      <post>woden-dev@ws.apache.org</post>
    </mailingList>
    <mailingList>
      <name>woden-cvs</name>
      <subscribe>woden-cvs-subscribe@incubator.apache.org</subscribe>
      <unsubscribe>woden-cvs-unsubscribe@incubator.apache.org</unsubscribe>
    </mailingList>
  </mailingLists>
  <issueManagement>
    <system>jira</system>
    <url>http://issues.apache.org/jira/browse/Woden</url>
  </issueManagement>
  <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>
  <organization>
    <name>Apache Software Foundation</name>
    <url>http://www.apache.org/</url>
  </organization>
  <dependencies>  
	  
   
	  <!-- Test dependencies -->
	  <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.2</version>
      <scope>test</scope>
    </dependency>
	
  </dependencies>
  <build>
 
      <plugins>
	   <!--
          <plugin>
            <artifactId>maven-jar-plugin</artifactId>
            <configuration>
              <archive>
                <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
              </archive>
            </configuration>
          </plugin>
          <plugin>
            <groupId>org.apache.felix</groupId>
            <artifactId>maven-bundle-plugin</artifactId>
            <version>${bundle.plugin.version}</version>
            <configuration>
                <instructions>
                    <Bundle-Version>${woden.osgi.version}</Bundle-Version>
                </instructions>
            </configuration>
            <executions>
              <execution>
                <id>bundle-manifest</id>
                <phase>process-classes</phase>
                <goals>
                  <goal>manifest</goal>
                </goals>
              </execution>
            </executions>
          </plugin>-->
		<plugin>
                <groupId>org.apache.rat</groupId>
                <artifactId>apache-rat-plugin</artifactId>
                <version>0.6</version>
                <executions>
                    <execution>
                        <phase>verify</phase>
                        <goals>
						    <!-- TO-DO 
                                                                              Enable this goal but need to fix build breaking with incorrect check result of RAT plug-in.
                                                                               Temporally disable to avoid build fails. 																					  
							-->
                           <!-- <goal>check</goal>  -->
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <excludes>
                         <exclude>legal/LICENSE.xerces</exclude>
                         <exclude>legal/LICENSE.dom</exclude>
                         <exclude>legal/LICENSE.sax</exclude>
                         <exclude>legal/LICENSE.wsdl4j.html</exclude>
						 <exclude>woden-1.0.0M6-test-results.html</exclude> 
						 <exclude>ant-test/validation-results.xml</exclude>
						 <exclude>ant-test/documents-bad-report.xml</exclude>
						 <exclude>ant-test/documents-good-report.xml</exclude>
						 <exclude>ant-test/validation-results-without-ids.xml</exclude>
						 <exclude>ant-test/test-suite-results.zip</exclude>
                         <exclude>eclipseplugin/META-INF/MANIFEST.MF</exclude>						 
                    </excludes>
                </configuration> 
            </plugin>

      </plugins> 
  </build>
  <repositories>
    <repository>
      <id>apache.snapshots</id>
      <name>Apache Snapshot Repository</name>
      <url>http://repository.apache.org/snapshots</url>
      <releases>
        <enabled>false</enabled>
      </releases>
    </repository>
  </repositories>
  <distributionManagement>
    <snapshotRepository>
      <id>apache.snapshots</id>
      <name>Apache Snapshot Repository</name>
      <url>scpexe://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
      <uniqueVersion>false</uniqueVersion>
    </snapshotRepository>
  </distributionManagement>
 
	<profiles>
		<!-- use for usual developer builds -->
		<profile>
			<id>build</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<modules>
				<module>woden-qname</module>
				<module>woden-api</module>
				<module>woden-commons</module>
				<module>woden-dom</module>
				<module>woden-om</module>
				<module>woden-tests</module>
				<module>woden-tool</module>
				<module>woden-converter-maven-plugin</module>
				<module>woden-ant</module>
			</modules>
		</profile>
		
		<!-- use for Maven2 releases -P m2_release
			
			 -->
		<profile>
			<id>m2_release</id>
			<modules>
				<module>woden-qname</module>
				<module>woden-api</module>
				<module>woden-commons</module>
				<module>woden-dom</module>
				<module>woden-om</module>
				<module>woden-tool</module>
				<module>woden-converter-maven-plugin</module>
				<module>woden-ant</module>
			</modules>
                         <build>
                           <plugins>
                              <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-gpg-plugin</artifactId>
                                <version>1.1</version>                                   
                              </plugin>
                              <plugin>
                                 <groupId>org.apache.maven.plugins</groupId> 
                                 <artifactId>maven-release-plugin</artifactId>
                                 <version>2.0-beta-9</version> 
                                 <configuration>
                                   <tagBase>https://svn.apache.org/repos/asf/webservices/woden/tags/</tagBase>
                                   <autoVersionSubmodules>true</autoVersionSubmodules>
                                    <!-- The default value "clean verify" is not appropriate. If the install
	                                 phase is not executed, then the current build will pick up artifacts
	                                 from a previous build. -->
                                   <preparationGoals>clean install</preparationGoals>
                                  </configuration>
                               </plugin> 
                           </plugins>
                        </build>			
		</profile>
		<!-- use for distrubution-->
		<!-- mvn clean package assembly:assembly  antrun:run  -P dist -->
		<profile>
			<id>dist</id>
			<modules>
				<module>woden-qname</module>
				<module>woden-ant</module>   
				<module>woden-api</module>
				<module>woden-commons</module>
				<module>woden-dom</module>
			    <module>woden-om</module>
				<!--<module>woden-tests</module> -->
				<module>woden-tool</module>
				<module>woden-converter-maven-plugin</module>
				<module>woden-ant</module> 
			</modules>
			<build>  
               <plugins>
			     <plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-javadoc-plugin</artifactId>
					<version>2.6.1</version>
					<configuration> 
                        <excludePackageNames>org.apache.woden.internal</excludePackageNames>
			    	</configuration>
					<executions>
						<execution>
							<id>aggregate</id>
							<goals>
								<goal>aggregate</goal>
							</goals>
							<phase>package</phase>
						</execution>
                 </executions>
				</plugin>
		<plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-antrun-plugin</artifactId>  
          <version>1.2</version>
		 <inherited>false</inherited>                
         <configuration> 
            <tasks>		 
                  <echo message="Create checksums for the .zip, .tar.gz and .tar.bz2 files in dist " />
				    <checksum todir="${project.build.directory}">
                       <fileset dir="${project.build.directory}">
						<include name="*.tar.gz" />
						<include name="*.tar.bz2" />
						<include name="*.zip" />
                    </fileset>
                   </checksum>
				    <checksum algorithm="SHA" todir="${project.build.directory}">
                       <fileset dir="${project.build.directory}">
						<include name="*.tar.gz" />
						<include name="*.tar.bz2" />
						<include name="*.zip" />
                    </fileset>
                   </checksum>
			</tasks>

	     </configuration>
        
      </plugin>
      </plugins> 	  
	  	<pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <configuration>
                        <descriptors>
                            <descriptor>src/main/assembly/dom.xml</descriptor>
                            <descriptor>src/main/assembly/om.xml</descriptor> 
                            <descriptor>src/main/assembly/src.xml</descriptor>
                        </descriptors>
                        <tarLongFileMode>gnu</tarLongFileMode>
                    </configuration>
                </plugin>
	

            </plugins>
        </pluginManagement>
  </build>
		</profile>
	</profiles>
	

 <properties>
		<woden.osgi.version>1.0.0</woden.osgi.version>
		<bundle.plugin.version>1.4.0</bundle.plugin.version>
		<apache.xmlSchema.version>1.4.7</apache.xmlSchema.version>
		<apache.axiom.version>1.2.11</apache.axiom.version>
		<apache.ant.version>1.7.1</apache.ant.version>
		<wsdl4j.version>1.6.2</wsdl4j.version>
		<slf4.version>1.5.8</slf4.version>
		<lof4j.version>1.2.15</lof4j.version>
	    <commons.logging.version>1.1.1</commons.logging.version>
 </properties>
</project>
