blob: e80b5d1aaf28d2a1ccf448f3f7f3195260d06a6a [file] [log] [blame]
------
Using app client
------
Stephane Nicoll
<snicoll@apache.org>
------
2011-04-03
~~ Copyright 2006 The Apache Software Foundation.
~~
~~ Licensed 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.
~~ NOTE: For help with the syntax of this file, see:
~~ http://maven.apache.org/doxia/references/apt-format.html
Using JavaEE application clients
JavaEE application clients are handled by the maven-acr-plugin with the 'app-client' packaging type. Since this
packaging is new to Maven, you have to enable the extensions of the acr plugin for Maven to discover it. This
sample below describes what needs to be added to your project for a 'app-client-sample' application client. By
default the ear plugin adds any application client to the generated application.xml just like it does for other
JavaEE packaging types.
+--------
<dependencies>
<dependency>
<groupId>com.foo</groupId>
<artifactId>app-client-sample</artifactId>
<version>1.0</version>
<type>app-client</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-acr-plugin</artifactId>
<version>1.0</version>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
+---------