Posted in Ant, Cloud Computing, DevOps, Java, JBoss, JEE, Jenkins

Jenkins Essentials: Continuous Integration – setting up the stage for a DevOps culture


In agile development practices, developers need to integrate their work frequently to fix bugs or to create a new feature or functionality. To integrate all work efficiently and verify it is an error-prone and time-consuming manual task. Jenkins is used specifically for continuous integration, helping to enforce the principles of agile development. Continue reading “Jenkins Essentials: Continuous Integration – setting up the stage for a DevOps culture”

Advertisements
Posted in Java, JEE

Location of Maven repository in Windows & Linux


Location of Maven repository

Maven repository is a folder located in system that stores all project’s dependencies  such as jars, pom.xml, and other files which are downloaded by Maven.

Wheb user execute and mvn target, all dependency files will be stored in your Maven repository in local system.

By default, Maven local repository’s name is .m2

In Windows, Location of Maven repository is C:Users<<login user name>>.m2

In Linux Location of Maven repository is /root/.m2 (Go to root, Press ctrl+h to display hidden files)

Cloud Computing – Download Free EBooks and Whitepapers
Java – Download Free EBooks and Whitepapers
Windows – Download Free EBooks and Whitepapers
Posted in Java, JEE, JEE / J2EE / JSP / Servlets

Download Jenkins Plugins


Download Jenkins Plugins without compiling source code

I have recently started working on Jenkins and faced many difficulties to download source code from Git and compile them using Maven.

Due to Internet Connection restriction, It was difficult to download source code and run mvn package command that download many jar files from remote repository to your local repository to run source files and create .hpi file in target folder.

To download ready made .hpi file of Jenkins Plugin use https://updates.jenkins-ci.org/download/plugins/

Happy Downloading and Happy Jenkinsing!

Cloud Computing – Download Free EBooks and Whitepapers
Java – Download Free EBooks and Whitepapers
Windows – Download Free EBooks and Whitepapers
Posted in Java, JEE, JEE / J2EE / JSP / Servlets

How to Install Jenkins on Windows 8 and Linux


To Install Jenkins on Windows 8 and Linux, CentOS, Ubuntu and Other Linux Distribution follow the below steps

Cloud Computing – Download Free EBooks and Whitepapers
Java – Download Free EBooks and Whitepapers
Windows – Download Free EBooks and Whitepapers

Download Jenkins from http://jenkins-ci.org/

Download Link is – http://mirrors.jenkins-ci.org/war/latest/jenkins.war

Install Java

Set JAVA_HOME in Environment Variable

Execute java –jar Jenkins.war

C:>java -jar jenkins.war
Running from: C:jenkins.war
webroot: $user.home/.jenkins
21 May, 2014 12:55:22 AM winstone.Logger logInternal
INFO: Beginning extraction from war file
21 May, 2014 12:55:27 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-8.y.z-SNAPSHOT
21 May, 2014 12:55:39 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet
Jenkins home directory: C:Usersmitesh.jenkins found at: $user.home/.jenkins
21 May, 2014 12:55:41 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started SelectChannelConnector@0.0.0.0:8080
21 May, 2014 12:55:41 AM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
21 May, 2014 12:55:41 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
21 May, 2014 12:56:13 AM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
21 May, 2014 12:56:13 AM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
21 May, 2014 12:56:13 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
21 May, 2014 12:56:13 AM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
21 May, 2014 12:56:13 AM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
21 May, 2014 12:56:19 AM org.jenkinsci.main.modules.sshd.SSHD start
INFO: Started SSHD at port 53167
21 May, 2014 12:56:19 AM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
21 May, 2014 12:56:19 AM hudson.TcpSlaveAgentListener <init>
INFO: JNLP slave agent listener started on TCP port 53168
21 May, 2014 12:56:19 AM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running
Effective SlaveRestarter on master: null

Visit http://localhost:8080/manage

jenkins Dashboard

Done!

Posted in Application Server, Java, JEE, JEE / J2EE / JSP / Servlets, Maven, Web Server

Install Maven on Windows 8


Maven on Windows 8

Download Apache Maven from http://maven.apache.org/download.cgi. Different versions are available so user can select the version as per need.

Extract the files from the compressed file of apache-maven-3.2.1-bin.zip

Add Two Environment Variables, M2 and M2_HOME

Cloud Computing – Download Free EBooks and Whitepapers
Java – Download Free EBooks and Whitepapers
Windows – Download Free EBooks and Whitepapers

Right Click on My Computer and select Properties

My Computer Properties

Click on Advance System Settings

Advance System Settings

It will open System Properties Dialogue box; click on Environment Variables

System Properties

Click on New and set M2_HOME

M2_HOME

Set M2

M2

M2 and M2_HOME

Edit PATH by appending C:apache-maven-3.2.1bin

Path Variable

Open the Command Prompt again and execute mvn –version command

mvn version command

Done!

 

Posted in Application Server, Java, JBoss, JEE, Web Server

What is Liferay


Define: Liferay

Liferay Portal is an open source enterprise portal for building websites and web applications written in Java and distributed under the GNU Lesser General Public License and commercial license. It is a web platform with features commonly required for the development of websites and portals by assembling portlets or gadgets onto a portal page.  It has a capability to make things easier in development of websites that display diverse data depending on different roles such as admin and normal user. E.g. In college portal, admin, students, teachers etc. have different pages or sections available to interact.

Cloud Computing – Download Free EBooks and Whitepapers
Java – Download Free EBooks and Whitepapers
Windows – Download Free EBooks and Whitepapers

Java – Download Free EBooks and Whitepapers

Figure 1 - Liferay Portal

Figure 1 – Liferay Portal

Liferay Portal is an enterprise web platform provides Self-Service Portals, Dynamic Web 2.0 Websites, Content & Document Management with Microsoft Office integration, Enterprise Collaboration, Identity and Access Management, Social Networking, Application Integration, unified document repository, Asset Publisher to display any data contained within the portal, to create workspaces for customer websites, intranets, collaboration platforms, and group websites. It also provides Text Editors with spell check and text styling capabilities, reusable templates for web pages and page sections, capabilities to add comments and notes into templates, User-Driven Workflow & Approval, Live Page Editing and Scheduling, Staging and Easy Website Planning, Document Conversion and Multi-File Uploads, Faceted and multi-tier Search, Multi language support, Dynamic Tagging, and SEO.

Liferay Portal is Java based and capable of running the JRE and an application server bundled with a servlet container such as Apache Tomcat 7.0.42 as of now.

Website: http://www.liferay.com/