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
------------------------------