GithubHelp home page GithubHelp logo

bw6-plugin-maven's Introduction

Build Status

Plug-in Code for Apache Maven and TIBCO ActiveMatrix BusinessWorks™ and TIBCO BusinessWorks™ Container Edition

This plug-in is subject to the license shared as part of the repository. Kindly review the license before using or downloading this plug-in.

It is provided as a sample plug-in to support use-cases of integrating TIBCO ActiveMatrix BusinessWorks™ with Apache Maven. It is also provided as a sample plug-in to support use-cases of integrating TIBCO BusinessWorks™ Container Edition 1.0.0 and higher with Apache Maven.

Prerequisites

  1. Maven should be installed on the Machine. M2_HOME should be set. The Maven Executable should be available in the Path. This can be confirmed by running the command mvn -version from Terminal/Command Prompt.
  2. Either of TIBCO ActiveMatrix BusinessWorks™ or TIBCO BusinessWorks™ Container Edition should be installed.

Installation

a. Goto https://github.com/TIBCOSoftware/bw6-plugin-maven/releases

b. Download TIB_BW_Maven_Plugin_x.y.z.zip

c. Unzip the file in a folder on local drive.

d. Open the Terminal and run install.bat ( for Windows based OS ) or install.sh ( for Unix based OS)

e. The Installer will ask for TibcoHome location. Provide the TibcoHome to the Script. e.g. /opt/tibco/bw_home

This will install the Maven Plugin to the TibcoHome.

For TIBCO ActiveMatrix BusinessWorks™

Please follow the wiki page at Steps for TIBCO ActiveMatrix BusinessWorks™

For TIBCO BusinessWorks™ Container Edition

Please follow the wiki pages at Building-applications-for-TIBCO-BusinessWorks-Container-Edition

Building the code

Please follow the wiki page Building the Maven Plugin

Contributing to the Plug-in

If you'd like to contribute to this plug-in, please reach out to [email protected]

bw6-plugin-maven's People

Contributors

abhide-tibco avatar amkulkar avatar ankitapandey1 avatar ashutoshbhide avatar awagle avatar chhabradivya avatar ckhare-tibco avatar cmocanu1 avatar emilienthomas avatar hrraju avatar kharecs avatar ljferrero avatar mhwang66 avatar mmilinds-tibco avatar mshahat avatar nidhirajeshdhoka avatar pramakan-tibco avatar rahulkamdar avatar rajibbiswastibco avatar richardyam-tibco avatar roagarwal avatar rvelamia avatar sonalidasgupta avatar sshingav-tibco avatar sujatadarekar avatar vpawar-tibco avatar zsurka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bw6-plugin-maven's Issues

Request for full mvn management of bw-module dependencies

Enhancement request so that bw-module dependencies (for both application and shared modules) are resolved via maven in both command-line ear build and Studio debugging use-cases.

Please see pull request 16 for example.

The intent is to enable true shared module development and release as stand-alone projects where inter-bw-module dependencies are resolved via maven (rather than by relative path and/or studio workspace resolution).

TIBCO-THOR-FRWK-CMN-500000: java.lang.IllegalArgumentException: invalid version "null": non-numeric "null"

Hi,
We try to deploy the application IF34 with maven plugin and Jenkins.

Unfortunately, we get the below error :
[INFO] --- bw6-maven-plugin:1.1.0:bwinstall (default-bwinstall) @ BW_Resolve_MasterCrewData_v1 ---
[INFO] BWEAR Installer Mojo started ...
[INFO] No Deployment Config File set. Reading the deployment Properties from POM File.
[INFO] Connected to BWAgent. Agents found
[INFO] Agent Name -> {agent-name-here}
[INFO] Domain exists with Name -> {domain-name}
[INFO] AppSpace exists with Name -> {app-space-name} in Domain -> oneAviation_Jetair_TEST
[INFO] AppNode exists with Name -> Node001 in Domain -> {app-node-name} and in AppSpace -> {app-space-name}
[INFO] AppNode HTTP Port -> 8075. AppNode OSGi Port -> -1
[INFO] AppSpace is Running.
[INFO] Uploading the Archive file -> BW_Resolve_MasterCrewData_v1_1.12.0.ear
[ERROR]
com.tibco.bw.maven.plugin.admin.client.ClientException: TIBCO-THOR-FRWK-CMN-500000: java.lang.IllegalArgumentException: invalid version "null": non-numeric "null" (400)
at com.tibco.bw.maven.plugin.admin.client.RemoteDeployer.uploadArchive(RemoteDeployer.java:530)
at com.tibco.bw.maven.plugin.admin.client.RemoteDeployer.addAndDeployApplication(RemoteDeployer.java:301)
at com.tibco.bw.maven.plugin.application.BWEARInstallerMojo.execute(BWEARInstallerMojo.java:171)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
at org.jvnet.hudson.maven3.launcher.Maven31Launcher.main(Maven31Launcher.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
at jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:134)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:69)
at hudson.remoting.UserRequest.perform(UserRequest.java:121)
at hudson.remoting.UserRequest.perform(UserRequest.java:49)
at hudson.remoting.Request$2.run(Request.java:324)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

So, the package cannot be uploaded. Please find the application with the POM files attached. The maven goal we use is “install”.
This seems like a known issue:
#28

Please give advice how to proceed.

Build Failure Maven cf:push

Hi

I am trying to do a maven cf:push
Upon running the configuration i get this error

BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.556 s
[INFO] Finished at: 2016-06-22T11:01:43-04:00
[INFO] Final Memory: 19M/287M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.cloudfoundry:cf-maven-plugin:1.1.3:push (default-cli) on project test.application:
[ERROR]
[ERROR] -------------------------------------------------------------------------------
[ERROR]
[ERROR] Required argument 'target' is missing.
[ERROR] ========================================================================
[ERROR]
[ERROR] Did you configure the parameter? You can provide the parameter either as:
[ERROR]
[ERROR] - System Property using: -Dcf.target= or
[ERROR] - Add the parameter to the pom.xml under the plugin's configuration element:
[ERROR]
[ERROR]
[ERROR] provide value
[ERROR]
[ERROR]

I have provided the pcf target in the pcfdev.properties

Also in the effective xml i can see it as:

${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}

How do i fix this problem?

Thanks,
Neethu

Bug with BW6.3.2 HF2

Hi there,

