I. How to create project in MAVEN There are two ways for create project in MAVEN 1. Normal Java Project Step 1: cmd past below code to command prompt mvn archetype:generate -DgroupId=com.javacambodia -DartifactId=NumberGenerator -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false Note: DgroupId : name of your package (whatever you want) DartifactId : name of your project Press enter Step 2:…
Tag: Maven
It might be you are trying to search for “execute command npm.cmd windows via maven pom.xml”, likely you are from Java development environment that mostly love to do with maven. Here, following 3 articles would help, I don’t pick one to showup but there are some options available: 1. Building Frontend as a Part of…
I just published an article on Webapp structure with maven, here I would like to add another structure with AngularJS project for my Quickstart series. The first procedure is the same for maven that you need to read the previous article. Install AngularJS Generator npm install -g generator-angular Generate AngularJS Webapp Structure yo angular Next,…
Project created via the archtype and got error could not built mvn archetype:generate -DgroupId=com.dmsys.frmk -DartifactId=frmk -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false Java Maven Project, pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.dmsys.frmk</groupId> <artifactId>frmk</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>frmk</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>net.sf.ehcache</groupId> <artifactId>ehcache</artifactId> <version>2.5.0</version> <type>pom</type> </dependency> </dependencies> </project> Error Message: No compiler is provided in…
Vaadin built and received an error as error log: [INFO] Using com.vaadin:vaadin-client-compiler version 7.2.7 [INFO] Error occurred during initialization of VM [INFO] Could not reserve enough space for object heap [ERROR] Error: Could not create the Java Virtual Machine. [ERROR] Error: A fatal exception has occurred. Program will exit. [ERROR] Failed to execute goal com.vaadin:vaadin-maven-plugin:7.2.7:update-widgetset…
POI is not supported well to create open office document (calc, spreadsheet), it’s working fine for MS Excel (only). I would clarify my point with POI, it’s not working to set Khmer Unicode font to Openoffice document that could block us to use it well in JODConverter. So another solution should be applied for manipulate…
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…
How to find maven repository?
Where can we search for right maven repository?
Sample layout pom.xml for Java project
To make you get into Maven 2 project easily, let’s have a look to pom.xml general layout for Java project, here it is: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.osify.training</groupId> <artifactId>sample-java-training</artifactId> <packaging>jar</packaging> <name>Osify Training Sample</name> <description>Osify Training Sample</description> <version>1.0.0-SNAPSHOT</version> <parent/> <prerequisites /> <repositories/> <scm/> <properties/> <dependencies> <dependency/> </dependencies> <build> <sourceDirectory>src/main/java</sourceDirectory> <outputDirectory>target/classes</outputDirectory>…
During Maven build with maven 3.x version, I got following error: [WARNING] ‘build.plugins.plugin.version’ for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 299, column 16