Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maven笔记 #5

Open
zxy16305 opened this issue Jan 29, 2018 · 1 comment
Open

maven笔记 #5

zxy16305 opened this issue Jan 29, 2018 · 1 comment

Comments

@zxy16305
Copy link
Owner

zxy16305 commented Jan 29, 2018

maven发布到中央仓库笔记

先搬几个链接
https://my.oschina.net/songxinqiang/blog/313226?p=1&temp=1517196380855#blog-comments-list
https://www.xncoding.com/2018/01/27/tool/maven-central.html

发布这东西果然异常麻烦
先是照着第二位老哥的教程走了一遍没走通。后来以为*.pom的配置出了问题,便继承了第一位老哥的提供的pom。顺便登录查看下自己的仓库,才发现密码被改了??? 可能是太简单的缘故:joy: 在改回密码后Bianc便顺利提交了...

发布的命令是

mvn clean deploy -P oss

其中oos表示*.pom中的 serverId

@zxy16305
Copy link
Owner Author

zxy16305 commented Jan 31, 2018

直接贴个链接23333


 <build>
    <finalName>springmvc-study</finalName>
    <resources>
        <resource>
            <directory>${basedir}/src/main/java</directory>
            <includes>
                <include>**/*.properties</include>
                <include>**/*.xml</include>
            </includes>
        </resource>
        <resource>
            <directory>${basedir}/src/main/resources</directory>
        </resource>
    </resources>
 </build>

@zxy16305 zxy16305 changed the title maven发布到中央仓库小记 maven笔记 Feb 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant