jboss-webserver30-tomcat8-openshift assemble script failed

Solution In Progress - Updated -

Issue

  • The image jboss-webserver30-tomcat8-openshift assemble script always fails because the mvn binary not in the default PATH anymore. We have made the following workaround in the BuildConfig to get it to work:
env:
        - name: PATH
          value: >-
            /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/rh/rh-maven33/root/bin
  • Maven not find in openshift jboss images:
# docker run -ti registry.access.redhat.com/jboss-webserver-3/webserver30-tomcat8-openshift:latest bash
    [jboss@d6d9e2b594e0 ~]$ mvn
    bash: mvn: command not found

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.