Continuous Integration with Maven

I am new to Java. we are using swing based project. now i have to implement continuous Integration using maven.
my requirement is
We need to do this automated process. maven script should run on the predefined time and checkout specified SVN version from SVN repository build the same and test using automated testing tool and deploy the same in predefined application server.
So experts can you give me a maven script for this
 
LVL 3
gajmpAsked:
Who is Participating?
 
mccarlConnect With a Mentor IT Business Systems Analyst / Software DeveloperCommented:
I doubt maven can do this on it's own. You need something to run and monitor the maven builds. Look at this product called Hudson. There are others available though, such as Bamboo from Atlassian, etc.
0
 
objectsConnect With a Mentor Commented:
maven is a build tool, not a continuous integration tool. Your CI tool will *call* maven to do the build, maven cannot call itself.
0
 
gajmpAuthor Commented:
my idea is schedule (cron) maven execution... on that schedule maven has to start and do checkout from svn repository, build, test and deploy in remote server.. for this i need POM.xml file...
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
objectsCommented:
sorry but have to ask why?
there are lots of great tools for doing CI, why not use them?
Implementing it using cron is going to be a fair bit of work, and the result will be fairly crude at best.
0
 
gajmpAuthor Commented:
i don't think we can do any customize integration task like apply ddl script in db etc in CI tool.  if im wrong correct me..
my requirement is
1. check out from svn
2. apply ddl script in db
3. buid apps
4. test using some automation tool (JUnit)
5. deploy in server

is this possible in HUDSON
0
 
objectsConnect With a Mentor Commented:
ci tools like cc and hudson can do pretty much anything you want by using their plugin architecture.

how were you planning on applying ddl scripts using just maven?
any ci tool is still going to be calling maven to do the build

the job of the ci tool is to manage the build, it will call the necessary tools to actually perform the build
0
 
gajmpAuthor Commented:
thanks for your suggestion... ill try that and then decide...
0
 
Kevin CrossChief Technology OfficerCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
All Courses

From novice to tech pro — start learning today.