2017-06-08 15 views
1
[ERROR] Unknown lifecycle phase "package;". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 

のpom.xmlERR:pom.xmlライフサイクルフェーズが不明です "package;"

<?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>com.socgen.portfolio</groupId> 
<artifactId>portfolio</artifactId> 
<version>1.0-SNAPSHOT</version> 
<packaging>pom</packaging> 
<modules> 
    <module>ui</module> 
    <module>service</module> 
</modules> 

<parent> 
    <groupId>org.springframework.boot</groupId> 
    <artifactId>spring-boot-starter-parent</artifactId> 
    <version>1.3.8.RELEASE</version> 
</parent> 

のpom.xml [UI]

<?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>com.socgen.portfolio</groupId> 
<artifactId>ui</artifactId> 

<parent> 
    <groupId>com.socgen.portfolio</groupId> 
    <artifactId>portfolio</artifactId> 
    <version>1.0-SNAPSHOT</version> 
</parent> 
<dependencies> 
    <!-- https://mvnrepository.com/artifact/org.webjars/d3js --> 
    <dependency> 
     <groupId>org.webjars</groupId> 
     <artifactId>d3js</artifactId> 
     <version>4.2.1</version> 
    </dependency> 
</dependencies> 

のpom.xml [サービス]

<?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>com.socgen.portfolio</groupId> 
<artifactId>service</artifactId> 
<packaging>war</packaging> 

<parent> 
    <groupId>com.socgen.portfolio</groupId> 
    <artifactId>portfolio</artifactId> 
    <version>1.0-SNAPSHOT</version> 
</parent> 

<dependencies> 
    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-web</artifactId> 
    </dependency> 
    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-security</artifactId> 
    </dependency> 
    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-data-jpa</artifactId> 
    </dependency> 
    <dependency> 
     <groupId>mysql</groupId> 
     <artifactId>mysql-connector-java</artifactId> 
    </dependency> 
</dependencies> 

<build> 
    <plugins> 
     <plugin> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-compiler-plugin</artifactId> 
      <version>3.6.1</version> 
      <configuration> 
       <source>1.7</source> 
       <target>1.7</target> 
      </configuration> 
     </plugin> 
    </plugins> 
</build> 

私はこれを手伝ってくれますか? と、依存関係をインポート中に上記のエラーを出すモジュールをインポートすることさえできません。

答えて

2

セミコロンを使用しないでください。

mvn packageの代わりにmvn package;と表示されているようです。

関連する問題