[
https://issues.apache.org/jira/browse/JSPWIKI-869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14281341#comment-14281341
]
David Vittor commented on JSPWIKI-869:
--------------------------------------
Actually I've found the error.
It's to do with checkstyle, it should only apply to the source "jspwiki-war"
and not to all the modules (especially not jspwiki-wikipages).
Find in pom.xml the section
{noformat}
<plugin>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.9</version>
<configuration>
<downloadSources>true</downloadSources>
<downloadJavadocs>true</downloadJavadocs>
<additionalConfig>
<file>
<name>.checkstyle</name>
<location>./src/main/config/dev/jspwiki-checkstyle.xml</location>
</file>
<file>
<name>.settings/org.eclipse.jdt.core.prefs</name>
<location>./src/main/config/dev/jspwiki-eclipse-codestyle.xml</location>
</file>
</additionalConfig>
<additionalProjectnatures>
<projectnature>net.sourceforge.metrics.nature</projectnature>
<projectnature>net.sf.eclipsecs.core.CheckstyleNature</projectnature>
</additionalProjectnatures>
</configuration>
</plugin>
{noformat}
Cut this and move it to jspwiki-war/pom.mxl anywhere within <build>/<plugins>.
Note: I've changed the location path to remove "jspwiki-war", as this is now
part of the "basedir"
That should fix it. Someone should make this change to the svn source!
Cheers,
David V
> JSPWiki Maven project cannot be imported into Eclipse
> -----------------------------------------------------
>
> Key: JSPWIKI-869
> URL: https://issues.apache.org/jira/browse/JSPWIKI-869
> Project: JSPWiki
> Issue Type: Bug
> Components: Build system
> Affects Versions: 2.10.1
> Environment: Eclipse Luna SR1
> Reporter: Jürgen Weber
>
> After importing jspwiki-war into Eclipse, there is no package structure shown.
> Also, mvn eclipse:eclipse fails with
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-eclipse-plugin:2.9:eclipse (default-cli) on
> project jspwiki-wikipages-de: Unable to resolve resource location:
> ./jspwiki-war/src/main/config/dev/jspwiki-checkstyle.xml -> [Help 1]
> See also
> http://mail-archives.apache.org/mod_mbox/jspwiki-dev/201410.mbox/%3CCAFNKvH1g1or4qDVA-apC6mnc%2BKAzr4fSMiM6hiCR71jDqLFvYg%40mail.gmail.com%3E
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)