|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
maven iib help |
« View previous topic :: View next topic » |
Author |
Message
|
poornimaj85 |
Posted: Thu Oct 06, 2016 9:31 pm Post subject: maven iib help |
|
|
Newbie
Joined: 06 Oct 2016 Posts: 2
|
HI,
I am using eclipse neo and trying to run maven project to create bar file and facing this below error.
INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal ch.sbb.maven.plugins:iib-maven-plugin:9.0-SNAPSHOT:package-bar (default-package-bar) on project xyz-iib-commons-lib: org.apache.maven.plugin.MojoFailureException: Unable to execute command(s): [cmd, /c, c:\Program Files\IBM\IIB\10.0.0.6\server\bin\mqsiprofile.cmd, &, cmd, /c, mqsicreatebar, -data, C:\EclipseWorkSpace\iib\xyz-iib-commons-parent\xyz-iib-commons-lib\.., -compileOnly] : org.apache.maven.plugin.MojoFailureException:
[ERROR] MQSI 10.0.0.6
[ERROR] c:\Program Files\IBM\IIB\10.0.0.6\server
[ERROR]
[ERROR] BIP0957E Incorrect arguments supplied to mqsicreatebar.
[ERROR]
[ERROR] You must supply the "-b <barName>" parameter.
[ERROR]
[ERROR]
[ERROR] BIP0955I Compile a broker archive file from source.
[ERROR] Syntax: mqsicreatebar -data workspace -b barName [-version id] [-esql21]
[ERROR] [-p projectName [...]] -o filePath1 [filePath2 [...]]
[ERROR] Command Options:
[ERROR] '-data workspace' workspace location (Mandatory)
[ERROR] '-b barName' bar file name to create or replace
[ERROR] '-cleanBuild' refresh the workspace projects and perform a clean build before adding
[ERROR] '-version id' appends '_' and id to compiled names in the archive (optional)
[ERROR] '-esql21' compile ESQL for brokers version 2.1 (optional)
[ERROR] '-p projectName' specify projects containing files to link (optional, multiple
[ERROR] projects can be specified)
[ERROR] '-o filePath1' workspace relative path (including the project) of deployable
[ERROR] files to add to the broker archive. Multiple deployable files can be compiled
[ERROR] in a single mqsicreatebar command.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal ch.sbb.maven.plugins:iib-maven-plugin:9.0-SNAPSHOT:package-bar (default-package-bar) on project xyz-iib-commons-lib: org.apache.maven.plugin.MojoFailureException: Unable to execute command(s): [cmd, /c, c:\Program Files\IBM\IIB\10.0.0.6\server\bin\mqsiprofile.cmd, &, cmd, /c, mqsicreatebar, -data, C:\EclipseWorkSpace\iib\xyz-iib-commons-parent\xyz-iib-commons-lib\.., -compileOnly] : org.apache.maven.plugin.MojoFailureException:
MQSI 10.0.0.6
c:\Program Files\IBM\IIB\10.0.0.6\server
BIP0957E Incorrect arguments supplied to mqsicreatebar.
You must supply the "-b <barName>" parameter.
BIP0955I Compile a broker archive file from source.
Syntax: mqsicreatebar -data workspace -b barName [-version id] [-esql21]
[-p projectName [...]] -o filePath1 [filePath2 [...]]
Command Options:
'-data workspace' workspace location (Mandatory)
'-b barName' bar file name to create or replace
'-cleanBuild' refresh the workspace projects and perform a clean build before adding
'-version id' appends '_' and id to compiled names in the archive (optional)
'-esql21' compile ESQL for brokers version 2.1 (optional)
'-p projectName' specify projects containing files to link (optional, multiple
projects can be specified)
'-o filePath1' workspace relative path (including the project) of deployable
files to add to the broker archive. Multiple deployable files can be compiled
in a single mqsicreatebar command.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
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: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.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.MojoFailureException: org.apache.maven.plugin.MojoFailureException: Unable to execute command(s): [cmd, /c, c:\Program Files\IBM\IIB\10.0.0.6\server\bin\mqsiprofile.cmd, &, cmd, /c, mqsicreatebar, -data, C:\EclipseWorkSpace\iib\xyz-iib-commons-parent\xyz-iib-commons-lib\.., -compileOnly] : org.apache.maven.plugin.MojoFailureException:
MQSI 10.0.0.6
c:\Program Files\IBM\IIB\10.0.0.6\server
BIP0957E Incorrect arguments supplied to mqsicreatebar.
You must supply the "-b <barName>" parameter.
BIP0955I Compile a broker archive file from source.
Syntax: mqsicreatebar -data workspace -b barName [-version id] [-esql21]
[-p projectName [...]] -o filePath1 [filePath2 [...]]
Command Options:
'-data workspace' workspace location (Mandatory)
'-b barName' bar file name to create or replace
'-cleanBuild' refresh the workspace projects and perform a clean build before adding
'-version id' appends '_' and id to compiled names in the archive (optional)
'-esql21' compile ESQL for brokers version 2.1 (optional)
'-p projectName' specify projects containing files to link (optional, multiple
projects can be specified)
'-o filePath1' workspace relative path (including the project) of deployable
files to add to the broker archive. Multiple deployable files can be compiled
in a single mqsicreatebar command.
at ch.sbb.maven.plugins.iib.mojos.PackageBarMojo.execute(PackageBarMojo.java:293)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
TOOLS -
eclipse neo
IIB 10.0.6
maven - 3.3.9
Can anyone please help me with this ? |
|
Back to top |
|
 |
