see interpolation documentation in [1] and ModelInterpolator javadoc [2] "projectDir - The project directory, may be null if the model does not belong to a local project but to some artifact's metadata."
Regards, Hervé [1] http://maven.apache.org/components/ref/3-LATEST/maven-model-builder/ [2] http://maven.apache.org/components/ref/3-LATEST/maven-model-builder/apidocs/org/apache/maven/model/interpolation/ModelInterpolator.html Le mardi 25 août 2015 16:33:10 Barrie Treloar a écrit : > In the mojo there is a Property with a default value of > "${project.build.directory}/checkout" > > When maven is run in a directory with a pom, this will get interpolated as > "/full/path/to_directory_with_pom_file/target" > > When maven is run in a directory without a pom, this will get interpolated > to > "${project.basedir}/target" > > Why isn't ${project.basedir} expanded to the current working directory? --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
