0

I am new for Maven. I have created two class say App1 and App2 in a spring project using Maven build. How can I configure settings.xml to use one of App1 or App2 class in my project. So that if one person wants App1 to use, then he will change settings.xml and App1 will be used by project.

Same, If other person wants to use App2 then he will make change in settings.xml and App2 will be used by project.

2 Answers2

1

Find example here

https://spring.io/guides/gs/maven/

or

How do I add a project as a dependency of another project?

Community
  • 1
  • 1
Sasikumar Murugesan
  • 4,412
  • 10
  • 51
  • 74
0

What you probably are looking for are Maven profiles.

However, under normal circumstances you should not use Maven settings.xml for such things. If it is two different applications you should have two Maven projects.

holmis83
  • 15,922
  • 5
  • 82
  • 83