Damian Krzeminski
2006-02-09 15:36:55 UTC
What's the recommended way of specifying paths that are always relative to parent pom (regardless if
I am building from parent directory or from any of the subprojects directories)?
All my subprojects are sharing the same checkstyle.xml file. I am trying to configure my checkstyle
plugin in parent pom:
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>meta/checkstyle.xml</configLocation>
...
but configLocation is always relative to current directory (user.dir)
Is the any way I can configure it without using environment variables or absolute paths?
Damian
I am building from parent directory or from any of the subprojects directories)?
All my subprojects are sharing the same checkstyle.xml file. I am trying to configure my checkstyle
plugin in parent pom:
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>meta/checkstyle.xml</configLocation>
...
but configLocation is always relative to current directory (user.dir)
Is the any way I can configure it without using environment variables or absolute paths?
Damian