maven-ant-tasks

install jar built from ant task into local maven repository

对着背影说爱祢 提交于 2020-01-05 07:25:48
问题 This is the command I want to run at the end of my Ant script: mvn install:install-file -Dfile=C:\dev\common\somejar.jar -DgroupId=com.myco.gt -DartifactId=somejar-Dversion=1.0.0 -Dpackaging=jar -DgeneratePOM=true If I enter the following target at the end of my Ant script: <target name='install_mvn_dependencies' depends='build_jars'> <exec executable="mvn"> <arg value="install:install-file"/> <arg value="-Dfile=c:\dev\common\somejar.jar"/> <arg value ="-DgroupId=com.myco.gt"/> <arg value="

artifact:install pushes the super-pom instead of the POM I define

别说谁变了你拦得住时间么 提交于 2019-12-21 11:00:13
问题 I have a POM defined in the Ant file, the build works correctly, pulling the correct artifacts from the Repository, however, the artifact:install tasks pushes to 'super-pom' instead of the pom I specify I use the following POM file <project name="my-proj" default="build" xmlns:artifact="antlib:org.apache.maven.artifact.ant"> <!-- Define the Maven tasks --> <path id="mvn.classpath" path="${env.MAVEN_HOME}/lib/maven-ant-tasks-2.1.1.jar" /> <typedef resource="org/apache/maven/artifact/ant/antlib

Maven ant task not getting executed while running cucumber tests

旧城冷巷雨未停 提交于 2019-12-13 02:54:13
问题 We are trying to set up cucumber framework tests. We started with sample tests and it ran fine. I then updated maven to have maven profiles which will do certain tasks specific to that profile. I have profile QA_Smoke and have ant task under it ( for now simple echo) . I have set this profile as active maven profile but whenever I run the profile , task does not get executed. Instead it directly starts cucumber tests. Below is snapshot of maven profile.Can someone please tell,how can we

artifact:install pushes the super-pom instead of the POM I define

≡放荡痞女 提交于 2019-12-04 06:14:18
I have a POM defined in the Ant file, the build works correctly, pulling the correct artifacts from the Repository, however, the artifact:install tasks pushes to 'super-pom' instead of the pom I specify I use the following POM file <project name="my-proj" default="build" xmlns:artifact="antlib:org.apache.maven.artifact.ant"> <!-- Define the Maven tasks --> <path id="mvn.classpath" path="${env.MAVEN_HOME}/lib/maven-ant-tasks-2.1.1.jar" /> <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="antlib:org.apache.maven.artifact.ant" classpathref="mvn.classpath" /> <target name="set-deps

How can I deploy a zip file created with the maven-antrun-plugin?

只愿长相守 提交于 2019-11-30 02:27:36
I'm using the maven-antrun-plugin to do a bunch of work with Ant, which ultimately results in a zip file. I'd like to deploy the zip file to our maven server (Artifactory). The maven-antrun-portion works as intended and successfully creates the zip file; however deployment fails with the following error message: org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy (default-deploy) on project projectname: The packaging for this project did not assign a file to the build artifact My POM file is as follows: <project

How can I deploy a zip file created with the maven-antrun-plugin?

随声附和 提交于 2019-11-28 23:23:24
问题 I'm using the maven-antrun-plugin to do a bunch of work with Ant, which ultimately results in a zip file. I'd like to deploy the zip file to our maven server (Artifactory). The maven-antrun-portion works as intended and successfully creates the zip file; however deployment fails with the following error message: org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy (default-deploy) on project projectname: The