Hello,

I'm trying to set up release plugin for a project that lives in the
subdirectory of the repo;

That is, given the layout like this:

<repo root>
|- pom.xml
|
|- [module1]
|   |- pom.xml
|
|- [module2]
|   |- pom.xml
|
|- [tools]
    |- [mytool]
        |- pom.xml

I'd like to release "mytool", which is completely standalone module.
mvn release:clean release:prepare release:perform -f tools/mytool/pom.xml

Initial configuration was like this:
        <configuration>
          <preparationGoals>clean</preparationGoals>
          <goals>deploy</goals>
        </configuration>

release:clean and release:prepare went as expected, i.e. against
"tools/mytool". But release:perform checked out whole codebase under
tools/mytool/target/checkout, and invoked "mvn deploy" against root pom of
the checkout folder. Which is basically another project

With no luck I tried number of options:

*
<pomFileName>${project.build.directory}/checkout/tools/mytool/pom.xml</pomFileName>

* <pomFileName>tools/mytool/pom.xml</pomFileName>

* <arguments>-f tools/mytool/pom.xml</arguments>

* <arguments>-f
${project.build.directory}/checkout/tools/mytool/pom.xml</arguments>

Still deploy is invoked against root pom. Generally, is it possible to
release project located in a repo subdirectory?

- maven 2.2.1
- release plugin 2.0

Thanks,
Pavel

Reply via email to