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

The azure-functions-archetype artifact is not an archetype #178

Closed
nowitzkihuang opened this issue Jul 7, 2021 · 4 comments
Closed

The azure-functions-archetype artifact is not an archetype #178

nowitzkihuang opened this issue Jul 7, 2021 · 4 comments

Comments

@nowitzkihuang
Copy link

When I tried to create project for azure functions using azure-functions-archetype in eclipse, I encountered the problem as follows

Unable to create project from archetype [com.microsoft.azure:azure-functions-archetype:1.39 -> https://repo1.maven.org/maven2/]
The defined artifact is not an archetype

Can anyone help me solve the issue?
Thank you

@Flanker32
Copy link
Member

Flanker32 commented Jul 7, 2021

@nowitzkihuang Could you please share your eclipse version and the screen shot of the issue, I tried with Eclipse 2021-03 and it seems works fine.

Besides, if the issue still reproduced, as a workaround, could you please try generate the project with mvn archetype:generate -DarchetypeGroupId=com.microsoft.azure -DarchetypeArtifactId=azure-functions-archetype and import the result to Eclipse?

image

image

@nowitzkihuang
Copy link
Author

@Flanker32 Hi the version of eclipse I use is as follows

image

and the screen shots are these
image
image
After I selected the azure functions archetype and jump to the next step, these are no properties as you show above
I also tried to use cmd, but it still failed, the screen shots show as follows, there is no option for azure function archetype can be selected
image
image

@Flanker32
Copy link
Member

@nowitzkihuang Thanks for your report, did you use proxy or mirror for maven? If so, could you please try the archetype command without mirror?

Besides, here is the link for functions archetype in maven repository, could you please try whether its reachable in your machine? If so, could you please try clean the cached archetype in {your_m2_home}\repository\com\microsoft\azure\azure-functions-archetype and re-run the archetype command?

@nowitzkihuang
Copy link
Author

@Flanker32 Hi thank you for your reply, I fixed the issue after I got the settings.xml from my colleague and refreshed the maven repository. I think it may get the something wrong when catching the archetype from my computer. Thank you for your help again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants