[ImageJ-devel] ImageJ maven again

Tobias Pietzsch pietzsch at mpi-cbg.de
Thu Jul 3 15:58:52 CDT 2014


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 at 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 at tomancak-mac-17:~/workspace/scijava-common (master)$


thanks,
Tobias

On Jul 3, 2014, at 10:34 PM, Johannes Schindelin <Johannes.Schindelin at 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://imagej.net/pipermail/imagej-devel/attachments/20140703/adf23ad9/attachment-0001.pgp>


More information about the ImageJ-devel mailing list