
add myself jar to repository by using m2eclipse(a maven plugin for Eclipse)
Result :
Installing d:\Joseph.jar to C:\Users\Joseph\.m2\repository\org\joseph\joseph_test\1.1\joseph_test-1.1.jar
be careful : packaging=jar , it is very important ! otherwise , you will fail on it
or in command mode :
D:\>mvn install:install-file -Dfile=D:\PassiveDataAgent.jar -DgroupId=com.mycompany.taipei -DartifactId=PassiveDA -Dversion=1.0 -Dpackaging=jar
Then , you can get this jar in your project
in POM :
...
<dependency >
<groupId>com.mycompany.taipei </groupId>
<artifactId>PassiveDA </artifactId>
<version>1.0 </version>
</dependency>
...