Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions docs/en/user_guide/advanced/paperweight.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,31 @@ paperweight {
}
```

If you are using the unofficial maven port of paperweight, [paper-nms-maven-plugin](https://github.com/Alvinn8/paper-nms-maven-plugin), you can fix the issue by excluding the `paper-nms` artifact at test time in your `pom.xml`:

```xml
<build>
<plugins>
<plugin>
<groupId>ca.bkaw</groupId>
<artifactId>paper-nms-maven-plugin</artifactId>
<version>1.4.11-SNAPSHOT</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- This is the important part -->
<classpathDependencyExcludes>
<classpathDependencyExclude>ca.bkaw:paper-nms</classpathDependencyExclude>
</classpathDependencyExcludes>
<!-- Credits to https://stackoverflow.com/a/12068045 -->
</configuration>
</plugin>
</plugins>
</build>
```

::: warning
With this, you can't use any NMS behavior during tests with MockBukkit
:::