we try to use the plugin together with Jenkins for our CI environment. The BW version we use is 6.3.2 HF2.
Everything works just fine, but when trying to upload the EAR file into the AppNode we get an error. This was reported to Tibco Enterprise support. They suggested to place the issue here in Github.
The error message is:
......... [INFO] AppSpace is Running. [INFO] Uploading the Archive file -> BW_Resolve_MasterCrewData_v1_1.12.0.ear [ERROR] com.tibco.bw.maven.plugin.admin.client.ClientException: TIBCO-THOR-FRWK-CMN-500000: java.lang.IllegalArgumentException: invalid version "null": non-numeric "null" (500) at com.tibco.bw.maven.plugin.admin.client.RemoteDeployer.uploadArchive(RemoteDeployer.java:348) at com.tibco.bw.maven.plugin.admin.client.RemoteDeployer.addAndDeployApplication(RemoteDeployer.java:205) at com.tibco.bw.maven.plugin.application.BWEARInstallerMojo.execute(BWEARInstallerMojo.java:146) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154) at org.jvnet.hudson.maven3.launcher.Maven31Launcher.main(Maven31Launcher.java:132) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238) at jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:181) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at hudson.maven.Maven3Builder.call(Maven3Builder.java:134) at hudson.maven.Maven3Builder.call(Maven3Builder.java:69) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:324) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: com.tibco.bw.maven.plugin.admin.client.ClientException: TIBCO-THOR-FRWK-CMN-500000: java.lang.IllegalArgumentException: invalid version "null": non-numeric "null" (400) at com.tibco.bw.maven.plugin.admin.client.RemoteDeployer.processErrorResponse(RemoteDeployer.java:543) at com.tibco.bw.maven.plugin.admin.client.RemoteDeployer.uploadArchive(RemoteDeployer.java:342) ... 34 more

Is there any solution for that issue?

confusion about tibco-home

An install on Mac OS X 10.11.6 (15G31)

/opt/tibco ( bw v6.3.2 )
/opt/tibco/bwce (bwce v2.0.0 )

Installing bw-plugin-mavin v1.1 - provided /opt/tibco as tibco_home

installed it under bwce and not bw !

Thanks,

The POM for com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 is missing, no dependency information available

Hello Team,

I am getting below exception while executing Jenkins job,
The POM for com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 is missing, no dependency information available


BUG REPORT INFORMATION

D:\Development\CICD\TIB_BW_Maven_Plugin_1.2.0>mvn -version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T22:11:47+05:30)
Maven home: D:\Development\CICD\ApacheMaven_3.3.9
Java version: 1.7.0_60, vendor: Oracle Corporation
Java home: D:\Development\3rdparty\jdk_1.7.0_60\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "windows"

Product : TIBCO ActiveMatrix Businessworks 634_HF01

Product version: BW634_HF01

Component: Maven build plugin : TIB_BW_Maven_Plugin_1.2.0

Steps to reproduce the issue:

  1. I have BW634_HF01 installed along with TIB_BW_Maven_Plugin_1.2.0 configured.
  2. I have generated POM using BWStudio and checked-in the code to GOGs(Git).
  3. Created a Jenkins Job with goals, clean package & install.

Additional environment details if any:
I have BW634_HF01, TEA220_HF09, Jenkins, Maven, Git, Gogs & TIB_BW_Maven_Plugin_1.2.0 in my setup.

Describe the results you received:

Console Output
Started by user swapnil bankar
Building in workspace D:\Development\CICD\Jenkins_2.32.1\workspace\BW6_Deploy_Job

git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
git.exe config remote.origin.url http://localhost:3000/sbankar/myFirstProject.git # timeout=10
Fetching upstream changes from http://localhost:3000/sbankar/myFirstProject.git
git.exe --version # timeout=10
using GIT_ASKPASS to set credentials
git.exe fetch --tags --progress http://localhost:3000/sbankar/myFirstProject.git +refs/heads/:refs/remotes/origin/
git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10
Checking out Revision 9c37854d4402b924aa75d0c7c70f8a46c339980b (refs/remotes/origin/master)
git.exe config core.sparsecheckout # timeout=10
git.exe checkout -f 9c37854d4402b924aa75d0c7c70f8a46c339980b
git.exe rev-list 9c37854d4402b924aa75d0c7c70f8a46c339980b # timeout=10
[BW6_Deploy_Job] $ cmd.exe /C "D:\Development\CICD\ApacheMaven_3.3.9\bin\mvn.cmd -f C:\Users\sbankar\git\MyFirstProject\tibco.bw.sample.binding.rest.Basic.application.parent\pom.xml clean package && exit %%ERRORLEVEL%%"
[INFO] Scanning for projects...
[WARNING] The POM for com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 is missing, no dependency information available
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Failure to find com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @
[ERROR] Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Failure to find com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @
@
[ERROR] The build could not read 2 projects -> [Help 1]
[ERROR]
[ERROR] The project com.tibco.bw:tibco.bw.sample.binding.rest.Basic:1.0.0-SNAPSHOT (C:\Users\sbankar\git\MyFirstProject\tibco.bw.sample.binding.rest.Basic\pom.xml) has 1 error
[ERROR] Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Failure to find com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR]
[ERROR] The project com.tibco.bw:tibco.bw.sample.binding.rest.Basic.application:1.0.0-SNAPSHOT (C:\Users\sbankar\git\MyFirstProject\tibco.bw.sample.binding.rest.Basic.application\pom.xml) has 1 error
[ERROR] Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Failure to find com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE
Describe the results you expected:
Application getting uploaded & deployed with success in TEA

Additional information you deem important (e.g. issue happens only occasionally):
Below 2 scripts copied from Jenkins execution job (which is failing) and executed explicitly in command prompt which went thr' with success, I could see application getting deployed in TEA with success.
cmd.exe /C "D:\Development\CICD\ApacheMaven_3.3.9\bin\mvn.cmd -f C:\Users\sbankar\git\MyFirstProject\tibco.bw.sample.binding.rest.Basic.application.parent\pom.xml clean packa
exe /C "D:\Development\CICD\ApacheMaven_3.3.9\bin\mvn.cmd -f C:\Users\sbankar\git\MyFirstProject\tibco.bw.sample.binding.rest.Basic.application.parent\pom.xml clean package
D:\Development\IDE\AMXBW_6.3.4\bw\6.3\maven\plugins\bw6-maven-plugin>cmd.exe /C "D:\Development\CICD\ApacheMaven_3.3.9\bin\mvn.cmd -f C:\Users\sbankar\git\MyFirstProject\tibco.bw.sample.binding.rest.Basic.application.parent\pom.xml install

Deploy only goal for BW6 applications

Hi,

I would like to know which goal to use for Deployment only.

Goal should take EAR or Deployment Config as input and deploy it on target environment.

Is it available?

I am using 'deploy' goal but I have the following exception

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project tibco.bw.sample.binding.soap.http.BookStore.application.parent: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter -> [Help 1]

Serialization error executing bwdeploy from BW application module

Getting the following error while attempting to deploy an ear that had already been built using mvn clean install in the context of a BW application module.

Executed mvn bw6-tc-maven-plugin:bwdeploy from the BW application module directory.

Windows 7
Java 1.8.0_91
Maven 3.3.9
BW 6.3.2
TEA 2.0.0 HF003

