exclude xml-apis dependency in maven

The xml-apis version 1.0xxx is referenced by multiple hibernate artifacts like hibernate-core, hibernate-entitymanager etc. It is annoying because it would conflict with the JRE’s own javax.xml api in the rt.jar which would cause problems like xml cannot parse. We need to be extra careful about it since it usually is introduced thru transitive dependencies. Definitely…

CommonJS wrapper and AMD define

RequireJS has many ways of defining a module, this document will cover the 2 ways of defining a module which contain dependencies, the standard AMD define and the simplified CommonJS wrapper, both ways can be used on the same project and toggled at will, but it’s important to understand how both patterns differs and the…

maven create executable jar with dependency

was trying to use intellij built in jar builder with my standalone executable jar. but seems something wrong with it. Had to use mvn for it . below are the steps: Herewe useĀ maven-shade-plugin, in Pom.xml: run : mvn clean package we can get the jar file in the target folder. The Manifest.MF file specifies the…

add oracle odbc to maven repository

If you are using Oracle, you must first install your Oracle JDBC driver in your local Maven repository. Here is how to proceed: Step 1- Download the Oracle JDBC driver Please download manually the Oracle JDBC driverĀ from Oracle web site. Step 2- install your Oracle JDBC driver in your local Maven repository We follow the…