แสดงบทความที่มีป้ายกำกับ deploy แสดงบทความทั้งหมด
แสดงบทความที่มีป้ายกำกับ deploy แสดงบทความทั้งหมด
 [ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for o rg.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to internal (http://localhost:8081/artifactory/libs-release-local): Failed to transfer file: http://localhost:8081/artifactory/libs-release-local/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom. Return code is: 503 , ReasonPhrase:Service Unavailable. -> [Help 1]  


settings.xml
 <settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemalocation="http://maven.apache.org/POM/4.0.0   
            http://maven.apache.org/xsd/settings-1.0.0.xsd">  
   
 <proxies>  
    <proxy>  
    <id>optional</id>  
    <active>true</active>  
    <protocol>http</protocol>  
     <username>proxy_user</username>  
    <password>proxy_password</password>  
    <host>proxy_name</host>  
    <port>8080</port>  
    </proxy>  
 </proxies>    
   
 <mirrors>  
   <mirror>  
    <id>internal</id>  
    <url>http://localhost:8081/artifactory/libs-release-local</url>  
    <mirrorof>*</mirrorof>  
   </mirror>  
 </mirrors>  
 </settings>   

The problem is with your proxy settings. The current settings will cause all requests to localhost to go through the proxy which will not be able to connect with localhost and hence returns a 503.

To solve this issue add the following to the proxy settings in the settings.xml file:

 <nonproxyhosts>localhost</nonproxyhosts>  

How to create WebSphere share library

Prepare library
  1. Export library class to Jar file
  2. Ftp library file to server
Login to WebSphere console
  1. From Environment menu, choose Share Library
  2. Choose scope
  3. WebSphere will Shared Libraries Screen, then click New
  4. Input Name, Description and Class Path of jar file and click OK
  5. Save configure to server
Set Shared Library to Application
  1. Form Application Menu, choose Enterprise Applications
  2. Select Application for assign Share Library
  3. In Application Configuration at References topic, click Shared library references 
  4. Select Application and click Reference shared libraries
  5. WebSphere will show Library Reference, then click Add
  6. Select Library and click OK
  7. Save configure to server and Restart Application or Restart Server 
  8. Application will include share library, finish
top