Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/13.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 未能执行目标org.apache.maven.plugins:maven发布插件:2.5.3_Java_Xml_Spring_Spring Boot_Maven - Fatal编程技术网

Java 未能执行目标org.apache.maven.plugins:maven发布插件:2.5.3

Java 未能执行目标org.apache.maven.plugins:maven发布插件:2.5.3,java,xml,spring,spring-boot,maven,Java,Xml,Spring,Spring Boot,Maven,我正在开发一个spring boot应用程序,它有一个2模块的宠物诊所web和宠物诊所数据。现在,除了宠物诊所数据上的一些数据模型类之外,我没有任何类或查看页面。我正在使用maven作为我的依赖项管理。我需要在终端上执行mvn release:prepare,但在过程 错误 Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project sfg-

我正在开发一个spring boot应用程序,它有一个2模块的宠物诊所web和宠物诊所数据。现在,除了宠物诊所数据上的一些数据模型类之外,我没有任何类或查看页面。我正在使用maven作为我的依赖项管理。我需要在终端上执行
mvn release:prepare
,但在过程

错误

Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project sfg-pet-clinic: You don't have a SNAPSHOT project in the reactor projects list.
项目专家

<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <packaging>pom</packaging>
    <modules>
        <module>pet-clinic-data</module>
        <module>pet-clinic-web</module>
    </modules>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.3.3.RELEASE</version>
        <relativePath /> <!-- lookup parent from repository -->
    </parent>

    <groupId>gure.springframework</groupId>
    <artifactId>sfg-pet-clinic</artifactId>
    <version>0.0.5</version>
    <name>sfg-pet-clinic</name>
    <description>Demo project for Spring Boot</description>

    <properties>
        <java.version>1.8</java.version>
    </properties>



    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <configuration>
                    <goals>install</goals>
                    <autoVersionSubmodules>true</autoVersionSubmodules>

                </configuration>
            </plugin>
        </plugins>
    </build>
<scm>
    <developerConnection>scm:git:https://github.com/springframeworkguru/sfg-pet-clinic.git</developerConnection>
  <tag>sfg-pet-clinic-0.0.5</tag>
  </scm>
</project>

4.0.0
聚甲醛
宠物诊所数据
宠物诊所网站
org.springframework.boot

您试图发布的项目必须具有快照版本。应该是这样的:

<version>X.X.X-SNAPSHOT</version>
X.X.X-SNAPSHOT

我按照你说的做了,现在我有一个新错误
无法执行goal org.apache.maven。插件:maven发布插件:2.5.3:project sfg pet clinic上的prepare(默认cli):maven执行失败,退出代码:“1”
<?xml version="1.0" encoding="UTF-8"?>
<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>

    <groupId>org.example</groupId>
    <artifactId>pet-clinic-web</artifactId>
    <version>0.0.5</version>
    <parent>
        <artifactId>sfg-pet-clinic</artifactId>
        <groupId>gure.springframework</groupId>
        <version>0.0.5</version>
    </parent>
<dependencies>
    <dependency>
        <artifactId>pet-clinic-data</artifactId>
        <groupId>gure.springframework</groupId>
        <version>0.0.5</version>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-actuator</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-thymeleaf</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
        <scope>runtime</scope>
        <optional>true</optional>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
        <exclusions>
            <exclusion>
                <groupId>org.junit.vintage</groupId>
                <artifactId>junit-vintage-engine</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
</dependencies>
</project>
<version>X.X.X-SNAPSHOT</version>