maven build for WSo2 artifacts

我是研究僧i 提交于 2020-01-16 08:46:24

问题


I can export below carbon project from the developer studio , but not using maven on command prompt.

There are two modules embedded inside the "carbon" project . One is Config project and another one is registry resource . maven build / mvn package is done from the car prject level and we are getting below error . As the carbon Project pom has the dependencies as ".xml" . Any pointers here is really appreciated.

Below is project structure.

CArProject -

  ConfigProject

   ResoourceProject

"com.barclaycardus.svc.account.car:account-service-car:pom:1.0.0-SNAPSHOT: The following artifacts could not be resolved: com.barclaycardus.svc.account.car.endpoint:AccountServiceEndpointDev:xml:1.0.0, com.barclaycardus.svc.account.car.sequence:AccountServiceOutSequence:xml:1.0.0, com.barclaycardus.svc.account.car.sequence:AccountServiceInSequence:xml:1.0.0, com.barclaycardus.svc.account.car.proxy-service:AccountProxyService:xml:1.0.0,


回答1:


When you use maven to build the CAR file for your artifacts, then you need to build the individual artifact project before building the C-App project.

Since this is a tedious task to build each and every project one by one, we have another project type called Maven Multi Module project which acts as a Maven parent project.

So if you want to build everything in a single go, then you need to create a Maven Multi Module project and include all the other projects as modules in this multi module project's pom file.

You can find more information about Maven multi module project from here.

So when you build the maven multi module project, it will build all the other projects and the CAR file will be generated in the target folder of the C-App project.



来源:https://stackoverflow.com/questions/11779382/maven-build-for-wso2-artifacts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!