You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mick Knutson <mi...@hotmail.com> on 2005/07/14 00:45:53 UTC

[maven 1.0.2] my own application.xml not being included in ear

I have the following setting in my ear-subproject/:

maven.ear.appxml=${basedir}/src/conf/META-INF/application.xml
maven.ear.appxml.generate=false

and I have the following DIR:

./fastforward/ear-subproject/src/conf/META-INF/application.xml

then I run maven from ./fastforward and there is no application.xml added to 
the ear at all.
Can anyone help please?


Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [maven 1.0.2] URGENT custome application.xml not being included in ear

Posted by Mick Knutson <mi...@hotmail.com>.
This application.xml is kicking my butt!!!!!!!!!!!!!!!!!!!!
Why must this be so fricking difficult?
PLEASE someone help me fix this.

All I want to do is include the 
./ear-subproject/src/conf/META-INF/application.xml into my ear as the 
application.xml file and I can get this stupid thing to work!

Here is all I have:
in ./fastforward (my root folder)

project.xml:
================
<?xml version="1.0" encoding="ISO-8859-1"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="/Maven_1.0.2/maven-project.xsd">

    <pomVersion>3</pomVersion>
	<id>fastforwardProject</id>
	<groupId>ff</groupId>
	<name>Fastforward</name>
	<currentVersion>1.1.0</currentVersion>


	<!-- ################################################################ -->
    <!--        Project management section                                
-->
    <!-- ################################################################ 
-->


    <!-- Start Global Dependancies 
==================================================================================-->
    <!-- Dependencies used for the build, and not included in the EAR or WAR 
========================================-->
    <dependencies>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.8</version>
            <type>jar</type>
            <properties>
                <jar.manifest.classpath>true</jar.manifest.classpath>
            </properties>
        </dependency>

	    <dependency>
	        <groupId>ejb-2.1</groupId>
	        <artifactId>ejb</artifactId>
            <type>jar</type>
	        <version>2.1</version>
	    </dependency>
        <dependency>
            <groupId>xdoclet</groupId>
            <artifactId>maven-xdoclet-plugin</artifactId>
            <type>plugin</type>
            <version>1.2.3</version>
        </dependency>
        <dependency>
            <groupId>xdoclet</groupId>
            <artifactId>xdoclet-ibm-module</artifactId>
            <type>jar</type>
            <version>1.2.3</version>
        </dependency>
	    <dependency>
		    <groupId>xdoclet</groupId>
		    <artifactId>maven-xdoclet-plugin</artifactId>
		    <type>plugin</type>
		    <version>1.2.3</version>
		    <!-- <url>http://10.34.30.113/maven/xdoclet/plugins</url> -->
	    </dependency>
        <dependency>
            <groupId>maven-plugins</groupId>
            <artifactId>maven-was5-plugin</artifactId>
            <type>plugin</type>
            <version>1.2</version>
        </dependency>
        <dependency>
            <groupId>maven-plugins</groupId>
            <artifactId>maven-axis-plugin</artifactId>
            <type>plugin</type>
            <version>0.7</version>
        </dependency>
        <!-- END Dependencies used for the build, and not included in the 
EAR or WAR ================================-->



        <!-- 
========================================================================================================-->
        <!-- Dependencies to be included in the EAR and/or WAR 
======================================================-->

        <!-- Spring framework related dependancies 
==================================================================-->
        <dependency>
            <groupId>springframework</groupId>
            <artifactId>spring</artifactId>
            <version>1.2.1</version>
             <type>jar</type>
            <properties>
                <jar.manifest.classpath>true</jar.manifest.classpath>
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
                <war.bundle>true</war.bundle>
                <ear.bundle>true</ear.bundle>
            </properties>
        </dependency>

        <dependency>
            <groupId>springframework</groupId>
            <artifactId>spring-mock</artifactId>
            <version>1.2.1</version>
            <url>http://www.springframework.org/</url>
            <properties>
                <jar.manifest.classpath>true</jar.manifest.classpath>
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
                <war.bundle>true</war.bundle>
                <ear.bundle>true</ear.bundle>
            </properties>
        </dependency>
        <dependency>
            <groupId>aopalliance</groupId>
            <artifactId>aopalliance</artifactId>
            <version>1.0</version>
            <url>http://aopalliance.sourceforge.net/</url>
            <properties>
                <jar.manifest.classpath>true</jar.manifest.classpath>
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
                <war.bundle>true</war.bundle>
                <ear.bundle>true</ear.bundle>
            </properties>
        </dependency>

        <dependency>
            <groupId>cglib</groupId>
            <artifactId>cglib</artifactId>
            <version>2.1</version>
            <type>jar</type>
            <properties>
                <jar.manifest.classpath>true</jar.manifest.classpath>
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
                <war.bundle>true</war.bundle>
                <ear.bundle>true</ear.bundle>
            </properties>
        </dependency>


        <!-- Hibernate related dependancies 
