Skip to content

Instantly share code, notes, and snippets.

View Marthijs-Berfelo's full-sized avatar

Marthijs Berfelo Marthijs-Berfelo

View GitHub Profile
{"schemaVersion":1,"label":"Coverage","message":"24%","color":"red","namedLogo":"typescript"}
@Marthijs-Berfelo
Marthijs-Berfelo / blog-1-order-system-api-pom.xml
Last active September 20, 2018 14:47
Example initial POM.xml for 1 of the 2 API's used in: https://www.hybrit.org/blog-mulesoft-parent-pom-in-5-steps/ a blog about creating a parent POM.xml for Mulesoft projects
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.hybrit</groupId>
<artifactId>orders-system-api</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>mule</packaging>
<name>Mule orders-system-api Application</name>
<properties>
@Marthijs-Berfelo
Marthijs-Berfelo / blog-1-customer-system-api-pom.xml
Last active September 20, 2018 14:47
Example initial POM.xml for 1 of the 2 API's used in: https://www.hybrit.org/blog-mulesoft-parent-pom-in-5-steps/ a blog about creating a parent POM.xml for Mulesoft projects
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.hybrit</groupId>
<artifactId>customers-system-api</artifactId>
<version>1.0.0-SNAPSHOT</version>
@Marthijs-Berfelo
Marthijs-Berfelo / blog-1-step-1-change-system-api-pom.xml
Last active September 20, 2018 14:46
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>
@Marthijs-Berfelo
Marthijs-Berfelo / blog-1-step-2-change-packaging.xml
Last active September 20, 2018 14:46
Step 2 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
...
<modelVersion>4.0.0</modelVersion>
<groupId>org.hybrit</groupId>
<artifactId>order-management-parent-pom</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Mule order-management-parent-pom Application</name>
...
@Marthijs-Berfelo
Marthijs-Berfelo / blog-1-step-3-dependency-management.xml
Last active September 20, 2018 14:45
Step 3 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
...
<dependencyManagement>
<!-- Mule Dependencies -->
<dependencies>
<!-- Xml configuration -->
<dependency>
<groupId>com.mulesoft.muleesb</groupId>
<artifactId>mule-core-ee</artifactId>
<version>${mule.version}</version>
<scope>provided</scope>
@Marthijs-Berfelo
Marthijs-Berfelo / blog-1-step-4-plugin-management.xml
Last active September 20, 2018 14:45
Step 4 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
...
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.mule.tools.maven</groupId>
<artifactId>mule-app-maven-plugin</artifactId>
<version>${mule.tools.version}</version>
<extensions>true</extensions>
<configuration>
@Marthijs-Berfelo
Marthijs-Berfelo / blog-1-step-5-order-system-api-parent-section.xml
Last active September 20, 2018 14:45
Step 5 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
...
<modelVersion>4.0.0</modelVersion>
<artifactId>orders-system-api</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>mule</packaging>
<name>Mule orders-system-api Application</name>
<parent>
<groupId>org.hybrit</groupId>
@Marthijs-Berfelo
Marthijs-Berfelo / blog-1-step-5-order-system-api-cleaned-dependencies-section.xml
Last active September 20, 2018 14:45
Step 5 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
...
<!-- Mule Dependencies -->
<dependencies>
<!-- Xml configuration -->
<dependency>
<groupId>com.mulesoft.muleesb</groupId>
<artifactId>mule-core-ee</artifactId>
</dependency>
<!-- Xml configuration -->
<dependency>
@Marthijs-Berfelo
Marthijs-Berfelo / blog-1-step-5-duplicates-from-order-system-api-parent-POM.xml
Last active September 20, 2018 14:45
Step 5 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
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.hybrit</groupId>
<artifactId>order-management-parent-pom</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>