Browse Source

Maven tworzy wykonywalny plik JAR.

master
Piotr Dergun 10 years ago
parent
commit
8b73ac3c56
7 changed files with 33 additions and 5 deletions
  1. +28
    -0
      pom.xml
  2. BIN
      target/classes/ksiazka/kucharska/App.class
  3. BIN
      target/ksiazka-kucharska-1.0.jar
  4. BIN
      target/original-ksiazka-kucharska-1.0.jar
  5. +4
    -4
      target/surefire-reports/TEST-ksiazka.kucharska.AppTest.xml
  6. +1
    -1
      target/surefire-reports/ksiazka.kucharska.AppTest.txt
  7. BIN
      target/test-classes/ksiazka/kucharska/AppTest.class

+ 28
- 0
pom.xml View File

@ -14,6 +14,34 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifest>
<mainClass>ksiazka.kucharska.App</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>

BIN
target/classes/ksiazka/kucharska/App.class View File


BIN
target/ksiazka-kucharska-1.0.jar View File


BIN
target/original-ksiazka-kucharska-1.0.jar View File


+ 4
- 4
target/surefire-reports/TEST-ksiazka.kucharska.AppTest.xml View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<testsuite failures="0" time="0.002" errors="0" skipped="0" tests="1" name="ksiazka.kucharska.AppTest">
<testsuite failures="0" time="0.003" errors="0" skipped="0" tests="1" name="ksiazka.kucharska.AppTest">
<properties> <properties>
<property name="java.runtime.name" value="OpenJDK Runtime Environment"/> <property name="java.runtime.name" value="OpenJDK Runtime Environment"/>
<property name="sun.boot.library.path" value="/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64"/> <property name="sun.boot.library.path" value="/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64"/>
@ -24,7 +24,7 @@
"/> "/>
<property name="java.vm.specification.vendor" value="Oracle Corporation"/> <property name="java.vm.specification.vendor" value="Oracle Corporation"/>
<property name="os.name" value="Linux"/> <property name="os.name" value="Linux"/>
<property name="classworlds.conf" value="/home/piotrek/eclipse-projekty/.metadata/.plugins/org.eclipse.m2e.core/launches/m2conf1068058391755003635.tmp"/>
<property name="classworlds.conf" value="/home/piotrek/eclipse-projekty/.metadata/.plugins/org.eclipse.m2e.core/launches/m2conf7742699822893189362.tmp"/>
<property name="sun.jnu.encoding" value="UTF-8"/> <property name="sun.jnu.encoding" value="UTF-8"/>
<property name="java.library.path" value="/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib"/> <property name="java.library.path" value="/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib"/>
<property name="java.specification.name" value="Java Platform API Specification"/> <property name="java.specification.name" value="Java Platform API Specification"/>
@ -42,7 +42,7 @@
<property name="java.vm.specification.version" value="1.7"/> <property name="java.vm.specification.version" value="1.7"/>
<property name="sun.arch.data.model" value="64"/> <property name="sun.arch.data.model" value="64"/>
<property name="java.home" value="/usr/lib/jvm/java-7-openjdk-amd64/jre"/> <property name="java.home" value="/usr/lib/jvm/java-7-openjdk-amd64/jre"/>
<property name="sun.java.command" value="org.codehaus.classworlds.Launcher -B clean install"/>
<property name="sun.java.command" value="org.codehaus.classworlds.Launcher -B install"/>
<property name="java.specification.vendor" value="Oracle Corporation"/> <property name="java.specification.vendor" value="Oracle Corporation"/>
<property name="user.language" value="pl"/> <property name="user.language" value="pl"/>
<property name="awt.toolkit" value="sun.awt.X11.XToolkit"/> <property name="awt.toolkit" value="sun.awt.X11.XToolkit"/>
@ -59,5 +59,5 @@
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/> <property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
<property name="sun.cpu.isalist" value=""/> <property name="sun.cpu.isalist" value=""/>
</properties> </properties>
<testcase time="0.002" classname="ksiazka.kucharska.AppTest" name="testApp"/>
<testcase time="0.003" classname="ksiazka.kucharska.AppTest" name="testApp"/>
</testsuite> </testsuite>

+ 1
- 1
target/surefire-reports/ksiazka.kucharska.AppTest.txt View File

@ -1,4 +1,4 @@
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Test set: ksiazka.kucharska.AppTest Test set: ksiazka.kucharska.AppTest
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec

BIN
target/test-classes/ksiazka/kucharska/AppTest.class View File


Loading…
Cancel
Save