Created
May 25, 2016 10:59
-
-
Save Prozen/0439c4d3102927741992dc446667b80d to your computer and use it in GitHub Desktop.
buildAndMove
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>jaxb2-maven-plugin</artifactId> | |
<version>2.2</version> | |
<executions> | |
<execution> | |
<id>xjc</id> | |
<phase>generate-sources</phase> | |
<goals> | |
<goal>xjc</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<outputDirectory>temp/jaxb</outputDirectory> | |
<sources> | |
<source>src/main/resources/xsd</source> | |
</sources> | |
<generateEpisode>false</generateEpisode> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>com.google.code.maven-replacer-plugin</groupId> | |
<artifactId>replacer</artifactId> | |
<version>1.5.3</version> | |
<executions> | |
<execution> | |
<id>move-package</id> | |
<phase>process-sources</phase> | |
<goals> | |
<goal>replace</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<basedir>temp/jaxb</basedir> | |
<includes> | |
<include>/**/*.java</include> | |
</includes> | |
<replacements> | |
<replacement> | |
<token>com.ikea.cem</token> | |
<value>irw.com.ikea.cem</value> | |
</replacement> | |
</replacements> | |
</configuration> | |
</plugin> | |
<plugin> | |
<artifactId>maven-resources-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>move-files</id> | |
<phase>process-sources</phase> | |
<goals> | |
<goal>copy-resources</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<outputDirectory>target/generated-sources/jaxb/irw</outputDirectory> | |
<resources> | |
<resource> | |
<directory>temp/jaxb</directory> | |
</resource> | |
</resources> | |
</configuration> | |
</plugin> | |
<plugin> | |
<artifactId>maven-clean-plugin</artifactId> | |
<configuration> | |
<filesets> | |
<fileset> | |
<directory>temp</directory> | |
</fileset> | |
</filesets> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment