To manage your dependencies use tools like Maven, Gradle or Ant + Ivy. Those will make your life a whole lot easier, the dependencies will be managed and you will get also all transitive dependencies (the dependencies the framework you use depends on). This will save you a lot of searching around the internet.
With either of these tools you create a build file (ant and maven use XML, Gralde uses Groovy for that) and express your dependencies.
For example this build file for gradle, build.gradle
will create a jar and use all the dependencies.
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.springframework', name: 'spring-context', version: '3.2.5.RELEASE'
compile group: 'org.springframework', name: 'spring-context-support', version: '3.2.5.RELEASE'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
This gradle.build
will add the needed spring jars and the dependencies it needs for that.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…