常用Maven Repository
說明:訪問Oracle Repository需要賬號,配置步驟如下:
- 在.m2下創建文件settings-security.xml來保存master密碼
使用下面的命令生成master密碼:
mvn -encrypt-master-password <any_master_password>
或
mvn -emp <any_master_password>
settings-security.xml內容如下:
<settingsSecurity>
<master>{By8wW7YcTxAHof0MF4Z3wPKboywhGJvxHD9m0NvHA2U=}</master>
</settingsSecurity>
- 配置settings.xml
使用下面命令加密用戶密碼:
mvn -encrypt-password <any_master_password>
或
mvn -ep <any_master_password>
配置用戶和repository:
<servers>
<server>
<id>maven.oracle.com</id>
<username>[email protected]</username>
<password>{pnwmhVnzdM8H3UAneUKLmaHGZCoaprbMQ/Ac5UktvsM=}</password>
<configuration>
<basicAuthScope>
<host>ANY</host>
<port>ANY</port>
<realm>OAM 11g</realm>
</basicAuthScope>
<httpConfiguration>
<all>
<params>
<property>
<name>http.protocol.allow-circular-redirects</name>
<value>%b,true</value>
</property>
</params>
</all>
</httpConfiguration>
</configuration>
</server>
</servers>
<profiles>
<profile>
<id>main</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>maven.oracle.com</id>
<url>https://maven.oracle.com</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
</profile>
</profiles>
- 配置POM依賴
<dependency>
<groupId>com.oracle.jdbc</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0.4</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
參考文檔:
Get Oracle JDBC drivers and UCP from Oracle Maven Repository
Configuring the Oracle Maven Repository
Password Encryption
Oracle Database JDBC driver
安裝Jenkins時顯示“該Jenkins實例似乎已離線”解決辦法
輸入以下網址:
http://localhost:8080/jenkins/pluginManager/advanced
將升級站點改爲http協議:
http://updates.jenkins.io/update-center.json
然後重新啓動Jenkins即可。
Tomcat 9: org.apache.catalina.webresources.Cache.getResource Unable to add the resource to the cache for web application because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
cacheMaxSize默認爲10M,要增大配置,在conf\context.xml中添加
<Resources cachingAllowed="true" cacheMaxSize="100000"/>
Sonar導入備份數據後不能顯示
Sonar使用了Elasticsearch,刪除$SQ_HOME/data/es5目錄,重啓sonar
資源網站