s*****w 发帖数: 1527 | 1 以前c++是这样,source file add include "newLib.h",
add to lib path.
javac compile一个简单程序容易,但如果用 3rd party lib怎么办?
如果intellij, 网上说
com.sample
sample
1.0
system
${project.basedir}/src/main/resources/Name_Your_JAR.jar
systemPath>
我没理解groupId, artifactId, scope怎么填写?
谢谢! | p***o 发帖数: 1252 | 2 你得先看看maven或者gradle怎么用。不过IntelliJ一般都是推荐gradle,你这
网站给个maven配置也不解释清楚看起来很不靠谱。
具体那几项怎么填,3rd party lib的网站一般都有说明,没有的你也就别用了。
【在 s*****w 的大作中提到】 : 以前c++是这样,source file add include "newLib.h", : add to lib path. : javac compile一个简单程序容易,但如果用 3rd party lib怎么办? : 如果intellij, 网上说 : : com.sample : sample : 1.0 : system : ${project.basedir}/src/main/resources/Name_Your_JAR.jar
| S*******e 发帖数: 525 | 3 Search the "maven" and some terms related to the library. For example: "
maven math3", You are very likely to find something like this:
org.apache.commons » commons-math3 - Maven Repository
https://mvnrepository.com/artifact/org.apache.commons/commons-math3
then click the link, choose the version you want (most time the newest one),
you'll find the information on maven, gradle, etc. Click the information
box, you'll see it is already copied to your clipboard (Copied to clipboard!
), then paste it to your pom.xml's dependency section...you are good to go. | s*****w 发帖数: 1527 | |
|