Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » B3 » Producing a maven repository with B3( Problem with the generated groupId)
Producing a maven repository with B3 [message #1708087] Sat, 12 September 2015 12:56 Go to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
I am trying to produce a maven repository using a P2 repository as source. See: Creating a Maven-conformant p2 repo

My goal is to obtain a maven repository containing some of the jars released by the mylyn-wikitext project. Bug 421551 is opened for that, but until it is solved, I need a workaround.

It is important to notice that there is already a repository containing snaptshots:
https://repo.eclipse.org/content/repositories/mylyn-snapshots/
I have published my initial results on bintray (webviewer).

My problem is that the groupId generated by b3 (org.eclipse.mylyn) is not similar to what can be found in the snaptshots repository (org.eclipse.mylyn.docs).

Dependency to wikitext.core in the snaptshots repo:
    <dependency>
      <groupId>org.eclipse.mylyn.docs</groupId>
      <artifactId>org.eclipse.mylyn.wikitext.core</artifactId>
      <version>2.5.0-SNAPSHOT</version>
    </dependency>

Dependency to wikitext.core in the repo created with b3:
    <dependency>
      <groupId>org.eclipse.mylyn</groupId>
      <artifactId>org.eclipse.mylyn.wikitext.core</artifactId>
      <version>2.5.0.v20150522-1430</version>
    </dependency>


Did I miss something?
Is there a possibility to set the maven groupId in the b3aggr file (to override the generated one)?

My work is shared on github:
https://github.com/jmini/mylyn-wikitext-repository
Re: Producing a maven repository with B3 [message #1709082 is a reply to message #1708087] Wed, 23 September 2015 19:37 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
All I need is already present in the B3 tool! The construct I was looking for is called Maven Mapping.

I did not verify it completely yet, but I think that my problem will be solved with this maven mapping:
index.php/fa/23336/0/

I hope I will be able to create a real workaround for Bug 421551 with this approach. I will let you know.
Re: Producing a maven repository with B3 [message #1709201 is a reply to message #1709082] Thu, 24 September 2015 20:16 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
MavenMapping was the solution for my use case. More details on what I got in bugzilla:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=421551#c11

I have updated the b3aggr files in my GitHub repository (Example: mars.b3aggr)!

Thank you a lot for the Eclipse B3 Tool.
Re: Producing a maven repository with B3 [message #1709206 is a reply to message #1709201] Thu, 24 September 2015 21:41 Go to previous message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
On 2015-24-09 22:16, Jeremie Bresson wrote:
> MavenMapping was the solution for my use case. More details on what I
> got in bugzilla:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=421551#c11
>
> I have updated the b3aggr files in my GitHub repository (Example:
> https://github.com/jmini/mylyn-wikitext-repository/blob/master/aggregator/mars.b3aggr)!
>
>
> Thank you a lot for the Eclipse B3 Tool.

Thank YOU for answering your own questions :-)

- henrik
Previous Topic:Proxying Maven central
Next Topic:maven result with strictMavenVersions : invalid version numbers in maven-metadata.xml
Goto Forum:
  


Current Time: Sat Nov 09 01:59:39 GMT 2024

Powered by FUDForum. Page generated in 0.03584 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top