Installing existing jar to local maven repository using maven-ant-task -


i want install old library local maven repository using maven-ant-task.

while mvn install:install-file -dfile=path/to/lib/a2jruntime.jar -dgroupid=ki -dartifactid=a2jruntime -dversion=x -dpackaging=jar terminal working fine , mvn clean package succeed.

the following ant-task fails with:

install-libs-to-maven-repo: [artifact:mvn] [info] build successful  create-metadataeditormodule-jar: [artifact:mvn] [info] building ktidodo-metadata 0.1-snapshot [artifact:mvn] [info] ------------------------------------------------------------------------ [artifact:mvn] downloading: http://repo1.maven.org/maven2/ki/a2jruntime/x/a2jruntime-x.pom [artifact:mvn] [warning] pom ki:a2jruntime:jar:x missing, no dependency information available [artifact:mvn] downloading: http://repo1.maven.org/maven2/ki/a2jruntime/x/a2jruntime-x.jar [artifact:mvn] [info] ------------------------------------------------------------------------ [artifact:mvn] [info] build failure [artifact:mvn] [info] ------------------------------------------------------------------------ [artifact:mvn] [error] failed execute goal on project ktidodo-metadata: not resolve dependencies project org.kitodo.production:ktidodo-metadata:jar:0.1-snapshot: not find artifact ki:a2jruntime:jar:x in central (http://repo1.maven.org/maven2) -> [help 1] 

these ant-tasks:

    <target name="create-metadataeditormodule-jar" depends="install-libs-to-maven-repo">         <artifact:mvn pom="${basedir}/maven-module/pom.xml" mavenversion="3.0">             <arg value="clean" />             <arg value="install"/>         </artifact:mvn>     </target>      <target name="install-libs-to-maven-repo" >         <artifact:mvn>             <arg value="install:install-file" />             <arg value="-dfile=${lib.dir}/a2jruntime.jar" />             <arg value="-dgroupid=ki" />             <arg value="-dartifactid=a2jruntime" />             <arg value="-dversion=x" />             <arg value="-dpackaging=jar"/>         </artifact:mvn>     </target> 


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -