Up vote 0 down vote favorite share g+ share fb share tw.
I know this is a bit out of maven's scope, but I need to add a local directory with compiled classes to the module's classpath. I saw: Maven: add a folder or jar file into currrent classpath, but this is good for a jar only. I need to have a similar solution but with compiled classes in a directory on local file system.
Is this even possible? Thx! Java maven classpath link|improve this question asked Mar 29 at 12:26Eldad AK11.
You can add new source directory: maven-compiler-plugin ${basedir}/src/main/java ${basedir}/gen-src See also Maven - Add directory to classpath while executing tests.
I tried it without success. Maven tells me: INFO Nothing to compile - all classes are up to date Even though there is NO target directory. – Eldad AK Mar 29 at 14:50.
After some extensive research, I found that my best option was to use the maven-antrun-plugin and during the process-resources phase, generate a jar from the classes and add it as dependency with system scope and systemPath to the jar I just built. Pom snippets: org.apache.maven. Plugins maven-antrun-plugin 1.6 process-resources run .... ant-contrib ant-contrib 1.0b3 com.my.
Code classes. Jar 1.1 system ${env. TEMP}\classes.jar.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.