Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
How to build Mango in netbeans 6.8
-
Please guide me how to build Mango in netbeans 6.8
Please provide me with each steps giving idea about the libraries,framework to include and every thing as I am very new to netbeans and the mango(mango-source-1.8.0.zip)
Thanks
-
Hi,
If you want to use maven and have a *NIX OS I can provide a pom.xml and a setup script.
Arne
-
Yes I do have those maven ,So can you please send me the descriptive script you was talking about .
thanks
-
Hi,
[list]Download sources and bin.
[list]unpack the sources to ~/NetBeansProjects/mango-1.8.0.[/list]
[list]put the script link-to-mvn.sh in this dir.[/list]
[list]execute the script in this dir sh link-to-mvn.sh.
a new dir ~/NetBeansProjects/mango-maven/ will be created and the mavenlayout will be linked to the sources at ~/NetBeansProjects/mango-1.8.0.[/list]
[list]put the pom.xml into the mango-maven dir.[/list]
[list]upon first run there are some missing jars, you find them in the mango-bin archive
Hint: I use rxtx2.2 which is not released jet so you change these to rxtx2.1. or download the jar and *.so from http://www.rxtx.org.[/list]
[list]copy and edit the files
$MANGO_SRC/war/WEB-INF/classes/env.properties $DEST/resources
and
$MANGO_SRC/war/WEB-INF/classes/log4j.xml $DEST/resources
[/list]#!/bin/sh MANGO_SRC=`pwd`; MANGO=`pwd`/../mango-maven mkdir $MANGO DEST=$MANGO/src/main mkdir $MANGO/src mkdir $MANGO/src/main mkdir $DEST/webapp mkdir $DEST/webapp/WEB-INF mkdir $DEST/resources ln -s $MANGO_SRC/db $DEST/webapp/WEB-INF/db ln -s $MANGO_SRC/pom.xml $MANGO/pom.xml ln -s $MANGO_SRC/war/soundmanager2.swf $DEST/webapp/ ln -s $MANGO_SRC/war/index.jsp $DEST/webapp/ ln -s $MANGO_SRC/war/audio $DEST/webapp/ ln -s $MANGO_SRC/war/exception $DEST/webapp/ ln -s $MANGO_SRC/war/graphics $DEST/webapp/ ln -s $MANGO_SRC/war/images $DEST/webapp/ ln -s $MANGO_SRC/war/resources $DEST/webapp/ ln -s $MANGO_SRC/war/uploads $DEST/webapp/ ln -s $MANGO_SRC/war/WEB-INF/web.xml $DEST/webapp/WEB-INF/ ln -s $MANGO_SRC/war/WEB-INF/applicationContext.xml $DEST/webapp/WEB-INF/ ln -s $MANGO_SRC/war/WEB-INF/dwr.xml $DEST/webapp/WEB-INF/ ln -s $MANGO_SRC/war/WEB-INF/springDispatcher-servlet.xml $DEST/webapp/WEB-INF/ ln -s $MANGO_SRC/war/WEB-INF/dox $DEST/webapp/WEB-INF/ ln -s $MANGO_SRC/war/WEB-INF/ftl $DEST/webapp/WEB-INF/ ln -s $MANGO_SRC/war/WEB-INF/jsp $DEST/webapp/WEB-INF/ ln -s $MANGO_SRC/war/WEB-INF/scripts $DEST/webapp/WEB-INF/ ln -s $MANGO_SRC/war/WEB-INF/snippet $DEST/webapp/WEB-INF/ ln -s $MANGO_SRC/war/WEB-INF/tld $DEST/webapp/WEB-INF/ ln -s $MANGO_SRC/war/WEB-INF/tags $DEST/webapp/WEB-INF/ ln -s $MANGO_SRC/war/WEB-INF/classes/changeSnippetMap.properties $DEST/resources ln -s $MANGO_SRC/war/WEB-INF/classes/chartSnippetMap.properties $DEST/resources ln -s $MANGO_SRC/war/WEB-INF/classes/i18n.properties $DEST/resources ln -s $MANGO_SRC/war/WEB-INF/classes/messages_de.properties $DEST/resources ln -s $MANGO_SRC/war/WEB-INF/classes/messages_en.properties $DEST/resources ln -s $MANGO_SRC/war/WEB-INF/classes/messages.properties $DEST/resources ln -s $MANGO_SRC/war/WEB-INF/classes/setPointSnippetMap.properties $DEST/resources #Do use own ones #ln -s $MANGO_SRC/war/WEB-INF/classes/env.properties $DEST/resources #ln -s $MANGO_SRC/war/WEB-INF/classes/log4j.xml $DEST/resources cd $DEST/ ln -s $MANGO_SRC/src java
pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.serotonin</groupId> <artifactId>mango</artifactId> <packaging>war</packaging> <version>1.8.0-SNAPSHOT</version> <name>mango 1.8.0</name> <url>http://mango.serotonisoftware.com</url> <dependencies> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> <scope>provided</scope> </dependency> <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>1.1.1</version> </dependency> <dependency> <groupId>org.directwebremoting</groupId> <artifactId>dwr</artifactId> <version>2.0.3</version> </dependency> <!-- ??? apl ??? dependency> <groupId>org.dojotoolkit</groupId> <artifactId>dojo</artifactId> <version>1.3.1</version> </dependency--> <dependency> <groupId>org.rxtx</groupId> <artifactId>rxtx</artifactId> <version>2.2</version> </dependency> <dependency> <groupId>javax.servlet.jsp</groupId> <artifactId>jsp-api</artifactId> <version>2.1</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.serotonin</groupId> <artifactId>serotonin-util</artifactId> <version>1.8.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring</artifactId> <version>2.5.6</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>2.5.6</version> <scope>compile</scope> </dependency> <dependency> <groupId>joda-time</groupId> <artifactId>joda-time</artifactId> <version>1.6</version> <scope>compile</scope> </dependency> <dependency> <groupId>quartz</groupId> <artifactId>quartz</artifactId> <version>1.5.2</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.snmp4j</groupId> <artifactId>snmp4j</artifactId> <version>1.9.1f</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.serotonin</groupId> <artifactId>serotonin-spinwave</artifactId> <version>1.7.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.freemarker</groupId> <artifactId>freemarker</artifactId> <version>2.3.16</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.derby</groupId> <artifactId>derby</artifactId> <version>10.5.3.0_1</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.derby</groupId> <artifactId>derbytools</artifactId> <version>10.5.3.0_1</version> <scope>compile</scope> </dependency> <dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId> <version>1.3</version> <scope>compile</scope> </dependency> <dependency> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId> <version>3.1</version> <scope>compile</scope> </dependency> <dependency> <groupId>jfree</groupId> <artifactId>jcommon</artifactId> <version>1.0.15</version> <scope>compile</scope> </dependency> <dependency> <groupId>jfree</groupId> <artifactId>jfreechart</artifactId> <version>1.0.13</version> <scope>compile</scope> </dependency> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.2.1</version> <scope>compile</scope> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>1.4</version> <scope>compile</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.2</version> <scope>compile</scope> </dependency> <dependency> <groupId>taglibs</groupId> <artifactId>standard</artifactId> <version>1.1.2</version> <scope>compile</scope> </dependency> <dependency> <groupId>taglibs</groupId> <artifactId>log</artifactId> <version>1.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>javax.mail</groupId> <artifactId>mail</artifactId> <version>1.4</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.serotonin</groupId> <artifactId>modbus4J</artifactId> <version>1.7.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.dalsemi</groupId> <artifactId>onewire</artifactId> <version>1.10</version> <scope>compile</scope> </dependency> <!--dependency> <groupId>net.sf.mbus4j</groupId> <artifactId>mbus4j-master</artifactId> <version>1.0-SNAPSHOT</version> <scope>compile</scope> </dependency> <dependency> <groupId>net.sf.openv4j</groupId> <artifactId>openv4j-core</artifactId> <version>1.0-SNAPSHOT</version> <scope>compile</scope> </dependency--> <dependency> <groupId>com.serotonin</groupId> <artifactId>backnet4j</artifactId> <version>1.8.0</version> </dependency> <dependency> <!-- snapshot from serotonin 1.7.0 --> <groupId>commons-dbcp</groupId> <artifactId>commons-dbcp</artifactId> <version>1.3.0-SNAPSHOT</version> </dependency> <dependency> <groupId>commons-pool</groupId> <artifactId>commons-pool</artifactId> <version>1.5.3</version> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.9</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <configuration> <maxmem>512m</maxmem> <source>1.6</source> <target>1.6</target> <encoding>${project.build.sourceEncoding}</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>2.0-beta-9</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>2.0</version> <configuration> <generateReports>${site.generateReports}</generateReports> <port>${site.run.port}</port> <stagingDirectory>${java.io.tmpdir}/killerapp</stagingDirectory> </configuration> </plugin> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>2.3</version> <configuration> <encoding>${project.build.sourceEncoding}</encoding> </configuration> </plugin> </plugins> <resources> <resource> <directory>${basedir}/src/main/resources</directory> <filtering>true</filtering> </resource> </resources> <finalName>mango</finalName> </build> <properties> <netbeans.hint.deploy.server>Tomcat60</netbeans.hint.deploy.server> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> </project>
Any problems - please ask
Arne
-
Sorry I forgot this builds a mango.war in target, copy this war to the webapps dir of tomcat.
The URL changed to http://localhost/mango/Arne
-
Thanks for your precious reply.
It helped me
Now I am able to open/edit the Mango codes in NetBeans6.8Thanks again
-
Hello,
I am currently undecided between Titanium and Netbeans. Titanium is simpler and I dont have the XDebug problems that come with Netbeans (I have been trying to modify INI file all day and failing... badly!).
Which would you suggest t oday?