??xml version="1.0" encoding="utf-8" standalone="yes"?>BlogJava-新手?/title><link>http://www.qpkxbc.shop/beginner</link><description>专注于Java技?/description><language>zh-cn</language><lastBuildDate>Thu, 02 May 2019 12:33:30 GMT</lastBuildDate><pubDate>Thu, 02 May 2019 12:33:30 GMT</pubDate><ttl>60</ttl><item><title>微同商城使用U库解决打包~译问题http://www.qpkxbc.shop/sdyjmc/archive/2019/04/04/433704.html单飞单飞Thu, 04 Apr 2019 01:36:00 GMThttp://www.qpkxbc.shop/sdyjmc/archive/2019/04/04/433704.htmlhttp://www.qpkxbc.shop/sdyjmc/comments/433704.htmlhttp://www.qpkxbc.shop/sdyjmc/archive/2019/04/04/433704.html#Feedback0http://www.qpkxbc.shop/sdyjmc/comments/commentRss/433704.htmlhttp://www.qpkxbc.shop/sdyjmc/services/trackbacks/433704.html微同商城 搭徏U服
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:
deploy (default-deploy) on project platform: Failed to deploy artifacts: Could n
ot find artifact com.platform:platform:pom:1.0.0 in releases(http://nkf:
8081/repository/xiaowang-host/) -> [Help 1]

    <modelVersion>4.0.0</modelVersion>
    <groupId>com.platform</groupId>
    <artifactId>platform</artifactId>
    <version>1.0.0</version>
    <packaging>pom</packaging>
    <description>platform</description>
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:
deploy (default-deploy) on project platform: Deployment failed: repository eleme
nt was not specified in the POM inside distributionManagement element or in -Dal
tDeploymentRepository=id::layout::url parameter -> [Help 1]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:
deploy (default-deploy) on project platform-mp: Failed to deploy artifacts: Coul
d not find artifact com.platform:platform-mp:jar:1.0.0 in releases (http:
//nkf:8081/repository/xiaowang-host/) -> [Help 1]
搭徏U服
D:\public\mvn\apache-maven-3.2.2\conf\settings.xml
<mirror>
        <id>nexus-aliyun</id>
        <mirrorOf>central</mirrorOf>
        <name>Nexus aliyun</name>
        <url>http://maven.aliyun.com/nexus/content/groups/public</url>
    </mirror>
阉K仓库改ؓ中央仓库

N:\JetBrains\platform\pom.xml

解决上传W二方jar文g和下载第二方jar文g问题:

<distributionManagement>
      <repository>
        <id>releases.xiaowang</id>
        <name>Releases</name>
        <url>http://server2:8081/repository/xiaowang-host/</url>
      </repository>
      <snapshotRepository>
        <id>snapshots.xiaowang</id>
        <name>Snapshot</name>
        <url>http://server2:8081/repository/xiaowang-host/</url>
      </snapshotRepository>
    </distributionManagement>
    <repositories>
        <repository>
          <id>releases.xiaowang</id>
          <url>http://server2:8081/repository/xiaowang-host/</url>
          <releases>
            <enabled>true</enabled>
            <updatePolicy>always</updatePolicy>
          </releases>
          <snapshots>
            <enabled>true</enabled>
            <updatePolicy>always</updatePolicy>
          </snapshots>
        </repository>
    </repositories>


其它pom.xml文g无需做改?可以用mvn deploy 上传和下载第二方jar文g
然后使用mvn package 没有问题了?/div>

单飞 2019-04-04 09:36 发表评论
]]> 1һ152ͼ