-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate code artifact with a2d2 (#397)
* Added code artifact configurations * Added a shell script to run mvn deploy in sub projects
- Loading branch information
Showing
6 changed files
with
68 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
<settings> | ||
<profiles> | ||
<profile> | ||
<id>default</id> | ||
<id>elimu-a2d2-api</id> | ||
<activation> | ||
<activeByDefault>true</activeByDefault> | ||
</activation> | ||
<repositories> | ||
<repository> | ||
<id>maven-central</id> | ||
<name>Maven Central</name> | ||
<url>https://repo1.maven.org/maven2/</url> | ||
<layout>default</layout> | ||
<releases> | ||
<enabled>true</enabled> | ||
<updatePolicy>always</updatePolicy> | ||
</releases> | ||
<snapshots> | ||
<enabled>true</enabled> | ||
<updatePolicy>always</updatePolicy> | ||
</snapshots> | ||
</repository> | ||
<repository> | ||
<id>nexus-repo</id> | ||
<name>NexusRepository</name> | ||
<url>https://repository.elimuinformatics.com/repository/maven-public/</url> | ||
<layout>default</layout> | ||
<releases> | ||
<enabled>true</enabled> | ||
<updatePolicy>always</updatePolicy> | ||
</releases> | ||
<snapshots> | ||
<enabled>true</enabled> | ||
<updatePolicy>always</updatePolicy> | ||
</snapshots> | ||
</repository> | ||
<id>elimu-a2d2-api</id> | ||
<url>https://elimu-435911253355.d.codeartifact.us-west-2.amazonaws.com/maven/a2d2-api/</url> | ||
</repository> | ||
</repositories> | ||
</profile> | ||
<profile> | ||
<id>elimu-java-commons</id> | ||
<activation> | ||
<activeByDefault>true</activeByDefault> | ||
</activation> | ||
<repositories> | ||
<repository> | ||
<id>elimu-java-commons</id> | ||
<url>https://elimu-435911253355.d.codeartifact.us-west-2.amazonaws.com/maven/java-commons/</url> | ||
</repository> | ||
</repositories> | ||
</profile> | ||
<profile> | ||
<id>elimu-ecdm</id> | ||
<activation> | ||
<activeByDefault>true</activeByDefault> | ||
</activation> | ||
<repositories> | ||
<repository> | ||
<id>elimu-ecdm</id> | ||
<url>https://elimu-435911253355.d.codeartifact.us-west-2.amazonaws.com/maven/ecdm/</url> | ||
</repository> | ||
</repositories> | ||
</profile> | ||
</profiles> | ||
<servers> | ||
<server> | ||
<id>nexus-repo</id> | ||
<username>${env.NEXUS_USERNAME}</username> | ||
<password>${env.NEXUS_PASSWORD}</password> | ||
<id>elimu-a2d2-api</id> | ||
<username>aws</username> | ||
<password>${env.CODEARTIFACT_AUTH_TOKEN}</password> | ||
</server> | ||
<server> | ||
<id>nexus-repo-releases</id> | ||
<username>${env.NEXUS_USERNAME}</username> | ||
<password>${env.NEXUS_PASSWORD}</password> | ||
<id>elimu-ecdm</id> | ||
<username>aws</username> | ||
<password>${env.CODEARTIFACT_AUTH_TOKEN}</password> | ||
</server> | ||
<server> | ||
<id>nexus-repo-snapshots</id> | ||
<username>${env.NEXUS_USERNAME}</username> | ||
<password>${env.NEXUS_PASSWORD}</password> | ||
<id>elimu-java-commons</id> | ||
<username>aws</username> | ||
<password>${env.CODEARTIFACT_AUTH_TOKEN}</password> | ||
</server> | ||
</servers> | ||
<activeProfiles> | ||
<activeProfile>default</activeProfile> | ||
</activeProfiles> | ||
</settings> | ||
</settings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
echo "inside shell" | ||
sub_folders=( "cds-hook-model" "generic-model" "generic-helpers" "core-dependencies" "kie-based-services" "service-daos" "cds-hook-services" "core-wih" "cql-mods" "cql-wih" "ftl-transform-wih" "fhir-resource-wih" "cdshooks-wih" "web-util" "fhir-query-helper-base" "fhir-query-helper-dstu2" "fhir-query-helper-dstu3" "fhir-query-helper-r4" "oauth-helpers" "fhir-helpers" "task-utilities" "sms-wih" "a2d2-api") | ||
|
||
mvn deploy --settings a2d2-settings.xml -Durl=https://elimu-435911253355.d.codeartifact.us-west-2.amazonaws.com/maven/a2d2-api/ -DpomFile=pom.xml -DrepositoryId=elimu-a2d2-api -DupdateReleaseInfo=true -DskipTests -U | ||
|
||
for sub_folder in "${sub_folders[@]}"; do | ||
cd "$sub_folder" || exit 1 | ||
|
||
mvn deploy --settings ../a2d2-settings.xml -Durl=https://elimu-435911253355.d.codeartifact.us-west-2.amazonaws.com/maven/a2d2-api/ -DpomFile=pom.xml -DrepositoryId=elimu-a2d2-api -DupdateReleaseInfo=true -DskipTests -U | ||
|
||
cd .. | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters