Our pom.xml for osb service refers to the maven settings.xml to get the server details and credentials for deployment. pom.xml has below entries:
<plugins>
<plugin>
<groupId>com.oracle.servicebus.plugin</groupId>
<artifactId>oracle-servicebus-plugin</artifactId>
<version>12.2.1-4-0</version>
<extensions>true</extensions>
<configuration>
<oracleHome>${oracleHome}</oracleHome>
<oracleServerUrl>${oracleServerUrl}</oracleServerUrl>
<oracleUsername>${oracleUsername}</oracleUsername>
<oraclePassword>${oraclePassword}</oraclePassword>
</configuration>
</plugin>
</plugins>
settings.xml has got below entries:
<profile>
<id>server-devb</id>
<properties>
<oracleHome>/oracle/apps/fusion/devb_soa_suite_12_2_1_4_0</oracleHome>
<oracleServerUrl>http://esb-soa-server1-devb:7001</oracleServerUrl>
<oracleSoaServerUrl>http://esb-soa-server1-devb:8001</oracleSoaServerUrl>
<oracleServerT3>t3://esb-soa-server1-devb:7001</oracleServerT3>
<oracleUsername>weblogic_buildserver</oracleUsername>
<oraclePassword>{WhEa5AhivzUHwQHIv7oQHsbBjcA3e5jKuMpjTzPTbkZevhD9UUjr34NEY5ROPgEI}
</oraclePassword>
</properties>
</profile>
If we keep the password in settings.xml as plaintext, the deployment works fine. but if we encrypt it, it fails in user authentication while deployment.
we followed this guide for maven password encryption - https://maven.apache.org/guides/mini/guide-encryption.html#introduction