Forge Arquillian plugin 2.0 BETA 1
I’m happy to release the first beta of the 2.0 version of the Arquillian Forge plugin on the last day of the year.
What’s new?
Forge Beta5 compatibility
Forge is getting close to final and we are making the latest API changes, which unfortunately broke some plugins. The 2.0 version of the Arquillian plugin works with the latest and greatest release again.
More containers and easier maintenance
The amount of containers supported by Arquillian starts to be a little overwhelming. It’s absolutely great to see the community building support for more and more containers. This started to be a problem for maintaining the Forge plugin however. It’s hard to track compatibility issues with containers if I’m not actively using them myself. In the previous version of the plugin the support for each container was hard coded. There is nothing really wrong with that, but it’s hard for other developers to help out by fixing or creating support for a new container; first of all you would need to know something about writing Forge plugins.
In the 2.0 version of the plugin all containers are described in a JSON format. Adding a new container is as simple as adding the container description to this JSON file, making it trivial for anyone to contribute on this. It gets even better; when the new Arquillian website goes live at some point in the future, the containers will be parsed from the documentation directly. Simply documenting a container would be enough to add support to the plugin.
For the release of this beta I added support for all containers listed in the documentation. Note however that some of the documentation is outdated and not working. It would be great if people contribute patches to the container configuration JSON file.
Container configuration
In Arquillian containers can be configured in arquillian.xml. Here you can set hostnames, ports, usernames etc. depending on the container’s capabilities. Forge now helps setting those properties.
Simply type:
arquillian configure-container --profile [maven-profile-id]
Of course you can use the TAB key to choose from the Maven profiles in your POM. Forge will now prompt which configuration option you want to set and lists all possible options for that specific container including it’s type and description. Choose an option and type a value. Forge adds this to the arquillian.xml file.
Try it!
Make sure you have the latest Forge release installed. In Forge simply type:
forge install-plugin arquillian