Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3633852
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:42:19+00:00 2026-05-19T00:42:19+00:00

I have a pom.xml that uses cxf-codegen-plugin to generate a couple of WS clients.

  • 0

I have a pom.xml that uses cxf-codegen-plugin to generate a couple of WS clients.

Inside the configuration of cxf-codegen-plugin, there are the WSDL locations.

I would like to externalize those strings to a env.properties file.

I used org.codehaus.mojo’s properties-maven-plugin to look inside src/main/resources/conf/app/env.properties.

How can I make Hudson to replace those properties with the apropiate host?

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T00:42:19+00:00Added an answer on May 19, 2026 at 12:42 am

    Filtering and profiles should work.

    Setup a husdon filter file and place in src/main/filters. Create an additional filter file for each region you need to run in.

    The filter files should be named similarly, like so: filter-hudson.properties, filter-prod.properties, etc. and contain the same properties:

    wsdl.host=myHost
    etc...
    

    Then have simple profiles that contain the environment you run on:

    <profiles>
      <profile>
        <id>prod</id>
        <properties>
          <env>prod</env>
        </properties>
      </profile>
      <profile>
        <id>hudson</id>
        <properties>
          <env>hudson</env>
        </properties>
      </profile>
    </profiles>
    

    If you then setup your filters in your pom:

    <filters>
      <filter>src/main/filters/filter-${env}.properties</filter>
    </filters>
    <resources>
      <resource>
        <directory>src/main/resources/conf/app</directory>
        <filtering>true</filtering>
      </resource>
    </resources>
    

    Then the files in conf app will have wsdl.host replaced with the specific values in your filter.

    Then when you run your hudson build, add -P hudson to invoke the hudson profile.

    There may be a “better” way to do this, but about a year and a half ago, I had success with this technique. To give proper credit, here’s the blog post I used as instructions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What I want to do is this: I have a pom.xml that depends on
I have a Grails project with pom.xml that is treated as Maven project by
i have a parent pom file that include 3 module... and there is difference
I have pom.xml that contains defined values. I would like to use one of
I have a web application, that contains a configuration xml file for one of
I have a big Maven project that uses the PMD plugin for code quality
I have a Maven webapp that uses the maven-compiler-plugin . A few days ago
I have a number of Maven pom.xml files in various projects that contain a
I have a project that uses the maven-assembly-plugin to create source and binary tar
I have a project here which, currently, uses one pom.xml ( link ) to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.