Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1454 - GUI for Template Set Management #1592

Draft
wants to merge 292 commits into
base: master
Choose a base branch
from

Conversation

NelsonNew
Copy link
Contributor

@NelsonNew NelsonNew commented Oct 13, 2022

Graphical User Interface for ...

  • searching template sets with current status and possibility to read through details
  • installing template sets

@sonatype-lift
Copy link

sonatype-lift bot commented Oct 13, 2022

⚠️ 50 God Classes were detected by Lift in this project. Visit the Lift web console for more details.

leonie19s and others added 14 commits November 30, 2022 13:49
… added icons for home menu and changed button appearance
* First implementation of settings.xml mapping

* Completed mapping of the needed components, refactoring, added JavaDocs, added log output

* Added test class, removed unnecessary code

* devonfw#1530 added maven settings password decryption
added org.codehaus.plexus sec-dispatcher dependency
added org.codehaus.plexus cipher dependency
added MavenSettingsUtil
added MavenSettingsUtilTest and resources

* devonfw#1530 adjusted test method name

* Added tests, did refactoring

* Added missing JavaDocs, tests are now using asserThat(), more improvements addressing change requests on the pull requests

* devonfw#1530 added basic authentication type
replaced authToken with password
added basic username and password authentication

* devonfw#1530 renamed REST search API constants

* devonfw#1530 handle template-set.xml
made sure that only template-set.xml files get returned as download links
added new template-set.xml to ConfigurationConstants
added a valid template-set.xml example to test resource files
removed extra outputs (non template-set.xml) from test assertions
added classifier to Nexus2Response
renamed retrieveDownloadUrls to retrieveTemplateSetXmlDownloadURLs

* devonfw#1530 added some fixes
fixed credentials not being used
fixed too many httpclient calls being used
added new test for a failed basic authentication
added new test for a failed token authentication
enabled bad url test

* devonfw#1530 cleaned up exceptions
removed JsonMappingException because it is already being handled by JsonProcessingException

* Switched from javax to jakarta, resolved comments from the pull request

* Tidied up code

* Changed path generation

* Added unmarshalling for mirrors, added loading of active profiles, added preperation of settings.xml

* added function, which returns repositories of all active profiles

* devonfw#1530 improved log messages
adjusted log messages (converted to debug, made factory process messages more transparent)
converted RestSearchResponseException status code from string to integer

* Added utils to operate with mirrors specified in maven's settings.xml

* Optimized MavenSettingsUtilTest, added first code of MavenMirrorUtilTest

* Fixed bugs, added tests for matchPattern

* Completed MavenMirrorUtil class, completed tests

* determined active profiles, added method to determine repositories of active profiles and inject mirrors in repository urls

* Minor optimisations

* Added collection of servers private key and passphrase

* Refactoring of classes in a new maven module

* devonfw#1530 added exception messages to constants

* devonfw#1530 adjusted exception handling
replaced exception strings with constants
added retrieveRestSearchApiTargetLink method
adjusted SearchResponseException with dynamic message
adjusted tests to check for exception types and message content

* Fixed merge bugs

* devonfw#1517 Refactoring
Refactored changes from devonfw#1530 into devonfw#1517
Moved devonfw#1530 files into MavenSearch package

* devonfw#1517 Added proxy to http client

* devonfw#1517 added eclipse project files

* Removed MavenSettingsUtil

* devonfw#1517 changed the process of getting active profiles
added artifact retriever
removed unsecessary code

* devonfw#1517 added multiple tests

* devonfw#1517 improved WireMock log messages
moved logback-test.xml from core-api to core-artifact-retriever

* devonfw#1517 introduced server credentials
moved all server credentials into new object
added new MavenSearchArtifactRetriever class
added new ServerCredentials class
adjusted tests to utilize server credentials
deleted MavenArtifactsUtil

* devonfw#1517 Added proxy util and tests

* devonfw#1517 removed exceptions
replaced exceptions with debug log messages
adjusted tests

* devonfw#1517 Reworked MavenProxyUtil, updated tests

* devonfw#1517 replaced more exceptions with log messages
removed obsolete retrieveMavenArtifactsByGroupId method

* devonfw#1517 implemented requested changes
converted null returns to empty lists
added new debug message to indicate that the search is proceeding
converted MavenSearchArtifactRetriever to static class
added more tests
adjusted test descriptions

* devonfw#1517 Combined ArtifactRetriever with MavenSearch
added artifactRetriever logic
prepared artifactRetriever tests

* devonfw#1517 ArtifactRetriever test preperation

* devonfw#1517 added first ArtifactRetriever tests
added example template-set.xml
added example json response for WireMock
added WireMock tests for proxy and non proxy connections as well as basic authentication
added more log messages for proxy usage and basic authentication usage
fixed NPE in MavenSettingsUtil and ArtifactRetriever

* devonfw#1517 added proxy server authentication
added basic authentication to proxy connection
added tests for proxy authentication
added proxyUsername and proxyPassword to ServerCredentials

* devonfw#1517 split test classes
split test classes of maven search

* devonfw#1517 re-organized test resources
simplified json test resource files for MavenSearchResponse tests

* devonfw#1517 fixed ArtifactRetriever proxy test
added 2nd WireMock server
adjusted settings.xml to use proxy properly

