blob: d331b35bdd9031e754e672c1ebf34b617491b82a [file] [log] [blame]
<?xml version="1.0"?>
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
<faqs id="FAQ" title="Frequently Asked Questions">
<part id="General">
<faq id="packaging">
<question>What packaging should I use: <code>maven-archetype</code> or <code>jar</code>? What is the difference?</question>
<p><code>maven-archetype</code> packaging is available since 2.0-alpha-1: it should be used instead of <code>jar</code>, which was used
for Archetype 1.x.</p>
<p>Using <code>maven-archetype</code> packaging helps identifying archetypes in repositories and adds archetype related bindings to
build lifecycle: see <a href="../archetype-packaging/"><code>maven-archetype</code> packaging documentation</a>
for more information.</p>
<faq id="authentication">
<question>How to generate a project from an archetype in an authenticated repository?</question>
<p>The server id used to download the artifact is <code><i>[archetypeArtifactId]</i>-repo</code>: you have to
<a href="">define corresponding server configuration in
<code>settings.xml</code></a> with this id.</p>