At the bottom of the Maven configuration file called pom.xml, there will be profiles set up for each DBMS.
(pom.xml 혹은 질문자님께서 s 옵션으로 지정한 settings.xml 안에 맨 밑쪽을 보면 각 DBMS별로 설정한 Profile들이 존재할 것입니다.)
<profile>
<id>webapi-postgresql</id>
<properties>
<datasource.driverClassName>org.postgresql.Driver</datasource.driverClassName>
<datasource.url>jdbc:postgresql://dbHost:dbPort/databaseName</datasource.url>
<datasource.username>USER</datasource.username>
<datasource.password>PASS</datasource.password>
<datasource.dialect>postgresql</datasource.dialect>
<datasource.ohdsi.schema>ohdsi</datasource.ohdsi.schema>
<flyway.datasource.driverClassName>${datasource.driverClassName}</flyway.datasource.driverClassName>
<flyway.datasource.url>${datasource.url}</flyway.datasource.url>
<flyway.datasource.username>userWithWritesToOhdsiSchema</flyway.datasource.username>
<flyway.datasource.password>PASS</flyway.datasource.password>
<flyway.schemas>${datasource.ohdsi.schema}</flyway.schemas>
<flyway.placeholders.ohdsiSchema>${datasource.ohdsi.schema}</flyway.placeholders.ohdsiSchema>
<flyway.locations>classpath:db/migration/postgresql</flyway.locations>
<spring.batch.repository.tableprefix>${datasource.ohdsi.schema}.BATCH_</spring.batch.repository.tableprefix>
<hibernate.dialect>org.hibernate.dialect.PostgreSQL9Dialect</hibernate.dialect>
<security.db.datasource.url>${datasource.url}</security.db.datasource.url>
<security.db.datasource.driverClassName>${datasource.driverClassName}</security.db.datasource.driverClassName>
<security.db.datasource.username>${datasource.username}</security.db.datasource.username>
<security.db.datasource.password>${datasource.password}</security.db.datasource.password>
<security.db.datasource.authenticationQuery>select password from ${security.db.datasource.schema}.users_data where \
lower(email) = lower(?)</security.db.datasource.authenticationQuery>
</properties>
</profile>
For example, in PostgreSQL, it looks like the code above. Looking at the code, we have defined the name webapi-postgresql using the profile tag.
(예를 들어서 PostgreSQL의 경우 위의 코드와 같습니다. 코드를 보면 profile 하위의 id태그를 이용해 webapi-postgresql 이라는 이름이 정의되어 있습니다.)
This tag is the name to put in the P option when you use the mvn command later.
(이 태그는 차후에 mvn 명령어를 사용할 때 P 옵션에 들어갈 이름을 말합니다.)
mvn package -P webapi-postgresql
Then the questioner can build WebAPI through the above command.
(그러면 질문자님께서는 위 명령어를 통해 WebAPI를 빌드하실 수 있습니다.)