Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/355.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何修复Java中的插件依赖错误_Java_Maven - Fatal编程技术网

如何修复Java中的插件依赖错误

如何修复Java中的插件依赖错误,java,maven,Java,Maven,我是java新手 我在maven编译Java代码时遇到了这个错误 [错误]处理POM时遇到一些问题: 'build.plugins.plugin[org.codehaus.mojo:exec-maven-plugin].dependency.dependency.version' 找不到gov.nih.nlm.nls.lvg:lvgdist:jar@第174行第20栏 我检查了这个图书馆,它存在 我检查了这个子项目的pom.xml 我觉得还可以 <?xml version="1.0" e

我是java新手 我在maven编译Java代码时遇到了这个错误

[错误]处理POM时遇到一些问题: 'build.plugins.plugin[org.codehaus.mojo:exec-maven-plugin].dependency.dependency.version' 找不到gov.nih.nlm.nls.lvg:lvgdist:jar@第174行第20栏

我检查了这个图书馆,它存在

我检查了这个子项目的pom.xml

我觉得还可以

<?xml version="1.0" encoding="UTF-8"?>
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor 
    license agreements. See the NOTICE file distributed with this work for additional 
    information regarding copyright ownership. The ASF licenses this file to 
    you under the Apache License, Version 2.0 (the "License"); you may not use 
    this file except in compliance with the License. You may obtain a copy of 
    the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required 
    by applicable law or agreed to in writing, software distributed under the 
    License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 
    OF ANY KIND, either express or implied. See the License for the specific 
    language governing permissions and limitations under the License. -->
<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>
    <artifactId>ctakes-clinical-pipeline</artifactId>
    <name>Apache cTAKES ctakes-clinical-pipeline</name>
    <parent>
        <groupId>org.apache.ctakes</groupId>
        <artifactId>ctakes</artifactId>
        <version>4.0.0</version>
    </parent>


    <dependencies>
        <dependency>
            <groupId>org.apache.ctakes</groupId>
            <artifactId>ctakes-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.ctakes</groupId>
            <artifactId>ctakes-utils</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.ctakes</groupId>
            <artifactId>ctakes-context-tokenizer</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.ctakes</groupId>
            <artifactId>ctakes-preprocessor</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.ctakes</groupId>
            <artifactId>ctakes-lvg</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.ctakes</groupId>
            <artifactId>ctakes-chunker</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.ctakes</groupId>
            <artifactId>ctakes-ne-contexts</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.ctakes</groupId>
            <artifactId>ctakes-pos-tagger</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.ctakes</groupId>
            <artifactId>ctakes-drug-ner</artifactId>
        </dependency>       
        <dependency>
            <groupId>org.apache.ctakes</groupId>
            <artifactId>ctakes-assertion</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.ctakes</groupId>
            <artifactId>ctakes-dependency-parser</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.ctakes</groupId>
            <artifactId>ctakes-ytex</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.ctakes</groupId>
            <artifactId>ctakes-ytex-res</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.ctakes</groupId>
            <artifactId>ctakes-ytex-uima</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.ctakes</groupId>
            <artifactId>ctakes-dictionary-lookup-fast</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.ctakes</groupId>
            <artifactId>ctakes-constituency-parser</artifactId>
        </dependency>
        <dependency>
          <groupId>org.apache.ctakes</groupId>
            <artifactId>ctakes-coreference</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.ctakes</groupId>
            <artifactId>ctakes-clinical-pipeline-res</artifactId>
        </dependency>
    </dependencies>
    <profiles>
        <profile>
            <id>runCPE</id>
            <activation>
                <property>
                    <name>runCPE</name>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>exec-maven-plugin</artifactId>
                        <version>1.2.1</version>
                        <executions>
                            <execution>
                                <!-- depends on other modules being on classpath -->
                                <phase>compile</phase>
                                <goals>
                                    <goal>java</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <includeProjectDependencies>true</includeProjectDependencies>
                            <includePluginDependencies>true</includePluginDependencies>                     
                            <mainClass>org.apache.uima.tools.cpm.CpmFrame</mainClass>
                            <arguments>
                                <argument />
                            </arguments>
                        </configuration>
                        <dependencies>
                            <dependency>
                                <groupId>gov.nih.nlm.nls.lvg</groupId>
                                <artifactId>lvgdist</artifactId>
                            </dependency>
                        </dependencies>                     
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>runCVD</id>
            <activation>
                <property>
                    <name>runCVD</name>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>exec-maven-plugin</artifactId>
                        <version>1.2.1</version>
                        <executions>
                            <execution>
                                <!-- depends on other modules being on classpath -->
                                <phase>compile</phase>
                                <goals>
                                    <goal>java</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <includeProjectDependencies>true</includeProjectDependencies>
                            <includePluginDependencies>true</includePluginDependencies>

                            <mainClass>org.apache.uima.tools.cvd.CVD</mainClass>
                            <!-- Have to specify at least one parameter otherwise, CVD thinks 
                                it's an invalid param because MVN passes null when joining to the mvn thread -->
                            <arguments>
                                <argument>-lookandfeel</argument>
                                <argument>javax.swing.plaf.metal.MetalLookAndFeel</argument>
                            </arguments>
                        </configuration>
                        <dependencies>
                            <dependency>
                                <groupId>gov.nih.nlm.nls.lvg</groupId>
                                <artifactId>lvgdist</artifactId>
                            </dependency>
                        </dependencies>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>

4.0.0
ctakes临床管道
Apache-cTAKES-cTAKES临床管道
org.apache.ctakes
克塔克斯
4.0.0
org.apache.ctakes
ctakes核心
org.apache.ctakes
ctakes utils
org.apache.ctakes
ctakes上下文标记器
org.apache.ctakes
ctakes预处理器
org.apache.ctakes
ctakes lvg
org.apache.ctakes
ctakes chunker
org.apache.ctakes
ctakes ne上下文
org.apache.ctakes
ctakes pos标记器
org.apache.ctakes
克塔克斯药店
org.apache.ctakes
ctakes断言
org.apache.ctakes
ctakes依赖解析器
org.apache.ctakes
ctakes ytex
org.apache.ctakes
ctakes ytex res
org.apache.ctakes
ctakes ytex uima
org.apache.ctakes
ctakes字典快速查找
org.apache.ctakes
ctakes选区分析器
org.apache.ctakes
ctakes共指
org.apache.ctakes
ctakes临床管道研究
runCPE
runCPE
org.codehaus.mojo
execmaven插件
1.2.1
编译
JAVA
真的
真的
org.apache.uima.tools.cpm.CpmFrame
gov.nih.nlm.nls.lvg
吕格迪斯
runCVD
runCVD
org.codehaus.mojo
execmaven插件
1.2.1
编译
JAVA
真的
真的
org.apache.uima.tools.cvd.cvd
-外观
javax.swing.plaf.metal.MetalLookAndFeel
gov.nih.nlm.nls.lvg
吕格迪斯
如何修复此错误?

如Strelok所述

这些都不见了。。。标签


添加此标签后它工作正常

,除了它没有
错误消息告诉您。这就是问题所在,谢谢:)请将其作为答案,因此我标记它