-
1. Re: Corrupted richfaces-impl artifactId in http://repository.jboss.com/maven2 for 3.3.3.CR1?
nbelaevski Mar 16, 2010 5:34 AM (in response to kenfrommera)Hi Konstantin,
Just checked this and it works ok. Can you please post maven error output and pom.xml file?
-
2. Re: Corrupted richfaces-impl artifactId in http://repository.jboss.com/maven2 for 3.3.3.CR1?
kenfrommera Mar 16, 2010 6:02 AM (in response to nbelaevski)Hi Nick,
As for maven output:
Actually, I do not use maven itself to retrieve artifacts.
I use Artifactory (maven repository manager) to cache artifacts from remote maven2 repositories and Apache Ivy to retrieve maven artifacts from my local repository.
So, Artifactory retrieves the richfaces-impl artefact successfully from the JBoss maven2 repository, but when Ivy tries to download it, the following error happens:
[ivy:resolve]
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: org.richfaces.framework#richfaces-impl;3.3.3.CR1: java.text.ParseException: inconsistent module descriptor file found in 'http://wqadev/artifactory/repo/org/richfaces/framework/richfaces-impl/3.3.3.CR1/richfaces-impl-3.3.3.
CR1.pom': bad module name: expected='richfaces-impl' found='${classifiedArtifactId}';
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve] :::: ERRORS
[ivy:resolve] default: bad module name found in http://wqadev/artifactory/repo/org/richfaces/framework/richfaces-impl/3.3.3.CR1/richfaces-impl-3.3.3.CR1.pom: expected='richfaces-impl found='${classifiedArtifactId}'
[ivy:resolve]Please, take a look at the POM file in JBoss maven2 repository at http://repository.jboss.com/maven2/org/richfaces/framework/richfaces-impl/3.3.3.CR1/richfaces-impl-3.3.3.CR1.pom
The <artifactId> tag value in this file is equal to '${classifiedArtifactId}' instead of 'richfaces-impl'.
Please, compare this POM file with the same one for 3.3.2.SR1 which is fine for me (available at http://repository.jboss.com/maven2/org/richfaces/framework/richfaces-impl/3.3.2.SR1/richfaces-impl-3.3.2.SR1.pom)
-
3. Re: Corrupted richfaces-impl artifactId in http://repository.jboss.com/maven2 for 3.3.3.CR1?
nbelaevski Mar 16, 2010 6:13 AM (in response to kenfrommera)Looks like this is Ivy problem, Maven works ok with this. Are you using the latest Ivy version? -
4. Re: Corrupted richfaces-impl artifactId in http://repository.jboss.com/maven2 for 3.3.3.CR1?
kenfrommera Mar 16, 2010 6:48 AM (in response to nbelaevski)Yes, the latest one.
I cannot agree that it is Ivy problem; it is RichFaces 3.3.3.CR1 POM problem:
According to Maven POM reference (see http://maven.apache.org/pom.html)The artifactId is generally the name that the project is known by. Although the groupId is important, people within the group will rarely mention the groupId in discussion (they are often all be the same ID, such as the Codehaus Mojo project groupId: org.codehaus.mojo). It, along with the groupId, create a key that separates this project from every other project in the world (at least, it should ). Along with the groupId, the artifactId fully defines the artifact's living quarters within the repository. In the case of the above project, my-project lives in $M2_REPO/org/codehaus/mojo/my-project
Do you think that "${classifiedArtifactId}" can be really considered as "a name that the project is known by" and "along with the groupId, create a key that separates this project from every other project in the world" and "along with the groupId fully defines the artifact's living quarters within the repository"?
-
5. Re: Corrupted richfaces-impl artifactId in http://repository.jboss.com/maven2 for 3.3.3.CR1?
nbelaevski Mar 16, 2010 7:02 AM (in response to kenfrommera)1 of 1 people found this helpfulRight, Konstantin, I think that property "classifiedArtifactId" defined in the same pom.xml file can be really considered as the artifact name.
Anyway, if Ivy cannot handle this, I've filed JIRA issue to see what we can do: https://jira.jboss.org/jira/browse/RF-8529. Please answer my question about Ivy version.
-
6. Re: Corrupted richfaces-impl artifactId in http://repository.jboss.com/maven2 for 3.3.3.CR1?
kenfrommera Mar 16, 2010 9:19 AM (in response to nbelaevski)Oh, after looking through all POM file I finally understand why this tag value is set in that way.
Sorry for being a little bit pushing
As for Apache Ivy, we are using 2.1.0, which is the latest one.
I'm not sure if Ivy will be able to process the richfaces-impl artifact if this tag value is set as property. I will try to raise discussion in Apache mailing lists.
Thank you for your help! -
7. Re: Corrupted richfaces-impl artifactId in http://repository.jboss.com/maven2 for 3.3.3.CR1?
kenfrommera Mar 18, 2010 4:56 AM (in response to nbelaevski)Hi,
I still did not receive any response for this problem from ivy-user mailing list
But I posted question about such POM file structure into the Maven Users List and receive the following response:
I don't see any reason why you would do like they are doing. As you've already seen, this causes problems.
In genreal, there are lots of weird solutions at the Jboss' repo. Don't look there for guidelines on how to use Maven...