0

I have a package in one Spring Boot project. The package contains domain objects.

The folder looks like this:

IDomainModel
ModelOne
ModelTwo

How can I make a jar of only these files then bring it into my other projects. I cannot use artifactory.

J_Strauton
  • 2,270
  • 3
  • 28
  • 70

1 Answers1

0

I will assume you have used maven.

If you have installed de jar using mvn install, then it should be available for all the projects you try to build.

Since mvn install puts your compiled jar in your local repository with the groupId, artifactId and version you provided in your pom.xml file. Then you could use that same jar as a dependency in any project with access to your local repository.

Sergio Robles
  • 66
  • 2
  • 6