Maven : import project does not appropriately set working directory ?

When a project is imported, it seems to me that the working directory is IDEA's bin dir, correct ?

I'm seeing this because a custom plugin fails when trying to lookup files.
When the build is invoked from the command line , the working dir is always the pom's dir, even when the command is launched from another dir (using -f ${pom path} maven parameter).

What's your position on this ?

1 comment
Comment actions Permalink

according to http://maven.apache.org/plugin-developers/common-bugs.html#Resolving_Relative_Paths, plugins should not assume working dir = pom's dir, so I've modified my plugin accordingly.

0

Please sign in to leave a comment.