亚洲精品久久久中文字幕-亚洲精品久久片久久-亚洲精品久久青草-亚洲精品久久婷婷爱久久婷婷-亚洲精品久久午夜香蕉

您的位置:首頁(yè)技術(shù)文章
文章詳情頁(yè)

java-web - 使用eclipse創(chuàng)建javaweb 項(xiàng)目 maven報(bào)錯(cuò)

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

問(wèn)題描述

使用eclipse創(chuàng)建 dynamic web project

在將項(xiàng)目轉(zhuǎn)換成maven項(xiàng)目時(shí)保如下錯(cuò)誤

java-web - 使用eclipse創(chuàng)建javaweb 項(xiàng)目 maven報(bào)錯(cuò)

pom文件為eclipse 自動(dòng)生成沒(méi)有改動(dòng) 如下

<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>

目前已經(jīng)試過(guò)以下方法 都不奏效

1.強(qiáng)行update項(xiàng)目,報(bào)錯(cuò)同上

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

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

搜索了好多也沒(méi)有找到答案 ,求高人指點(diǎn)===============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頁(yè)面可以進(jìn)入

問(wèn)題解答

回答1:

請(qǐng)檢查一下你們自己的nexus (192.168.15.1:8080/nexus) maven庫(kù)代理是否正常工作,確認(rèn)一下nexus上有你需要的插件java-web - 使用eclipse創(chuàng)建javaweb 項(xiàng)目 maven報(bào)錯(cuò)

標(biāo)簽: java
相關(guān)文章:
主站蜘蛛池模板: 亚洲福利国产精品17p | 亚洲精品一区二区乱码在线观看 | 国产欧美日韩精品第三区 | 久久一本精品久久精品66 | 东京一热本色道久久爱 | 欧美黄色网页 | 羞羞色院91| 在线观看国产 | 亚州中文 | 亚洲福利视频网 | 亚洲三级久久 | 国产精品午夜激爽毛片 | 国产成人啪精品视频免费网站软件 | 亚洲精品丝袜在线一区波多野结衣 | 色综合合久久天天给综看 | 妞干网这里只有精品 | 丰满的日本护士xxx 丰满美女福利视频在线播放 | 小明成人永久在线看 | 欧美日韩高清不卡免费观看 | 三级毛片基地 | 久久久精品一区二区三区 | 国内视频在线 | 免费麻豆国产一区二区三区四区 | 1024毛片| 你懂的在线免费视频 | 日韩中文字幕精品一区在线 | 成年人免费影院 | 91在线高清视频 | 好爽好黄的视频 | 白丝丝袜高跟国产在线视频 | 免费自拍视频 | 看黄a大片 免费 | 日韩视频大全 | 国产一区二区三区在线观看影院 | 美女翘臀白浆直流视频 | 中文字幕一区二区三区精彩视频 | 一级黄色片免费看 | 亚洲精品国产专区一区 | 三级成人影院 | 久久精品视频亚洲 | 久久精品国产99久久无毒不卡 |