Home > eclipse > Updating maven project in eclipse with new maven archetype

Updating maven project in eclipse with new maven archetype

February 5Hits:2
Advertisement

Currently I'm working with the Eclipse IDE (Eclipse Java EE IDE for Web Developers, Luna Service Release 2 (4.4.2)). At the moment I have a maven Remote Catalog, that refers to a repository on a Nexus Repository Manager OSS. In this repository there are several maven archetypes in different versions deployed (0.8, 1.0, 1.1., etc.).

To create a new Maven project I use the eclipse Wizard, check it out via Stash/Git and then run the New Project Wizard ("Maven Project") to add the proper archetype from the Remote Catalog. That works fine so far. If I check out a project twice, each time with a different version of the archetype that is stored online, I get two different versions, where the only differences are the changed files in the newer version.

But checking out the project every time when the archetype is changed seems to be too complicated. And therefore I'm asking for a more convenient method to update an existing maven project in eclipse when all I want to update is in fact the archetype (and leave the files coming from the Stash/Git-project as they are).

Does anyone know a relatively smooth way to achieve this?

Kind regards,

Damian

Related Articles

  • Updating maven project in eclipse with new maven archetypeFebruary 5

    Currently I'm working with the Eclipse IDE (Eclipse Java EE IDE for Web Developers, Luna Service Release 2 (4.4.2)). At the moment I have a maven Remote Catalog, that refers to a repository on a Nexus Repository Manager OSS. In this repository there

  • Difference in creating a Spring/Hibernate/Maven project in Eclipse and through Command LineJanuary 22

    What is the difference in creating a Spring/Hibernate/Maven project in Eclipse using New > Project > Maven > Maven Project, and through Command Line using mvn archetype:generate? Thanks

  • Automatic Install of Maven Projects in Eclipse upon BuildFebruary 4

    Is there a way to let eclipse automatically run 'mvn install' when it builds a project (e.g. when a source file in the project is changed)? My problem at the moment is that I have a large number of projects in eclipse, each of which is a Maven projec

  • Self-Contained Application Packaging for java swing maven project in eclipseJanuary 26

    I want to make a self-contained package (including jre 8). I have a Maven project developed in Eclipse. I have read that JavaFX has support for building towards different platforms (Windows, Mac, Linux). What is the best way forward? I know there is

  • Error while creating simple maven project in eclipse(Mars)February 11

    I am new to the maven, like to create spring integration using maven in eclipse(mars). But getting below while creating the maven project in my local machine. Kindly help me on this. Errors occurred during the build. Errors running builder 'Maven Pro

  • Automatically add additional source directories to eclipse build path for maven projectFebruary 8

    I have a maven project conforming to the standard maven directory structure that has lots of unit and integration tests lying on top of each other in the src/test/java directory. I would like An additional source directory (src/integration-test/java)

  • Maven build in Eclipse Luna IDEFebruary 17

    I want to develop a simple test program as maven project in eclipse IDE. What are the prerequisite and procedure to run this program. --------------Solutions------------- Check the answers from this post: Maven in Eclipse: step by step installation T

  • Eclipse imports Maven project with wrong Facets after deletion/ignore of . ide filesJanuary 17

    In a couple of our new projects, we were committing .settings, .classpath, .project into git. I recently removed all of these from the app and added them to the ignore file. Now we have a problem, when we import the Maven project it now uses the wron

  • Does IntelliJ IDEA have the concept of 'workspace' similar to eclipse with multiple maven projects open in parallel?December 9

    I have used Eclipse for years and started using IntelliJ IDEA today. I'm used to being able to import multiple maven projects into a workspace and see them all in parallel. I imported a maven project into IntelliJ IDEA today - no problem. I imported

  • Using Eclipse for a Maven project with multiple .pom files from a GitHub project

    Using Eclipse for a Maven project with multiple .pom files from a GitHub project November 1

    I have forked this project on my GitHub: https://github.com/iluwatar/java-design-patterns and now I'm trying to import (clone) my own origin repo locally. I managed to do it via Bash command line, but I'm not being able to import the project in Eclip

  • missing tools.jar error on Update Maven Project

    missing tools.jar error on Update Maven ProjectJanuary 14

    When i try to update maven project I get the error that maven cant find tools.jar in JRE locations shown below: However I have installed and specefied JDK in Windows->Preferences->Java->Installed JRE. Is there any other place the JDK should be sp

  • Do we have to include jar files in eclipse project if we are using maven?

    Do we have to include jar files in eclipse project if we are using maven?February 17

    I am new to maven. The POM file in maven contains all the dependencies that we need in our project. So we don't have to externally add any JAR's to the buildpath in eclipse.Right? --------------Solutions------------- That's right. Maven will download

  • Cannot change maven version in eclipseJanuary 10

    After failing to mvn package inside of eclipse but succeeding in the terminal, I realized that eclipse was running maven 3.3.3 while terminal was running 3.3.9. I attempted, and by all apparent accounts succeeded, to reconfigure eclipse by going to E

  • getClass().getResourceAsStream() in maven projectFebruary 5

    The pom.xml of my maven project looks as follows: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apach

  • Dependancy error when building maven projectFebruary 10

    I'm trying to move an application from being built locally on a Windows Eclipse installation to a Jenkins server. From what I can see the settings are correct and the dependencies should resolve. Even the ones it is complaining about are there when I

  • What does "Run as Java Application" do in Maven projectsJanuary 18

    I've just started using Maven in Eclipse by m2e. In many tutorials it said that I have to use "Run as Maven build" with different goals(compile, test, install) to compile and execute my application. But I noticed that "Run as Java Applicati

  • SVN with multimodule maven project configurationJanuary 20

    I have a multimodule maven project which is contained in a folder (source). However when with intelliJ, I am trying to update this folder, I cannot even see the subversion item in the menu. In order to update the project I need to select all and then

  • How to fix error on pom.xm in maven project

    How to fix error on pom.xm in maven projectJanuary 26

    I should to build a Restful FHIR server. So I have find this link Hapi Fhir RestFul Server. I have download the source on my local pc and I have import it from eclipse as Maven Project. So I have some error with this code. I think, because it not fin

  • xml-maven-plugin in Eclipse - Plugin execution not covered by lifecycle configurationFebruary 4

    I have a Maven project that I can compile and test successfully with mvn clean install. For Maven the Eclipse Java EE IDE has a feature to import Existing Maven Projects. This does not work without problems unfortunately. Eclipse will show many build

  • Developmet-only source in a Maven projectFebruary 5

    I have to convert a non-maven project to one that is managed by maven. The current project has three source folders: src, test, and dev. The existing ant build script will not bundle anything from the dev source tree into the final jar unless specifi

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.624 s.