h1. Building JVending h2. Check out the source


h2. Set up mvn repo

Install the jaxb and jaxme libraries into your local maven repo:
cd jvending/scripts
./install.sh
cd ..
h2. Build JVending Run:
  mvn install
This will build jvending. You will find the WAR file that you need to deploy to tomcat or jetty at provisioning-portal/target/provisioning.war h1. Deploying JVending Set up a tomcat server and place the war file in the tomcat/webapps directory. Go to http://localhost:8080/provisioning to verify the installation. You should see "Welcome to a J2EE Content Provisioning Portal". h1. Stocking JVending with Android Apps JVending requires that you package your content into a provisioning archive. The following would be a valid provisioning.xml file for stocking of OMA OTA content.The descriptor-file references the dd2 file relative to the root of the jar (you may also use an http or https URI).



   
      
         http://code.google.com/pg/jvending:1
      
      
         APPLICATION
      
      
         /sample.dd2
      
      
         
            Sample game
         
         
            My description to display
         
         
            /app.png
         
      
   

The sample.dd2 contains the relative URI of a deliverable object, which in this case references an Android application. The objectURI/server attribute should reference the apk file relative to the root of the par file.


   
      
         
            Sam Application Manager
         
         2226
         application/x-android
         cid:android@jvending.org
         
            sam-1.0.apk
         
      
   

The basic structure of the par file (this is just a zipped archive) is
+ app.png
+ sam-1.0.apk
+ sam-1.0.dd2
+ META-INF/provisioning.xml
Package this into say, sam.par and submit it to the JVending Server. You should see the content appear under the catalog view. h2. Stocking Android Content If you want to stock Android content and have it be compatible with the SAM application manager on an Android client, you will need to include more information in the provisioning.xml file. Note that Android apks are delivered over OMA OTA, so will also need to include a dd2 file.



    
        
            google-android:apidemos
        
        1.5_r3
        
            APPLICATION
        
        
            /apidemos.dd2
        
        
            
                Android API Demos
            
            
                A demonstration of many of the Android APIs and most of them even work.
            
            
                /android.png
            
        
        
            Google
            http://google.com
            
        
        All Rights Reserved
        
            Price
            Free
        
        
            Category
            Developer
        
        
            Short Description
            A demonstration of many of the Android APIs.