Skip to content
Advertisement

Could not find maven-metadata.xml in local during release

I have a local Eclipse RCP project on my Windows machine. One of my remote repositories is used for development and the other for staging during release. The tools used during build and release are Maven, Git, SSH and GitHub.

I can build and run tests without any issues:

JavaScript

but when I perform a release prepare:

JavaScript

I end up with following error:

JavaScript

I can authenticate to GitHub thru SSH from CLI.

As far as I understand the maven-metadata.xml file shall be generated when the artifacts are published …or am I wrong? I can’t find that file anywhere on my machine after a release prepare. Is there a problem with SNAPSHOT versions in the Eclipse project? I think those versions shall be automatically transformed to fixed versions by the Maven Release Plugin when the release is generated?

Since I’m new to this I probably have missed some necessary setups I guess.

I would appreciate any guidance very much.

Here is my pom.xml:

JavaScript

..and here is the first and the last part of the log file (too big to include all):

JavaScript

Advertisement

Answer

Embarrassing enough, the reason why it didn’t worked out was that I had forgotten to update JAVA_HOME path to an existing Java platform.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement