Sorry, for the confusing message, I hit a gmail shortcut that sent the
mail out prematurely.
So, again: I tried adding the following configuration to the main pom.xml:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jalopy-maven-plugin</artifactId>
<version>1.0-alpha-1</version>
<configuration>
<convention>${basedir}/docs/jalopy/jalopy.xml</convention>
</configuration>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>format</goal>
</goals>
</execution>
</executions>
</plugin>
and putting the jalopy.xml in the directory docs/jalopy relative to
the main project's pom.xml.
However, ${basedir} resolves to the base directory of the pom.xml that
is executed, so this
won't work. Is there a way to refer to the pom.xml that actually
declares the plugin element?
Thanks and regards,
Jan van Mansum.
2008/8/27 Jan van Mansum <[EMAIL PROTECTED]>:
> Hello group,
>
> I have a multi-module project and I want to use the same jalopy (code
> formatting)
> settings for all the modules. I tried to add the following to the main
> pom.xml:
>
> <plugins>
> ...
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>jalopy-maven-plugin</artifactId>
> <version>1.0-alpha-1</version>
> <configuration>
> <convention>${basedir}/docs/jalopy/jalopy.xml</convention>
> </configuration>
> <executions>
> <execution>
> <phase>process-classes</phase>
> <goals>
> <goal>format</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
>
> --
> Jan van Mansum
>
--
Jan van Mansum
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]