-
Notifications
You must be signed in to change notification settings - Fork 0
Maven Cheat Sheet
This wiki page is maven command cheat sheet for gwt-bootstrap project.
For Contributers or clone this user's project.
Right now,If you read this wiki,You will can do
- Setup project for eclipse.
- Build jars core.jar,sources.jar,javadocs.jar.
- Generate Javadocs to local.
- Generate maven sites to local.
- Deploy maven sites to our remote git repository. (Only Contributers)
- Upload jars to github download pages.(Only Contributers)
- Deploy jars to maven repository on Github.(Only Contributers)
- Deploy Showcase to http://gwtbootstrap.github.com
- Update license header
Let's read this wiki!!!
If you need search abount above things,you can search by same as above strings,
This wiki is wrote same chapter name.
*note* this chapter is for contributers.
In gwt-bootstrap project,some maven goals need Github authentication.
If you don't need add options in always run maven goals about it,
You have to write some settings to your ~/.m2/settings.xml
file.
Example.
<settings>
<profiles>
<profile>
<id>github-plugin</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<github.global.userName>your-name</github.global.userName>
<github.global.password>your-password</github.global.password>
</properties>
</profile>
......
</profiles>
......
</settings>
mvn clean eclipse:clean eclipse:eclipse
If you need showcase, Run
mvn -Pshowcase clean eclipse:clean eclipse:eclipse
When you clone this project, or update pom.xml about dependencies.
You should run this command.
mvn package
When you need build jars.
mvn clean javadoc:javadoc
When you need generate javadocs to local.
mvn clean site -Dgithub.site.dryRun=true
When you need generate maven sites to local.
mvn clean site -Dgithub.global.userName={username on github} -Dgithub.global.password={password on github}
If you set up setting.xml,you can run this,
mvn clean site
When you need deploy maven site and javadocs to our project github pages.
mvn clean install ghDownloads:upload -Dgithub.global.userName={username on github} -Dgithub.global.password={password on github}
If you set up setting.xml,you can run this,
mvn clean install ghDownloads:upload
When you need upload jars to gwt-bootstrap github download pages
Right now,Given 2 phase.
Please clone gwtbootstrap/maven.
git clone [email protected]:gwtbootstrap/maven
- Run
mvn -PforGithubDeploy clean deploy
in gwt-bootstrap local repository.
- Deploy maven jars to local directory
maven/release
ormaven/snapshots
- Copy directory
maven
togwtbootstrap/maven
git local repository. - Git Add,Commit,Push
When you need deploy jars to remote maven repository.
Deploy Showcase to http://gwtbootstrap.github.com
Right now,Given 3 phase.
Please clone gwtbootstrap/gwtbootstrap.github.com.
git clone [email protected]:gwtbootstrap/gwtbootstrap.github.com.git
mvn -Pshowcase compile gwt:compile
- Copy generated directory (
src/showcase/webapp/showcase
andsrc/showcase/webapp/customcss.showcase
) togwtbootstrap/gwtbootstrap.github.com
local git directory. - Git Add,Commit,Push.
When you need deploy showcase to http://gwtbootstrap.github.com.
Right now,our maven setting can update license header above files.
src/**/.java
src/main/java/**/*.xml
src/showcase/java/**/*.xml
maven-license-plugin can update license header that use src/license/header.txt
.
If you need change license header (ex:change other license),
you should update src/license/header.txt
-
mvn license:format -Dyear={copyright year string}
-
-Dyear
command is a option,not required.
-
When you need update or add license header.
Please read maven-license-plugin documentation