av一区二区在线观看_亚洲男人的天堂网站_日韩亚洲视频_在线成人免费_欧美日韩精品免费观看视频_久草视

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

java-web - 使用eclipse創(chuàng)建javaweb 項目 maven報錯

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

問題描述

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

在將項目轉(zhuǎn)換成maven項目時保如下錯誤

java-web - 使用eclipse創(chuàng)建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>

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

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創(chuàng)建javaweb 項目 maven報錯

標簽: java
相關(guān)文章:
主站蜘蛛池模板: 精品免费国产视频 | 国产成人精品免费视频大全最热 | 婷婷色综合 | 久久久久久国产精品 | 特黄毛片 | 99精品久久久 | 精品在线一区二区三区 | 99久久婷婷国产综合精品电影 | 国产精品久久久久一区二区三区 | 999久久久| 最新国产精品视频 | 成人片免费看 | 国产成人精品一区二区三区四区 | jdav视频在线观看免费 | 国产高清视频在线 | 丁香五月网久久综合 | 欧美日韩中文字幕 | 欧美激情一区二区三级高清视频 | 亚洲一区二区三区四区五区午夜 | 欧美成人精品一区二区三区 | 国产成人免费 | 久久久久国产一区二区三区四区 | www.国产.com| 欧美精品v国产精品v日韩精品 | 欧美电影免费网站 | 久久久青草婷婷精品综合日韩 | 91一区二区 | 国产在线a| 黄色免费网址大全 | 麻豆久久久久 | 一道本不卡视频 | 亚洲欧美在线观看 | 超碰在线播 | 综合精品| 国产色网| 羞羞网站免费观看 | 午夜三级视频 | 日韩一区二区三区在线观看 | 免费一级网站 | 激情久久网 | 精精国产xxxx视频在线播放 |