Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] Creating an archetype from an offline repository

I have not tried this myself, but it should be possible to run an
archetyper inside Eclipse JVM with IMaven.execute(MavenExecutionRequest,
IProgressMonitor) API. It should also be possible to run archetyper as
external maven build, but beware that m2e does not currently provide
public API for that. Implementation behind m2e launch configuration
types is in org.eclipse.m2e.launching bundle.

--
Regards,
Igor

On 11-11-07 12:00 PM, paul.warren@xxxxxxx wrote:
Hi Igor,

OK.  What options would I have available to me to work around this?
I don't mind a little extra code.

Could I for example instantiate the archetype with a programmatic
call through your launch config perhaps?  And then leverage your
import code to bring that project into the workspace? >
-----Original Message-----
From: m2e-dev-bounces@xxxxxxxxxxx [mailto:m2e-dev-bounces@xxxxxxxxxxx] On Behalf Of Igor Fedorenko
Sent: 07 November 2011 08:02
To: m2e-dev@xxxxxxxxxxx
Subject: Re: [m2e-dev] Creating an archetype from an offline repository

Probably not. m2e uses rather old version of archetype, which does not
honour some configuration parameters and offline is likely one of them.


--
Regards,
Igor

On 11-11-07 10:39 AM, paul.warren@xxxxxxx wrote:
Hi Folks,

I am using the following command:-

MavenPlugin./getProjectConfigurationManager/().createArchetypeProject

In order to create a maven project from an archetype. The archetype
itself, all the maven runtime dependencies required to run maven and all
of the eventual project's dependencies are already downloaded into an
offline repository - that I created with a patched version of
maven-dependency-plugin

Is there anyway to run this line above forcing maven into offline mode -
equivalent of '-o' option?

Thanks in advance

_Paul


Back to the top