Fabric3 Webapp Plugin

org.fabric3.war
Class Fabric3WarMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.fabric3.war.Fabric3WarMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class Fabric3WarMojo
extends org.apache.maven.plugin.AbstractMojo

Add fabric3 runtime dependencies to a webapp. The wenapp runtime in Fabric3 currently doesn't support classloader isolation. All JAR files are added to the WEB-INF/lib directory. All system and user extensions are added to the same directory as well. The list of system extensions are specified in the properties file f3Extensions.properties and the list of user extensions are specified in the f3UserExtenion.properties. Both system and user extensions are exploded and the contents of the META-INF/lib directory are copied to the WEB-INF/lib directory.

Performs the following tasks.

Version:
$Rev: 4957 $ $Date: 2008-07-06 09:19:57 -0700 (Sun, 06 Jul 2008) $

Field Summary
 org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
          Used to look up Artifacts in the remote repository.
 Dependency[] bootLibs
          The directory for the generated WAR.
 Dependency[] extensions
          Set of extension artifacts that should be deployed to the runtime.
 org.apache.maven.artifact.repository.ArtifactRepository localRepository
          Location of the local repository.
 org.apache.maven.artifact.metadata.ArtifactMetadataSource metadataSource
          Artifact metadata source.
 org.apache.maven.project.MavenProject project
          POM
 List remoteRepositories
          List of Remote Repositories used by the resolver
 org.apache.maven.artifact.resolver.ArtifactResolver resolver
          Used to look up Artifacts in the remote repository.
 String runTimeVersion
          The default version of the runtime to use.
 Dependency[] userExtensions
          Set of user extension artifacts that should be deployed to the runtime.
 File webappDirectory
          The directory where the webapp is built.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
Fabric3WarMojo()
           
 
Method Summary
 void execute()
          Executes the MOJO.
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

webappDirectory

public File webappDirectory
The directory where the webapp is built.


metadataSource

public org.apache.maven.artifact.metadata.ArtifactMetadataSource metadataSource
Artifact metadata source.


artifactFactory

public org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
Used to look up Artifacts in the remote repository.


resolver

public org.apache.maven.artifact.resolver.ArtifactResolver resolver
Used to look up Artifacts in the remote repository.


localRepository

public org.apache.maven.artifact.repository.ArtifactRepository localRepository
Location of the local repository.


remoteRepositories

public List remoteRepositories
List of Remote Repositories used by the resolver


bootLibs

public Dependency[] bootLibs
The directory for the generated WAR.


extensions

public Dependency[] extensions
Set of extension artifacts that should be deployed to the runtime.


userExtensions

public Dependency[] userExtensions
Set of user extension artifacts that should be deployed to the runtime.


runTimeVersion

public String runTimeVersion
The default version of the runtime to use.


project

public org.apache.maven.project.MavenProject project
POM

Constructor Detail

Fabric3WarMojo

public Fabric3WarMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Executes the MOJO.

Throws:
org.apache.maven.plugin.MojoExecutionException

Fabric3 Webapp Plugin

Copyright © 2007-2008 Fabric3 project contributors. All Rights Reserved.
Licensed under the terms of the Apache License 2.0.