简体   繁体   中英

Download dependencies from a maven repository using grunt

I want to access maven and download 1 dependencie that I have in a pom.xml

    <artifactId>id</artifactId>
  <packaging>pom</packaging>
  <name>lorep ipsum</name>

  <parent>
    <groupId>com.whatever.client</groupId>
    <artifactId>client-parent</artifactId>
    <version>2.0</version>
  </parent>

  <dependencies>
    <dependency>
      <groupId>com.cubeia.firebase.client</groupId>
      <artifactId>firebase-js-api</artifactId>
      <classifier>javascript</classifier>
      <type>js</type>
    </dependency>


  </dependencies>

Is there any plugin to access to a maven repository, or should I write it by node-js? I know there are plugins to deploy and realease to maven, but no for download dependencies.

Any suggestion?

Finally I'm downloading the dependencies from maven using a maven build that I call using "grunt-git"

shell: {
            development: {
                options: {
                    stdout: true
                },
                command: 'mvn clean install -f ./dependencies/pom.xml'                    
        }

I just run my mvn build, that just download the dependencies to the target folder I want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM