Hi Chris,
> I assume this is a maven extension which you have to deploy to your maven
> extension directory
yes it is even though, I provided a profile to auto install it [1]
> I remember discussing something like this with cello a few years ago but he
> deleted my posts on this topic and refused to add that to flexmojos.
It happened to me as well and he even kicked me out of the group, bloody Velo
:-)
> Nave now there's a way to add that as an additional module? But only if
> you're interested in this.
Well I wouldn't how to do except that the plugin could copy the deployed
extension into the lib/ext folder as done in Wagon maven plugin [2]
Any better ideas?
Frédéric THOMAS
[1]<profile>
<id>prepare-maven-extended-libs</id>
<activation>
<file>
<missing>${env.MAVEN_HOME}/lib/ext/flexmojos-compatible-model-validator.jar</missing>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>copy</id>
<phase>validate</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.doublefx.maven.utils.flexmojos</groupId>
<artifactId>flexmojos-compatible-model-validator</artifactId>
<version>1.0.0-SNAPSHOT</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${env.MAVEN_HOME}/lib/ext</outputDirectory>
<destFileName>flexmojos-compatible-model-validator.jar</destFileName>
</artifactItem>
</artifactItems>
<overWriteReleases>true</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>execute</goal>
</goals>
</execution>
</executions>
<configuration>
<source>
fail("FlexMojos Compatible Model Validator extension is
now configured. Please restart the build, and then it will be successful.")
</source>
</configuration>
</plugin>
</plugins>
</build>
</profile>
[2]
http://svn.codehaus.org/mojo/tags/wagon-maven-plugin-1.0-beta-5/src/main/java/org/codehaus/mojo/wagon/UpdateMaven3Mojo.java
> From: [email protected]
> To: [email protected]
> Subject: AW: [FlexMojos] Compatible Model Validator
> Date: Fri, 5 Dec 2014 11:51:34 +0000
>
> Cool Stuff.
>
> Will definitely look into this. But I assume this is a maven extension which
> you have to deploy to your maven extension directory, our was there a maven
> change that allows this as a plugin?
>
> I remember discussing something like this with cello a few years ago but he
> deleted my posts on this topic and refused to add that to flexmojos.
>
> Nave now there's a way to add that as an additional module? But only if
> you're interested in this.
>
> Chris
>
> Gesendet mit meinem HTC
>
> ----- Reply message -----
> Von: "Frédéric THOMAS" <[email protected]>
> An: "[email protected]" <[email protected]>
> Betreff: [FlexMojos] Compatible Model Validator
> Datum: Fr., Dez. 5, 2014 12:41
>
> Hi,
> For those interested I created and shared a Maven extension to get rid of the
> Maven warnings regarding the custom scopes [1].
> Frédéric THOMAS
> [1] https://github.com/doublefx/flexmojos-compatible-model-validator