2014-12-09 2 views
0

Dropwizard 프로젝트를 빌드 중입니다. (시작 : https://dropwizard.github.io/dropwizard/getting-started.html)왜 maven 프로젝트로 해결할 수 없습니까?

저는 Eclipse에서 프로젝트를 만들었지 만 "해결할 수 없습니다"라는 이유를 이해하지 못합니다.

이 오류입니다 : enter image description here

이 하나라도 도움이 될 수 있습니다

<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>foo.bar.app</groupId> 
    <artifactId>mvn-test</artifactId> 
    <version>1.0-SNAPSHOT</version> 
    <packaging>jar</packaging> 

    <name>mvn-test</name> 
    <url>http://maven.apache.org</url> 

    <properties> 
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 
    <dropwizard.version>INSERT VERSION HERE</dropwizard.version> 
    </properties> 


    <dependencies> 
    <dependency> 
     <groupId>junit</groupId> 
     <artifactId>junit</artifactId> 
     <version>3.8.1</version> 
     <scope>test</scope> 
    </dependency> 
    <dependency> 
     <groupId>io.dropwizard</groupId> 
     <artifactId>dropwizard-core</artifactId> 
     <version>${dropwizard.version}</version> 
    </dependency> 
    </dependencies> 
</project> 

의 pom.xml입니까? 패키지를 가져 오는 방법을 모르겠다. 필자는 Maven 의존성에 대해 전혀 모른다. 감사합니다. .

<dropwizard.version>**INSERT VERSION HERE**</dropwizard.version> 

그래서 그것은 당신의 pom에서 사용할 수 있습니다 :

답변

1

당신은 dropwizard.version 특정 삽입해야

<version>${dropwizard.version}</version> 
2

하는 당신은 치어의 사이에 $ {dropwizard.version} 태그를 정의해야합니다. xml like this :

<properties> 
    <dropwizard.version>0.7.0</dropwizard.version> 
</properties> 
관련 문제