在一個彈簧項目中,我擁有了正確指定版本的所有需要的jar。我們必須使用Maven,但Internet防火牆不允許我們下載。所以我的查詢是我可以手動創建文件夾結構.m2/repository文件夾按照推薦maven,並把罐子?我試過這個,但是maven沒有從這裏拿到罐子。
A AtrifactDescriptorException:Failed to read artifact....
出來。手動maven資料庫添加
是否有可能以某種方式解決問題?
在一個彈簧項目中,我擁有了正確指定版本的所有需要的jar。我們必須使用Maven,但Internet防火牆不允許我們下載。所以我的查詢是我可以手動創建文件夾結構.m2/repository文件夾按照推薦maven,並把罐子?我試過這個,但是maven沒有從這裏拿到罐子。
A AtrifactDescriptorException:Failed to read artifact....
出來。手動maven資料庫添加
是否有可能以某種方式解決問題?
下載
<dependency>
<groupId>x.y</groupId>
<artifactId>test</artifactId>
<version>1.1.1</version>
</dependency>
,那麼你必須把測試1.1.1.jar這裏
.m2/repository
/x
/y
/test
/1.1.1
test-1.1.1.jar
你肯定這一點。我已經做到了。但它不工作。 – mukund
我在發佈之前對其進行了測試。有效。檢查settings.xml localRepository也許它指向其他文件夾 –
@mukund也做一個're-index'回購確保所有的手動罐子被重新讀取 –
此錯誤是由於,您沒有.me目錄中的jar或jar損壞。如果你想在項目中使用Maven,請打開防火牆,並允許下載它會幫助你在未來,你將需要許多罐子如果你在pom.xml中這種相關性從行家回購
指定的maven settings.xml文件代理配置,它會自動下載。
<proxy> <id>optional</id> <active>true</active> <protocol>http</protocol> <username>proxyuser</username> <password>proxypass</password> <host>proxy.host.net</host> <port>80</port> <nonProxyHosts>local.net|some.host.com</nonProxyHosts> </proxy>
即使你手動放置jar文件,它會查找* * m2位置上的.pom文件。 – Muthu
你可以嘗試http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html,讓我知道,如果它可以幫助 – rvini