Lee Meador wrote:
I have all my projects as siblings in the file system. My checkstyle xml
file is in the same folder as all those folders which means that its path in
all the POMs (which they inheirit from the parent) is ../chk.xml.

That same folder is the root of the project in svn.

That seems to work.

I tried this, but it only worked when I was starting build from one of the subproject repositories, but not when I was doing that from parent directory.

For now I ended up defining environment variable that specifies my parent pom location and referencing it as maven property.


On 2/9/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
On 2/9/06, Damian Krzeminski <[EMAIL PROTECTED]> wrote:

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:
We use svn:externals for this, to include a directory with common
build information "under" each sub-project.  With the additional
'current' external that pulls in the trunk of each sub-project, it
looks like this:

struts/current/action
struts/current/action/build
struts/current/build
struts/current/taglib
struts/current/taglib/build

All three of those 'build' directories are really /struts/build/trunk/
in the svn repo.

That won't really help if you're not using Subversion. :)  But I'm
also interested to know if there's a way to do this with just Maven.
It would seem like that file becomes a dependency... maybe it somehow
needs to be in the Maven repository.

Thanks. We do use subversion but I am not a big fan of svn:externals - mostly because of problems when branching.

I really like your suggestion of making this somehow into a project repository. If someone ever figures out how to do that please share it on the list.


--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
-- Lee Meador
Sent from gmail. My real email address is [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to