kurento-tutorial-java找不到kurento-parent-pom依赖

问题描述

需要在pom.xml中额外添加github maven存储库

1.申请令牌

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

2.添加仓库

按官方教程添加仓库https://doc-kurento.readthedocs.io/en/latest/user/installation_dev.html

完整pom.xml文件参考如下

<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>

	<!-- Maven coordinates -->
	<parent>
		<groupId>org.kurento</groupId>
		<artifactId>kurento-parent-pom</artifactId>
		<version>6.18.0-SNAPSHOT</version>
	</parent>
	<groupId>org.kurento.tutorial</groupId>
	<artifactId>kurento-tutorial</artifactId>
	<packaging>pom</packaging>

	<!-- Project-level information -->
	<name>Kurento Java Client Tutorials</name>
	<description>
		Sample client applications that showcase usage of the Kurento Java Client.
	</description>
	<scm>
		<url>https://github.com/Kurento/kurento-tutorial-java</url>
		<connection>scm:git:https://github.com/Kurento/kurento-tutorial-java.git</connection>
		<developerConnection>scm:git:ssh://github.com/Kurento/kurento-tutorial-java.git</developerConnection>
	</scm>

	<!-- Project configuration -->

	<modules>
		<module>kurento-chroma</module>
		<module>kurento-crowddetector</module>
		<module>kurento-group-call</module>
		<module>kurento-hello-world</module>
		<module>kurento-hello-world-recording</module>
		<module>kurento-magic-mirror</module>
		<module>kurento-metadata-example</module>
		<module>kurento-one2many-call</module>
		<module>kurento-one2one-call</module>
		<module>kurento-one2one-call-advanced</module>
		<module>kurento-one2one-call-recording</module>
		<module>kurento-platedetector</module>
		<module>kurento-player</module>
		<module>kurento-pointerdetector</module>
		<module>kurento-rtp-receiver</module>
		<module>kurento-send-data-channel</module>
		<module>kurento-show-data-channel</module>
	</modules>

	<build>
		<pluginManagement>
			<plugins>
				<!--
				spring-boot-maven-plugin provides a couple useful goals:

				spring-boot:run
				https://docs.spring.io/spring-boot/docs/current/maven-plugin/reference/htmlsingle/#goals-run
				Allows running the project from Maven. Use like this:
					mvn clean spring-boot:run

				spring-boot:repackage
				https://docs.spring.io/spring-boot/docs/current/maven-plugin/reference/htmlsingle/#goals-repackage
				Made here to run automatically during the `package` phase of the
				Maven lifecycle. Creates a standalone jar that can be run with
					java -jar package-exec.jar

				<executable>true</executable> could be used to produce a JAR file
				that is directly executable from the shell, however this makes it
				incompatible with the GitHub Packages repository, which rejects
				deployment with a "400 Bad Request" error.

				Doc: https://docs.spring.io/spring-boot/docs/current/maven-plugin/reference/htmlsingle/#goals-repackage-parameters-details-executable
				> It is recommended that you only enable this option if you intend
				> to execute it directly, rather than [...] deploying it.
				-->
				<plugin>
					<groupId>org.springframework.boot</groupId>
					<artifactId>spring-boot-maven-plugin</artifactId>
					<configuration>
						<classifier>exec</classifier>
						<layout>ZIP</layout>
						<mainClass>${start-class}</mainClass>
					</configuration>
					<executions>
						<execution>
							<goals>
								<goal>repackage</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>

 	<!--新加的仓库-->
	<repositories>
		<repository>
			<id>kurento-github-public</id>
			<name>Kurento GitHub Maven packages (public access)</name>
			<url>https://public:此处填token@maven.pkg.github.com/kurento/*</url>
			<releases>
				<enabled>false</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</repository>
	</repositories>
	<pluginRepositories>
		<pluginRepository>
			<id>kurento-github-public</id>
			<name>Kurento GitHub Maven packages (public access)</name>
			<url>https://public:此处填token@maven.pkg.github.com/kurento/*</url>
			<releases>
				<enabled>false</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</pluginRepository>
	</pluginRepositories>
</project>

更新依赖

mvn -U idea:idea
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值