You shouldn't use the M2_REPO variable. You should define jars using the pom.xml file. The dependencies of the type compile, runtime will be deployed.
Don't forget to install m2eclipse-core, m2eclipse-wtp and the JBoss Maven Tools feature.
Reply to this message by going to Community
Start a new discussion in JBoss Tools at Community