Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Step 1 of 5 refactorings described in: https://www.hybrit.org/blog-mulesoft-parent-pom-in-5-steps/ a blog about creating a parent POM.xml for Mulesoft projects
<!-- properties section -->
...
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<mule.version>3.9.0</mule.version>
<mule.tools.version>1.2</mule.tools.version>
<build-helper-maven-plugin.version>1.7</build-helper-maven-plugin.version>
<mule-module-mongo.version>3.6.1</mule-module-mongo.version>
<order-management.version>1.0.0-SNAPSHOT</order-management.version>
</properties>
...
<!-- dependencies -->
...
<dependency>
<groupId>org.mule.modules</groupId>
<artifactId>mule-module-mongo</artifactId>
<version>${mule-module-mongo.version}</version>
</dependency>
<dependency>
<groupId>org.hybrit</groupId>
<artifactId>order-management</artifactId>
<version>${order-management.version}</version>
<scope>test</scope>
<type>zip</type>
</dependency>
...
<!-- plugins -->
...
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${build-helper-maven-plugin.version}</version>
<executions>
<execution>
<id>add-resource</id>
<phase>generate-resources</phase>
<goals>
<goal>add-resource</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>src/main/app/</directory>
</resource>
<resource>
<directory>src/main/api/</directory>
</resource>
<resource>
<directory>mappings/</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.