Doltengで自動生成したpom.xmlでエラーが出ます。
pom.xmlを少し編集(下記記載)したところ、エラー自体は消えたのですが、ライブラリの自動インポートが機能しませんでした。解決策をご存知の方いましたらご教授頂けないでしょうか?
##環境
Seasar2
java1.6
eclipse3.6(Helios)
tomcat6
##doltengの設定
プロジェクトのファセットは下記の通りです。
sastruts
s2jdbc
wtp2.5
##エラーメッセージ
The errors below were detected when validating the file "maven-v4_0_0.xsd" via the file "pom.xml". In most cases these errors can be detected by validating "maven-v4_0_0.xsd" directly. However it is possible that errors will only occur when maven-v4_0_0.xsd is validated in the context of pom.xml.
##試したこと
1行目のmaven-v4_0_0.xsdをmaven-v3_0_0.xsd
に変えたところ、とりあえずエラーは消えるのですが、
結局dependencyに記述したライブラリはインポートされません。
(新しくdependencyに追加したライブラリはインポートされない。)
#####doltengで自動生成されるpom.xml
<?xml version="1.0" encoding="UTF-8"?><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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>jp.co.example</groupId> <artifactId>DoltengTest</artifactId> <version>0.0.1</version> <packaging>war</packaging> <name>DoltengTest</name> <build> <sourceDirectory>src/main/java</sourceDirectory> <outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory> <resources> <resource> <directory>src/main/resources</directory> </resource> </resources> <testOutputDirectory>target/test-classes</testOutputDirectory> <testSourceDirectory>src/test/java</testSourceDirectory> <testResources> <testResource> <directory>src/test/resources</directory> </testResource> </testResources> <defaultGoal>validate</defaultGoal> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.6</source> <target>1.6</target> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <id>source-jar</id> <phase>package</phase> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> </plugins> <pluginManagement> <plugins> <plugin> <artifactId>maven-eclipse-plugin</artifactId> <configuration> <wtpversion>1.5</wtpversion> </configuration> </plugin> </plugins> </pluginManagement> </build> <pluginRepositories> <pluginRepository> <id>maven.seasar.org</id> <name>The Seasar Foundation Maven2 Repository</name> <url>http://maven.seasar.org/maven2</url> </pluginRepository> </pluginRepositories> <repositories> <repository> <id>local</id> <name>Local Repository</name> <url>file:repo</url> </repository> <repository> <id>maven.seasar.org</id> <name>The Seasar Foundation Maven2 Repository</name> <url>http://maven.seasar.org/maven2</url> </repository> </repositories> <dependencies> <dependency> <groupId>cglib</groupId> <artifactId>cglib-nodep</artifactId> <version>2.1_3</version> <scope>test</scope> </dependency> ・・・・・・・・ ・・・・・・・・ ・・・・・・・・ <dependency> <groupId>struts</groupId> <artifactId>struts</artifactId> <version>1.2.9</version> <exclusions> <exclusion> <groupId>xalan</groupId> <artifactId>xalan</artifactId> </exclusion> </exclusions> </dependency> </dependencies> </project>
あなたの回答
tips
プレビュー