adubya |
Posted: Thu Oct 06, 2016 10:54 pm Post subject: |
|
|
Partisan
Joined: 25 Aug 2011 Posts: 377 Location: GU12, UK
|
Well the error message is pretty explicit, the target bar file name isn't being specified when the Maven mojo invokes the mqsicreatebar command.
As to why it's operating that way..... Have you checked any configuration in the Maven plugin which controls the bar building ?
Edit: I see it's specifying the -compileOnly option which is intended to build message sets/Java ahead of packaging up a bar file. In this case a -b argument is probably not required. Have you tried executing the mqsicreatebar command on the command line ? _________________ Independent Middleware Consultant
andy@knownentity.com |
|
Back to top |
|
 |
poornimaj85 |
Posted: Thu Oct 06, 2016 11:16 pm Post subject: |
|
|
Newbie
Joined: 06 Oct 2016 Posts: 2
|
Thanks for reply.
I am not sure as where to edit . POM for this looks something like this .. if this help --
Code: |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.xyz.iib</groupId>
<artifactId>xyz-iib-commons-parent</artifactId>
<version>1.0.2-SNAPSHOT</version>
</parent>
<artifactId>xyz-iib-commons-lib</artifactId>
<properties>
<!--comment or uncomment mqsi.profile path specific to Operating System
where you intend to build the Integration Project -->
<!--To trigger builds using DevOps continuous Integration Server POC Environment
mqsi.profile must be set to Unix relative path -->
<!--Uncomment below tag when building in Unix Environment -->
<!--Uncomment below tag when building in Windows Environment -->
<mqsi.profile>c:\Program Files\IBM\IIB\10.0.0.6\server\bin\mqsiprofile.cmd</mqsi.profile>
</properties>
<packaging>iib-bar</packaging>
<profiles>
<profile>
<id>localdev</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<workspace>${basedir}/..</workspace>
<initialDeletes>**/*.jar</initialDeletes>
<unpackIibDependenciesIntoWorkspace>true</unpackIibDependenciesIntoWorkspace>
<pathToMqsiProfileScript>${mqsi.profile}</pathToMqsiProfileScript>
<mqsiPrefixCommands>true</mqsiPrefixCommands>
<failOnInvalidProperties>true</failOnInvalidProperties>
<useClassloaders>false</useClassloaders>
<failOnInvalidClassloader>true</failOnInvalidClassloader>
<createOrPackageBar>package</createOrPackageBar>
<completeDeployment>true</completeDeployment>
<timeoutSecs>600</timeoutSecs>
</properties>
</profile>
</profiles>
<build>
<plugins>
<plugin>
<groupId>com.coderplus.maven.plugins</groupId>
<artifactId>copy-rename-maven-plugin</artifactId>
<version>1.0.1</version>
<executions>
<execution>
<id>copy-file</id>
<phase>generate-sources</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<sourceFile>${basedir}/.project</sourceFile>
<destinationFile>${basedir}/.project-original</destinationFile>
</configuration>
</execution>
<execution>
<id>rename-file</id>
<phase>package</phase>
<goals>
<goal>rename</goal>
</goals>
<configuration>
<sourceFile>${basedir}/.project-original</sourceFile>
<destinationFile>${basedir}/.project</destinationFile>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>ch.sbb.maven.plugins</groupId>
<artifactId>iib-maven-plugin</artifactId>
<version>9.0-SNAPSHOT</version>
<extensions>true</extensions>
<configuration>
<workspace>${workspace}</workspace>
<initialDeletes>${initialDeletes}</initialDeletes>
<unpackIibDependenciesIntoWorkspace>${unpackIibDependenciesIntoWorkspace}</unpackIibDependenciesIntoWorkspace>
<pathToMqsiProfileScript>${pathToMqsiProfileScript}</pathToMqsiProfileScript>
<failOnInvalidProperties>${failOnInvalidProperties}</failOnInvalidProperties>
<useClassloaders>${useClassloaders}</useClassloaders>
<failOnInvalidClassloader>${failOnInvalidClassloader}</failOnInvalidClassloader>
<createOrPackageBar>${createOrPackageBar}</createOrPackageBar>
<!-- mqsideploy -n b1.broker -e default -a mybar.bar -m -w 600 -->
<completeDeployment>${completeDeployment}</completeDeployment>
<timeoutSecs>${timeoutSecs}</timeoutSecs>
<!-- if timeouts occur on broker, then try command: mqsichangebroker IB9NODE -g 300 -k 300 -->
<!-- to enable/disable decision services: mqsimode IB9Node -x DecisionServices -->
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.0.21</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.4</version>
</dependency>
<dependency>
<groupId>org.twdata.maven</groupId>
<artifactId>mojo-executor</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>com.ibm.broker.config.proxy</groupId>
<artifactId>IntegrationAPI</artifactId>
<version>10.0.0.6</version>
</dependency>
</dependencies>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
ch.sbb.maven.plugins
</groupId>
<artifactId>
iib-maven-plugin
</artifactId>
<versionRange>
[9.0-SNAPSHOT,)
</versionRange>
<goals>
<goal>
initialize-bar-build-workspace
</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<dependencies>
<dependency>
<groupId>com.xyz.iib</groupId>
<artifactId>xyz-iib-commons</artifactId>
<version>1.0.2-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.xyz.iib</groupId>
<artifactId>xyz-iib-dependencies</artifactId>
<version>1.0.2-SNAPSHOT</version>
<classifier>jar-with-dependencies</classifier>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project> |
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|