我想在我的settings.xml中使用加密的密碼。我在我的pom.xml連接到數據庫插件,全光照SQL-Maven的插件:Maven:從pom.xml中的settings.xml中讀取加密的密碼
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sql-maven-plugin</artifactId>
<version>1.4</version>
<dependencies>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.5.0</version>
</dependency>
</dependencies>
<configuration>
<driver>oracle.jdbc.driver.OracleDriver</driver>
<url>jdbc:oracle:thin:@ip.com:1521:SID</url>
<username>someUser</username>
<password>{JucQpWS78Q0HW+3ZS/FCCGHQpwbJ8ySl2Io/ILJqf88=}</password>
</configuration>
<executions>
<execution>
<id>update-configuration</id>
<phase>package</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<autocommit>false</autocommit>
<srcFiles>
<srcFile>src/main/sql/update_sim_configuration.sql</srcFile>
</srcFiles>
</configuration>
</execution>
</executions>
</plugin>
,如果我把密碼在我的pom.xml明文這是工作好了,我想讀從我的settings.xml這個密碼,該密碼是加密過程是這樣:
mvn -ep the_password
我在我的settings.xml
...
<server>
<id>rms13-db-dev</id>
<username>user</username>
<password>{JucQpWS78Q0HW+3ZS/FCCGHQpwbJ8ySl2Io/ILJqf88=}</password>
</server>
...
我想「讀」解碼以某種方式「密碼」從'rms13-db-dev',我怎麼能a請點這個?或者如果你有一個替代版本來實現這一點。