Eclipseで実行できるmavenプロジェクトがありますが、linuxコマンドラインから実行することはできません。私は 'mvn spring-boot:run'を実行するとエラーになります:コマンドラインから実行中のSpring Boot Missing Plugin
"現在のプロジェクトとプラグイングループ[org.apache.maven.plugins、org内のプレフィックス 'spring-boot'のプラグインが見つかりません春・ブートのmaven-pluginの:MVN org.springframework.boot:.codehaus.mojo]リポジトリから入手できる "私は完全なコマンドを使用して終了
<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>com.example</groupId>
<artifactId>project</artifactId>
<version>0.0.1-SNAPSHOT</version>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.5.RELEASE</version>
</parent>
<repositories>
<repository>
<id>spring-releases</id>
<url>https://repo.spring.io/libs-release</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spring-releases</id>
<url>https://repo.spring.io/libs-release</url>
</pluginRepository>
</pluginRepositories>
<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>
<properties>
<java.version>1.8</java.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<arguments>
<argument>--spring.profiles.active=prod</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</project>
このpomがあるディレクトリからコマンドを起動してもよろしいですか? – Tome
私は完全なコマンド "mvn org.springframework.boot:spring-boot-maven-plugin:1.3.5.RELEASE:run"を試してみるまで、 POMディレクトリからコマンドを実行する必要があります。私は試しましたが、今はまだ3番目のエラーが出ています。これは楽しいです。 – mcgregors