Display custom archetype properties in Intellij “create project from archetype” wizard











up vote
1
down vote

favorite












I have a custom maven archetype to define an internal company project structure.
This archetype has some required additional properties. E.g.,system-code



<archetype-descriptor>
<requiredProperties>
<requiredProperty key="system-code"/>
...
</requiredProperties>
...
</archetype-descriptor>


If I run the artifact through the command line:



$ mvn archetype:generate -DarchetypeGroupId=... -DarchetypeArtifactId=... -DarchetypeVersion=...


The custom property is requested so the user doesn't need to know that this property exsists before running the mvn archetype:generate plugin.



$ Define value for property 'system-code':


What I want to do is something similar when I create a new project from the archetype in Intellij-idea. Following the advices of other SO questions, I've created an artifact-catalog and added the plugin maven artifacts catalog to Idea. So far all is working fine and I can create a new project from the archetype.



enter image description here



However, in the archetype properties dialog, there is no trace of the custom property system-code, and in some use cases the user doesn't have to know this property is required.



enter image description here



If I go ahead creating the project, I expected that maybe the system-code property would be requested in the command line, but that's not the case and the property creation fails precisely because the system-code property is missing.



[ERROR] Property system-code is missing.


If in the properties dialog I manually add the system-code property, all works as expected, but as I said, I think is something not easy to know for the user.



So, the question is if anyone knows if is it posible to display the archetype custom properties somehow in the Intellij-idea new project creation wizard?



Thanks in advance










share|improve this question


















  • 1




    IntelliJ IDEA doesn't support it at the moment: youtrack.jetbrains.com/issue/IDEA-81665.
    – CrazyCoder
    Nov 20 at 20:19










  • Thanks for the answer @CrazyCoder! It seems to be that I didn't google enough before asking the question :) If you want to add the comment as an answer, I'll accept it
    – troig
    Nov 21 at 8:21















up vote
1
down vote

favorite












I have a custom maven archetype to define an internal company project structure.
This archetype has some required additional properties. E.g.,system-code



<archetype-descriptor>
<requiredProperties>
<requiredProperty key="system-code"/>
...
</requiredProperties>
...
</archetype-descriptor>


If I run the artifact through the command line:



$ mvn archetype:generate -DarchetypeGroupId=... -DarchetypeArtifactId=... -DarchetypeVersion=...


The custom property is requested so the user doesn't need to know that this property exsists before running the mvn archetype:generate plugin.



$ Define value for property 'system-code':


What I want to do is something similar when I create a new project from the archetype in Intellij-idea. Following the advices of other SO questions, I've created an artifact-catalog and added the plugin maven artifacts catalog to Idea. So far all is working fine and I can create a new project from the archetype.



enter image description here



However, in the archetype properties dialog, there is no trace of the custom property system-code, and in some use cases the user doesn't have to know this property is required.



enter image description here



If I go ahead creating the project, I expected that maybe the system-code property would be requested in the command line, but that's not the case and the property creation fails precisely because the system-code property is missing.



[ERROR] Property system-code is missing.


If in the properties dialog I manually add the system-code property, all works as expected, but as I said, I think is something not easy to know for the user.



So, the question is if anyone knows if is it posible to display the archetype custom properties somehow in the Intellij-idea new project creation wizard?



Thanks in advance










share|improve this question


















  • 1




    IntelliJ IDEA doesn't support it at the moment: youtrack.jetbrains.com/issue/IDEA-81665.
    – CrazyCoder
    Nov 20 at 20:19










  • Thanks for the answer @CrazyCoder! It seems to be that I didn't google enough before asking the question :) If you want to add the comment as an answer, I'll accept it
    – troig
    Nov 21 at 8:21













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I have a custom maven archetype to define an internal company project structure.
This archetype has some required additional properties. E.g.,system-code



<archetype-descriptor>
<requiredProperties>
<requiredProperty key="system-code"/>
...
</requiredProperties>
...
</archetype-descriptor>


If I run the artifact through the command line:



$ mvn archetype:generate -DarchetypeGroupId=... -DarchetypeArtifactId=... -DarchetypeVersion=...


The custom property is requested so the user doesn't need to know that this property exsists before running the mvn archetype:generate plugin.



$ Define value for property 'system-code':


What I want to do is something similar when I create a new project from the archetype in Intellij-idea. Following the advices of other SO questions, I've created an artifact-catalog and added the plugin maven artifacts catalog to Idea. So far all is working fine and I can create a new project from the archetype.



enter image description here



However, in the archetype properties dialog, there is no trace of the custom property system-code, and in some use cases the user doesn't have to know this property is required.



enter image description here



If I go ahead creating the project, I expected that maybe the system-code property would be requested in the command line, but that's not the case and the property creation fails precisely because the system-code property is missing.



[ERROR] Property system-code is missing.


If in the properties dialog I manually add the system-code property, all works as expected, but as I said, I think is something not easy to know for the user.



So, the question is if anyone knows if is it posible to display the archetype custom properties somehow in the Intellij-idea new project creation wizard?



Thanks in advance










share|improve this question













I have a custom maven archetype to define an internal company project structure.
This archetype has some required additional properties. E.g.,system-code



