maven target property

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
LVL 7
gudii9Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pcelbaCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pcelbaCommented:
Hi gudii9

did the Jenkins suggestion help with the solution?

TIA for answer
Pavel
0
gudii9Author Commented:
any good free video tutorials to learn jenkins?
please advise
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

gudii9Author Commented:
<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
pcelbaCommented:
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
pcelbaCommented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.