settings.xml で暗号化されたパスワードを使用しようとしています。私はpom.xmlにsql-maven-pluginを使用してデータベースに接続するプラグインを持っています:
<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」から「パスワード」を何らかの方法で「読み取り」デコードしたいのですが、どうすればこれを達成できますか? または、これを実現するための代替バージョンがある場合。