2017-02-08 4 views
1

hier ist mein pom.xml:pom.xml Fehler mit artifactSet

<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>me.JackboyPlay.BCC</groupId> 
<artifactId>BungeeCordCore</artifactId> 
<version>0.0.1-SNAPSHOT</version> 
<build> 
    <sourceDirectory>src</sourceDirectory> 
    <plugins> 
     <plugin> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-shade-plugin</artifactId> 
      <version>2.4.3</version> 
      <executions> 
      <execution> 
       <phase>package</phase> 
       <goals> 
        <goal>shade</goal> 
       </goals> 
       <artifactSet> 
        <includes> 
         <include>org.spigotmc:bungeecord</include> <!-- Set "org.spigotmc" to the bungeecord groupId --> 
        </includes> 
       </artifactSet> 
      </execution> 

     </executions> 
     </plugin> 
    </plugins> 
    <resources> 
     <resource> 
      <targetPath>.</targetPath> 
      <filtering>true</filtering> 
      <directory>${basedir}/src/</directory> 
      <includes> 
       <include>plugin.yml</include> 
      </includes> 
     </resource> 
    </resources> 
</build> 

die </artifactSet> ist rot in Eclipse unterstrichen. Ich habe versucht, diese Zeile zu löschen, aber dann ist eine andere Zeile rot unterstrichen. Wenn jemand weiß, wie Sie den Fehler beheben können, wenden Sie sich bitte an :)

+1

was ist der Fehler? – RamPrakash

Antwort

0

Das Problem ist, dass artifactSet sollte innerhalb configuration Tag festgelegt werden.

Try this:

<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>me.JackboyPlay.BCC</groupId> 
    <artifactId>BungeeCordCore</artifactId> 
    <version>0.0.1-SNAPSHOT</version> 
    <build> 
     <sourceDirectory>src</sourceDirectory> 
     <plugins> 
      <plugin> 
       <groupId>org.apache.maven.plugins</groupId> 
       <artifactId>maven-shade-plugin</artifactId> 
       <version>2.4.3</version> 
       <executions> 
        <execution> 
         <phase>package</phase> 
         <goals> 
          <goal>shade</goal> 
         </goals> 
         <configuration> 
          <artifactSet> 
           <includes> 
            <include>org.spigotmc:bungeecord 
            </include> <!-- Set "org.spigotmc" to the bungeecord groupId --> 
           </includes> 
          </artifactSet> 
         </configuration> 
        </execution> 

       </executions> 
      </plugin> 
     </plugins> 
     <resources> 
      <resource> 
       <targetPath>.</targetPath> 
       <filtering>true</filtering> 
       <directory>${basedir}/src/</directory> 
       <includes> 
        <include>plugin.yml</include> 
       </includes> 
      </resource> 
     </resources> 
    </build> </project> 
+0

Vielen, vielen Dank :) –