[M2] more than 1 sourceDirectory

2006-04-28 Thread martin . kuhn
Hi,

is it possible to define more than one sourceDirectory ?


could anybody give me a hint ?


TIA

Martin




++
Diese Nachricht ist vertraulich und ausschließlich für den/die Adressaten 
bestimmt. Sollten Sie nicht der beabsichtigte Adressat, einer seiner 
Mitarbeiter oder sein Empfangsbevollmächtigter sein, ist jede Form der 
Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des Inhalts 
dieser Nachricht unzulässig. In diesem Fall bitten wir, den Absender umgehend 
zu benachrichtigen und die Nachricht zu vernichten. Elektronisch versandte 
Nachrichten können durch Unberechtigte manipuliert und/oder gelesen werden, 
weshalb jegliche Haftung hierfür ausgeschlossen wird.
++
This communication is confidential and is intended solely for the addressee(s). 
If you are not the intended recipient(s), his/her assistant, or authorized 
recipient, any form of disclosure, reproduction, distribution or any use of 
this communication or the information in it, is strictly prohibited and may be 
unlawful. In this case, please notify the sender immediately and destroy the 
e-mail. Electronic communication via the Internet by e-mail may be manipulated 
and/or read by third parties, thus we exclude any liability whatsoever for this 
e-mail.
++



Shipping different environments - different property/xml files

2006-01-25 Thread martin . kuhn
I  use profiles to select one subdir for resources vs another.

This works well.

But I haven't found a solution to name my archives with the environment 
(test or prod).

I use the definition 
finalName${artifactId}-envname-${version}/finalName in my solution 
definition.

In the target directory the archive is named right. 
But the archive which will be installed or deployed has the name without 
envname.

Does anybody know a solution to my problem?


TIA 

Regards,
Martin






++
Diese Nachricht ist vertraulich und ausschließlich für den/die Adressaten 
bestimmt. Sollten Sie nicht der beabsichtigte Adressat, einer seiner 
Mitarbeiter oder sein Empfangsbevollmächtigter sein, ist jede Form der 
Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des Inhalts 
dieser Nachricht unzulässig. In diesem Fall bitten wir, den Absender umgehend 
zu benachrichtigen und die Nachricht zu vernichten. Elektronisch versandte 
Nachrichten können durch Unberechtigte manipuliert und/oder gelesen werden, 
weshalb jegliche Haftung hierfür ausgeschlossen wird.
++
This communication is confidential and is intended solely for the addressee(s). 
If you are not the intended recipient(s), his/her assistant, or authorized 
recipient, any form of disclosure, reproduction, distribution or any use of 
this communication or the information in it, is strictly prohibited and may be 
unlawful. In this case, please notify the sender immediately and destroy the 
e-mail. Electronic communication via the Internet by e-mail may be manipulated 
and/or read by third parties, thus we exclude any liability whatsoever for this 
e-mail.
++



Continuum import multimodule project [M2]

2006-01-19 Thread martin . kuhn
Hi,


I tried to import a multimodule project into continuum and failed.

the structure of my projects


  projects
 |
 +-- xyz_proj_distributon
 |
 +-- xyz_proj_backend
 |
 +-- xyz_proj_frontend
 |
  

im my pom.xml of xyz_proj_distribution I have the following modules 
definition:

modules
  module../xyz_proj_backend/module 
  module../xyz_proj_frontend/module 
/modules

When I'm locally everything works fine. 


Could anybody give me a hint how to add such a multimodule project to 
continuum.

TIA

Martin




++
Diese Nachricht ist vertraulich und ausschließlich für den/die Adressaten 
bestimmt. Sollten Sie nicht der beabsichtigte Adressat, einer seiner 
Mitarbeiter oder sein Empfangsbevollmächtigter sein, ist jede Form der 
Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des Inhalts 
dieser Nachricht unzulässig. In diesem Fall bitten wir, den Absender umgehend 
zu benachrichtigen und die Nachricht zu vernichten. Elektronisch versandte 
Nachrichten können durch Unberechtigte manipuliert und/oder gelesen werden, 
weshalb jegliche Haftung hierfür ausgeschlossen wird.
++
This communication is confidential and is intended solely for the addressee(s). 
If you are not the intended recipient(s), his/her assistant, or authorized 
recipient, any form of disclosure, reproduction, distribution or any use of 
this communication or the information in it, is strictly prohibited and may be 
unlawful. In this case, please notify the sender immediately and destroy the 
e-mail. Electronic communication via the Internet by e-mail may be manipulated 
and/or read by third parties, thus we exclude any liability whatsoever for this 
e-mail.
++




Re: Continuum import multimodule project [M2]

2006-01-19 Thread martin . kuhn
I have in every  pom.xml file the scm definition in the form:

scm
 
connectionscm:svn:http://username:[EMAIL 
PROTECTED]://servername/svn/xyz_proj_name/trunk/connection
/scm


When I try to Add Maven 2.0+ Project I use the following POM Url:

http://servername/svn/xyz_proj_distribution/trunk/pom.xml

This results in the following errors.

Could not download 
http://servername/svn/xyz_proj_distribution/trunk/../xyz_proj_name_1/pom.xml: 
Unable to validate URL 
Could not download 
http://servername/svn/xyz_proj_distribution/trunk/../xyz_proj_name_2/pom.xml: 
Unable to validate URL 
..


Martin






++
Diese Nachricht ist vertraulich und ausschließlich für den/die Adressaten 
bestimmt. Sollten Sie nicht der beabsichtigte Adressat, einer seiner 
Mitarbeiter oder sein Empfangsbevollmächtigter sein, ist jede Form der 
Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des Inhalts 
dieser Nachricht unzulässig. In diesem Fall bitten wir, den Absender umgehend 
zu benachrichtigen und die Nachricht zu vernichten. Elektronisch versandte 
Nachrichten können durch Unberechtigte manipuliert und/oder gelesen werden, 
weshalb jegliche Haftung hierfür ausgeschlossen wird.
++
This communication is confidential and is intended solely for the addressee(s). 
If you are not the intended recipient(s), his/her assistant, or authorized 
recipient, any form of disclosure, reproduction, distribution or any use of 
this communication or the information in it, is strictly prohibited and may be 
unlawful. In this case, please notify the sender immediately and destroy the 
e-mail. Electronic communication via the Internet by e-mail may be manipulated 
and/or read by third parties, thus we exclude any liability whatsoever for this 
e-mail.
++



[M2] Name of artifact in repository when using a profile

2006-01-16 Thread martin . kuhn
Hi,

when I install an artifact  with different profiles (prod, test ...) I 
would like that the artifact name contains the environment name. 

my profile definition:

profile
idenv-prod/id
activation
property
nameenv/name
valueprod/value
/property
/activation
build
resources

/resources
finalName${artifactId}-prod-${version}/finalName

/build

/profile



Does anybody knows a solution for my problem?


TIA

Martin




++
Diese Nachricht ist vertraulich und ausschließlich für den/die Adressaten 
bestimmt. Sollten Sie nicht der beabsichtigte Adressat, einer seiner 
Mitarbeiter oder sein Empfangsbevollmächtigter sein, ist jede Form der 
Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des Inhalts 
dieser Nachricht unzulässig. In diesem Fall bitten wir, den Absender umgehend 
zu benachrichtigen und die Nachricht zu vernichten. Elektronisch versandte 
Nachrichten können durch Unberechtigte manipuliert und/oder gelesen werden, 
weshalb jegliche Haftung hierfür ausgeschlossen wird.
++
This communication is confidential and is intended solely for the addressee(s). 
If you are not the intended recipient(s), his/her assistant, or authorized 
recipient, any form of disclosure, reproduction, distribution or any use of 
this communication or the information in it, is strictly prohibited and may be 
unlawful. In this case, please notify the sender immediately and destroy the 
e-mail. Electronic communication via the Internet by e-mail may be manipulated 
and/or read by third parties, thus we exclude any liability whatsoever for this 
e-mail.
++



