You are correct. I did some testing and research and it appears you can only
activate one profile at a time (in your pom). If you de-activate the
"integration-test" profile it works.

As far as I can tell, you can activate multiple profiles in your
~/.m2/settings.xml.

We should be able to move the integration-test settings into the main
<build> section if we can get Cargo to add the ability to skip its
activation.

http://jira.codehaus.org/browse/CARGO-481

For now, I'd recommend moving the properties from the sqlserver profile into
the <properties> section of your pom.

I've entered a bug in JIRA to figure out a better solution.

http://issues.appfuse.org/browse/APF-1167

Matt

2009/11/12 朱创宇 <zh...@cn-ds.com.cn>

>  Hi,
>    I create a basic JSF web project with 2.1-snapshot version.
>   The first I modify the pom.xml add blow lines between <id>  and
> <properties> in profile sqlserver
>             <activation>
>                 <activeByDefault>true</activeByDefault>
>             </activation>
>   The second I modify the jdbc.url and jdbc.username and jdbc.password to
> fit my DB system.
>   Then I run mvn command at project folder. It report error as below:
>
>    ERROR [main] SchemaExport.execute(274) | schema export unsuccessful
>    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications
> link failure
>
>    But I run mvn -Psqlserver   command, it goes well.
>    It seems that <activation> tag do not activate?
>
>     Regards,
>
> Chuangyu.
>

Reply via email to