I have an in-development library project (module by IntelliJ definition) that i want to reference from other projects. How would i go about to reference that project in other projects ?
Asked
Active
Viewed 1.7k times
2 Answers
5
you can use whether Dependency or module tags in pom.xml of your project. Depends on what you trying to do.
<dependency>
<groupId>com.mysubpro</groupId>
<artifactId>myproject</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
Or
<modules>
<module>myproject</module>
</modules>

Morteza Adi
- 2,413
- 2
- 22
- 37
1
You have to use mvn install
goal. This will install your library to your local repository. Link to Maven Install Plugin. Once it is done you can have a dependency to it in your other projects.

basiljames
- 4,777
- 4
- 24
- 41