You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ole Ersoy <ol...@gmail.com> on 2008/10/26 00:03:40 UTC

Reverse Eclipse Plugin?

Hi,

I was wondering whether there's a plugin that can be run on an eclipse project to turn it into a maven project?

So in other words one would create a project in eclipse, run "mvn eclipse:reverse", and and a pom.xml would appear in the root directory.  In addition if the project has dependencies which don't exist in the local maven repo, the plugin would install them.  

Thanks,
- Ole


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


Re: Reverse Eclipse Plugin?

Posted by Stephen Connolly <st...@gmail.com>.
afaik, there is none.

but i'm sure you'd be proclaimed a hero if you wrote one ;-)

-Stephen

2008/10/25 Ole Ersoy <ol...@gmail.com>

> Hi,
>
> I was wondering whether there's a plugin that can be run on an eclipse
> project to turn it into a maven project?
>
> So in other words one would create a project in eclipse, run "mvn
> eclipse:reverse", and and a pom.xml would appear in the root directory.  In
> addition if the project has dependencies which don't exist in the local
> maven repo, the plugin would install them.
> Thanks,
> - Ole
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

RE: Reverse Eclipse Plugin?

Posted by Martin Gainty <mg...@hotmail.com>.
Hello Ole-

take a look at the eclipse:to-maven plugin
mvn eclipse:to-maven
-DdeployTo=maven.org::default::scpexe://repo1.maven.org/home/maven/repository-staging/to-ibiblio/eclipse-staging
-DeclipseDir=.

http://maven.apache.org/plugins/maven-eclipse-plugin/to-maven-mojo.html

HTH
Martin 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. 


> Date: Sat, 25 Oct 2008 17:03:40 -0500
> From: ole.ersoy@gmail.com
> To: users@maven.apache.org
> Subject: Reverse Eclipse Plugin?
> 
> Hi,
> 
> I was wondering whether there's a plugin that can be run on an eclipse project to turn it into a maven project?
> 
> So in other words one would create a project in eclipse, run "mvn eclipse:reverse", and and a pom.xml would appear in the root directory.  In addition if the project has dependencies which don't exist in the local maven repo, the plugin would install them.  
> 
> Thanks,
> - Ole
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 

_________________________________________________________________
When your life is on the go—take your life with you.
http://clk.atdmt.com/MRT/go/115298558/direct/01/

Re: Reverse Eclipse Plugin?

Posted by Ole Ersoy <ol...@gmail.com>.
Hi Guys,

Thanks for the tips.  I voted for the feature.  I have a gazillion projects on my plate ATM, but I'll be glad to help with creation of a mojo for this.  It sounds like we:

Read a plugin.xml
Figure out what the dependencies are
Transfer the dependency values to a modello instance.
Serialize it.
Now we have a pom.xml
Then grab some of the eclipse:to-maven code and use it to deploy the dependencies to the repositories (Local and configurable).

I'm still playing / learing the various pieces of it, so if anyone wants to collaborate feel free to mail me directly.

Cheers,
- Ole


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


Re: Reverse Eclipse Plugin?

Posted by Eugene Kuleshov <eu...@md.pp.ru>.

  There is a request to add such feature to m2eclipse. Please vote.
http://jira.codehaus.org/browse/MNGECLIPSE-781

  BTW, eclipse:to-maven is not what you want. That goal is just installing
jars from local Eclipse installation into Maven repository.

  Thanks

  Eugene



ole ersoy wrote:
> 
> I was wondering whether there's a plugin that can be run on an eclipse
> project to turn it into a maven project?
> 
> So in other words one would create a project in eclipse, run "mvn
> eclipse:reverse", and and a pom.xml would appear in the root directory. 
> In addition if the project has dependencies which don't exist in the local
> maven repo, the plugin would install them.  
> 

-- 
View this message in context: http://www.nabble.com/camel-1.5.0-SNAPSHOT-tp20165808p20169180.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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