using another project's class
Last updated
Was this helpful?
Last updated
Was this helpful?
Scenario:
needs the Project B's class files in Project A.
could use B's jar file as external library in A.
try to remove<packaging>war</packaging>
from B? Maven's default packaging isjar
, and this is what you need for B.
Plus, add B to thedependencies
of A.
Build B project. use
mvn clean install
, that would install B's JAR+POM in your local repository (.m2).
Verify it is there... Then Maven will be able to find it, so you will not get the error "Could not find artifact de.qufis:CentwertApp"
Build A.
Usually, dependencies are of type JAR. If B must be a WAR.
need war file)