I've spent some over the past week or two also working on building opennms 
inside eclipse. I think you'll have better luck building the completed project 
using compile.pl and assemble.pl outside of eclipse than inside it. Just 
install ActiveState perl on your system, and you'll have no problems running 
the build process.

Here's my notes on issues I've found building the project inside eclipse:

There is a plugin you can add to the project to add the generated-sources 
directories to the build path. See http://issues.opennms.org/browse/NMS-4814. 
This will solve most of the can't compile due to missing sources.
 
I'm fairly certain you can also bump maven-resources-plugin from 2.3 to 2.5 
even though the comments in opennms/pom.xml say there's major escaping issues 
beyond 2.3. As best I can tell all the filtered files now using the ${...} 
syntax instead of @...@ like they used to so the comment doesn't seem to apply 
any more. This will get rid of the builds errors about m2e needing a newer 
version of maven-resources-plugin.

Next, there are a couple of plugins that opennms uses that eclipse & m2e don't 
know what to do with. You'll need to add a lifecycle-mapping plugin so eclipse 
knows how to handle those specific plugins. It is pretty simple since eclipse 
suggests a quick-fix of adding an "ignore" action which you can then switch to 
execute so it will still execute those plugins. Adding these will cause the 
command line build to throw warnings about these unknown plugins though.

There are two projects that will still fail to build, 
opennms-tools/jira-troubleticketer and opennms-tools/quickbase-troubleticketer. 
Both have dependencies on external jars that are not available via maven. It is 
probably easier to not import the two projects in when you do the initial 
import existing maven projects.

At this point Eclipse is telling me I have 158 errors and 1457 warnings in the 
problems window. If I close the jira-troubleticketer and 
quickbase-troubleticketer projects, I'm down to 5 errors and 1457 warnings.

1. Eclipse is correct about though, 
features/isoc-ipv6-gui/src/main/webapp/WEB-INF/web.xml is invalid xml. The 
welcome-file-list section should be after the servlet-mapping section.
2. 
opennms-web-api/src/test/java/org/opennms/web/org/opennms/web/api/CommandBeanMockup.java
 - java package name wrong?
3. 
opennms-web-api/src/test/java/org/opennms/web/org/opennms/web/api/WebSecurityUtilsTest.java
 - java package name wrong?
4. features/remote-poller-jnlp/pom.xml (x2) - can add the ignore 
lifecycle-mapping for webstart-maven-plugin, but execute mapping has build 
issues inside eclipse (due to customized opennms version of the plugin?)

Ron

-----Original Message-----
From: thotasridevi [mailto:thotasri...@yahoo.co.in] 
Sent: Tuesday, July 05, 2011 4:54 AM
To: opennms-devel@lists.sourceforge.net
Subject: Re: [opennms-devel] Problem With Building in Eclipse-Windows

Hi,

   Are you able to build opennms with eclipse on windows .I am expecting by 
this time you might completed .If so can you please guide me I am also getting 
build errors missing buildpath eventhough after following all the instructions 
from wikki page.Can you reply to thotasri...@yahoo.co.in

thanks
sridevi

--
View this message in context: 
http://opennms.530661.n2.nabble.com/Re-Problem-With-Building-in-Eclipse-Windows-tp5351086p6549078.html
Sent from the OpenNMS - devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes sense 
of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this 
page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel

This e-mail message is being sent solely for use by the intended recipient(s) 
and may contain confidential information.  Any unauthorized review, use, 
disclosure or distribution is prohibited.  If you are not the intended 
recipient, please contact the sender by phone or reply by e-mail, delete the 
original message and destroy all copies. Thank you.

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this 
page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel

Reply via email to