1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   2          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
   3     <modelVersion>4.0.0</modelVersion>
   4 
   5     <groupId>org.netbeans.ios</groupId>
   6     <artifactId>ios-maven-plugin</artifactId>
   7     <version>0.6-SNAPSHOT</version>
   8     <parent>
   9         <groupId>org.netbeans.ios</groupId>
  10         <artifactId>Maven</artifactId>
  11         <version>0.6-SNAPSHOT</version>
  12     </parent>
  13     <packaging>maven-plugin</packaging>
  14 
  15     <name>iOS Maven Plugin</name>
  16 
  17     <url>http://bck2brwsr.apidesign.org/</url>
  18 
  19     <properties>
  20         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  21     </properties>
  22 
  23     <dependencies>
  24         <dependency>
  25             <groupId>org.apache.maven</groupId>
  26             <artifactId>maven-plugin-api</artifactId>
  27             <version>3.0.5</version>
  28             <exclusions>
  29                 <exclusion>
  30                     <artifactId>plexus-utils</artifactId>
  31                     <groupId>org.codehaus.plexus</groupId>
  32                 </exclusion>
  33             </exclusions>
  34         </dependency>
  35         <dependency>
  36             <groupId>org.apache.maven.plugin-tools</groupId>
  37             <artifactId>maven-plugin-annotations</artifactId>
  38             <version>3.2</version>
  39             <scope>provided</scope>
  40         </dependency>
  41         <dependency>
  42             <groupId>org.codehaus.plexus</groupId>
  43             <artifactId>plexus-utils</artifactId>
  44             <version>3.0.10</version>
  45         </dependency>
  46         <dependency>
  47             <groupId>org.apache.maven.plugin-tools</groupId>
  48             <artifactId>maven-script-ant</artifactId>
  49             <version>3.2</version>
  50             <exclusions>
  51                 <exclusion>
  52                     <artifactId>plexus-utils</artifactId>
  53                     <groupId>org.codehaus.plexus</groupId>
  54                 </exclusion>
  55             </exclusions>
  56         </dependency>
  57         <dependency>
  58             <groupId>org.codehaus.plexus</groupId>
  59             <artifactId>plexus-archiver</artifactId>
  60             <version>2.4.1</version>
  61         </dependency>
  62         
  63         <dependency>
  64             <groupId>org.apache.ant</groupId>
  65             <artifactId>ant-nodeps</artifactId>
  66             <version>1.8.1</version>
  67         </dependency>
  68         <dependency>
  69             <groupId>org.apache.ant</groupId>
  70             <artifactId>ant</artifactId>
  71             <version>1.8.1</version>
  72         </dependency>
  73         <dependency>
  74             <groupId>org.apache.maven</groupId>
  75             <artifactId>maven-core</artifactId>
  76             <version>3.0.5</version>
  77             <exclusions>
  78                 <exclusion>
  79                     <artifactId>plexus-utils</artifactId>
  80                     <groupId>org.codehaus.plexus</groupId>
  81                 </exclusion>
  82             </exclusions>
  83         </dependency>
  84         <dependency>
  85             <groupId>org.netbeans.ios</groupId>
  86             <artifactId>mobile-center</artifactId>
  87             <version>${project.version}</version>
  88         </dependency>
  89         <dependency>
  90             <groupId>org.apache.ant</groupId>
  91             <artifactId>ant-launcher</artifactId>
  92             <version>1.8.1</version>
  93         </dependency>
  94     </dependencies>
  95 
  96     <build>
  97         <plugins>
  98             <plugin>
  99                 <groupId>org.apache.maven.plugins</groupId>
 100                 <artifactId>maven-antrun-plugin</artifactId>
 101                 <version>1.7</version>
 102                 <executions>
 103                     <execution>
 104                         <id>copy-resources</id>
 105                         <phase>process-resources</phase>
 106                         <configuration>
 107                             <target>
 108                                 <property name="main.destdir" value="./target/classes/ios-maven-plugin/JFXLauncher" />
 109                                 <property name="launcher.builddir" value="../../build/JFXLauncher" />
 110                                 <delete dir="${main.destdir}" />
 111                                 <mkdir dir="${main.destdir}"/>
 112                                 <copy todir="${main.destdir}">
 113                                     <fileset dir="${launcher.builddir}" />
 114                                 </copy>                             
 115                             </target>
 116                         </configuration>
 117                         <goals>
 118                             <goal>run</goal>
 119                         </goals>
 120                     </execution>
 121                 </executions>
 122             </plugin>          
 123             <plugin>
 124                 <groupId>org.apache.maven.plugins</groupId>
 125                 <artifactId>maven-dependency-plugin</artifactId>
 126                 <version>2.8</version>
 127                 <executions>
 128                     <execution>
 129                         <id>bundle-mobilecenter</id>
 130                         <phase>process-resources</phase>
 131                         <configuration>
 132                             <artifactItems>
 133                                 <artifactItem>
 134                                     <groupId>org.netbeans.ios</groupId>
 135                                     <artifactId>mobile-center</artifactId>
 136                                     <version>${project.version}</version>
 137                                     <type>jar</type>                                        
 138                                     <overWrite>true</overWrite>
 139                                     <outputDirectory>${project.build.directory}/classes/ios-maven-plugin</outputDirectory>
 140                                     <destFileName>mobilecenter.jar</destFileName>
 141                                 </artifactItem>
 142                             </artifactItems>
 143                         </configuration>
 144                         <goals>
 145                             <goal>copy</goal>                           
 146                         </goals>
 147                     </execution>
 148                 </executions>
 149             </plugin>
 150             <plugin>
 151                 <groupId>org.apache.maven.plugins</groupId>
 152                 <artifactId>maven-plugin-plugin</artifactId>
 153                 <version>3.2</version>
 154                 <dependencies>
 155                     <dependency>
 156                         <groupId>org.apache.maven.plugin-tools</groupId>
 157                         <artifactId>maven-plugin-tools-ant</artifactId>
 158                         <version>3.2</version>
 159                     </dependency>
 160                 </dependencies>
 161                 <configuration>
 162                     <goalPrefix>ios</goalPrefix>
 163                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
 164                 </configuration>
 165                 <executions>
 166                     <execution>
 167                         <id>mojo-descriptor</id>
 168                         <goals>
 169                             <goal>descriptor</goal>
 170                         </goals>
 171                     </execution>
 172                     <execution>
 173                         <id>help-goal</id>
 174                         <goals>
 175                             <goal>helpmojo</goal>
 176                         </goals>
 177                     </execution>
 178                 </executions>                
 179             </plugin>
 180         </plugins>
 181     </build>
 182 </project>