国产成人精品久久免费动漫-国产成人精品天堂-国产成人精品区在线观看-国产成人精品日本-a级毛片无码免费真人-a级毛片毛片免费观看久潮喷

您的位置:首頁技術文章
文章詳情頁

java-web - 使用eclipse創建javaweb 項目 maven報錯

瀏覽:153日期:2024-04-03 14:53:54

問題描述

使用eclipse創建 dynamic web project

在將項目轉換成maven項目時保如下錯誤

java-web - 使用eclipse創建javaweb 項目 maven報錯

pom文件為eclipse 自動生成沒有改動 如下

<project xmlns='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'> <modelVersion>4.0.0</modelVersion> <groupId>test</groupId> <artifactId>test</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>war</packaging> <build> <sourceDirectory>src</sourceDirectory> <plugins> <plugin><artifactId>maven-compiler-plugin</artifactId><version>3.5.1</version><configuration> <source>1.8</source> <target>1.8</target></configuration> </plugin> <plugin><artifactId>maven-war-plugin</artifactId><version>2.6</version><configuration> <warSourceDirectory>WebContent</warSourceDirectory> <failOnMissingWebXml>false</failOnMissingWebXml></configuration> </plugin> </plugins> </build></project>

目前已經試過以下方法 都不奏效

1.強行update項目,報錯同上

2.刪除.m2/repository下的.lastUpdated文件,clean項目之后 再update

3.將插件版本改為低版本2.0

搜索了好多也沒有找到答案 ,求高人指點===============settings.xml文件

<settings xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd'> <pluginGroups> </pluginGroups> <proxies> </proxies> <servers><server><id>releases</id><username>admin</username><password>admin123</password></server><server><id>snapshots</id><username>admin</username><password>admin123</password></server> </servers> <mirrors><mirror><id>nexus</id><mirrorOf>*</mirrorOf><url>http://192.168.15.1:8080/nexus/content/groups/public/</url></mirror> </mirrors> <profiles><profile><id>nexus</id><repositories><repository> <id>central</id> <url>http://192.168.15.1:8080/nexus/content/repositories/central/</url> <releases><enabled>true</enabled> <!-- <updatePolicy>always</updatePolicy>--> </releases> <snapshots><enabled>true</enabled> <!-- <updatePolicy>always</updatePolicy>--> </snapshots></repository></repositories><pluginRepositories><pluginRepository> <id>central</id> <url>http://192.168.15.1:8080/nexus/content/repositories/central/</url> <releases><enabled>true</enabled> <!-- <updatePolicy>always</updatePolicy>--> </releases> <snapshots><enabled>true</enabled> <!-- <updatePolicy>always</updatePolicy>--> </snapshots></pluginRepository></pluginRepositories></profile> </profiles> <activeProfiles><activeProfile>nexus</activeProfile> </activeProfiles></settings>

nexus頁面可以進入

問題解答

回答1:

請檢查一下你們自己的nexus (192.168.15.1:8080/nexus) maven庫代理是否正常工作,確認一下nexus上有你需要的插件java-web - 使用eclipse創建javaweb 項目 maven報錯

標簽: java
相關文章:
主站蜘蛛池模板: 免费看成人毛片日本久久 | 成 人 黄 色 免费播放 | 性欧美videofree中文字幕 | 国产精品一国产精品 | a毛片免费视频 | 欧美精品网站 | 亚洲视频1区 | 操你.com| 99热播 | 成年人在线视频网站 | 伊大人香蕉久久网欧美 | 国产成人亚洲综合一区 | 亚洲国产一成人久久精品 | 综合久久久久久 | 在线视频 自拍 | 最近手机高清中文字幕大全7 | 国产片一级aaa毛片视频 | 成人美女网 | 99在线热视频只有精品免费 | 欧美午夜免费观看福利片 | 蝴蝶成人世界第八影院 | 亚洲影院在线 | 欧美一级网| 视频一区免费 | 伊人婷婷色香五月综合缴激情 | 日韩亚洲综合精品国产 | 日本乱人伦在线观看免费 | 日本国产在线视频 | 国产在播放一区 | 亚洲人成免费 | 欧美成人tv在线观看免费 | 国产欧美另类久久久品 | 精品在线视频一区 | 97在线观看视频免费 | 日韩免费一级 | 天堂中文资源在线8 | 日本黄页免费 | 欧美一级在线观看播放 | 韩国一级特黄清高免费大片 | 国产aⅴ精品一区二区三区久久 | 91精品手机国产露脸 |