I've done this many times. But for some reason now, no matter what I try, running maven install with Eclipse refuses to find an imported project.
/C:/Users/Tarrant/Desktop/Attributes/src/main/java/me/warren1001/attributes/Attributes.java:[10,31] package me.warren1001.configapi does not exist
This is up until line 22 of the mentioned Attributes.java file.
package me.warren1001.attributes;
import java.util.Arrays;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import me.warren1001.configapi.Config;
public class Attributes {
private Main plugin;
private Config config;
public Attributes(Main plugin) {
this.plugin = plugin;
config = new Config(plugin, "attributes.yml");
}
...
}
Obviously, it is unable to initialize the Config variable, which is the plugin I'm importing through Build Path -> Import Jar (using workspace).
You can clearly see it is imported in my project.
and here's the package for the ConfigAPI project...
package me.warren1001.configapi;
Seems like I'm missing something insanely obvious and when someone points it out I'm going to feel stupid, but I've been trying to fix this for the past 3 hours now with no avail. Any assistance?