This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
As noted in https://maven.apache.org/archetype/maven-archetype-plugin/archetype-repository.html it is not possible to pass `archetypeRepository`, as `ArchetypeWizardUtils` does; it will just be ignored. This means that calls to `Archetype.setRepository`, as for example in https://github.com/stapler/netbeans-stapler-plugin/blob/1f180ee18b75bef191a1f7be840475f914ffaf15/jenkins-plugin/src/main/java/org/kohsuke/stapler/netbeans/jenkinsdev/JenkinsPluginTemplate.java#L37 will not work unless `~/.m2/settings.xml` already happens to define a mirror for that repository. Since according to http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.apache.maven.plugins%22%20AND%20a%3A%22maven-archetype-plugin%22 the last 2.x version was 2.4, this should be specified explicitly to make sure that new project creation works.
Created attachment 164780 [details] Proposed patch
fixed in jet-main #4896acb523c0
thanks for the patch
Integrated into 'main-silver', will be available in build *201707201608* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/4896acb523c0 User: Tomas Stupka <tstupka@netbeans.org> Log: Issue #271110 - Attempt to pass -DarchetypeRepository to 3.x maven-archetype-plugin
Refiled as: https://github.com/apache/incubator-netbeans/pull/788