=========================================================================-->
        <dependency>
            <groupId>hibernate</groupId>
            <artifactId>hibernate</artifactId>
            <version>3.0.5</version>
            <type>jar</type>
            <properties>
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
                <war.bundle>true</war.bundle>
                <ear.bundle>true</ear.bundle>
            </properties>
        </dependency>
        <dependency>
            <groupId>ehcache</groupId>
            <artifactId>ehcache</artifactId>
            <version>1.1</version>
            <type>jar</type>
            <properties>
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
                <war.bundle>true</war.bundle>
            </properties>
        </dependency>
        <dependency>
            <groupId>objectweb</groupId>
            <artifactId>asm</artifactId>
            <version>1.5.3</version>
            <type>jar</type>
            <properties>
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
                <war.bundle>true</war.bundle>
                <ear.bundle>true</ear.bundle>
            </properties>
        </dependency>
        <dependency>
            <groupId>objectweb</groupId>
            <artifactId>asm-attrs</artifactId>
            <version>1.5.3</version>
            <type>jar</type>
            <properties>
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
                <war.bundle>true</war.bundle>
                <ear.bundle>true</ear.bundle>
            </properties>
        </dependency>

        <dependency>
            <groupId>commons-lang</groupId>
            <artifactId>commons-lang</artifactId>
            <version>2.1</version>
            <type>jar</type>
            <properties>
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
                <war.bundle>true</war.bundle>
                <ear.bundle>true</ear.bundle>
            </properties>
        </dependency>
        <dependency>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
            <version>1.0.3</version>
            <type>jar</type>
            <properties>
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
                <war.bundle>true</war.bundle>
                <ear.bundle>true</ear.bundle>
            </properties>
        </dependency>
        <dependency>
            <groupId>commons-beanutils</groupId>
            <artifactId>commons-beanutils</artifactId>
            <version>1.6.1</version>
            <type>jar</type>
            <properties>
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
                <war.bundle>true</war.bundle>
                <ear.bundle>true</ear.bundle>
            </properties>
        </dependency>
        <dependency>
            <groupId>commons-collections</groupId>
            <artifactId>commons-collections</artifactId>
            <version>2.1</version>
            <type>jar</type>
            <properties>
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
                <war.bundle>true</war.bundle>
                <ear.bundle>true</ear.bundle>
            </properties>
        </dependency>

        <dependency>
            <groupId>dom4j</groupId>
            <artifactId>dom4j</artifactId>
            <version>1.4</version>
            <type>jar</type>
            <properties>
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
                <war.bundle>true</war.bundle>
            </properties>
        </dependency>

        <!-- Database Drivers needed -->
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>3.0.10</version>
            <type>jar</type>
            <properties>
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
                <ear.bundle>true</ear.bundle>
                <war.bundle>true</war.bundle>
            </properties>
        </dependency>
        <dependency>
            <groupId>ibm</groupId>
            <artifactId>db2java</artifactId>
            <version>1.3.1</version>
            <type>zip</type>
            <properties>
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
                <ear.bundle>true</ear.bundle>
                <war.bundle>true</war.bundle>
            </properties>
        </dependency>
        <dependency>
            <groupId>ibm</groupId>
            <artifactId>db2java</artifactId>
            <version>1.3.1</version>
            <type>jar</type>
            <properties>
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
                <ear.bundle>true</ear.bundle>
                <war.bundle>true</war.bundle>
            </properties>
        </dependency>
        <dependency>
            <groupId>ibm</groupId>
            <artifactId>db2jcc</artifactId>
            <version>1.3.1</version>
            <type>jar</type>
            <properties>
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
                <ear.bundle>true</ear.bundle>
                <war.bundle>true</war.bundle>
            </properties>
        </dependency>
        <dependency>
            <groupId>ibm</groupId>
            <artifactId>db2jcc_license_cu</artifactId>
            <version>1.3.1</version>
            <type>jar</type>
            <properties>
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
                <ear.bundle>true</ear.bundle>
                <war.bundle>true</war.bundle>
            </properties>
        </dependency>
        <!-- END Dependencies to be included in the EAR and/or WAR 
