Maven Turorial

  • Beitrags-Autor:
  • Beitrags-Kategorie:Java

Gute Einführung ins Thema Maven von Jakob Jenkov.

PKIX

-Dmaven.wagon.http.ssl.insecure=true enable use of relaxed SSL check for user generated certificates.
-Dmaven.wagon.http.ssl.allowall=true enable match of the server’s X.509 certificate with hostname. If disabled, a browser like check will be used.
-Dmaven.wagon.http.ssl.ignore.validity.dates=true ignore issues with certificate dates.
-Dmaven.resolver.transport=wagon In Maven 3.9.0 and newer, they’ve switched to using Apache HttpClient 4 by default (You need to use this to switch back to wagon for the above flags to work).

-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true

jar-with-dependencies

<build>
  <plugins>
    <!-- any other plugins -->
    <plugin>
      <artifactId>maven-assembly-plugin</artifactId>
      <executions>
        <execution>
          <phase>package</phase>
          <goals>
            <goal>single</goal>
          </goals>
        </execution>
      </executions>
      <configuration>
        <descriptorRefs>
          <descriptorRef>jar-with-dependencies</descriptorRef>
        </descriptorRefs>
      </configuration>
    </plugin>
  </plugins>
</build>