Repository: camel Updated Branches: refs/heads/master 5e08a9e8e -> de5c7b297
Add goal to mvn plugin to validate if component docs is present when building each component. Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/824c35da Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/824c35da Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/824c35da Branch: refs/heads/master Commit: 824c35dac71cd2369e30d47d1ee45c87117b9ba8 Parents: 8c0039b Author: Claus Ibsen <davscl...@apache.org> Authored: Fri Jun 19 16:28:47 2015 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Fri Jun 19 17:38:08 2015 +0200 ---------------------------------------------------------------------- camel-core/pom.xml | 8 ++++++++ components/pom.xml | 5 +---- .../apache/camel/maven/packaging/ValidateComponentMojo.java | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/824c35da/camel-core/pom.xml ---------------------------------------------------------------------- diff --git a/camel-core/pom.xml b/camel-core/pom.xml index ee871a4..66255a7 100644 --- a/camel-core/pom.xml +++ b/camel-core/pom.xml @@ -311,6 +311,14 @@ </goals> <phase>process-classes</phase> </execution> + <!-- camel-core needs to validate before packaging --> + <execution> + <id>validate</id> + <goals> + <goal>validate-components</goal> + </goals> + <phase>prepare-package</phase> + </execution> </executions> </plugin> </plugins> http://git-wip-us.apache.org/repos/asf/camel/blob/824c35da/components/pom.xml ---------------------------------------------------------------------- diff --git a/components/pom.xml b/components/pom.xml index 057fd60..0a6c3b5 100644 --- a/components/pom.xml +++ b/components/pom.xml @@ -31,7 +31,7 @@ <packaging>pom</packaging> <modules> - <!-- we want to test these modules first to catch any errors early as possible --> + <!-- we want to test these modules first to catch any errors early as possible --> <module>camel-test</module> <module>camel-testng</module> <module>camel-test-blueprint</module> @@ -246,9 +246,6 @@ <groupId>org.apache.camel</groupId> <artifactId>camel-package-maven-plugin</artifactId> <version>${project.version}</version> - <configuration> - <validate>true</validate> - </configuration> <executions> <execution> <id>prepare</id> http://git-wip-us.apache.org/repos/asf/camel/blob/824c35da/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ValidateComponentMojo.java ---------------------------------------------------------------------- diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ValidateComponentMojo.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ValidateComponentMojo.java index 79b30ab..e1fa228 100644 --- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ValidateComponentMojo.java +++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ValidateComponentMojo.java @@ -56,7 +56,7 @@ public class ValidateComponentMojo extends AbstractMojo { /** * Whether to validate if the components, data formats, and languages are properly documented and have all the needed details. * - * @parameter default-value="false" + * @parameter default-value="true" */ protected Boolean validate;