How to setup your google code repository to be accessible in maven
Tech-Today

How to setup your google code repository to be accessible in maven


This tutorial will teach us how we can setup a google code project, so we can make the artifact accessible via maven.

Requirements:
1.) You should have an account in google code.

The trick is just simply forming the correct url to be access by maven.

For example I have a google code account:
http://czetsuya.googlecode.com

Steps:
1.) In your pom.xml file add the following repository:
<repository>
<id>czetsuya-repo</id>
<name>czetsuya-repo</name>
<url>http://czetsuya.googlecode.com/svn/maven2/</url>
</repository>

2.) Notice the suffix at the end of the url: svn/maven2? That means we need to create that directory in google code, Source tab->Browse.

3.) Inside svn/maven2, create the folder depending on your specification, example org/czetsuya/maven/demo/1.0.0. Note that 1.0.0 is the version number.

4.) Upload your jar and pom file inside the folder. pom file should contain the project information.
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.czetsuya</groupId>
<artifactId>maven-demo</artifactId>
<version>1.0.0</version>
</project>

5.) To use the artifact you need to add the dependency like:
<dependency>
<groupId>com.czetsuya</groupId>
<artifactId>maven-demo</artifactId>
<version>1.0.0</version>
</dependency>




- How To Create A Modularized Ear Project In Maven
This post is one way of creating a typical javaee6 maven project that contains ear, web, ejb and api. The output of course is an ear file that contains (web, ejb and api). How it looks like (assuming our top project is named ipiel): +ipiel  +ipiel-ear...

- How To Get Git Build Id Using Maven
There are times when git's build number is important for a release. Specially in development mode, when there are frequent releases. So if we want to append the build number on our page, how do we automate it? For us to achieve this we will need 2...

- How To Setup Seam3-security In Jboss 7
Recently, I've done some research on several Java Security Framework that can perform authentication, authorization and cryptography. I've worked with Apache Shiro, it's really good and complete but I've found several problems like there's...

- How To Use Primefaces With Jboss 7.1.3
This tutorial will teach us how to use primefaces with jboss 7.1.3. Requirements:  1.) primefaces 3.5  2.) jboss 7.1.3  3.) maven javaee6 generated project (ear, war, ejb) Steps: 1.) Add primefaces module in jboss.   a.) In JBOSS_HOME/modules...

- How To Automate Typing In Tinymce Using Selenium Java
Prerequisites:   1.) selenium-java   2.) selenium-firefox-driver   3.) selenium-chrome-driver   4.) chromedriver - http://code.google.com/p/chromedriver/downloads/list Currently I'm working on a a test case that needs to...



Tech-Today








.