[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tycho-user] FW: Cannot find layout implementation error using mvn 3 and tycho artifacts with mvn 2
- From: "Dahanne, Anthony" <Anthony.Dahanne@xxxxxxxxxxxxx>
- Date: Fri, 18 Nov 2011 16:19:18 -0500
- Delivered-to: firstname.lastname@example.org
- Thread-index: AcymNmF8hBq1Jy+YR+yF0akQTrMjFgAAJX8AAAApzCA=
- Thread-topic: [tycho-user] FW: Cannot find layout implementation error using mvn 3 and tycho artifacts with mvn 2
What are your reasons for not switching to maven 3 ? it is stable and is the current version maintained.
Le contenu de ce courriel s'adresse au destinataire seulement. Il contient de l'information pouvant Ãtre confidentielle.ÂVous ne devezÂni le copierÂni l'utiliser niÂle divulguerÂÃ qui que ce soit Ã moins que vous soyez le destinataire ou une personne dÃsignÃe autorisÃe. Si vousÂle receviez par erreur, veuillez nous aviser immÃdiatementÂet le dÃtruire.
The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.
DeÂ: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] De la part de Warwick Burrows
EnvoyÃÂ: 18 novembre 2011 16:17
ÃÂ: Tycho user list
ObjetÂ: Re: [tycho-user] FW: Cannot find layout implementation error using mvn 3 and tycho artifacts with mvn 2
Ok thanks for the clarification. So then is it possible to configure mvn 2 to understand p2 layouts with a plugin? Is it possible to backport the plugin in mvn 3 to mvn 2. Or maybe there's a switch for tycho, or mvn 3, to produce artifacts in a format mvn 2 can work with?
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Alex Blewitt
Sent: Friday, November 18, 2011 3:09 PM
To: Tycho user list
Cc: Tycho user list
Subject: Re: [tycho-user] FW: Cannot find layout implementation error using mvn 3 and tycho artifacts with mvn 2
This is correct. Mvn 2 doesn't understand P2 layouts, and it is trying to download the jar and its Pom.xml to acquire its dependencies. Since it doesn't know how to proceed the build fails.
Sent from my iPhone 4S
On 18 Nov 2011, at 20:23, Warwick Burrows <warwick.burrows@xxxxxxxxxx> wrote:
> I'm very new to maven and tycho. I first asked this question on the maven list but was redirected here. I'm getting error messages trying to reference an artifact that was built with mvn 3 and tycho in an mvn 2 build. The mvn 2 build doesn't use tycho and uses the mvn 3 artifact as a build dependency. The artifacts are deployed to a common maven repo (archiva) by mvn 3 but it seems that the format they are deployed in isn't recognized by mvn 2, or maybe its the artifacts at eclipse that my plugin references that aren't recognized? e.g. When the maven 2 build runs and tries to fetch the artifact I get this:
> Caused by: org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException: Unable to read the metadata file for artifact 'com.e2open.sitoolkit.mse:com.e2open.sitoolkit.mse.model:jar': Cannot find layout implementation corresponding to: 'p2' for remote repository with id: 'helios'. for project com.e2open.sitoolkit.mse:mse
> at org.apache.maven.project.artifact.MavenMetadataSource.retrieveRelocatedProject(MavenMetadataSource.java:200)
> build 15-Nov-2011 18:21:16 Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Component descriptor cannot be found in the component repository: org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayoutp2.
> build 15-Nov-2011 18:21:16 at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:323)
> build 15-Nov-2011 18:21:16 at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
> build 15-Nov-2011 18:21:16 at org.apache.maven.project.ProjectUtils.getRepositoryLayout(ProjectUtils.java:153)
> build 15-Nov-2011 18:21:16 ... 33 more
> Where I have seen references to this problem the answer has been to use mvn 3 but that was because the users have been building an mvn 3 source tree with mvn 2. In my case its a little different in that I want to reference mvn 3/tycho artifacts in an mvn 2 build. So with all that background... is there a way that mvn2 can use these artifacts. e.g. Is there a tycho "p2" layout implementation plugin I can add to mvn 2? Or is there a way to deploy the artifacts from the mvn 3/tycho build in a way that will be compatible with mvn2?
> tycho-user mailing list
tycho-user mailing list
tycho-user mailing list