You shouldn’t be invoking maven directly, but use the compile.pl and 
assemble.pl scripts bundled with the source code.

http://www.opennms.org/wiki/Installation:Source

You could probably use the assemble.pl script to install files to your 
/opt/opennms/ directory, but that would not handle the case where the version 
changed in pom.xml.

Ron

From: Vitor Moreira [mailto:vitor.more...@makewise.pt]
Sent: Monday, July 13, 2015 10:07 AM
To: OpenNMS Code Development and Bugs
Subject: Re: [opennms-devel] Redirecting jars to compiled directory

Hi there, Bhaskar S.

We don't have the need to copy directly to the ONMS-Server but we have 
automated things creating a maven project which, in fact, is just an assembly 
project. The assembly will prepare all JARs, XMLs, etc and, after that, we 
"scp" to the server.

If you really want to automate this, maybe a script (shell, perl, Makefile) 
will compile OpenNMS and, afterwards, copies the files to the correct directory.

Is this any good, does it make any sense?


Best regards,
Vítor Rui Moreira


Vítor Rui Moreira
Solution Developer

[http://www.makewise.pt/public/logos/100px.png]

MakeWise - Engenharia de Sistemas de Informação

Parque Tecnológico de Óbidos
Edifícios Centrais
Rua da Criatividade
2510-216 Óbidos

Tel: (+351) 308 805 705<tel:%28%2B351%29%20308%20805%20705>

Web: www.makewise.pt<http://www.makewise.pt/>

PME Líder 2012

2015-07-10 13:20 GMT+01:00 Bhaskaran S 
<vijaybhas_...@yahoo.co.in<mailto:vijaybhas_...@yahoo.co.in>>:
Hi

I have installed openNMS in the directory /opt/opennms., and I have a
openNMS source code in directory /home/foldername/opennms16.0.0.1

Now when I issue mvn clean install -DskipTests on the source code directory,
the build triggers, once build is success I will have the jars generated in
the corresponding features folders(inside the target directory). How do I
copy those jars from target folder to the installed openNMS directory
/opt/opennms/lib/.

Do we have any way to do that automatically ?

Bhaskar S



--
View this message in context: 
http://opennms.530661.n2.nabble.com/Redirecting-jars-to-compiled-directory-tp7592450.html
Sent from the OpenNMS - devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
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.
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
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