The Maven Cookbook
Maven Cookbook
- Copyright
- Foreword: 0.5-SNAPSHOT
- 1. Cooking with Maven and OSGi
-
- 1.1. Introduction
- 1.2. Generating an OSGi Project with Maven
- 1.3. Starting an OSGi Container
- 1.4. Importing OSGi Bundles with Maven
- 1.5. Creating an OSGi Bundle with Maven
- 1.6. Starting an Alternative OSGi Framework (Knopflerfish)
- 1.7. Starting an Alternative OSGi Framework (Equinox)
- 1.8. Deploying OSGi Bundles to a Maven Repository
- 1.9. Transforming a Maven Repository into an OSGi Bundle Repository
- 1.10. Proxying OSGi Bundle Repositories
- 1.11. Grouping OSGi Bundle Repositories
- 2. Groovy Maven
- 3. Scala and Maven
- 4. Ant and Maven
- 5. Ruby and Maven
- 6. Web Development
- 7. Unit Testing with Maven
- 8. Integration Testing with Maven
- 9. Releasing Software with Maven
- 10. Repository Management
-
- 10.1. Installing and Running Nexus Open Source
- 10.. Proxying a Remote Repository
- 10.3. Browsing a Nexus Repository
- 10.4. Configuring a Nexus Repository
- 10.5. Viewing Summary Information for Nexus Repositories
- 10.6. Using Mirrors for Proxy Repositories
- 10.. Grouping Repositories
- 10.8. Installing Nexus Professional
- 10.9. Configuring a Staging Repository for Deployment in Nexus Professional
- A. Creative Commons License
- B. Book Revision History
- Index
List of Figures
- 1.1. Project Structure Created by the OPS4J Pax Plugin
- 1.2. Apache Felix Web Management Console
- 1.3. Running the Apache Felix Shell via the Administrative Web Console
- 1.4. Managing the Apache Felix via System Information
- 1.5. Custom Bundle org.sonatype.mcookbook
- 1.6. The Contents of the Snapshots Repository after Deployment
- 1.7. Creating a New Virtual OBR Repository
- 1.8. Creating a New Proxy Repository
- 1.9. Cached Bundles from a Remote OBR Repository
- 1.10. Creating a New OBR Group
- 7.1. Project Structure for Unit Tests
- 7.2. Project Structure for JUnit Test Results
- 7.3. Project Structure for TestNG Test Results
- 10.1. Nexus Open Source Prior to Authentication
- 10.2. The Nexus Log In Dialog
- 10.3. Crowd Menu Link under the Security Section of the Nexus Menu
- 10.4. Opening the Repositories Panel
- 10.5. Creating a New Proxy Repository
- 10.6. Browsing Repository Storage
- 10.7. Crowd Menu Link under the Security Section of the Nexus Menu
- 10.8. Crowd Menu Link under the Security Section of the Nexus Menu
- 10.9. Crowd Menu Link under the Security Section of the Nexus Menu
- 10.10. Configuring Mirrors for Proxy Repositories
- 10.11. Adding a Repository to a Repository Group
- 10.12. Adding a New Repository Group
- 10.13. Prohibit Direct Deployment to a Release Repository
- 10.14. Configuring a Staging Profile
- 10.15. Assigning Staging Roles
List of Examples
- 1.1. ExampleService Interface
- 1.2. ExampleServiceImpl Implementation of the ExampleService Interface
- 1.3. The BundleActivator implementation: ExampleActivator
- 1.4. osgi.bnd Bundle Configuration
- 1.5. settings.xml to configure deployment credentials and mirrors for Nexus
- 1.6. Distribution Management Settings for the osgi-project Project
- 1.7. Metadata for the Snapshots OBR Virtual Repository
- 2.1. Running a Groovy Script from a POM
- 2.2. Executing External Groovy Scripts in a Maven Build
- 2.3. The CreateDeps.groovy Script
- 2.4. The CopySource.groovy Script
- 2.5. POM for a Groovy Maven Plugin
- 2.6.
- 3.1. Executing an Inline Scala Script with the Maven Scala Plugin
- 3.2. Configuring the Maven Scala Plugn Script Goal to Execute an External Script
- 3.3. The CreateDeps.scala Script
- 4.1. Executing an Inline Ant Script in a Maven Build
- 4.2. Executing an External Ant Script from a Maven Build
- 4.3. POM for an Ant Maven Plugin
- 4.4. Echo Ant Mojo
- 4.5. Echo Ant Mojo Descriptor
- 5.1. POM for a JRuby Maven Plugin
- 5.2. The Echo Ruby Mojo
- 5.3. Referencing a Maven Project from a Ruby Mojo
- 5.4. Raising a MojoError from a Ruby Mojo
- 5.5. Depending on a Plexus Component from a Ruby Mojo
- 6.1. Simple Form Accepting an Index to Pass to the Fibonacci Servlet
- 6.2. Fibonacci Servlet which Calculates a Number from the Fibonacci Sequence
- 6.3. Web Application Descriptor for sample-web
- 7.1. SeriousComponent class
- 7.2. JUnit test for SeriousComponent
- 7.3. TestNG Test for the SeriousComponent
- 8.1. TwitterTest a Selenium Test written in TestNG
- 8.2. POM configuring SureFire to Execute Selenium Remote Control