Jump to Navigation

maven

Maven, Jaxb-Schemagen Plugin POM.xml Setup and How to Generate XML Schemas for POJOs

When ever I need to use the JAXB maven plugin, it is always a task to configure the maven pom.xml file to get this tool to run, but usually an answer can be found pretty quickly so its just annoying. Most often I just use javaws and jaxb plugins to import and export web services, but recently I had to export XML schemas for some POJOs for a client, and this was a bit more of a challenge. It seems, from the google search results at least, that Java developers do not export XML schema definitons for POJO's that often.

Java: 

Maven and OpenJPA dependencies

I have been trying out Apache's openJPA EJB3 implementation recently and had to figure out what to include in the pom.xml to get it all to work with maven .

Initially I included the following dependency:

Maven 2 -- classworlds.Launcher not found

The other day I suddenly started getting this error when running maven 2 on my gentoo box.

Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher

Tips for using Maven2

A while ago I decided it was time to abandon the old familiar Ant build tool and try Maven. Everyone claims that Maven is much better than Ant so I thought lets give it a go. Unfortunately I found the documentation available on the net confusing and hard to follow.

Why maven sucks!

Ok, generally I agree that Maven is a good tool, its just that it promises to be a great tool but fails to deliver on its central promise of easy dependency management. The main issues I have with Maven are:

  • Poor and misleading documentation,
  • Repository hell

Poor documentation

Subscribe to RSS - maven


by Dr. Radut.