2

私はjrebelをEclipseプラグインとしてではなくスタンドアロンバージョンとして使用しているので、すべてのrebel.xmlファイルを自分で作成しました...

これでrebel.xml私は<configuration>タグで次のエラーを日食に入れました

cvc-complex-type.2.4.a:要素'configuration'で始まる無効なコンテンツが見つかりました。'{name、module、deployment、version、 "http://www.zeroturnaround.com":classpath、 "http:// www.zeroturnaround.com":web、 "http://www.zeroturnaround.com ":war}'が必要です。

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://www.zeroturnaround.com/alderaan/rebel-2_0.xsd">

    <configuration>
      <!--
        root is 2 directoris away from jar/war modules
      -->
      <relativePath>../../</relativePath>

      <rootPath>$${project_name.root}</rootPath>
    </configuration>

    <classpath>
        <dir name="${project_name.root}/datamodel/target/classes" />
    </classpath>

</application>

jRebelはすでに機能していますが、Eclipseでエラーが表示され、これは少し面倒です。誰かがエラーを見たり、これを修正する方法を知っていますか?

私が使用しているもの:Eclipse Indigo Service Release2およびjrebel5.0.1スタンドアロン(jarバージョン)

4

1 に答える 1

2

Mavenプラグイン要素とJRebel要素を混在させています。rebel.xmlにはJRebel情報のみが含まれている必要があります。含まれていない場合、JRebelは要素を無視し、実行時に理解されません。構成タグはMavenプラグイン要素であるため、削除する必要があります。Eclipseエラーは、スキーマが受け入れるJRebel要素が名前、モジュール、デプロイメント、バージョン、 "http://www.zeroturnaround.com":classpath、 "http:// www.zeroturnaround.com":web、および"http ://www.zeroturnaround.com ":war。これらは、ルートアプリケーションタグの下で使用できる唯一の要素です。

HTH-サイモン(ZeroTurnaround Tech Evangelist)@sjmaple

于 2012-12-20T14:42:13.503 に答える