Hi,
I have seen similar problems elsewhere on the web, but the solutions don't
seem to work for me. I have the following:
A super pom.xml project that specifies javac version etc
A number of modules that inherit from the super pom with interdependancies
between them
When I run mvn install, everything builds fine. However, when I run the
release plugin, maven complains that one of my modules (that has already
been built, but it was not installed when the others have been when they are
built) is not in the repository when a dependant module is built.
I have tried adding <preparationGoals>clean install
deploy</preparationGoals> to my super pom.xml (and also specified them as -D
options at the command line). When I run release:prepare, I get the missing
dependency ("failed to resolve artefact") message. When this happened, I
ran mvn install and then I was able to successfully complete my
release:prepare and release:perform steps.
Other places where I have seen similar discussions on this problem the
suggestion is to try adding <preparationGoals> to the plugin's config, but
as outlined above, I have already done this, could there be something else
going wrong here?
I am using Maven 2.0.9 and version 2.0 beta 8 of the release plugin
Some things that may or may not be red herrings:
This is a new problem, I have been happily using the release plugin for
around 30 releases, it has only just started since my last release.
I have recently done quite a lot of new development between the last release
and this one....some of which comprising a custom maven plugin, the webstart
jnlp plugin, and the proguard obfuscator plugin
Thanks in advance,
-James Bowkett