8000 GitHub - ia3andy/mvnpm at fix-gz
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ia3andy/mvnpm

 
 

Repository files navigation

banner

Maven for NPM

Maven Repository

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

Include

    <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)

Use

TODO ... (import map etc)

About

Maven over the NPM Registry

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 87.6%
  • JavaScript 11.6%
  • Other 0.8%
0