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

Parameter azureLibraries seems to be required #39238

Open
srnagar opened this issue Mar 15, 2024 · 0 comments
Open

Parameter azureLibraries seems to be required #39238

srnagar opened this issue Mar 15, 2024 · 0 comments
Assignees
Labels
Azure SDK Tools Label for tracking issues related to Azure SDK Tools needs-triage This is a new issue that needs to be triaged to the appropriate team.

Comments

@srnagar
Copy link
Member

srnagar commented Mar 15, 2024

Unfortunately, Azure's Java support is lacking behind. Even this introduction page can't be followed without hassles. For e.g. when executing the provided maven command it won't execute on PowerShell since it requires additional quotes

mvn archetype:generate "-DarchetypeGroupId=com.azure.tools" "-DarchetypeArtifactId=azure-sdk-archetype"

But even then it fails with the error message provided below. According to this table the parameter azureLibraries is optional, however it is not and not providing it keeps the user in an endless loop. Please fix!

❯ mvn archetype:generate "-DarchetypeGroupId=com.azure.tools" "-DarchetypeArtifactId=azure-sdk-archetype"
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:3.2.1:generate (default-cli) > generate-sources @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:3.2.1:generate (default-cli) < generate-sources @ standalone-pom <<<
[INFO]
[INFO]
[INFO] --- maven-archetype-plugin:3.2.1:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode
[INFO] Archetype [com.azure.tools:azure-sdk-archetype:1.0.0] found in catalog remote
[INFO] Using property: enableGraalVM = true
[INFO] Using property: javaVersion = 17
[INFO] Using property: junitVersion = 5
Define value for property 'azureLibraries':
Define value for property 'groupId': com.foobar
Define value for property 'artifactId': baz
Define value for property 'version' 1.0-SNAPSHOT: :
Define value for property 'package' com.foobar: :
[WARNING] Archetype is not fully configured
[INFO] Using property: enableGraalVM = true
[INFO] Using property: javaVersion = 17
[INFO] Using property: junitVersion = 5
Define value for property 'azureLibraries':

Originally reported here - https://github.com/MicrosoftDocs/azure-dev-docs/issues/778

@srnagar srnagar self-assigned this Mar 15, 2024
@srnagar srnagar added the Azure SDK Tools Label for tracking issues related to Azure SDK Tools label Mar 15, 2024
@github-actions github-actions bot added the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure SDK Tools Label for tracking issues related to Azure SDK Tools needs-triage This is a new issue that needs to be triaged to the appropriate team.
Projects
None yet
Development

No branches or pull requests

1 participant