2016-05-11 1 views
-1

実行中のプロジェクトが正常に動作していますが、pom.xmlに添付されている画像のように赤色のエラー記号が表示されています。 image of project hierarchyプロジェクトは動作していますが、pom.xmlにエラーが表示されています

なぜこのエラーが表示されているのか理解できません。プロジェクトが実行中であっても正常に動作しています。 この赤いタグをプロジェクト階層から削除する方法をお勧めします。事前に

おかげ

のpom.xml

<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>TAS_EMS</groupId> 
<artifactId>TAS_EMS</artifactId> 
<version>0.0.2</version> 
<packaging>jar</packaging> 
<name>TAS_EMS</name> 
<description>TAS_EMS</description> 
<organization> 
    <name>TATA POWER SED</name> 
    <url>http://www.tatapowersed.com</url> 
</organization> 
<properties> 
    <!-- Spring --> 
    <spring-framework.version>4.1.6.RELEASE</spring-framework.version> 
    <springboot-framework.version>1.2.3.RELEASE</springboot-framework.version> 
    <!-- SqLite --> 
    <sqlite.version>3.7.2</sqlite.version> 
    <!-- Hibernate/JPA --> 
    <hibernate.version>4.2.1.Final</hibernate.version> 
    <!-- JSON --> 
    <jackson.version>2.5.2</jackson.version> 
    <!-- Portlet /JSON RPC --> 
    <portlet.version>2.0</portlet.version> 
    <!--HTTP/JSONRPC --> 
    <commons-codec.version>1.9</commons-codec.version> 
    <httpcore.version>4.3.3</httpcore.version> 
    <!-- REST XML Mapping --> 
    <jaxb.version>2.2.12</jaxb.version> 

</properties> 

<dependencies> 

    <!-- Spring Jetty --> 

    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-web</artifactId> 
     <version>${springboot-framework.version}</version> 
    </dependency> 

    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-jetty</artifactId> 
     <version>${springboot-framework.version}</version> 
    </dependency> 
    <dependency> 
     <groupId>org.springframework</groupId> 
     <artifactId>spring-webmvc</artifactId> 
     <version>${spring-framework.version}</version> 
    </dependency> 
    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-test</artifactId> 
     <version>${springboot-framework.version}</version> 
     <scope>test</scope> 
    </dependency> 

    <!-- Spring JDBC --> 

    <dependency> 
     <groupId>org.springframework</groupId> 
     <artifactId>spring-jdbc</artifactId> 
     <version>${spring-framework.version}</version> 
    </dependency> 

    <!-- Spring --> 

    <dependency> 
     <groupId>org.springframework</groupId> 
     <artifactId>spring-core</artifactId> 
     <version>${spring-framework.version}</version> 
    </dependency> 
    <dependency> 
     <groupId>org.springframework</groupId> 
     <artifactId>spring-context</artifactId> 
     <version>${spring-framework.version}</version> 
    </dependency> 
    <dependency> 
     <groupId>org.springframework</groupId> 
     <artifactId>spring-tx</artifactId> 
     <version>${spring-framework.version}</version> 
    </dependency> 
    <dependency> 
     <groupId>org.springframework</groupId> 
     <artifactId>spring-orm</artifactId> 
     <version>${spring-framework.version}</version> 
    </dependency> 

    <!-- Hibernate --> 

    <dependency> 
     <groupId>org.hibernate</groupId> 
     <artifactId>hibernate-core</artifactId> 
     <version>${hibernate.version}</version> 
    </dependency> 

    <!-- Log4J --> 

    <!-- <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> 
     <version>1.7.12</version> </dependency> --> 

    <!-- SQLite database JDBC --> 

    <dependency> 
     <groupId>org.xerial</groupId> 
     <artifactId>sqlite-jdbc</artifactId> 
     <version>${sqlite.version}</version> 
    </dependency> 

    <!-- json dependencies + --> 

    <dependency> 
     <groupId>com.fasterxml.jackson.core</groupId> 
     <artifactId>jackson-core</artifactId> 
     <version>${jackson.version}</version> 
    </dependency> 
    <dependency> 
     <groupId>com.fasterxml.jackson.core</groupId> 
     <artifactId>jackson-databind</artifactId> 
     <version>${jackson.version}</version> 
    </dependency> 
    <dependency> 
     <groupId>com.fasterxml.jackson.core</groupId> 
     <artifactId>jackson-annotations</artifactId> 
     <version>${jackson.version}</version> 
     <optional>true</optional> 
    </dependency> 

    <!-- | servlet\portlet dependencies + --> 
    <dependency> 
     <groupId>javax.portlet</groupId> 
     <artifactId>portlet-api</artifactId> 
     <version>${portlet.version}</version> 
     <optional>true</optional> 
     <scope>provided</scope> 
    </dependency> 



    <!-- | Rest XML Mapping + --> 

    <dependency> 
     <groupId>javax.xml.bind</groupId> 
     <artifactId>jaxb-api</artifactId> 
     <version>${jaxb.version}</version> 
    </dependency> 

    <!-- <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> 
     <version>1.2.3.RELEASE</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-actuator</artifactId> <version>1.2.3.RELEASE</version> 
     </dependency> --> 
    <dependency> 
     <groupId>org.neo4j</groupId> 
     <artifactId>neo4j-cypher-compiler-2.1</artifactId> 
     <version>2.1.5</version> 
    </dependency> 
    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-data-solr</artifactId> 
     <version>1.2.3.RELEASE</version> 
    </dependency> 
    <dependency> 
     <groupId>commons-httpclient</groupId> 
     <artifactId>commons-httpclient</artifactId> 
     <version>3.1</version> 
    </dependency> 
    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId> 
      spring-boot-starter-data-elasticsearch 
     </artifactId> 
     <version>1.2.3.RELEASE</version> 
    </dependency> 
    <dependency> 
     <groupId>org.apache.activemq</groupId> 
     <artifactId>activemq-client</artifactId> 
     <version>5.10.1</version> 
    </dependency> 