Re: resources not in jar

2006-01-15 Thread martin . kuhn
Konstantin: thanks for the hint how to generate the effective pom (mvn 
projecthelp:effective-pom)

Here is the snippet to declare the resource directories

build
resources
resource
directorysrc/main/resources/directory
/resource
resource
directorysrc/main/conf/directory
/resource
/resources
/build


My pom which makes problems has a parent pom. 
When I declare the resources entry in the parent pom it has no 
consequences (the effective pom contains only a resource entry to 
src/main/conf)
When I declare the resources entry in pom the effective pom has the 
correct resource entries (src/main/conf and src/main/resources)

Does inheritance not work in such a case?


BTW, I thougth the default resource entries are src/main/conf and 
src/main/resources. (without an entry only src/main/conf is in the 
effective pom)

Regards,

Martin



 




++
Diese Nachricht ist vertraulich und ausschließlich für den/die Adressaten 
bestimmt. Sollten Sie nicht der beabsichtigte Adressat, einer seiner 
Mitarbeiter oder sein Empfangsbevollmächtigter sein, ist jede Form der 
Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des Inhalts 
dieser Nachricht unzulässig. In diesem Fall bitten wir, den Absender umgehend 
zu benachrichtigen und die Nachricht zu vernichten. Elektronisch versandte 
Nachrichten können durch Unberechtigte manipuliert und/oder gelesen werden, 
weshalb jegliche Haftung hierfür ausgeschlossen wird.
++
This communication is confidential and is intended solely for the addressee(s). 
If you are not the intended recipient(s), his/her assistant, or authorized 
recipient, any form of disclosure, reproduction, distribution or any use of 
this communication or the information in it, is strictly prohibited and may be 
unlawful. In this case, please notify the sender immediately and destroy the 
e-mail. Electronic communication via the Internet by e-mail may be manipulated 
and/or read by third parties, thus we exclude any liability whatsoever for this 
e-mail.
++



resources not in jar

2006-01-12 Thread martin . kuhn
Hi,


I use maven 2.0.1 and have a problem with building a jar. 

The src structure of my project is:

src/main/java
src/main/config
src/main/resources

When I build my jar the files of the src/main/resources directory are not 
included!

Could anybody give me a hint what is wrong?

TIA

Martin




++
Diese Nachricht ist vertraulich und ausschließlich für den/die Adressaten 
bestimmt. Sollten Sie nicht der beabsichtigte Adressat, einer seiner 
Mitarbeiter oder sein Empfangsbevollmächtigter sein, ist jede Form der 
Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des Inhalts 
dieser Nachricht unzulässig. In diesem Fall bitten wir, den Absender umgehend 
zu benachrichtigen und die Nachricht zu vernichten. Elektronisch versandte 
Nachrichten können durch Unberechtigte manipuliert und/oder gelesen werden, 
weshalb jegliche Haftung hierfür ausgeschlossen wird.
++
This communication is confidential and is intended solely for the addressee(s). 
If you are not the intended recipient(s), his/her assistant, or authorized 
recipient, any form of disclosure, reproduction, distribution or any use of 
this communication or the information in it, is strictly prohibited and may be 
unlawful. In this case, please notify the sender immediately and destroy the 
e-mail. Electronic communication via the Internet by e-mail may be manipulated 
and/or read by third parties, thus we exclude any liability whatsoever for this 
e-mail.
++



mevenide eclipse plugin and maven 2

2005-11-27 Thread martin . kuhn
Hi,

is there a possibility to work with the mevenide eclipse plugin and maven 
2 ?

TIA 

Martin




