Installer (java): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
{{note|Noch in Bearbeitung}}
== Single Jar File ==
== Single Jar File ==


Zeile 46: Zeile 49:
</project>
</project>
</pre>
</pre>
Zurück zu [[Java]]

Version vom 7. September 2016, 17:20 Uhr

Noch in Bearbeitung


Single Jar File

Im Maven-Pom-File folgendes Plugin hinzufügen:

<project>
    ...
    <build>
        <finalName>j...</finalName>
        <resources>
            ...
        </resources>
        <plugins>
            ...


            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>attached</goal>
                        </goals>
                        <phase>package</phase>
                        <configuration>
                            <descriptorRefs>
                                <descriptorRef>jar-with-dependencies</descriptorRef>
                            </descriptorRefs>
                            <archive>
                                <manifest>
                                    <mainClass>...</mainClass>
                                </manifest>
                            </archive>
                        </configuration>
                    </execution>
                </executions>
            </plugin>


            ...
        <plugins>

        ...
    </build>
    ...
</project>


Zurück zu Java