<archetype-descriptor>
<requiredProperties>
<requiredProperty key="system-code"/>
...
</requiredProperties>
...
</archetype-descriptor>


If I run the artifact through the command line:



$ mvn archetype:generate -DarchetypeGroupId=... -DarchetypeArtifactId=... -DarchetypeVersion=...


The custom property is requested so the user doesn't need to know that this property exsists before running the mvn archetype:generate plugin.



$ Define value for property 'system-code':


What I want to do is something similar when I create a new project from the archetype in Intellij-idea. Following the advices of other SO questions, I've created an artifact-catalog and added the plugin maven artifacts catalog to Idea. So far all is working fine and I can create a new project from the archetype.



enter image description here



However, in the archetype properties dialog, there is no trace of the custom property system-code, and in some use cases the user doesn't have to know this property is required.



enter image description here



If I go ahead creating the project, I expected that maybe the system-code property would be requested in the command line, but that's not the case and the property creation fails precisely because the system-code property is missing.



[ERROR] Property system-code is missing.


If in the properties dialog I manually add the system-code property, all works as expected, but as I said, I think is something not easy to know for the user.



So, the question is if anyone knows if is it posible to display the archetype custom properties somehow in the Intellij-idea new project creation wizard?



Thanks in advance







java maven intellij-idea intellij-plugin maven-archetype






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 20 at 13:29









troig

4,47322448




4,47322448








  • 1




    IntelliJ IDEA doesn't support it at the moment: youtrack.jetbrains.com/issue/IDEA-81665.
    – CrazyCoder
    Nov 20 at 20:19










  • Thanks for the answer @CrazyCoder! It seems to be that I didn't google enough before asking the question :) If you want to add the comment as an answer, I'll accept it
    – troig
    Nov 21 at 8:21














  • 1




    IntelliJ IDEA doesn't support it at the moment: youtrack.jetbrains.com/issue/IDEA-81665.
    – CrazyCoder
    Nov 20 at 20:19










  • Thanks for the answer @CrazyCoder! It seems to be that I didn't google enough before asking the question :) If you want to add the comment as an answer, I'll accept it
    – troig
    Nov 21 at 8:21








1




1




IntelliJ IDEA doesn't support it at the moment: youtrack.jetbrains.com/issue/IDEA-81665.
– CrazyCoder
Nov 20 at 20:19




IntelliJ IDEA doesn't support it at the moment: youtrack.jetbrains.com/issue/IDEA-81665.
– CrazyCoder
Nov 20 at 20:19












Thanks for the answer @CrazyCoder! It seems to be that I didn't google enough before asking the question :) If you want to add the comment as an answer, I'll accept it
– troig
Nov 21 at 8:21




Thanks for the answer @CrazyCoder! It seems to be that I didn't google enough before asking the question :) If you want to add the comment as an answer, I'll accept it
– troig
Nov 21 at 8:21












1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










Unfortunately, IntelliJ IDEA doesn't support it at the moment, you can watch/vote the issue in YouTrack.






share|improve this answer





















  • Thanks, voted and watched. I think it's a common use case for those we work with custom archetypes. Woud it be really nice to have it fixed.
    – troig
    Nov 21 at 9:39











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53394096%2fdisplay-custom-archetype-properties-in-intellij-create-project-from-archetype%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted










Unfortunately, IntelliJ IDEA doesn't support it at the moment, you can watch/vote the issue in YouTrack.






share|improve this answer





















  • Thanks, voted and watched. I think it's a common use case for those we work with custom archetypes. Woud it be really nice to have it fixed.
    – troig
    Nov 21 at 9:39















up vote
1
down vote



accepted










Unfortunately, IntelliJ IDEA doesn't support it at the moment, you can watch/vote the issue in YouTrack.






share|improve this answer





















  • Thanks, voted and watched. I think it's a common use case for those we work with custom archetypes. Woud it be really nice to have it fixed.
    – troig
    Nov 21 at 9:39













up vote
1
down vote



accepted







up vote
1
down vote



accepted






Unfortunately, IntelliJ IDEA doesn't support it at the moment, you can watch/vote the issue in YouTrack.






share|improve this answer












Unfortunately, IntelliJ IDEA doesn't support it at the moment, you can watch/vote the issue in YouTrack.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 21 at 9:35









CrazyCoder

270k47638641




270k47638641












  • Thanks, voted and watched. I think it's a common use case for those we work with custom archetypes. Woud it be really nice to have it fixed.
    – troig
    Nov 21 at 9:39


















  • Thanks, voted and watched. I think it's a common use case for those we work with custom archetypes. Woud it be really nice to have it fixed.
    – troig
    Nov 21 at 9:39
















Thanks, voted and watched. I think it's a common use case for those we work with custom archetypes. Woud it be really nice to have it fixed.
– troig
Nov 21 at 9:39




Thanks, voted and watched. I think it's a common use case for those we work with custom archetypes. Woud it be really nice to have it fixed.
– troig
Nov 21 at 9:39


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53394096%2fdisplay-custom-archetype-properties-in-intellij-create-project-from-archetype%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

Refactoring coordinates for Minecraft Pi buildings written in Python