English 中文(简体)
在英特尔利J无法找到Maven plugins
原标题:Maven plugins can not be found in IntelliJ

在从第12版到13版更新英特尔利J之后,以下与Maven有关的原始材料无法解决:

org.apache.maven.plugins:maven-clean-plugin:2.4.1
org.apache.maven.plugins:maven-deploy-plugin
org.apache.maven.plugins:maven-install-plugin
org.apache.maven.plugins:maven-site-plugin

在使用英特尔利J 12时,这些不在原始目录中。 更新后又增加了一些新知识,而现在英特尔利J抱怨无法找到。 在什么地方,我能够从名单上删除这些gin子,以便通过安装解决问题?

我可以无问题地操作<代码>clean <>/code>和compile,但情况简介/插图似乎与民主选举学会的警告重叠。

EDIT after 8 years: Please also have a look at all other good answers here. The accepted answer is a common solution but might not work for you or for your IDE version

最佳回答

关于英特尔利J新版本,可在马文环境下使用原始登记处选择如下:

  1. Click File ? Settings.
  2. Expand Build, Execution, Deployment ? Build Tools ? Maven.
  3. Check Use plugin registry.
  4. Click OK or Apply.

关于英特尔利J 14.0.1,开放选择非选择环境,以找到原始登记处:

  1. Click File ? Preferences.

不管用什么版本,也使藏匿点失效:

  1. Click File ? Invalidate Caches / Restart.
  2. Click Invalidate and Restart.

When IntelliJ starts again the problem should be vanquished.

问题回答

多年来,我一直面临这一问题,尽管我没有直接把金.列入我的金字塔,但错误却显示出来。 作为工作范围,我不得不强迫将金字gin列入我的POMs原始部分,只是去掉红.。

在试图解决Stack Overflow问题时,我发现问题: 查阅我的<代码>m2/repository/org/apache/maven/plugins/maven-deploy-plugin 名录是X.Y和2.8.2等人。 因此,我删除了整份“maven-deploy-plugin”目录,然后重新输入我的Maven项目。

因此,似乎问题在于英特尔利J在存放处设一间。 我不会去掉整个存放处,而只是报告错误的假想。

• 从maven工具窗口向部队再进口。 如果无法工作,请假(File > Invalidate caches)和重新启用。 国际发展法学会评估该项目。

其他答复都没有给我工作。 为我工作的解决办法是,通过三厘米的人工下载缺失的艺术品:

mvn dependency:get -DrepoUrl=http://repo.maven.apache.org/maven2/ -Dartifact=ro.isdc.wro4j:wro4j-maven-plugin:1.8.0

在这种变化之后,需要让人们了解关于新的现有艺术品的想法。 可以在“Settings > Maven > Repositories”选择“局域”,简单地点击“Update”。

<>Edit:DrepoUrl似乎被贬低。 - 应当使用远程储存。 资料来源:。 阿帕奇·马文基-依赖性:植被/a。

!

这就是我如何确定问题......

  1. Tried one of the answers which include could solve it by enabling "use plugin registry" . Did enable that but no luck.
  2. 这里的回答再次被搁置起来。 如果无法工作,请假(File > Invalidate caches)和重新启用。 不要.。

  3. Tried These options .. Go to Settings --> Maven --> Importing and made sure the following was selected

    Import Maven projects automatically

    Create IDEA modules for aggregator projects Keep source...

    不包括建筑工程

    使用Maven产出

    基因肥料:“自动”

    阶段为......:“加工资源”

    自动下载:“来源”和“文件”

    进口

    - Xmx512m

    但再次没有成功。

    1. Now lets say I had 10 such plugins which didn t get resolve and among them the first was org.apache.maven.plugins:maven-site-plugin I went to .m2/repository/org/apache/maven/plugins/ and deleted the directory maven-site-plugin and did a maven reimport again. Guess what, particular missing plugin got dowloaded. And I just followed similar steps for other missing plugins and all got resolved.