++
Diese Nachricht ist vertraulich und ausschließlich für den/die Adressaten 
bestimmt. Sollten Sie nicht der beabsichtigte Adressat, einer seiner 
Mitarbeiter oder sein Empfangsbevollmächtigter sein, ist jede Form der 
Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des Inhalts 
dieser Nachricht unzulässig. In diesem Fall bitten wir, den Absender umgehend 
zu benachrichtigen und die Nachricht zu vernichten. Elektronisch versandte 
Nachrichten können durch Unberechtigte manipuliert und/oder gelesen werden, 
weshalb jegliche Haftung hierfür ausgeschlossen wird.
++
This communication is confidential and is intended solely for the addressee(s). 
If you are not the intended recipient(s), his/her assistant, or authorized 
recipient, any form of disclosure, reproduction, distribution or any use of 
this communication or the information in it, is strictly prohibited and may be 
unlawful. In this case, please notify the sender immediately and destroy the 
e-mail. Electronic communication via the Internet by e-mail may be manipulated 
and/or read by third parties, thus we exclude any liability whatsoever for this 
e-mail.
++



[m2] finalName in install and version for different environments

2005-09-20 Thread martin . kuhn
I have a project to build / deploy for three different enviroments 
(test,integration, production with different configs) and want to set the 
jar file name depending on the active profile.

I know one possibility is with the finalName Element. The jar process uses 
the finalName and generate the jar with the correct name (specified by 
finalName)
But the install process doesn't use the finalName.

How can I achieve it that the install process (and of course the deploy 
process) also uses the finalName.

Please help!

TIA

Martin Kuhn





++
Diese Nachricht ist vertraulich und ausschließlich für den/die Adressaten 
bestimmt. Sollten Sie nicht der beabsichtigte Adressat, einer seiner 
Mitarbeiter oder sein Empfangsbevollmächtigter sein, ist jede Form der 
Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des 
Inhalts dieser Nachricht unzulässig. In diesem Fall bitten wir, den 
Absender umgehend zu benachrichtigen und die Nachricht zu vernichten. 
Elektronisch versandte Nachrichten können durch Unberechtigte manipuliert 
und/oder gelesen werden, weshalb jegliche Haftung hierfür ausgeschlossen 
wird.
++
This communication is confidential and is intended solely for the 
addressee(s). If you are not the intended recipient(s), his/her assistant, 
or authorized recipient, any form of disclosure, reproduction, 
distribution or any use of this communication or the information in it, is 
strictly prohibited and may be unlawful. In this case, please notify the 
sender immediately and destroy the e-mail. Electronic communication via 
the Internet by e-mail may be manipulated and/or read by third parties, 
thus we exclude any liability whatsoever for this e-mail.
++

Re: Re: Build process for different environments

2005-09-16 Thread martin . kuhn
Specifying the name via finalName effects only the jar file in target 
directory. In the repository the file has not the finalName.
Also the file name doesn't include version information.








Mark Hobson [EMAIL PROTECTED]
15.09.2005 13:22
Bitte antworten an Maven Users List
 
An: Maven Users List users@maven.apache.org
Kopie: 
Thema:  Re: Re: Build process for different environments


On 15/09/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Thanks, it the meantime I had the same idea.
 
 Do you have an advice to achieve the right naming for the jar file? (for
 example  domain-prod.jar, domain-test.jar and so on.)

You can use the finalName element in profile/build to customise the
final jar name - although not too sure how this would work if the jar
was a dependency of another maven project.

I use profile resources in the same way for one of my projects,
although to avoid duplicates of all resources between profiles I keep
common resources in src/main/resources, and then profile-specific
resources in src/profile/xxx/resources.  This does have the drawback
of having respecify the two resource dirs (common and profile) in all
profiles, which led me to raise
http://jira.codehaus.org/browse/MNG-895.

Does anyone have any suggestions to allow inheritence of resource dirs
from within a profile for these scenarios?

