From: edgarosy <edg...@gm...> - 2008-12-16 21:13:38
|
I have a pom.xml file to which I added 4 dependency blocks in order to build the jar files with these dependencies. I uploaded to artifactory these 4 jars so that when I build the project it would download them from my artifactory repo. I am able to build this jar successfully from any computer except the build server which is a bit strange. When I build my app from the build server, it tries to download the 4 artifacts ids from maven (http://repo1.maven.org/maven2) instead of my aritfactory repo. Here is the stack trace of the errors I am getting. Any help would be appreciate it. D:\acpwork\cruise\checkout\branch\batchapplications\pdr>mvn install -Pacp [INFO] Scanning for projects... WAGON_VERSION: 1.0-beta-2 [INFO] ------------------------------------------------------------------------ [INFO] Building PDR [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Storing buildNumber: 25776 at timestamp: 1229457076268 [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. Downloading: http://repo1.maven.org/maven2/SAP/LOG/7.0/LOG-7.0.pom Downloading: http://repo1.maven.org/maven2/SAP/EXCEPTION/7.0/EXCEPTION-7.0.pom Downloading: http://repo1.maven.org/maven2/SAP/SAPCLIENT/7.0/SAPCLIENT-7.0.pom Downloading: http://repo1.maven.org/maven2/SAP/JMS/1.1/JMS-1.1.pom [INFO] [compiler:compile] [INFO] Compiling 21 source files to D:\acpwork\cruise\checkout\branch\batchapplications\pdr\target\classes [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. Downloading: http://repo1.maven.org/maven2/SAP/LOG/7.0/LOG-7.0.jar Downloading: http://repo1.maven.org/maven2/SAP/EXCEPTION/7.0/EXCEPTION-7.0.jar Downloading: http://repo1.maven.org/maven2/SAP/SAPCLIENT/7.0/SAPCLIENT-7.0.jar Downloading: http://repo1.maven.org/maven2/SAP/JMS/1.1/JMS-1.1.jar [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) SAP:LOG:jar:7.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=SAP -DartifactId=LOG -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=SAP -DartifactId=LOG -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Drepositor Path to dependency: 1) com.octanner.batchapplications:pdr:jar:8.12 2) SAP:LOG:jar:7.0 2) SAP:EXCEPTION:jar:7.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=SAP -DartifactId=EXCEPTION -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=SAP -DartifactId=EXCEPTION -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Drep Path to dependency: 1) com.octanner.batchapplications:pdr:jar:8.12 2) SAP:EXCEPTION:jar:7.0 3) SAP:SAPCLIENT:jar:7.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=SAP -DartifactId=SAPCLIENT -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=SAP -DartifactId=SAPCLIENT -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Drep Path to dependency: 1) com.octanner.batchapplications:pdr:jar:8.12 2) SAP:SAPCLIENT:jar:7.0 4) SAP:JMS:jar:1.1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=SAP -DartifactId=JMS -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=SAP -DartifactId=JMS -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Drepositor Path to dependency: 1) com.octanner.batchapplications:pdr:jar:8.12 2) SAP:JMS:jar:1.1 ---------- 4 required artifacts are missing. for artifact: com.octanner.batchapplications:pdr:jar:8.12 from the specified remote repositories: central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 23 seconds [INFO] Finished at: Tue Dec 16 12:51:34 MST 2008 [INFO] Final Memory: 14M/39M [INFO] ------------------------------------------------------------------------ D:\acpwork\cruise\checkout\branch\batchapplications\pdr> -- View this message in context: http://www.nabble.com/Unable-to-deploy-an-application-to-artifactory-tp21041958p21041958.html Sent from the Artifactory-Users mailing list archive at Nabble.com. |