Monday, June 9, 2008

Maven Local Repository

I worked towards the creation of a maven repository. So far after reading much material on the web, it looked like a simple deal. However looks like I've hit a wall for now. I created a repository in the existing project and tried to deploy a sample junit jar to the folder with the proper structure. It would not go citing authentication failure. Well it figures that maven is supposed to pick up authentication info from the settings.xml file. So I put it in there but it still ignores it. Tried a deploy it to my local machine

D:\>mvn deploy:deploy-file -DgroupId=junit -DartifactId=junit -Dversion=3.8.1 -D
generatePom=true -Dpackaging=jar -Dfile=junit-3.8.1.jar -DrepositoryId=local-phg
rid-repository -Durl=file://phgrid.svn.sourceforge.net/viewvc/phgrid/repository
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'deploy'.
[INFO] -------------------------------------------------------------------------
---
[INFO] Building Maven Default Project
[INFO] task-segment: [deploy:deploy-file] (aggregator-style)
[INFO] -------------------------------------------------------------------------
---
[INFO] [deploy:deploy-file]
Uploading: file://phgrid.svn.sourceforge.net/viewvc/phgrid/repository/junit/juni
t/3.8.1/junit-3.8.1.jar
118K uploaded
[INFO] Retrieving previous metadata from local-phgrid-repository
[INFO] Uploading repository metadata for: 'artifact junit:junit'
[INFO] Retrieving previous metadata from local-phgrid-repository
[INFO] Uploading project information for junit 3.8.1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Mon Jun 09 16:53:21 EDT 2008
[INFO] Final Memory: 2M/4M
[INFO] ------------------------------------------------------------------------

it forms perfectly. I am sure there's some very small thing I am missing. Also need to get with Dan to set up my machine to start testing the grid nodes for messaging. Maybe will ping Peter also if I dont see any light till tomorrow afternoon.

No comments: