Hi guys, 

 

Im trying to set up a project which packages to an ear. I have tow
specific requirements that I need to satisfy.

 

A) supply my own application.xml and a number of other configuration
files

B) allow these to be filtered with variable substitutions into the
produced ear file

 

Now I note that there is an open JIRA ticket for this, but I cannot seem
to get the suggested workaround running on maven 2.0.8.

 

 

 

 

I have tried the following:

 

1)       application.xml is in src/main/resources/META-INF

 

2) I have switched resource filtering on for this dir

            <resources>

                  <resource>

                        <directory>src/main/resources</directory>

                        <filtering>true</filtering>

                  </resource>

            </resources>

 

2)       application.xml is in src/main/resources/META-INF

3)        Ear source is pointed to the resources dir:

 

<earSourceDirectory>src/main/resources</earSourceDirectory>

 

Now this seems to accomplish A) correctly, as my application.xml gets
picked up and used, however this is the unfiltered version, not the
filtered version that gets put in target\classes\META-INF\

 

Am I doing something wrong, or is there no workaround for this?

 

Thanks

Ross Duncan

 


This message and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this message in error please delete it and any files 
transmitted with it, after notifying [EMAIL PROTECTED] 
Any opinions expressed in this message may be those of the author and not 
necessarily those of the company. The company accepts no responsibility for the 
accuracy or completeness of any information contained herein. This message is 
not intended to create legal relations between the company and the recipient. 
Recipients should please note that messages sent via the Internet may be 
intercepted and that caution should therefore be exercised before dispatching 
to the company any confidential or sensitive information. 
Mizuho International plc Bracken House, One Friday Street, London EC4M 9JA. 
TEL. 020 72361090. Wholly owned subsidiary of Mizuho Securities Co., Ltd. 
Member of Mizuho Financial Group. Authorised and regulated by the Financial 
Services Authority. Member of the London Stock Exchange. 

Registered in England No. 1203696. Registered office as above.

Reply via email to