XWiki Project Initializer
Last modified by Victor Rachieru on 2024/07/05 18:06
Script that creates a blank Maven project for XWiki. |
Type | Other |
Category | Application |
Developed by | |
Rating | |
License | GNU Lesser General Public License 2.1 |
Table of contents
Description
Bash script that creates a blank Maven project for XWiki.
Features
- configurable
- validation of project name both locally and remotely (svn)
- create the project structure
- create the poms
- commit newly created project on svn
Installation
- copy xpinit to /usr/local/bin
- give it execution rights (sudo chmod +x xpinit)
Configuration
Inside the script, set up the following variables to suit your development environment.
company='XWiki'
artifactIdPrefix='xwiki'
groupIdPrefix='org.xwiki.projects'
mavenServerProtocol='scp'
mavenServer='maven.domain.com'
svnServerProtocol='https'
svnServer='svn.domain.com'
artifactIdPrefix='xwiki'
groupIdPrefix='org.xwiki.projects'
mavenServerProtocol='scp'
mavenServer='maven.domain.com'
svnServerProtocol='https'
svnServer='svn.domain.com'
Usage
- cd to the location where you want to create your blank project
- xpinit [project_name] [pretty_name] [xwiki_version]
- or just use xpinit without args and follow the instructions
silverdrop@silverbook:~/Work/svn$ xpinit
Project (repo) name:
test-project
Project pretty name:
Test project
XWiki version:
6.4.3
test-project
|____branches
|____tags
|____trunk
| |____pom.xml
| |____wikis
| | |____pom.xml
| | |____test-project
| | | |____pom.xml
| | | |____src
| | | | |____main
| | | | | |____resources
| | |____test-project-upgrade
| | | |____pom.xml
Do you want to commit the new project? (yes/no):
yes
[Commiting project files]
Adding test-project/tags
Adding test-project/trunk
Adding test-project/trunk/wikis
Adding test-project/trunk/wikis/pom.xml
Adding test-project/trunk/wikis/test-project
Adding test-project/trunk/wikis/test-project/src
Adding test-project/trunk/wikis/test-project/src/main
Adding test-project/trunk/wikis/test-project/src/main/resources
Adding test-project/trunk/wikis/test-project/pom.xml
Adding test-project/trunk/wikis/test-project-upgrade
Adding test-project/trunk/wikis/test-project-upgrade/pom.xml
Adding test-project/trunk/pom.xml
Adding test-project/branches
Commited revision 20646.
-------------
[Removing non-working copy]
-------------
[Checking out project]
A test-project/tags
A test-project/trunk
A test-project/trunk/wikis
A test-project/trunk/wikis/pom.xml
A test-project/trunk/wikis/test-project
A test-project/trunk/wikis/test-project/src
A test-project/trunk/wikis/test-project/src/main
A test-project/trunk/wikis/test-project/src/main/resources
A test-project/trunk/wikis/test-project/pom.xml
A test-project/trunk/wikis/test-project-upgrade
A test-project/trunk/wikis/test-project-upgrade/pom.xml
A test-project/trunk/pom.xml
A test-project/branches
Checked out revision 20646.
Project (repo) name:
test-project
Project pretty name:
Test project
XWiki version:
6.4.3
test-project
|____branches
|____tags
|____trunk
| |____pom.xml
| |____wikis
| | |____pom.xml
| | |____test-project
| | | |____pom.xml
| | | |____src
| | | | |____main
| | | | | |____resources
| | |____test-project-upgrade
| | | |____pom.xml
Do you want to commit the new project? (yes/no):
yes
[Commiting project files]
Adding test-project/tags
Adding test-project/trunk
Adding test-project/trunk/wikis
Adding test-project/trunk/wikis/pom.xml
Adding test-project/trunk/wikis/test-project
Adding test-project/trunk/wikis/test-project/src
Adding test-project/trunk/wikis/test-project/src/main
Adding test-project/trunk/wikis/test-project/src/main/resources
Adding test-project/trunk/wikis/test-project/pom.xml
Adding test-project/trunk/wikis/test-project-upgrade
Adding test-project/trunk/wikis/test-project-upgrade/pom.xml
Adding test-project/trunk/pom.xml
Adding test-project/branches
Commited revision 20646.
-------------
[Removing non-working copy]
-------------
[Checking out project]
A test-project/tags
A test-project/trunk
A test-project/trunk/wikis
A test-project/trunk/wikis/pom.xml
A test-project/trunk/wikis/test-project
A test-project/trunk/wikis/test-project/src
A test-project/trunk/wikis/test-project/src/main
A test-project/trunk/wikis/test-project/src/main/resources
A test-project/trunk/wikis/test-project/pom.xml
A test-project/trunk/wikis/test-project-upgrade
A test-project/trunk/wikis/test-project-upgrade/pom.xml
A test-project/trunk/pom.xml
A test-project/branches
Checked out revision 20646.