Failed to compile jar with Maven Build

Discussion in 'Plugin Development' started by RcExtract, Apr 10, 2018.

Thread Status:
Not open for further replies.
  1. Offline

    RcExtract

    So i want to build my jar with Maven Build, but failed. Here is the log:
    Code:
    [INFO] Scanning for projects...
    [INFO]                                                                        
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Minecord 1.2.0 SNAPSHOT 1.0
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ minecord ---
    [INFO] Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0/plexus-utils-3.0.pom
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 0.834 s
    [INFO] Finished at: 2018-04-10T23:48:39+08:00
    [INFO] Final Memory: 7M/155M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project minecord: Execution default-clean of goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean failed: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-clean-plugin:jar:2.5 -> org.codehaus.plexus:plexus-utils:jar:3.0: Failed to read artifact descriptor for org.codehaus.plexus:plexus-utils:jar:3.0: Could not transfer artifact org.codehaus.plexus:plexus-utils:pom:3.0 from/to central (https://repo.maven.apache.org/maven2): RSA premaster secret error: SunTls12RsaPremasterSecret KeyGenerator not available -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
    Here is my pom.xml:
    Code:
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
      <modelVersion>4.0.0</modelVersion>
      <groupId>com.rcextract</groupId>
      <artifactId>minecord</artifactId>
      <version>1.2.0 SNAPSHOT 1.0</version>
      <name>Minecord</name>
      <description>The ultimate multichat solution for Minecraft servers.</description>
      <build>
        <finalName>Minecord-1.2.0-s1.0</finalName>
        <sourceDirectory>src/main/java</sourceDirectory>
        <resources>
          <resource>
            <targetPath>.</targetPath>
            <filtering>true</filtering>
            <directory>${basedir}/src/main/resources/</directory>
            <includes>
              <include>plugin.yml</include>
              <include>minecord.yml</include>
            </includes>
          </resource>
        </resources>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.7.0</version>
            <configuration>
              <source>1.8</source>
              <target>1.8</target>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <repositories>
        <repository>
           <id>spigot-repo</id>
           <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
        </repository>
        <repository>
           <id>vault-repo</id>
           <url>http://nexus.hc.to/content/repositories/pub_releases</url>
        </repository>
        <repository>
          <id>placeholderapi</id>
          <url>http://repo.extendedclip.com/content/repositories/placeholderapi/</url>
        </repository>
      </repositories>
      <dependencies>
        <dependency>
          <groupId>org.spigotmc</groupId>
            <artifactId>spigot-api</artifactId>
            <version>1.12.2-R0.1-SNAPSHOT</version>
            <type>jar</type>
            <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>net.milkbowl.vault</groupId>
          <artifactId>VaultAPI</artifactId>
          <version>1.6</version>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>me.clip</groupId>
          <artifactId>placeholderapi</artifactId>
          <version>2.8.4</version>
          <scope>provided</scope>
        </dependency>
      </dependencies>
    </project>
    Any help is appreciated.
     
  2. Offline

    MightyOne

    Haha I am most likely not able to help you. But maybe you want to try out this -e switch mentioned here:
    That will probably give you more detailed information
     
Thread Status:
Not open for further replies.

Share This Page