Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

- a descriptor located in project basedir (profiles.xml) (unsupported in Maven 3.x)

Example settings.xml for Sweden:

Code Block
languagehtml/xml
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
  <profiles>
    <profile>
      <id>national-connector-impl</id>
      <properties>
        <national-connector-interface.groupid>se.apotekensservice</national-connector-interface.groupid>
        <national-connector-interface.artifactid>epsos-shelob</national-connector-interface.artifactid>
        <national-connector-interface.version>0.0.1-SNAPSHOT</national-connector-interface.version>
      </properties>
    </profile>
  </profiles>
</settings>


 

Here are the Maven commands:

Code Block
languagenone
# build epsos-ws-serverwith no implementation
mvn clean install
 
# build epsos-ws-server with mock implementations
mvn clean install -P national-connector-mock-impl
 
# build epsos-ws-server with real implementations
mvn clean install -P national-connector-impl
 

...