[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

maven target property

Posted on 2017-10-12
6
Medium Priority
?
63 Views
Last Modified: 2017-11-29
hi,
my project has different environment related property files like int, sT, PT, Prod etc to call various service (like email service, validate service etc)

using maven build command from command prompt or eclipse how to pass environment like integraion for example


pom.xml has filter entry i heard which does check like this
any good links, examples on this
please advise
0
Comment
Question by:gudii9
  • 4
  • 2
6 Comments
 
LVL 43

Accepted Solution

by:
pcelba earned 2000 total points
ID: 42330006
You could consider Jenkins (https://jenkins.io/).
You may define various builds with various parameters in Jenkins and once configured it runs fully automatically.
Jenkins build steps are represented by simple batch commands or scripts and Jenkins also allows to check the command success.
You may integrate various 3rd party connectors/plugins into Jenkins incl. e-mail, HipChat, Slack etc.

Of course, manual build invoking is also possible but we are rather building after each SVN or GitHub commit.
0
 
LVL 43

Expert Comment

by:pcelba
ID: 42346152
Hi gudii9

did the Jenkins suggestion help with the solution?

TIA for answer
Pavel
0
 
LVL 7

Author Comment

by:gudii9
ID: 42361607
any good free video tutorials to learn jenkins?
please advise
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
LVL 7

Author Comment

by:gudii9
ID: 42361613
<configuration>
                                          <supportMultiLineFiltering>true</supportMultiLineFiltering>
                                          <encoding></encoding>
                                          <filters>
                                                <filter>${rootdir}/filters/${env}.properties</filter>
                                          </filters>
                                          <resources>

i saw examples as above
https://maven.apache.org/plugins/maven-resources-plugin/resources-mojo.html

what does encoding resources, supportMultiLineFiltering do here?
0
 
LVL 43

Expert Comment

by:pcelba
ID: 42361713
Many Jenkins tutorials exist, e.g. https://www.youtube.com/watch?v=Lxd6JMMxuwo
http://www.vogella.com/tutorials/Jenkins/article.html
https://www.edureka.co/blog/jenkins-tutorial/
https://www.tutorialspoint.com/jenkins/index.htm
etc.

I don!t know available Maven settings but it seems Jenkins is much simpler and easier to learn than Apache Maven. The basic rule says if some setting is not clear from the description then leave the default value unchanged.
0
 
LVL 43

Expert Comment

by:pcelba
ID: 42380424
Hi gudii9

any news with this question?

It seems neither me nor others did help to solve the question. I would recommend to delete it.

P.C.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
No other job is as rewarding and demanding as building an iPhone app is. It is not really in the hands of the developer for the success of an iPhone app. Many factors operate jointly for every iOS application's success in the market.
Six Sigma Control Plans
Loops Section Overview
Suggested Courses

591 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question