Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin.yml is not included in build jar after packaging #1

Closed
RepComm opened this issue May 3, 2020 · 4 comments
Closed

plugin.yml is not included in build jar after packaging #1

RepComm opened this issue May 3, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@RepComm
Copy link
Member

RepComm commented May 3, 2020

Spigot fails to load the plugin when:

  1. cloning repo
  2. running mvn package
  3. copying output jar to plugins directory
  4. running the server
[16:08:40] [Server thread/ERROR]: Could not load 'plugins/grakkit-plugin.jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
	at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:160) ~[spigot-1.15.2-R0.1-SNAPSHOT.jar:git-Spigot-a03b1fd-95bd423]
	at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:144) [spigot-1.15.2-R0.1-SNAPSHOT.jar:git-Spigot-a03b1fd-95bd423]
	at org.bukkit.craftbukkit.v1_15_R1.CraftServer.loadPlugins(CraftServer.java:353) [spigot-1.15.2-R0.1-SNAPSHOT.jar:git-Spigot-a03b1fd-95bd423]
	at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:210) [spigot-1.15.2-R0.1-SNAPSHOT.jar:git-Spigot-a03b1fd-95bd423]
	at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:784) [spigot-1.15.2-R0.1-SNAPSHOT.jar:git-Spigot-a03b1fd-95bd423]
	at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
	... 6 more
@RepComm RepComm added the bug Something isn't working label May 3, 2020
@RepComm
Copy link
Member Author

RepComm commented May 3, 2020

Going to try and patch this and pull request

@ghost ghost closed this as completed May 3, 2020
ghost pushed a commit that referenced this issue Jun 8, 2020
@RepComm
Copy link
Member Author

RepComm commented Jun 9, 2020

Latest release does not include plugin.yml and causes error:
Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml ... 6 more

@RepComm RepComm reopened this Jun 9, 2020
@RepComm
Copy link
Member Author

RepComm commented Jun 10, 2020

Travis seems to be building release jar incorrectly

@grakkit
Copy link
Collaborator

grakkit commented Jun 10, 2020

Travis deployment has been disabled in favor of manual deployment. This will prevent any faulty automated releases.

@grakkit grakkit closed this as completed Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant