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