1. Welcome to LilyPad. Download the project, explore the forums, and create your own LilyPad network.


    If you use the software and enjoy it or have a question, or would like to contribute to the future of the software directly or through resources, please sign up and join our little community.

LilyEssentials Can't Load YML

Discussion in 'Development' started by The_Zip, Dec 15, 2013.

  1. The_Zip

    The_Zip Active Member Resource Contributor

    It seams like one of those mornings where its all about plugin errors. But, getting to the point, I have been messing around, searching through other forums, for a few days know, and haven't found any issue why LilyEssentials shouldn't be loading because of the plugin.yml. The exact error I am getting is…

    Code (text):
    [16:24:12 ERROR]: Could not load 'plugins/LilyEssentials.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
            at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:247) ~[craftbukkit.jar:git-Bukkit-1.6.4-R2.0-50-g402ee87-b2959jnks]
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-50-g402ee87-b2959jnks]
            at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugins(CraftServer.java:255) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-50-g402ee87-b2959jnks]
            at org.bukkit.craftbukkit.v1_7_R1.CraftServer.<init>(CraftServer.java:233) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-50-g402ee87-b2959jnks]
            at net.minecraft.server.v1_7_R1.PlayerList.<init>(PlayerList.java:63) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-50-g402ee87-b2959jnks]
            at net.minecraft.server.v1_7_R1.DedicatedPlayerList.<init>(SourceFile:14) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-50-g402ee87-b2959jnks]
            at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.java:126) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-50-g402ee87-b2959jnks]
            at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:424) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-50-g402ee87-b2959jnks]
            at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-50-g402ee87-b2959jnks]
    Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
            ... 9 more
    The Plugin YML exactly is:
    Code (text):
    name: LilyEssentials
    version: 1.2
    description: Essential Commands and Features for LilyPad!
    authors: [The_Zip, Matthijs110, Tzeentchful]
    main: com.bobacadodl.lilyessentials.LilyEssentials
    depend: [LilyPad-Connect]
    commands:
      message:
        aliases: [msg, tell, whisper, t, m, emsg]
        description: Private-message a player
      send:
        description: Send a player to another server
      sendall:
        description: Send all players to another server
      find:
        aliases: [find, whereis]
        description: Find what server another player is on
      alert:
        description: Network wide broadcast
      alertserver:
        description: MultiServer broadcast
      reply:
        aliases: [r,repl]
        description: Reply back to another player
      admin:
        aliases: [a]
        description: Admin only chat
      dispatch:
        description: Dispatch a command to all servers
      dispatchserver:
        description: Dispatch a command to specific servers
      glist:
        aliases: [globallist, listall, servers]
        description: Global player list
    permissions:
      lilyesssentials.*:
        description: All LilyEssentials perms
        children:
          lilyessentials.general.message: true
          lilyessentials.general.glist: true
          lilyessentials.general.find: true
          lilyessentials.admin.chat: true
          lilyessentials.admin.send: true
          lilyessentials.admin.sendall: true
          lilyessentials.admin.alert: true
          lilyessentials.admin.alertserver: true
          lilyessentials.admin.dispatch: true
          lilyessentials.admin.dispatchserver: true
      lilyessentials.general.*:
        description: All general LilyEssentials perms
        children:
          lilyessentials.general.message: true
          lilyessentials.general.find: true
          lilyessentials.general.glist: true
      lilyessentials.admin.*:
        description: All admin LilyEssentials perms
        children:
          lilyessentials.admin.chat: true
          lilyessentials.admin.alert: true
          lilyessentials.admin.alertserver: true
          lilyessentials.admin.dispatch: true
          lilyessentials.admin.dispatchserver: true
          lilyessentials.admin.send: true
          lilyessentials.admin.sendall: true
          lilyessentials.admin.hide: true
      lilyessentials.admin.chat:
        description: Access to adminChat
        default: op
      lilyessentials.admin.alert:
        description: Access to alert
        default: op
      lilyessentials.admin.alertserver:
        description: Access to alertserver
        default: op
      lilyessentials.admin.dispatch:
        description: Access to dispatch
        default: op
      lilyessentials.admin.dispatchserver:
        description: Access to dispatchserver
        default: op
      lilyessentials.general.message:
        description: Access to messaging
        default: true
      lilyessentials.general.glist:
        description: Global server playerlist
        default: true
      lilyessentials.general.find:
        description: find another player
        default: true
      lilyessentials.admin.send:
        description: send a player to another server
        default: op
      lilyessentials.admin.hide:
        description: hides the player from messages
        default: op
    The plugin YML looks fine to me and the few people me and @Matt have asked, you can find it here https://github.com/The-Zip/LilyEssentials/blob/master/src/main/resources/plugin.yml . You can also find the whole source at https://github.com/The-Zip/LilyEssentials . And, the Jenkins(or ZipKins:) ) is http://thezip.us:8080 .

    Thanks,

    Connor
  2. Matt

    Matt Forum Moderator & Contributor Staff Member Moderator Contributor

    And don't forget, the plugin is mavenized and the plugin.yml has been added in the pom.xml:
    Code (text):

                            <resource>
                                    <targetPath>.</targetPath>
                                    <filtering>true</filtering>
                                    <directory>${basedir}/src/main/resources</directory>
                                    <includes>
                                            <include>plugin.yml</include>
                                            <include>config.yml</include>
                                    </includes>
                            </resource>
  3. Coelho

    Coelho Software Engineer Staff Member Administrator Maintainer

    Have you looked in the output jar? The plugin.yml is clearly in the wrong place.
  4. The_Zip

    The_Zip Active Member Resource Contributor

    We were just testing that, we moved it to the main directory of the plugin, but no luck, we still got the same error.
  5. Coelho

    Coelho Software Engineer Staff Member Administrator Maintainer

    [​IMG]
    The plugin.yml (to me) seems to be in the src folder, not the main directory.
  6. The_Zip

    The_Zip Active Member Resource Contributor

    I thought I changed that, but it looks like there must have been something wrong between Github through Maven through Jenkins that messed up. I believe it's the way its Mavenized. I just changed it back to the main directory again on the Github, but when I push a new build, it is still in the resources. But, when I compile it from my JDE, it works fine. Foes the pom look good?

    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>com.bobaccadodl</groupId>
            <artifactId>lilyessentials</artifactId>
            <version>1.2</version>


            <properties>
                    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
            </properties>

            <repositories>
                    <repository>
                            <id>bukkit-repo</id>
                            <url>http://repo.bukkit.org/content/groups/public</url>
                    </repository>
                    <repository>
                            <id>lilypad</id>
                            <url>http://ci.lilypadmc.org/plugin/repository/everything</url>
                    </repository>
            </repositories>

            <dependencies>
                    <dependency>
                            <groupId>org.bukkit</groupId>
                            <artifactId>bukkit</artifactId>
                            <version>1.7.2-R0.1-SNAPSHOT</version>
                            <type>jar</type>
                            <scope>compile</scope>
                    </dependency>
                    <dependency>
                            <groupId>org.projectlombok</groupId>
                            <artifactId>lombok</artifactId>
                            <version>0.11.6</version>
                            <scope>provided</scope>
                    </dependency>
                    <dependency>
                            <groupId>lilypad.client.connect</groupId>
                            <artifactId>api</artifactId>
                            <version>0.0.1-SNAPSHOT</version>
                            <type>jar</type>
                            <scope>provided</scope>
                    </dependency>
            </dependencies>

            <build>
                    <defaultGoal>clean package</defaultGoal>
                    <finalName>LilyEssentials</finalName>
                    <resources>
                            <resource>
                                    <targetPath>.</targetPath>
                                    <filtering>true</filtering>
                                    <directory>${basedir}</directory>
                                    <includes>
                                            <include>plugin.yml</include>
                                    </includes>
                            </resource>
                    </resources>
                    <plugins>
                            <plugin>
                                    <groupId>org.apache.maven.plugins</groupId>
                                    <artifactId>maven-compiler-plugin</artifactId>
                                    <version>2.3.2</version>
                                    <configuration>
                                            <source>1.6</source>
                                            <target>1.6</target>
                                    </configuration>
                            </plugin>
                    </plugins>
            </build>
    </project>
  7. Coelho

    Coelho Software Engineer Staff Member Administrator Maintainer

  8. The_Zip

    The_Zip Active Member Resource Contributor

    Ok, I just updated mine to be exactly what yours is. Its been a long day of studying for finals which I am still doing, so I might have done something wrong, but I have double checked, and everything looks good to me. The pom is here, https://github.com/The-Zip/LilyEssentials/blob/master/pom.xml , and I am getting this big as long code here, http://thezip.us:8080/job/LilyEssentials/19/console .

    I am sure you, and most people in high school/college are studying for mid terms to, so thanks for answering on a night like tonight.
  9. The_Zip

    The_Zip Active Member Resource Contributor

  10. Coelho

    Coelho Software Engineer Staff Member Administrator Maintainer

  11. The_Zip

    The_Zip Active Member Resource Contributor

    I understand its in that, we have ours set up similar, @Tzeentchful set it up when he Mavenized it exactly like it. But, does Maven bring it to the main directory?
  12. Coelho

    Coelho Software Engineer Staff Member Administrator Maintainer

    That would be the expected behavior of Bukkit-Portal's pom.

Share This Page