User Login

Please enter user name and password into following boxes!

If you are not registered yet, please click

Forget Password

If you forget your password, please click

maven

  • Maven Jar File Deployment in Sonatype Nexus

    1. Create settings xml file in the ${user.home}/.m2 directory if not exists 2. Add following server config as follows: <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <servers> <server> <id>codesenior</id> <username>admin</username> <password>admin123</password> </ser...Continue Reading

    Maven Antrun Plugin Usage

    Maven Antrun plugin usage as follows: <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.3</version> <executions> <execution> <id>Hibernate bytecode optimization</id> <phase>process-classes</phase> <configuration> <tasks> <taskdef name="instrument" classname="org.hibernate.tool.instrument.javassist.InstrumentTask"> <classpath> <path refid="maven.dep...Continue Reading

    Spring, Hibernate, Ehcache, C3P0 And Hibernate Search Configuration

    <tx:annotation-driven transaction-manager="transactionManager"/> <bean id="transactionManager" class="org.springframework.orm.hibernate4.HibernateTransactionManager"> <property name="sessionFactory" ref="sessionFactory"/> </bean> <bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"> <property name="dataSource" ref="dataSource"/> <property name="packagesToScan" value="com.codesenior.telif.local.model"/> <property name="hibernateProperties"> <props>

    Maven Shade Plugin

    Maven Shade plugin usage: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>1.7.1</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> </execution> </executions> <configuration> <shadedArtifactAttached>true</shadedArtifactAttached> <finalName>Subversion-Updater</finalName> <...Continue Reading

    Java Maven Compile Only Changed Files

    If you want to compile only changed Java files, you can use <useIncrementalCompilation>false</useIncrementalCompilation> as follows: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.2</version> <configuration> <source>1.6</source> <target>1.6</target> <useIncrementalCompilation>false</useIncrementalCompilation> </configuration> </plugin>...Continue Reading

    How To Embed Mysql Database Into Java Application

    Embedding mysql into java application is not straightforward. Therefore, I will try to explain necessary operations step by step. 1. Download this library file then extract jar files into a folder. 2. Create a Java application and add downloaded jar files into the application lib folder If you use maven application add following dependencies into pom.xml file......Continue Reading

    Configure Maven To Use Different JDK For Different J2SE Versions?

    we solved this problem by explicitly sepecify the javac in config of compile plugin (with JAVA_HOME_6 and JAVA_HOME_7 defined as environment variables): Java 6 module org.apache.maven.plugins maven-compiler-plugin......Continue Reading

    Android Create Signed And Zipaligned APK File

    To create signed and zipaligned apk file with Maven, the necessary configurations are: 1. Firstly, you have to create a .keystore file... myCertificate is the name of your .keystore file; and myKey is your alies. You can change these names.....Continue Reading