TIBCOSoftware / bw6-plugin-maven

Plug-in Code for Apache Maven and TIBCO ActiveMatrix BusinessWorks™
Other
65 stars 78 forks source link

Maven plugin doesn't work if the application module has shared module in TIBCO BE CE #495

Open senthilalagesan opened 4 years ago

senthilalagesan commented 4 years ago

We are not able to execute the test cases using the maven plugin 2.7.0 in TIBCO BW CE 2.5.3, when the application module has shared module used in it.

For example, we are having common logging shared module linked to all our BW CE 2.5.3 application modules . We are not able to execute the test cases against the sub processes in the application module .

tushartete commented 4 years ago

@senthilalagesan We are fixing it in 2.7.1. @vpawar-ai Please confirm.

vpawar-tibco commented 4 years ago

@senthilalagesan 2.7.1 is available now. Please install it and let us know if you face any issues. Thanks.

yuvarajsivapragasam commented 4 years ago

Im getting this exception on latest maven build 2.7.1. can some one share the .application content, Below is the content I used [ERROR] Failed to execute goal com.tibco.plugins:bw6-maven-plugin:2.7.1:bwdesignUtility (default-cli) on project serviceApplication.application: Value for Tibco Home is empty -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :serviceApplication.application


below is .application content

<?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

4.0.0 com.tibco.bw serviceApplication.application.parent ${APP_VERSION}.${BUILD_NUMBER} ..\serviceApplication.application.parent serviceApplication.application bwear pcfdev.properties com.tibco.plugins bw6-maven-plugin 2.7.1 true org.codehaus.mojo properties-maven-plugin 1.0.0 initialize read-project-properties ${pcf.property.file} org.cloudfoundry cf-maven-plugin 1.1.3 ${bwpcf.server} ${bwpcf.target} ${bwpcf.trustSelfSignedCerts} ${bwpcf.org} ${bwpcf.space} ${bwpcf.appName} ${bwpcf.url} ${bwpcf.instances} false ${bwpcf.memory} ${bwpcf.buildpack} ${bwpcf.env.0} ${bwpcf.env.1}
vpawar-tibco commented 4 years ago

Hi @yuvarajsivapragasam Please add tibco home and bw home path properties in your pom.xml. Example -

  <properties>
         <tibco.Home>c:\tibco</tibco.Home>
         <bw.Home>\bw\6.6</bw.Home>
  </properties>
yuvarajsivapragasam commented 4 years ago

@vpawar-ai Thanks it works. is there a way just to export an ear, since for completing the validation it took more time ( ~15 mins) in my scenario. mvn com.tibco.plugins:bw6-maven-plugin:bwdesignUtility -DcommandName=validate

yuvarajsivapragasam commented 4 years ago

[INFO]Validation started for the module [serviceApplication.application] [INFO]No validation errors found for the module [serviceApplication.application] [INFO]Found 0 errors and 0 warnings in module [serviceApplication.application] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 12:39 min [INFO] Finished at: 2020-09-18T11:20:09-07:00 [INFO] ------------------------------------------------------------------------

vpawar-tibco commented 4 years ago

@yuvarajsivapragasam Please use mvn package to export an ear.

yuvarajsivapragasam commented 4 years ago

@vpawar-ai - If I use mvn package to export cant remove the unused resources, my package would have redundant code.