Hallo,
ich suche nun schon seit Stunden nach der Ursache für folgendes Problem.
Ich habe ein Programm (Maven- , welches auch Testfälle enthält.
In Eclipse kann ich die Tests auch ohne Probleme direkt durchführen (run - JUnit).
Sofern ich jedoch das MavenScript starte werden keine Tests durchgeführt.😬
hier habe ich schon alles erdenkliche versucht und bin zu keiner Lösung gekommen.
Kann jemand mir einen Tip geben, um die Ursache zu finden. 🙄
In der Anlage habe ich ein paar Screenshots vom Projekt erstellt.
Gruss Hein_nieH
Hier die pom.xml
ich suche nun schon seit Stunden nach der Ursache für folgendes Problem.
Ich habe ein Programm (Maven- , welches auch Testfälle enthält.
In Eclipse kann ich die Tests auch ohne Probleme direkt durchführen (run - JUnit).
Sofern ich jedoch das MavenScript starte werden keine Tests durchgeführt.😬
hier habe ich schon alles erdenkliche versucht und bin zu keiner Lösung gekommen.
Kann jemand mir einen Tip geben, um die Ursache zu finden. 🙄
In der Anlage habe ich ein paar Screenshots vom Projekt erstellt.
Gruss Hein_nieH
Hier die pom.xml
XML:
<project xmlns="[URL]http://maven.apache.org/POM/4.0.0[/URL]" xmlns:xsi="[URL]http://www.w3.org/2001/XMLSchema-instance[/URL]" xsi:schemaLocation="[URL]http://maven.apache.org/POM/4.0.0[/URL] [URL]http://maven.apache.org/xsd/maven-4.0.0.xsd[/URL]">
<modelVersion>4.0.0</modelVersion>
<groupId>VPN_Rebuild</groupId>
<artifactId>VPN_Rebuild</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>VPN_Rebuild name</name>
<description>VPN_Rebuild descr</description>
<properties>
<project.build.sourceEncoding>Cp1252</project.build.sourceEncoding>
<project.reporting.outputEncoding>Cp1252</project.reporting.outputEncoding>
<java.version>8</java.version>
</properties>
<!-- Anpassung des Standard-Build-Prozesses -->
<build>
<!-- Festlegen ressourcen -->
<resources>
<resource>
<directory>src</directory>
<includes></includes>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<!-- Anpassung des Build prozesses -->
<plugins>
<!-- Konfiguration des surefire-Plugins anpassen -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M1</version>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
<formats>
<format>xml</format>
<format>html</format>
</formats>
</configuration>
</plugin>
<!-- Konfiguration des maven-compiler-Plugins anpassen -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<release>${java.version}</release>
<compilerArgument>-Xlint:all</compilerArgument>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
<debug>true</debug>
<debuglevel>lines,vars,source</debuglevel>
<parameters>true</parameters>
</configuration>
</plugin>
<!-- Konfiguration des maven-jar-Plugins anpassen -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<!-- Verändert / Erweitert das default-Manifest -->
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>main.java.main.MainClass</mainClass>
</manifest>
</archive>
<!-- Name der jar-Datei aendern -->
<finalName>VPM_Rebuild__Git_Test</finalName>
<!-- Ausgabeort für jar-Datei aendern -->
<outputDirectory>C:\Users\${user.name}\Documents\Programmierung_Java\EXPORT</outputDirectory>
</configuration>
</plugin>
<!-- Konfiguration des jacoco-plugins anpassen -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.5</version>
<configuration>
<append>false</append>
</configuration>
<executions>
<execution>
<id>pre-unit-test</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>post-unit-test</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<configLocation>google_checks.xml</configLocation>
<encoding>Cp1252</encoding>
<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>
<linkXRef>false</linkXRef>
</configuration>
<executions>
<execution>
<id>validate</id>
<phase>package</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
-->
</plugins>
</build>
<!-- Einbindung externer Bibliotheken -->
<dependencies>
<!-- junit jupiter -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.7.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<version>5.7.0</version>
<scope>test</scope>
</dependency>
<!-- junit 4.12.0 nutzen, selbe version wie eclipse -->
<!--
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
-->
<!-- jfree jfreechart -->
<dependency>
<groupId>org.jfree</groupId>
<artifactId>jfreechart</artifactId>
<version>1.0.19</version>
</dependency>
<!-- jfree jcommon -->
<dependency>
<groupId>org.jfree</groupId>
<artifactId>jcommon</artifactId>
<version>1.0.23</version>
</dependency>
</dependencies>
</project>
Anhänge
Zuletzt bearbeitet von einem Moderator: