Ok here is a better explanation of what I did.
I have a ubuntu linux box running apache 1.3
Create directorys /var/mvn
Create a mvn user and group with home dir of /var/mvn.
chown -R mvn:mvn /var/mvn
Edit /etc/mime.types add md5 sha1 to the text/plain and add the following line
text/xml pom
then created a linked /var/mvn with /var/www/maven2
Ok thats the server configured.
On my laptop i added the following to my settings.xml
<servers>
....
<server>
<id>internal</id>
<username>mvn</username>
<password>mvn</password>
</server>
....
</servers>
<profiles>
...
<profile>
<id>internal</id>
<repositories>
<repository>
<id>internal</id>
<name>Internal</name>
<url>http://192.168.100.20/maven2/</url>
</repository>
</repositories>
</profile>
...
</profiles>
<settings>
...
<activeProfiles>
<activeProfile>internal</activeProfile>
</activeProfiles
...
</settings>
So say i want to deploy a jar, i created before I switched to maven,
called foobar.jar i would use the following command.
mvn -e deploy:deploy-file -DgroupId=com.benshort -DartifactId=foobar
-Dversion=1.0 -Dpackaging=jar -Dfile=foobar.jar
-DrepositoryId=internal -Durl=scp://192.168.100.20/var/mvn/
If i want to then use this lib in another project i add the follwoing
to my pom..
<dependency>
<groupId>com.benshort</groupId>
<artifactId>foobar</artifactId>
<version>1.0</version>
<scope>compile</scope>
</dependency>
Hope this is of help to someone. :)
Ben
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]