Re: downloading resources
any phase before the phase in which you create the bundle... probably generate-resources On 20 January 2011 07:56, Adam Crain acr...@greenenergycorp.com wrote: What phase should I be doing this in to insure that they make it into the bundle? On Wed, Jan 19, 2011 at 9:52 PM, Wayne Fay wayne...@gmail.com wrote: 3) Uncompress it to my projects src/main/resources folder Oh and btw you should probably not be uncompressing to src/main/resources but rather to /target. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
downloading resources
Hi, There are several external shared libraries available via http in tar.gz files that I want to include in a jar. I do not want to check these files into my scm. How do I get maven to 1) Check if they are already present, and if not 2) Download the tarball 3) Uncompress it to my projects src/main/resources folder (I'm distributing shared libraries this way because it's an OSGi bundle that uses JNI libraries) Any advice on combinations of plugins to use? -Adam
Re: downloading resources
1) Check if they are already present, and if not 2) Download the tarball 3) Uncompress it to my projects src/main/resources folder Some plugins you should take a look at: m-dependency-p (probably can do it all) m-assembly-p m-remote-resources-p (probably not an option) m-antrun-p (if you really can't find a good way to do this any other way) make-maven-plugin (part of the codehaus cbuild plugin) [1] [1] http://mojo.codehaus.org/cbuild-parent/cbuild-plugin-parent/make-maven-plugin/unpack-mojo.html Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: downloading resources
3) Uncompress it to my projects src/main/resources folder Oh and btw you should probably not be uncompressing to src/main/resources but rather to /target. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: downloading resources
What phase should I be doing this in to insure that they make it into the bundle? On Wed, Jan 19, 2011 at 9:52 PM, Wayne Fay wayne...@gmail.com wrote: 3) Uncompress it to my projects src/main/resources folder Oh and btw you should probably not be uncompressing to src/main/resources but rather to /target. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: error downloading resources
it seems you have the managed repository connected to an invalid remote repository somehow. Do you have any remote repositories and proxy connectors configured? On 19/01/2008, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, Can anyone tell me what might be causing the error below whenever there is an attempt to download a resource from my Archiva repository? POM, XML and JAR files all fail. The JDK is 1.5.0_11 and the app server is Tomcat 6.0.10. Thanks java.lang.IllegalArgumentException: protocol = http host = null at sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:146) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:764) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:694) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:938) at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:83) at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:94) at org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors.transferSimpleFile(DefaultRepositoryProxyConnectors.java:694) at org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors.transferFile(DefaultRepositoryProxyConnectors.java:542) at org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors.fetchFromProxies(DefaultRepositoryProxyConnectors.java:155) at org.apache.maven.archiva.web.repository.ProxiedDavServer.applyServerSideRelocation(ProxiedDavServer.java:447) at org.apache.maven.archiva.web.repository.ProxiedDavServer.fetchContentFromProxies(ProxiedDavServer.java:354) at org.apache.maven.archiva.web.repository.ProxiedDavServer.process(ProxiedDavServer.java:189) at org.codehaus.plexus.webdav.servlet.multiplexed.MultiplexedWebDavServlet.service(MultiplexedWebDavServlet.java:119) at org.apache.maven.archiva.web.repository.RepositoryServlet.service(RepositoryServlet.java:155) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:189) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:88) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:595) -- Brett Porter Blog: http://www.devzuz.org/blogs/bporter/
Problem downloading resources
Hello, i have problems downloading jars from various repositories, including the repository on the LAN. I always get the message: [WARNING] Unable to get resource from repository The proxy is correctly configured in the settings, some of the are downloaded. The repositories i'm using in my POM are: repository idxdoclet/id nameXDoclet Repository Server/name layoutlegacy/layout urlhttp://xdoclet.sourceforge.net/repository//url /repository repository releases enabledfalse/enabled /releases snapshots / idMaven Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2//url /repository repository idIbiblio/id nameIbiblio/name urlhttp://www.ibiblio.org/maven//url /repository and for as plugin-repos: pluginRepository releases enabledfalse/enabled /releases snapshots / idMaven Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2//url /pluginRepository pluginRepository idcodehaus-plugins/id namecodehaus/name urlhttp://dist.codehaus.org//url snapshots enabledtrue/enabled /snapshots releases enabledtrue/enabled /releases /pluginRepository pluginRepository idmortbay-repo/id namemortbay-repo/name urlhttp://www.mortbay.org/maven2/snapshot/url snapshots enabledtrue/enabled /snapshots releases enabledtrue/enabled /releases /pluginRepository Thanks a lot for your help and greetings from cologne, germany! Matthias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem downloading resources
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Matthias, I always get the message: [WARNING] Unable to get resource from repository (...) repository idIbiblio/id nameIbiblio/name urlhttp://www.ibiblio.org/maven//url ^ This should be http://www.ibiblio.org/maven2 ;-) (or http://maven.sateh.com/repository/ if you prefer an European mirror) Greetings from Saarbrücken ;-) Thorsten -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (MingW32) iD8DBQFEqjrSQvObkgCcDe0RAmOrAKCf1CSZVHK+Q0DasWqQBTtKlG2EYACdGbhp yZ6J6NaxyRlhHoLwkpfmyS0= =SHH6 -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem downloading resources
Thanks for the reply but the problem still occures. Any other idea? Matthias On 7/4/06, Thorsten Heit [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Matthias, I always get the message: [WARNING] Unable to get resource from repository (...) repository idIbiblio/id nameIbiblio/name urlhttp://www.ibiblio.org/maven//url ^ This should be http://www.ibiblio.org/maven2 ;-) (or http://maven.sateh.com/repository/ if you prefer an European mirror) Greetings from Saarbrücken ;-) Thorsten -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (MingW32) iD8DBQFEqjrSQvObkgCcDe0RAmOrAKCf1CSZVHK+Q0DasWqQBTtKlG2EYACdGbhp yZ6J6NaxyRlhHoLwkpfmyS0= =SHH6 -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]