Maven Pom.xml Setup

Discussion in 'Spigot Plugin Development' started by WolfLeader116, Jun 21, 2015.

  1. Hello! I have recently decided to start using a CI server. However, whenever I build the file, important files inside such as plugin.yml and config.yml are missing. I saw in a tutorial that I need to add it in an include tag, however it still isn't working. Can somebody please look over all my files here to figure out what I have done wrong so that Maven will build the files correctly? Thank you and have a nice day!
     
  2. You would want your plugin.yml in the resources folder
     
  3. You will need to make sure maven compiles in all YML files, so before the
    Code (XML):
    </build>
    , add this:
    Code (XML):

    <resources>
                <resource>
                    <targetPath>.</targetPath>
                    <filtering>true</filtering>
                    <directory>src/main/resources</directory>
                    <includes>
                        <include>*.yml</include>
                    </includes>
                </resource>
    <resources>
     
    And you are done! You can just run
    Code (Bash):
    mvn clean install
    to test out your plugin
     
  4. On second thought, let me do this for you. Just accept the PR
     
  5. Thanks! This works perfectly! :)