Re: How to handle Property Files?

2006-02-06 Thread Brad O'Hearne
I have a similar issue, but in my case its a JBoss datasource xml file. 
This needs to be deployed outside of the archive. It seems a little 
weird to have an entire project devoted to a single datasource file so 
as not to couple the file with a jar. Does anyone have the definitive 
answer to this?


Brad


Roland Kofler wrote:


Thank you!
I expected at least that maven copies /src/main/config or ...resource 
folder to the target/test/
or binds it to the classpath for testing. But no. Do I have to specify 
/src/main/config classpath in the pom?


thanks again
roland

[EMAIL PROTECTED] schrieb:

I dont know if this is the best approach, but here's what I did (POM 
follows):


Create filters to filter into my configuration files
Put the start scripts and other resources external to the jar into 
the resource folder

Use the maven assembly plugin to create my tar.gz containing both.

Note, the actual JAR is built and installed in a different 
project.In this case, I simply make reference to the jar as a 
dependency to get this pom to pull it and all its dependencies into 
the tar.gz.


To get the whole thing to work run:

mvn resources:resources assembly:assembly -Denv=

Thanks,
Brian Yoffe

http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>

  
com.jpmorgan.pat.fi
fixed-income
1.0-SNAPSHOT
  
  4.0.0
  configuration
  pom
  Pat Fixed Income Packaging
  http://maven.apache.org
  

  ${pom.groupId}
  fi-strategies
  ${pom.version}
  runtime

  
  

  src/main/filters/${env}/filter_default.properties


  
src/main/resources/common
true
  
  
src/main/resources/${env}
true
  


   
  org.apache.maven.plugins
  maven-assembly-plugin
  
${project.build.finalName}-${env}

   src/main/assembly/conf.xml
   src/main/assembly/bin.xml

  


  






Roland Kofler <[EMAIL PROTECTED]>
02/06/2006 09:05 AM
Please respond to "Maven Users List"

 
To: Maven Users List 

    cc: Subject:How to handle Property Files?


Hello,
I would like to have certain property files outside of my deployment 
JAR for quick configuration. I put them into src/main/config.

My questions are:

1. How to tell  to test goal to classpath these files
2. How can I deploy them along with the generated JAR? With UberJar 
or an install-Zip that contains a folder structure like /bin /lib 
/conf etc.?


Thank you very much!!

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




This communication is for informational purposes only. It is not 
intended

as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All 
market prices,
data and other information are not warranted as to completeness or 
accuracy and
are subject to change without notice. Any comments or statements made 
herein do not necessarily reflect those of JPMorgan Chase & Co., its 
subsidiaries and affiliates



  




-
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]



Re: How to handle Property Files?

2006-02-06 Thread brian . a . yoffe
Yeah, that's the part of the pom that I included below:

 
   
 src/main/resources/common
 true
   
   
 src/main/resources/${env}
 true
   
 

Thanks,
Brian Yoffe





Roland Kofler <[EMAIL PROTECTED]>
02/06/2006 11:02 AM
Please respond to "Maven Users List"

 
To: Maven Users List 
cc: 
    Subject:    Re: How to handle Property Files?


Thank you!
I expected at least that maven copies /src/main/config or ...resource 
folder to the target/test/
or binds it to the classpath for testing. But no. Do I have to specify 
/src/main/config classpath in the pom?

thanks again
roland

[EMAIL PROTECTED] schrieb:
> I dont know if this is the best approach, but here's what I did (POM 
> follows):
>
> Create filters to filter into my configuration files
> Put the start scripts and other resources external to the jar into the 
> resource folder
> Use the maven assembly plugin to create my tar.gz containing both.
>
> Note, the actual JAR is built and installed in a different project. In 
> this case, I simply make reference to the jar as a dependency to get 
this 
> pom to pull it and all its dependencies into the tar.gz.
>
> To get the whole thing to work run:
>
> mvn resources:resources assembly:assembly -Denv=
>
> Thanks,
> Brian Yoffe
>
> http://maven.apache.org/POM/4.0.0"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
> http://maven.apache.org/maven-v4_0_0.xsd";>
>   
> com.jpmorgan.pat.fi
> fixed-income
> 1.0-SNAPSHOT
>   
>   4.0.0
>   configuration
>   pom
>   Pat Fixed Income Packaging
>   http://maven.apache.org
>   
> 
>   ${pom.groupId}
>   fi-strategies
>   ${pom.version}
>   runtime
> 
>   
>   
> 
>   src/main/filters/${env}/filter_default.properties
> 
> 
>   
> src/main/resources/common
> true
>   
>   
> src/main/resources/${env}
> true
>   
> 
> 
>
>   org.apache.maven.plugins
>   maven-assembly-plugin
>   
> ${project.build.finalName}-${env}
> 
>src/main/assembly/conf.xml
>src/main/assembly/bin.xml
>     
>   
> 
> 
>   
> 
>
>
>
>
>
> Roland Kofler <[EMAIL PROTECTED]>
> 02/06/2006 09:05 AM
> Please respond to "Maven Users List"
>
> 
> To: Maven Users List 
> cc: 
> Subject:How to handle Property Files?
>
>
> Hello,
> I would like to have certain property files outside of my deployment JAR 

