0

Kopie eines Jars aus dem Repository in ein Modulverzeichnis

Posted by admin on June 25, 2012 in Maven |

Für das Schnüren eines Software-Paketes benötigte ich ein JAR aus meinem Artifactory. Diese Dependency sollte lediglich in ein entsprechendes Output-Directory kopiert werden. Das Maven Dependency-Plugin hat die Aufgabe lösen können. Der folgende Pom-Auschnitt kopiert ein Jar (siehe artifactItem) in das konfigurierte OutputDirecory. <build>     <plugins>         <plugin>             <groupId>org.apache.maven.plugins</groupId>            [...]

Tags: , ,

0

Maven Surefire Plugin – out of memory – verhindern

Posted by admin on July 4, 2011 in Maven |

Durch die Konfiguration des Surefire-Plugins, kann ein “Out-of-memory” verhindert werden: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <forkMode>pertest</forkMode> <argLine>-Xms512m -Xmx512m</argLine> <testFailureIgnore>false</testFailureIgnore> <skip>false</skip> </configuration> </plugin> Hier gefunden: maven-set-java-heap-memory-for-junit-in-maven-surefire-plugin

Tags:

0

Maven compile mit ausgewählter JVM-Version

Posted by admin on October 21, 2010 in Java, Maven |

Antwort: Der “pom.xml” wird folgender Abschnitt hinzugefügt <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> </plugins> </build> Stichworte: source level, generics, java version

Tags: ,

0

Wie erzeugt man ein Source-Jar mit maven?

Posted by admin on October 18, 2010 in Java, Maven |

Antwort: Der “pom.xml” wird folgender Abschnitt hinzugefügt <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> </plugins> </build>

Tags:

Copyright © 2010-2024 Analysisfreaks.de All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.0.4, from BuyNowShop.com.

Developed by Hardik