|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Cannot deploy a file to Artifactory users, no matter what I try...OK, I'm stumped. I'm trying to use mvn deploy:deploy-file to deploy a
file to my Artifactory instance (using the HTTP listener, v 1.2.5). Everytime I do, I get a 401 error. I've run the command with Debug on, and this is what I see at the end mvn -X -Dfile=../icefaces/lib/icefaces.jar -DpomFile=./icefaces-1.7.0-sv-1.0.pom -Durl=http://deli.intecbilling.com:8081/artifactory/libs-releases -DrepositoryId=deli-releases [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy-file' --> [DEBUG] (f) file = /u01/ct/acct/ehillman/ICEfaces-SV/trunk/icefaces/lib/icefaces.jar [DEBUG] (f) generatePom = true [DEBUG] (s) localRepository = [local] -> file:///ct/acct/ehillman/.m2/repository [DEBUG] (f) pomFile = /u01/ct/acct/ehillman/ICEfaces-SV/trunk/bin/icefaces-1.7.0-sv-1.0.pom [DEBUG] (f) repositoryId = deli-releases [DEBUG] (f) repositoryLayout = default [DEBUG] (f) uniqueVersion = true [DEBUG] (f) url = http://deli.intecbilling.com:8081/artifactory/libs-releases [DEBUG] -- end configuration -- [INFO] [deploy:deploy-file] Uploading: http://deli.intecbilling.com:8081/artifactory/libs-releases/org/icefaces/icefaces/1.7.0-sv-1.0/icefaces-1.7.0-sv-1.0.jar 868K uploaded [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error deploying artifact: Failed to transfer file: http://deli.intecbilling.com:8081/artifactory/libs-releases/org/icefaces/icefaces/1.7.0-sv-1.0/icefaces-1.7.0-sv-1.0.jar. Return code is: 401 Here are the things I have set in my config files <servers> <server> <id>deli.releases</id> <username>ehillman</username> <password><mypwd></password> </server> <server> <id>deli.snapshots</id> <username>ehillman</username> <password><mypwd></password> </server> </servers> <mirrors> <mirror> <id>artifactory</id> <mirrorOf>*</mirrorOf> <url>http://deli.intecbilling.com:8081/artifactory/repo</url> <name>Artifactory</name> </mirror> </mirrors> <profiles> <profile> <id>ICEfacesSV</id> <repositories> <repository> <id>deli.releases</id> <url>http://deli.intecbilling.com:8081/artifactory/libs-releases</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> <repository> <id>deli.snapshots</id> <url>http://deli.intecbilling.com:8081/artifactory/libs-snapshots</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> </profile> </profiles> I've tried it with and without the Profile and nothing is working. The JAR itself is 869 K, so it can't be too big, can it? Is there anything else I can turn on to figure out why this isn't working? I can manually add the files through the Web UI, but that is not going to be workable in the scope of what I want to do. Any help would be greatly appreciated. Thanks, Ed ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Artifactory-users mailing list Artifactory-users@... https://lists.sourceforge.net/lists/listinfo/artifactory-users |
|
|
Re: Cannot deploy a file to Artifactory users, no matter what I try...Your deployment is rejected for authentication reasons. Your profile must be active in order to authenticate correctly, so I suggest:
1. Run mvn help:effective-settings -PICEfacesSV and check that you have the right authentication details active for deli-releases (you need to have the -PICEfacesSV in the deploy command as well). 2. Check the Artifactory log for authentication errors. 3. If there's an internal proxy you need to go through you need to set it up as well. Yoav On Mon, May 26, 2008 at 4:03 AM, Ed Hillmann <ed.hillmann@...> wrote: OK, I'm stumped. I'm trying to use mvn deploy:deploy-file to deploy a ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Artifactory-users mailing list Artifactory-users@... https://lists.sourceforge.net/lists/listinfo/artifactory-users |
|
|
Re: Cannot deploy a file to Artifactory users, no matter what I try...On Mon, May 26, 2008 at 4:22 PM, Yoav Landman <ylandman@...> wrote:
> Your deployment is rejected for authentication reasons. Your profile must be > active in order to authenticate correctly, so I suggest: > 1. Run mvn help:effective-settings -PICEfacesSV and check that you have the > right authentication details active for deli-releases (you need to have the > -PICEfacesSV in the deploy command as well). > 2. Check the Artifactory log for authentication errors. > 3. If there's an internal proxy you need to go through you need to set it up > as well. > > Yoav Thanks for the feedback. I've run effective-settings, and everything looks OK. At this point, I've gotten rid of the profiles and I've defined by username/password for the Artifactory instance in my settings.xml file. The effective-settings defined 1) My username/password for my Releases/Snapshots repository, 2) the mirrorOf definition, and 3) the definition of the repositories themselves. So, from what I can tell, they're OK. When I attempt the deploy, the only item that comes up in the log is in the request.log. A single line as follows: 158.155.72.17 - - [26/May/2008:22:09:38 +0000] "PUT /artifactory/libs-releases/org/icefaces/icefaces/1.7.0-sv-1.0/icefaces-1.7.0-sv-1.0.jar HTTP/1.1" 401 1508 Nothing else. As far as proxies, there are no proxies between these machines. These are two servers that reside behind our firewall on the intranet. Is there any way I can turn on any debugging in artifactory itself, so I can get a better ida of where I'm coming off the rails? Thanks, Ed ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Artifactory-users mailing list Artifactory-users@... https://lists.sourceforge.net/lists/listinfo/artifactory-users |
|
|
Re: Cannot deploy a file to Artifactory users, no matter what I try...On Tue, May 27, 2008 at 1:14 AM, Ed Hillmann <ed.hillmann@...> wrote:
Sure, see: http://www.jfrog.org/confluence/display/RTF/FAQs#FAQs-HowdoIrunArtifactoryindebugmode%3F You should be able to get relevant inputs from "artifactory.log".
http://www.alphacsp.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Artifactory-users mailing list Artifactory-users@... https://lists.sourceforge.net/lists/listinfo/artifactory-users |
|
|
Re: Cannot deploy a file to Artifactory users, no matter what I try...Hi,
I'm having exactly the same problem. Did you by any chance manage to solve the issue? Thanks in advance, Regards, Tim
|
|
|
Re: Cannot deploy a file to Artifactory users, no matter what I try...Tim,
If the user you are trying to deploy with has deploy rights on the repository you are trying to deploy to, it is probably a simple straightforward thing. Make sure you also included the repository in the "distributionManagement" section of your pom. If you are still stuck you can attach your settings.xml and artifactory.config.xml so we can figure out what's wrong. Yoav
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Artifactory-users mailing list Artifactory-users@... https://lists.sourceforge.net/lists/listinfo/artifactory-users |
|
|
Re: Cannot deploy a file to Artifactory users, no matter what I try...Yoav,
Thanks for the reply. In the meanwhile I found the cause: it's Weblogic. When running the artifactory on Jetty or Tomcat, there's no issue. However, when artifactory runs on Weblogic, we do see in the Weblogic logs that there are problem with authenticating some HTTP requests (i.e. not replying to the client with 401). So we're running on Jetty now :-) Thanks for your help, Regards, Tim
|
| Free Forum Powered by Nabble | Forum Help |