I am not sure what you're trying to achieve, but generally maven projects use <dependencies/> pom section to define project's dependencies on external libraries. m2e will automatically make such dependencies available on compile classpath and when you run the project from eclipse. You can read more about maven dependencies here

http://www.sonatype.com/book/reference/public-book.html

buters wrote:
Hi,

if I put a library files in src/main/resources, then I can find and add
these ones with Project->Properties->Liebraries->Add Jars...
But I don't want have these all in my project. There is tag <resources> in
Maven and I use it so:
<build>
...
   <resources>
      <resource>
        <directory>${env.JBOSS_HOME}/client</directory>
      </resource>
    </resources>
...
</build>
I compile my project Run As -> build... -> compile
I get "BUILD SUCCESSFUL". But I can not find needed libraries as above. And
my java-files display errors because of wrong imports.
How can I solve it?

Thanks beforehand,
best regards, buters


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to