Hi,

I've just had to build Jenkins for the first time on Windows 7 for testing 
plugins.These are my observations that you can add to the Wiki page at 
https://wiki.jenkins-ci.org/display/JENKINS/Building+Jenkins:

1. You need to run the maven build with admin rights and use JDK 1.7 in 
order for the unit tests to pass.
2. I needed to set MAVEN_OPTS=-Xmx512m -XX:MaxPermSize=256m
3. The best way I found to setup the build is to use a local test instance 
of Nexus and specify a separate settings.xml with the maven -s option. This 
settings.xml file defines a <server> with the <id> of "deployment", and the 
default nexus admin username and password.
4. On the Maven command line, specify "deploy:deploy" and the 
-DaltDeploymentRepository=deployment::default::<test nexus host>:<test 
nexus port>/nexus/content/repositories/snapshots/. Doing this means that 
you don't have to edit any Jenkins POM files, and you don't break any other 
Maven builds you might have.

Eclipse:

1. Run Eclipse with JDK 1.6 (1.7 stops the maven discovery working)
2. Install the latest version of the m2e plugiin.
3. Choose, Windows, Preferences, Maven, Discovery, and click on Open 
Catalog. The catalog should display.
4. I installed all the m2e connectors, except Subclipse (because the m2e 
plugin does not support version 1.10 of the Subclipse plugin)
5. restart Eclipse after all the plugins have installed.
6. Now import the existing Maven Jenkins projects
7. Choose to resolve all m2e connector issues during the import process by 
installing the required connectors.
8. Exit Eclipse when all the connectors have installed, and all the build 
activity due to the import process has finished.
9. Build Jenkins from the command line
10. Restart Eclipse
11. Refresh and update all the Jenkins maven projects (check force updating 
snapshots)

I hope you find this of use updating your "Building Jenkins" Wiki page.

Kind regards,







-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to