Answers: <p>No, you don't need maven.</p>
  <p>Maven is a build automation tool as ant and gradle are, generally, but not limited to, jvm based projects.</p>
  <p>Nexus is an artifact repository, but some others exists.
  Artifact repositories software have different set of features (license, different storage options, different repositories type support like gems or npm ..., search support, web interface ...).</p>
  <blockquote>
  <p>I know that once a developer pushes a code to git, Jenkins should take it and run the test case on it.</p>
  <p>If it is success then push it to production? Am I right? I'm not sure about the flow.</p>
  </blockquote>
  <p>Generally, in order to achieve continuous deployment, which is what you are asking for precisely here, you would:</p>
  <ol>
  <li>setup a hook when you commit</li>
  <li>have a continuous integration tool that receive the hook</li>
  <li>the CI does whatever needs to be done for the project to be tested / build / runnable</li>
  <li>the CI deploys the previously built software</li>
  </ol>
  <p>Jenkins, for example, supports pipeline as code, it would allow you to put a <code>Jenkinsfile</code> in your repository, that would tell Jenkins how to do step 3 and 4 (travis and circleCI and others CI also supports this).</p>
  <p>You can tell your CI in steps 3 to upload some artifacts to an artifact repository and on step 4, to retrieve them in order to deploy the software, but you don't need to.</p>
  <p>My advice would be to design your CD system the simplest way you can, don't introduce not necessary parts like an artifact repository if you don't need it, add it when you face a problem that needs it.</p>
  <p>As a first step, your CI, can during the deployment steps, simply copy your artifacts to the target server.</p>
  
Answers: CC BY-SA 4.0
Answers: 2019-05-31T17:17:18.720Z
Answers: I have regularly seen people call a 'maven repository's dependency' a 'maven dependency' and some people incorrectly don't distinguish between the repository/repository manger and the type of repository that is being hosted.
Answers: Cinderhaze
Answers: CC BY-SA 3.0
Answers: 2017-10-29T16:10:30.040Z
Answers: 2017-10-29T16:10:30.040Z
Answers: 2020-06-18T08:28:10.803Z
Answers: smaftoul
Body: <p>I want to try to upload any set of artifacts from any type of project ( Java, node, PHP, .net, go ).</p>
  
  <p>I know that once a developer pushes a code to git, Jenkins should take it and run the test case on it. </p>
  
  <p>If it is success then push it to production? Am I right? I'm not sure about the flow.</p>
  
  <p>I wonder how Nexus and Maven ( is it needed, if so why? ) will come into a picture of DevOps flow?</p>
  
  <p>I know Nexus it's repository manager ( which store artifacts [ final executable file after code compilation ( which we can see in Java, go but not in PHP or node ) ] ) please, correct me if I wrong.</p>
  
  <p>Do I need Maven?</p>
  
Tags: <jenkins><jenkins-plugins><devsecops><nexus><n3dr>
Title: Devops Jenkins nexus integration?
UserDisplayName: Abhi Adr
ThreadText: # Devops Jenkins nexus integration?
  
  (Asked by: username_0 on 2017-10-29)
  
  I want to try to upload any set of artifacts from any type of project ( Java, node, PHP, .net, go ).
  
  I know that once a developer pushes a code to git, Jenkins should take it and run the test case on it.
  
  If it is success then push it to production? Am I right? I'm not sure about the flow.
  
  I wonder how Nexus and Maven ( is it needed, if so why? ) will come into a picture of DevOps flow?
  
  I know Nexus it's repository manager ( which store artifacts [ final executable file after code compilation ( which we can see in Java, go but not in PHP or node ) ] ) please, correct me if I wrong.
  
  Do I need Maven?
  
  **Tags:** jenkins, jenkins-plugins, devsecops, nexus, n3dr
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-10-29. Score: 2 | Accepted answer
  
  No, you don't need maven.
  
  Maven is a build automation tool as ant and gradle are, generally, but not limited to, jvm based projects.
  
  Nexus is an artifact repository, but some others exists.
  Artifact repositories software have different set of features (license, different storage options, different repositories type support like gems or npm ..., search support, web interface ...).
  
  > I know that once a developer pushes a code to git, Jenkins should take it and run the test case on it.
  >
  > If it is success then push it to production? Am I right? I'm not sure about the flow.
  
  Generally, in order to achieve continuous deployment, which is what you are asking for precisely here, you would:
  
  1. setup a hook when you commit
  2. have a continuous integration tool that receive the hook
  3. the CI does whatever needs to be done for the project to be tested / build / runnable
  4. the CI deploys the previously built software
  
  Jenkins, for example, supports pipeline as code, it would allow you to put a `Jenkinsfile` in your repository, that would tell Jenkins how to do step 3 and 4 (travis and circleCI and others CI also supports this).
  
  You can tell your CI in steps 3 to upload some artifacts to an artifact repository and on step 4, to retrieve them in order to deploy the software, but you don't need to.
  
  My advice would be to design your CD system the simplest way you can, don't introduce not necessary parts like an artifact repository if you don't need it, add it when you face a problem that needs it.
  
  As a first step, your CI, can during the deployment steps, simply copy your artifacts to the target server.
  
  > **Comments:**
  > **username_2**: I have regularly seen people call a 'maven repository's dependency' a 'maven dependency' and some people incorrectly don't distinguish between the repository/repository manger and the type of repository that is being hosted.  
  
  ---
  
  