==================================================-->
        <!-- 
========================================================================================================-->

  	</dependencies>
    <!-- End Global Dependancies 
====================================================================================-->


	<build>
		<sourceDirectory>${basedir}/src/java</sourceDirectory>
	</build>

    <reports>
        <report>maven-changelog-plugin</report>
        <report>maven-changes-plugin</report>
        <report>maven-checkstyle-plugin</report>
	    <!--<report>maven-cruisecontrol-plugin</report>-->
        <!-- <report>maven-clover-plugin</report> -->
        <report>maven-dashboard-plugin</report>
        <!--<report>maven-developer-activity-plugin</report>-->
	    <report>maven-faq-plugin</report>
        <!--<report>maven-file-activity-plugin</report>-->
	    <!--<report>maven-findbugs-plugin</report>-->
        <!--<report>maven-license-plugin</report>-->
        <report>maven-linkcheck-plugin</report>
	    <report>maven-javadoc-plugin</report>
	    <!--<report>maven-jcoverage-plugin</report>-->
	    <report>maven-jdepend-plugin</report>
        <!--<report>maven-jira-plugin</report>-->
	    <report>maven-junit-report-plugin</report>
	    <report>maven-jxr-plugin</report>
        <report>maven-pmd-plugin</report>
	    <report>maven-simian-plugin</report>
	    <report>maven-tasklist-plugin</report>
    </reports>

</project>






project.properties:
======================
###------------------------------------------------------------------------------------------------------------------###
# Multiproject properties
maven.multiproject.basedir=${basedir}
maven.multiproject.includes=*/project.xml
maven.multiproject.excludes=project.xml
maven.multiproject.site.goals=site

###------------------------------------------------------------------------------------------------------------------###
# Site documentation properties
maven.site.deploy.method=fs
maven.multiproject.site.goals=site,dashboard:report-single
maven.multiproject.overviewPage.create=true
maven.multiproject.overviewPage.title=Blackhawk Fastforward Project Overview
maven.multiproject.overviewPage.link=projects-overview
maven.multiproject.overviewPage.linkTitle=Project Overview
maven.multiproject.overviewPage.text=Text goes here.
maven.multiproject.excludes = build/*

maven.javadoc.maxmemory=1024M

### All available aggregators:
#csall ,csfiles ,cserrors ,cswarnings ,clovertpc ,cloverloc ,cloverncloc 
,junittests ,juniterrors ,junitfailures ,
#junitpassrate ,pmdfiles ,pmdviolations ,simiantdl ,jcoveragelipc 
,jcoverageloc ,fbfiles ,fbviolations ,tasklistclass ,
#tasklistmethod ,tasklist ,scmchangedfiles ,scmchangedcommit
maven.dashboard.aggregators=cserrors,junittests,junitpassrate
maven.dashboard.runreactor=false
maven.dashboard.rungoals=false

maven.tasklist.taskTag=@todo,@TODO


###------------------------------------------------------------------------------------------------------------------###
# EJBDoclet/xdoclet properties
maven.xdoclet.ejbdoclet.ejbspec=2.0
maven.xdoclet.ejbdoclet.addedTags=@xdoclet-generated at ${TODAY},@copyright 
Safeway, Inc.; HP,@version xxx
maven.xdoclet.ejbdoclet.excludedTags=@version,@author
#maven.xdoclet.ejbdoclet.mergeDir=
maven.xdoclet.ejbdoclet.verbose=true
maven.xdoclet.ejbdoclet.destDir=${maven.build.dir}/xdoclet/ejbdoclet

##maven.xdoclet.ejbdoclet.weblogic.0.poolname=psds.ice.jdbc.iceappds
##maven.xdoclet.ejbdoclet.weblogic.0.datasource=psds.ice.jdbc.iceappds

maven.xdoclet.ejbdoclet.fileset.0=true

#Set the sourcedir property to point to the location of the files that 
xdoclet will process
#maven.xdoclet.ejbdoclet.fileset.0.sourcedir=${basedir}/../ejb-jar-subproject/src/java
maven.xdoclet.ejbdoclet.fileset.0.includes=*/*Bean.java

# EJBDoclet/xdoclet
maven.xdoclet.ejbdoclet.deploymentdescriptor.0=false
maven.xdoclet.ejbdoclet.deploymentdescriptor.0.destDir=${maven.build.dir}/xdoclet/ejbdoclet/META-INF

