Commit 44ef2e24bd8687244a819a006a153a584e1cea27
1 parent
a55754dd
Exists in
master
mvn: Run jaxb2 plugin during the phase.
Showing
1 changed file
with
8 additions
and
10 deletions
Show diff stats
pom.xml
... | ... | @@ -55,26 +55,24 @@ |
55 | 55 | </configuration> |
56 | 56 | </plugin> |
57 | 57 | <plugin> |
58 | - <!-- To create .java classes: mvn clean && mvn jaxb2:xjc --> | |
59 | 58 | <groupId>org.codehaus.mojo</groupId> |
60 | 59 | <artifactId>jaxb2-maven-plugin</artifactId> |
61 | 60 | <version>2.1</version> |
61 | + <executions> | |
62 | + <execution> | |
63 | + <goals> | |
64 | + <goal>xjc</goal> | |
65 | + </goals> | |
66 | + <phase>generate-sources</phase> | |
67 | + </execution> | |
68 | + </executions> | |
62 | 69 | |
63 | 70 | <configuration> |
64 | 71 | <locale>en</locale> |
65 | 72 | <sources> |
66 | 73 | <source>${basedir}/src/main/resources/VOTable_v1.3.xsd</source> |
67 | 74 | </sources> |
68 | - <executions> | |
69 | - <execution> | |
70 | - <goals> | |
71 | - <goal>xjc</goal> | |
72 | - </goals> | |
73 | - <phase>validate</phase> | |
74 | - </execution> | |
75 | - </executions> | |
76 | 75 | <packageName>${project.groupId}.${project.artifactId}.votable.model</packageName> |
77 | - <extension>true</extension> | |
78 | 76 | <args> |
79 | 77 | <arg>-no-header</arg> |
80 | 78 | </args> | ... | ... |