5
A
回答
1
你可以閱讀有關maven範圍,因爲它是相同的事情。 Difference between maven scope compile and provided for JAR packaging。所以據我所知,如果你在你的項目中使用這個lib,你也應該把這些依賴添加到你的project.clj中,和lib本身一起(仍然可以被誤認爲是)
還有一些其他的您可以使用的示波器:https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope
1
這實質上是一個maven概念。 Provided
意味着給定的依賴關係已經打包(或如果你願意的話)提供給環境。該jar是編譯所必需的,但不會與應用程序打包在一起。這些也不是傳遞依賴。
要了解有關傳遞依賴性的更多信息,請參閱here。
相關問題
- 1. jq'。'是什麼意思?做?
- 2. 是什麼意思:是什麼意思?
- 3. AngularJS指令 - 「scope:{}」是什麼意思?
- 4. 在Class :: XSAccessor中,'invalid instance method invocant:no hash ref provided'是什麼意思?
- 5. 「provided-> default」在sbt構建文件中是什麼意思?
- 6. -D_XOPEN_SOURCE做什麼/意思?
- 7. 「?」是什麼意思?
- 8. $$ $$是什麼意思?
- 9. 什麼是「||」意思?
- 10. 「\\。\」,「\ ?? \」,「\\?\」,「\\」是什麼意思?
- 11. 「=」是什麼意思
- 12. &**是什麼意思?
- 13. 是什麼意思?
- 14. 「_」是什麼意思?
- 15. 什麼是:!:意思?
- 16. || =是什麼意思?
- 17. %%是什麼意思?
- 18. =是什麼意思?
- 19. %{}是什麼意思?
- 20. + =是什麼意思?
- 21. '#'是什麼意思?
- 22. /([^.]*)\.(.*)/是什麼意思?
- 23. %*是什麼意思?
- 24. &@是什麼意思?
- 25. GNU做錯誤58是什麼意思?
- 26. NHibernate.AssertionFailure做transaction.Commit()是什麼意思?
- 27. 什麼是stringWithFormat:@「%@ - 1」是什麼意思?
- 28. 這是什麼`_time_independent_equals`是什麼意思?
- 29. 是什麼??('')。?。?`是什麼意思?
- 30. 什麼是PPC,這是什麼意思?
您可以閱讀有關maven範圍的內容,因爲它們是相同的東西。 http://stackoverflow.com/questions/6646959/difference-between-maven-scope-compile-and-provided-for-jar-packaging,據我所知,如果你在你的項目中使用這個lib,你應該還要將這些依賴關係添加到您的project.clj中,以及lib本身(仍然可以被誤解) – leetwinski
還有一些其他範圍可以使用:https://maven.apache.org/guides/introduction/introduction-to -dependency-mechanism.html#Dependency_Scope – leetwinski
@leetwinski謝謝,現在看來很清楚。順便說一句,是否有任何理由使用':scope「test」'而不是':test' profile? – OlegTheCat