| <?xml version="1.0" encoding="UTF-8"?> |
| |
| <!-- |
| 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 xmlns="http://maven.apache.org/FML/1.0.1" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://maven.apache.org/FML/1.0.1 http://maven.apache.org/xsd/fml-1.0.1.xsd" |
| id="FAQ" title="Frequently Asked Questions"> |
| <part id="General"> |
| <faq id="How can I specify a Class-Path: entry in the manifest of an Application Client jar?"> |
| <question>How can I specify a Class-Path: entry in the manifest of an Application Client jar?</question> |
| <answer> |
| <p> |
| You just have to configure it: |
| <source><![CDATA[ |
| <project> |
| ... |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-acr-plugin</artifactId> |
| <version>${project.version}</version> |
| ... |
| <configuration> |
| <archive> |
| <manifest> |
| <addClasspath>true</addClasspath> |
| </manifest> |
| </archive> |
| </configuration> |
| ... |
| </plugin> |
| </plugins> |
| </build> |
| ... |
| </project> |
| ]]></source> |
| Please see the <a href="http://maven.apache.org/shared/maven-archiver/examples/classpath.html">Maven Archiver Reference</a> |
| for more information about controlling the exact format of the generated class path entries. |
| </p> |
| </answer> |
| </faq> |
| <faq id="extensions"> |
| <question>Why the app-client packaging type is not recognized?</question> |
| <answer> |
| <p>The app-client packaging type has been added as from Maven 3.0.4. If you are running an older version of Maven, |
| it does not know about that packaging type so you need to configure your project accordingly as follows: |
| <source><![CDATA[ |
| <project> |
| ... |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-acr-plugin</artifactId> |
| <version>${project.version}</version> |
| <extensions>true</extensions> |
| ... |
| </plugin> |
| </plugins> |
| </build> |
| ... |
| </project> |
| ]]></source> |
| |
| </p> |
| </answer> |
| </faq> |
| </part> |
| </faqs> |