Skip to content

Commit cd49e0c

Browse files
committed
Issue #35.
1 parent 84d9e14 commit cd49e0c

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,12 @@ This is just a namespace, there must not necessarily be content there. Treat it
116116

117117
Using JAXB2 Annotate Plugin with Maven
118118
--------------------------------------
119-
See [this example](https://github.com/highsource/jaxb2-annotate-plugin/tree/master/tests/annox).
120119

121-
Note that annotations are first compiled in the `annotations` module and the added to the classpath of the `maven-jaxb2-plugin` in the `schema` module:
120+
* Add `org.jvnet.jaxb2_commons:jaxb2-basics-annotate` as XJC plugin
121+
* Turn on the plugin using `-Xannotate` switch
122+
* Add artifact with your annotations as another XJC plugin
123+
124+
Example:
122125

123126
````xml
124127
<plugin>
@@ -134,14 +137,18 @@ Note that annotations are first compiled in the `annotations` module and the add
134137
<groupId>org.jvnet.jaxb2_commons</groupId>
135138
<artifactId>jaxb2-basics-annotate</artifactId>
136139
</plugin>
140+
<!-- Artifact with custom annotations -->
137141
<plugin>
138-
<groupId>org.jvnet.jaxb2_commons</groupId>
139-
<artifactId>jaxb2-annotate-plugin-test-annox-annotations</artifactId>
142+
<groupId>com.acme.foo</groupId>
143+
<artifactId>my-custom-annotations</artifactId>
140144
</plugin>
141145
</plugins>
142146
</configuration>
143147
</plugin>
144148
````
149+
See [this example](https://github.com/highsource/jaxb2-annotate-plugin/tree/master/tests/annox).
150+
151+
Note that annotations are first compiled in the `annotations` module and the added to the classpath of the `maven-jaxb2-plugin` in the `schema` module:
145152

146153
Using JAXB2 Annotate Plugin with Ant
147154
------------------------------------

0 commit comments

Comments
 (0)