Commits

Sara Magliacane committed 9f6b3b5

adding the pom file that allows to build an executable jar

Comments (0)

Files changed (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/xsd/maven-4.0.0.xsd">
   <modelVersion>4.0.0</modelVersion>
-  <groupId>recoprov</groupId>
+  <groupId>nl.vu</groupId>
   <artifactId>recoprov</artifactId>
   <version>0.0.1-SNAPSHOT</version>
   <build>
     <sourceDirectory>src</sourceDirectory>
     
+
+    
     <resources>
       <resource>
         <directory>dropbox-java-sdk-1.3/lib/</directory>
           <target/>
         </configuration>
       </plugin>
+      
+      <plugin>
+    		<groupId>org.apache.maven.plugins</groupId>
+    	    <artifactId>maven-jar-plugin</artifactId>
+    	    <version>2.2</version>
+    	    <!-- nothing here -->
+    	</plugin>
+
+    <plugin>
+      <artifactId>maven-assembly-plugin</artifactId>
+      <configuration>
+        <archive>
+          <manifest>
+            <mainClass>nl.vu.recoprov.experiments.Experiment3</mainClass>
+          </manifest>
+        </archive>
+        <descriptorRefs>
+          <descriptorRef>jar-with-dependencies</descriptorRef>
+        </descriptorRefs>
+      </configuration>
+      <executions>
+    	      <execution>
+    	        <phase>package</phase>
+    	        <goals>
+    	          <goal>single</goal>
+    	        </goals>
+    	      </execution>
+    	    </executions>
+    </plugin>
+      
     </plugins>
   </build>
   <repositories>
 </dependency>
 
   </dependencies>
+
 </project>