Cheers,

Mark

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







++
Diese Nachricht ist vertraulich und ausschließlich für den/die Adressaten 
bestimmt. Sollten Sie nicht der beabsichtigte Adressat, einer seiner 
Mitarbeiter oder sein Empfangsbevollmächtigter sein, ist jede Form der 
Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des 
Inhalts dieser Nachricht unzulässig. In diesem Fall bitten wir, den 
Absender umgehend zu benachrichtigen und die Nachricht zu vernichten. 
Elektronisch versandte Nachrichten können durch Unberechtigte manipuliert 
und/oder gelesen werden, weshalb jegliche Haftung hierfür ausgeschlossen 
wird.
++
This communication is confidential and is intended solely for the 
addressee(s). If you are not the intended recipient(s), his/her assistant, 
or authorized recipient, any form of disclosure, reproduction, 
distribution or any use of this communication or the information in it, is 
strictly prohibited and may be unlawful. In this case, please notify the 
sender immediately and destroy the e-mail. Electronic communication via 
the Internet by e-mail may be manipulated and/or read by third parties, 
thus we exclude any liability whatsoever for this e-mail.
++

Re: Re: Build process for different environments

2005-09-15 Thread martin . kuhn
Thanks for answering,

when I understand it right there is a properties file with a different 
name in the build dependent on the enviroment value.

But when I load the properties file in java I use a defined name 
(config.properties instead of prod-config.properties, 
test-config.properties ...) 

So, where does the magic happens to copy for instance 
prod-config.properties to config.properties.

Also, it would be nice to get an archive with the name artifactid-prod.jar 
and so on. 


Martin






John Casey [EMAIL PROTECTED]
14.09.2005 16:15
Bitte antworten an Maven Users List
 
An: Maven Users List users@maven.apache.org
Kopie: 
Thema:  Re: Build process for different environments


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

First, you'd be well-served to use the svn trunk version for this type
of problem, since you'll have better help for the second thing, which is:

Use profiles.

Inside your pom.xml, you could add the following:

project
~  ...
~  profiles
~profile
~  idenv-test/id

~  activation
~property
~  nameenv/name
~  valuetest/value
~/property
~  /activation

~  build
~resources
~  resourceconfig-test.properties/resource
~/resources
~  /build
~/profile

~profile
~  idenv-prod/id

~  activation
~property
~  nameenv/name
~  valueproduction/value
~/property
~  /activation

~  build
~resources
~  resourceconfig-production.properties/resource
~/resources
~  /build
~/profile

~profile
~  idenv-dev/id

~  activation
~activeByDefaulttrue/activeByDefault
~  /activation

~  build
~resources
~  resourceconfig-development.properties/resource
~/resources
~  /build
~/profile
~  /profiles
/project

Then, your build will use the development properties by default.
However, if you specify a command-line option of '-Denv=test' you will
instead get the test properties...make sense?

HTH,

john

