質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Seasar2

Seasar2はJ2EE/Java EEでの大規模な開発を効率良く行なうためのフレームワークです。 必要な設定ファイルを従来のものと比べて少なくし、依存性を分離して記述しています。 そのため、生産性の高いプログラム開発が可能です。

Q&A

0回答

2312閲覧

Doltengで自動生成したpom.xmlにエラーが出る

knt2015

総合スコア13

Seasar2

Seasar2はJ2EE/Java EEでの大規模な開発を効率良く行なうためのフレームワークです。 必要な設定ファイルを従来のものと比べて少なくし、依存性を分離して記述しています。 そのため、生産性の高いプログラム開発が可能です。

0グッド

1クリップ

投稿2016/06/22 16:45

編集2022/01/12 10:55

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>

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問