50% Off/-

50% Off/-

Php

50% Off/-

50% Off/-

Web

50% Off/-

50% Off/-

Latest Added Tutorials

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 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
<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 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
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
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
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
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
If you want to convert your Java project built in maven to Windows executable(.exe) application, you should add following plugins into pom.xml file... If you have some Unicode letter problems, then you can easily overcome by copying following statements into pom.xml file...Continue Reading

© 2019 All rights reserved. Codesenior.COM