Visit our blog

News & Events

Cloud Foundry Maven Plug-in version 1.0.0.M3 Released

The Cloud Foundry Maven plug-in continues to evolve. It was recently updated and released as a new milestone version 1.0.0.M3. We'd like to thank Gunnar Hillert from the Spring Integration Team for providing guidance and new features. We would also like to thank Ali Moghadam from the Cloud Foundry Support Team for taking over some of the development tasks and contributing the new features in M3.

We never properly announced the 1.0.0.M2 release so we include the change log for this release here as well.

The major new features are as follows:

  • Support for stand-alone applications as well as frameworks other than Spring
  • Ability to specify runtime - great for Java 7 or even Node or Ruby apps
  • Option to list log output for app
  • Support for creating and deleting services
    • To facilitate this the format for the entry in the configuration has changed to include one or more entries where you can specify name, vendor, version and tier (version and tier are optional). The old format where you specified just the service names is deprecated and you need to rewrite the configuration to use this new release.
    • here is an example creating a MySQL service:
    • <services>
        <service>
          <name>mydata</name>
          <vendor>mysql</vendor>
        </service>
      </services>

Change logs for the two most recent releases:

Changes from version 1.0.0.M1 to 1.0.0.M2

  • Added Framework configuration parameter (-Dcf.framework) which allows to set the framework for the application. It defaults to spring.
  • Added ability to deploy not only war-files but also point to directories and deploy those
  • Add support for deployments of stand-alone applications by specifying standalone as the framework
  • Deprecated warfile as now you can deploy stand-alone applications as well. Behavior is equal to the path property.
  • Added path configuration property (-Dcf.path).
  • Added Runtime property (-Dcf.runtime). It defaults to 'java' but technically you could also use the Maven Plugin to deploy e.g. Node and Ruby applications.
  • Improved cf:info Maven goal. It will now show a list of available frameworks and system services, as well as a list of available runtimes*
  • instances property now defaults to 1.

Changes from version 1.0.0.M2 to 1.0.0.M3

  • Added Services configuration parameter which allows to add services. The default values are name and vendor.
  • Modified the cf:push goal to take the services configuration and create the services if not created and bind them to the application.
  • Added cf:logs goal which shows the log files of the application listed in either the configuration parameter.
  • Added cf:services goal which shows the list of available services along with provisioned ones.
  • Added cf:create-services goal which creates services listed in the configuration parameter in the pom file.
  • Added cf:delete-services goal which deletes the services created using the services configuration parameter in the pom file.

To use this Maven plug-in see the project page -- https://github.com/cloudfoundry/vcap-java-client/tree/master/cloudfoundry-maven-plugin

 

Newsletter Subscription

Our monthly newsletter is packed full of techniques, tutorials, tips and tricks to get you on your way to Spring nirvana. View Archive

Upcoming Training