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

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

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

Apache Struts 2は、Apache Strutsプロジェクトにて開発されているオープンソースのJavaベースのWebアプリケーションフレームワークです。Sturts1に比べ、設定ファイルの削減、依存性の注入、POJO等の改善がなされています。

Spring

Spring Framework は、Javaプラットフォーム向けのオープンソースアプリケーションフレームワークです。 Java Platform上に、 Web ベースのアプリケーションを設計するための拡張機能が数多く用意されています。

Eclipse

Eclipseは、IBM社で開発された統合開発環境のひとつです。2001年11月にオープンソース化されました。 たくさんのプラグインがあり自由に機能を追加をすることができるため、開発ツールにおける共通プラットフォームとして位置づけられています。 Eclipse自体は、Javaで実装されています。

Q&A

解決済

1回答

8215閲覧

Eclipseでmavenプロジェクトを更新時にエラーが表示される

hirohiro0369

総合スコア16

Struts 2

Apache Struts 2は、Apache Strutsプロジェクトにて開発されているオープンソースのJavaベースのWebアプリケーションフレームワークです。Sturts1に比べ、設定ファイルの削減、依存性の注入、POJO等の改善がなされています。

Spring

Spring Framework は、Javaプラットフォーム向けのオープンソースアプリケーションフレームワークです。 Java Platform上に、 Web ベースのアプリケーションを設計するための拡張機能が数多く用意されています。

Eclipse

Eclipseは、IBM社で開発された統合開発環境のひとつです。2001年11月にオープンソース化されました。 たくさんのプラグインがあり自由に機能を追加をすることができるため、開発ツールにおける共通プラットフォームとして位置づけられています。 Eclipse自体は、Javaで実装されています。

0グッド

1クリップ

投稿2017/08/24 04:56

編集2017/08/30 00:28

Eclipseでmavenプロジェクトを更新時、「Maven構成更新中のエラー 次のプロジェクトのmaven構成を更新できません:ネストできません。ネストを可能にするにはsrcから除外してください。」と表示されます。

対処法として下記3点を実施しました。
1."http://qiita.com/makito/items/6ee52ba9796a8b3498c8"の情報を参考に対応。
2.srcフォルダにはサブフォルダがいくつかあり、pom.xml上の"uild-helper-maven-plugin"にてサブフォルダ設定済。
3.Javaのビルドパスにサブフォルダの追加設定。

上記対応してもエラーは解消できません。
何か他の対処方法があれば、ご教授頂けますでしょうか?

以上、よろしくお願いいたします。

【補足情報】
フォルダ構造とpom.xmlについて補足しました。
■フォルダ構造について
mavenプロジェクト"eformadm"内のソースフォルダ"src"内に下記サブフォルダが複数存在します。

\\eformadm\src\cycommon \\eformadm\src\core \\eformadm\src\web

■pom.xmlについて

xml

