<?xml version="1.0" encoding="ISO-8859-1"?>
<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>
  <artifactId>org.gvsig.installer.app.mainplugin</artifactId>
  <packaging>jar</packaging>
  <name>${project.artifactId}</name>
  <parent>
    <groupId>org.gvsig</groupId>
    <artifactId>org.gvsig.installer.app</artifactId>
    <version>2.0.459</version>
  </parent>

  <dependencies>
<!--     <dependency> -->
<!--       <groupId>org.gvsig</groupId> -->
<!--       <artifactId>org.gvsig.app.mainplugin</artifactId> -->
<!--       <scope>compile</scope> -->
<!--     </dependency> -->
    <dependency>
      <groupId>org.gvsig</groupId>
      <artifactId>org.gvsig.andami</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.gvsig</groupId>
      <artifactId>org.gvsig.tools.lib</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.gvsig</groupId>
      <artifactId>org.gvsig.i18n</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.gvsig</groupId>
      <artifactId>org.gvsig.installer.lib.api</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.gvsig</groupId>
      <artifactId>org.gvsig.installer.swing.api</artifactId>
      <scope>compile</scope>
    </dependency>

    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <scope>compile</scope>
    </dependency>

  </dependencies>


  <build>
      <plugins>

        <plugin>
          <!-- Skip test execution -->
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <configuration>
            <skipTests>true</skipTests>
          </configuration>
        </plugin>
        
          <plugin>
            <groupId>org.codehaus.gmaven</groupId>
            <artifactId>gmaven-plugin</artifactId>
            <executions>        
             <execution>
		  <id>install-installer-urls</id>
		  <phase>install</phase>
                    <goals>
                      <goal>execute</goal>
                    </goals>
                <configuration>
		      <source><![CDATA[
  if( project.properties["buildNumber"] != null) {
    if( project.properties["gvsig.install.plugin"]=="true" ) {
      // Copy defaultDownloadsURLs to install root
      ant = new AntBuilder()
      source = project.properties["gvsig.product.folder.path"] +
	"/gvSIG/extensiones/" +
	project.properties["gvsig.package.info.code"] +
	"/defaultDownloadsURLs"

      target = project.properties["gvsig.product.folder.path"] +
	"/gvsig-installer-urls.config"
      log.info("Copy plugin 'gvsig-installer-urls.config' from " + source + " to " + target)
      ant.copy(file:source, tofile:target)
    }
  }
		    ]]></source>
		  </configuration>
	      </execution>

            </executions>
          </plugin>        
        
      </plugins>
  </build>

  <properties>
    <gvsig.package.info.categories>Addon Management</gvsig.package.info.categories>
    <gvsig.package.info.codealias>org.gvsig.installer.app.extension</gvsig.package.info.codealias>
    <gvsig.package.info.official>true</gvsig.package.info.official>
    <gvsig.package.info.name>Add-ons manager</gvsig.package.info.name>
  </properties>

</project>
