当前位置: 首页 > 知识库问答 >
问题:

当我安装这个项目时,在pom.xml文件中显示错误

酆意智
2023-03-14

项目生成错误:org.kurento的父POM不可解析。tutorial:kurento-group-call:6.5.0:无法在https://repo.maven.apache.org/maven2中找到org.kurento.tutorial:kurento-tutorial:POM:6.5.0缓存在本地存储库中,将不会重新尝试解析,直到central的更新间隔已过或强制更新且“parent.relativePath”指向错误的本地POM

http://maven.apache.org/xsd/maven-4.0.0.xsd“>4.0.0

<parent>   .........................................showing the error in parent
    <groupId>org.kurento.tutorial</groupId>
    <artifactId>kurento-tutorial</artifactId>
    <version>6.5.0</version>
</parent>

<artifactId>kurento-group-call</artifactId>
<packaging>jar</packaging>

<name>Kurento Java Tutorial - Group Call</name>
<description>WebRTC many to many video call</description>

<url>http://www.kurento.org/docs/${project.version}</url>

<licenses>
    <license>
        <name>Apache 2.0</name>
        <url>http://www.apache.org/licenses/LICENSE-2.0</url>
        <distribution>repo</distribution>
    </license>
</licenses>

<organization>
    <name>Kurento</name>
    <url>http://www.kurento.org</url>
</organization>

<scm>
    <url>https://github.com/Kurento/kurento-tutorial-java</url>
    <connection>scm:git:https://github.com/Kurento/kurento-tutorial-java</connection>
    <developerConnection>scm:git://git@github.com:Kurento/kurento-tutorial-java</developerConnection>
    <tag>develop</tag>
</scm>

<developers>
    <developer>
        <id>kurento.org</id>
        <name>-kurento.org Community</name>
        <organization>Kurento.org</organization>
        <organizationUrl>http://www.kurento.org</organizationUrl>
    </developer>
</developers>

<properties>
    <demo.port>8086</demo.port>

    <!-- Main class -->
    <start-class>org.kurento.tutorial.groupcall.GroupCallApp</start-class>
    <maven.compiler.target>1.7</maven.compiler.target>
    <maven.compiler.source>1.7</maven.compiler.source>
</properties>

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
        <version>1.3.0.RELEASE</version>
    </dependency>
    <!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -->
    <dependency>
        <groupId>org.apache.poi</groupId>
        <artifactId>poi-ooxml</artifactId>
        <version>3.14</version>
    </dependency>

    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-websocket</artifactId>
        <version>4.2.3.RELEASE</version>
    </dependency>

    <!-- Kurento -->
    <dependency>
        <groupId>org.kurento</groupId>
        <artifactId>kurento-client</artifactId>
        <version>6.5.0</version>
    </dependency>
    <dependency>
        <groupId>org.kurento</groupId>
        <artifactId>kurento-utils-js</artifactId>
        <version>6.5.0</version>
    </dependency>
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <configuration>
                <mainClass>${start-class}</mainClass>
                <layout>ZIP</layout>
            </configuration>
            <executions>
                <execution>
                    <goals>
                        <goal>repackage</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
            <executions>
                <execution>
                    <id>exec-bower-install</id>
                    <phase>compile</phase>
                    <goals>
                        <goal>exec</goal>
                    </goals>
                    <configuration>
                        <executable>bower</executable>
                        <workingDirectory>${project.build.directory}/classes</workingDirectory>
                        <arguments>
                            <argument>install</argument>
                            <argument>--allow-root</argument>
                        </arguments>
                    </configuration>
                </execution>
            </executions>
            <configuration>
                <mainClass>${start-class}</mainClass>
            </configuration>
        </plugin>
        <plugin>
            <artifactId>maven-clean-plugin</artifactId>
            <configuration>
                <filesets>
                    <fileset>
                        <directory>src/main/resources/static/bower_components</directory>
                    </fileset>
                </filesets>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.kurento.tutorial</groupId>
            <artifactId>kurentu-group-call</artifactId>
            <version>6.5.0</version>
        </plugin>
    </plugins>

    <resources>
        <resource>
            <directory>src/main/resources</directory>
            <filtering>false</filtering>
        </resource>
        <resource>
            <directory>src/main/resources</directory>
            <filtering>true</filtering>
            <includes>
                <include>banner.txt</include>
            </includes>
        </resource>
        <resource>
            <directory>.</directory>
            <filtering>true</filtering>
            <includes>
                <include>bower.json</include>
            </includes>
        </resource>
    </resources>
</build>

<profiles>
    <profile>
        <id>default</id>
        <activation>
            <activeByDefault>true</activeByDefault>
        </activation>
        <build>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <configuration>
                        <descriptor>src/assembly/bin.xml</descriptor>
                        <finalName>${project.artifactId}-${project.version}</finalName>
                        <appendAssemblyId>false</appendAssemblyId>
                    </configuration>
                    <executions>
                        <execution>
                            <phase>package</phase>
                            <goals>
                                <goal>single</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-antrun-plugin</artifactId>
                    <executions>
                        <execution>
                            <phase>package</phase>
                            <configuration>
                                <tasks>
                                    <copy
                                        file="${project.build.directory}/target/${project.artifactId}-${project.version}-bin.zip"
                                        tofile="${project.build.directory}/target/${project.artifactId}-${project.version}.zip" />
                                </tasks>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </build>
    </profile>
    <profile>
        <id>no-assembly</id>
    </profile>
</profiles>

共有1个答案

周峻
2023-03-14

这意味着在配置的存储库中找不到父POMorg.kurento.tutorial:kurento-tutorial:POM:6.5.0

 类似资料:
  • (在回答之前请至少阅读以下内容:这是临时措施!不,我们不想设置本地存储库管理器并手动运行脚本) 我们有一个带有一些依赖项的遗留项目,我们有一个包括源代码和javadoc的本地副本,并被证明在生产中运行良好,但在Central中没有相同质量的项目。我们想用我们已经有的那些罐子。

  • 问题内容: (在回答之前,请至少阅读以下内容:这是一个临时措施!不,我们不想设置本地存储库管理器并手动运行脚本) 我们有一个带有一些依赖项的遗留项目,我们具有包含源代码和javadoc的本地副本,并且已被证明可以在生产环境中很好地工作,但是在Central中无法以相同的质量使用。我们想使用我们已经拥有的罐子。 我发现我可以手动运行一个适当的复杂mvn install:install-file命令来

  • pom。xml 我在Eclipse中使用Spring、jsp、servlet制作Web项目。但是Spring核心依赖会带来麻烦。 在xsi中:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" 错误消息很长。。。我不知道。。 无法从传输公用日志:公用日志:jar:1.

  • 错误消息: (无法完成安装,因为找不到一个或多个必需的项目。正在安装的软件:Cucumber Eclipse Feature 0.0.17.201704062133(Cucumber.Eclipse.Feature.Feature.Group 0.0.17.201704062133)缺少要求:Cucumber Editor 0.0.17.201704062133(Cucumber.Eclipse.

  • 我在添加依赖项时遇到了丢失工件错误。我得到的错误是这样的: 所以我不知道我在这里错过了什么,有人能帮忙吗?多谢了。