Build Error - pom

Discussion in 'Plugin Development' started by shadrxninga, Mar 8, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    shadrxninga

    So This is my first plugin I have made - or am trying to. Following the Basic Bukkit Plugin Tutorial.

    When I try to build it using mvn clean package

    Code:
    c:\proj\first>mvn clean package
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Maven Default Project
    [INFO]    task-segment: [clean, package]
    [INFO] ------------------------------------------------------------------------
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Cannot execute mojo: clean. It requires a project with an existing pom.xm
    l, but the build is not using one.
    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: < 1 second
    [INFO] Finished at: Tue Mar 08 21:20:59 NZDT 2011
    [INFO] Final Memory: 1M/15M
    [INFO] ------------------------------------------------------------------------
    c:\proj\first>
    c:\proj\first>

    Also - i've attached the project files. Tell me if I have done anything else wrong.

    Thanks
     

    Attached Files:

  2. Offline

    cyklo

    Using Maven is only if you want to build Bukkit itself. For building your own small plugins, it's overkill.

    I notice you're using Eclipse. From within your project, go to File -> Export -> Jar File, and you can get your plugin.jar file out that way.
     
  3. Offline

    shadrxninga

    Thanks - That worked and gave me a compiled jar but it didn't load when starting the server (about 8 errors...). I will have another go tomorrow.
     
Thread Status:
Not open for further replies.

Share This Page