我也有同样的问题。 我把gin子添加到我的om子里,为我工作。

    <dependency>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-site-plugin</artifactId>
        <version>3.3</version>
        <type>maven-plugin</type>
    </dependency>

    <dependency>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-install-plugin</artifactId>
        <version>2.4</version>
        <type>maven-plugin</type>
    </dependency>

    <dependency>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-deploy-plugin</artifactId>
        <version>2.7</version>
        <type>maven-plugin</type>
    </dependency>

我尝试了其他答案,但没有一个回答我的问题。

当我明确加入<代码>小组时,问题就消失了。 Id 类似:

<plugins>
    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-clean-plugin</artifactId>
        <version>3.1.0</version>
    </plugin>
</plugins>

文本的颜色从红色改为黑体,问题从<条码>中消失。 Id 可再次从有问题的假体中删除,错误不再出现,版本编号甚至显示为<代码>>> /代码>。

I am using IntelliJ Ultimate 2018.2.6 and found out, that the feature Reimport All Maven Project does not use the JDK, which is set in the Settings: Build, Execution, Deployment | Build Tools | Maven | Runner. Instead it uses it s own JRE in IntelliJ_HOME/jre64/ by default. You can configure the JDK for the Importer in Build, Execution, Deployment | Build Tools | Maven | Importing.

In my specific problem, an SSL certificate was missing in the JREs keystore. Unfortunately IDEA only logs this issue in it s own logfile. A little red box to inform about the RuntimeException had been really nice...

我有同样的错误,能够删除我的旧的Maven环境档案。 接着,我通过人工方式更新了Maven的花 the:

mv ~/.m2/settings.xml ~/.m2/settings.xml.old
mvn -up

Finally I ran the "Reimport All Maven Projects" button in the Maven Project tab in IntelliJ. The errors vanished in my case.

没有任何其他解决办法为我服务。

我的解决办法:

Maven Situations -> Repositories -> selected Local Reito in the list, Update

象一个药店一样工作!

在C类:Users[Windowsuser account]m2电子托存器下,我......把所有文件夹在一起。

最后,在IntelliJ的Maven项目中的Reimport All Maven项目。

取消你当地Maven人未知的gin子,并重新进口所有玉米项目。 这将解决这个问题。

页: 1 View > ToolWindows > Maven:

“entergraph

对我来说,它只是简单地提供了一种版本:

<version>3.3.0</version>

The full plugincode samples is given below:

<build>
<plugins>
  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-assembly-plugin</artifactId>
    <version>3.3.0</version>
    <executions>
      <execution>
        <phase>package</phase>
        <goals>
          <goal>single</goal>
        </goals>
        <configuration>
          <archive>
            <manifest>
              <mainClass>Main</mainClass>
            </manifest>
          </archive>
          <descriptorRefs>
            <descriptorRef>jar-with-dependencies</descriptorRef>
          </descriptorRefs>
        </configuration>
      </execution>
    </executions>
  </plugin>

我最近也面临同样的问题。 其他解决办法都没有解决错误线。

我所做的是实际目标(部署地点)。 我可以看到,这些附属公司当时处于困境。

之后,再进口是trick的。

对我来说,我的工作是把含有原始gin子的存放地置于原始保存标签之下。 例

<pluginRepositories>
    <pluginRepository>
        <id>pcentral</id>
        <name>pcentral</name>
        <url>https://repo1.maven.org/maven2</url>
    </pluginRepository>
</pluginRepositories>

这对我来说是有效的。

  1. Go to Settings --> Maven --> Importing --> JDK for importer --> use "Use Project JDK" option instead of a custom JDK set previously.
  2. Re-build/re-import all the dependencies.

If an artifact is not resolvable. Go in the directory of your .m2/repository and check that you DON T have that kind of file :

