开发者

Can dependency possible between two individual maven projects?

开发者 https://www.devze.com 2023-02-10 09:29 出处:网络
I can not use parent project with two child projects and drawing a dependency between the two child projects ..(problem with the CVS versioning)

I can not use parent project with two child projects and drawing a dependency between the two child projects ..(problem with the CVS versioning)

Can anyone help me in finding 'Is there any other solution to have dependency between two individual projects When ever i开发者_如何转开发 try to build the Web project It should automatically build the java project and deploy the jar inton the web app lib and then builds the WAR'

sorry if my question looks dumb ..


You could try using the import scope.

  <dependency>
    <groupId>groupId</groupId>
    <artifactId>artifactId</artifactId>
    <version>x.xx</version>
    <type>pom</type>
    <scope>import</scope>
  </dependency>


You could put the java project in the mvn repository and use this as a dependency in your web project.


I absolutely agree with dimitrisli's answer.

This and this answers might help you in adding your Java project to a remote repository.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号