Commit 9954db47aac67661e0eac903bf7e1a0fc53fad5a

Authored by Mateusz Kopeć
1 parent 7b95e31e

switch to assembly plugin

Showing 1 changed file with 27 additions and 15 deletions
1 1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2 2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 3 <modelVersion>4.0.0</modelVersion>
  4 +
4 5 <groupId>pl.waw.ipipan.zil.summ</groupId>
5 6 <artifactId>eval</artifactId>
6 7 <version>1.0</version>
... ... @@ -57,21 +58,32 @@
57 58 <target>${java.version.build}</target>
58 59 </configuration>
59 60 </plugin>
60   - <plugin>
61   - <groupId>com.jolira</groupId>
62   - <artifactId>onejar-maven-plugin</artifactId>
63   - <version>1.4.4</version>
64   - <executions>
65   - <execution>
66   - <configuration>
67   - <mainClass>pl.waw.ipipan.zil.summ.eval.Main</mainClass>
68   - </configuration>
69   - <goals>
70   - <goal>one-jar</goal>
71   - </goals>
72   - </execution>
73   - </executions>
74   - </plugin>
  61 + <plugin>
  62 + <groupId>org.apache.maven.plugins</groupId>
  63 + <artifactId>maven-assembly-plugin</artifactId>
  64 + <version>2.6</version>
  65 + <executions>
  66 + <execution>
  67 + <id>jar-with-dependencies</id>
  68 + <phase>package</phase>
  69 + <goals>
  70 + <goal>single</goal>
  71 + </goals>
  72 + <configuration>
  73 + <descriptorRefs>
  74 + <descriptorRef>jar-with-dependencies</descriptorRef>
  75 + </descriptorRefs>
  76 + <appendAssemblyId>false</appendAssemblyId>
  77 + <finalName>eval</finalName>
  78 + <archive>
  79 + <manifest>
  80 + <mainClass>pl.waw.ipipan.zil.summ.eval.Main</mainClass>
  81 + </manifest>
  82 + </archive>
  83 + </configuration>
  84 + </execution>
  85 + </executions>
  86 + </plugin>
75 87 </plugins>
76 88 </build>
77 89  
... ...