mabrarov commented on a change in pull request #24: URL: https://github.com/apache/maven-ear-plugin/pull/24#discussion_r507838067
########## File path: src/site/apt/examples/skinny-modules.apt.vm ########## @@ -0,0 +1,191 @@ + ------ + Creating Skinny Modules + ------ + Marat Abrarov + ------ + 2020-10-18 + ------ + +~~ 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. + +~~ NOTE: For help with the syntax of this file, see: +~~ http://maven.apache.org/doxia/references/apt-format.html + +Creating Skinny Modules + + This is a bit like {{{./skinny-wars.html}skinny WARs}}, but taken to the + next level and applied to EAR modules of type: + + * {{{../modules.html#webModule}WAR}} + + * {{{../modules.html#rarModule}RAR}} + + * {{{../modules.html#wsrModule}WSR}} + + * {{{../modules.html#sarModule}SAR}} + + * {{{../modules.html#harModule}HAR}} + + Starting with version 3.1.1 Maven EAR Plugin supports referencing + external JARs packaged within the EAR via the <<<Class-Path>>> setting + in EAR module <<<MANIFEST.MF>>>. + + We need to change the EAR project's <<<pom.xml>>> to package those JARs + in the EAR and to use the + {{{../ear-mojo.html#skinnyModules}skinnyModules}} parameter. + + <<Note:>> In this example we package all JARs into a <<<libs/>>> directory + within the EAR. This is just to distinguish between Java EE modules + (which will be packaged in the root of the EAR) and Java libraries + (which are packaged in <<<libs/>>>). Also, we use non standard + <<<outputFileNameMapping>>> just to shorten names of files packaged Review comment: Addressed in 83a46e0 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org