RE: location of application.xml?

2008-08-27 Thread ChrisGWarp



ChrisGWarp wrote:
> 
> "Bernhard David" <[EMAIL PROTECTED]> wrote on 18/06/2008 16:21:06:
> 
>> Hello,
>> 
>> I think you just need to declare src/main/application as a resource
>> folder in your pom -
>> 
>> 
>>
>>   src/main/application
>>
>> 
>> and it should work exactly as src/main/resources does.
> 
> Hi David.
> 
> Thanks for following up.
> 
> That leaves me with one final problem if I only have one 
> application.xml file (irrespective of it's location).
> 
> Eclipse will put in the project names of the web and ejb projects 
> into application.xml, eg BlahWeb and BlahEJB.
> 
> Maven when it creates application.xml, it will use the version 
> information as well, eg BlahWeb-1.0-SNAPSHOT etc (unless I use a final 
> name).
> 
> The problem arises when maven will not generate application.xml 
> when it is already in \src\main\application.
> 
> Is there a way to tell it to do so?
> 
> Or, are you aware of any other way to do it?
> 
> Thanks for your help.
> 
> -Chris
> 

To answer myself for future users:

The answer is to get it to generate the application.xml file, which will
generate one in the target directory, and then tell maven to use it, thus:


maven-ear-plugin

${ear.specification.version}
true
   
${project.build.directory}/application.xml



au.com.warpspeed.gpdb
GPDBWeb
gpdb





The two important lines are these:

    true
   
${project.build.directory}/application.xml


HTH,

-Chris

-- 
View this message in context: 
http://www.nabble.com/location-of-application.xml--tp17960243p19192724.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: location of application.xml?

2008-06-18 Thread Chris_Graham
"Bernhard David" <[EMAIL PROTECTED]> wrote on 18/06/2008 16:21:06:

> Hello,
> 
> I think you just need to declare src/main/application as a resource
> folder in your pom -
> 
> 
>
>   src/main/application
>
> 
> and it should work exactly as src/main/resources does.

Hi David.

Thanks for following up.

That leaves me with one final problem if I only have one 
application.xml file (irrespective of it's location).

Eclipse will put in the project names of the web and ejb projects 
into application.xml, eg BlahWeb and BlahEJB.

Maven when it creates application.xml, it will use the version 
information as well, eg BlahWeb-1.0-SNAPSHOT etc (unless I use a final 
name).

The problem arises when maven will not generate application.xml 
when it is already in \src\main\application.

Is there a way to tell it to do so?

Or, are you aware of any other way to do it?

Thanks for your help.

-Chris


**
CAUTION - This message is intended for the addressee named above. It may 
contain privileged or confidential information. 

If you are not the intended recipient of this message you must: 
- Not use, copy, distribute or disclose it to anyone other than the addressee;
- Notify the sender via return email; and
- Delete the message (and any related attachments) from your computer 
immediately.

Internet emails are not necessarily secure. Australian Associated Motors 
Insurers Limited ABN 92 004 791 744 (AAMI), and its related entities, do not 
accept responsibility for changes made to this message after it was sent.

Unless otherwise stated, views expressed within this email are the author's own 
and do not represent those of AAMI.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: location of application.xml?

2008-06-18 Thread Andrew Madu

Chris,
you may find the following information of help:

http://maven.apache.org/plugins/maven-ear-plugin/tests.html

Regards

Andrew

I'm not sure when you put META-INF\application.xml.

Does it go under src\main\resources or src\main\application?

mvn eclipse:eclipse generates a source dir reference to 
src\main\application, and that is what it appears to need to be able to 
run the test app in the environment.


However, although maven generates a correct application.xml (one that uses 
the correct version numbers from the war/ejb modules) it does not put it 
in the generated ear file - not if I use src\main\application. If I use 
src\main\application then it uses what is in the file system and not 
generate one.


Which almost makes me take the approach of using both src\main\resources 
and src\main\application - yuk!


Which is correct?

-Chris


**
CAUTION - This message is intended for the addressee named above. It may contain privileged or confidential information. 

If you are not the intended recipient of this message you must: 
- Not use, copy, distribute or disclose it to anyone other than the addressee;

- Notify the sender via return email; and
- Delete the message (and any related attachments) from your computer 
immediately.

Internet emails are not necessarily secure. Australian Associated Motors 
Insurers Limited ABN 92 004 791 744 (AAMI), and its related entities, do not 
accept responsibility for changes made to this message after it was sent.

Unless otherwise stated, views expressed within this email are the author's own 
and do not represent those of AAMI.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



--
Regards

Andrew

Mob - 07821 437 246
Landline - 01158 718 732


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: location of application.xml?

2008-06-17 Thread Bernhard David
Hello,

I think you just need to declare src/main/application as a resource
folder in your pom -



src/main/application


and it should work exactly as src/main/resources does.

Yours,

David Bernhard

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: 18 June 2008 07:54
> To: Maven Users List
> Subject: location of application.xml?
> 
> I'm not sure when you put META-INF\application.xml.
> 
> Does it go under src\main\resources or src\main\application?
> 
> mvn eclipse:eclipse generates a source dir reference to 
> src\main\application, and that is what it appears to need to 
> be able to 
> run the test app in the environment.
> 
> However, although maven generates a correct application.xml 
> (one that uses 
> the correct version numbers from the war/ejb modules) it does 
> not put it 
> in the generated ear file - not if I use 
> src\main\application. If I use 
> src\main\application then it uses what is in the file system and not 
> generate one.
> 
> Which almost makes me take the approach of using both 
> src\main\resources 
> and src\main\application - yuk!
> 
> Which is correct?
> 
> -Chris
> 
> 
> **
> CAUTION - This message is intended for the addressee named 
> above. It may contain privileged or confidential information. 
> 
> If you are not the intended recipient of this message you must: 
> - Not use, copy, distribute or disclose it to anyone other 
> than the addressee;
> - Notify the sender via return email; and
> - Delete the message (and any related attachments) from your 
> computer immediately.
> 
> Internet emails are not necessarily secure. Australian 
> Associated Motors Insurers Limited ABN 92 004 791 744 (AAMI), 
> and its related entities, do not accept responsibility for 
> changes made to this message after it was sent.
> 
> Unless otherwise stated, views expressed within this email 
> are the author's own and do not represent those of AAMI.
> **
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



location of application.xml?

2008-06-17 Thread Chris_Graham
I'm not sure when you put META-INF\application.xml.

Does it go under src\main\resources or src\main\application?

mvn eclipse:eclipse generates a source dir reference to 
src\main\application, and that is what it appears to need to be able to 
run the test app in the environment.

However, although maven generates a correct application.xml (one that uses 
the correct version numbers from the war/ejb modules) it does not put it 
in the generated ear file - not if I use src\main\application. If I use 
src\main\application then it uses what is in the file system and not 
generate one.

Which almost makes me take the approach of using both src\main\resources 
and src\main\application - yuk!

Which is correct?

-Chris


**
CAUTION - This message is intended for the addressee named above. It may 
contain privileged or confidential information. 

If you are not the intended recipient of this message you must: 
- Not use, copy, distribute or disclose it to anyone other than the addressee;
- Notify the sender via return email; and
- Delete the message (and any related attachments) from your computer 
immediately.

Internet emails are not necessarily secure. Australian Associated Motors 
Insurers Limited ABN 92 004 791 744 (AAMI), and its related entities, do not 
accept responsibility for changes made to this message after it was sent.

Unless otherwise stated, views expressed within this email are the author's own 
and do not represent those of AAMI.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[m2] How do I change the schema location of application.xml

2007-12-07 Thread Mick Knutson
I want to use Maven to generate my application.xml, but need to have a
different schema location. Is this possible? Or do I have to just create my
own and force maven to use mine?

http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/*application_5*.xsd"; version="5" xmlns="
http://java.sun.com/xml/ns/javaee";>

-- 
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---