~ubuntu-branches/ubuntu/utopic/maven-ear-plugin/utopic

« back to all changes in this revision

Viewing changes to src/site/apt/examples/including-a-third-party-library-in-application-xml.apt

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Claude
  • Date: 2009-07-29 13:12:13 UTC
  • Revision ID: james.westby@ubuntu.com-20090729131213-x24ux5lowzzvqb4j
Tags: upstream-2.3.2
ImportĀ upstreamĀ versionĀ 2.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
  ------
 
2
  Including A Third Party Library In application.xml
 
3
  ------
 
4
  Stephane Nicoll
 
5
  <snicoll@apache.org>
 
6
  ------
 
7
  September 23, 2005
 
8
 
 
9
~~ Copyright 2006 The Apache Software Foundation.
 
10
~~
 
11
~~ Licensed under the Apache License, Version 2.0 (the "License");
 
12
~~ you may not use this file except in compliance with the License.
 
13
~~ You may obtain a copy of the License at
 
14
~~
 
15
~~      http://www.apache.org/licenses/LICENSE-2.0
 
16
~~
 
17
~~ Unless required by applicable law or agreed to in writing, software
 
18
~~ distributed under the License is distributed on an "AS IS" BASIS,
 
19
~~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
20
~~ See the License for the specific language governing permissions and
 
21
~~ limitations under the License.
 
22
 
 
23
~~ NOTE: For help with the syntax of this file, see:
 
24
~~ http://maven.apache.org/doxia/references/apt-format.html
 
25
 
 
26
 
 
27
Including A Third Party Library In application.xml
 
28
 
 
29
  If third party libraries need to be included in the generated application.xml, the
 
30
  'includeInApplicationXml' flag could be used. This flag works only for jar modules
 
31
  since they define third party libraries packaged within the EAR.
 
32
 
 
33
+--------
 
34
  <build>
 
35
    <plugins>
 
36
      <plugin>
 
37
        <groupId>org.apache.maven.plugins</groupId>
 
38
        <artifactId>maven-ear-plugin</artifactId>
 
39
        <configuration>
 
40
           [...]
 
41
           <modules>
 
42
             <jarModule>
 
43
               <groupId>artifactGroupId</groupId>
 
44
               <artifactId>artifactId</artifactId>
 
45
               <includeInApplicationXml>true</includeInApplicationXml>
 
46
             </jarModule>
 
47
          </modules>
 
48
        </configuration>
 
49
      </plugin>
 
50
    </plugins>
 
51
  </build>
 
52
+---------