How to use external artifact reference
The XL Deploy allows you to generate an XL Deploy deployment package with CIs that reference artifacts in external store (e.g. in maven repository or JCR repository). This sample describes a package that contains:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.xebialabs.maven.demo</groupId> <artifactId>depl-7621</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>pom</packaging> <properties> <deployit.username>admin</deployit.username> <deployit.password>admin</deployit.password> <deployit.server>localhost</deployit.server> <deployit.port>4516</deployit.port> <deployit.container>Environments/was85nd</deployit.container> </properties> <build> <plugins> <plugin> <groupId>com.xebialabs.xldeploy</groupId> <artifactId>xldeploy-maven-plugin</artifactId> <version>5.0.0-SNAPSHOT</version> <extensions>true</extensions> <configuration> <username>${deployit.username}</username> <password>${deployit.password}</password> <serverAddress>${deployit.server}</serverAddress> <port>${deployit.port}</port> <deletePreviouslyDeployedDar>true</deletePreviouslyDeployedDar> <timestampedVersion>false</timestampedVersion> <cancelTaskOnError>false</cancelTaskOnError> <deployables> <was.War name="petclinic-war"> <contextRoot>petclinic</contextRoot> <fileUri>maven:com.xebialabs.deployit.demo.petclinic:PetClinic:war:1.0</fileUri> <tags> <value>server1</value> </tags> </was.War> </deployables> <environmentId>${deployit.container}</environmentId> </configuration> </plugin> </plugins> </build> </project>