We've been having issues with the `ibmint` command, in the sense it doesn't "see" all the packaged java classes and fails to compile them in the `ibmint package` command.
Our project is setup is as follows:
Application A
- Resources:
- Java: JavaProjectA
[meaning app A has JavaProjectA as a managed project]
Within the JavaProjectA we have a jar file added [and is set as such in the build path]. Classes within JavaProjectA are able to import and use classes from the jar file. No issues are reported by the toolkit and it helps with auto-completion and similar assistance.
Within Application A, we use java compute nodes that reference our classes from JavaProjectA [again, no errors in the toolkit], as well as mapping files that use java custom transformation.
Attempts to package give a limited error:
λ ibmint package --input-path ./ApplicationA --output-bar-file ../a.bar
BIP8409I: Compiling Java project 'c:\Projects\ace\ApplicationA\JavaProjectA'
c:\Projects\ace\ApplicationA\JavaProjectA\gen\MyInternalApi.java:3: error: package x.y.z.config does not exist
import x.y.z.config.ConfigureRestApicCall;
^
If we use the `ibmint package` with the `--do-not-compile-java` it works, however the final package lacks the required java classes from JavaProjectA.
The same project setup works without issues in the old platform [IIB, using `mqsicreatebar` command].
------------------------------
Vid Romac
------------------------------
Original Message:
Sent: Mon February 28, 2022 08:25 AM
From: Trevor Dolby
Subject: Packaging message set and java project into bar in containerized environment.
Hello,
It looks like you're using ACE v12, and so the new ibmint command might do what you need. It is able to compile Java as well as message sets, including MRM message sets.
I've thrown together a quick example at https://github.com/tdolby-at-uk-ibm-com/ace-mrm-compile-example to illustrate how to use the command (developed on Linux and verified on Windows). It looks like you could replace both of your commands with a single ibmint deploy as shown in that repo.
Would be good to hear if it works, or what happened if it doesn't work.
------------------------------
Trevor Dolby - IBM App Connect Development
Original Message:
Sent: Sun February 27, 2022 03:45 AM
From: Anoop C Pillai
Subject: Packaging message set and java project into bar in containerized environment.
Dear All,
We are running the ACE services on top of the openshift containerized platform. The services are pushed into git and Jenkins will do the deployment. With help of a Docker file, building an ACE image and running the container.
Anybody can suggest how to create a bar for message set with docker file.
I tried the below and its not working as expected.
BBISO8583_0800MsgSetPrj is my message set.
# Build bar ATM_NetworkManagementApp
# ------------------------------
RUN bash -c 'mqsipackagebar -w /home/aceuser/ -a /home/aceuser/bars/ATM_NetworkManagementApp.bar -k ATM_NetworkManagementApp -y BBISO8583_0800MsgSetPrj'
#validate the bar. it is correctly build or not
RUN bash -c 'mqsicreateworkdir /home/aceuser/ace-server && mqsibar -w /home/aceuser/ace-server -a /home/aceuser/bars/ATM_NetworkManagementApp.bar -c'
# --------------------------------------------------------------
Note : mqsicreatebar is not available in the ACE image to compile message set.

Thanks,
Anoop
------------------------------
Anoop C Pillai
------------------------------