1<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"> 2 <modelVersion>4.0.0</modelVersion> 3 <groupId>eformadm</groupId> 4 <artifactId>eformadm</artifactId> 5 <version>0.0.1-SNAPSHOT</version> 6 <packaging>war</packaging> 7 <properties> 8 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 9 </properties> 10 <build> 11 <finalName>eformadm</finalName> 12 <sourceDirectory>src</sourceDirectory> 13 <resources> 14 <resource> 15 <directory>res/conf</directory> 16 <excludes> 17 <exclude>**/*.java</exclude> 18 </excludes> 19 </resource> 20 <resource> 21 <directory>res/sql</directory> 22 <excludes> 23 <exclude>**/*.java</exclude> 24 </excludes> 25 </resource> 26 </resources> 27 <plugins> 28 <plugin> 29 <artifactId>maven-compiler-plugin</artifactId> 30 <version>3.5.1</version> 31 <configuration> 32 <source>1.8</source> 33 <target>1.8</target> 34 </configuration> 35 </plugin> 36 <plugin> 37 <artifactId>maven-war-plugin</artifactId> 38 <version>3.0.0</version> 39 <configuration> 40 <warSourceDirectory>WebContent</warSourceDirectory> 41 <webXml>WebContent/WEB-INF/web.xml</webXml> 42 </configuration> 43 </plugin> 44 <plugin> 45 <groupId>org.codehaus.mojo</groupId> 46 <artifactId>build-helper-maven-plugin</artifactId> 47 <version>3.0.0</version> 48 <executions> 49 <execution> 50 <id>add-source</id> 51 <phase>generate-sources</phase> 52 <goals> 53 <goal>add-source</goal> 54 </goals> 55 <configuration> 56 <sources> 57 <source>src/cycommon</source> 58 <source>src/core</source> 59 <source>src/web</source> 60 </sources> 61 </configuration> 62 </execution> 63 </executions> 64 </plugin> 65 </plugins> 66 </build> 67 <dependencies> 68 <dependency> 69 <groupId>asm</groupId> 70 <artifactId>asm</artifactId> 71 <version>3.3.1</version> 72 </dependency> 73 <dependency> 74 <groupId>commons-collections</groupId> 75 <artifactId>commons-collections</artifactId> 76 <version>3.2.1</version> 77 </dependency> 78 <dependency> 79 <groupId>org.apache.commons</groupId> 80 <artifactId>commons-compress</artifactId> 81 <version>1.13</version> 82 </dependency> 83 <dependency> 84 <groupId>commons-fileupload</groupId> 85 <artifactId>commons-fileupload</artifactId> 86 <version>1.3.2</version> 87 </dependency> 88 <dependency> 89 <groupId>commons-io</groupId> 90 <artifactId>commons-io</artifactId> 91 <version>2.4</version> 92 </dependency> 93 <dependency> 94 <groupId>org.apache.commons</groupId> 95 <artifactId>commons-lang3</artifactId> 96 <version>3.4</version> 97 </dependency> 98 <dependency> 99 <groupId>commons-logging</groupId> 100 <artifactId>commons-logging</artifactId> 101 <version>1.1.3</version> 102 </dependency> 103 <dependency> 104 <groupId>org.freemarker</groupId> 105 <artifactId>freemarker</artifactId> 106 <version>2.3.23</version> 107 </dependency> 108 <dependency> 109 <groupId>org.javassist</groupId> 110 <artifactId>javassist</artifactId> 111 <version>3.20.0-GA</version> 112 </dependency> 113 <dependency> 114 <groupId>log4j</groupId> 115 <artifactId>log4j</artifactId> 116 <version>1.2.17</version> 117 </dependency> 118 <dependency> 119 <groupId>org.mybatis</groupId> 120 <artifactId>mybatis</artifactId> 121 <version>3.3.0</version> 122 </dependency> 123 <dependency> 124 <groupId>org.mybatis</groupId> 125 <artifactId>mybatis-spring</artifactId> 126 <version>1.2.3</version> 127 </dependency> 128 <dependency> 129 <groupId>ognl</groupId> 130 <artifactId>ognl</artifactId> 131 <version>3.1.12</version> 132 </dependency> 133 <dependency> 134 <groupId>org.springframework</groupId> 135 <artifactId>spring-aop</artifactId> 136 <version>4.1.6.RELEASE</version> 137 </dependency> 138 <dependency> 139 <groupId>org.springframework</groupId> 140 <artifactId>spring-beans</artifactId> 141 <version>4.1.6.RELEASE</version> 142 </dependency> 143 <dependency> 144 <groupId>org.springframework</groupId> 145 <artifactId>spring-context</artifactId> 146 <version>4.1.6.RELEASE</version> 147 </dependency> 148 <dependency> 149 <groupId>org.springframework</groupId> 150 <artifactId>spring-context-support</artifactId> 151 <version>4.1.6.RELEASE</version> 152 </dependency> 153 <dependency> 154 <groupId>org.springframework</groupId> 155 <artifactId>spring-core</artifactId> 156 <version>4.1.6.RELEASE</version> 157 </dependency> 158 <dependency> 159 <groupId>org.springframework</groupId> 160 <artifactId>spring-expression</artifactId> 161 <version>4.1.6.RELEASE</version> 162 </dependency> 163 <dependency> 164 <groupId>org.springframework</groupId> 165 <artifactId>spring-jdbc</artifactId> 166 <version>4.1.6.RELEASE</version> 167 </dependency> 168 <dependency> 169 <groupId>org.springframework</groupId> 170 <artifactId>spring-tx</artifactId> 171 <version>4.1.6.RELEASE</version> 172 </dependency> 173 <dependency> 174 <groupId>org.springframework</groupId> 175 <artifactId>spring-web</artifactId> 176 <version>4.1.6.RELEASE</version> 177 </dependency> 178 <dependency> 179 <groupId>org.postgresql</groupId> 180 <artifactId>postgresql</artifactId> 181 <version>42.1.1</version> 182 </dependency> 183 <dependency> 184 <groupId>org.apache.struts</groupId> 185 <artifactId>struts2-core</artifactId> 186 <version>2.5.10.1</version> 187 </dependency> 188 <dependency> 189 <groupId>javax.servlet</groupId> 190 <artifactId>javax.servlet-api</artifactId> 191 <version>3.1.0</version> 192 </dependency> 193 <dependency> 194 <groupId>org.apache.tomcat</groupId> 195 <artifactId>tomcat-dbcp</artifactId> 196 <version>7.0.78</version> 197 </dependency> 198 <dependency> 199 <groupId>org.apache.struts</groupId> 200 <artifactId>struts2-spring-plugin</artifactId> 201 <version>2.5.10.1</version> 202 </dependency> 203 <dependency> 204 <groupId>org.apache.struts</groupId> 205 <artifactId>struts2-json-plugin</artifactId> 206 <version>2.5.10.1</version> 207 </dependency> 208 </dependencies> 209</project>

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

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

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

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

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

koronatail

2017/08/24 08:28

pom.xmlと詳しいフォルダ構造を載せていただけると参考になるかもしれません
hirohiro0369

2017/08/25 00:01

参考のためpom.xmlとフォルダ構造を追記いたしました。
guest

回答1

0

自己解決

掲載したpom.xmlでは、<sourceDirectory>src</sourceDirectory> でsrcディレクトリをソースディレクトリと指定し、また、build-helper-maven-plugin設定によってsrc以下の src/cycommonなどもまたソースディレクトリとして指定するようになってしまっているため、ネストエラーになっていたようです。src\cycommon, src\core, src\webのうちひとつを(src指定を削除し、代わりに)<sourceDirectory>で設定し、残りの2つを従来どおりbuild-helper-maven-pluginで設定することで、エラーが出なくなりました。

投稿2017/08/30 07:00

hirohiro0369

総合スコア16

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

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

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.50%

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

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

質問する

関連した質問