Version control systems

Maven

Maven repositories can be used to store build artifacts and other binary files. In Deveo, you can create any number of Maven repositories in your projects.

The below is the list of resources to help you learn Maven:

Setting up

Setup credentials in your ~/.m2/settings.xml file. Password can also be encrypted with master password. See the documentation for more details.

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                      https://maven.apache.org/xsd/settings-1.0.0.xsd">
  <servers>
    <server>
      <id>app.deveo.com</id>
      <username>username</username>
      <password>password</password>
    </server>
  </servers>
</settings>

Configure repositories in your project's pom.xml file as required for resolving and deploying using the repository url:

<repositories>
  <repository>
    <id>app.deveo.com</id>
    <url>https://app.deveo.com/acme/projects/foo/repositories/maven/bar</url>
  </repository>
</repositories>

<distributionManagement>
  <repository>
    <id>app.deveo.com</id>
    <url>https://app.deveo.com/acme/projects/foo/repositories/maven/bar</url>
  </repository>
  <snapshotRepository>
    <id>app.deveo.com</id>
    <url>https://app.deveo.com/acme/projects/foo/repositories/maven/bar</url>
  </snapshotRepository>
</distributionManagement>

Importing and managing artifacts

Other existing artifacts can also be imported to Deveo with Maven Deploy Plugin:

cd /path/to/maven/repos

mvn deploy:deploy-file -Durl=https://app.deveo.com/acme/projects/foo/repositories/maven/bar \
                       -DrepositoryId=app.deveo.com \
                       -DpomFile=junit/junit/3.8.2/junit-3.8.2.pom  \
                       -Dfile=junit/junit/3.8.2/junit-3.8.2.jar

It is also possible to access and manage artifacts with curl:

Upload file:

curl -i -u user:password -T file.jar  https://app.deveo.com/acme/projects/foo/repositories/maven/bar/file.jar

Download file:

curl -i -u user:password https://app.deveo.com/acme/projects/foo/repositories/maven/bar/file.jar

Delete file/directory:

curl -i -u user:password -X DELETE https://app.deveo.com/acme/projects/foo/repositories/maven/bar/file.jar
Updated on: 23 March 2017