+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpack</id>
+ <phase>initialize</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.onap.aai.aai-common</groupId>
+ <artifactId>aai-schema</artifactId>
+ <version>${aai-schema.version}</version>
+ <type>jar</type>
+ <includes>aai_schema/aai_schema_v**.xsd</includes>
+ <outputDirectory>target/tmp</outputDirectory>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.jvnet.jaxb2.maven2</groupId>
+ <artifactId>maven-jaxb2-plugin</artifactId>
+ <version>${mvn.jaxb2.version}</version>
+ <executions>
+ <execution>
+ <phase>process-sources</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <schemaDirectory>target/tmp/aai_schema</schemaDirectory>
+ <generatePackage>org.onap.aai.babel.xml.generator.xsd</generatePackage>
+ <generateDirectory>target/generated-sources</generateDirectory>
+ <schemaIncludes>
+ <include>aai_schema_latest.xsd</include>
+ </schemaIncludes>
+ <extension>true</extension>
+ <args>
+ <arg>-Xannotate</arg>
+ </args>
+ <plugins>
+ <plugin>
+ <groupId>org.jvnet.jaxb2_commons</groupId>
+ <artifactId>jaxb2-basics-annotate</artifactId>
+ <version>0.6.4</version>
+ </plugin>
+ <!-- Add the dependencies with your annotations as 'plugins' below -->
+ <plugin>
+ <groupId>org.jvnet.jaxb2_commons</groupId>
+ <artifactId>jaxb2-annotate-plugin-test-annox-annotations</artifactId>
+ <version>1.0.0</version>
+ </plugin>
+ </plugins>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>exec-maven-plugin</artifactId>
+ <groupId>org.codehaus.mojo</groupId>
+ <executions>
+ <execution><!-- Run our script to get latest xsd version -->
+ <id>Get latest xsd version</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <workingDirectory>${basedir}/scripts</workingDirectory>
+ <executable>bash</executable>
+ <commandlineArgs>get-latest-xsd-version.sh ${basedir}</commandlineArgs>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>