You need to have some sort of webserver in your machine to serve from a directory. Using MAMP will probably the fastest way to get started. Point your webserver to the cask-marketplace directory.
cd
into the cask-marketplace repositorycd packager
mvn clean package
cd ..
java -cp packager/target/*:packager/target/lib/* co.cask.marketplace.Tool build
java -cp .\packager\target\*;.\packager\target\lib\* co.cask.marketplace.Tool build
python -m SimpleHTTPServer
- Launch MAMP. If this is the first time you are launching MAMP, make sure you check Never Open This Dialog Again, and choose launch MAMP (not MAMP PRO).
- Open Preferences
- Go to Ports Tab
- Change Apache Port to 80
- Go to Web Server Tab
- Make sure Apache is selected
- Click on the Folder icon with 3 dots next to Document Root.
- Navigate your cask-marketplace directory, and click Select
- Click OK
- Click Start Server
Navigate to
<cdap sdk directory>/ui/server/config/cdap-ui-config.json
Modify the market property
"market": {
"path": "http://localhost",
"version": ""
}
Restart CDAP UI
Modify cdap-site.xml
<property>
<name>market.base.url</name>
<value>http://localhost</value>
<description>
Local Cask Market base url
</description>
</property>
Restart CDAP SDK