Message Boards

how to include external jars in maven plugin of 7.1

thumbnail
Limbadri Bolishetty, modified 4 Years ago.

how to include external jars in maven plugin of 7.1

New Member Posts: 13 Join Date: 7/12/14 Recent Posts
Hi,
I am migrating liferay 6.2 maven plugin to 7.1 maven still im using war only . i am getting bellow issue after deployment of my war.
i have one jar dependency in my plugin due to that dependency in getting bellow error
-10-18 12:07:30.356 ERROR [Refresh Thread: Equinox Container: 915480c3-c6c5-4089-ba1c-f804adbdbffc][ContextLoader:225] Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/classes/applicationContext.xml];: nested exception is java.lang.NoClassDefFoundErrororg/w3c/dom/DOMError
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)

     
<dependency>
            <groupId>XXXXX</groupId>
            <artifactId>XXXX</artifactId>
            <version>0.0.1-SNAPSHOT</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>

above jar is a maven project which contain dao classes ,Could you please help me to resolve this jar dependency in liferay 7.1 
If i change scope compile to provided my war is deploying successfully , but im getting classnotfound exception .