have you done a maven install to project b? i had the same problem, and after i did a maven install it worked.
this is a bit late, but in project b you need this in your pom.xml:
<plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-jar-plugin</artifactid> <executions> <execution> <id>testjar</id> <phase>package</phase> <goals> <goal>test-jar</goal> </goals> </execution> </executions> </plugin>
then in project a you need this:
<dependency> <groupid>com.projectb</groupid> <artifactid>projectbartifactid</artifactid> <classifier>tests</classifier> </dependency>
- Eclipse : Can't import class from another project's test folder
- Eclipse import into current project source code from another projects
- import from another java project in eclipse
- Can we call another project java class from our project in eclipse
- Remove unused import from All projects in eclipse
- Import Android Test Project into Eclipse from Version Control
- Eclipse removing a test folder from the build path
- How do I import protobuf files from one folder in another folder in Eclipse?
- How can I import from a folder into Eclipse
- How do I import projects from another workspace?
- Prevent eclipse from auto import packages when copying source code between projects
- Eclipse plugin cannot find class from class folder
- Eclipse is not showing any projects from my workspace folder even the projects are there?
- The best way to transfer projects from one eclipse to another
- maven: how import from test classes in class from main
- Add JSON class folder and import in Java and Eclipse as IDE
- Unable to import example projects in eclipse from book
- New Eclipse workspace in working copy folder does not recognize existing projects from subversion
- Why cant we see classes folder of a Dynamic Web Application from Eclipse IDE?
- how to import file from one eclipse project to another
- How can I only search java class in main source folder (exclude test folder) in eclipse
- In Eclipse, how do I exclude test folder of one maven project from another project that has as a dependency?
- How can you import M2E Maven projects into Eclipse from the command line?
- Eclipse: how to make a class import another class in a different project folder
- Howto import Eclipse gradle projects and run / launch configurations from command line
- Why eclipse dont find projects in import volley (android) directory from git?
- Removed class files from android folder but still eclipse compiles and runs with no problems. how?
- Import source code folder from a existing program into Eclipse
- Eclipse JDT dom refactoring, extract class member from one compilation unit & add into another
- Eclipse only loads log4.properties from Test Folder
More Query from same tag
- Why the Activity does not change the state of view when buttons are clicked?
- Android/Eclipse: how to prioritize a local over a library package
- Regard creating a Java project in Eclipse
- How to integrate Rapidminer with Java?
- Eclipse version control - problems with project no longer showing in workspace
- Why Installing Roo Support fails on Eclipse IDE for Enterprise Java Developers 2020-09 (4.17.0) Build id: 20200910-1200 with STS 4.8.0
- Adding scroll in tabhost in android
- Perl DBI Results Referenced by Index
- What's wrong with my OnClickListener?
- eclipse annoyances: Debug and Launch toolbars unavailable
- Creating a JAR file out of some class files
- Maven options in Eclipse disappeared
- How can I get the elements and relations in Archi from Java?
- Updated way to fix textIO in java for eclipse IDLE
- How to resolved undefined error to a function without adding static library path in eclipse(c,c++)
- Importing a sql dump to Eclipse
- Plugins from Different Eclipse Configuration are not Isolated
- Refresh Eclipse (gdb) stack trace after reloading symbols
- Protected access specifier giving unexpected compile time error in child class in Eclipse
- "Maven clean" does not work
- Eclipse / CFBuilder - Keeping track of changed files.
- Joss & Struts issue. Where should I put the breakpoint?
- What is this white-bar in the Eclipse Oxygen IDE?
- Why is Scala compiler in Eclipse Kepler complaining about sbt sources?
- How to change 7 textview values at a time by clicking one imageButton 12 times in Android?
- Serialize Eclipse Graphical Models (e.g. BPMN Diagram) to XML
- Not able to run a simple JSP program in Eclipse with Tomcat server 7 in browser
- How to correct errors associated with code completion on Eclipse with TFS (Team Explorer Everywhere) plugin?
- unable to scroll smoothly in eclipse-luna(ubuntu-12.04)