[INFO] --- bw6-tc-maven-plugin:1.1.1-SNAPSHOT:bwdeploy (default-cli) @ if-database-event-generator-application ---
[INFO] BWEAR Deployer Mojo started ...
[INFO] Deployment Config File found. Loading configuration from the same
[INFO] Connected to BWAgent. Agents found
[INFO] Agent Name -> A5CG5521C9F
[INFO] Domain exists with Name -> Provider_Manager
[INFO] AppSpace exists with Name -> Integration_Framework in Domain -> Provider_Manager
[INFO] AppNode exists with Name -> IF_NODE_1 in Domain -> Provider_Manager and in AppSpace -> Integration_Framework
[INFO] AppNode HTTP Port -> 8060. AppNode OSGi Port -> 8008
[INFO] AppSpace is Running.
[INFO] Application exists with name -> if-database-event-generator.application. Undeploying the Application as Redeploy
flag is true.
[INFO] Uploading the Archive file -> if-database-event-generator-application_1.0.0.qualifier.ear
[INFO] Deploying the Application with name -> if-database-event-generator.application with Profile -> default.substvar
[ERROR]
com.tibco.bw.maven.plugin.admin.client.ClientException: Error reading entity from input stream. (500)
at com.tibco.bw.maven.plugin.admin.client.RemoteDeployer.getConnectionException(RemoteDeployer.java:59)
at com.tibco.bw.maven.plugin.admin.client.RemoteDeployer.deployApplication(RemoteDeployer.java:524)
at com.tibco.bw.maven.plugin.admin.client.RemoteDeployer.addAndDeployApplication(RemoteDeployer.java:259)
at com.tibco.bw.maven.plugin.application.BWEARDeployerMojo.execute(BWEARDeployerMojo.java:152)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.
java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: javax.ws.rs.ProcessingException: Error reading entity from input stream.
at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:867)
at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:786)
at org.glassfish.jersey.client.ClientResponse.readEntity(ClientResponse.java:326)
at org.glassfish.jersey.client.InboundJaxrsResponse$1.call(InboundJaxrsResponse.java:115)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:228)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:419)
at org.glassfish.jersey.client.InboundJaxrsResponse.runInScopeIfPossible(InboundJaxrsResponse.java:267)
at org.glassfish.jersey.client.InboundJaxrsResponse.readEntity(InboundJaxrsResponse.java:112)
at com.tibco.bw.maven.plugin.admin.client.RemoteDeployer.deployApplication(RemoteDeployer.java:519)
... 24 more
Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "message" (class com.tib
co.bw.maven.plugin.admin.dto.Application), not marked as ignorable (21 known properties: "profileContentRef", "archivePa
th", "deploymentStatusDetail", "name", "archiveName", "domainName", "appSpaceName", "archiveRef", "ref", "profileName",
"configuration", "docURL", "version", "revision", "description", "appInstances", "instances", "state", "deploymentStatus
", "processes", "components"])
at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@52d6d273; line: 1, c
olumn: 13](through reference chain: com.tibco.bw.maven.plugin.admin.dto.Application["message"])
at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:51)
at com.fasterxml.jackson.databind.DeserializationContext.reportUnknownProperty(DeserializationContext.java:836)
at com.fasterxml.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:1045)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:135
2)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownVanilla(BeanDeserializerBase.java:1330
)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:262)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:125)
at com.fasterxml.jackson.databind.ObjectReader._bind(ObjectReader.java:1470)
at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:912)
at com.fasterxml.jackson.jaxrs.base.ProviderBase.readFrom(ProviderBase.java:811)
at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.invokeReadFrom(Read
erInterceptorExecutor.java:256)
at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.aroundReadFrom(Read
erInterceptorExecutor.java:235)
at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor.proceed(ReaderInterceptorExecutor.java:155)
at org.glassfish.jersey.message.internal.MessageBodyFactory.readFrom(MessageBodyFactory.java:1085)
at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:852)
... 34 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------

Maven Test goal

Does the plugin support maven test goal. If so can you give the steps?

image

Refactor model classes to a model package

Refactor model classes to model package - com.tibco.bw.studio.maven.modules.model
Maven Plugin version: 1.1.0

Maven version: 3.0.5

Product : Either of TIBCO ActiveMatrix Businessworks 6

Product version: 6.3.3

Component: Either of Maven Eclipse Plugin or Maven build plugin : Mavel plugin

Steps to reproduce the issue: - N.A.

Additional environment details if any: N.A.

Describe the results you received: N.A.

Describe the results you expected: Code to work as expected after the refactoring activity.

Additional information you deem important (e.g. issue happens only occasionally):

Update actionID for POM file generation

The POM generation ID should be up to standards like other Studio actions.

Maven Plugin version: 1.1.0

Maven version: 3.0.5

Product : Either of TIBCO ActiveMatrix Businessworks 6

Product version: 6.3.0

Component: Either of Maven Eclipse Plugin or Maven build plugin - Maven Eclipse Plugin

Steps to reproduce the issue:- N.A.

Additional environment details if any: N.A.

Describe the results you received: N.A.

Describe the results you expected: This is only a change of the ID of the action. It should not have any regressions on existing use cases.

Additional information you deem important (e.g. issue happens only occasionally):
The ID is declared in the plugin.xml file for bw6.studio.maven.plugin

Binary shared module support

BW 6.3.4 just released the principle of binary shared modules.

I'm not yet an expert of this principle but I would see this feature as an opportunity for the Maven plugin to manage shared modules dependencies within an application module.

We could have one Maven goal to export a shared module as a binary asset. At the end, the obvious target would be to:

  • Have the capability to reference a specific shared module (and a specific version) at design time.
  • Embed it during the packaging of the application module.

Is it something already planned?

Thanks

Building the project

Hello guys,

I am very interested in working on the project (at least for the moment trying to get an overview of how things are working together).
In particular I am looking for a solution to manage dependencies (one application referencing a module or * shared module, based on a package repository).

First of all I would like to know please how to build the project. I mean starting from the /Source and being able to produce a TIB_BW_Maven_Plugin_x.zip file.
Is there any kind of procedure to achieve this? Do I need to package things manually?

Thanks for your help and the great job btw.

Error when building Application with shared modules

Hi,
we tried to build and deploy an application with different shared modules, but we are getting dependencies issues. We hope you can help us. Below you can find the jenkins output:

Building in workspace /home/tibco/.jenkins/jobs/IF34/workspace
Fetching changes from the remote Git repository
Checking out Revision 3d130229fb1e18d20d04c97ec9051dd (refs/remotes/origin/feature/JenkinsTest)
Parsing POMs
Found a module with path ......\SharedModules\SharedModule_CLE\Source_Code\BW_Shared_CLE_v1 but no associated projectFound a module with path ......\SharedModules\SharedModule_LockProcess\Source_Code\LockProc_SharedModule but no associated projectFound a module with path ......\SharedModules\BW_SDI_Client\BW_Shared_SDI_v1 but no associated projectFound a module with path ..\BW_Resolve_MasterCrewData_v1.module but no associated projectFound a module with path ..\BW_Resolve_MasterCrewData_v1 but no associated projectModules changed, recalculating dependency graph
[BW_Resolve_MasterCrewData_v1.parent] $ /opt/java/jdk1.7.0_71//bin/java -cp /home/tibco/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven31-agent-1.5.jar:/home/tibco/.jenkins/tools/hudson.tasks.Maven_MavenInstallation/DEV_Maven/boot/plexus-classworlds-2.5.1.jar:/home/tibco/.jenkins/tools/hudson.tasks.Maven_MavenInstallation/DEV_Maven/conf/logging jenkins.maven3.agent.Maven31Main /home/tibco/.jenkins/tools/hudson.tasks.Maven_MavenInstallation/DEV_Maven /home/tibco/.jenkins/war/WEB-INF/lib/remoting-2.47.jar /home/tibco/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven31-interceptor-1.5.jar /home/tibco/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.5.jar 45679
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven: -B -f /home/tibco/.jenkins/jobs/IF34/xyz/Interface34_MasterCrewData/Source_Code/BW_Resolve_MasterCrewData_v1.parent/pom.xml install
[INFO] Scanning for projects...
[INFO] Starting Maven Build for BW6 Project.................................
[INFO] Checking for In-Project JAR dependencies if any and Pushing them to Local Maven Repository
[INFO] Scanning for projects...
[INFO] Starting Maven Build for BW6 Project.................................
[INFO] Checking for In-Project JAR dependencies if any and Pushing them to Local Maven Repository
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom ---
[INFO] Installing /home/tibco/.jenkins/jobs/IF34/xyz/SharedModule_CLE/Source_Code/BW_Shared_CLE_v1/.temp/.tibcoadapter/native/BW_Shared_CLE_v1.jar to /home/tibco/.m2/repository/tempbw/BW_Shared_CLE_v1/0.0.0/BW_Shared_CLE_v1-0.0.0.jar
[INFO] Installing /tmp/mvninstall2181926363409375551.pom to /home/tibco/.m2/repository/tempbw/BW_Shared_CLE_v1/0.0.0/BW_Shared_CLE_v1-0.0.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.248 s
[INFO] Finished at: 2016-11-21T08:31:31+01:00
[INFO] Final Memory: 14M/481M
[INFO] ------------------------------------------------------------------------
[INFO] Starting Maven Build for BW6 Project.................................
[INFO] Checking for In-Project JAR dependencies if any and Pushing them to Local Maven Repository
[INFO] Scanning for projects...
[INFO] Starting Maven Build for BW6 Project.................................
[INFO] Checking for In-Project JAR dependencies if any and Pushing them to Local Maven Repository
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom ---
[INFO] Installing /home/tibco/.jenkins/jobs/IF34/xyz/SharedModule_CLE/Source_Code/BW_Shared_CLE_v1/.temp/.tibcoadapter/native/BW_Shared_CLE_v1.jar to /home/tibco/.m2/repository/tempbw/BW_Shared_CLE_v1/0.0.0/BW_Shared_CLE_v1-0.0.0.jar
[INFO] Installing /tmp/mvninstall6475568348028311276.pom to /home/tibco/.m2/repository/tempbw/BW_Shared_CLE_v1/0.0.0/BW_Shared_CLE_v1-0.0.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.632 s
[INFO] Finished at: 2016-11-21T08:31:34+01:00
[INFO] Final Memory: 14M/481M
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] BW_Resolve_MasterCrewData_v1.parent
[INFO] BW_Shared_CLE_v1
[INFO] LockProc_SharedModule
[INFO] BW_Shared_SDI_v1
[INFO] BW_Resolve_MasterCrewData_v1.module
[INFO] BW_Resolve_MasterCrewData_v1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building BW_Resolve_MasterCrewData_v1.parent 1.12.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ BW_Resolve_MasterCrewData_v1.parent ---
[INFO] Installing /home/tibco/.jenkins/jobs/IF34/xyz/Interface34_MasterCrewData/Source_Code/BW_Resolve_MasterCrewData_v1.parent/pom.xml to /home/tibco/.m2/repository/com/tui/com/BW_Resolve_MasterCrewData_v1.parent/1.12.0/BW_Resolve_MasterCrewData_v1.parent-1.12.0.pom
[WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: null
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building BW_Shared_CLE_v1 1.12.0
[INFO] ------------------------------------------------------------------------
[INFO] Downloading: http://repo.maven.apache.org/maven2/tempbw/BW_Shared_CLE_v1/0.0.0/BW_Shared_CLE_v1-0.0.0.pom
[WARNING] The POM for tempbw:BW_Shared_CLE_v1:jar:0.0.0 is missing, no dependency information available
[INFO] Downloading: http://repo.maven.apache.org/maven2/tempbw/BW_Shared_CLE_v1/0.0.0/BW_Shared_CLE_v1-0.0.0.jar
[WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: null
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] BW_Resolve_MasterCrewData_v1.parent ................ SUCCESS [ 0.565 s]
[INFO] BW_Shared_CLE_v1 ................................... FAILURE [ 1.916 s]
[INFO] LockProc_SharedModule .............................. SKIPPED
[INFO] BW_Shared_SDI_v1 ................................... SKIPPED
[INFO] BW_Resolve_MasterCrewData_v1.module ................ SKIPPED
[INFO] BW_Resolve_MasterCrewData_v1 ....................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.464 s
[INFO] Finished at: 2016-11-21T08:31:37+01:00
[INFO] Final Memory: 20M/481M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project BW_Shared_CLE_v1: Could not resolve dependencies for project com.tui.com:BW_Shared_CLE_v1:bwmodule:1.12.0: Could not find artifact tempbw:BW_Shared_CLE_v1:jar:0.0.0 in central (http://repo.maven.apache.org/maven2) -> [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/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :BW_Shared_CLE_v1
[JENKINS] Archiving /home/tibco/.jenkins/jobs/IF34/xyz/Interface34_MasterCrewData/Source_Code/BW_Resolve_MasterCrewData_v1.parent/pom.xml to com.tui.com/BW_Resolve_MasterCrewData_v1.parent/1.12.0/BW_Resolve_MasterCrewData_v1.parent-1.12.0.pom
/home/tibco/.jenkins/jobs/IF34/xyz/Interface34_MasterCrewData/Source_Code/BW_Resolve_MasterCrewData_v1.parent/pom.xml is not inside /home/tibco/.jenkins/jobs/IF34/workspace/home/tibco/.jenkins/jobs/IF34/xyz/Interface34_MasterCrewData/Source_Code/BW_Resolve_MasterCrewData_v1.parent/; will archive in a separate pass
[workspace] $ /home/tibco/.jenkins/tools/hudson.tasks.Maven_MavenInstallation/DEV_Maven/bin/mvn
channel stopped
[INFO] Scanning for projects...
[INFO] Starting Maven Build for BW6 Project.................................
[INFO] Checking for In-Project JAR dependencies if any and Pushing them to Local Maven Repository
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.250 s
[INFO] Finished at: 2016-11-21T08:31:40+01:00
[INFO] Final Memory: 12M/481M
[INFO] ------------------------------------------------------------------------
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [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/NoGoalSpecifiedException
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE

And here is the pom file for the shared module:

<?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"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.tui.com</groupId> <artifactId>BW_Resolve_MasterCrewData_v1.parent</artifactId> <version>1.12.0</version> <relativePath>..\..\..\..\Interface34_MasterCrewData\Source_Code\BW_Resolve_MasterCrewData_v1.parent</relativePath> </parent> <artifactId>BW_Shared_CLE_v1</artifactId> <packaging>bwmodule</packaging> <build> <sourceDirectory>src</sourceDirectory> <outputDirectory>target/classes</outputDirectory> <plugins> <plugin> <groupId>com.tibco.plugins</groupId> <artifactId>bw6-maven-plugin</artifactId> <version>1.1.0</version> <extensions>true</extensions> </plugin> </plugins> </build> </project>

Unable to Build TIBCO BW6.x EAR from Jenkins via Maven.

Hi All, I'm able to build an EAR using Maven Plugin from BW Studio. I have installed Maven plugin for Jenkins and trying to achieve the same from Jenkins, but failing as it is unable to recognize 'bwear'. I have attached a detailed report on the issue I'm facing.

Appreciate your help!

Versions:

TIBCO Business Works 6.3.3
Jenkins 2.7.1, Maven Integration plugin (for Jenkins)- 2.13
TIB_BW_Maven_Plugin_1.1.0
Apache Maven 3.3.9
JenkinsBuildIssue.docx

mvn compilation Failure as it is not able to find plug-in dependencies

Hi ,

I have converted on of my BW6.2 modules into BW 6.3.3 module. The validation is is fine. I am using TIB_BW_Maven_plugin_1.1.0.zip. When i run the mvn package on the .parent folder, i get the below error.

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /D:/BWWorkspace/6.3.3/ipam-adapter/ipam.adapter/src/com/xyz/Utility.java:[6,39] package org.apache.commons.codec.binary does not exist
[ERROR] /D:/BWWorkspace/6.3.3/ipam-adapter/ipam.adapter/src/com/xyz/Utility.java:[7,42] package org.apache.commons.httpclient.util does not exist
[ERROR] /D:/BWWorkspace/6.3.3/ipam-adapter/ipam.adapter/src/com/xyz/Utility.java:[16,45] cannot find symbol
symbol: variable URIUtil
location: class com.xyz.Utility
[ERROR] /D:/BWWorkspace/6.3.3/ipam-adapter/ipam.adapter/src/com/xyz/Utility.java:[19,45] cannot find symbol
symbol: variable URIUtil
location: class com.xyz.Utility
[ERROR] /D:/BWWorkspace/6.3.3/ipam-adapter/ipam.adapter/src/com/xyz/Utility.java:[45,37] cannot find symbol
symbol: variable Base64
location: class com.xyz.Utility
[INFO] 5 errors

Both the packages "org.apache.commons.codec.binary" and "org.apache.commons.httpclient.util" are mentioned in the imported packages section of the Dependencies tab of the module descriptors. The studio is saying that these two plug-in dependency jar (com.tibco.tpcl.org.apache.codec_1.7.0.001/commons-codec-1.7.jar and com.tibco.tpcl.org.apache.commons.httpClient_3.10.0.001/commons-httpclient-3.1.jar ) files are available <TIBCO_HOME>/bw/6.3/system/shared folder. But the maven is not able to find it.

Add issue template for github repo

There is no template for GitHub Maven repo and all issues are uncategorized. Adding an Issue template will help identify bugs/ enhancements/ questions.

Binary Shared Module support

Usecase 1: User would like to have their binary shared modules exported in zip format for consumers to consume them.

Usecase 2: User would like to automatically build and include the version of binary shared module specified in the manifest file in a CI/CD pipeline.

Lack of support for environment variables

Hi,

In a PCF manifest.yml file, environment variables are set like this:

env:
  BW_LOGLEVEL: ERROR
  BW_PROFILE: PCF

There is no currently support for setting these values in the plugin, or reading them from the properties files. Instead they need to be hardcoded in the pom.xml like this:

<env>
  <BW_LOGLEVEL>ERROR</BW_LOGLEVEL> 
  <BW_PROFILE>PCF</BW_PROFILE> 
</env>

This means it is impossible to use different values in different environments, defeating the purpose of using environment variables in the first place.

Could the ability to set environment variables in properties files and dialogs be added to this plugin please.

Thanks.

Using profiles in Maven Deployment command

Hi,
How to use this BW admin command in Maven to include profiles during deployment?

bwadmin deploy -d domainName -a appspaceName –pf C:/application_default.substvar application_CLE_1.0.0.ear

Business Works 6.3 - maven plugin for Windows

I have installed the Maven plugin 1.1.0 from https://github.com/TIBCOSoftware/bw6-plugin-maven/. When I'm trying to generate POM file in Business Works 6.3.3 I'm getting errors in that POM file and I cannot enter the deployment details. These are the errors

->Project build error: Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Failed to collect dependencies at com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 -> org.apache.maven:maven-plugin-api:jar:3.3.3

->Project build error: Unknown packaging: bwear

->Error resolving version for plugin 'org.apache.maven.plugins:maven-site-plugin' from the repositories [local (D:\Users\vaira.v.m2\repository), central (https://repo.maven.apache.org/maven2)]: Plugin not found in any plugin repository

BW6.3 Maven Plugin for OSX

Hi,
I'm trying to install BW6.3 on OSX but fails. Reading the README (https://github.com/TIBCOSoftware/bw6-plugin-maven) I can't find anything related to OSX. Can you confirm whether Maven Plugin is available for OSX?

Below log of "install.sh":
mbpdanabb:TIB_BW_Maven_Plugin_1.0.0 $ ./install.sh

Starting Plugin Code for Apache Maven and TIBCO BusinessWorks™ installation ....

Buildfile: /Users/dabbate/Downloads/TIBCO/BW/6.3/Maven/TIB_BW_Maven_Plugin_1.0.0/build.xml

BUILD FAILED

" does not exist in the project "main".

Total time: 0 seconds

Cannot find environment property file 'docker-host-env-dev.properties'

Trying to run Maven Build from Studio to build docker image and start the docker container.

docker:start goal fails due to error -
Failed to execute goal io.fabric8:docker-maven-plugin:0.14.2:start (default-cli) on project com.tibco.bwce.banq.account.service.application: Execution default-cli of goal io.fabric8:docker-maven-plugin:0.14.2:start failed: Failed to create contained configuration for [tibco/bwce/banq]: Cannot find environment property file 'docker-host-env-dev.properties'

Workaround:

  • Copy 'docker-host-env-dev.properties' file to %%bw.application%%.parent
    OR
  • Run docker:build goal from %%bw.application%%.parent directory and then run docker:start goal from %%bw.application%%

Environment details
Maven Plugin version: 1.2.0

Maven version: 2.3.1

Product : TIBCO Businessworks Container edition

Product version: 2.2.0

Debug Output

ERROR] DOCKER> Error occurred during container startup, shutting down...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] com.tibco.bwce.banq.account.service.application.parent SUCCESS [ 0.641 s]
[INFO] com.tibco.bwce.banq.account.service ................ SUCCESS [ 1.151 s]
[INFO] com.tibco.bwce.banq.account.service.application .... FAILURE [ 7.346 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.326 s
[INFO] Finished at: 2017-02-09T06:03:16-05:00
[INFO] Final Memory: 26M/385M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.14.2:start (default-cli) on project com.tibco.bwce.banq.account.service.application: Execution default-cli of goal io.fabric8:docker-maven-plugin:0.14.2:start failed: Failed to create contained configuration for [tibco/bwce/banq]: Cannot find environment property file 'docker-host-env-dev.properties' -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.fabric8:docker-maven-plugin:0.14.2:start (default-cli) on project com.tibco.bwce.banq.account.service.application: Execution default-cli of goal io.fabric8:docker-maven-plugin:0.14.2:start failed: Failed to create contained configuration for [tibco/bwce/banq]
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal io.fabric8:docker-maven-plugin:0.14.2:start failed: Failed to create contained configuration for [tibco/bwce/banq]
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 20 more
Caused by: java.lang.IllegalArgumentException: Failed to create contained configuration for [tibco/bwce/banq]
at io.fabric8.maven.docker.service.RunService.createContainerConfig(RunService.java:246)
at io.fabric8.maven.docker.service.RunService.createAndStartContainer(RunService.java:96)
at io.fabric8.maven.docker.StartMojo.executeInternal(StartMojo.java:85)
at io.fabric8.maven.docker.AbstractDockerMojo.execute(AbstractDockerMojo.java:164)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
... 21 more
Caused by: java.lang.IllegalArgumentException: Cannot find environment property file 'docker-host-env-dev.properties'
at io.fabric8.maven.docker.access.ContainerCreateConfig.addPropertiesFromFile(ContainerCreateConfig.java:169)
at io.fabric8.maven.docker.access.ContainerCreateConfig.environment(ContainerCreateConfig.java:66)
at io.fabric8.maven.docker.service.RunService.createContainerConfig(RunService.java:236)
... 25 more
[ERROR]
[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/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :com.tibco.bwce.banq.account.service.application
[DEBUG] Connection manager is shutting down
[DEBUG] http-outgoing-0: Close connection
[DEBUG] http-outgoing-0: Close connection
[DEBUG] Connection manager shut down

Maven plugin for BW6.3 sets the application version of the Shared Module instead of the Application

Hi,

Problem:

When generate an EAR using Maven package goal, the version of the application inside the EAR is set to the version of the Shared Module instead of the version of Application.

Expectation:

On our real project several applications have the same Shared Modules as dependency. We can’t change the version of Shared Modules since they have their own lifecycle.

Evidence:

Tea Application Version 3.0.0.datetime
Image of tea_application_version.png

Application Version 5.0.0.datetime
Image of Application_Overview.png

Application Module Version 5.0.0.datetime
Image of ApplicationModule_Overview.png

Shared Module Version 3.0.0.datetime
Image of SharedModule_Overview.png

How to reproduce:
0. Pre-requisites:

 a. Maven installed
 b. BW Maven Plug-in installed (https://github.com/TIBCOSoftware/bw6-plugin-maven)
 c. BW 6.3.0 HF2
  1. Create a new workspace called workspace_sr_maven
  2. Import sr_maven.zip(https://drive.google.com/open?id=0B9RIgsiVuX1EZExrT2xwVzdZZ0E) with projects into that new workspace.
  3. Right-Click on ServiceProject.application and select “Generate POM from Application”. The version of this module is 5.0.0.qualifier.
    Image of Generate POM from Application
  4. Open Run/Debug Configurations. Create a new Maven Build.
  5. Under the "Base directory" choose add variable for Workspace location. The variable name is ${workspace_loc}.
  6. In the Goal enter the Goal to be executed: package
  7. Click Debug. This will create the EAR file in the target folder under the Application project - 'Refresh' your project using the right-click menu if this folder is not visible.
  8. Upload the ServiceProject.application_5.0.0.ear into TEA and check that the application version is wrong (3.0.0.datetime instead of 5.0.0.datetime).

Regards,
Pedro

BW6 Maven EAR uploading issue

Hi,

We have following ENV:
Environment:

TIB_BW_6.3.1_win_x86_64
TIB_BW_6.3.1_HF-001
TEA Version: 2.2.0-HF5

Problem Description:

  1. We have installed maven plugin
  2. generated a pom.xml for application
  3. generated EAR file using Maven build target: package
  4. we have the following error while uploading the EAR to TEA domain.

Error TIBCO-THOR-FRWK-CMN-500000: java.lang.IllegalArgumentException: invalid version "null": non-numeric "null"

Could you please help us to solve the problem?

Thanks,
Suneel.

BW6.3.3 project Maven deployment issue

Hi Folks,

I have installed the Maven plugin for BW 6.3.3 using the instructions from https://github.com/TIBCOSoftware/bw6-plugin-maven

I have also installed TEA, started it, registered bwagent and created domain POC_Domain and Appspaces and AppNodes.

I created a test project with Greetings Web service. I am able to deploy to the domain from the eclipse after configuring the deployment servers for my BWMetaspace and POC_Domain.

Now the issue is with deploying using Maven.

I have converted the project to a Maven project and generated POM also.

While generating the POM, it has asked me for the Domain Details and I have provided my local domain and BW agent details. All these are in the POM.xml

When I do a maven install, it is failing with the following error. It is able to generate the ear but unable to upload and deploy the same to the domain.

[ERROR]

com.tibco.bw.maven.plugin.admin.client.ClientException: TIBCO-THOR-FRWK-CMN-500000: java.lang.IllegalArgumentException: invalid version "null": non-numeric "null" (400)
at com.tibco.bw.maven.plugin.admin.client.RemoteDeployer.uploadArchive(RemoteDeployer.java:530)
at com.tibco.bw.maven.plugin.admin.client.RemoteDeployer.addAndDeployApplication(RemoteDeployer.java:301)
at com.tibco.bw.maven.plugin.application.BWEARInstallerMojo.execute(BWEARInstallerMojo.java:171)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
Test_Maven_Deployment.zip
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

'diagrams' folder not appearing in EAR

While generating the EAR manually, there is a 'resources' folder which has all the 'diagrams' of the .bwp in the Project.
In BW 6.3.2 it is of the extension '.bwd' and in BW 6.2.1 it is of the extension '.svg'.
This folder doesn't appear when generating the EAR from Maven. Any settings to be added in the POM to include these diagrams?
Please suggest,
Thanks.

Openshift support

Hi gents,

could we migrate fabric8 to version3, and add support for openshift as well, along with kubernetes.

regards,
Flo

com.tibco.plugins:bw6-maven-plugin:1.0.0 or one of its dependencies could not be resolved

After creating the maven build and running it for creating package i get the following errors

[INFO] Scanning for projects...
[INFO] Downloading: https://repo.maven.apache.org/maven2/com/tibco/plugins/bw6-maven-plugin/1.0.0/bw6-maven-plugin-1.0.0.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:1.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.tibco.plugins:bw6-maven-plugin:jar:1.0.0 @

I notice the path : https://repo.maven.apache.org/maven2/com/tibco is invalid.

Any idea how to solve this?

Managing multiple parent applications for shared modules used by more than one application

Description: If you have a shared module that is used by different applications in the workspace, you have always to create the pom file of the shared module before deploying it because the “parent” section is overwritten where the parent application is referenced

Maven Plugin version: 1.1.0

Maven version: 3.3.3+

Product : Both of TIBCO ActiveMatrix Businessworks 6 OR TIBCO Businessworks Container edition

Product version: BW 6.3.4, BWCE 2.2.0

Component: Maven Eclipse Plugin

Steps to reproduce the issue:

  1. Have a shared module "SM".
  2. Have 2 parent modules "PM1" and "PM2" that both use and depend on "SM".
  3. Create POM files for "PM1" & "PM2" and as a result for "SM" as well.
  4. Build "PM1" with "SM". Now try building "PM2" with "SM" without re-creating POM file.

Describe the results you received:
PM2 doesn't get built since SM's POM refers to PM1 and not PM2. SM POM needs to be re-created to refer to PM2 before building.

Describe the results you expected:
SM POM could have 2 parent applications - PM1 and PM2 and hence can be created once and used as required.

save root pom on svn

Hello,
I'm working with BW 6.3.1. I've mavenized my BW application. I need to save my BW application on SVN repository using BusinessStudio.
I don't know how to save the root pom, generated by default inside the workspace, because is not visible from the Business Studio Project Explorer.
In the image attached I circled in red the pom file visible in the file system and not visible in the Project Explorer.
fig1

How can I save on SVN the root pom using Business Studio?

Best regards,
Danilo

Sample BW6 project that uses maven

Can someone upload a sample BW6 project that uses maven to generate EAR file. When I run the maven build with “package” goal, it creates an EAR but the EAR file does not have the project jar and resources folder, it just has the META-INF folder.

Jenkins Maven Build integration with BWCE 2.1.0

I am using BWCE 2.1.0.
I am trying to use Jenkins to check-out and build ear and deploy to PCF.
While building the ear, I am getting below error. Please advise on how to integrate the plugin into Jenkins Maven build.

Error log from Jenkins Job:
[WARNING] Some problems were encountered while building the effective settings
[WARNING] Unrecognised tag: 'server' (position: START_TAG seen ...\r\n\t... @12:10) @ C:\Users\apuvvada.m2\settings.xml, line 12, column 10
[WARNING]
[INFO] Scanning for projects...
[INFO] Downloading: https://repo.maven.apache.org/maven2/com/tibco/plugins/bw6-maven-plugin/1.1.0/bw6-maven-plugin-1.1.0.pom
[WARNING] The POM for com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 is missing, no dependency information available
[INFO] Downloading: https://repo.maven.apache.org/maven2/com/tibco/plugins/bw6-maven-plugin/1.1.0/bw6-maven-plugin-1.1.0.jar
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar (165 KB at 31.4 KB/sec)
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Could not find artifact com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 in central (https://repo.maven.apache.org/maven2) @
[ERROR] Unknown packaging: bwmodule @ com.tibco.bw:CustomFunctions:[unknown-version], D:\BWCEGit\BWCE\BW_CE21_WS_NBCU_AlertMonitoring_1\CustomFunctions\pom.xml, line 12, column 14
[ERROR] Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Could not find artifact com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 in central (https://repo.maven.apache.org/maven2) @
[ERROR] Unknown packaging: bwmodule @ com.tibco.bw:EAI_AlertMonitoringAndOperations.module:[unknown-version], D:\BWCEGit\BWCE\BW_CE21_WS_NBCU_AlertMonitoring_1\EAI_AlertMonitoringAndOperations.module\pom.xml, line 12, column 14
[ERROR] Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Could not find artifact com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 in central (https://repo.maven.apache.org/maven2) @
[ERROR] Unknown packaging: bwear @ com.tibco.bw:EAI_AlertMonitoringAndOperations:[unknown-version], D:\BWCEGit\BWCE\BW_CE21_WS_NBCU_AlertMonitoring_1\EAI_AlertMonitoringAndOperations\pom.xml, line 12, column 14
@
[ERROR] The build could not read 3 projects -> [Help 1]
[ERROR]
[ERROR] The project com.tibco.bw:CustomFunctions:1.0.0-SNAPSHOT (D:\BWCEGit\BWCE\BW_CE21_WS_NBCU_AlertMonitoring_1\CustomFunctions\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Could not find artifact com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 in central (https://repo.maven.apache.org/maven2) -> [Help 2]
[ERROR] Unknown packaging: bwmodule @ com.tibco.bw:CustomFunctions:[unknown-version], D:\BWCEGit\BWCE\BW_CE21_WS_NBCU_AlertMonitoring_1\CustomFunctions\pom.xml, line 12, column 14
[ERROR]
[ERROR] The project com.tibco.bw:EAI_AlertMonitoringAndOperations.module:1.0.0-SNAPSHOT (D:\BWCEGit\BWCE\BW_CE21_WS_NBCU_AlertMonitoring_1\EAI_AlertMonitoringAndOperations.module\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Could not find artifact com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 in central (https://repo.maven.apache.org/maven2) -> [Help 2]
[ERROR] Unknown packaging: bwmodule @ com.tibco.bw:EAI_AlertMonitoringAndOperations.module:[unknown-version], D:\BWCEGit\BWCE\BW_CE21_WS_NBCU_AlertMonitoring_1\EAI_AlertMonitoringAndOperations.module\pom.xml, line 12, column 14
[ERROR]
[ERROR] The project com.tibco.bw:EAI_AlertMonitoringAndOperations:1.0.0-SNAPSHOT (D:\BWCEGit\BWCE\BW_CE21_WS_NBCU_AlertMonitoring_1\EAI_AlertMonitoringAndOperations\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Could not find artifact com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 in central (https://repo.maven.apache.org/maven2) -> [Help 2]
[ERROR] Unknown packaging: bwear @ com.tibco.bw:EAI_AlertMonitoringAndOperations:[unknown-version], D:\BWCEGit\BWCE\BW_CE21_WS_NBCU_AlertMonitoring_1\EAI_AlertMonitoringAndOperations\pom.xml, line 12, column 14
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException

Enhancement - Option to backup AppSpace

Hi,

I think it would be a nice enhancement to be able to backup the appspace which you are deploying to when using the plugin.
It would be nice to be able to specify a config (.ini) file for the appnode or appspace which is mentioned in the deployment too.

Would this be achievable?

POM.xml is not generating properly

Hi,

I have project with customeXpath function and one shared module. I tried to create a POM.xml file but the file got generated with out the dependency, I manually added the dependencies and created pom again not it was complaining about the bwear for application module, it was not allowing to change from UI so I manually updated POM.xml which fix the error after I ran the package goal which generated ear which was missing all the dependencies.

Maven Plugin Installation Exceptions

Hi,

I am trying to install the Maven Plugin by executing the install.bat file available in TIB_BW_Maven_Plugin_1.1.0.zip file and it is failing to download the plugin correctly.

Can you help me resolve this issue ?

M2_HOME & PATH Variables are set correctly.

Attached the log file under (C:\Program Files\tibco\studio\4.0\eclipse\configuration\1475097710659.log)

Here is the output after executing the install.bat ::::::

C:\tmp\BW6Build\bw6-plugin-maven-master\Installer\TIB_BW_Maven_Plugin_1.1.0>java -cp antpackage.jar org.apache.tools.ant.launch.Launcher
Buildfile: C:\tmp\BW6Build\bw6-plugin-maven-master\Installer\TIB_BW_Maven_Plugin_1.1.0\build.xml

getTibcoHome:
[echo]
[echo] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[echo] Installing Plugin Code for Apache Maven and TIBCO BusinessWorksÖ
[echo] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[echo]
[input]
[input] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[input]
[input] Input the path for Tibco Home here. Default will be C:/Program Files/tibco
[input]
[input] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[input]

 [echo] BW6

setupMacros:

vbuild.launcher.jar:

devbuild.launcher.jar:

studio-install:
[echo] Installing Eclipse M2E Plugin to Tibco Home
[exec] log4j:WARN No appenders could be found for logger (org.apache.http.impl.conn.SingleClientConnManager).
[exec] log4j:WARN Please initialize the log4j system properly.
[exec] The installable unit org.eclipse.equinox.p2.discovery.feature.feature.group has not been found.Installation failed.
[exec]
[exec] Application failed, log file location: C:\Program Files\tibco\studio\4.0\eclipse\configuration\1475097710659.log
[exec]
[exec] Result: 13
[exec] Installing bw6.maven.dependencies.feature.feature.group 1.0.0.001.
[exec] Operation completed in 2172 ms.
[exec] Installing org.eclipse.m2e.feature.feature.group 1.6.2.20151013-0836.
[exec] Installing org.eclipse.m2e.sdk.feature.feature.group 1.6.2.20151013-0836.
[exec] Installing org.eclipse.m2e.logback.feature.feature.group 1.6.2.20151013-0836.
[exec] Cannot complete the install because one or more required items could not be found.
[exec] Installation failed.
[exec] Software being installed: m2e - Maven Integration for Eclipse (includes Incubating components) 1.6.2.20151013-0836 (org.eclipse.m2e.feature.feature.group 1.6.2.20151013-0836)
[exec] Missing requirement: m2e Marketplace 1.6.2.20151013-0836 (org.eclipse.m2e.discovery 1.6.2.20151013-0836) requires 'bundle org.eclipse.equinox.p2.ui.discovery 0.0.0' but it could not be found
[exec] Cannot satisfy dependency:
[exec] From: m2e - Maven Integration for Eclipse (includes Incubating components) 1.6.2.20151013-0836 (org.eclipse.m2e.feature.feature.group 1.6.2.20151013-0836)
[exec] To: org.eclipse.m2e.discovery [1.6.2.20151013-0836]
[exec] Application failed, log file location: C:\Program Files\tibco\studio\4.0\eclipse\configuration\1475098014470.log
[exec]
[exec] Result: 13
[echo] UnInstalling the existing version of Plugin Code for Apache Maven and TIBCO BusinessWorksÖ
[exec] The installable unit bw6.studio.maven.feature.feature.group has not been found.
[exec] Installation failed.
[exec] Application failed, log file location: C:\Program Files\tibco\studio\4.0\eclipse\configuration\1475098018906.log
[exec]
[exec] Result: 13
[echo] Installing Studio Plugin for Plugin Code for Apache Maven and TIBCO BusinessWorksÖ to the Tibco Home
[exec] Installing bw6.studio.maven.feature.feature.group 1.1.0.201605061954.
[exec] Cannot complete the install because one or more required items could not be found.Installation failed.
[exec] Software being installed: TIBCO BusinessWorksÖ Studio Feature for Maven 1.1.0.201605061954 (bw6.studio.maven.feature.feature.group 1.1.0.201605061954)
[exec] Missing requirement: TIBCO BusinessWorksÖ Studio Plugin for Maven 1.1.0.201605061954 (bw6.studio.maven.plugin 1.1.0.201605061954) requires 'bundle org.eclipse.m2e.core [1.3.1,2.0.0)' but it could not be found
[exec] Cannot satisfy dependency:
[exec] From: TIBCO BusinessWorksÖ Studio Feature for Maven 1.1.0.201605061954 (bw6.studio.maven.feature.feature.group 1.1.0.201605061954)
[exec] To: bw6.studio.maven.plugin [1.1.0.201605061954]
[exec] Application failed, log file location: C:\Program Files\tibco\studio\4.0\eclipse\configuration\1475098021842.log
[exec]
[exec]
[exec] Result: 13

maven-install:
[echo] Installing Maven Plugin for Plugin Code for Apache Maven and TIBCO BusinessWorksÖ to Local Maven Repository
[unzip] Expanding: C:\tmp\BW6Build\bw6-plugin-maven-master\Installer\TIB_BW_Maven_Plugin_1.1.0\config\bw6-maven-plugin.zip into C:\Program Files\tibco\bw\6.3\maven\plugins\bw6-maven-plugin

winInstall:
[exec]
[exec] C:\Program Files\tibco\bw\6.3\maven\plugins\bw6-maven-plugin>echo Installing Maven Plugin to Maven Repository
[exec] Installing Maven Plugin to Maven Repository
[exec]
[exec] C:\Program Files\tibco\bw\6.3\maven\plugins\bw6-maven-plugin>start cmd.exe /C mvn install:install-file -Dfile=com.tibco.bw.palette.shared_6.1.100.003.jar -DgroupId=com.tibco.plugins -DartifactId=com.tibco.bw.palette.shared -Dversion=6.1.100 -Dpackaging=jar
[exec]
[exec] C:\Program Files\tibco\bw\6.3\maven\plugins\bw6-maven-plugin>start cmd.exe /C mvn install:install-file -Dfile=com.tibco.xml.cxf.common_1.3.200.001.jar -DgroupId=com.tibco.plugins -DartifactId=com.tibco.xml.cxf.common -Dversion=1.3.200 -Dpackaging=jar
[exec]
[exec] C:\Program Files\tibco\bw\6.3\maven\plugins\bw6-maven-plugin>start cmd.exe /C mvn install:install-file -Dfile=bw6-maven-plugin-1.1.0.jar -DpomFile=pom.xml
[exec]
[exec] C:\Program Files\tibco\bw\6.3\maven\plugins\bw6-maven-plugin>start cmd.exe /C mvn install:install-file -Dfile=fabric8/fabric8-maven-plugin-2.2.102.jar -DpomFile=fabric8/pom.xml

linuxInstall:

maven-plugin-install:

setup:

BUILD SUCCESSFUL
Total time: 5 minutes 38 second

1475097710659.zip

Question:- Deploying in multiple appnodes

Hi,

Does this plugin support deployment of a single application across 2 appnodes ( in 2 different servers) ?

How to give multiple BW Host names and appnode names in the pom.xml.
(Single appspace spread across 2 machines and each machine contains an appnode)
Maven Plugin version: 1.1.0

Maven version: 3.3.9

Product : Either of TIBCO ActiveMatrix Businessworks 6

Product version: 6.3.3

Component: Either of Maven Eclipse Plugin or Maven build plugin

Additional environment details if any:
(Single appspace spread across 2 machines and each machine contains an appnode)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.