Posts Tagged ‘maven’

Maven: Parent POM in repo, but Non-resolvable error

December 5, 2016

If you are using maven you may have been flabbergasted by an error like this

[ERROR] Non-resolvable parent POM: Failure to find at.test:test:pom:23 in was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 9, column 10

I had this error and was wondering why it was occurring? I had the parent artifact in my local repository. It was not missing. Maven did know this, because the log said

[DEBUG] Verifying availability of /home/stefon/.repository/at/test/test/23/test-23.pom from [central (, releases)] 

So if I have the parent POM file in my repository and maven knows about it? Why are we getting an error?

As the file is not available on central, Maven will (correctly in my opinion) fail the build as the build would be non-reproducible.
(Mailarchive Maven-Users)

So, what do we do if it is not possible to publish our parent pom artifact?

there is a CLI option that you can enabled in Maven 3.1.1 that tells Maven “I know what I am doing and don’t make that check this time” i.e.  –legacy-local-repository

In other words:

 mvn clean install --legacy-local-repository

Just remember: This is a hack and may break at any moment with a new maven version! There is an blog article where you can find other solutions for your problem


Sonar – open source project management tool

January 17, 2009

If you are managing a big java project and you use maven changes are high that you are running test coverage and code quality reports.
Analyzing this multitude of reports can be quite exhausting. At work we use Sonar, which uses data from a lot of maven reports (code coverage, pmd, …) and creates an overview on your project. AND it can be setup in about 20 minutes.

SONAR is a code quality management platform, dedicated to continuously analyze and measure technical quality, from the projects portfolio to the class method.

You can read here about the features of it. It even has a time machine to let you investigate the changes of your project over time.

Use Maven with eclipse 3.3 WTP

February 8, 2008

Today I struggled to configure maven, eclipse 3.3 and the Web Tools Platform (WTP) to work together in a nice way.

Luckily I found a blog entry which explains it!

Have fun with debugging in a maven webapp with wtp plugin.

Online maven documentation

November 3, 2007

An annoying thing about maven is its lack of good documentation… But sometimes you have luck and find this online documentation of maven from
It covers maven stuff from a simple project to maven and java EE.

The philosophy of this book is simple. This is a book for complete beginners, to give them a solid understanding of what Maven can do, and the best practices that many of us have learned along the way. It is written in the form of a narrative, following each step in the building, documenting, reporting and deployment of a project called the Killer App.

Another great thing about the book is its license: cc license

Having problems getting eclipse/maven/tomcat working together?

October 28, 2007

Some time again now I had problems to get eclipse, tomcat and maven working together nicely.
But after following the instruction on this blog entry I was helped a lot.

On the off chance that other people find this helpful, here’s how I set up Tally-Ho to work in Eclipse with the Sysdeo Tomcat plugin and Maven 2.

Maven2 POM XSD

August 30, 2007

Have you ever felt the need of a proper XSD for the maven2 POM file. I did. Having a XSD definition in a XML file makes working with it much much easier (provided that you are using a decent XML editor). Without further introduction:

<project xmlns=""
<!-- insert content here -->