</dependencies> 

<build> 
    <plugins> 
     <plugin> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-maven-plugin</artifactId> 
     </plugin> 




     <plugin> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-eclipse-plugin</artifactId> 
      <version>2.9</version> 
      <configuration> 
       <downloadSources>true</downloadSources> 
       <downloadJavadocs>false</downloadJavadocs> 
      </configuration> 
     </plugin> 


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


     <plugin> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-jar-plugin</artifactId> 
      <configuration> 

       <archive> 
        <manifest> 
         <addClasspath>true</addClasspath> 
         <mainClass>com.tpcsed.tasems.app.service.StartApp</mainClass> 
         <classpathPrefix>dependency-jars/</classpathPrefix> 
        </manifest> 
       </archive> 
      </configuration> 
     </plugin> 


     <plugin> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-dependency-plugin</artifactId> 
      <version>2.5.1</version> 
      <executions> 
       <execution> 
        <id>copy-dependencies</id> 
        <phase>package</phase> 
        <goals> 
         <goal>copy-dependencies</goal> 
        </goals> 
        <configuration> 
         <includeScope>runtime</includeScope> 
         <outputDirectory>${project.build.directory}/dependency-jars/</outputDirectory> 
        </configuration> 
       </execution> 
      </executions> 
     </plugin> 


    </plugins> 
</build> 

+1

ここに画像を入れないでください。ベターは過去のテキストを&copyを使用します... – khmarbaise

+0

イメージを使用しないでください。それらは検索エンジンによって索引付けすることはできません。これは、同じ問題の解決策を探している他のユーザーには役立ちません。 – tak3shi

答えて

0

あなたはのpom.xmlを投稿し、Eclipseがスローというエラーが表示さだろうか?

Eclipseは時々これを行います。

あなたは異なるもの試すことができますすることができます場合は、検証を無効にし、

1):[ウィンドウに移動]> [プリファレンスは、(それは右の「ターミナル」の下にあります)左のメニューで「検証」を選択し 。その後、目標「クリーンパッケージ」 3とMavenの設定を実行) 2の「適用」「すべてを無効にする」をクリックします)Eclipseの

を再起動して、あなたのソースコード内のエラーが表示されない場合、すべての依存関係がどこ正常にインポートすることを意味しています

+0

David @まず、私はスプリングツールスーツを使用していますが、stはエラーを投げていません。私のアプリケーションは動作していて正常に動作していますが、昨日から、プロジェクト階層に赤色のエラータグが表示されています(上記の添付画像のリンクを見つけることができます)。 –

+0

pom.xml自体の画像を投稿できますか?赤い線にカーソルを置くと何が表示されますか? – DavideS

+0

Davil @編集されたpom.xmlを見つけてください.pom.xmlにカーソルを置いている間に何かエラーや何かを見つけていません。 pom.xmlの中に赤い線はなく、ファイル名のアイコンだけが赤いタグを表示しています(画像の添付されたリンクに同じものを見つける)。 –

0

日食が間違っている場合がありますが、すべてを選択してコピーしてから削除して保存してください。

関連する問題