Reputation: 315
When I Execute the below command:
mvn -X validate -Pks-db,oracle -Dks.impex.url=jdbc:oracle:thin:@kuali.localdomain:1521:DB11G -Dks.impex.dba.password=Oracle123
I get the below exception:
Failed to execute goal org.codehaus.mojo:sql-maven-plugin:1.4:execute (validate-dba-config) on project ks-bundled-db: ORA-01017: invalid username/password; logon denied -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:sql-maven-plugin:1.4:execute (validate-dba-config) on project ks-bundled-db: ORA-01017: invalid username/password; logon denied
Upvotes: 3
Views: 1931
Reputation: 191285
According to this document, you should be supplying the user name as well; their example is:
mvn validate -Pks-db,oracle -Dks.impex.url=jdbc:oracle:thin:@localhost:1521:XE -Dks.impex.dba.username="SYS AS SYSDBA" -Dks.impex.dba.password=<SYS password>
So you need to add to your command:
-Dks.impex.dba.username="SYS AS SYSDBA"
It isn't clear what you have set in your properties file or which value is needed/used; but it may be picking up your KSBUNDLED username, or the legacy MASTER name.
Upvotes: 3