Http://www.cnblogs.com/viewcozy/p/4789877.html
Next, the internal moudule generated the jar of the way the previous article has been implemented, want to make the jar as a public part of any project can be referenced, the result encountered a lot of problems,
Feeling a bit, engage in technology no shortcut, need to constantly encounter pit or read a lot of information and hands-on practice will understand profoundly, review repetitive operation N times for mastering technology plays a key role, make clear does not mean to remember later, copy repetition is productivity
Dry quickly, do not eat, and improve efficiency in order to gain
<?XML version= "1.0" encoding= "UTF-8"?><Projectxmlns= "http://maven.apache.org/POM/4.0.0"Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"xsi:schemalocation= "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> <Artifactid>Oxgren</Artifactid> <groupId>Oxgren</groupId> <version>1.0-snapshot</version> </Parent> <modelversion>4.0.0</modelversion> <Artifactid>Oxgren-common</Artifactid> <Dependencies> <Dependency> <groupId>Javax.mail</groupId> <Artifactid>Mail</Artifactid> <version>1.4.7</version> </Dependency> </Dependencies></Project>
If it comes with a parent, the best practice is not to let you encounter this kind of pit and know more about it.
Change it into this
<?XML version= "1.0" encoding= "UTF-8"?><Projectxmlns= "http://maven.apache.org/POM/4.0.0"Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"xsi:schemalocation= "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <groupId>Oxgren</groupId> <version>1.0-snapshot</version> <Artifactid>Oxgren-common</Artifactid> <modelversion>4.0.0</modelversion> <Dependencies> <Dependency> <groupId>Javax.mail</groupId> <Artifactid>Mail</Artifactid> <version>1.4.7</version> </Dependency> </Dependencies></Project>
To quote again
<Dependency> <groupId>Oxgren</groupId> <Artifactid>Oxgren-common</Artifactid> <version>1.0-snapshot</version> </Dependency> </Dependencies>
Problem solved.
A namespace conflict was suspected
It's useless from encoding.base64hander = Oxgren.common.Encoding.Base64Hander.
"Trip Pit" a common reference to the configuration method of the jar package Pom