[EMAIL PROTECTED] wrote:
| Hi,
|
| I'm a maven newbie and I try out maven 2.0 alpha 3.
|
| My questions:
|
| I have a project to build / deploy for three different enviroments 
(test,
| integration, production).
|
| The difference beetween the bundles is only a properties file (there are
| three different files: config-test.properties,
| config-integration.properties ...).
| In the build process I want to copy the right config file to a file
with a
| common name (config.properties - the app should work with this config
| file)
|
| Is there a solution to handle this with maven 2 or do I have to write a
| plugin?
|
|
|
| TIA
|
| Regards,
|
| Martin
|
|
|
|
| ++
| Diese Nachricht ist vertraulich und ausschließlich für den/die 
Adressaten
| bestimmt. Sollten Sie nicht der beabsichtigte Adressat, einer seiner
| Mitarbeiter oder sein Empfangsbevollmächtigter sein, ist jede Form der
| Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des
| Inhalts dieser Nachricht unzulässig. In diesem Fall bitten wir, den
| Absender umgehend zu benachrichtigen und die Nachricht zu vernichten.
| Elektronisch versandte Nachrichten können durch Unberechtigte 
manipuliert
| und/oder gelesen werden, weshalb jegliche Haftung hierfür ausgeschlossen
| wird.
| ++
| This communication is confidential and is intended solely for the
| addressee(s). If you are not the intended recipient(s), his/her
assistant,
| or authorized recipient, any form of disclosure, reproduction,
| distribution or any use of this communication or the information in
it, is
| strictly prohibited and may be unlawful. In this case, please notify the
| sender immediately and destroy the e-mail. Electronic communication via
| the Internet by e-mail may be manipulated and/or read by third parties,
| thus we exclude any liability whatsoever for this e-mail.
| ++
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFDKDBoK3h2CZwO/4URAs6fAJ98p2x0rPic1EVYkCKeghc0vPzoPQCdEoOn
oAYxxC5DzJ9hHWPvsRxtNGI=
=KNob
-END PGP SIGNATURE-

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







++
Diese Nachricht ist vertraulich und ausschließlich für den/die Adressaten 
bestimmt. Sollten Sie nicht der beabsichtigte Adressat, einer seiner 
Mitarbeiter oder sein Empfangsbevollmächtigter sein, ist jede Form der 
Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des 
Inhalts dieser Nachricht unzulässig. In diesem Fall bitten wir, den 
Absender umgehend zu benachrichtigen und die Nachricht zu vernichten. 
Elektronisch versandte Nachrichten können durch Unberechtigte manipuliert 
und/oder gelesen werden, weshalb 

Re: Re: Build process for different environments

2005-09-15 Thread martin . kuhn
Thanks, it the meantime I had the same idea.

Do you have an advice to achieve the right naming for the jar file? (for 
example  domain-prod.jar, domain-test.jar and so on.)

TIA

Martin





Emmanuel Venisse [EMAIL PROTECTED]
15.09.2005 11:53
Bitte antworten an Maven Users List
 
An: Maven Users List users@maven.apache.org
Kopie: 
Thema:  Re: Build process for different environments




[EMAIL PROTECTED] wrote:
 Thanks for answering,
 
 when I understand it right there is a properties file with a different 
 name in the build dependent on the enviroment value.
 
 But when I load the properties file in java I use a defined name 
 (config.properties instead of prod-config.properties, 
 test-config.properties ...) 

if you want the same name file for all your environment, you need to use 
different resources directories

project
~  ...
~  profiles
~profile
~  idenv-test/id

~  activation
~property
~  nameenv/name
~  valuetest/value
~/property
~  /activation

~  build
~resources
~  resource
~directorysrc/main/resources-test/directory
~  /resource
~/resources
~  /build
~/profile

~profile
~  idenv-prod/id

~  activation
~property
~  nameenv/name
~  valueproduction/value
~/property
~  /activation

~  build
~resources
~  resource
~directorysrc/main/resources-prod/directory
~  /resource
~/resources
~  /build
~/profile

~profile
~  idenv-dev/id

~  activation
~activeByDefaulttrue/activeByDefault
~  /activation

~  build
~resources
~  resource
~directorysrc/main/resources-dev/directory
~  /resource
~/resources
~  /build
~/profile
~  /profiles
/project

Emmanuel

 
 So, where does the magic happens to copy for instance 
 prod-config.properties to config.properties.
 
 Also, it would be nice to get an archive with the name 
artifactid-prod.jar 
 and so on. 
 
 
 Martin
 
 
 
 
 
 
 John Casey [EMAIL PROTECTED]
 14.09.2005 16:15
 Bitte antworten an Maven Users List
 
 An: Maven Users List users@maven.apache.org
 Kopie: 
 Thema:  Re: Build process for different environments
 
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 First, you'd be well-served to use the svn trunk version for this type
 of problem, since you'll have better help for the second thing, which 
