Just added an auto install feature, you can now do:
<build>
<extensions>
<extension>
<groupId>com.doublefx.maven.utils.flexmojos</groupId>
<artifactId>flexmojos-compatible-model-validator</artifactId>
<version>1.0.0-SNAPSHOT</version>
</extension>
</extensions>
...https://github.com/doublefx/flexmojos-compatible-model-validator
Frédéric THOMAS
> From: [email protected]
> To: [email protected]
> Subject: AW: [FlexMojos] Compatible Model Validator
> Date: Sat, 6 Dec 2014 21:52:00 +0000
>
> Unfortunately you will only prevent the warning messages. Still maven won't
> dresolve the scopes correctly when it comes to transitive dependencies :-(
> rely shooting would make it necessary do do greater changes in mavens inner
> workings. But it's still a lot better than to have the errors all the time.
>
> 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: Sa., Dez. 6, 2014 15:54
>
> Hi Chris,
>
> Allowing more Maven Scopes is the reason why the extension I created should
> be install before the build, for other kind of validations, you can still
> create your extension but no needs to install it before the build, AFAIK you
> can simply add it inside the build.extensions of your project parent pom if
> the extension is an AbstractMavenLifeCycleParticipant and override the public
> void afterProjectsRead( MavenSession session ) and I guess from here, with
> the help of the MavenSession [1], you can have access to anything you need to
> do other kind of validations or even other things.
>
> Or I didn't get well your point :-)
>
> Frédéric THOMAS
>
> [1]
> http://maven.apache.org/ref/3.2.3/maven-core/apidocs/org/apache/maven/execution/MavenSession.html
>
> > From: [email protected]
> > To: [email protected]
> > Subject: AW: [FlexMojos] Compatible Model Validator
> > Date: Fri, 5 Dec 2014 19:16:59 +0000
> >
> > Well I was thinking of a logic integrated into maven that allows plugins to
> > contribute validators that he'll validating their own configuration.
> > Unfortunately this is only possible using a maven extension (actually
> > exactly the extension point you used). I am and was getting a lot of
> > support questions which would actually be easy to validate automatically
> > but are hard to guide humans through ;-)
> >
> > Let's say the logic would go through the plugins in the build and check
> > each jar for validator logic an use this it found and have them validate
> > their own configuration.
> >
> > Hope this explains what I was thinking of.
> >
> > 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 18:33
> >
> > Hum.. Not sure I understand totally, you want to add an extension to
> > FlexMojos as a module and that extension could be extended to add features
> > like rules and suggestions regarding the plugin configuration ?
> >
> > Frédéric THOMAS
> >
> > > From: [email protected]
> > > To: [email protected]
> > > Subject: AW: [FlexMojos] Compatible Model Validator
> > > Date: Fri, 5 Dec 2014 16:27:54 +0000
> > >
> > > Eventually a modular solution would be a good idea. One that can be
> > > extended with rules and suggestions regarding the plugin configuration.
> > > If for example someone uses deprecated config options or invalid ones, if
> > > someone uses bad practices etc.
> > >
> > > 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 16:03
> > >
> > > I mean, adding the extension as a new module and add a goal to install
> > > the extension, what do you think ?
> > >
> > > Frédéric THOMAS
> > >
> > > From: [email protected]
> > > To: [email protected]
> > > Subject: RE: AW: [FlexMojos] Compatible Model Validator
> > > Date: Fri, 5 Dec 2014 15:01:06 +0000
> > >
> > >
> > >
> > >
> > > Could be a new goal ?
> > >
> > > Frédéric THOMAS
> > >
> > > > From: [email protected]
> > > > To: [email protected]
> > > > Subject: AW: [FlexMojos] Compatible Model Validator
> > > > Date: Fri, 5 Dec 2014 14:54:37 +0000
> > > >
> > > > Well I was more thinking of adding a module to flexmojos in order to
> > > > release the lib. Copying would have to remain a manual task as I don't
> > > > want to modify the maven installation.
> > > >
> > > > 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 13:50
> > > >
> > > > 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
> > > >
> > >
> >
>