Skip to content

Commit 717ccd4

Browse files
committed
Fix archetypes to work with new jar plugin
1 parent e02fdb4 commit 717ccd4

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

archetypes/helidon/src/main/archetype/mp/common/common-mp.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<source src="/common/sources.xml"/>
2626
<output>
2727
<model>
28+
<value key="mainClass">${package}.Main</value>
2829
<value key="parent-artifactId">helidon-mp</value>
2930
<list key="dependencies">
3031
<map>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
package {{package}};
3+
4+
/**
5+
* Main entry point of the application.
6+
* This class is registered as the main class in the jar manifest, as well as the main class of the module.
7+
*/
8+
public class Main {
9+
/**
10+
* Main method. Starts CDI (and the application).
11+
*
12+
* @param args ignored
13+
*/
14+
public static void main(String[] args) {
15+
io.helidon.Main.main(args);
16+
}
17+
}

archetypes/helidon/src/main/archetype/mp/custom/custom-mp.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@
8282
<value>jakarta.cdi</value>
8383
<value>jakarta.inject</value>
8484
<value>jakarta.ws.rs</value>
85+
<value>io.helidon</value>
8586
<value>io.helidon.microprofile.config</value>
87+
<value>io.helidon.microprofile.server</value>
8688
</list>
8789
</model>
8890
</output>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"resources": [
3+
{
4+
"pattern": "application-test.yaml"
5+
}
6+
]
7+
}

0 commit comments

Comments
 (0)