# EJBDoclet/xdoclet properties (continued) - these properties are all turned 
off.
# Copy them to the appropriate subbproject directory (the one/s containing 
EJB's)
# and set them to the appropriate value, i.e. 'true'. These properties are 
all turned off here.
# They exist here so it will be easier to know what properties are 
available.
maven.xdoclet.ejbdoclet.entitybmp.0=false
maven.xdoclet.ejbdoclet.entitycmp.0=false
maven.xdoclet.ejbdoclet.entitypk.0=false
maven.xdoclet.ejbdoclet.homeinterface.0=false
maven.xdoclet.ejbdoclet.localhomeinterface.0=false
maven.xdoclet.ejbdoclet.localinterface.0=false
maven.xdoclet.ejbdoclet.remoteinterface.0=false
maven.xdoclet.ejbdoclet.session.0=false
maven.xdoclet.ejbdoclet.utilobject.0=false
maven.xdoclet.ejbdoclet.valueobject.0=false
maven.xdoclet.ejbdoclet.valueobject.0.pattern={0}Dto
maven.xdoclet.ejbdoclet.strutsform.0=false


#maven.xdoclet.webdoclet.fileset.0.include=**/*.java

#maven.xdoclet.hibernatedoclet.fileset.0=true
#maven.xdoclet.hibernatedoclet.fileset.0.include=**/*.java


###------------------------------------------------------------------------------------------------------------------###
# Junit properties
maven.junit.fork=yes
# Set maven.test.skip to 'true' to bypass unit tests entirely. Its use is 
NOT RECOMMENDED, but quite convenient on occasion.
maven.test.skip=false
# Set this property to false to continue the build if a Junit test fails.
maven.test.failure.ignore=true


###------------------------------------------------------------------------------------------------------------------###
# For future use if Clover is used
#maven.clover.license.path=${maven.repo.local}/clover/licenses/clover.license


maven.final.name=${pom.artifactId}


###------------------------------------------------------------------------------------------------------------------###
# Junit-Doclet
maven.junitdoclet.outputDirectory=${basedir}/src/test/java
# set to true run Junit-Doclet for each subproject
generate.junit.tests=true



maven.xml:
=========================================================================================================================
<project
    default="ff-dist"
    xmlns:j="jelly:core"
    xmlns:ant="jelly:ant"
    xmlns:util="jelly:util">

    <preGoal name="java:compile">
        <attainGoal name="generateJunitTests"/>
    </preGoal>

    <goal name="ff-dist">
        <attainGoal name="multiproject:clean"/>
        <attainGoal name="multiproject:install"/>
        <attainGoal name="deployToLocalServer"/>
    </goal>

    <goal name="generateJunitTests">
        <j:set var="genJunitTests" value="${generate.junit.tests}"/>
        <ant:echo>generate.junit.tests is: ${genJunitTests}</ant:echo>

        <j:if test="${genJunitTests == 'true'}">
            <ant:echo>generate.junit.tests is set to true - will generate 
junit tests</ant:echo>
            <util:available file="${maven.junitdoclet.outputDirectory}/com">
                <!-- <j:set var="dir" 
value="${maven.junitdoclet.outputDirectory}"/>
                <j:if test="${!empty(dir)}"> -->
                <attainGoal name="junitdoclet"/>
                <!--  </j:if> -->
            </util:available>
        </j:if>
        <j:if test="${genJunitTests == 'false'}">
            <ant:echo>generate.junit.tests is set to false - will NOT 
generate junit tests</ant:echo>

        </j:if>
    </goal>

    <goal name="deployToLocalServer">
        <j:set var="deployToLocal" value="${maven.deploy.to.local.server}"/>

        <j:if test="${deployToLocal == 'true'}">
            <ant:echo>Deploying/Copying EAR to Local Server</ant:echo>
            <ant:echo>From: ${basedir}/ear-subproject/target</ant:echo>
            <ant:echo>EAR: fastforward-${pom.currentVersion}.ear</ant:echo>
            <ant:copy todir="${maven.deploy.jboss.dest.dir}">
                <ant:fileset dir="${basedir}/ear-subproject/target">
                    <ant:include name="fastforward.ear"/>
                </ant:fileset>
            </ant:copy>
            <ant:echo>Destination: ${maven.deploy.jboss.dest.dir}</ant:echo>
        </j:if>
        <j:if test="${deployToLocal == 'false'}">
            <ant:echo>NOT Deploying to Local Server</ant:echo>
        </j:if>
    </goal>
