Add commons-logging dependency.

Remove old ear code


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112972 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion 2003-02-23 11:30:03 +00:00
parent aa891b3d5f
commit af35238eab
2 changed files with 4 additions and 57 deletions

View File

@ -35,61 +35,4 @@
</warvalidator>
</goal>
<!-- ================================================================ -->
<!-- E A R -->
<!-- ================================================================ -->
<goal name="j2ee:ear"
description="Create an EAR file from the project">
<echo>Building EAR ${pom.artifactId}</echo>
<j:set var="warBuildDir"
value="${pom.getPluginContext('maven-war-plugin').getVariable('maven.war.build.dir')}"/>
<mkdir dir="${warBuildDir}" />
<ear earfile="${warBuildDir}/${pom.artifactId}.ear"
appxml="${maven.j2ee.ear.appxml}">
<!-- include the actual project files -->
<fileset dir="${maven.build.dir}"
includes="${maven.j2ee.ear.includes}"
excludes="${maven.j2ee.ear.excludes}" />
<!-- include marked dependencies -->
<j:forEach var="dep" items="${pom.dependencies}">
<j:if test="${dep.getProperty('ear.bundle.jar')=='true'}">
<fileset dir="${maven.repo.local}/${dep.artifactDirectory}/jars/">
<include name="${dep.artifact}"/>
</fileset>
</j:if>
</j:forEach>
<!-- include license -->
<j:set var="licenseFileName"><license:fileName/></j:set>
<util:file name="${licenseFileName}" var="licenseFile"/>
<metainf dir="${licenseFile.canonicalFile.parent}">
<include name="${licenseFile.canonicalFile.name}"/>
</metainf>
<!-- standard manifest entries -->
<!-- fix me - classPath entries? -->
<manifest>
<attribute name="Built-By" value="${user.name}" />
<section name="${pom.package}">
<attribute name="Specification-Title" value="${pom.artifactId}" />
<attribute name="Specification-Version"
value="${pom.currentVersion}" />
<attribute name="Specification-Vendor"
value="${pom.organization.name}" />
<attribute name="Implementation-Title"
value="${pom.package}" />
<attribute name="Implementation-Version"
value="${pom.currentVersion}" />
<attribute name="Implementation-Vendor"
value="${pom.organization.name}" />
</section>
</manifest>
</ear>
</goal>
</project>

View File

@ -78,6 +78,10 @@
<classloader>root.maven</classloader>
</properties>
</dependency>
<dependency>
<id>commons-logging</id>
<version>1.0.2</version>
</dependency>
<dependency>
<id>dom4j</id>
<version>1.4-dev-7</version>