Hi guys, please help me in getting the solution. 1) i had put many jars like struts1.2.9.jar , junti.jar etc in a lib folder. then make it as colib.ear. 2) Then try to install as mvn install:install-file ���DgroupId=repackage.oracle.ebilling ���DartifactId=colib ���Dversion=6.0 ���Dpackaging=ear ���Dfile=colib.EAR
3) Then I found colib-6.0.EAR has been created in my repository as repo3\repackage\oracle\ebilling\ebilling\6.0\ colib-6.0.EAR
4) when i tried to compile with mvn packaging it gives that package org.apache.struts.action does not exist , though it is in the colib-6.0.ear. as it does not found the jars in the classpath 5) my pom file as below. and i have attached the pom file. i have mentioned that in dependancy tag.
Maybe I am misunderstanding something (or perhaps it is that your pom is not within code tags making it hard to read), but from what I see you are attempting to build using the EAR file as a dependency. You cannot do this - an EAR is not a JAR file, you cannot use an EAR as a compile dependency. If the compilation requires the struts classes, you need to mention them in your dependencies. At least, that is my understanding.