You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by Jürgen Weber <ju...@jwi.de> on 2014/10/10 14:15:06 UTC
How to develop in Eclipse?
Hi,
how do you get the JSPWiki source into Eclipse Luna?
I tried File - import existing Maven project - and selected the toplevel
pom, this imports several projects, but Java files result not in the
package structure and one cannot navigate in the source.
Then I tried mvn eclipse:eclipse, but this fails.
Could somebody please document how to get the JSPWiki source into Eclipse
Luna and work with it in
https://jspwiki-wiki.apache.org/Wiki.jsp?page=Getting%20Involved
Thanks, Juergen
Re: How to develop in Eclipse?
Posted by David Vittor <dv...@gmail.com>.
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
<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>
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
On Sat, Oct 11, 2014 at 10:43 PM, David Vittor <dv...@gmail.com> wrote:
> Hi Jurgen,
>
> Try run "mvn install" once (this should work), and then afterwards runs
> mvn eclipse:eclipse.
>
> I've also created a page in JSPWiki, but have not had time to fully
> document. Feel free to update it based on your experience:
> https://jspwiki-wiki.apache.org/Wiki.jsp?page=DevelopmentEnvironment
>
> Kind regards,
> David V
>
>
> On Fri, Oct 10, 2014 at 11:15 PM, Jürgen Weber <ju...@jwi.de> wrote:
>
>> Hi,
>>
>> how do you get the JSPWiki source into Eclipse Luna?
>>
>> I tried File - import existing Maven project - and selected the toplevel
>> pom, this imports several projects, but Java files result not in the
>> package structure and one cannot navigate in the source.
>>
>> Then I tried mvn eclipse:eclipse, but this fails.
>>
>> Could somebody please document how to get the JSPWiki source into Eclipse
>> Luna and work with it in
>> https://jspwiki-wiki.apache.org/Wiki.jsp?page=Getting%20Involved
>>
>> Thanks, Juergen
>>
>
>
Re: How to develop in Eclipse?
Posted by David Vittor <dv...@gmail.com>.
Hi Jurgen,
Try run "mvn install" once (this should work), and then afterwards runs mvn
eclipse:eclipse.
I've also created a page in JSPWiki, but have not had time to fully
document. Feel free to update it based on your experience:
https://jspwiki-wiki.apache.org/Wiki.jsp?page=DevelopmentEnvironment
Kind regards,
David V
On Fri, Oct 10, 2014 at 11:15 PM, Jürgen Weber <ju...@jwi.de> wrote:
> Hi,
>
> how do you get the JSPWiki source into Eclipse Luna?
>
> I tried File - import existing Maven project - and selected the toplevel
> pom, this imports several projects, but Java files result not in the
> package structure and one cannot navigate in the source.
>
> Then I tried mvn eclipse:eclipse, but this fails.
>
> Could somebody please document how to get the JSPWiki source into Eclipse
> Luna and work with it in
> https://jspwiki-wiki.apache.org/Wiki.jsp?page=Getting%20Involved
>
> Thanks, Juergen
>