Questions about the mailbox build under Linux in Maven combat

Source: Internet
Author: User

Recently learning Maven, of course, is to see the recommended Maven combat, when you see the fifth chapter of the author wrote an instance of the Mail transceiver components. I wrote the same component as described in the book, but it was an error:

Java.lang.RuntimeException:java.net.BindException:Permission denied

I checked it out because I was a UNIX system. We accessed port 25 in the program, but the operating system does not allow non-system-level program access, so it is only possible to discard eclipse (and of course the way you write commands in eclipse). So you can only build the entire project through MAVEN's commands, but don't forget to add sudo to the test when building the command, notice that I found a lot of mistakes in the book I don't know if it's my own PDF is not pirated ~, For example, Email.protocol = Smtps in Service.xml, but the correct one should be Email.protocol = SMTP. Plus sudo there's a downside to the fact that he's not going to build the project into the default warehouse (my:/users/yourusername/.m2/repository), but build it into:/var/root/.m2/repository

Questions about the mailbox build under Linux in Maven combat

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.