Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » B3 » Maven2 Repositories
Maven2 Repositories [message #537153] Tue, 01 June 2010 09:25 Go to next message
Marko Espig is currently offline Marko Espig
Messages: 19
Registered: July 2009
Junior Member
Hi,

has anyone tried to load a maven2 Repository with success. b3 aggregator
is loading, but never finished, even a local m2 repo.


Kind regards

Marko Espig
Re: Maven2 Repositories [message #537162 is a reply to message #537153] Tue, 01 June 2010 10:02 Go to previous messageGo to next message
Filip Hrbek is currently offline Filip Hrbek
Messages: 233
Registered: July 2009
Senior Member
How big is your repo? Could you provide a sample?
A load of a large repository is supposed to run for a reasonable time.

Filip


Marko Espig wrote:
> Hi,
>
> has anyone tried to load a maven2 Repository with success. b3 aggregator
> is loading, but never finished, even a local m2 repo.
>
>
> Kind regards
>
> Marko Espig
>
Re: Maven2 Repositories [message #540733 is a reply to message #537162] Thu, 17 June 2010 03:57 Go to previous messageGo to next message
Marko Espig is currently offline Marko Espig
Messages: 19
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.
--------------010009050708030604060208
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Hi Filip,

After no success with our company repo, I tried a local repository with
about 200 MB and also tried to limit artifacts to about 18 MB. I just
added the m2 repository to an b3aggr configuration.

Thanks an kind regards

Marko



Am 01.06.2010 16:02, schrieb Filip Hrbek:
> How big is your repo? Could you provide a sample?
> A load of a large repository is supposed to run for a reasonable time.
>
> Filip
>
>
> Marko Espig wrote:
>> Hi,
>>
>> has anyone tried to load a maven2 Repository with success. b3 aggregator
>> is loading, but never finished, even a local m2 repo.
>>
>>
>> Kind regards
>>
>> Marko Espig
>>
>
>


--------------010009050708030604060208
Content-Type: text/xml;
name="mavenRepo.b3aggr"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="mavenRepo.b3aggr"

<?xml version="1.0" encoding="UTF-8"?>
<aggregator:Aggregator xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:aggregator="http://www.eclipse.org/b3/2010/aggregator/1.0.0">
<contributions>
<repositories location="D:\development\mavenrepo_light" nature="maven2"/>
</contributions>
</aggregator:Aggregator>

--------------010009050708030604060208--
Re: Maven2 Repositories [message #540840 is a reply to message #540733] Thu, 17 June 2010 09:04 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik Lindberg
Messages: 2492
Registered: July 2009
Senior Member
Did that test work or fail?
- henrik
On 6/17/10 9:57 AM, Marko Espig wrote:
> Hi Filip,
>
> After no success with our company repo, I tried a local repository with
> about 200 MB and also tried to limit artifacts to about 18 MB. I just
> added the m2 repository to an b3aggr configuration.
>
> Thanks an kind regards
>
> Marko
>
>
>
> Am 01.06.2010 16:02, schrieb Filip Hrbek:
>> How big is your repo? Could you provide a sample?
>> A load of a large repository is supposed to run for a reasonable time.
>>
>> Filip
>>
>>
>> Marko Espig wrote:
>>> Hi,
>>>
>>> has anyone tried to load a maven2 Repository with success. b3 aggregator
>>> is loading, but never finished, even a local m2 repo.
>>>
>>>
>>> Kind regards
>>>
>>> Marko Espig
>>>
>>
>>
>
Re: Maven2 Repositories [message #542587 is a reply to message #540840] Fri, 25 June 2010 07:45 Go to previous messageGo to next message
Kevin  is currently offline Kevin
Messages: 9
Registered: June 2010
Junior Member
Hi,
I'm also having problems working with a maven repo.
The repository appears to load, but no 'Installable Units' are listed in the editor.
In the .metadata/.log, there is message for each maven artifact:

!ENTRY org.eclipse.b3.util ......
!MESSAGE org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature 'latest' not found. (http://ourmavenhost/groupid/artifactid/maven-metadata.xml, 7,13)

p2 side of things is working fine...
Using helios, b3 0.1.0r01053

There doesn't seem to be as much detail in the documentation for maven repos, any help is appreciated.
Thanks,
Kevin
Re: Maven2 Repositories [message #542625 is a reply to message #542587] Fri, 25 June 2010 09:23 Go to previous messageGo to next message
Filip Hrbek is currently offline Filip Hrbek
Messages: 233
Registered: July 2009
Senior Member
Hi Kevin,

maven integration in the b3 aggregator has not been much tested yet so any feedback is very important for us! Thank you for your report.

The problem is obviously in the maven-metadata.xml syntax. When I wrote the code I could not find any official XML schema for maven-metadata files. So I took an "unofficial" one (don't remember exactly who wrote it originally) and converted into an EMF model. This model does not contain the "latest" tag/attribute definition but your file does. That's it. My model contains "release" attribute instead. If you are sure that your files is correct I can add it to the model as an optional feature. Ideally, if you know where to find 100% correct schema for this file, send me a link :-)

Could you at least provide an example of your maven-metadata.xml file so that I could test the modification?

Filip



Kevin wrote:
> Hi,
> I'm also having problems working with a maven repo.
> The repository appears to load, but no 'Installable Units' are listed in
> the editor.
> In the .metadata/.log, there is message for each maven artifact:
>
> !ENTRY org.eclipse.b3.util ......
> !MESSAGE org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature
> 'latest' not found.
> (http://ourmavenhost/groupid/artifactid/maven-metadata.xml, 7,13)
>
> p2 side of things is working fine...
> Using helios, b3 0.1.0r01053
>
> There doesn't seem to be as much detail in the documentation for maven
> repos, any help is appreciated.
> Thanks,
> Kevin
Re: Maven2 Repositories [message #542678 is a reply to message #542625] Fri, 25 June 2010 11:28 Go to previous messageGo to next message
Kevin  is currently offline Kevin
Messages: 9
Registered: June 2010
Junior Member
Hi Filip,
I had to dig to find an example but here's a good one, under the maven project ironically~:
http://repo2.maven.org/maven2/org/apache/maven/maven-core/ma ven-metadata.xml
I think the repository manager, we use archiva, is adding it to our local mirror's metadata.

Closest I could find to a 'schema' is this:
http://docs.codehaus.org/display/MAVEN/Repository+Metadata
(referenced from http://jira.codehaus.org/browse/MNG-3125)

Thanks,
Kevin
Re: Maven2 Repositories [message #544720 is a reply to message #540840] Mon, 05 July 2010 06:59 Go to previous messageGo to next message
Marko Espig is currently offline Marko Espig
Messages: 19
Registered: July 2009
Junior Member
It doesn't produce errors, but there are no IU's.


Regards

Marko Espig

Am 17.06.2010 15:04, schrieb Henrik Lindberg:
> Did that test work or fail?
> - henrik
> On 6/17/10 9:57 AM, Marko Espig wrote:
>> Hi Filip,
>>
>> After no success with our company repo, I tried a local repository with
>> about 200 MB and also tried to limit artifacts to about 18 MB. I just
>> added the m2 repository to an b3aggr configuration.
>>
>> Thanks an kind regards
>>
>> Marko
>>
>>
>>
>> Am 01.06.2010 16:02, schrieb Filip Hrbek:
>>> How big is your repo? Could you provide a sample?
>>> A load of a large repository is supposed to run for a reasonable time.
>>>
>>> Filip
>>>
>>>
>>> Marko Espig wrote:
>>>> Hi,
>>>>
>>>> has anyone tried to load a maven2 Repository with success. b3
>>>> aggregator
>>>> is loading, but never finished, even a local m2 repo.
>>>>
>>>>
>>>> Kind regards
>>>>
>>>> Marko Espig
>>>>
>>>
>>>
>>
>
>
Re: Maven2 Repositories [message #548844 is a reply to message #542678] Fri, 23 July 2010 05:27 Go to previous messageGo to next message
Filip Hrbek is currently offline Filip Hrbek
Messages: 233
Registered: July 2009
Senior Member
I added support for the 'latest' feature. I also entered a new issue for merging local and downloaded metadata files (https://bugs.eclipse.org/bugs/show_bug.cgi?id=320702).

Unfortunately Eclipse hudson build does not work right now so I can't build the update site with the fix. I'll do it as soon as hudson works again.

Filip

Kevin wrote:
> Hi Filip, I had to dig to find an example but here's a good one, under the maven project ironically~:
> http://repo2.maven.org/maven2/org/apache/maven/maven-core/ma ven-metadata.xml
> I think the repository manager, we use archiva, is adding it to our local mirror's metadata.
>
> Closest I could find to a 'schema' is this:
> http://docs.codehaus.org/display/MAVEN/Repository+Metadata
> (referenced from http://jira.codehaus.org/browse/MNG-3125)
>
> Thanks,
> Kevin
>
Re: Maven2 Repositories [message #552860 is a reply to message #548844] Fri, 13 August 2010 16:20 Go to previous messageGo to next message
Kevin  is currently offline Kevin
Messages: 9
Registered: June 2010
Junior Member
Hi Filip,
vacation is over now...
Good news about the fix, I don't see a new build here http://download.eclipse.org/modeling/emft/b3/archivedsites-3 .6/, is the build still not working?
Thanks,
Kevin

Re: Maven2 Repositories [message #552925 is a reply to message #552860] Sat, 14 August 2010 11:04 Go to previous messageGo to next message
Filip Hrbek is currently offline Filip Hrbek
Messages: 233
Registered: July 2009
Senior Member
Hi Kevin,

I hope you enjoyed your vacation ;-)

Please, try the new update site at http://downloads.eclipse.org/modeling/emft/b3/updates-3.7mil estones (for IDE integration) or http://downloads.eclipse.org/modeling/emft/b3/headless-3.7mi lestones (for command line). All latest builds are still compatible with the Helios release.

Let me know if it works for you or if you need more help.

Thanks,

Filip

Dne 13.8.2010 22:20, Kevin napsal(a):
> Hi Filip,
> vacation is over now...
> Good news about the fix, I don't see a new build here http://download.eclipse.org/modeling/emft/b3/archivedsites-3 .6/, is the build still not working?
> Thanks,
> Kevin
>
>
Re: Maven2 Repositories [message #608291 is a reply to message #537153] Tue, 01 June 2010 10:02 Go to previous messageGo to next message
Filip Hrbek is currently offline Filip Hrbek
Messages: 233
Registered: July 2009
Senior Member
How big is your repo? Could you provide a sample?
A load of a large repository is supposed to run for a reasonable time.

Filip


Marko Espig wrote:
> Hi,
>
> has anyone tried to load a maven2 Repository with success. b3 aggregator
> is loading, but never finished, even a local m2 repo.
>
>
> Kind regards
>
> Marko Espig
>
Re: Maven2 Repositories [message #608555 is a reply to message #537162] Thu, 17 June 2010 03:57 Go to previous messageGo to next message
Marko Espig is currently offline Marko Espig
Messages: 19
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.
--------------010009050708030604060208
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Hi Filip,

After no success with our company repo, I tried a local repository with
about 200 MB and also tried to limit artifacts to about 18 MB. I just
added the m2 repository to an b3aggr configuration.

Thanks an kind regards

Marko



Am 01.06.2010 16:02, schrieb Filip Hrbek:
> How big is your repo? Could you provide a sample?
> A load of a large repository is supposed to run for a reasonable time.
>
> Filip
>
>
> Marko Espig wrote:
>> Hi,
>>
>> has anyone tried to load a maven2 Repository with success. b3 aggregator
>> is loading, but never finished, even a local m2 repo.
>>
>>
>> Kind regards
>>
>> Marko Espig
>>
>
>


--------------010009050708030604060208
Content-Type: text/xml;
name="mavenRepo.b3aggr"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="mavenRepo.b3aggr"

<?xml version="1.0" encoding="UTF-8"?>
<aggregator:Aggregator xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:aggregator="http://www.eclipse.org/b3/2010/aggregator/1.0.0">
<contributions>
<repositories location="D:\development\mavenrepo_light" nature="maven2"/>
</contributions>
</aggregator:Aggregator>

--------------010009050708030604060208--
Re: Maven2 Repositories [message #608560 is a reply to message #540733] Thu, 17 June 2010 09:04 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik Lindberg
Messages: 2492
Registered: July 2009
Senior Member
Did that test work or fail?
- henrik
On 6/17/10 9:57 AM, Marko Espig wrote:
> Hi Filip,
>
> After no success with our company repo, I tried a local repository with
> about 200 MB and also tried to limit artifacts to about 18 MB. I just
> added the m2 repository to an b3aggr configuration.
>
> Thanks an kind regards
>
> Marko
>
>
>
> Am 01.06.2010 16:02, schrieb Filip Hrbek:
>> How big is your repo? Could you provide a sample?
>> A load of a large repository is supposed to run for a reasonable time.
>>
>> Filip
>>
>>
>> Marko Espig wrote:
>>> Hi,
>>>
>>> has anyone tried to load a maven2 Repository with success. b3 aggregator
>>> is loading, but never finished, even a local m2 repo.
>>>
>>>
>>> Kind regards
>>>
>>> Marko Espig
>>>
>>
>>
>
Re: Maven2 Repositories [message #611384 is a reply to message #540840] Fri, 25 June 2010 07:45 Go to previous messageGo to next message
Kevin  is currently offline Kevin
Messages: 9
Registered: June 2010
Junior Member
Hi,
I'm also having problems working with a maven repo.
The repository appears to load, but no 'Installable Units' are listed in the editor.
In the .metadata/.log, there is message for each maven artifact:

!ENTRY org.eclipse.b3.util ......
!MESSAGE org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature 'latest' not found. (http://ourmavenhost/groupid/artifactid/maven-metadata.xml, 7,13)

p2 side of things is working fine...
Using helios, b3 0.1.0r01053

There doesn't seem to be as much detail in the documentation for maven repos, any help is appreciated.
Thanks,
Kevin
Re: Maven2 Repositories [message #611386 is a reply to message #542587] Fri, 25 June 2010 09:23 Go to previous messageGo to next message
Filip Hrbek is currently offline Filip Hrbek
Messages: 233
Registered: July 2009
Senior Member
Hi Kevin,

maven integration in the b3 aggregator has not been much tested yet so any feedback is very important for us! Thank you for your report.

The problem is obviously in the maven-metadata.xml syntax. When I wrote the code I could not find any official XML schema for maven-metadata files. So I took an "unofficial" one (don't remember exactly who wrote it originally) and converted into an EMF model. This model does not contain the "latest" tag/attribute definition but your file does. That's it. My model contains "release" attribute instead. If you are sure that your files is correct I can add it to the model as an optional feature. Ideally, if you know where to find 100% correct schema for this file, send me a link :-)

Could you at least provide an example of your maven-metadata.xml file so that I could test the modification?

Filip



Kevin wrote:
> Hi,
> I'm also having problems working with a maven repo.
> The repository appears to load, but no 'Installable Units' are listed in
> the editor.
> In the .metadata/.log, there is message for each maven artifact:
>
> !ENTRY org.eclipse.b3.util ......
> !MESSAGE org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature
> 'latest' not found.
> (http://ourmavenhost/groupid/artifactid/maven-metadata.xml, 7,13)
>
> p2 side of things is working fine...
> Using helios, b3 0.1.0r01053
>
> There doesn't seem to be as much detail in the documentation for maven
> repos, any help is appreciated.
> Thanks,
> Kevin
Re: Maven2 Repositories [message #611388 is a reply to message #542625] Fri, 25 June 2010 11:28 Go to previous messageGo to next message
Kevin  is currently offline Kevin
Messages: 9
Registered: June 2010
Junior Member
Hi Filip,
I had to dig to find an example but here's a good one, under the maven project ironically~:
http://repo2.maven.org/maven2/org/apache/maven/maven-core/ma ven-metadata.xml
I think the repository manager, we use archiva, is adding it to our local mirror's metadata.

Closest I could find to a 'schema' is this:
http://docs.codehaus.org/display/MAVEN/Repository+Metadata
(referenced from http://jira.codehaus.org/browse/MNG-3125)

Thanks,
Kevin
Re: Maven2 Repositories [message #611572 is a reply to message #540840] Mon, 05 July 2010 06:59 Go to previous messageGo to next message
Marko Espig is currently offline Marko Espig
Messages: 19
Registered: July 2009
Junior Member
It doesn't produce errors, but there are no IU's.


Regards

Marko Espig

Am 17.06.2010 15:04, schrieb Henrik Lindberg:
> Did that test work or fail?
> - henrik
> On 6/17/10 9:57 AM, Marko Espig wrote:
>> Hi Filip,
>>
>> After no success with our company repo, I tried a local repository with
>> about 200 MB and also tried to limit artifacts to about 18 MB. I just
>> added the m2 repository to an b3aggr configuration.
>>
>> Thanks an kind regards
>>
>> Marko
>>
>>
>>
>> Am 01.06.2010 16:02, schrieb Filip Hrbek:
>>> How big is your repo? Could you provide a sample?
>>> A load of a large repository is supposed to run for a reasonable time.
>>>
>>> Filip
>>>
>>>
>>> Marko Espig wrote:
>>>> Hi,
>>>>
>>>> has anyone tried to load a maven2 Repository with success. b3
>>>> aggregator
>>>> is loading, but never finished, even a local m2 repo.
>>>>
>>>>
>>>> Kind regards
>>>>
>>>> Marko Espig
>>>>
>>>
>>>
>>
>
>
Re: Maven2 Repositories [message #611605 is a reply to message #542678] Fri, 23 July 2010 05:27 Go to previous messageGo to next message
Filip Hrbek is currently offline Filip Hrbek
Messages: 233
Registered: July 2009
Senior Member
I added support for the 'latest' feature. I also entered a new issue for merging local and downloaded metadata files (https://bugs.eclipse.org/bugs/show_bug.cgi?id=320702).

Unfortunately Eclipse hudson build does not work right now so I can't build the update site with the fix. I'll do it as soon as hudson works again.

Filip

Kevin wrote:
> Hi Filip, I had to dig to find an example but here's a good one, under the maven project ironically~:
> http://repo2.maven.org/maven2/org/apache/maven/maven-core/ma ven-metadata.xml
> I think the repository manager, we use archiva, is adding it to our local mirror's metadata.
>
> Closest I could find to a 'schema' is this:
> http://docs.codehaus.org/display/MAVEN/Repository+Metadata
> (referenced from http://jira.codehaus.org/browse/MNG-3125)
>
> Thanks,
> Kevin
>
Re: Maven2 Repositories [message #611613 is a reply to message #548844] Fri, 13 August 2010 16:20 Go to previous messageGo to next message
Kevin  is currently offline Kevin
Messages: 9
Registered: June 2010
Junior Member
Hi Filip,
vacation is over now...
Good news about the fix, I don't see a new build here http://download.eclipse.org/modeling/emft/b3/archivedsites-3 .6/, is the build still not working?
Thanks,
Kevin
Re: Maven2 Repositories [message #611615 is a reply to message #611613] Sat, 14 August 2010 11:04 Go to previous messageGo to next message
Filip Hrbek is currently offline Filip Hrbek
Messages: 233
Registered: July 2009
Senior Member
Hi Kevin,

I hope you enjoyed your vacation ;-)

Please, try the new update site at http://downloads.eclipse.org/modeling/emft/b3/updates-3.7mil estones (for IDE integration) or http://downloads.eclipse.org/modeling/emft/b3/headless-3.7mi lestones (for command line). All latest builds are still compatible with the Helios release.

Let me know if it works for you or if you need more help.

Thanks,

Filip

Dne 13.8.2010 22:20, Kevin napsal(a):
> Hi Filip,
> vacation is over now...
> Good news about the fix, I don't see a new build here http://download.eclipse.org/modeling/emft/b3/archivedsites-3 .6/, is the build still not working?
> Thanks,
> Kevin
>
>
Re: Maven2 Repositories [message #896409 is a reply to message #611615] Wed, 18 July 2012 06:19 Go to previous message
Frank Jakop is currently offline Frank Jakop
Messages: 3
Registered: July 2012
Junior Member
Hello everyone,

despite the age of this thread I'd like to announce, that I'm getting the same problems with maven2-repositories. I've deployed my plugins/features to a nexus oss repository manager and do not see any installable units in the editor. When I use 'install' and map the local repository, everythin seems fine.

My installation details:

0.2.0.v20120330-1440 org.eclipse.b3.aggregator.editor.feature.feature.group
0.2.0.v20110818-1257 org.eclipse.b3.p2.maven.indexer.feature.feature.group

Has anyone an idea?
Previous Topic:Aggregated repository - allow updates of mapped features
Next Topic:Can't get "Validation Repositories" working
Goto Forum:
  


Current Time: Fri Apr 18 21:58:45 EDT 2014

Powered by FUDForum. Page generated in 0.04309 seconds