So I'm trying to create a project in maven and am having 2 issues, my first issue, it's saying there's an error with the plugin but it's letting me compile and it doesn't show me where the error is. Second, when I compile it it's saying it can't find the plugin.yml. Here's what it looks like: Spoiler: Pom.xml Code (Text): <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>Emoji</groupId> <artifactId>Emoji</artifactId> <version>1.0</version> <name>EmojiChat</name> <repositories> <repository> <id>spigot-repo</id> <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url> </repository> </repositories> <dependencies> <dependency> <groupId>org.spigotmc</groupId> <artifactId>spigot-api</artifactId> <version>1.8.8-R0.1-SNAPSHOT</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.bukkit</groupId> <artifactId>bukkit</artifactId> <version>1.8.8-R0.1-SNAPSHOT</version> <scope>provided</scope> </dependency> </dependencies> <build> <sourceDirectory>src</sourceDirectory> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.3</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </build> </project> Anyway, if you need any more information I'd be happy to share. Thank you for all of your help. Also, with another plugin I'm getting a similar error with a different error. image: Here's my pom Spoiler: Pom.xml Code (Text): <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>us.battleaxe.bag</groupId> <artifactId>BattleAxeGames</artifactId> <version>1.0.0.0</version> <dependencies> <dependency> <groupId>LibsDisguises</groupId> <artifactId>LibsDisguises</artifactId> <version>8.2.6-SNAPSHOT</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.16.8</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.bukkit</groupId> <artifactId>bukkit</artifactId> <version>1.8.8-R0.1-SNAPSHOT</version> <scope>provided</scope> </dependency> </dependencies> <build> <sourceDirectory>src</sourceDirectory> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.3</version> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin> </plugins> <resources> <resource> <filtering>true</filtering> <directory>/src/main/resources/</directory> <includes> <include>*.yml</include> </includes> </resource> </resources> </build> </project> I hope someone can figure out why this is going wrong, I'm very confused.
Problem: You're using eclipse. Solution: Rebuild the project (its in build drop down) and hope it fixes. If that fails delete the project and reimport it. If that still fails delete eclipse and reinstall it then reimport the project. If that still fails and you are 100% sure it's not a code issue, throw eclipse in the trash and install a different ide. Eclipse has all kinds of bugs like this.
Why do you add both APIs to the dependencies? If I remember correctly, Eclipse does not use Maven to build but its own compiler that does not need a pom.xml. Unlike Maven, the Eclipse compiler does not fail if there are errors in the code. If you want to build with Maven, don't you have to build with mvn clean package?