is:
 
 Use profiles.
 
 Inside your pom.xml, you could add the following:
 
 project
 ~  ...
 ~  profiles
 ~profile
 ~  idenv-test/id
 
 ~  activation
 ~property
 ~  nameenv/name
 ~  valuetest/value
 ~/property
 ~  /activation
 
 ~  build
 ~resources
 ~  resourceconfig-test.properties/resource
 ~/resources
 ~  /build
 ~/profile
 
 ~profile
 ~  idenv-prod/id
 
 ~  activation
 ~property
 ~  nameenv/name
 ~  valueproduction/value
 ~/property
 ~  /activation
 
 ~  build
 ~resources
 ~  resourceconfig-production.properties/resource
 ~/resources
 ~  /build
 ~/profile
 
 ~profile
 ~  idenv-dev/id
 
 ~  activation
 ~activeByDefaulttrue/activeByDefault
 ~  /activation
 
 ~  build
 ~resources
 ~  resourceconfig-development.properties/resource
 ~/resources
 ~  /build
 ~/profile
 ~  /profiles
 /project
 
 Then, your build will use the development properties by default.
 However, if you specify a command-line option of '-Denv=test' you will
 instead get the test properties...make sense?
 
 HTH,
 
 john
 
 [EMAIL PROTECTED] wrote:
 | Hi,
 |
 | I'm a maven newbie and I try out maven 2.0 alpha 3.
 |
 | My questions:
 |
 | I have a project to build / deploy for three different enviroments 
 (test,
 | integration, production).
 |
 | The difference beetween the bundles is only a properties file (there 
are
 | three different files: config-test.properties,
 | config-integration.properties ...).
 | In the build process I want to copy the right config file to a file
 with a
 | common name (config.properties - the app should work with this config
 | file)
 |
 | Is there a solution to handle this with maven 2 or do I have to write 
a
 | plugin?
 |
 |
 |
 | TIA
 |
 | Regards,
 |
 | Martin
 |
 |
 |
 |
 | ++
 | Diese Nachricht ist vertraulich und ausschließlich für den/die 
 Adressaten
 | bestimmt. Sollten Sie nicht der beabsichtigte Adressat, einer seiner
 | Mitarbeiter oder sein Empfangsbevollmächtigter sein, ist jede Form der
 | Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des
 | Inhalts dieser Nachricht unzulässig. In diesem Fall bitten wir, den
 | Absender umgehend zu benachrichtigen und die Nachricht zu vernichten.
 | Elektronisch versandte 

Build process for different environments

2005-09-14 Thread martin . kuhn
Hi,

I'm a maven newbie and I try out maven 2.0 alpha 3.

My questions:

I have a project to build / deploy for three different enviroments (test, 
integration, production).

The difference beetween the bundles is only a properties file (there are 
three different files: config-test.properties, 
config-integration.properties ...).
In the build process I want to copy the right config file to a file with a 
common name (config.properties - the app should work with this config 
file)

Is there a solution to handle this with maven 2 or do I have to write a 
plugin?



TIA

Regards,

Martin




++
Diese Nachricht ist vertraulich und ausschließlich für den/die Adressaten 
bestimmt. Sollten Sie nicht der beabsichtigte Adressat, einer seiner 
Mitarbeiter oder sein Empfangsbevollmächtigter sein, ist jede Form der 
Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des 
Inhalts dieser Nachricht unzulässig. In diesem Fall bitten wir, den 
Absender umgehend zu benachrichtigen und die Nachricht zu vernichten. 
Elektronisch versandte Nachrichten können durch Unberechtigte manipuliert 
und/oder gelesen werden, weshalb jegliche Haftung hierfür ausgeschlossen 
wird.
++
This communication is confidential and is intended solely for the 
addressee(s). If you are not the intended recipient(s), his/her assistant, 
or authorized recipient, any form of disclosure, reproduction, 
distribution or any use of this communication or the information in it, is 
strictly prohibited and may be unlawful. In this case, please notify the 
sender immediately and destroy the e-mail. Electronic communication via 
the Internet by e-mail may be manipulated and/or read by third parties, 
thus we exclude any liability whatsoever for this e-mail.
++

