maven 配置文件pom.xml

ruanwxh ruanwxh 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

<distributionManagement>
<snapshotRepository>
<id>snapshots</id>
<url>http://192.168.168.23:8066/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>

上面这种下载不到maven仓库里的包,改成下面这种可以下载到。求帮助?

<repositories>
<repository>
<id>snapshots</id>
<name>snapshots</name>
<url>http://192.168.168.23:8066/repositories/snapshots</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>fail</checksumPolicy>
</snapshots>
</repository>
</repositories>


2.还有

<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>javadoc-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

上面这种,用MyEclipse 8.5的项目右键->MyEclipse Maven->Enable Dependency Management。相关的依赖包加不到java build path。改成下面这种,就可以了。求帮助?

<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
</plugin>
...全文
评论
收藏 已收藏
分享
返回顶部
ruanwxh
Java EE 67,535 成员 225,843 内容