Endorsing XALAN & XERCES

Tom Zeller tzeller at dragonacea.biz
Mon Jun 10 11:33:55 EDT 2013


>> Can you be more specific ... ?

Yes. I said :

> Provided artifacts likely need to be installed to the local maven
> repository in ~/.m2.

>From your original post, the problem seems to be that in your pom.xml,
changing the scope of the xerces dependency to "provided" resulted in
the Maven "missing artifact" error in Eclipse.

The "provided" dependency scope "indicates you expect the JDK or
container to provide the dependency at runtime". [1]

So, my suggestion was to manually install the missing Maven artifacts
to the local repository, via something like "mvn install:install-file
...", because that should help Maven find the missing artifacts.

I do not know why you changed the scope of the dependencies to "provided".

If you look at the parent POM for OpenSAML v3, we use the
maven-compiler-plugin to set an endorsed dirs compiler argument, maybe
that is what you need. [2]

Hope this helps.

[1] http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

[2] http://svn.shibboleth.net/view/java-parent-projects/java-parent-project-v3/trunk/pom.xml?view=markup


More information about the dev mailing list