Hello,
Just wanted to write a solution to this problem in case anyone else
experiences it. I was developing my webapp in RAD (using Subclipse) and was
trying to write an automated build/release process with Maven, but I was
using Maven in a different folder altogether. The issue is that
release:prepare first checks that your working copy is up-to-date. This
means that if you are working in an IDE and you want to perform your Maven
builds separately, then you need to check out the whole trunk folder before
you can perform the build, in a new local folder outside of RAD (since
release:prepare will look for a working copy).
Going back to my folder structure:
> testWSClient
> |
> --- branches
> --- tags
> --- trunk
> |
> --- pom.xml
> --- src
> |
> --- main
|
--- java
--- webapp
This implies that pom.xml also needs to be checked in to SVN, directly
underneath the trunk. You then run release:prepare in the pom.xml folder. If
you have changed your pom.xml, then release:prepare will also complain that
your working copy has changed and you will need to commit it.
Futhermore, if you are using an IDE such as RAD then your SVN repository
needs to conform to the Maven standard directory layout. So you need to
follow the folder structure mentioned above, and then check out the whole
"main" folder as a WAR project. You will also need to configure the project
so that JavaSource = java and WebContent = webapp. You can do this by right
clicking on the WAR (in RAD) and selecting Properties -> Java Build Path ->
Source.
You should also change the default RAD Source folder names in Window ->
Preferences -> Web Tools -> New J2EE Project
I haven't tried the Maven Eclipse plug-in yet...
--
View this message in context:
http://www.nabble.com/release%3Aprepare-error-t1441846.html#a3998658
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]