0
我试图让我的项目在intellij上工作(它与eclipse一起使用)。我有这样的项目在我的POM:Intellij - 将项目作为依赖关系添加到另一个项目
<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>com.fitnetapplication</groupId>
<artifactId>fitnet-common</artifactId>
<version>6.0.2-Final</version>
<packaging>war</packaging>
<name>FitnetCommon</name>
<description>Socle Commun FitnetManager/SyrhaLogic</description>
现在我有另一个项目,该项目需要链接到这一个,所以我有: com.fitnetapplication FITNET常见 6.0.2-最终 运行 战争
<dependency>
<groupId>com.fitnetapplication</groupId>
<artifactId>fitnet-common</artifactId>
<version>6.0.2-Final</version>
<type>jar</type>
<scope>provided</scope>
<classifier>classes</classifier>
</dependency>
的问题是,在的IntelliJ,该版本不被接受出于某种原因,我不知道为什么,它告诉我,第6版.0.2-找不到工件fitnet-common
是的我在'common project'上运行过mvn clean install。而我刚刚检查过,这两个项目中的Maven回购地点都是相同的。我在groupid或artefact id上没有任何错误,但是版本是红色的,并且显示“未找到依赖关系”。正如你可以在我的第一篇文章中看到的,版本是相同的:( –
嗯,你指定在一个战争和jar在依赖关系,这可能是问题,我已经更新了我的答案,更多信息 – acanby
实际上,maven干净wasn足够了,我启动了生命周期的每一步,并完成了工作!谢谢! –