Maven Compile Fails With Java.lang.NoClassDefFoundError: Javax/el/ELContext
Last updated on JULY 13, 2018
Applies to:Oracle SOA Suite - Version 22.214.171.124.0 and later
Information in this document applies to any platform.
Maven compile fails with java.lang.NoClassDefFoundError: javax/el/ELContext
It can happen when trying to compile a SOA project that has references to a local file-based MDS.
The workaround is to manually add the javax.el dependency:
1. Navigate to ~/.m2/repository/com/oracle/soa/plugin/oracle-soa-plugin/12.2.1-3-0/oracle-soa-plugin-12.2.1-3-0.pom
2. After adding this dependency run mvn clean & mvn compile.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms