ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hwpstorage <hwpstor...@gmail.com>
Subject Maven Ant Plugin question
Date Tue, 25 Mar 2014 14:30:18 GMT
Hello,

Sorry for the crossing post.
I tried to use maven to genterate build.xml for ant.
Use command
 mvn ant:ant
will generate build.xml and maven-build.xml, which can be used by Ant.

my problem is
everytime runs ant compile
it will download everything from every repository.

for example, for this jar file parquet-format-1.0.0.jar
I got error, it tries every repository.
      [get] Getting:
http://192.168.2.124:8081/nexus/content/groups/public//com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jar
      [get] To:
/home/usera/.m2/repository/com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jar
      [get] Getting:
https://repository.cloudera.com/artifactory/cloudera-repos//com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jar
      [get] To:
/home/usera/.m2/repository/com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jar
      [get] Error opening connection java.io.FileNotFoundException:
https://repository.cloudera.com/artifactory/cloudera-repos//com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jar
      [get] Error opening connection java.io.FileNotFoundException:
https://repository.cloudera.com/artifactory/cloudera-repos//com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jar
      [get] Error opening connection java.io.FileNotFoundException:
https://repository.cloudera.com/artifactory/cloudera-repos//com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jar
      [get] Can't get
https://repository.cloudera.com/artifactory/cloudera-repos//com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jarto
/home/usera/.m2/repository/com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jar
      [get] Getting:
http://maven.twttr.com/com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jar
      [get] To:
/home/usera/.m2/repository/com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jar
      [get] Error opening connection java.io.FileNotFoundException:
http://maven.twttr.com/com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jar
      [get] Error opening connection java.io.FileNotFoundException:
http://maven.twttr.com/com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jar
      [get] Error opening connection java.io.FileNotFoundException:
http://maven.twttr.com/com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jar
      [get] Can't get
http://maven.twttr.com/com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jarto
/home/usera/.m2/repository/com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jar
      [get] Getting:
http://repo.maven.apache.org/maven2/com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jar
      [get] To:
/home/usera/.m2/repository/com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jar


in File  maven-build.xml, this is generated via commmand mvn ant:ant

    <mkdir dir="${maven.repo.local}/com/twitter/parquet-format/1.0.0"/>
    <get src="
http://192.168.2.124:8081/nexus/content/groups/public//com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jar
"

dest="${maven.repo.local}/com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jar"
         usetimestamp="false"
         ignoreerrors="true"/>
    <get src="
https://repository.cloudera.com/artifactory/cloudera-repos//com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jar
"

dest="${maven.repo.local}/com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jar"
         usetimestamp="false"
         ignoreerrors="true"/>
    <get src="
http://maven.twttr.com/com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jar
"

dest="${maven.repo.local}/com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jar"
         usetimestamp="false"
         ignoreerrors="true"/>
    <get src="
http://repo.maven.apache.org/maven2/com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jar
"

dest="${maven.repo.local}/com/twitter/parquet-format/1.0.0/parquet-format-1.0.0.jar"
         usetimestamp="false"
         ignoreerrors="true"/>


In the orginal maven pom.xml file
                <dependency>
                        <groupId>com.twitter</groupId>
                        <artifactId>parquet-format</artifactId>
                        <version>1.0.0</version>
                </dependency>


Is there any way to change the generate file maven-build.xml in maven?
is it possible to skip the jar download if the maven.repo.local local
repository already has the jar file?

Thanks a lot

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message