/ Published in: Groovy
The base MavenDependency Script
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
class MavenDependency { MavenDependencyHelper.getInstance().require(params) } MavenDependencyHelper.getInstance(classLoader) } } private classLoader } } } MavenDependencyHelper require(params) { mvn.dependencies(filesetId:"artifact_${params.groupId}_${params.artifactId}_${params.version}") { dependency(params) } ant.fileScanner { fileset(refid:"artifact_${params.groupId}_${params.artifactId}_${params.version}") }.each { classLoader.addClasspath(it.toString()) } } }