|
Hi,
With v2.0.4 of the Jenkins Artifactory plugin on Jenkins 1.438, my jars are being deployed to Artifactory, but not my poms, so transitive dependency resolution for downstream projects isn't working. I'm new to Jenkins and probably just missing something. Before Jenkins I was using Artifactory manually, using "mvn deploy", and it would deploy artifacts and poms. Here's the end of my build output showing the deployment to Artifactory: [INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ someproject --- [INFO] Building jar: /data01/hudson/jobs/someproject/workspace/someproject/target/someproject-1.2.1.jar [JENKINS] Archiving /data01/hudson/jobs/someproject/workspace/someproject/pom.xml to /data01/hudson/jobs/someproject/modules/somegroupId$someproject/builds/2011-11-10_13-34-27/archive/somegroupId/someproject/1.2/someproject-1.2.pom [JENKINS] Archiving /data01/hudson/jobs/someproject/workspace/someproject/target/someproject-1.2.1.jar to /data01/hudson/jobs/someproject/modules/somegroupId$someproject/builds/2011-11-10_13-34-27/archive/somegroupId/someproject/1.2/someproject-1.2.jar [INFO] Artifactory Build Info Recorder: Deploying artifacts to http://127.0.0.1:8080/artifactory/somereponame [INFO] Deploying artifact: http://127.0.0.1:8080/artifactory/somereponame/somegroupId/someproject/1.2/someproject-1.2.jar [INFO] Artifactory Build Info Recorder: Deploying build info ... [INFO] Deploying build info to: http://127.0.0.1:8080/artifactory/api/build [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS Here's the <publishers> part of my config.xml. I configured it through the GUI. <publishers> <org.jfrog.hudson.ArtifactoryRedeployPublisher> <details> <artifactoryName>http://127.0.0.1:8080/artifactory</artifactoryName> <repositoryKey>somereponame</repositoryKey> <snapshotsRepositoryKey>somereponame</snapshotsRepositoryKey> </details> <deployArtifacts>true</deployArtifacts> <artifactDeploymentPatterns> <includePatterns></includePatterns> <excludePatterns></excludePatterns> </artifactDeploymentPatterns> <includeEnvVars>false</includeEnvVars> <deployBuildInfo>true</deployBuildInfo> <evenIfUnstable>false</evenIfUnstable> <runChecks>false</runChecks> <violationRecipients></violationRecipients> <includePublishArtifacts>false</includePublishArtifacts> <passIdentifiedDownstream>false</passIdentifiedDownstream> <scopes></scopes> <licenseAutoDiscovery>true</licenseAutoDiscovery> <disableLicenseAutoDiscovery>false</disableLicenseAutoDiscovery> <discardOldBuilds>false</discardOldBuilds> <discardBuildArtifacts>true</discardBuildArtifacts> <matrixParams></matrixParams> </org.jfrog.hudson.ArtifactoryRedeployPublisher> </publishers> "<includePublishArtifacts>false" looks kind of suspicious to me, but I can't find the corresponding option in the GUI. Thanks, Mike ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Artifactory-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/artifactory-users |
|
What is the maven goal you are running? Usually it should be 'mvn install' to include the pom files. Can you try that?
Yossi On Thu, Nov 10, 2011 at 21:50, Michael Smith <[hidden email]> wrote: Hi, ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Artifactory-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/artifactory-users |
|
Yossi Shaul wrote:
> What is the maven goal you are running? Usually it should be 'mvn > install' to include the pom files. Can you try that? That was the problem. I hadn't set any goals so it was using the default goal, "package", from my poms. Thanks! Mike > On Thu, Nov 10, 2011 at 21:50, Michael Smith <[hidden email] > <mailto:[hidden email]>> wrote: > > Hi, > > With v2.0.4 of the Jenkins Artifactory plugin on Jenkins 1.438, my jars > are being deployed to Artifactory, but not my poms, so transitive > dependency resolution for downstream projects isn't working. ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Artifactory-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/artifactory-users |
| Powered by Nabble | See how NAML generates this page |
