69633

maven build for WSo2 artifacts

Question:

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,

Answer1:

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 <a href="http://wso2.org/project/developer-studio/2.0.1/docs/devs_maven_support.html#MavenMultiModule" rel="nofollow">here</a>.

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.

Recommend

  • Grails 3 - How to publish to Artifactory
  • eC (Ecere) how to not worry about private data fields of a class
  • including Python.h in C++ file CDT
  • How to load Q library with Require.js?
  • Generating anchors with PyYAML.dump()?
  • Unzip archive in .Net CORE 1.0
  • “mvn clean generate-source” could not resolve dependencies
  • Configure Spring's MappingJacksonHttpMessageConverter
  • Sensibility of combined Maven/Ant+Ivy build management for dual platform Desktop/Android deployment?
  • Does Apportable support to build library binary (.a/.so)?
  • Bootstrap (v3.3.4) glyphicons not displayed in IE when refresh page (F5)
  • How to autopopulate a field in SugarCRM form
  • Pycharm: Marking a folder as 'sources root' is not recursive for subfolders
  • Jenkins: FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection
  • Unable to install Git-core+svn by MacPorts
  • How do I exclude a dependency in provided scope when running in Maven test scope?
  • How to define and use opencv mat of user type
  • Custom Tabgroup Appcelerator
  • Play WS (2.2.1): post/put large request
  • Record samples being played with OpenAL
  • Switching to Release Build causes runtime error in Web Reference
  • Jetty Server not starting: Unable to establish loopback connection
  • The plugin 'org.apache.maven.plugins:maven-jboss-as-plugin' does not exist or no valid ver
  • PHPUnit_Framework_TestCase class is not available. Fix… - Makegood , Eclipse
  • Java Scanner input dilemma. Automatically inputs without allowing user to type
  • Projection media query: browser support and workarounds?
  • Different response to non-authenticated users and AJAX calls
  • Can Jackson SerializationFeature be overridden per field or class?
  • Deserializing XML into class C#
  • Redux, normalised entities and lodash merge
  • QuartzCore.framework for Mono Develop
  • Is there a mandatory requirement to switch app.yaml?
  • Android Studio and gradle
  • Hits per day in Google Big Query
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • Linking SubReports Without LinkChild/LinkMaster
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass
  • How to get NHibernate ISession to cache entity not retrieved by primary key
  • How to Embed XSL into XML
  • Unable to use reactive element in my shiny app