* devonfw#1517 Added ArtivactRetrieverReader

Co-authored-by: Leonie leonie-heidi.schuessler@capgemini.com

* Removed unused test

* devonfw#1517 removed util package from mavensearch

* devonfw#1517 optimizations
fixed typo
moved file reader from test to generateMavenTemplateSetConfiguration method
adjusted javadocs
added more debug information

* devonfw#1517 renamed reader models

* devonfw#1517 removed util package from mavensearch

* devonfw#1517 added template set version and tests
added retrieveTemplateSetData method (converts a list of template set files to TemplateSetArtifactReader)
added more tests and test resources
converted TemplateSetArtifactReader to stateful class
added simple template set version retrieval
adjusted tests
removed tag names and increment descriptions from TemplateSetArtifactReader
removed setupClass method from TemplateSetArtifactReaderTest (moved initialization to each test)

* devonfw#1517 renamed MavenReaderTest resource folder
renamed MavenReaderTest resource folder to TemplateSetArtifactReaderTest

* devonfw#1517 set java version to 11

* devonfw#1517 Removed java 11 dependency

* devonfw#1517 removed java 11 dependencies

* devonfw#1517 replaced List.of with simple List

* devonfw#1517 implemented requested changes
renamed get... methods
adjusted/added javadocs

* devonfw#1517 implemented requested changes
removed .classpath and .project files
moved timeout values to constants
converted SEARCH_RESPONSES from Object to AbstractSearchResponse
moved regex version number detection to constant

* devonfw#1517 implemented requested changes
saved the return of Systemutils.getUserHome() and determineMvnPath in a static variable to avoid multiple calls of the method

* devonfw#1517 implemented requested changes
added javadoc descriptions

* devonfw#1517 adjusted javadocs and class name
fixed type of Nexus2SearchResponseArtifactLinks

* devonfw#1517 Removed exceptions from tests, added javaDocs

* devonfw#1517 implemented requested changes
removed unnecessary returns

* devonfw#1517 adjusted artifact reader
adjusted artifact reader to latest TemplateSetConfiguration
added ContextConfiguration and TemplatesConfiguration entities
adjusted tests

* devonfw#1517 introduced new TemplateSet entity
replaced TemplateSetArtifactReader constructor with new retrieve method
adjusted tests

* devonfw#1517 implemented requested changes
removed unnecessary caching of user home and maven paths

* devonfw#1517 implemented requested changes
added zeroturnaround zt-exec 1.12 to the root pom as a managed dependency

* devonfw#1517 implemented requested changes
removed unnecessary build of test-jar

* devonfw#1517 devonfw#1517 implemented requested changes
adjusted debug log message
made sure that missing files won't break the retrieval process
added new testRetrieveTemplateSetArtifactWithMissingFile test

* devonfw#1517 implemented requested changes
changed wiremock dependency to wiremock-jre8 2.35.0

* devonfw#1517 implemented requested changes
changed java version to 11

Co-authored-by: jan-vcapgemini <jan-vincent.hoelzle@capgemini.com>
… size and minimize. Styled dark theme buttons
@Ali7223 Ali7223 self-assigned this Jan 2, 2023
# Conflicts:
#	cobigen-eclipse/cobigen-eclipse-feature/.project
#	cobigen-eclipse/cobigen-eclipse-test/.project
#	cobigen-eclipse/cobigen-eclipse-updatesite/.project
#	cobigen-eclipse/cobigen-eclipse/.project
#	cobigen-templates/templates-devon4j/.classpath
#	pom.xml
jan-vcapgemini and others added 28 commits April 6, 2023 22:38
# Conflicts:
#	cobigen/cobigen-core-api/src/main/java/com/devonfw/cobigen/api/util/CobiGenPaths.java
#	cobigen/cobigen-core-api/src/main/java/com/devonfw/cobigen/api/util/TemplatesJarUtil.java
#	cobigen/core-artifact-retriever/src/main/java/com/devonfw/cobigen/retriever/ArtifactRetriever.java
# Conflicts:
#	cobigen/cobigen-core-api/src/main/java/com/devonfw/cobigen/api/constants/ConfigurationConstants.java
#	cobigen/cobigen-core-api/src/main/java/com/devonfw/cobigen/api/util/MavenCoordinate.java
#	cobigen/cobigen-core-api/src/main/java/com/devonfw/cobigen/api/util/TemplatesJarUtil.java
#	cobigen/cobigen-core/src/main/java/com/devonfw/cobigen/impl/config/reader/TemplateSetConfigurationReader.java
#	cobigen/cobigen-core/src/test/java/com/devonfw/cobigen/unittest/templates/TemplateJarDownloaderTest.java
#	cobigen/core-artifact-retriever/pom.xml
#	cobigen/core-artifact-retriever/src/main/java/com/devonfw/cobigen/retriever/ArtifactRetriever.java
#	cobigen/pom.xml
added ArtifactRetrieverUtil to core
moved ArtifactRetriever cache handling to new ArtifactRetrieverUtil in core
fixed dependency cycle
@jan-vcapgemini jan-vcapgemini changed the base branch from template-set-deployables to master April 19, 2023 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to install template sets