incubator-photark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rusty Wright <>
Subject setting up photoark with eclipse using the maven plugin
Date Fri, 02 Jan 2009 02:57:31 GMT
Once you get past getting the Maven plugin working and forcing Eclipse to use the JDK instead
of the JRE it's really trivial:

Install the Maven plugin for Eclipse;

The tricky part with using the Maven plugin for Eclipse is that you need to set up Eclipse
to use the Java JDK, not the JRE.  Otherwise Maven won't work properly.

On Windows, find Eclipse in your Start menu and right click on it and select Properties. 
In the Properties window select the Shortcut tab.  In the Target box you need to add -vm followed
by the path to the JDK's javaw, in quotes.  For example, mine has

"C:\Program Files\eclipse-3.4.0\eclipse.exe" -vm "C:\Program Files\Java\jdk1.6.0_10\bin\javaw.exe"
-vmargs -Xms256m -Xmx768m -XX:PermSize=256M -XX:MaxPermSize=512M

Follow the verifying steps on the m2eclipse web site to make sure that Maven is working properly
within Eclipse.  I.e., you don't want to get that error message from Maven about the JDK in
the Eclipse console window.

Install the Eclipse Subclipse plugin if you haven't already (  Or Subversive,

In Eclipse right click in the Package Explorer window and select Import and open the Other
folder in the list (at the bottom) and in it select Check out Maven Projects from SCM.  Click
the Next button.

The Target Location window opens; in it use svn for the SCM URL drop down, and in the url
box next to that paste in the svn url;

Click the Finish button.

Look in the bottom right of the Eclipse window and wait for Maven to finish doing all of its
stuff; it may take quite a while because it needs to download dependencies.

After Maven finishes grinding away you'll end up with 4 folders, photoark, photoark-assets,
photoark-gallery, and photoark-gallery-webapp.  Apparently Eclipse doesn't support nested
projects so the m2eclipse plugin converts the project structure to this apparent flat structure;
although if you go into the folder in the Windows explorer it's nested.

The photoark folder contains the parent pom.  Right click on it and select Maven install.
Wait again for Maven to download lots of stuff, or go paint the bedroom, wash the car, etc.

I don't remember if I was able to run it from within Eclipse, but it does generate a .war
file and install it in your local repository.

View raw message