What's new? | Help | Directory | Sign in
Google
                
Search
for
Updated Apr 04, 2008 by shane.isbell
DeployingJV  
Deploying to a JVending Server

Deploying to a JVending Server

You can use the par plugin to package and deploy your Android application to a JVending server [http://code.google.com/p/jvending/wiki/StockContent] as part of your release process. Place your images, dd2 descriptors into in the src\main\resources directory and your provisioning.xml file in the src\main\resources\META-INF directory. Masa will grab your android:apk dependencies and place it in the par file.

The following will deploy ('mvn deploy'), by default to a local instance of JV http://localhost:8080/provisioning]]

<?xml version="1.0" encoding="UTF-8"?>
<project 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>
    <groupId>org.jvending</groupId>
    <artifactId>sam</artifactId>
    <version>1.0</version>
    <packaging>android:par</packaging>
    <name>test</name>
    <dependencies>
        <dependency>
            <groupId>org.jvending</groupId>
            <artifactId>jvending-manager</artifactId>
            <version>1.0.1</version>
            <type>android:apk</type>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.jvending.masa.plugins</groupId>
                <artifactId>maven-dx-plugin</artifactId>
                <extensions>true</extensions>
            </plugin>
        </plugins>
    </build>
</project>

If you need to change the location of the JV server add the following plugin, substituting in the correct serverURI.

<plugin>
    <groupId>org.jvending.masa.plugins</groupId>
    <artifactId>maven-par-plugin</artifactId>
    <configuration>
        <serverURI>http://<xx.xx.xx.xx>:<xxxx>/provisioning</serverURI>
    </configuration>
</plugin>

Sign in to add a comment