org.apache.maven.plugin.ear.util
Class EarMavenArchiver

java.lang.Object
  extended by org.apache.maven.archiver.MavenArchiver
      extended by org.apache.maven.plugin.ear.util.EarMavenArchiver

public class EarMavenArchiver
extends MavenArchiver

A custom MavenArchiver implementation that takes care of setting the right classpath value according to the actual path of bundled files.

Author:
Stephane Nicoll

Field Summary
static String CLASS_PATH_KEY
           
 
Fields inherited from class org.apache.maven.archiver.MavenArchiver
REPOSITORY_LAYOUT, REPOSITORY_LAYOUT_NONUNIQUE, SIMPLE_LAYOUT, SIMPLE_LAYOUT_NONUNIQUE
 
Constructor Summary
EarMavenArchiver(List<EarModule> earModules)
          Creates an instance with the ear modules that will be packaged in the EAR archive.
 
Method Summary
protected  String generateClassPathEntry(String classPathPrefix)
          Generates the Class-Path entry of the manifest according to the list of ear modules.
 Manifest getManifest(MavenProject project, MavenArchiveConfiguration config)
           
protected  String getUserSuppliedClassPathEntry(MavenArchiveConfiguration config)
           
 
Methods inherited from class org.apache.maven.archiver.MavenArchiver
createArchive, getArchiver, getManifest, getManifest, setArchiver, setOutputFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_PATH_KEY

public static final String CLASS_PATH_KEY
See Also:
Constant Field Values
Constructor Detail

EarMavenArchiver

public EarMavenArchiver(List<EarModule> earModules)
Creates an instance with the ear modules that will be packaged in the EAR archive.

Parameters:
earModules - the intitialized list of ear modules
Method Detail

getManifest

public Manifest getManifest(MavenProject project,
                            MavenArchiveConfiguration config)
                     throws ManifestException,
                            DependencyResolutionRequiredException
Overrides:
getManifest in class MavenArchiver
Throws:
ManifestException
DependencyResolutionRequiredException

generateClassPathEntry

protected String generateClassPathEntry(String classPathPrefix)
Generates the Class-Path entry of the manifest according to the list of ear modules.

Parameters:
classPathPrefix - the classpath prefix to use
Returns:
the Class-Path entry

getUserSuppliedClassPathEntry

protected String getUserSuppliedClassPathEntry(MavenArchiveConfiguration config)


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.