私は日食で私のpom.xmlファイルに依存関係をコピーしたが、私は若干の誤差が出るTutorialHornetQは - のpom.xmlファイル有効ではありません
を実行しているHornetQの例を取得しようと、私は理解していません。私はmavenを初めて使っていてm2リポジトリを既に削除していて、私はいつもalt + f5( "スナップショット/リリースの強制更新")で更新します。
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>mannheim</groupID>
<artifactID>hornetq</artifactID>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>HornetQHelloWorld</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupID>junit</groupID>
<artifactID>junit</artifactID>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupID>org.hornetq</groupID>
<artifactID>hornetq-core</artifactID>
<version>2.0.0.GA</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupID>org.hornetq</groupID>
<artifactID>hornetq-jms</artifactID>
<version>2.0.0.GA</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupID>org.hornetq</groupID>
<artifactID>hornetq-logging</artifactID>
<version>2.0.0.GA</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupID>org.hornetq</groupID>
<artifactID>hornetq-transports</artifactID>
<version>2.0.0.GA</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupID>org.jboss.netty</groupID>
<artifactID>netty</artifactID>
<version>3.1.0.GA</version>
</dependency>
<dependency>
<groupID>org.jboss.javaee</groupID>
<artifactID>jboss-jms-api</artifactID>
<version>1.1.0.GA</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
エラーメッセージ:
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project [unknown-group-id]:[unknown-artifact-id]:1.0-SNAPSHOT (C:\Users\Julian\workspace\hornetq\pom.xml) has 3 errors
[ERROR] Malformed POM C:\Users\Julian\workspace\hornetq\pom.xml: Unrecognised tag: 'modelversion' (position: START_TAG seen ....0 http://maven.apache.org/xsd/maven-4.0.0.xsd">\r\n <modelversion>... @3:17) @ C:\Users\Julian\workspace\hornetq\pom.xml, line 3, column 17 -> [Help 2]
[ERROR] 'groupId' is missing. @ line 2, column 102
[ERROR] 'artifactId' is missing. @ line 2, column 102
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
私は彼らがポンポンで定義されているので、グループとアーティファクトIDが欠落している理由を得ることはありません。なぜ私はmodelversionが有効でないのか分かりません。
私は初心者ですから、ここで答えを得たいと思っています。
敬具