I want to manually add classes to my maven project after it has been compiled, because I want to use them for the tests.
After reading this Maven Classpath, I thought it would be enough to add my class files to the target/classes folder, but it didn't work. I ran the tests with the -verbose:class
flag and the class hadn't been loaded.
The name of my class is foo.Foo
, so I put it in target/classes/foo/Foo.class
. This shoud be right.
What am I doing wrong? I try to avoid manipulating the pom.