Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 53
  • Last Modified:

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
0
gudii9
Asked:
gudii9
  • 4
  • 2
1 Solution
 
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
 
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now