Hi Johannes,

it almost worked now. mvn even transferred the file (it took a while and was 
counting KB up, so it must have done something).
But then I get an "Access denied":
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy-file (default-cli) on 
project scijava-common: Failed to deploy artifacts: Could not transfer artifact 
cisd:jhdf5:jar:13.06.2 from/to imagej.thirdparty 
(dav:http://maven.imagej.net/content/repositories/thirdparty/): Access denied 
to: 
http://maven.imagej.net/content/repositories/thirdparty//cisd/jhdf5/13.06.2/jhdf5-13.06.2.jar
 -> [Help 1]


Also, in the Nexus web interface, I don't see any repositories when I am logged 
in.
Maybe I really do not have the necessary permissions?


Here is the full output:

pietzsch@tomancak-mac-17:~/workspace/scijava-common (master)$ mvn 
deploy:deploy-file 
-Durl=dav:http://maven.imagej.net/content/repositories/thirdparty/ 
-Dfile=/Users/pietzsch/Desktop/jhdf5-13.06.2.jar -DgroupId=cisd 
-DartifactId=jhdf5 -Dpackaging=jar -Dversion=13.06.2 
-DrepositoryId=imagej.thirdparty
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building SciJava Common 2.25.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-deploy-plugin:2.8.1:deploy-file (default-cli) @ scijava-common 
---
Uploading: 
dav:http://maven.imagej.net/content/repositories/thirdparty/cisd/jhdf5/13.06.2/jhdf5-13.06.2.jar
Jul 03, 2014 10:49:25 PM 
org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
Jul 03, 2014 10:49:26 PM 
org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
Jul 03, 2014 10:49:26 PM 
org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
Jul 03, 2014 10:49:27 PM 
org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
Jul 03, 2014 10:49:27 PM 
org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
Jul 03, 2014 10:50:54 PM 
org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
Uploading: 
http://maven.imagej.net/content/repositories/thirdparty/cisd/jhdf5/13.06.2/jhdf5-13.06.2.pom
Jul 03, 2014 10:52:21 PM 
org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
Jul 03, 2014 10:52:22 PM 
org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
Jul 03, 2014 10:52:22 PM 
org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
Jul 03, 2014 10:52:22 PM 
org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
Jul 03, 2014 10:52:23 PM 
org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
Jul 03, 2014 10:52:23 PM 
org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:59.810s
[INFO] Finished at: Thu Jul 03 22:52:23 CEST 2014
[INFO] Final Memory: 11M/310M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy-file (default-cli) on 
project scijava-common: Failed to deploy artifacts: Could not transfer artifact 
cisd:jhdf5:jar:13.06.2 from/to imagej.thirdparty 
(dav:http://maven.imagej.net/content/repositories/thirdparty/): Access denied 
to: 
http://maven.imagej.net/content/repositories/thirdparty//cisd/jhdf5/13.06.2/jhdf5-13.06.2.jar
 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
pietzsch@tomancak-mac-17:~/workspace/scijava-common (master)$


thanks,
Tobias

On Jul 3, 2014, at 10:34 PM, Johannes Schindelin <johannes.schinde...@gmx.de> 
wrote:

> Hi Tobias,
> 
> On Thu, 3 Jul 2014, Tobias Pietzsch wrote:
> 
>> I did try to push to imagej.releases before, because that is where the
>> previous version of jhdf5 was
>> http://maven.imagej.net/content/repositories/releases/cisd/jhdf5/
> 
> Yes, let's not do that again.
> 
>> I did look into the pom-scijava 2.22 and I couldn't find any mention of
>> the "imagej.thirdparty" repository.
> 
> Right, my mistake. We no longer depend on any third-party stuff in
> ImageJ2.
> 
> So yes, putting in the sections you described in your mail into your
> pom.xml should help.
> 
> I also looked into my personal notes how to deploy manually into
> thirdparty and noticed that I use a slightly different URL for these:
> 
>       -Durl=dav:http://maven.imagej.net/content/repositories/thirdparty
> 
> I suppose the "dav:" prefix makes all the difference.
> 
> Ciao,
> Johannes

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
ImageJ-devel mailing list
ImageJ-devel@imagej.net
http://imagej.net/mailman/listinfo/imagej-devel

Reply via email to