Re: Re: Build process for different environments

2005-09-14 Thread martin . kuhn
Hi Siegfried,

maybe you are right.

But I'm in the try out phase... 

When I really start with maven I don't want to set up the whole thing with 
a maven version which is not compatible to the new one.

Regards, 

Martin Kuhn






Siegfried Goeschl [EMAIL PROTECTED]
14.09.2005 14:47
Bitte antworten an Maven Users List
 
An: Maven Users List users@maven.apache.org
Kopie: 
Thema:  Re: Build process for different environments


Hi Martin,

I'm not sure if you should use maven 2.0 alpha 3 as maven newbie for 
production but this is a strictly personal opinion  :-)

For Maven 1.x you define a preGoal or postGoal and copy the file 
around

Cheers,

Siegfried Goeschl



[EMAIL PROTECTED] wrote:

Hi,

I'm a maven newbie and I try out maven 2.0 alpha 3.

My questions:

I have a project to build / deploy for three different enviroments (test, 

integration, production).

The difference beetween the bundles is only a properties file (there are 
three different files: config-test.properties, 
config-integration.properties ...).
In the build process I want to copy the right config file to a file with 
a 
common name (config.properties - the app should work with this config 
file)

Is there a solution to handle this with maven 2 or do I have to write a 
plugin?



TIA

Regards,

Martin




++
Diese Nachricht ist vertraulich und ausschließlich für den/die Adressaten 

bestimmt. Sollten Sie nicht der beabsichtigte Adressat, einer seiner 
Mitarbeiter oder sein Empfangsbevollmächtigter sein, ist jede Form der 
Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des 
Inhalts dieser Nachricht unzulässig. In diesem Fall bitten wir, den 
Absender umgehend zu benachrichtigen und die Nachricht zu vernichten. 
Elektronisch versandte Nachrichten können durch Unberechtigte manipuliert 

und/oder gelesen werden, weshalb jegliche Haftung hierfür ausgeschlossen 
wird.
++
This communication is confidential and is intended solely for the 
addressee(s). If you are not the intended recipient(s), his/her 
assistant, 
or authorized recipient, any form of disclosure, reproduction, 
distribution or any use of this communication or the information in it, 
is 
strictly prohibited and may be unlawful. In this case, please notify the 
sender immediately and destroy the e-mail. Electronic communication via 
the Internet by e-mail may be manipulated and/or read by third parties, 
thus we exclude any liability whatsoever for this e-mail.
++
 



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







++
Diese Nachricht ist vertraulich und ausschließlich für den/die Adressaten 
bestimmt. Sollten Sie nicht der beabsichtigte Adressat, einer seiner 
Mitarbeiter oder sein Empfangsbevollmächtigter sein, ist jede Form der 
Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des 
Inhalts dieser Nachricht unzulässig. In diesem Fall bitten wir, den 
Absender umgehend zu benachrichtigen und die Nachricht zu vernichten. 
Elektronisch versandte Nachrichten können durch Unberechtigte manipuliert 
und/oder gelesen werden, weshalb jegliche Haftung hierfür ausgeschlossen 
wird.
++
This communication is confidential and is intended solely for the 
addressee(s). If you are not the intended recipient(s), his/her assistant, 
or authorized recipient, any form of disclosure, reproduction, 
distribution or any use of this communication or the information in it, is 
strictly prohibited and may be unlawful. In this case, please notify the 
sender immediately and destroy the e-mail. Electronic communication via 
the Internet by e-mail may be manipulated and/or read by third parties, 
thus we exclude any liability whatsoever for this e-mail.
++