</project>






Then, in the fastforward/ear-subproject I have this:

project.properties:
=========================================================================================================================
maven.multiproject.type=ear

#maven.ear.appxml=${maven.ear.descriptordir}/ear-subproject/src/conf/META-INF/application.xml
maven.ear.appxml=${basedir}/src/conf/META-INF/application.xml
maven.ear.appxml.generate=false

#maven.ear.appxml.generate=true

maven.ear.appxml.version=1.3

maven.ear.displayname=${pom.organization.name}_${pom.shortDescription}
maven.final.name=fastforward

maven.test.skip=true

#maven.final.name=${pom.artifactId}






project.xml:
=========================================================================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<project>
    <extend>${basedir}/../project.xml</extend>
    <pomVersion>3</pomVersion>
    <id>fastforward</id>
    <!-- <currentVersion>SNAPSHOT</currentVersion> -->
    <groupId>blackhawk</groupId>

    <name>Blackhawk Fastforward EAR</name>
    <!--
        The shortDescription is used for the application.xml, and needs to 
be 11 Charaters or less to deploy
        onto Websphere
    -->
    <shortDescription>FastForward</shortDescription>
    <description>
        This EAR archive contains all the required enterprise resources for 
the Blackhawk Applicatiion
    </description>


    <!-- 
============================================================================================================-->
    <!-- Standard Runtime LIB's required to be included into the EAR, but 
not required for the build itself =========-->
    <dependencies>
        <dependency>
            <groupId>jdom</groupId>
            <artifactId>jdom</artifactId>
            <version>1.0b8</version>
            <properties>
            </properties>
        </dependency>

        <dependency>
            <groupId>commons-httpclient</groupId>
            <artifactId>commons-httpclient</artifactId>
            <version>2.0.2</version>
            <properties>
                <!-- <ear.bundle.dir>lib</ear.bundle.dir> -->
            </properties>
        </dependency>
        <!--<dependency>
            <id>servletapi</id>
            <version>2.3</version>
        </dependency>-->
        <dependency>
            <groupId>xerces</groupId>
            <artifactId>xercesImpl</artifactId>
            <version>2.6.2</version>
            <type>jar</type>
            <properties>
                <ear.bundle>true</ear.bundle>
                <!-- <ear.bundle.dir>lib</ear.bundle.dir> -->
            </properties>
        </dependency>



        <!-- hibernate 3.0.5 dependencies -->
        <dependency>
            <groupId>dom4j</groupId>
            <artifactId>dom4j</artifactId>
            <version>1.6</version>
            <type>jar</type>
            <properties>
                <ear.bundle>true</ear.bundle>
                <!-- <ear.bundle.dir>lib</ear.bundle.dir> -->
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
            </properties>
        </dependency>

        <dependency>
            <groupId>xerces</groupId>
            <artifactId>xerces</artifactId>
            <version>2.4.0</version>
            <type>jar</type>
            <properties>
                <ear.bundle>true</ear.bundle>
                <!-- <ear.bundle.dir>lib</ear.bundle.dir> -->
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
            </properties>
        </dependency>
        <dependency>
            <groupId>cglib</groupId>
            <artifactId>cglib</artifactId>
            <version>2.1</version>
            <type>jar</type>
            <properties>
                <ear.bundle>true</ear.bundle>
                <!-- <ear.bundle.dir>lib</ear.bundle.dir> -->
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
            </properties>
        </dependency>
        <!--<dependency>
            <groupId>odmg</groupId>
            <artifactId>odmg</artifactId>
            <version>3.0</version>
            <type>jar</type>
            <properties>
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
            </properties>
        </dependency>-->
        <dependency>
            <groupId>xalan</groupId>
            <artifactId>xalan</artifactId>
            <version>2.4.0</version>
            <type>jar</type>
            <properties>
                <ear.bundle>true</ear.bundle>
                <!-- <ear.bundle.dir>lib</ear.bundle.dir> -->
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
            </properties>
        </dependency>
        <dependency>
            <groupId>xml-apis</groupId>
            <artifactId>xml-apis</artifactId>
            <version>2.0.2</version>
            <type>jar</type>
            <properties>
                <ear.bundle>true</ear.bundle>
                <!-- <ear.bundle.dir>lib</ear.bundle.dir> -->
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
            </properties>
        </dependency>

        <dependency>
            <groupId>commons-beanutils</groupId>
            <artifactId>commons-beanutils</artifactId>
            <version>1.6</version>
            <properties>
                <ear.bundle>true</ear.bundle>
                <!--<ear.bundle.dir>lib</ear.bundle.dir> -->
            </properties>
        </dependency>

        <!-- @todo I might want to move these into the root project -->
        <dependency>
            <groupId>baselogic</groupId>
            <artifactId>commonDBService</artifactId>
            <version>${pom.currentVersion}</version>
            <type>jar</type>
            <properties>
                <ear.bundle>true</ear.bundle>
            </properties>
        </dependency>
        <!--<dependency>
            <groupId>baselogic</groupId>
            <artifactId>propertyManagerEJB</artifactId>
            <version>${pom.currentVersion}</version>
            <type>ejb</type>
            <properties>
                <ear.bundle>true</ear.bundle>
            </properties>
        </dependency>-->
        <!--<dependency>
            <groupId>baselogic</groupId>
            <artifactId>sequenceManagerEJB</artifactId>
            <version>${pom.currentVersion}</version>
            <type>ejb</type>
            <properties>
                <ear.bundle>true</ear.bundle>
            </properties>
        </dependency>-->
        <dependency>
            <groupId>baselogic</groupId>
            <artifactId>common</artifactId>
            <version>${pom.currentVersion}</version>
            <type>jar</type>
            <properties>
                <ear.bundle>true</ear.bundle>
            </properties>
        </dependency>

        <dependency>
            <groupId>blackhawk</groupId>
            <artifactId>consumerManagerEJB</artifactId>
            <version>${pom.currentVersion}</version>
            <type>ejb</type>
            <properties>
                <ejb.manifest.classpath>true</ejb.manifest.classpath>
                <ear.bundle>true</ear.bundle>
            </properties>
        </dependency>

        <dependency>
            <groupId>blackhawk</groupId>
            <artifactId>fastforwardWeb</artifactId>
            <version>${pom.currentVersion}</version>
            <type>war</type>
            <properties>
                <ear.bundle>true</ear.bundle>
                
