Just following up on Regal’s post. Is there any plan to add the Maven plugin to core 20 (or perhaps core22)? At some point we java/maven developers will need to get off of core18.
The parts lifecycle was extracted from Snapcraft to the craft-parts library, and most plugins are now defined there (except plugins that are specific to snaps, such as ROS – these will still be in Snapcraft). Snapcraft 7 uses this library to create core22 snaps.
Hello all. With support stopping for 18.04LTS in a few months, is there plans to support maven in core22 and onwards? I’m really enjoying deploying via snaps, but without maven support, I’ll probably need to stop in April.
I’d appreciate it if the devs can let us Java programmers know your plans moving forward.
For Core22 I see the following:
frosty@odin[~]$ snapcraft list-plugins
Displaying plugins available for 'core22'
autotools
cmake
dotnet
dump
go
meson
make
nil
npm
python
rust
colcon
conda
I’ve also posted this request for an update on the GitHub discussion per @cmatsuoka 's comments above.
Thank you,
Some news on the core22 maven plugin: we have some initial code that reuses common infrastructure created for the ant plugin, and core22 dirsize seems to be working as expected:
It took a while but an implementation of the Maven plugin for core22 just landed on the Snapcraft repository and should be available for testing in the edge channel soon. Please test and report problems so we can fix them before the next stable version is released.
There are some differences in this plugin compared to the old core18 plugin, and the main one is that the JDK and JRE should now be provided manually (in most cases this means listing them in build-packages and stage-packages, but you can also do a custom install to use something that’s not from the distribution archives).
You may also want to add a lint filter to prevent Snapcraft from showing false positives about missing libraries, something like the following should work:
Make sure you’re using Snapcraft from the edge channel (snap refresh snapcraft --edge). The new plugins are not available in the stable channel yet. You’ll also need to manually expand filesets until it’s implemented for base core22.