I asked chatgpt to write me a minecraft plugin cause i’m a dummy and i don’t understand this type of coding
and it gave me this error:
The project (C:UsersPCIdeaProjectsspigot pluginpom.xml) has 1 error
[ERROR] Non-parseable POM C:UsersPCIdeaProjectsspigot pluginpom.xml: end tag name must match start tag name from line 49 (position: TEXT seen …n … @51:44) @ line 51, column 44 -> [Help 2]
I wrote this in the pom.xml file
Here’s the 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>com.example</groupId>
<artifactId>specialitems</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<java.version>17</java.version>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.20.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.example.specialitems.SpecialItemsPlugin</mainClass>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
LoginGamer Official is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.