spring-attic / spring-cloud-aws

All development has moved to https://github.com/awspring/spring-cloud-aws Integration for Amazon Web Services APIs with Spring
https://awspring.io/
Apache License 2.0
590 stars 375 forks source link

The changing the stucture of parameter store #642

Closed ranajit-jana closed 4 years ago

ranajit-jana commented 4 years ago

Currently the parameter store expects the key to be in the following format

/prefix/application(delimiter)environmentprofile/propertyname

i wanted to change it to

/environmentprofile/prefix/application/propertyname

I have not been able to find a way to do the same.

I wanted thus to change the code (AwsParamStorePropertySourceLocator.java) a bit to accommodate it for our organisation. when i took the project and compiled it it gives me a error which i am not able to get past.

Error resolving version for plugin 'org.codehaus.mojo:flatten-maven-plugin' from the repositories [local (C:\Users\ranajit.jana\.m2\repository), central (https://repo.maven.apache.org/maven2)]: Plugin not found in any plugin repository pom.xml /spring-cloud-aws-**** line 1 Maven pom Loading Problem

Probably it is easiest of the issue but i am not able to resolve it as it is actually coming from the parent pom file.

Appreciate your help in advance.

ranajit-jana commented 4 years ago

I added one more plugin repo to resolve it.

            <pluginRepository>
                <id>maven-plugin-repo-mvn</id>
                <name>Maven plugin repo maven</name>
                <url>https://repo.maven.apache.org/maven2</url>
                <snapshots>
                    <enabled>false</enabled>
                </snapshots>
            </pluginRepository>

repo1.maven.apache.org/maven2 is not able to resolve this dependency. Closing this ticket as locally i am work with this change.