为什么我在pom.xml的第一行得到了“Unknown error”?
为什么我在pom.xml的第一行得到了“Unknown error”?
在Eclipse IDE的pom.xml
的第一行出现未知错误。
昨天一切正常,但突然在从主分支更新并解决合并冲突后,pom.xml
出现了“未知错误”。
除了我之外,我的队友都没有遇到这个问题。我也更改了工作区,删除了缓存,但仍然没有运气。
我正在为这个项目使用h2数据库,尽管在data.sql中插入值,但它没有选择任何值并将其插入到h2 DB表中。在出现此问题之前,一切正常。我觉得这是由于pom.xml
中的问题,不过我不确定。请帮忙。
我删除了现有项目,并从主分支获取了最新的代码。之后删除了包括存储库文件夹在内的用户下的“.m2”文件夹。我进行了更新项目操作并启用了强制更新快照/发布、maven clean和maven build。但什么也没帮助。
pom.xml
4.0.0 com.abc.roster spring-boot-roster-app 0.0.1-SNAPSHOT jar spring-boot-roster-app Demo project for Spring Boot Roster org.springframework.boot spring-boot-starter-parent 2.2.0.BUILD-SNAPSHOT UTF-8 UTF-8 1.8 org.springframework.boot spring-boot-starter org.springframework.boot spring-boot-starter-security org.jasypt jasypt 1.9.2 org.jasypt jasypt-springsecurity3 1.9.0 org.springframework.boot spring-boot-starter-test test org.springframework spring-web org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-data-jpa org.springframework.boot spring-boot-starter-data-rest com.h2database h2 runtime org.springframework.boot spring-boot-maven-plugin spring-snapshots Spring Snapshots https://repo.spring.io/snapshot true spring-milestones Spring Milestones https://repo.spring.io/milestone spring-snapshots Spring Snapshots https://repo.spring.io/snapshot true spring-milestones Spring Milestones https://repo.spring.io/milestone
application.properties
server.port= spring.h2.console.path=/h2 spring.h2.console.enabled=true spring.datasource.url= spring.datasource.username= spring.datasource.password= spring.datasource.driverClassName=org.h2.Driver spring.datasource.platform=h2 spring.datasource.initialization-mode=always spring.jpa.hibernate.ddl-auto=update spring.datasource.continue-on-error=true spring.jpa.show-sql=true spring.jpa.properties.hibernate.format_sql=false spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.H2Dialect
应该消除pom.xml
中的未知错误,我也必须能够将值填充到H2数据库中。
admin 更改状态以发布 2023年5月23日
根据目前的状态回答
这个问题已经解决:
请从https://download.eclipse.org/m2e-wtp/releases/1.4/安装m2e连接器支持mavenarchiver插件0.17.3
过时的回答
除了将Spring Boot版本从2.1.5.RELEASE
降级到2.1.4.RELEASE
外,降低受影响的Maven JAR插件版本从3.1.2
到3.1.1
可能是一个比较简单的解决方法,只要这个错误还存在:
3.1.1