Prescribed method to prepare downloaded sources for import into eclipse?

Being completely new to git I followed the Nuxeo-provided instructions to download Nuxeo sources. Then I tried to run “mvn eclipse:eclipse” and that failed almost immediately because maven was looking for the 5.5.0-HF1-SNAPSHOT build in the https://maven.nuxeo.org/nexus/content/groups/public-snapshot repository, but it doesn't exist. However, the current 5.5-SNAPSHOT build does exist.

So… I did a mass find/replace of 5.5.0-HF1-SNAPSHOT to 5.5-SNAPSHOT in all the pom files and now mvn eclipse:eclipse runs without issue.

I know this is sub-optimal, but at least it allows be to import all the nuxeo projects into Eclipse. Is there a better way to handle this?

Thanks, Bruce

0 votes

1 answers

1747 views

ANSWER



5.5.0-HF01-SNAPSHOT artifacts were not deployed in maven.nuxeo.org, so if you want to use “mvn eclipse:eclipse” on 5.5.0 branches, you have to locally install them first by running “mvn install”.
Note you should also run the “fixeclipse” script available at root of Nuxeo which makes Eclipse use a “bin” directory for its compilation process instead of “target” in order to avoid conflicts between Eclipse and Maven builds.

1 votes



Is there a Windows equivalent to fixeclipse?
01/04/2012

No, sorry, there is not. But it would be useful.<br> That could be achieved by rewriting the script in a multi-OS language, such as Python. Or, to write an equivalent in DOS batch, if you feel good enough in that scripting language.
01/06/2012