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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content