1. 建设-帮助者-maven-plugin-1.10.pom.lastUpdated

If you don t have any artefact in the folder, just delete it, and try again to re-import in IntelliJ.

这些档案的内容如下:

#NOTE: This is an Another internal implementation file, its format can be changed without prior notice.
#Fri Mar 10 10:36:12 CET 2017
@default-central-https://repo.maven.apache.org/maven2/.lastUpdated=1489138572430
https://repo.maven.apache.org/maven2/.error=Could not transfer artifact org.codehaus.mojo:build-helper-maven-plugin:pom:1.10 from/to central (https://repo.maven.apache.org/maven2): connect timed out

页: 1 经过更新的档案,IntelliJ(或按原样排出)能够重载失踪的内容。

我可以通过将“家庭名录”从“Bundled (Maven 3)改为“usr/ local/Cellar/maven/3.2.5/libexec”(14.1.2)。

• 在Maven环境检查“工作网”检查箱。

这里是我试图解决该问题的,它的工作是:

  1. Manually deleted the existing plugin from the .m2 repo
  2. Enabled "use plugin registry" in IntelliJ
  3. Invalidated the cache and restarted IntelliJ
  4. Reimported the maven project in IntelliJ

在采取上述步骤之后,这一问题已经确定。 希望也能帮助你们。

在现金无效后启动“使用原始登记”项目,解决了我的问题。

“使用原始登记处”“;>>”(intelij) file >Pen >Maven > 使选择列入maven清单的选择方案成为可能

• 取消现金和信贷;

......

这为我工作:

  • Close IDEA
  • Delete "*.iml" and ".idea" -directories(present in the root folder of project)
  • Run "mvn clean install" from the command-line
  • Re-import your project into IDEA

整个项目再进口后,将开始安装附属设施,视您的互联网连接情况,需要几分钟时间才能完工。

我的案件:

  • maven-javadoc-plugin with version 3.2.0 is displayed red in IntelliJ.
  • Plugin is present in my local maven repo.
  • Re-imported maven million times.
  • Ran mvn clean install from the command line N times.
  • All my maven settings in IntelliJ are correct.
  • Tried to switch between Bundled and non-bundled Maven.
  • Tried do delete the whole maven repo and to delete only the plugin from it.
  • Nothing of the above worked.
  • The only thing that almost always helps with modern IntelliJ IDEA versions is "Invalidate caches / Restart". It helped this time as well. maven-javadoc-plugin is not red anymore, and I can click on it and to to the source pom file of the plugin.

Recently I faced the same issue. All tips doesn t work in my cause.

But I fix it.

前往英特尔利j思想,发现Maven,在座各位需要打开托存布塔,并更新ven和地方。 所有这一切都是如此。

Deleted all folders from below and did the "Reload All Maven Projects" refresh button and it worked for me.

C:Users<username>.m2
epositoryorgapachemavenplugins

如果在Maven plugin的项目下有红les,则试图点击“Reimport All Maven项目”纽顿(如复读符号)。

Reimport all Maven Projects

您可以补充这些要素:

<dependencies>
    <dependency>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-clean-plugin</artifactId>
        <version>2.4.1</version>
    </dependency>
</dependencies>

Intellij will resolve them. After successfull import dependencies, you can clean them.

  1. Check the plugins which cannot be found (maven-site-plugin,maven-resources-plugin)
  2. go to .m2/repository/org/apache/maven/plugins/
  3. delete the directory rm -rf plugin-directory-name (eg: rm -rf maven-site-plugin)
  4. exit project from intellij
  5. import project again
  6. Do a Maven reimport

解释:当你再进口时,它将再次下载所有缺失的原始物。

Happy Coding

我把包裹的社区版本作为乌班图18.04的雕塑。

I experience that issue each time there a IntelliJ release.

在这种情形下,我的工作解决办法是援引无效的海滩,从档案中重新开始,放弃取消指数。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...