Categories
Java

When do we use maven-compiler-plugin ?

Overview The Compiler Plugin is used to compile the sources of your project. Setup Place following the maven pom structure, please add following lines to plugins block: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.0</version> <configuration> <source>1.6</source> <target>1.6</target> <encoding>UTF-8</encoding> </configuration> </plugin> The version, you need to define according to the maven2 version you installed. All versions, you can find…

Categories
Apache Tomcat

Eclipse Tomcat Launcher plugin & Performance Configuration

Eclipse Tomcat Launcher plugin helps you: Starting and stopping Tomcat 4.x, 5.x, 6.x, 7.x Registering Tomcat process to Eclipse debugger Creating a WAR project (wizard can update server.xml file) Adding Java Projects to Tomcat classpath Setting Tomcat JVM parameters, classpath and bootclasspath Exporting a Tomcat project to a WAR File You can download the plugin…

Categories
Java

Generate jar and manifest Info in Jar in maven 2

To create jar packaging of Java project with maven 2 based, we used a plugin called: maven-jar with simply paste the code below in pom.xml of plugins section: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.4</version> <configuration> <archive> <manifest> <addClasspath>true</addClasspath> </manifest> </archive> </configuration> </plugin> And if you want to add in your jar’s MANIFEST info, you can directly modify…

Categories
Java

Generate source code Jar for Maven 2 based project

Some case, you need to generate source code from your project which is maven 2 based. Please have a look to maven-source plugin by adding a short code below into your pom.xml <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> By default it will generate jar named as: ${project.artifactId}-${project.version}-source.jar

Categories
WordPress

WordPress: ចង់ប្រើ Rich Text Editor របស់ WP នៅក្នុង Theme ឬ Plugin

ខ្ញុំចង់ប្រើ Text Editor របស់ WP ខ្ញុំប្រើ WP latest តើត្រូវសរសេរកូដយ៉ាងម៉េចបានអាចប្រើវាបាន?