Tuesday, October 25, 2011

Uploading jar into local maven

So here is the commands I did to upload my jars into local maven .m2 folder


mvn install:install-file -Dfile=CKFinder-2.1.jar -DgroupId=com.fm.ckfinder -DartifactId=core -Dversion=2.1.0 -Dpackaging=jar -DgeneratePom=true

mvn install:install-file -Dfile=CKFinderPlugin-FileEditor-2.1.jar -DgroupId=com.fm.ckfinder -DartifactId=file-editor -Dversion=2.1.0 -Dpackaging=jar -DgeneratePom=true

mvn install:install-file -Dfile=CKFinderPlugin-ImageResize-2.1.jar -DgroupId=com.fm.ckfinder -DartifactId=image-resize -Dversion=2.1.0 -Dpackaging=jar -DgeneratePom=true

Then I edited core-2.1.0.pom and added the dependencies




com.fm.ckfinder
file-editor
${project.version}


com.fm.ckfinder
image-resize
${project.version}



That's all!