0

Say I have my project that looks like

/src/main/java/...
/src/main/resources/...
/src/main/webapp
pom.xml

And I have this stored in my version control, Git/SVN etc.

My artifact has a signature like

<groupId>dwj.me</groupId>
<artifactId>some-project<artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>

If I have a nexus server running, I can deploy my project to nexus and packaged copy of the project is available and can be used as a dependency in other projects.

If I want to deploy this project to a webserver, currently I first need to check the project out from version control, and then use a build command to deploy it to my specific webserver.

What I'm wondering is if there is a way to avoid having to check the project out from version control, ie. deploying using the artifact id only.

Additionally there are likely to be configuration properties in /src/main/resources, is it possible to set these properties without having to check out from version control?

3
  • 1
    Everything is possible when you ask on the right StackExchange site! – MetaFight May 12 '16 at 2:42
  • So far I see, what you need is not nexus server. You need a Jenkins :-) – Laiv May 12 '16 at 5:50
  • I have found this searching on Stackoverflow – Laiv May 27 '16 at 8:13
-1

This is more specific to Continuous Integration (CI) and Continuous Deployment. To achieve this Jenkins, Bamboo tools are recommended and easy integration with your repositories, build script and deployment on respective server

for Jenkins you can visit https://jenkins.io/ : This would guide you of installation, setup and configuration.

2
  • this doesn't even attempt to address the question asked – gnat May 12 '16 at 8:30
  • @gnat : This is one of the way to achieve it – Shivkalyan May 12 '16 at 9:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.