Skip to content

making/maven-reactjs-blank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React.js Blank

Maven archetype to create a react.js maven project

How to use

with Bash

mvn archetype:generate\
 -DarchetypeGroupId=am.ik.archetype\
 -DarchetypeArtifactId=maven-reactjs-blank-archetype\
 -DarchetypeVersion=1.0.0

with CommandPrompt (Windows)

mvn archetype:generate^
 -DarchetypeGroupId=am.ik.archetype^
 -DarchetypeArtifactId=maven-reactjs-blank-archetype^
 -DarchetypeVersion=1.0.0

Example

This blank project requires npm and gulp.

You need the following instruction:

$ npm install -g gulp

Create a project

$ mvn archetype:generate -B\
 -DarchetypeGroupId=am.ik.archetype\
 -DarchetypeArtifactId=maven-reactjs-blank-archetype\
 -DarchetypeVersion=1.0.0\
 -DgroupId=demo\
 -DartifactId=hello-react\
 -Dversion=1.0.0-SNAPSHOT

Initialize the project

$ npm install

Build the application

$ gulp build

or

$ gulp watch

open dest/index.html

Build jar

$ mvn clean package

The output of gulp are copied to target/classes/META-INF/resources/. So this jar can be used as WebJars.

License

Licensed under the Apache License, Version 2.0.

About

Maven Blank Project for React.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published