I tried with Eclipse 3.6 + m2e 0.12 and Eclipse 3.7 + m2e 1.0 and they both worked. Check Preferences -> Maven and make sure that "Offline" is unchecked and "Download repository index updates on startup" is checked.
- Chengyu On 8/14/2011 6:56 AM, Dean Schulze wrote:
javax.mail doesn't find anything. I've added the repository to my pom.xml and the Add Dependency wizard still doesn't find it. If I update dependencies it does download Java mail, however. ------------------------------------------------------------------------ *From:* Chengyu Sun <[email protected]> *To:* Maven Integration for Eclipse users mailing list <[email protected]> *Sent:* Saturday, August 13, 2011 2:25 PM *Subject:* Re: [m2e-users] M2 Eclipse can't add javamail In the search dependencies input box, enter "javax.mail" and you should find it. http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html explains more about dealing with Sun's libraries. - Chengyu On 8/13/2011 12:28 PM, Anders Hammar wrote: > m2e uses indexes to find artifacts. I believe that the java.net repo > doesn't provide an index. > > /Anders > > On Fri, Aug 12, 2011 at 21:44, Dean Schulze<[email protected] <mailto:[email protected]>> wrote: >> According to Oracle JavaMail is available is available at java.net maven2 >> repository: >> http://www.oracle.com/technetwork/java/javamail/index.html >> >> When I try to use the M2E wizard to add this dependency it reports 0 results >> for javamail, javax.mail, or mail. I googled javamail and maven and found >> the xml I had to add to the pom.xml to get javamail and I got the javamail >> dependencies with no problem. >> Why didn't the wizard find anything for javamail? >> >> >> _______________________________________________ >> m2e-users mailing list >> [email protected] <mailto:[email protected]> >> https://dev.eclipse.org/mailman/listinfo/m2e-users >> >> > _______________________________________________ > m2e-users mailing list > [email protected] <mailto:[email protected]> > https://dev.eclipse.org/mailman/listinfo/m2e-users _______________________________________________ m2e-users mailing list [email protected] <mailto:[email protected]> https://dev.eclipse.org/mailman/listinfo/m2e-users _______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users
