Here’s the latest WebSphere Liberty beta and WebSphere Developer Tools (WDT).
Thanks to your support for our regular beta programme, we are able to release new Liberty features every few months. Most recently, in March.
Look out for more betas over the coming months.
Whatâ€™s in the WebSphere Liberty beta for March?
Rapid development using the Liberty Maven plugin and WDT for Eclipse
Weâ€™ve made significant updates to the
liberty-maven-plugin and Eclipse tools to improve the developer experience when working with WebSphere Liberty in a Maven environment. The
liberty-maven-plugin has been updated to include Loose Application support for web applications that enables the WebSphere Liberty runtime to process updates lightning fast! The Eclipse tools can now detect Maven web application projects that are configured to work with the new
liberty-maven-plugin and will automatically create a server in the workbench. You can then iteratively develop and debug your web application within Eclipse and then build and package your application using Maven. The end result is a cohesive Maven development experience. Weâ€™ve got more coming so stay tuned for updates! Let us know what you think on the WASDev community forums.
To try out the new experience simply follow these steps:
- Add the following content to a new or existing
settings.xmlfile in the
<settings> <profiles> <profile> <id>sonatype-snapshots</id> <activation> <activeByDefault>true</activeByDefault> </activation> <pluginRepositories> <pluginRepository> <id>sonatype-snapshots-repo</id> <name>Sonatype Snapshots Repository</name> <url>https://oss.sonatype.org/content/repositories/snapshots/</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> </pluginRepositories> <repositories> <repository> <id>sonatype-nexus-snapshots</id> <name>Sonatype Nexus Snapshots</name> <url>https://oss.sonatype.org/content/repositories/snapshots/</url> <snapshots> <enabled>true</enabled> </snapshots> <releases> <enabled>false</enabled> </releases> </repository> </repositories> </profile> </profiles> <activeProfiles> <activeProfile>sonatype-snapshots</activeProfile> </activeProfiles> </settings>
- Use the following command to generate the sample project from an archetype:
mvn archetype:generate -DarchetypeGroupId=net.wasdev.wlp.maven -DarchetypeArtifactId=liberty-archetype-webapp -DarchetypeVersion=2.0-SNAPSHOT -DgroupId=ServletSample -DartifactId=ServletSample -Dversion=1.0
mvn installon your project
Import your project into the WDT March Beta using
File > Importâ€¦ > Existing Maven Projects
After importing your project a server will get automatically generated in the Servers view with your application already published.
You can now efficiently develop your application within the workbench whilst reaping the benefits of Maven.
Here are some things you can try:
- Run your web application by opening the context menu on a resource in the Project Explorer view and selecting Run As > Run On Server.
- Make updates to a resource and see the server pick up the changes on-the-fly.
- Debug your web application by setting a breakpoint in your code and using the Debug As > Debug On Server action.
- Perform actions like Start, Stop, and Open Log Files on the generated server in the Servers view.
- If you run
mvn clean, or any other goal from within the workbench that causes the Liberty files to be deleted, the server and its associated runtime will be automatically removed from the workbench. Running
mvn installor one of the
liberty-maven-plugingoals that re-installs the server will reinstate the server in the Servers view. Note: Maven commands executed from outside of Eclipse will require refreshing the Project Explorer view in order for the workbench to process the changes.
MicroProfile Config feature
microProfileConfig-0.1 feature, you can directly use the Config APIs to retrieve configuration without the need to know where the properties are defined. The properties can be dynamically updated and then retrieved by the applications without the application restarting. The configuration can be located in multiple sources, and has a priority system. If the same property is specified in multiple config sources, the value from the config source with the highest priority will be used. The properties can be overwritten by users in different environments.
MicroProfile Fault Tolerance feature
microProfileFaultTolerance-0.1 feature, you can make the service invocation resilient via retry, fallback, timeout, circuit breaker and bulkhead functionalities. If a service invocation fails, a retry can be performed. After some retries, a fallback operation can be specified. Indefinite waiting is no longer a problem as the timeout can be specified on service invocation. Repeating timeouts are solved by the functionality of the circuit breaker. You will not need to package fault tolerance libraries into your applications any more.
Whatâ€™s already in there?
The February 2017 beta included JPA container 2.1, Transport Security 1.0, an Admin Center update, Logstash Collector and Bluemix Log Collector updates, a Liberty: Audit extension, the isoDateFormat option and a Spnego 1.0 update.
Take a look at the previous beta announcements for a full list of stuff added since the 220.127.116.11 release in June 2016:
- February 2017 beta
- January 2017 beta
- December 2016 beta
- November/December 2016 beta
- November 2016 beta
- October 2016 beta
- September 2016 beta
- August 2016 beta
- July 2016 beta
- June 2016 beta