Hello,
I've been reading about Trinidad and it looks like a very nice component
library. I would like to give it a try.
I would like to use the 1.2.x branch since I am using a server that supports
JSF 1.2.
Unfortunately, adding a dependency of trinidad 1.2 or later to my Maven 2
pom.xml fails to retrieve the correct JARs from the maven repository.
Here is the dependency declaration in my pom.xml:
<dependencies>
<dependency>
<groupId>org.apache.myfaces.trinidad</groupId>
<artifactId>trinidad</artifactId>
<version>[1.2,)</version>
</dependency>
Here is the error message I get after mvn package:
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Couldn't find a version in [1.0.4] to match range [1.2,)
org.apache.myfaces.trinidad:trinidad:jar:null
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
I looked at the maven-metadata.xml in the repository and it looks like this:
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.myfaces.trinidad</groupId>
<artifactId>trinidad</artifactId>
<version>1.0.4</version>
<versioning>
<versions>
<version>1.0.4</version>
</versions>
<lastUpdated>20071109100147</lastUpdated>
</versioning>
</metadata>
It looks like the 1.2.x versions are not listed in this file, and I assume
this is why Maven is not able to retrieve them, even though they are in the
repository.
Is there anything I can do so that Maven can pull the latest 1.2 version
from the Maven repository?
Thanks,
David R. Heffelfinger
--
http://ensode.net - A Guide to Java, Linux and Other Technology Topics
http://java-ee-5-glassfish.packtpub.com/ - Java EE 5 Development Using
GlassFish Application Server
http://jasperreportsbook.packtpub.com - JasperReports For Java Developers