<?xml version="1.0" encoding="UTF-8"?>
<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.struts</groupId>
        <artifactId>struts2-plugins</artifactId>
        <version>2.0.3-SNAPSHOT</version>
   </parent>
    <groupId>org.apache.struts</groupId>
    <artifactId>struts2-jfreechart-plugin</artifactId>
    <packaging>jar</packaging>
    <name>Struts 2 JFreeChart Plugin</name>
    
    <scm>
       <connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/jfreechart/</connection>
       <developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/jfreechart/</developerConnection>
       <url>http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/plugins/jfreechart/</url>
    </scm>
    
    <profiles>
		<profile>
	    	<!-- 
	    		Run the translator for Java 1.4 compatiblity
	    		
	    		Sample:
	    		$ cd struts/struts2/
	    		$ mvn clean install -Papps,j4 -Djava14.jar=$JAVA_HOME/../Classes/classes.jar
	    	
	    	 -->
	      <id>j4</id>
	      <build>
	        <plugins>
	          <plugin>
	            <groupId>org.codehaus.mojo</groupId>
	            <artifactId>retrotranslator-maven-plugin</artifactId>
	            <executions>
	              <execution>
	                <id>retrotranslate</id>
	              </execution>
	            </executions>
	          </plugin>
	          <plugin>
	            <artifactId>maven-jar-plugin</artifactId>
	            <executions>
	              <execution>
	                <id>create-j4-jar</id>
	                <goals><goal>jar</goal></goals>
	                <configuration>
	                  <classesDirectory>${project.build.directory}/classes-retro</classesDirectory>
	                  <classifier>j4</classifier>
	                  <archive>
	                    <manifestEntries>
	                      <Extension-Name>${project.artifactId}-j4</Extension-Name>
	                      <Specification-Vendor>${project.organization.name}</Specification-Vendor>
	                      <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
	                      <Implementation-Title>${project.description}</Implementation-Title>
	                      <Implementation-Version>${project.version}</Implementation-Version>
	                      <Revision>${scm.revision}</Revision>
	                    </manifestEntries>
	                   </archive>
	                </configuration>
	              </execution>
	            </executions>
	          </plugin>
	        </plugins>
	      </build>
	       <dependencies>
	        <dependency>
	          <groupId>sun.jdk</groupId>
	          <artifactId>rt</artifactId>
	          <version>1.4.0</version>
	          <scope>system</scope>
	          <!-- path to rt.jar (on OSX, it's classes.jar) -->
	          <systemPath>${java14.jar}</systemPath>
	        </dependency>
	        <dependency>
	          <groupId>net.sf.retrotranslator</groupId>
	          <artifactId>retrotranslator-runtime</artifactId>
	          <version>1.0.8</version>
	        </dependency>
	      </dependencies>
	    </profile>
    
    </profiles>

    <dependencies>
        <dependency>
            <groupId>jfree</groupId>
            <artifactId>jcommon</artifactId>
            <version>1.0.2</version>
            <scope>provided</scope>
            <exclusions>
                <exclusion>
                    <groupId>gnujaxp</groupId>
                    <artifactId>gnujaxp</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>jfree</groupId>
            <artifactId>jfreechart</artifactId>
            <version>1.0.1</version>
            <scope>provided</scope>
            <exclusions>
                <exclusion>
                    <groupId>gnujaxp</groupId>
                    <artifactId>gnujaxp</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>mockobjects</groupId>
            <artifactId>mockobjects-core</artifactId>
            <version>0.09</version>
            <scope>test</scope>
        </dependency>


    </dependencies>
</project>
