I want to use a class defined in external war file. I've put it into dependency list of my pom.xml
, specifying <type>war</type>
as well. However, during the compilation of the source code it does not find the import, I receive cannot find symbol
error message. Does anyone know how to use classes defined in an external war?
Asked
Active
Viewed 444 times
2

Csaba Faragó
- 443
- 1
- 4
- 14
-
I think this is what you need : https://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html – Rajesh Hatwar Apr 15 '16 at 05:18
-
You can refer this link http://stackoverflow.com/questions/1769586/maven-war-dependency – Rajesh Hatwar Apr 15 '16 at 05:23
-
Thank you for your comments; the second one helped! Please add it as an answer and I accept as solution. – Csaba Faragó Apr 15 '16 at 07:07