Zrips/CMI-API

CMI Compilation Failure when building plugin

Closed this issue · 0 comments

I imported the CMIAPI7.6.2.0.jar into my project in IntelliJ but I'm getting an error when I'm trying to build it.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project minenexus: Compilation failure: Compilation failure:
[ERROR] /F:/Minecraft/minenexus/src/main/java/me/soldado/minenexus/pesca/CoreVendaPeixe.java:[3,21] package com.Zrips.CMI does not exist
[ERROR] /F:/Minecraft/minenexus/src/main/java/me/soldado/minenexus/pesca/CoreVendaPeixe.java:[4,32] package com.Zrips.CMI.Containers does not exist
[ERROR] /F:/Minecraft/minenexus/src/main/java/me/soldado/minenexus/pesca/CoreVendaPeixe.java:[47,13] cannot find symbol
[ERROR] symbol:   class CMIUser
[ERROR] location: class me.soldado.minenexus.pesca.CoreVendaPeixe
[ERROR] /F:/Minecraft/minenexus/src/main/java/me/soldado/minenexus/pesca/CoreVendaPeixe.java:[47,28] cannot find symbol
[ERROR] symbol:   variable CMI
[ERROR] location: class me.soldado.minenexus.pesca.CoreVendaPeixe
[ERROR] -> [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/MojoFailureException
[ERROR] Maven execution terminated abnormally (exit code 1)

Is there any maven repository I can use to import the API into my plugin or am I missing something? I followed these steps to import the API https://stackoverflow.com/questions/1051640/correct-way-to-add-external-jars-lib-jar-to-an-intellij-idea-project