Maven for NPM
Add the mvnpm repository:
<settings>
<profiles>
<profile>
<id>mvnpm</id>
<repositories>
<repository>
<id>central</id>
<name>central</name>
<url>https://repo.maven.apache.org/maven2</url>
</repository>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>mvnpm.org</id>
<name>mvnpm</name>
<url>https://repo.mvnpm.org/maven2</url>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>mvnpm</activeProfile>
</activeProfiles>
</settings>
see https://maven.apache.org/guides/mini/guide-multiple-repositories.html for more details on multiple repositories
<dependency>
<groupId>org.mvnpm</groupId>
<artifactId>{ANY NPM PACKAGE NAME}</artifactId>
<version>{ANY NPM PACKAGE VERSION}</version>
<scope>runtime</scope>
</dependency>
example (lit):
<dependency>
<groupId>org.mvnpm</groupId>
<artifactId>lit</artifactId>
<version>2.4.0</version>
<scope>runtime</scope>
</dependency>
TODO: Show advance example (with namespaced npm packages)
TODO ... (import map etc)