"Trip Pit" a common reference to the configuration method of the jar package Pom

Source: Internet
Author: User

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

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.