Skip to content

Commit 45af209

Browse files
committed
remove stuff from example pom
1 parent 8e1e700 commit 45af209

File tree

2 files changed

+17
-21
lines changed

2 files changed

+17
-21
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,23 @@ The generated JSON-parser uses `org.json:json`.
1818
<version>0.0.1-SNAPSHOT</version>
1919
</dependency>
2020
```
21+
* If you wish to use JPMS, also add the annotation processor to the `maven-compiler-plugin`
22+
```xml
23+
<plugin>
24+
<artifactId>maven-compiler-plugin</artifactId>
25+
<version>3.8.1</version>
26+
<configuration>
27+
<release>11</release>
28+
<annotationProcessorPaths>
29+
<annotationProcessorPath>
30+
<groupId>io.github.danthe1st</groupId>
31+
<artifactId>compile-time-json-parser</artifactId>
32+
<version>0.0.1-SNAPSHOT</version>
33+
</annotationProcessorPath>
34+
</annotationProcessorPaths>
35+
</configuration>
36+
</plugin>
37+
```
2138
* Enable annotation processing for this project under `Settings`>`Build, Execution, Deployment`>`Compiler`>`Annotation Processors`>`Enable Annotation Processing`
2239

2340
### Usage

examples/maven-example/pom.xml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
<version>3.8.1</version>
2020
<configuration>
2121
<release>11</release>
22-
<proc>none</proc>
2322
<annotationProcessorPaths>
2423
<annotationProcessorPath>
2524
<groupId>io.github.danthe1st</groupId>
@@ -28,26 +27,6 @@
2827
</annotationProcessorPath>
2928
</annotationProcessorPaths>
3029
</configuration>
31-
<executions>
32-
<execution>
33-
<id>run-processor</id>
34-
<phase>generate-sources</phase>
35-
<goals>
36-
<goal>compile</goal>
37-
</goals>
38-
<configuration>
39-
<release>11</release>
40-
<proc>only</proc>
41-
<annotationProcessorPaths>
42-
<annotationProcessorPath>
43-
<groupId>io.github.danthe1st</groupId>
44-
<artifactId>compile-time-json-parser</artifactId>
45-
<version>0.0.1-SNAPSHOT</version>
46-
</annotationProcessorPath>
47-
</annotationProcessorPaths>
48-
</configuration>
49-
</execution>
50-
</executions>
5130
</plugin>
5231
</plugins>
5332
</build>

0 commit comments

Comments
 (0)