added profile for skipping the shaded jar
<version>2.1</version>
<executions>
<execution>
+ <id>build-matcher-service-jar</id>
<phase>package</phase>
<goals><goal>shade</goal></goals>
<configuration>
</plugin>
</plugins>
</build>
-
+ <profiles>
+ <profile>
+ <id>matcher-jar-skip</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.github.ekryd.echo-maven-plugin</groupId>
+ <artifactId>echo-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>matcher-jar-skip-before</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>echo</goal>
+ </goals>
+ <configuration>
+ <message>Note: building the shaded jar for the matcher service is skipped completely. This is done because the profile 'matcher-jar-skip' is active ('-P matcher-jar-skip' on the command line)</message>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- use the same config as above but set the phase to 'none' -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <version>2.1</version>
+ <executions>
+ <execution>
+ <id>build-matcher-service-jar</id>
+ <phase>none</phase>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>
\ No newline at end of file
