0

Eclipse プラグインをコンパイルするときに問題が発生しました。これはエラーです。

/usr/local/hadoop/src/contrib/eclipse-plugin$ ant
Buildfile: /usr/local/hadoop/src/contrib/eclipse-plugin/build.xml

BUILD FAILED
/usr/local/hadoop/src/contrib/eclipse-plugin/build.xml:22: The following error occurred while executing this line:
/usr/local/hadoop/src/contrib/build-contrib.xml:43: Element type "property" must be followed by either attribute specifications, ">" or "/>".

Total time: 0 seconds

変更された行はこれらです

41:  <!--modificacion de hadoop-->
42:  <!-- Property added for compiling eclipse plugin -->
43:  <property name="src.eclipse"  location="${root}/usr/lib/eclipse"/> 
44:  <!--cerrado-->
4

1 に答える 1

0

チュートリアルに従ってこのプラグインを作成しましたか? build.xml だけを変更すると、うまくいかないと思います。これが私が使用し、私のために働いたものです:

buildcontrib.xml を編集します (下の行は Hadoop のバージョンによって異なります。1.2.1 Hadoop でこれらすべてを試しました)。

<property name="version" value="1.2.1" />

<property name="eclipse.home" value="/path/to/eclipse/home" />

 

build.properties で次の行を編集して追加します。

eclipse.home=/path/to/eclipse/home

version=1.2.1

commons­cli.version=1.2

commons­configuration.version=1.6

commons­httpclient.version=3.0.1

commons­lang.version=2.4

jackson­core­asl.version=1.8.8

jackson­mapper­asl.version=1.8.8

 

METAINF/MANIFEST.MF :

Bundle­ClassPath: classes/,

lib/hadoop­core.jar,

lib/commons­cli­1.2.jar,

lib/commons­configuration­1.6.jar,

lib/jackson­core­asl­1.8.8.jar,

lib/commons­httpclient­3.0.1.jar,

lib/jackson­mapper­asl­1.8.8.jar,

lib/commons­lang­2.4.jar

 

build.xml で、次の後に追加します。  

<fileset dir="${hadoop.root}">

      <include name="*.jar" />

</fileset>

最後に、ant jar を実行し、生成されたプラグインを eclipse に追加します。

于 2014-03-25T09:13:41.830 に答える