fallback-assembly
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>com.cloudbees.sdk</groupId>
<artifactId>fallback-assembly</artifactId>
<version>1.5.2</version>
</dependency><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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.cloudbees.sdk</groupId>
<artifactId>bees-cli-bootstrap-parent</artifactId>
<version>1.5.2</version>
<relativePath>..</relativePath>
</parent>
<artifactId>fallback-assembly</artifactId>
<name>CloudBees SDK fallback bees CLI assembly</name>
<description>
Creates a zip file that contains the Maven repository image of everything
necessary to boot bees-driver without a working network connection.
This is so that at least "bees init" command would succeed without network.
Once the proxy gets properly configured, bees SDK should update itself,
so we don't really have to bundle the latest version.
</description>
<dependencies>
<dependency>
<!-- we just need to bundle some version so that at least "bees init" would work from the get-go -->
<groupId>com.cloudbees.sdk</groupId>
<artifactId>bees-boot2</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact-manager</artifactId>
<version>2.2.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<goals>
<goal>exec</goal><!-- can't use java because it invokes lifecycle up to validate -->
</goals>
<phase>test</phase><!-- after test compilation but before package -->
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath />
<argument>com.cloudbees.sdk.boot2.Assembler</argument>
<argument>${project.basedir}/target/repository</argument>
<!-- the version of bees-driver to bundle -->
<argument>1.3.6</argument>
</arguments>
<classpathScope>test</classpathScope>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<!--
this creates a zip that includes all the jars that 2nd stage bootstrap needs.
-->
<goals>
<goal>single</goal>
</goals>
<phase>package</phase>
<configuration>
<descriptor>assembly.xml</descriptor>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>