How to build a maven project on Openshift?

Solution Verified - Updated -

Issue

  • When trying to build a maven project on Openshift below error is seen :
remote: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project web: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]
  • How to modify pom.xl to built a maven project on Openshift.

Environment

  • Openshift Enterprise
    • 2.x
    • 1.x
  • Openshift Online

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.