Advertisement
Guest User

pom.xml

a guest
Aug 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.54 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <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/xsd/maven-4.0.0.xsd">
  3.     <modelVersion>4.0.0</modelVersion>
  4.  
  5.     <groupId>com.mycompany</groupId>
  6.     <artifactId>PicaMaven</artifactId>
  7.     <version>1.0-SNAPSHOT</version>
  8.     <packaging>jar</packaging>
  9.  
  10.     <name>PicaMaven</name>
  11.  
  12.     <properties>
  13.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14.         <mainClass>com.mycompany.picamaven.MainApp</mainClass>
  15.     </properties>
  16.  
  17.     <organization>
  18.         <!-- Used as the 'Vendor' for JNLP generation -->
  19.         <name>Your Organisation</name>
  20.     </organization>
  21.  
  22.     <build>
  23.         <plugins>
  24.             <plugin>
  25.                 <groupId>org.apache.maven.plugins</groupId>
  26.                 <artifactId>maven-dependency-plugin</artifactId>
  27.                 <version>2.6</version>
  28.                 <executions>
  29.                     <execution>
  30.                         <id>unpack-dependencies</id>
  31.                         <phase>package</phase>
  32.                         <goals>
  33.                             <goal>unpack-dependencies</goal>
  34.                         </goals>
  35.                         <configuration>
  36.                             <excludeScope>system</excludeScope>
  37.                             <excludeGroupIds>junit,org.mockito,org.hamcrest</excludeGroupIds>
  38.                             <outputDirectory>${project.build.directory}/classes</outputDirectory>
  39.                         </configuration>
  40.                     </execution>
  41.                 </executions>
  42.             </plugin>
  43.             <plugin>
  44.                 <groupId>org.codehaus.mojo</groupId>
  45.                 <artifactId>exec-maven-plugin</artifactId>
  46.                 <version>1.2.1</version>
  47.                 <executions>
  48.                     <execution>
  49.                         <id>unpack-dependencies</id>
  50.                        
  51.                         <phase>package</phase>
  52.                         <goals>
  53.                             <goal>exec</goal>
  54.                         </goals>
  55.                         <configuration>
  56.                             <executable>${java.home}/../bin/javafxpackager</executable>
  57.                             <arguments>
  58.                                 <argument>-createjar</argument>
  59.                                 <argument>-nocss2bin</argument>
  60.                                 <argument>-appclass</argument>
  61.                                 <argument>${mainClass}</argument>
  62.                                 <argument>-srcdir</argument>
  63.                                 <argument>${project.build.directory}/classes</argument>
  64.                                 <argument>-outdir</argument>
  65.                                 <argument>${project.build.directory}</argument>
  66.                                 <argument>-outfile</argument>
  67.                                 <argument>PicaMaven-standalone.jar</argument>
  68.                             </arguments>
  69.                         </configuration>
  70.                     </execution>
  71.                     <execution>
  72.                         <id>default-cli</id>
  73.                         <goals>
  74.                             <goal>exec</goal>                            
  75.                         </goals>
  76.                         <configuration>
  77.                             <executable>${java.home}/bin/java</executable>
  78.                             <commandlineArgs>${runfx.args}</commandlineArgs>
  79.                         </configuration>
  80.                     </execution>
  81.                 </executions>  
  82.             </plugin>
  83.            
  84.             <plugin>
  85.                 <groupId>org.apache.maven.plugins</groupId>
  86.                 <artifactId>maven-compiler-plugin</artifactId>
  87.                 <version>3.1</version>
  88.                 <configuration>
  89.                     <source>1.7</source>
  90.                     <target>1.7</target>
  91.                     <compilerArguments>
  92.                         <bootclasspath>${sun.boot.class.path}${path.separator}${java.home}/lib/jfxrt.jar</bootclasspath>
  93.                     </compilerArguments>
  94.                 </configuration>
  95.             </plugin>
  96.             <plugin>
  97.                 <groupId>org.apache.maven.plugins</groupId>
  98.                 <artifactId>maven-surefire-plugin</artifactId>
  99.                 <version>2.16</version>
  100.                 <configuration>
  101.                     <additionalClasspathElements>
  102.                         <additionalClasspathElement>${java.home}/lib/jfxrt.jar</additionalClasspathElement>
  103.                     </additionalClasspathElements>
  104.                 </configuration>
  105.             </plugin>
  106.            <plugin>
  107.                 <groupId>org.apache.maven.plugins</groupId>
  108.                 <artifactId>maven-jar-plugin</artifactId>
  109.                 <version>2.4</version>
  110.                 <configuration>
  111.                     <archive>
  112.                         <manifest>
  113.                             <addClasspath>true</addClasspath>
  114.                             <mainClass>com.mycompany.picamaven.MainApp</mainClass>
  115.                         </manifest>
  116.                     </archive>
  117.                 </configuration>
  118.             </plugin>
  119.         </plugins>
  120.     </build>
  121.     <dependencies>
  122.         <dependency>
  123.             <groupId>org.apache.poi</groupId>
  124.             <artifactId>poi-ooxml</artifactId>
  125.             <version>3.17</version>
  126.             <type>jar</type>
  127.         </dependency>
  128.     </dependencies>
  129. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement