MAVEN パスと変数を設定しました。サンプルの SpringBoot プロジェクトを Eclipse で実行できますが、必要なのはカスタム jar があり、Spring Boot プロジェクトでその jar のクラスを使用していることです。このカスタム jar を含めて SpringBoot アプリケーションをビルドすると、次のエラーが発生します。
[エラー] 指定した目標を実行するにはプロジェクトが必要ですが、このディレクトリ (D:......\SpringBootDemo\target) に POM がありません。
正しいディレクトリから Maven を呼び出したことを確認してください。→【ヘルプ1】
org.apache.maven.lifecycle.MissingProjectException: 指定したゴールにはプロジェクトを実行する必要がありますが、このディレクトリ (D:......\SpringBootDemo\target) に POM がありません。
正しいディレクトリから Maven を呼び出したことを確認してください。
私のPOM.xmlは次のとおりです。
<groupId>com.demo</groupId>
<artifactId>SpringBoot</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>SpringBootDemo</name>
<description>Demo project for Spring Boot</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.8.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
何か不足していますか?
どんな助けでも大歓迎です。
ありがとう