> Each one of those profiles has its repository.xml file, and I would like
> that when I run mvn package -P "one of those profiles" the correct
> repository.xml file went to final packaged war.

Generally, you would do this with a single repository.xml file and use
filtering to set the environment-specific values in it. This is
detailed in "Better Builds with Maven" and other documentation online.

Alternatively you might include all the xml files and somehow pick the
proper one to load at runtime. This is considered a superior approach
as it does not result in environment-specific WAR files.

Wayne

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

Reply via email to