• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 97
  • 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
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

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