Commit 44ef2e24bd8687244a819a006a153a584e1cea27

Authored by Nathanael Jourdane
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
@@ -55,26 +55,24 @@ @@ -55,26 +55,24 @@
55 </configuration> 55 </configuration>
56 </plugin> 56 </plugin>
57 <plugin> 57 <plugin>
58 - <!-- To create .java classes: mvn clean && mvn jaxb2:xjc -->  
59 <groupId>org.codehaus.mojo</groupId> 58 <groupId>org.codehaus.mojo</groupId>
60 <artifactId>jaxb2-maven-plugin</artifactId> 59 <artifactId>jaxb2-maven-plugin</artifactId>
61 <version>2.1</version> 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 <configuration> 70 <configuration>
64 <locale>en</locale> 71 <locale>en</locale>
65 <sources> 72 <sources>
66 <source>${basedir}/src/main/resources/VOTable_v1.3.xsd</source> 73 <source>${basedir}/src/main/resources/VOTable_v1.3.xsd</source>
67 </sources> 74 </sources>
68 - <executions>  
69 - <execution>  
70 - <goals>  
71 - <goal>xjc</goal>  
72 - </goals>  
73 - <phase>validate</phase>  
74 - </execution>  
75 - </executions>  
76 <packageName>${project.groupId}.${project.artifactId}.votable.model</packageName> 75 <packageName>${project.groupId}.${project.artifactId}.votable.model</packageName>
77 - <extension>true</extension>  
78 <args> 76 <args>
79 <arg>-no-header</arg> 77 <arg>-no-header</arg>
80 </args> 78 </args>