-
Notifications
You must be signed in to change notification settings - Fork 30
AddonDotMaven
DotMaven is a WebDAV service that Aprox can be configured to expose. This service allows the user to browse or access artifacts in storage (though it is read-only).
The add-on also generates settings.xml
files for each Repository, DeployPoint, and Group on the system. If the settings reference a DeployPoint or a Group that contains a DeployPoint in its membership, it will include an active profile to inject a property that overrides the normal location used by the maven-deploy-plugin for deployment, diverting instead to the appropriate Aprox location. Generated settings files also make an effort to give the user some local-repository isolation, referencing locations in ${user.home}/.m2/repo-<type>-<name>
.
For example, if you're helping someone debug a failing build and want to use ONLY the artifacts they can see, you might use something like this:
[temp/project]$ mvn -s /Volues/mavdav/settings/repositories/settings-somerepo.xml clean install
DotMaven exposes the URL path /mavdav
. So, for an Aprox WAR instance on your localhost, you might use the URL: http://localhost:8080/aprox/mavdav
. For the same service launched via Vert.x standalone variant, the URL would be: http://localhost:8080/mavdav
.
Windows and OS X both provide the ability to mount a WebDAV filesystem by default. On linux, there's the davfs
package. When you attempt to connect, you will be asked for credentials. These are not currently used, so anything you enter will be accepted.
If you use DotMaven in conjunction with Autoprox, accessing the settings.xml
for a repository, group, or deploy-point that doesn't exist yet will cause it to be created on the fly by Autoprox.