> for quick configuration. I put them into src/main/config.
> My questions are:
>
> 1. How to tell  to test goal to classpath these files
> 2. How can I deploy them along with the generated JAR? With UberJar or 
> an install-Zip that contains a folder structure like /bin /lib /conf 
etc.?
>
> Thank you very much!!
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> This communication is for informational purposes only. It is not 
intended
> as an offer or solicitation for the purchase or sale of any financial
> instrument or as an official confirmation of any transaction. All market 
prices,
> data and other information are not warranted as to completeness or 
accuracy and
> are subject to change without notice. Any comments or statements made 
herein 
> do not necessarily reflect those of JPMorgan Chase & Co., its 
subsidiaries 
> and affiliates
>
>
> 


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





This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein 
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries 
and affiliates.

Re: How to handle Property Files?

2006-02-06 Thread Roland Kofler

Thank you!
I expected at least that maven copies /src/main/config or ...resource 
folder to the target/test/
or binds it to the classpath for testing. But no. Do I have to specify 
/src/main/config classpath in the pom?


thanks again
roland

[EMAIL PROTECTED] schrieb:
I dont know if this is the best approach, but here's what I did (POM 
follows):


Create filters to filter into my configuration files
Put the start scripts and other resources external to the jar into the 
resource folder

Use the maven assembly plugin to create my tar.gz containing both.

Note, the actual JAR is built and installed in a different project.In 
this case, I simply make reference to the jar as a dependency to get this 
pom to pull it and all its dependencies into the tar.gz.


To get the whole thing to work run:

mvn resources:resources assembly:assembly -Denv=

Thanks,
Brian Yoffe

http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>

  
com.jpmorgan.pat.fi
fixed-income
1.0-SNAPSHOT
  
  4.0.0
  configuration
  pom
  Pat Fixed Income Packaging
  http://maven.apache.org
  

  ${pom.groupId}
  fi-strategies
  ${pom.version}
  runtime

  
  

  src/main/filters/${env}/filter_default.properties


  
src/main/resources/common
true
  
  
src/main/resources/${env}
true
  


   
  org.apache.maven.plugins
  maven-assembly-plugin
  
${project.build.finalName}-${env}

   src/main/assembly/conf.xml
   src/main/assembly/bin.xml

  


  






Roland Kofler <[EMAIL PROTECTED]>
02/06/2006 09:05 AM
Please respond to "Maven Users List"

 
To: Maven Users List 
    cc: 
    Subject:How to handle Property Files?



Hello,
I would like to have certain property files outside of my deployment JAR 
for quick configuration. I put them into src/main/config.

My questions are:

1. How to tell  to test goal to classpath these files
2. How can I deploy them along with the generated JAR? With UberJar or 
an install-Zip that contains a folder structure like /bin /lib /conf etc.?


Thank you very much!!

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




This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein 
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries 
and affiliates



  



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



Re: How to handle Property Files?

2006-02-06 Thread brian . a . yoffe
I dont know if this is the best approach, but here's what I did (POM 
follows):

Create filters to filter into my configuration files
Put the start scripts and other resources external to the jar into the 
resource folder
Use the maven assembly plugin to create my tar.gz containing both.

Note, the actual JAR is built and installed in a different project.In 
this case, I simply make reference to the jar as a dependency to get this 
pom to pull it and all its dependencies into the tar.gz.

To get the whole thing to work run:

mvn resources:resources assembly:assembly -Denv=

Thanks,
Brian Yoffe

http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
  
com.jpmorgan.pat.fi
fixed-income
1.0-SNAPSHOT
  
  4.0.0
  configuration
  pom
  Pat Fixed Income Packaging
  http://maven.apache.org
  

  ${pom.groupId}
  fi-strategies
  ${pom.version}
  runtime

  
  

  src/main/filters/${env}/filter_default.properties


  
src/main/resources/common
true
  
  
src/main/resources/${env}
true
  


   
  org.apache.maven.plugins
  maven-assembly-plugin
  
${project.build.finalName}-${env}

   src/main/assembly/conf.xml
   src/main/assembly/bin.xml

  


  






Roland Kofler <[EMAIL PROTECTED]>
02/06/2006 09:05 AM
Please respond to "Maven Users List"

 
To: Maven Users List 
    cc: 
    Subject:How to handle Property Files?


Hello,
I would like to have certain property files outside of my deployment JAR 
for quick configuration. I put them into src/main/config.
My questions are:

1. How to tell  to test goal to classpath these files
2. How can I deploy them along with the generated JAR? With UberJar or 
an install-Zip that contains a folder structure like /bin /lib /conf etc.?

Thank you very much!!

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




This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein 
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries 
and affiliates



How to handle Property Files?

2006-02-06 Thread Roland Kofler

Hello,
I would like to have certain property files outside of my deployment JAR 
for quick configuration. I put them into src/main/config.

My questions are:

1. How to tell  to test goal to classpath these files
2. How can I deploy them along with the generated JAR? With UberJar or 
an install-Zip that contains a folder structure like /bin /lib /conf  etc.?


Thank you very much!!

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