« Return to Thread: 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
--
Ed Hillmann-2 wrote:
>
> 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
>
>
View this message in context: http://www.nabble.com/Cannot-deploy-a-file-to-Artifactory-users%2C-no-matter-what-I-try...-tp17464259p18609085.html
Sent from the Artifactory-Users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
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
« Return to Thread: Cannot deploy a file to Artifactory users, no matter what I try...
| Free Forum Powered by Nabble | Forum Help |