Thread: [Soaplab-users] soaplab2/maven won't build :(
Brought to you by:
marsenger
From: Sirisha G. <si...@my...> - 2009-06-09 16:03:21
|
Hi everyone, I've had to rebuild Soaplab2 as the server hosting my services died. This has now been fixed, but when I've re-downloaded Soaplab2 and try to call any ant tasks (e.g. ant install) I'm running into all sorts of problems. For some reason certain dependencies aren't being fetched, is anyone aware of a problem on the maven side? In particular, I'm getting these errors: [artifact:dependencies] Diagnosis: [artifact:dependencies] [artifact:dependencies] Unable to resolve artifact: Missing: [artifact:dependencies] ---------- [artifact:dependencies] 1) junit:junit:jar:4.3.1 [artifact:dependencies] [artifact:dependencies] Try downloading the file manually from the project website. [artifact:dependencies] [artifact:dependencies] Then, install it using the command: [artifact:dependencies] mvn install:install-file -DgroupId=junit -DartifactId=junit -Dversion=4.3.1 -Dpackaging=jar -Dfile=/path/to/file [artifact:dependencies] [artifact:dependencies] Alternatively, if you host your own repository you can deploy the file there: [artifact:dependencies] mvn deploy:deploy-file -DgroupId=junit -DartifactId=junit -Dversion=4.3.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] [artifact:dependencies] [artifact:dependencies] Path to dependency: [artifact:dependencies] 1) org.soaplab:soaplab:jar:2.1.1 [artifact:dependencies] 2) junit:junit:jar:4.3.1 There are 15 such missing artifacts, the final terminal message is: 15 required artifacts are missing. for artifact: org.soaplab:soaplab:jar:2.1.1 from the specified remote repositories: java.net (https://maven-repository.dev.java.net/repository/), java.net-m2 (http://download.java.net/maven/2), bio.maven.repository (http://biomoby.org/m2repo/), central (http://mirrors.sunsite.dk/maven2) I can connect to all these URLs (except the one for central) in a browser, I've set ANT_OPTS to account for our University firewall, and I've also set the maven proxy in /.m2/settings.xml. If anyone can shed any light on this, I'd be really grateful. Sirisha This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. |
From: Martin S. <mar...@gm...> - 2009-06-09 21:46:34
|
Well, I cannot reproduce the error myself. I have tried to build/install soaplab2 both from the latest release (2.1.1) and from the CVS. I have also first removed junit-4.3.1 from my local maven repository (~/.m2/repository) - just to be sure that this jar file will be downloaded again - and it was). I am not sure what would be now the best scenario to solve the problem, to find the cause of the problem. Can you perhaps try the one for the CVS - to see if problems also happens there for you? Also, please do this: ant clean ant install and send me the full output that went to your screen. Anyone has any more idea please? Martin -- Martin Senger email: mar...@gm...,m.s...@cg... skype: martinsenger |
From: Sirisha G. <si...@my...> - 2009-06-10 09:39:52
|
Hi Martin, I have executed ant clean followed by ant install for the current installation I have, this output is in the attached file soaplab2-cleaninstall-output.txt. I also checked out from CVS and executed ant install, this output is in soaplab2-installfrom-cvs.txt. Hope these will help - if you are unable to reproduce the error, then it seems highly likely this is an issue with the University network :( Having executed the ant tasks above, my ~/.m2/repository still only contains three directories, com, javax and org so for whatever reason many required jars are not being downloaded (though why these three are successfully fetched and others not is a mystery to me). Thanks, Sirisha Martin Senger wrote: > Well, I cannot reproduce the error myself. I have tried to build/install > soaplab2 both from the latest release (2.1.1) and from the CVS. I have > also first removed junit-4.3.1 from my local maven repository > (~/.m2/repository) - just to be sure that this jar file will be > downloaded again - and it was). > > I am not sure what would be now the best scenario to solve the problem, > to find the cause of the problem. Can you perhaps try the one for the > CVS - to see if problems also happens there for you? > > Also, please do this: > > ant clean > ant install > > and send me the full output that went to your screen. > > Anyone has any more idea please? > > Martin > > -- > Martin Senger > email: mar...@gm... > <mailto:mar...@gm...>,m.s...@cg... > <mailto:m.s...@cg...> > skype: martinsenger This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. |