Open Aericio opened 4 years ago
The archetype has not been deployed to the main repo yet, I will work with Supreme to have that done today.
It appears that we cannot use IntelliJ build in archtype for custom archetypes unless they are in the maven central repo. I'll update the README.md momentarily with how to set it up using command line (due to newest version of archetype plugin not allowing to specify repo on command line, it will take some extra steps to get setup first time)
Upvote this on the IntelliJ issue tracker: https://youtrack.jetbrains.com/issue/IDEA-223617
Will do.
Just built a maven project via command line. Is this intended behavior?
pom.xml
:
<dependencies>
<dependency>
<groupId>cn.nukkit</groupId>
<artifactId>nukkit</artifactId>
<version>${nukkit.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
</plugins>
</build>
plugin.yml
:
name: ${project.name}
main: net.paroxity.TestProject
version: ${project.version}
api-version: ["1.0.9"]
Looks right. The ${} variables will fill in on compile.
Ah, alright 👍
Hello! I just tried to use nukkit-archetype and ran into an issue (following the steps in the "Creating new Plugin from IntelliJ" section):
Tried to re-do from start on new project, same thing.