Skip to content

Commit fcd73e9

Browse files
authored
feat(java): document multiple source roots feature of Maven plugin (#13285)
1 parent 5c89ac4 commit fcd73e9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/platforms/java/common/maven/index.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,13 @@ The plugin automatically adds the Sentry Java SDK as well as available Sentry in
9090
## Source Context
9191

9292
See our documentation on <PlatformLink to="/source-context/">Source Context</PlatformLink>.
93+
94+
By default, all of the source roots that are included as part of your build are sent to Sentry for source context.
95+
96+
To manually specify additional directories that shall be included in the source bundle, use the following configuration within your `plugin` tag for `io.sentry:sentry-maven-plugin`:
97+
```xml
98+
<additionalSourceDirsForSourceContext>
99+
<value>src/main/someDirectory</value>
100+
<value>src/main/someOtherDirectory</value>
101+
</additionalSourceDirsForSourceContext>
102+
```

0 commit comments

Comments
 (0)