Java Maven-不可解析的父POM,找不到工件快照

Java Maven-不可解析的父POM,找不到工件快照,java,maven,Java,Maven,我正在尝试建立一个maven项目。我没有构建Java项目的经验,这是我的第一个maven项目。我尝试从终端和IntelliJ构建项目,当我运行mvn clean install时收到此错误: [FATAL] Non-resolvable parent POM for my.project.tk.at.batcher:batcher:${revision}: Could not find artifact my.project.tk.at:parentpom:pom:5.20.0-SNAPSHO

我正在尝试建立一个maven项目。我没有构建Java项目的经验,这是我的第一个maven项目。我尝试从终端和IntelliJ构建项目,当我运行
mvn clean install
时收到此错误:

[FATAL] Non-resolvable parent POM for my.project.tk.at.batcher:batcher:${revision}: 
Could not find artifact my.project.tk.at:parentpom:pom:5.20.0-SNAPSHOT and
'parent.relativePath' points at wrong local POM
这是
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>

    <parent>
        <groupId>my.project.tk.at</groupId>
        <artifactId>parentpom</artifactId>
        <version>5.20.0-SNAPSHOT</version>
    </parent>

    <groupId>my.project.tk.at.batcher</groupId>
    <artifactId>batcher</artifactId>
    <name>batcher</name>
    <packaging>pom</packaging>
    <version>${revision}</version>

    <scm>
        <connection>scm:git:ssh://git@git.my.project.no/autfor/jobscheduler.git</connection>
        <developerConnection>scm:git:ssh://git@git.my.project.no/autfor/jobscheduler.git</developerConnection>
        <url>https://git.my.project.no/projects/AUTFOR/repos/jobscheduler</url>
    </scm>

    <properties>
        <maven.javadoc.failOnError>false</maven.javadoc.failOnError>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
        <version.patch>0</version.patch>
        <revision>${version.major}.${version.minor}.${version.patch}-SNAPSHOT</revision>
    </properties>

    <!-- Shared build properties -->
    <modules>
        <module>batcher-common</module>
        <module>batcher-sql</module>
        <module>scheduler</module>
        <module>notifier-batch</module>
        <module>notifier-examtime-batch</module>
        <module>notifier-attest-batch</module>
        <module>ssb-batch</module>
        <module>alert-user-batch</module>
        <module>delete-history-batch</module>
        <module>alert-user-about-delivery-batch</module>
        <module>batcher-main</module>
        <module>delete-quarantine-batch</module>
    </modules>

    <distributionManagement>
        <repository>
            <id>svv-artrepo-release</id>
            <name>svv-artrepo-release</name>
            <url>https://artrepo.remote-project.no/artifactory/libs-release-local</url>
        </repository>
        <snapshotRepository>
            <id>svv-artrepo-snapshots</id>
            <name>svv-artrepo-snapshots</name>
            <url>https://artrepo.remote-project.no/artifactory/libs-snapshot-local</url>
        </snapshotRepository>
        <!--        <repository>-->
        <!--            <id>nexus-release-repository</id>-->
        <!--            <name>Nexus release repo</name>-->
        <!--            <url>http://10.250.4.100:8081/nexus/content/repositories/releases</url>-->
        <!--        </repository>-->
        <!--        <snapshotRepository>-->
        <!--            <id>nexus-snapshot-repository</id>-->
        <!--            <url>http://10.250.4.100:8081/nexus/content/repositories/snapshots</url>-->
        <!--            <layout>default</layout>-->
        <!--        </snapshotRepository>-->
    </distributionManagement>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <!-- copy from common master, since ${project.build.directory} gets false value if it is not duplicated -->
                    <groupId>org.jacoco</groupId>
                    <artifactId>jacoco-maven-plugin</artifactId>
                    <version>0.8.5</version>
                    <executions>
                        <execution>
                            <id>default-prepare-agent</id>
                            <goals>
                                <goal>prepare-agent</goal>
                            </goals>
                        </execution>
                        <execution>
                            <id>default-prepare-agent-integration</id>
                            <goals>
                                <goal>prepare-agent-integration</goal>
                            </goals>
                            <configuration>
                                <propertyName>failsafeArgLine</propertyName>
                                <destFile>${project.build.directory}/jacoco.exec</destFile>
                                <append>true</append>
                            </configuration>
                        </execution>
                        <execution>
                            <id>default-report</id>
                            <goals>
                                <goal>report</goal>
                            </goals>
                        </execution>
                    </executions>
                    <configuration>
                        <!-- Exclude all generated sources -->
                        <excludes>
                            <exclude>**/wsgen/**/*</exclude>
                        </excludes>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>

        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>flatten-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>codecoverage</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.jacoco</groupId>
                        <artifactId>jacoco-maven-plugin</artifactId>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>integration-test</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-failsafe-plugin</artifactId>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>owasp</id>
            <reporting>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-project-info-reports-plugin</artifactId>
                        <version>${maven-project-info-reports-plugin.version}</version>
                    </plugin>
                    <plugin>
                        <groupId>org.owasp</groupId>
                        <artifactId>dependency-check-maven</artifactId>
                        <version>${org.owasp.dependency-check-maven.version}</version>
                        <reportSets>
                            <reportSet>
                                <reports>
                                    <report>aggregate</report>
                                </reports>
                            </reportSet>
                        </reportSets>
                    </plugin>
                </plugins>
            </reporting>
        </profile>
    </profiles>

</project>

4.0.0
my.project.tk.at
亲本
5.20.0-快照
my.project.tk.at.batcher
配料器
配料器
聚甲醛
${revision}
scm:git:ssh://git@git.my.project.no/autfor/jobscheduler.git
scm:git:ssh://git@git.my.project.no/autfor/jobscheduler.git
https://git.my.project.no/projects/AUTFOR/repos/jobscheduler
假的
1.8
1.8
0
${version.major}.${version.minor}.${version.patch}-快照
配料器公用
批处理程序sql
调度程序
通知程序批处理
通知程序examtime批处理
通知程序证明批处理
ssb批次
警报用户批处理
删除历史记录批处理
提醒用户有关交货批次
配料总管
删除隔离批次
svv ARTREP发行
svv ARTREP发行
https://artrepo.remote-project.no/artifactory/libs-release-local
svv artrepo快照
svv artrepo快照
https://artrepo.remote-project.no/artifactory/libs-snapshot-local
org.jacoco
jacocomaven插件
0.8.5
默认准备代理
配制剂
默认准备代理集成
准备代理集成
故障保护argline
${project.build.directory}/jacoco.exec
真的
默认报告
报告
**/wsgen/**/*
org.codehaus.mojo
扁平maven插件
编码覆盖
org.jacoco
jacocomaven插件
集成测试
org.apache.maven.plugins
maven故障保护插件
owasp
org.apache.maven.plugins
maven项目信息报告插件
${maven项目信息报告plugin.version}
org.owasp
依赖性检查maven
${org.owasp.dependency check maven.version}
总数的

如何修复此错误?

错误说明找不到父POM
my.project.tk.at:parentpom:POM:5.20.0-SNAPSHOT

因此,它不在本地存储库中(您没有在本地构建它,以前也没有使用过它),也不在您指定的任何远程存储库中(如果您在
设置.xml
pom.xml
中指定了任何存储库)


因此,要么将父POM更正为您真正要查找的POM,要么查看所需父POM不在指定存储库中的原因。另外,请阅读Stanislav Bashkyrtsev的有用评论。

能否显示您的pom文件,以便我们查看其配置情况?我已将pom文件添加到问题中。您的
部分指向
pom.xml
工件。你希望在哪里找到它?在您的远程回购中是否可用?或者它可以作为本地文件使用?不管怎样,Maven找不到它。它应该位于上面1个文件夹级别,或者位于本地Maven repo中,或者位于远程Maven repo(Nexus,Artifactory)中。@StanislavBashkyrtsev它不是本地的,我相信它在远程Maven中repo@Leff,如果它在远程回购中,则尝试在那里找到它。如果存在,则确保repo包含在pom.xml的
部分或
中的settings.xml中。