| <?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 |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 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> |
| <answer> |
| <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> |
| </answer> |
| </faq> |
| |
| <faq id="authentication"> |
| <question>How to generate a project from an archetype in an authenticated repository?</question> |
| <answer> |
| <p>The server id used to download the artifact is <code><i>[archetypeArtifactId]</i>-repo</code>: you have to |
| <a href="http://maven.apache.org/settings.html#Servers">define corresponding server configuration in |
| <code>settings.xml</code></a> with this id.</p> |
| </answer> |
| </faq> |
| |
| </part> |
| |
| </faqs> |