Scenario:
needs the Project B's class files in Project A.
https://stackoverflow.com/questions/33856571/how-can-i-use-classes-from-other-project-with-maven-classnotfoundexception-andarrow-up-right
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.
<packaging>war</packaging>
jar
Plus, add B to thedependenciesof A.
dependencies
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.
https://stackoverflow.com/questions/1769586/maven-war-dependency(ifarrow-up-right need war file)
Last updated 6 years ago