<ear.appxml.war.context-root>/fastforward</ear.appxml.war.context-root>
                <!-- <ear.bundle.name>fastforwardWeb</ear.bundle.name> -->
            </properties>
        </dependency>

    </dependencies>



    <build>
        <resources>
            <resource>
                <directory>${basedir}/src/conf</directory>
                <includes>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                    <include>application.xml</include>
                    <include>*/application.xml</include>
                    <include>**/application.xml</include>
                </includes>
            </resource>
            <resource>
              <directory>${basedir}/src/conf/META-INF</directory>
              <targetPath>META-INF</targetPath>
                <includes>
                    <include>**/*</include>
                    <include>application.xml</include>
                    <include>*/application.xml</include>
                    <include>**/application.xml</include>
                </includes>
            </resource>
        </resources>
    </build>

</project>


maven.xml:
========================================================================================================================

<project
  default="ff-ear"
  xmlns:j="jelly:core"
  xmlns:maven="jelly:maven"
  xmlns:u="jelly:util"
  xmlns:ant="jelly:ant">

	<preGoal name="java:compile">
	    <attainGoal name="xdoclet:ejbdoclet"/>
	</preGoal>

	<goal name="ff-ear">
		<!--<attainGoal name="ear:install"/>-->
		<!--<attainGoal name="jboss:deploy"/>-->
	</goal>

</project>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [maven 1.0.2] my own application.xml not being included in ear

Posted by Dion Gillard <di...@gmail.com>.
Post your project structure so we can replicate it.

