初學者新增jar包或pom檔案資源
阿新 • • 發佈:2019-01-23
初學者新增jar包或maven工程pom檔案依賴總是不知道從哪獲得,浪費大量時間,下面告訴大家一個資源庫:
根據需要搜尋自己需要的資源:
我們選擇右側需要的不同檔案型別即可
下面介紹jar包和pom依賴的引入方式
關於jar包引入:
選擇專案----->build path ----->Configure build path 點選Add External JARs...選擇我們專案需要依賴的jar包 最後apply ok即可。
關於新增pom檔案依賴【注意要將依賴包在一對dependency標籤中】:
<dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.activemq</groupId> <artifactId>activemq-all</artifactId> <version>5.15.0</version> </dependency> </dependencies>