By default, classes under src/test/java should have access to:

  all classes under src/main/java & src/test/java
  all resources under src/main/resources & src/test/resources

There must be something else wrong. Can you post your pom?


On Tue, 21 Apr 2009 11:08:43 -0700, Ross E Bundy <[email protected]>
wrote:
> I've set up my project according to the directory structure show at:
>   
http://maven.apache.org/guides/getting-started/index.html#How_do_I_add_resources_to_my_JAR
> I've included resources in both the test and main directories. There are
> some 'main' resources that I also need to access from my tests. I can
> access my test resources just fine, but I can't access the main resources
> from my tests. Is there a way to do this? The only way that I can find is
> to create links in my test resources directory to the files in the main
> resources directory.
> 
> Is there a better way?
> 
> Thanks,
> --ross


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to