study notes
  • Introduction
  • Oct 14, 2016
  • Oct 22, 2016
  • Oct 27
  • Nov1
  • j2ee context root(4.19.2017)
  • June 20, 2017(bTrade debug record)
  • Sep 5, 2017
  • Jan 4, 2018
  • Jan 5, 2018Deploy war file to Tomcat
  • Jan 13,2018, hibernate config
  • conflict caused by PR
  • using another project's class
  • intellij cannot resolve the symbols in target folder
  • keyboard symbol
  • Oct 31, 2018
  • tax build construction simplify &effecticent
  • line ending
  • memory leak
  • Serializable
  • To learn
  • What happens when you type 'google.com' into a browser and press Enter?
  • security scan for software
Powered by GitBook
On this page

Was this helpful?

using another project's class

Previousconflict caused by PRNextintellij cannot resolve the symbols in target folder

Last updated 5 years ago

Was this helpful?

Scenario:

needs the Project B's class files in Project A.

  1. could use B's jar file as external library in A.

  2. 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 thedependenciesof 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)

https://stackoverflow.com/questions/33856571/how-can-i-use-classes-from-other-project-with-maven-classnotfoundexception-and
https://stackoverflow.com/questions/1769586/maven-war-dependency(if