Apache Maven Current Version User Guide
Total Page:16
File Type:pdf, Size:1020Kb
...................................................................................................................................... Apache Maven Current version User Guide ...................................................................................................................................... The Apache Software Foundation 2009-10-16 T a b l e o f C o n t e n t s i Table of Contents ....................................................................................................................................... 1 Table of Contents . i 2 What is Maven? . 1 3 Features . 3 4 FAQ . 4 5 Community Overview . 11 5.1 How to Contribute . 13 5.2 Getting Help . 15 5.3 Issue Tracking . 17 5.4 Source Repository . 18 5.5 Continuous Integration . 20 6 Running Maven . 21 7 Maven Plugins . 23 8 User Centre . 30 8.1 Maven in 5 Minutes . 31 8.2 Getting Started Guide . 35 8.3 POM Reference . 57 8.4 Settings Reference . 91 8.5 Guides . 100 8.5.1 The Build Lifecycle . 103 8.5.2 The POM . 111 8.5.3 Profiles . 123 8.5.4 Repositories . 133 8.5.5 Standard Directory Layout . 136 8.5.6 The Dependency Mechanism . 137 8.5.7 Plugin Development . 153 8.5.8 Configuring Plug-ins . 156 8.5.9 The Plugin Registry . 169 8.5.10 Plugin Prefix Resolution . 172 8.5.11 Developing Ant Plugins . 174 8.5.12 Developing Java Plugins . 188 8.5.13 Creating a Site . 198 8.5.14 Snippet Macro . 203 8.5.15 What is an Archetype . 205 8.5.16 Creating Archetypes . 207 8.5.17 From Maven 1.x to Maven 2.x . 210 8.5.18 Using Maven 1.x repositories with Maven 2.x . 213 8.5.19 Relocation of Artifacts . 214 8.5.20 Installing 3rd party JARs to Local Repository . 216 © 2 0 0 9 , T h e A p a c h e S o f t w a r e F o u n d a t i o n • A L L R I G H T S R E S E R V E D . T a b l e o f C o n t e n t s ii 8.5.21 Deploying 3rd party JARs to Remote Repository . 217 8.5.22 Coping with Sun JARs . 218 8.5.23 Remote repository access through authenticated HTTPS . 220 8.5.24 Creating Assemblies . 222 8.5.25 Configuring Archive Plugins . 226 8.5.26 Configuring Maven . 227 8.5.26 Mirror Settings . 230 8.5.26 Deployment and Security Settings . 233 8.5.26 Embedding Maven 2.x . 234 8.5.26 Generating Sources . 237 8.5.26 Working with Manifests . 239 8.5.26 Maven Classloading . 241 8.5.26 Using Multiple Modules in a Build . 243 8.5.26 Using Multiple Repositories . 245 8.5.26 Using Proxies . 247 8.5.26 Using the Release Plugin . 248 8.5.26 Using Ant with Maven . 253 8.5.26 Using Modello . 255 8.5.26 Webapps . 258 8.5.26 Using Extensions . 259 8.5.26 Building For Different Environments with Maven 2 . 260 8.5.26 Using Toolchains . ..