Deploy Java Project via GIT/SVN with Maven
Maven is a build automation and software comprehension tool that is primarily used for Java programming.
With Maven you can add any public or private project to Cloudjiffy and build them inside the cloud. Cloudjiffy takes my application's source code directly from my version control system (SVN or Git) repository using the link, provided by me: http, https or svn for SVN, and git, http, https or ftp for Git. It is fast and uses little bandwidth: efficient with the cloud and can keep using the computer without any extra load, while my project can stay unavailable for outsiders within private Git/SVN repository.
To try it out,you can use our demo "Hello World" app. The corresponding SVN project is located at code.google.com - just visit this page and get the path to the repository from there for the Maven node in Cloudjiffy. If you prefer to work with Git, you may refer to this page and use the presented project for testing. We provide read-only projects as an example, so you don't need to input any login/password.
And now let's see in detail how to add private or public Java projects from the remote repository and deploy them to Cloudjiffy environment.Create an Environment
1. Log in to your Cloudjiffy account.
2. While in the Cloudjiffy dashboard, click the New Environment button:
3. Switch to the Java programming language tab, pick an application server, select Maven as my build tool, and specify my resource limits within the opened environment wizard. Then type my environment name, for example, myenv, and click Create.
Add a Project
1. Select the Add project icon next to Maven.
2. In the Add project dialog box, write the name and then select the Repository.
If you have a new repository then click on "Add New Repository"
- for Git
- Name of my project
- URL to my project
- Branch of my project
- Login (Username of the github account)
- Token (If your repository is private then you have to provide token OR SSH key of your repository)
- for SVN
- Name of my project
- URL to my project (http, https or svn link)
- Login and Password of my repository (if this is required)
Also, you can configure some additional options here:
- Ticking the Check and auto-deploy updates checkbox will enable an automatic periodic re-deployment of my project from the repository, which is only performed if the repository contains new code changes. Use the Check every (min) option to define the required frequency of my project’s updates.
- The active by default Auto resolve conflict option represents an analog of the git reset --hardcommand. It is used to prevent the occurrence of merge conflicts while further project updates, which can take place if the same file is modified in both the remote repository and my project, hosted at Cloudjiffy Cloud. If such an issue arises, this contradictory file will be updated according to its repository version (which is considered the correct one), discarding the locally made changes.
Note: Please DO NOT disable this option if you don’t know exactly what you are doing.
Finally, select Add at the bottom of the frame.
That's all! Now, just click on Build and Deploy and access my application (using the Open in browser button) once these operations are completed.