Author: alessio.soldano(a)jboss.com
Date: 2011-11-11 13:23:59 -0500 (Fri, 11 Nov 2011)
New Revision: 15241
Modified:
stack/cxf/trunk/modules/testsuite/pom.xml
Log:
[AS7-2520] Default to trying passing admin/admin credential for management console access
when no username/pwd is provided for the jbossws testsuite run
Modified: stack/cxf/trunk/modules/testsuite/pom.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/pom.xml 2011-11-11 18:22:48 UTC (rev 15240)
+++ stack/cxf/trunk/modules/testsuite/pom.xml 2011-11-11 18:23:59 UTC (rev 15241)
@@ -484,7 +484,7 @@
<surefire.jvm.args>${surefire.security.args}
${surefire.memory.args}</surefire.jvm.args>
</properties>
</profile>
-
+
<!--
Name: management
Descr: Enable remote jmx management (useful to attach JConsole, for instance)
@@ -1265,7 +1265,7 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
- <argLine>${surefire.jvm.args} ${surefire.jvm.management.args}
-Djava.endorsed.dirs=${project.build.directory}/endorsed</argLine>
+ <argLine>${surefire.jvm.args} ${surefire.jvm.management.args}
${surefire.default-mgmt-serurity.args}
-Djava.endorsed.dirs=${project.build.directory}/endorsed</argLine>
<!-- TODO: replace with maven dependencies -->
<additionalClasspathElements>
<!-- Lib below required just for jaxrpc tests; listed here to prevent
CXF stack from depending on Native stack -->
@@ -1384,6 +1384,29 @@
<jboss.server.instance>default</jboss.server.instance>
</properties>
</profile>
+
+ <profile>
+ <id>default-mgmt-security</id>
+ <activation>
+ <property>
+ <name>!jbossws.deployer.authentication.username</name>
+ </property>
+ </activation>
+ <properties>
+
<surefire.default-mgmt-serurity.args>-Djbossws.deployer.authentication.username=admin
-Djbossws.deployer.authentication.password=admin</surefire.default-mgmt-serurity.args>
+ </properties>
+ </profile>
+ <profile>
+ <id>custom-mgmt-security</id>
+ <activation>
+ <property>
+ <name>jbossws.deployer.authentication.username</name>
+ </property>
+ </activation>
+ <properties>
+ <surefire.default-mgmt-serurity.args>
</surefire.default-mgmt-serurity.args>
+ </properties>
+ </profile>
</profiles>
</project>
Show replies by date