Development Assistance [Maven] pom.xml errors - PLEASE HELP

Discussion in 'Plugin Help/Development/Requests' started by LeePMC, Mar 9, 2015.

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

    LeePMC

    Hi,

    i have recently been switching from developing plugins the way i used to do it (normal java project importing external jars) but i wanted to learn how to do it in maven, so now i can't even get past creating the maven project!

    i was creating my project when it came with this error

    Building Workspace:

    Updating Project:


    the following is what my pom.xml currently has:

    Code:
    <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>LeePMC.github.io.git</groupId>
      <artifactId>TestPlugin</artifactId>
      <version>0.0.1-SNAPSHOT</version>
      <build>
          <plugins>
              <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-compiler-plugin</artifactId>
                  <configuration>
                      <source>1.7</source>
                      <target>1.7</target>
                  </configuration>
              </plugin>
          </plugins>
       </build>
       <repositories>
           <repository>
               <id>bukkit-repo</id>
               <url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
           </repository>
       </repositories>
       <dependencies>
           <dependency>
               <groupId>org.bukkit</groupId>
               <artifactId>bukkit</artifactId>
               <version>1.8-R0.1-SNAPSHOT</version>
               <type>jar</type>
               <scope>provided</scope>
           </dependency>
       </dependencies>
    </project>
    and for some reason, the <plugin> is underlined in red, if you need that error please reply and i will be happy to post it, another thing i should add is that my maven project hasn't finished 'setting up' so i don't have any src/reasources with the folder/package icon or any folders like that, just:

    - src/reasources
    -src/main
    - etc.

    these are just normal folders though, they don't look like they did on buckets plugin tutorial, i have searched for answers but i have found nothing, if someone could help me that would be greatly appreciated :D
     
  2. Offline

    timtower Administrator Administrator Moderator

    Moved to Bukkit alternatives
     
  3. Offline

    LeePMC

    @timtower
    i question your judgment in moving my thread... mostly because the 2 forums are almost identical, i just hope someone can help me instead of moving my threads around...
     
Thread Status:
Not open for further replies.

Share This Page