Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336461

Summary: update archetyper runtime to version 2.3
Product: z_Archived Reporter: Igor Fedorenko <igor>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: fbricon, konrad_w, pascal, trunov_iv
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 374660, 394918, 405945, 415114, 424010, 429287, 459453    

Description Igor Fedorenko CLA 2011-02-06 17:12:51 EST
m2e comes with 2.0-alpha-4 version of archetyper runtime, which does not honour maven http proxy configuration and project creating fails in some environments because of this. The bug is fixed in now released archetyper 2.0, but from my understanding there were major changes in archetyper between alpha-4 and final 2.0, so update most likely be more involved than jar swap. 

Another complication is getting new archetyper jars cleared through eclipse IP review process.

Original m2e bugreport https://issues.sonatype.org/browse/MNGECLIPSE-1910

Archetype bugreport http://jira.codehaus.org/browse/ARCHETYPE-202
Comment 1 Pascal Rapicault CLA 2011-02-08 09:07:53 EST
In the past concerns had been expressed wrt moving to this new version.
Which transport is being used by the archetype system?
Comment 2 Konrad Windszus CLA 2011-06-15 10:31:29 EDT
I don't know if that error is related, but once in a while (about 50% of the times) I get the following exception when trying to create a maven module/project from a local (!) archetype:

Error downloading archetype <groupId>:<artifactId>:<version>. Unfortunately there is no stacktrace available in the log. 

Without a stacktrace it is hard to say, whether this is a bug from archetyper runtime or not, but presumably this is also fixed with the new version.
Comment 3 Igor Fedorenko CLA 2013-09-29 09:39:50 EDT
closing old/stale bugreports
Comment 4 Igor Fedorenko CLA 2015-02-11 13:42:05 EST
*** Bug 459453 has been marked as a duplicate of this bug. ***
Comment 5 Fred Bricon CLA 2015-03-18 17:32:22 EDT
I have an initial POC that uses archetype 2.3.

I checked it fixes bugs #459453, #424010, #394918, #374660, #405945 (on OSX at least), #415114, #429287

Bug #446657, #348893 may or not be fixed (I can't test proxies)

The only problem is it will break 3rd party adopters (JBoss Tools at least) depending on the archetype API (package/class names changed between 2.0.0.alpha4 and 2.3)

Getting the fix in will require m2e to bump its version to 2.0 (and open a bunch of CQs  in ipzilla)

I'd really like to get that in for Eclipse Mars, if possible, WDYT?
Comment 6 Fred Bricon CLA 2015-03-20 14:54:07 EDT
Gerrit changest https://git.eclipse.org/r/#/c/44277/1

No regression detected while running ITs

Now the question is, does it really require upversioning m2e to 2.0?
Comment 7 Igor Fedorenko CLA 2015-03-24 00:20:06 EDT
m2e-dev is the proper place to discuss this, but my tentative opinion, new archetyper does not require m2e 2.0. In other words, we can ship new archetyper with m2e 1.6
Comment 8 Fred Bricon CLA 2015-03-24 14:04:27 EDT
So commit http://git.eclipse.org/c/m2e/m2e-core.git/commit/?id=9a3c27c321e2ad5766034c88578fe35d1d09556c applied without changing the major version

All archetype packages (org.eclipse.m2e.core.archetype, org.apache.maven.archetype.*, org.codehaus.plexus.velocity) have been marked as x-internal:true
Comment 9 Fred Bricon CLA 2015-03-24 14:05:41 EDT
Resolving for 1.6.M6
Comment 10 Fred Bricon CLA 2015-03-24 14:06:29 EDT
Resolving twice (thanks bugzilla)
Comment 11 Denis Roy CLA 2021-04-19 13:24:55 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/