I have done those things, but I get the following error:
[INFO] [INFO] Cannot execute mojo: clean. It requires a project with an
existing pom.xml, but the build is not using one.
I thought that error only occurred when the URL to the repo was incorrect.
Since I am able to do a release:prepare and see the project tagged in SVN, I
imagine that isn't the case.
It occurred to me that this could be a flatness issue. My release in SVN looks
like this:
myapp-0.8.1
--parent
--persistence
--services
Each of these represents a module with its own pom. Shockingly, parent is the
parent module for the others. There is no pom at the myapp-0.8.1 level, so that
would explain the error.
Because of the flatness issue, I had to add configure the release plugin in the
following fashion for it to work:
<configuration>
<tagWorkingDirectory>${basedir}/..</tagWorkingDirectory>
<updateWorkingCopyVersions>false</updateWorkingCopyVersions>
<preparationGoals>clean install</preparationGoals>
<goals>clean install</goals>
<arguments>-Dmaven.test.skip</arguments>
<tagBase>svn://<url>/data/svn/project/tags</tagBase>
<autoVersionSubmodules>true</autoVersionSubmodules>
</configuration>
Given this setup, how can I do the release? Any insight is appreciated.
Thanks.
-----Original Message-----
From: Stevo Slavić [mailto:[email protected]]
Sent: Thursday, November 19, 2009 2:22 PM
To: Maven Users List
Subject: Re: Putting a Release in the Repository
http://weblogs.java.net/blog/2008/08/31/using-maven-release-plugin
http://www.vineetmanohar.com/2009/10/23/how-to-automate-project-versioning-and-release-with-maven/
Regards,
Stevo.
On Thu, Nov 19, 2009 at 8:19 PM, Stephen Connolly <
[email protected]> wrote:
> mvn release:perform
> after the prepare
>
> Sent from my [rhymes with tryPod] ;-)
>
>
> On 19 Nov 2009, at 19:11, "Neil Chaudhuri" <[email protected]>
> wrote:
>
> I am using the prepare goal of the Maven Release Plugin to publish a
>> release in SVN. The result of course is that the poms in the trunk and
>> in my local copy are updated to the next version snapshot. What I want
>> to do is to take the release in SVN and publish it to my local Nexus
>> repository in the releases portion of the site. I am doing the same for
>> snapshots by using the Maven Deploy Plugin.
>>
>>
>>
>> I suppose my question is how can I get the Maven Release and Deploy
>> Plugins to work in tandem so that I can release something to SVN and
>> then have it be deployed to my local Nexus repository.
>>
>>
>>
>> Thanks.
>>
>>
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>