On 7/14/05, Mick Knutson <mi...@hotmail.com> wrote:
> OK, then I tried this:
> 
> maven.ear.appxml=${basedir}/ear-subproject/src/conf/META-INF/application.xml
> maven.ear.appxml.generate=false
> 
> and I still did not get any application.xml into my ear.
> Bummer :-(
> 
> 
> >From: Dion Gillard <di...@gmail.com>
> >Reply-To: Dion Gillard <di...@gmail.com>
> >To: Maven Users List <us...@maven.apache.org>
> >Subject: Re: [maven 1.0.2] my own application.xml not being included in ear
> >Date: Thu, 14 Jul 2005 08:59:46 +1000
> >
> >On 7/14/05, Mick Knutson <mi...@hotmail.com> wrote:
> > > I have the following setting in my ear-subproject/:
> > >
> > > maven.ear.appxml=${basedir}/src/conf/META-INF/application.xml
> > > maven.ear.appxml.generate=false
> > >
> > > and I have the following DIR:
> > >
> > > ./fastforward/ear-subproject/src/conf/META-INF/application.xml
> > >
> > > then I run maven from ./fastforward and there is no application.xml
> >added to
> > > the ear at all.
> >
> >When running maven,${basedir} is the location of project.xml.
> >
> >You are running maven from ./fastforward and hence the value of
> >maven.ear.appxml is ./fastforward/src/conf/META-INF/application.xml
> >
> >This is not the same as
> >./fastforward/ear-subproject/src/conf/META-INF/application.xml
> >
> > > Can anyone help please?
> >
> >--
> >http://www.multitask.com.au/people/dion/
> >"You are going to let the fear of poverty govern your life and your
> >reward will be that you will eat, but you will not live." - George
> >Bernard Shaw
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >For additional commands, e-mail: users-help@maven.apache.org
> >
> 
> 
> Thank You
> Mick Knutson
> 
> Sr. Java/J2EE Consultant
> BASE logic, inc.
> (415) 648-1804 (S.F., CA)
> http://www.BASELogic.com
> 
> HP Consulting Services (Walnut Creek, CA)
> 
> 
> 


-- 
http://www.multitask.com.au/people/dion/
"You are going to let the fear of poverty govern your life and your
reward will be that you will eat, but you will not live." - George
Bernard Shaw

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [maven 1.0.2] my own application.xml not being included in ear

Posted by Lukas Theussl <lt...@apache.org>.
What version of the ear plugin do you use? The described problem is an 
old bug that was fixed in v1.7, the latest release is ear-plugin-1.9.

HTH,
-Lukas


Sandhu wrote:
> How does it  worked for you.  I am having the same problem.
> 
> 
> 
> Mick Knutson wrote:
> 
>>OK I tried this and it still did not include any application.xml:
>>
>>maven.ear.appxml=${basedir}/ear-subproject/src/conf/META-INF/application.xml
>>maven.ear.appxml.generate=false
>>
>>Any other ideas?
>>
>>
>>
>>>From: Dion Gillard <di...@gmail.com>
>>>Reply-To: Dion Gillard <di...@gmail.com>
>>>To: Maven Users List <us...@maven.apache.org>
>>>Subject: Re: [maven 1.0.2] my own application.xml not being included in
> 
> ear
> 
>>>Date: Thu, 14 Jul 2005 08:59:46 +1000
>>>
>>>On 7/14/05, Mick Knutson <mi...@hotmail.com> wrote:
>>>
>>>>I have the following setting in my ear-subproject/:
>>>>
>>>>maven.ear.appxml=${basedir}/src/conf/META-INF/application.xml
>>>>maven.ear.appxml.generate=false
>>>>
>>>>and I have the following DIR:
>>>>
>>>>./fastforward/ear-subproject/src/conf/META-INF/application.xml
>>>>
>>>>then I run maven from ./fastforward and there is no application.xml 
>>>
>>>added to
>>>
>>>>the ear at all.
>>>
>>>When running maven,${basedir} is the location of project.xml.
>>>
>>>You are running maven from ./fastforward and hence the value of
>>>maven.ear.appxml is ./fastforward/src/conf/META-INF/application.xml
>>>
>>>This is not the same as
>>>./fastforward/ear-subproject/src/conf/META-INF/application.xml
>>>
>>>
>>>>Can anyone help please?
>>>
>>>--
>>>http://www.multitask.com.au/people/dion/
>>>"You are going to let the fear of poverty govern your life and your
>>>reward will be that you will eat, but you will not live." - George
>>>Bernard Shaw
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>For additional commands, e-mail: users-help@maven.apache.org
>>>
>>
>>
>>Thank You
>>Mick Knutson
>>
>>Sr. Java/J2EE Consultant
>>BASE logic, inc.
>>(415) 648-1804 (S.F., CA)
>>http://www.BASELogic.com
>>
>>HP Consulting Services (Walnut Creek, CA)
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [maven 1.0.2] my own application.xml not being included in ear

Posted by Sandhu <ja...@cisco.com>.
How does it  worked for you.  I am having the same problem.



Mick Knutson wrote:
> 
> OK I tried this and it still did not include any application.xml:
> 
> maven.ear.appxml=${basedir}/ear-subproject/src/conf/META-INF/application.xml
> maven.ear.appxml.generate=false
> 
> Any other ideas?
> 
> 
>>From: Dion Gillard <di...@gmail.com>
>>Reply-To: Dion Gillard <di...@gmail.com>
>>To: Maven Users List <us...@maven.apache.org>
>>Subject: Re: [maven 1.0.2] my own application.xml not being included in
ear
>>Date: Thu, 14 Jul 2005 08:59:46 +1000
>>
>>On 7/14/05, Mick Knutson <mi...@hotmail.com> wrote:
>> > I have the following setting in my ear-subproject/:
>> >
>> > maven.ear.appxml=${basedir}/src/conf/META-INF/application.xml
>> > maven.ear.appxml.generate=false
>> >
>> > and I have the following DIR:
>> >
>> > ./fastforward/ear-subproject/src/conf/META-INF/application.xml
>> >
>> > then I run maven from ./fastforward and there is no application.xml 
>>added to
>> > the ear at all.
>>
>>When running maven,${basedir} is the location of project.xml.
>>
>>You are running maven from ./fastforward and hence the value of
>>maven.ear.appxml is ./fastforward/src/conf/META-INF/application.xml
>>
>>This is not the same as
>>./fastforward/ear-subproject/src/conf/META-INF/application.xml
>>
>> > Can anyone help please?
>>
>>--
>>http://www.multitask.com.au/people/dion/
>>"You are going to let the fear of poverty govern your life and your
>>reward will be that you will eat, but you will not live." - George
>>Bernard Shaw
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
> 
> 
> Thank You
> Mick Knutson
> 
> Sr. Java/J2EE Consultant
> BASE logic, inc.
> (415) 648-1804 (S.F., CA)
> http://www.BASELogic.com
> 
> HP Consulting Services (Walnut Creek, CA)
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-maven-1.0.2--my-own-application.xml-not-being-included-in-ear-tf144560s177.html#a11072700
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [maven 1.0.2] my own application.xml not being included in ear

Posted by Mick Knutson <mi...@hotmail.com>.
OK I tried this and it still did not include any application.xml:

maven.ear.appxml=${basedir}/ear-subproject/src/conf/META-INF/application.xml
maven.ear.appxml.generate=false

Any other ideas?


>From: Dion Gillard <di...@gmail.com>
>Reply-To: Dion Gillard <di...@gmail.com>
>To: Maven Users List <us...@maven.apache.org>
>Subject: Re: [maven 1.0.2] my own application.xml not being included in ear
>Date: Thu, 14 Jul 2005 08:59:46 +1000
>
>On 7/14/05, Mick Knutson <mi...@hotmail.com> wrote:
> > I have the following setting in my ear-subproject/:
> >
> > maven.ear.appxml=${basedir}/src/conf/META-INF/application.xml
> > maven.ear.appxml.generate=false
> >
> > and I have the following DIR:
> >
> > ./fastforward/ear-subproject/src/conf/META-INF/application.xml
> >
> > then I run maven from ./fastforward and there is no application.xml 
>added to
> > the ear at all.
>
>When running maven,${basedir} is the location of project.xml.
>
>You are running maven from ./fastforward and hence the value of
>maven.ear.appxml is ./fastforward/src/conf/META-INF/application.xml
>
>This is not the same as
>./fastforward/ear-subproject/src/conf/META-INF/application.xml
>
> > Can anyone help please?
>
>--
>http://www.multitask.com.au/people/dion/
>"You are going to let the fear of poverty govern your life and your
>reward will be that you will eat, but you will not live." - George
>Bernard Shaw
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>


Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [maven 1.0.2] my own application.xml not being included in ear

Posted by Dion Gillard <di...@gmail.com>.
On 7/14/05, Mick Knutson <mi...@hotmail.com> wrote:
> I have the following setting in my ear-subproject/:
> 
> maven.ear.appxml=${basedir}/src/conf/META-INF/application.xml
> maven.ear.appxml.generate=false
> 
> and I have the following DIR:
> 
> ./fastforward/ear-subproject/src/conf/META-INF/application.xml
> 
> then I run maven from ./fastforward and there is no application.xml added to
> the ear at all.

When running maven,${basedir} is the location of project.xml.

You are running maven from ./fastforward and hence the value of
maven.ear.appxml is ./fastforward/src/conf/META-INF/application.xml

This is not the same as
./fastforward/ear-subproject/src/conf/META-INF/application.xml

> Can anyone help please?

-- 
http://www.multitask.com.au/people/dion/
"You are going to let the fear of poverty govern your life and your
reward will be that you will eat, but you will not live." - George
Bernard Shaw

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org