Q: Why do I have to use Maven?
A:
It is a tool that allows us open source developers to work together with out buiilding a lot of infrastructure. As an example of this Maven downloads 142 jars (at last count) into a repository on your machine.
Maven allows you the developer to work on several of these projects at once, your "local" project will publish a jar into the repository on your machine (where maven can pick it up).
Q: How do I set up M2_REPO?
A:
M2_REPO is a "Classpath Variable" expected by the .classpath file so that Eclipse can know where the the Maven Repository is on you machine.
M2_REPO is set using Eclipse References:
- Locate the 'Classpath Variables' under Java-->Build Path
- Hit the "New" button and type M2_REPO
- Use the folder button and select your maven repository (if you are a windows user this is located under your user name in "C:\Documents and Settings\USER\.m2\repository")
Q: It won't compile (part 0) - Out of Memory
A:
Yes there is a lot of code ![]()
On windows change the shortcut you used to start eclipse to:
C:\java\eclipse\eclipse.exe -vm %JAVA_HOME%\bin\javaw -vmargs -Xmx512m
You will find everything much faster - 768m is also good choice ![]()
Q: It won't compile (part 1)
A:
You can set up Eclipse to handle asserts using Preferences:
- Locate the page Java-->Compiler
- Go to the "Compliance and Classfiles" page
- Set the "Compiler compliance level" to 5.0
- Ensure the "Use default compliance settings" checkbox is checked
Q: It won't compile (part 2)
A:
Make sure you have installed JAI and possibly image_io extensions.
Q: It won't compile (part 3)
A:
Java 6 has changed a few interfaces (like DataSource) to require more methods:
- Locate the page Java-->Installed JREs
- Choose a JRE5 from the list (or use add to locate a JRE5 on disk)
- Rebuild
Q: Where is my module
A:
If your module failed the "maven build" process it the script will not pick it up. Please try and fix the maven build problem first. The -all option asks the script to pick up everything (but you need maven to populate that repository for you)