You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Gabriel Petrovay <ga...@gmail.com> on 2010/11/11 11:14:40 UTC

Generating a POM or repository from an eclipse installation

Hi,

I have an eclipse installation (this is not available on an update
site). I want to build another Eclipse plug-in using Tycho + Maven 3.
Everything that I need for this new plug-in is in my local
installation of eclipse or on my hard-disk. How cna I instruct maven
to get the necessary dependencies from this local installation?

- I don't want maven to get things from the internet because they are all local.
- I was to define in my POM file something like:
<repositories>
	<repository>
		<id>my_local_repo</id>
		<url>file://path/to/my/eclipse/installation/</url>
		<layout>???</layout>
	</repository>
</repositories>

Do you know something that handles this case: a repository layout that
can pick things from a local eclipse installation?

Currently I use "p2" repository layouts and I have to
find/define/maintain every single Eclipse update site that I used to
configure my Eclipse installation. Having such a solution in place I
only have to instruct maven to pick all the dependencies form my local
installation.

An alternative equivalent solution would be to generate a POM file out
of an eclipse installation. Any ideas?

Thanks!


-- 
MSc Gabriel Petrovay
Mobile: +41(0)787978034
www.28msec.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Generating a POM or repository from an eclipse installation

Posted by Gabriel Petrovay <ga...@gmail.com>.
I guess Sonatype's Tycho is my answer:

"Tycho currently builds Maven pom.xml using a local installation of
Eclipse which should contain the Plugin Development Environment (PDE)
and other Eclipse components your specific plugin depends on."
(http://www.sonatype.com/people/2008/11/building-eclipse-plugins-with-maven-tycho/)

Thanks!


On Thu, Nov 11, 2010 at 11:31 AM, Antonio Petrelli
<an...@gmail.com> wrote:
> Sorry I completely missed the point.
> Please ignore me (only this time)
>
> Antonio
>
> 2010/11/11 Antonio Petrelli <an...@gmail.com>:
>> 2010/11/11 Gabriel Petrovay <ga...@gmail.com>:
>>> - I don't want maven to get things from the internet because they are all local.
>>
>> With Maven, you need to do it at least once, just to call
>> mvn dependency:go-offline
>> to download all your dependencies (plugins and project dependencies)
>> in one shot.
>>
>>> - I was to define in my POM file something like:
>>> <repositories>
>>>        <repository>
>>>                <id>my_local_repo</id>
>>>                <url>file://path/to/my/eclipse/installation/</url>
>>>                <layout>???</layout>
>>>        </repository>
>>> </repositories>
>>
>> Useless.
>>
>>> Do you know something that handles this case: a repository layout that
>>> can pick things from a local eclipse installation?
>>>
>>> Currently I use "p2" repository layouts and I have to
>>> find/define/maintain every single Eclipse update site that I used to
>>> configure my Eclipse installation. Having such a solution in place I
>>> only have to instruct maven to pick all the dependencies form my local
>>> installation.
>>>
>>> An alternative equivalent solution would be to generate a POM file out
>>> of an eclipse installation. Any ideas?
>>
>> It's better doing the opposite: convert manually all your local
>> libraries into dependencies, manually construct your pom and, when
>> you're finished, use m2eclipse to manage your Maven project as an
>> Eclipse project.
>>
>> Antonio
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>



-- 
MSc Gabriel Petrovay
Mobile: +41(0)787978034
www.28msec.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Generating a POM or repository from an eclipse installation

Posted by Antonio Petrelli <an...@gmail.com>.
Sorry I completely missed the point.
Please ignore me (only this time)

Antonio

2010/11/11 Antonio Petrelli <an...@gmail.com>:
> 2010/11/11 Gabriel Petrovay <ga...@gmail.com>:
>> - I don't want maven to get things from the internet because they are all local.
>
> With Maven, you need to do it at least once, just to call
> mvn dependency:go-offline
> to download all your dependencies (plugins and project dependencies)
> in one shot.
>
>> - I was to define in my POM file something like:
>> <repositories>
>>        <repository>
>>                <id>my_local_repo</id>
>>                <url>file://path/to/my/eclipse/installation/</url>
>>                <layout>???</layout>
>>        </repository>
>> </repositories>
>
> Useless.
>
>> Do you know something that handles this case: a repository layout that
>> can pick things from a local eclipse installation?
>>
>> Currently I use "p2" repository layouts and I have to
>> find/define/maintain every single Eclipse update site that I used to
>> configure my Eclipse installation. Having such a solution in place I
>> only have to instruct maven to pick all the dependencies form my local
>> installation.
>>
>> An alternative equivalent solution would be to generate a POM file out
>> of an eclipse installation. Any ideas?
>
> It's better doing the opposite: convert manually all your local
> libraries into dependencies, manually construct your pom and, when
> you're finished, use m2eclipse to manage your Maven project as an
> Eclipse project.
>
> Antonio
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Generating a POM or repository from an eclipse installation

Posted by Antonio Petrelli <an...@gmail.com>.
2010/11/11 Gabriel Petrovay <ga...@gmail.com>:
> - I don't want maven to get things from the internet because they are all local.

With Maven, you need to do it at least once, just to call
mvn dependency:go-offline
to download all your dependencies (plugins and project dependencies)
in one shot.

> - I was to define in my POM file something like:
> <repositories>
>        <repository>
>                <id>my_local_repo</id>
>                <url>file://path/to/my/eclipse/installation/</url>
>                <layout>???</layout>
>        </repository>
> </repositories>

Useless.

> Do you know something that handles this case: a repository layout that
> can pick things from a local eclipse installation?
>
> Currently I use "p2" repository layouts and I have to
> find/define/maintain every single Eclipse update site that I used to
> configure my Eclipse installation. Having such a solution in place I
> only have to instruct maven to pick all the dependencies form my local
> installation.
>
> An alternative equivalent solution would be to generate a POM file out
> of an eclipse installation. Any ideas?

It's better doing the opposite: convert manually all your local
libraries into dependencies, manually construct your pom and, when
you're finished, use m2eclipse to manage your Maven project as an
Eclipse project.

Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org