Re: Clogging NoClassDefFoundError
From : http://cwiki.apache.org/WICKET/maven-jetty6-plugin.html *Currently, the best plugin version to use is the 6.0-SNAPSHOT one, so be aware that it is a little out on the edge. The reason for this is that earlier versions of Jetty used commons-logging, which lead to various class-loader issues http://www.qos.ch/logging/classloader.jsp, e.g. org.apache.commons.logging.LogConfigurationException: No suitable Log constructor.../tt*br *Thankfully, the lastest version of the plugin/Jetty6 has switched to SLF4Jhttp://www.slf4j.org/so they've disappeared, but that version of plugin/Jetty6's not yet been released...* On 12/18/06, Jim Downing [EMAIL PROTECTED] wrote: Dennis Lundberg wrote: Hi Jim This is a Commons Logging - Log4J classic. It would take a while to explain it, but the short version is that Commons Logging and Log4J are probably in different classloaders. The best way to trace the source of the problem is to upgrade Commons Logging (temporarily) to version 1.1. That version has a neat diagnostics feature [1] that allows you you to investigate such classloader issues. Turn it on and have a look at the results you get. [1] http://jakarta.apache.org/commons/logging/troubleshooting.html I'd guessed at some class loader problem. I didn't manage to get any of the diagnostics out for the case where I had the problem, but I did find a way of fixing it. Basically, the jetty plugin needs to be proactively configured for logging, as documented at the bottom of http://jetty.mortbay.org/maven-plugin/howto.html. Either specifying the c-logging SimpleLog implementation through a system property, or adding c-logging and log4j to the plugin's dependencies and letting the automatic selection in c-logging do its stuff both work. Thanks to Dennis and Wayne for your help. Best wishes, jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven proxy question
You should gave a look at Mergere Maestro (open source) which include Maven Archiva. Maven Proxy is outdated and no longer under development. On 12/7/06, Christian Goetze [EMAIL PROTECTED] wrote: I am using the maven proxy as described in http://docs.codehaus.org/display/MAVENUSER/Using+Maven+in+a+corporate+environment, but I am observing spurious build failures due to some of the actual remote sites not always responding in a timely manner. Is there a way to configure maven proxy to not fail, but to simply send the cached version instead? Should I just set the cache timeout to some really large value? What I would like, though, is that it does try to get an update, but not fail if the update fails? -- cg - 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]
Re: Quality Dashboard
I went to a conference in Montreal today and from what Vincent said, it's going to be based on XWiki. I'll let him talk more about it by himself :) On 9/7/06, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, reading through http://idisk.maven.org/jvanzyl/Public/presos/Feynman.pdf, there is talk of Vincent's Dashboard. Is this a plugin that is going to be released soon? I think many users would like a quality dashboard that can generate graphs of your metrics (PMD, unit test pass rate, code coverage, ...) over time. regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maintenance branch
Hi all, My question concerns the release plugin. I have used it several times in the past time and it works great. However, my problem is that after having tagged the release, I need to create a maintenance branch. So far so good, no problem to do it manually. But how do I update my poms versions ? Manually? For instance, let's say I am releasing the 1.0 version, I would like my maintenance pom version to be 1.0.1-SNAPSHOT. I am not the only one to use this kind of scheme so I was wondering if anyone out there had a brilliant solution to propose. Thank! Alexandre Poitras - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ftp'ing an ear file
MyFaces has the wagon plugin : http://www.ibiblio.org/maven2/org/apache/myfaces/maven/wagon-maven-plugin/ I don't know where you can't find any doc although it is quite simple to use. On 10/16/06, Jeff Mutonho [EMAIL PROTECTED] wrote: Is there a plugin to sftp(to a remote machine) an ear/war file after a build? -- Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - 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]
Re: Can anyone help me to deploy from maven to oas 10 please
Cargo doesn't support yet oc4j 10.1.3. On 9/19/06, Mick Knutson [EMAIL PROTECTED] wrote: That would be great. Would love to see it. I just really want to stop using the web console. Too many issues On 9/18/06, Wayne Fay [EMAIL PROTECTED] wrote: I actually use Maven to package my EAR, and then Ant to actually deploy it. But you could certainly use something like Cargo to deploy it from Maven, I'd expect. I just haven't ever had time/reason to bother implementing it. ;-) If you would like, I can certainly send you instructions on deploying via Ant... Wayne On 9/18/06, Mick Knutson [EMAIL PROTECTED] wrote: I am just starting to use oas 10.1.3 and we want to stop using the web console and start deploying with maven. Can anyone help us on how to do this? -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Managing Repositories
I think you are trying to control dependencies and not plugins right? So in order to do that, you need two different repositores. One for dependencies and one for plugin. Control access to the dependency one and allow free access to the plugin one. On 9/16/06, Andreas Guther [EMAIL PROTECTED] wrote: Hi, I am struggling with the question on how to maintain a controlled internal repository with Maven 2. We want to have full control over the downloaded dependencies and configured Maven to use as central repository our internal repository server. With this configuration no external repository is used. In my settings.xml file I have configured Ibiblio as external repository server and activate the profile whenever I have to use components with dependencies that are not in our internal repository. The problem I have is that getting the internal/central repository updated with the new dependencies is rather a tedious and time intensive task, especially if for example a maven plug-in is added that comes with lots of transient dependencies. My question is: Ho do other teams deal with that problem? Are there tools that list differences between two different repositories (local and internal)? I used Maven Archiva as proxy repository but that does not give us the control over what gets added to the repository. Thanks in advance for any hint and suggestion. Andreas - 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]
Interesting news on a Maven bundle for Spring
http://blog.interface21.com/main/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-jdepend-plugin for M2 ?
http://mojo.codehaus.org/jdepend-maven-plugin/usage.html On 9/15/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote: Dear. Where can I find working maven-jdepend-plugin for M2, I found one under the following URL : http://www.ibiblio.org/maven2/maven/maven-jdepend-plugin/ but version 1.4 1.5 - throwing NPE during execution of this plugin from reporting section in pom.xml. Can somebody please tell if there is any working version of this plugin is available ? Thanks for pointers! Regards. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache snapshot repository use unique versions
Why is the option uniqueVersion enabled when you deploy plugins to the apache snapshot repository? This feature doesn't work and so I can't use a snapshot version of a plugin without installing it myself on a daily basic. I find it very annoying and frustrating. Any comments? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with maven repository
I remember there was a issue with the latest jetty pom but I could be wrong. On 9/14/06, HUGOT Franck [EMAIL PROTECTED] wrote: Maven2 fails to download http://dist.codehaus.org/org.mortbay.jetty/jars/servlet-api-2.5-6.0. I don't know why M2 is looking for the file there, since the file is on Ibiblio at http://www.ibiblio.org/maven2/org/mortbay/jetty/servlet-api/2.5-6.0.0beta12/ , and this is already cached in our Maven Proxy (which mirrors central). He's using the same settings.xml file as everyone else, which just mirrors central with the Maven Proxy. I copied the error below. Anyone have an idea as to why Maven2 is looking in the wrong place? Downloading: http://dist.codehaus.org/org.mortbay.jetty/jars/servlet-api-2.5-6.0 .0beta12.jar [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Error transferring file org.mortbay.jetty:servlet-api-2.5:jar:6.0.0beta12 from the specified remote repositories: central (http://repo1.maven.org/maven2), codehaus (http://dist.codehaus.org), apache.snapshots (http://svn.apache.org/maven-snapshot-repository), snapshots (http://snapshots.maven.codehaus.org/maven2) Path to dependency: 1) org.apache.maven.plugins:maven-site-plugin:maven-plugin:2.0-beta-5 2) org.mortbay.jetty:jetty:jar:6.0.0beta12 3) org.mortbay.jetty:servlet-api-2.5:jar:6.0.0beta12 Thanks a lot. ~ Franck HUGOT SOFINCO - Groupe Credit Agricole Service Urbanisation Des Développements DSI/PAT/DAOS/SUDD Tel : (+33) 01 60 76 54 66 [EMAIL PROTECTED] ~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m204] Help getting Maven to run with JDeveloper 10.x please...???
There is a Maven plugin available in the myfaces trinidad project. You have to build it yourself but work great. On 8/22/06, Mick Knutson [EMAIL PROTECTED] wrote: I am trying to add my maven application to JDeveloper workspace. Can anyone help me? When I import the ear file into JDeveloper, it just does not look the same? --- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: https proxy support?
I have the same exact problem, anyone has find a solution?? On 5/17/06, Franz Fehringer [EMAIL PROTECTED] wrote: Only the first proxy is considered it seems. If i exchange the two proxies (https first http second) the http connects start to fail. How do i configure i proxy for both http amd https? Greetings Franz Franz Fehringer schrieb: Hello, We use the same proxy host and port both for http and https. With Maven 2.0.4 i am able to dynamically download plugins over http but not over https. In the latter case i get Caused by: java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.Socket.connect(Socket.java:507) at java.net.Socket.connect(Socket.java:457) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:365) at sun.net.www.http.HttpClient.openServer(HttpClient.java:477) at sun.net.www.protocol.https.HttpsClient.init(HttpsClient.java:278) at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:335) The file to be downloaded is Downloading: https://maven-repository.dev.java.net/repository/com.sun.xml.bind/poms/jaxb-impl-2.0.pom and my .m2/settings reads settings localRepository//winpc229/supply/Maven2/Repository/localRepository proxies proxy activetrue/active protocolhttp/protocol hostproxy/host port81/port /proxy proxy activetrue/active protocolhttps/protocol hostproxy/host port81/port /proxy /proxies /settings What is the problem and how can it be resolved? Thanks Franz - 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]
Re: https proxy support?
Ok I got it : http://jira.codehaus.org/browse/WAGONHTTP-6 On 7/26/06, Alexandre Poitras [EMAIL PROTECTED] wrote: I have the same exact problem, anyone has find a solution?? On 5/17/06, Franz Fehringer [EMAIL PROTECTED] wrote: Only the first proxy is considered it seems. If i exchange the two proxies (https first http second) the http connects start to fail. How do i configure i proxy for both http amd https? Greetings Franz Franz Fehringer schrieb: Hello, We use the same proxy host and port both for http and https. With Maven 2.0.4 i am able to dynamically download plugins over http but not over https. In the latter case i get Caused by: java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.Socket.connect(Socket.java:507) at java.net.Socket.connect(Socket.java:457) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:365) at sun.net.www.http.HttpClient.openServer(HttpClient.java:477) at sun.net.www.protocol.https.HttpsClient.init(HttpsClient.java:278) at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:335) The file to be downloaded is Downloading: https://maven-repository.dev.java.net/repository/com.sun.xml.bind/poms/jaxb-impl-2.0.pom and my .m2/settings reads settings localRepository//winpc229/supply/Maven2/Repository/localRepository proxies proxy activetrue/active protocolhttp/protocol hostproxy/host port81/port /proxy proxy activetrue/active protocolhttps/protocol hostproxy/host port81/port /proxy /proxies /settings What is the problem and how can it be resolved? Thanks Franz - 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]
Re: maven site into Trac?
I'm also very interested :) On 7/26/06, dan tran [EMAIL PROTECTED] wrote: On 7/26/06, Andrew Williams [EMAIL PROTECTED] wrote: :) I am the dev behind dev.rectang.com and can tell you it is not manually done :) I have a trac plugin that is almost ready for a release that does it for me. step 1) install plugin, tell it where the site is generated to (on the filesystem) step 2) set your site to use the maven-trac-skin (or whatever I call it when it is released) and deploy it into the expected area. Shall I announce here when it is ready perhaps? please do -D Andrew Valerio Schiavoni wrote: hello everyone, any one knows how to 'merge' the maven generated website within Trac, as it's done here: http://dev.rectang.com/projects/javautil/maven/ i think they did it 'manually'..but maybe not. thanks, valerio - 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]
Re: Maven Build Notification
You could also use continuum manual build functionnalities. Just don't set any scheduled build if you don't need to. On 7/25/06, Thomas Van Buskirk [EMAIL PROTECTED] wrote: Thank you gscokart and ivolimmen ... I'll check JIRA for the issue. It would be nice to be able to determine the actual project that broke through Maven w/o CI (whereas if I use antrun or just have a script that executes on build failure, I would not have that ability). I'll keep searching ... Thanks again! Tom [EMAIL PROTECTED] 07/24/06 11:54 PM You can use the antrun plugin to send mail at a given phase of your build. But I don't think you can have this when your build fails. When the maven build fail, it stop. I don't think there is any listener. Did you search in jira to see if there is a feature request? If not, you should maybe introduce it. Gilles -- View this message in context: http://www.nabble.com/Maven-Build-Notification-tf1995888.html#a5480753 Sent from the Maven - Users forum at Nabble.com. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deploying jars without version information
What do you means by deploting? Deploying on a maven repository or on a application server ? In the first case, the answer is no because Maven needs those metadatas to be able to manage dependencies. In the other case, yes it's possible just change the name in your war/jar plugin configuration section. On 7/25/06, LaCasse, John [EMAIL PROTECTED] wrote: Hi, Does anybody know if you can have Maven deploy the jars that end up in webapp/WEB-INF/lib without the version information in the filename? Thanks, Jpl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using maven to create an executable
Just create a jar and fill its manifest file correctly. On 7/10/06, Louisa Nilsennygaard [EMAIL PROTECTED] wrote: i'm new to maven, but i've been getting on really well with it thus far. however, i now want to generate an executable file for an application i am developing. at the moment i use the Eclipse Product export wizard to package and export my application. is there a plugin available for maven which would accomplish something similar, or some other way to integrate this process into maven? many thanks louisa - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven2 tutorial in french
thk for the hint! On 7/10/06, Arnaud Bailly [EMAIL PROTECTED] wrote: Hello, For all french reading people on this list and out there, I am pleased to announce the online publication of a translation/adaptation in our language of peopleware's maven 2 tutorial. It is available at the following address: http://www.oqube.com/formations/maven/index.html The original document is available at: http://cvs.peopleware.be/training/maven/maven2/ I have added some translations from maven's guides and informations from mergere's book, POM demystified and confluence. As usual, comments and bug reports are welcome. -- OQube software engineering \ génie logiciel Arnaud Bailly, Dr. \web http://www.oqube.com - 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]
Re: Disecting a webapp?
Can't you create more than one war and add them to an ear archive? If it's not a valid strategy in your case than I guess you can use the dependency plugin unpack goal (http://mojo.codehaus.org/dependency-maven-plugin/) or you can use the war merging feature of Maven (don't know how it works but I know it exists). In my case, I use the dependency plugin to unpack resources (images, css, ...) dependencies. Note those aren't limitations of Maven but of JEE since each web modules must be packaged as an individual war and of the web because there isn't any standard resources archive format. Hope it helps! On 7/6/06, Alex Shneyderman [EMAIL PROTECTED] wrote: Thanks, guys for your responses. But ... I think I was not understood correctly. Let me clarify a bit here. The problem is not so much to separate layers into modules (it seems that's what examples demonstrate), but how to break up a big web application into smaller modules. The module's boundary is not that of the layer (business, webapp, core, etc). Web application itself needs to be broken onto smaller submodules. So core would have all the templates, js and css files and will be a webapp on its own, the child module would have concrete pages that utilize those templates and styles and in combination with the core module would constitute complete sub-application of a bigger app. When I develop I would like to checkout just one module and a few modules that this module depends on. Of course I would be able to deploy this one small module (and all of its dependencies), but it will not be the site itself, just one little portion. It also makes creation of the new module easier. Just declare dependencies and create a simple WAR structure. When I am happy with the little module I worked on, I will want to deploy it to production. This is when I will have to merge all the configuration files (web.xml comes to mind) and directory structures but only on creation of the WAR no need for physical merge on the system someplace. I am not sure if this made my question any clearer :-) On 7/6/06, Tamás Cservenák [EMAIL PROTECTED] wrote: Hi Alex, a quick example for this, see here: https://is-micro.myip.hu/trac/ismicro-commons/browser/trunk/ismicro-proximity Three modules: px-core (j2ee and transport independent), px-core-maven (maven bindings for core, till no sign of webapp) and px-webapp. The module separation should be natural and/or logical -- whetever it means :) In my practice it means, produce ONLY ONE ARTIFACT, be as small and as simple as it can (but naturally keep the overall module count manageable). Maven generated site from these sources here: http://proximity.abstracthorizon.org/ ~t~ On 7/6/06, ben short [EMAIL PROTECTED] wrote: Also have a look at the better builds with maven book, there is an example in there. On 7/6/06, ben short [EMAIL PROTECTED] wrote: Create a project for each of the core module and the children. then the webapp can pull them in as dependancies. On 7/6/06, Alex Shneyderman [EMAIL PROTECTED] wrote: How does one disect a web app into many modules but deploy it as one web app? This is what I mean: We have a web application that is quite big. We can identify many modules of it. There is a few core modules, and a bunch of child modules. Practically all children are dependendent on core modules, some child modules depend on other child modules. The modularization is done in purely logical way. Meaning, we still have one maven project for the webapp. I was wondering if anyone can suggest a way to break those modules up into seprate physical modules while keeping the ability to create a unifying webapp? Is it even possible with Maven 1 or 2? -- Thanks, Alex. - 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] -- Thanks, Alex. - 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]
Re: [m2] Plugin Version in POM
Properties would be a very good and simple solution because a child project can always override them and provide its own values if it really needs too. On 7/4/06, Hilco Wijbenga [EMAIL PROTECTED] wrote: On 7/4/06, leahpar [EMAIL PROTECTED] wrote: = maybe you should add version2.0/version inthe report section too Yeah, that does the trick. My idea was to have a super POM where the plugin (and dependency) versions would be locked down so when I'm ready to move to a newer version I can do so by changing the version in just one place. This would allow for a completely reproducible build. The above fix still forces me to change the version in (at least) two places. Clearly, I'm not going about this the Maven way. Should I use a profile? Should I create a bunch of properties, one for each of the plugins I need and then use those properties to determine the versions in the child POMs? How does one do this? Cheers, Hilco - 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]
Re: Depedency on jdbc-stdext-2.0.jar fails
It is useful when you generate an IDE project and you want to have access to your libraries sources. On 7/3/06, Brad O'Hearne [EMAIL PROTECTED] wrote: Thanks Alexandre. I missed the part about the intention being only to provide the location of the download. I am still curious though what the sources jars are there for, and how they can be used. B Alexandre Poitras wrote: http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html On 7/2/06, Brad O'Hearne [EMAIL PROTECTED] wrote: I have a dependency on the jdbc-stdext-2.0.jar. In my pom.xml, I have the following: dependency groupIdjavax.sql/groupId artifactIdjdbc-stdext/artifactId version2.0/version /dependency But when building, I get: 7/2/06 6:01:47 PM MST: [WARN] Unable to get resource from repository central (http://repo1.maven.org/maven2) 7/2/06 6:01:47 PM MST: Missing: -- 1) javax.sql:jdbc-stdext:jar:2.0 Try downloading the file manually from: http://java.sun.com/products/jdbc/download.html Then, install it using the command: mvn install:install-file -DgroupId=javax.sql -DartifactId=jdbc-stdext \ -Dversion=2.0 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) com.brad.app:App:war:0.1-SNAPSHOT 2) javax.sql:jdbc-stdext:jar:2.0 -- 1 required artifact is missing. for artifact: com.brad.app:App-0.1-SNAPSHOT.war I noticed on ibiblio that the jar found at http://www.ibiblio.org/maven2/javax/sql/jdbc-stdext/2.0/ is actually jdbc-stdext-2.0-sources.jar. A couple questions: 1) Is this jar equivalent to the jar I am attempting to get? 2) If the answer to 1) is yes, how can I properly specify that I need a sources jar in my pom.xml. Thanks, Brad - 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] - 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]
Re: Pregoal
Just put your resources files in src/main/resources/appcontext and everything will work fine. No need to copy. On 7/3/06, jerome lacoste [EMAIL PROTECTED] wrote: On 7/3/06, Jeff Mutonho [EMAIL PROTECTED] wrote: On 7/3/06, Jeff Mutonho [EMAIL PROTECTED] wrote: On 7/3/06, jerome lacoste [EMAIL PROTECTED] wrote: On 7/3/06, Jeff Mutonho [EMAIL PROTECTED] wrote: Is there an equivalence of doing a file copy from one location to another as one could do in M1 , as a pregoal? You can probbaly use the antrun plugin to make the copy and attach the plugin's execution to the phase before the one that requires your file to be in the correct location. Jerome Thanks.Basically what I wish to do is to copy some spring xml config files into my WEB-INF/appcontext directory, before the war file is created.Should I put the ant task in the process-resources phase? I added the following to my pom : plugin artifactIdmaven-antrun-plugin/artifactId executions execution phaseprocess-resources/phase configuration tasks copy todir=WebContent/WEB-INF/appcontext fileset dir=${ant.common.eportal.services.dir}/src/spring/context includes=**/*.xml / fileset dir=${ant.common.eportal.messaging.dir}/src/spring/context includes=**/*.xml / fileset dir=${ant.common.eportal.webservices.dir}/src/spring/context includes=**/*.xml / /copy /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin and then have the resource defined af : resource filteringtrue/filtering directory../eportal-support/ant/directory /resource where my ant-property.properties file is located and the varibles ant.common.eportal.services.dir , ant.common.eportal.messaging.dir , ant.common.eportal.webservices.dir are defined in that property file.Running mvn install fails with the message : [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error executing ant tasks Embedded error: D:\M2-WORK\${ant.common.eportal.services.dir}\src\spring\context not found. [INFO] [INFO] For more information, run Maven with the -e switch i.e ${ant.common.eportal.services.dir} is not being evaluated.How can i get these variables to be evaluated before they start being used? By defining them again as POM properties, maybe in a profile ? It seems to me that you are encountering problems because you are trying to use maven the same way you use ant. Maybe you are just in the middle of a migration from ant to maven ? So you are perhaps trying to find a solution to the wrong problem. Do you really need to make ant.common.eportal.services.dir a property ? Can't you hardcode it until your conversion is done ? Can't you keep your xml files in each of your sub module jars (services, messaging...) and extract them from there (that way you don't need to remember where they are stored locally) ? BTW don't copy your files under your source directory, better copy them to your target resource directory. Cheers, Jerome - 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]
Re: Depedency on jdbc-stdext-2.0.jar fails
http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html On 7/2/06, Brad O'Hearne [EMAIL PROTECTED] wrote: I have a dependency on the jdbc-stdext-2.0.jar. In my pom.xml, I have the following: dependency groupIdjavax.sql/groupId artifactIdjdbc-stdext/artifactId version2.0/version /dependency But when building, I get: 7/2/06 6:01:47 PM MST: [WARN] Unable to get resource from repository central (http://repo1.maven.org/maven2) 7/2/06 6:01:47 PM MST: Missing: -- 1) javax.sql:jdbc-stdext:jar:2.0 Try downloading the file manually from: http://java.sun.com/products/jdbc/download.html Then, install it using the command: mvn install:install-file -DgroupId=javax.sql -DartifactId=jdbc-stdext \ -Dversion=2.0 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) com.brad.app:App:war:0.1-SNAPSHOT 2) javax.sql:jdbc-stdext:jar:2.0 -- 1 required artifact is missing. for artifact: com.brad.app:App-0.1-SNAPSHOT.war I noticed on ibiblio that the jar found at http://www.ibiblio.org/maven2/javax/sql/jdbc-stdext/2.0/ is actually jdbc-stdext-2.0-sources.jar. A couple questions: 1) Is this jar equivalent to the jar I am attempting to get? 2) If the answer to 1) is yes, how can I properly specify that I need a sources jar in my pom.xml. Thanks, Brad - 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]
Re: Deploying the site
You can also use file:. On 6/30/06, Martin Gilday [EMAIL PROTECTED] wrote: You will need to add a site element under distribution management in your POM. From what I understand you cannot use FTP to deploy the site, as Wagon does not support directory uploading, so I am using SCP. POM.xml-- distributionManagement site idwebdev-site/id urlscp://10.0.0.3/var/www/html/projects//url /site /distributionManagement - You will also need to add your login details to the site in either your local settings.xml or in a profile settings.xml- servers server idwebdev-site/id usernamemyUsername/username passwordmyPassword/password filePermissions664/filePermissions directoryPermissions775/directoryPermissions /server /servers Then run mvn site:deploy. Hope this helps. - Original message - From: Srinivasan, Nithya (Cognizant) [EMAIL PROTECTED] To: users@maven.apache.org Date: Fri, 30 Jun 2006 10:49:21 +0530 Subject: Deploying the site Hi, Am Nithya, I am a fresh user of maven.I would like to know which url should I give in pom.xml when I deploy my site using mvn site-deploy I would be glad if any of you could help with this issue Thanks and regards Nithya This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - 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]
Re: assembly plugin problem
Should help you : http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html On 6/30/06, nazim chakik [EMAIL PROTECTED] wrote: Hello, I use the maven's assembly plugin and I have the following problem: I have several projects which are modules of one main project containing the pom root. Each module has its own dependencies , When I run the command: (mvn assembly:assembly) on the root pom, I recover the sub projects's .jar but without dependences. If you have a good documentation about assembly or an example, that would help me . thank you in advance PS:I use - artifactIdmaven-assembly-plugin/artifactId version2.2-SNAPSHOT/version Nazim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] individual log4j config in team environment?
I think your first idea was the best one. Just use a different profile at deploy time to change the log4j.properties filename. If you want to stick with your second idea, a basic ant task should do the trick. On 6/30/06, Adam Hardy [EMAIL PROTECTED] wrote: Hi, I would like to configure our m2 setup so that each developer can work with his/her own log4j.properties file, in testing and in deploy. One approach I looked at meant filtering the web.xml and appending the username to the log4j.properties setting, but this requires log4j.properties files for every user going into the final war, which I would like to avoid. Is there a plugin that will do copies, i.e. taking the username-log4j.properties, renaming it to 'log4j.properties' and moving it to the WEB-INF/classes dir? I can then exclude the 'username-lo4j.properties' files. Thanks, Adam - 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]
Re: warSourceDirectory
But it still won't work when I want to test with WTP. Anyway, my patch seems to fix the problem. On 6/28/06, Pete Marvin King [EMAIL PROTECTED] wrote: perhaps you can do a war overlay, add the war to your depedency list with a scope of runtime. you might need to rename it to *.war, the war plugin uses the extension to determine if it will do a war overlay. Alexandre Poitras wrote: To those who are facing the same issue, I just submitted a patch that seems to fix the problem. Hope it helps. On 6/27/06, Alexandre Poitras [EMAIL PROTECTED] wrote: This is what I'm already doing. The problem is that the WTP .component file is not generated correctly since the files aren't placed in the war source directory. Basically, I'm just trying to unpack some css files from a resources jar files and I don't want to extract them under the src directory. On 6/27/06, Mike Perham [EMAIL PROTECTED] wrote: If you are generating them, why are you considering them source in the first place? Why not just generate them straight into target/artifactId-version? That's where everything is copied to so it can be jarred into a war. -Original Message- From: Alexandre Poitras [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 1:52 PM To: Maven Users List Subject: warSourceDirectory Why is the War plugin supporting only one war source directory instead of a list? It bothers me because I need to generate some html sources files and of course I don't want to mess with my src directory. Any hint? I think I'll try to develop a patch. - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
warSourceDirectory
Why is the War plugin supporting only one war source directory instead of a list? It bothers me because I need to generate some html sources files and of course I don't want to mess with my src directory. Any hint? I think I'll try to develop a patch. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: warSourceDirectory
I thought webResources were copied under WEB-INF/classes. Should fix my problem. Thank a lot!!! On 6/27/06, Wendy Smoak [EMAIL PROTECTED] wrote: On 6/27/06, Alexandre Poitras [EMAIL PROTECTED] wrote: Why is the War plugin supporting only one war source directory instead of a list? It bothers me because I need to generate some html sources files and of course I don't want to mess with my src directory. Any hint? I think I'll try to develop a patch. Would webResources help here? While resources end up under WEB-INF/classes, the new webResources get copied in starting at the 'top' of the webapp. -- Wendy - 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]
Re: warSourceDirectory
Ok it works fine except with WTP. The eclipse plugin doesn't seem to add corresponding wb-resources entries in the settings/.component file. There is already a Jira issue on this one : http://jira.codehaus.orgbrowse/MECLIPSE-111 On 6/27/06, Alexandre Poitras [EMAIL PROTECTED] wrote: I thought webResources were copied under WEB-INF/classes. Should fix my problem. Thank a lot!!! On 6/27/06, Wendy Smoak [EMAIL PROTECTED] wrote: On 6/27/06, Alexandre Poitras [EMAIL PROTECTED] wrote: Why is the War plugin supporting only one war source directory instead of a list? It bothers me because I need to generate some html sources files and of course I don't want to mess with my src directory. Any hint? I think I'll try to develop a patch. Would webResources help here? While resources end up under WEB-INF/classes, the new webResources get copied in starting at the 'top' of the webapp. -- Wendy - 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]
Re: warSourceDirectory
This is what I'm already doing. The problem is that the WTP .component file is not generated correctly since the files aren't placed in the war source directory. Basically, I'm just trying to unpack some css files from a resources jar files and I don't want to extract them under the src directory. On 6/27/06, Mike Perham [EMAIL PROTECTED] wrote: If you are generating them, why are you considering them source in the first place? Why not just generate them straight into target/artifactId-version? That's where everything is copied to so it can be jarred into a war. -Original Message- From: Alexandre Poitras [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 1:52 PM To: Maven Users List Subject: warSourceDirectory Why is the War plugin supporting only one war source directory instead of a list? It bothers me because I need to generate some html sources files and of course I don't want to mess with my src directory. Any hint? I think I'll try to develop a patch. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: warSourceDirectory
To those who are facing the same issue, I just submitted a patch that seems to fix the problem. Hope it helps. On 6/27/06, Alexandre Poitras [EMAIL PROTECTED] wrote: This is what I'm already doing. The problem is that the WTP .component file is not generated correctly since the files aren't placed in the war source directory. Basically, I'm just trying to unpack some css files from a resources jar files and I don't want to extract them under the src directory. On 6/27/06, Mike Perham [EMAIL PROTECTED] wrote: If you are generating them, why are you considering them source in the first place? Why not just generate them straight into target/artifactId-version? That's where everything is copied to so it can be jarred into a war. -Original Message- From: Alexandre Poitras [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 1:52 PM To: Maven Users List Subject: warSourceDirectory Why is the War plugin supporting only one war source directory instead of a list? It bothers me because I need to generate some html sources files and of course I don't want to mess with my src directory. Any hint? I think I'll try to develop a patch. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] configuring site:stage-deploy
Hi Wendy, I got this from an older mail. Maybe you have the same problem : For anyone interested: I had to set PasswordAuthentication to 'yes' in /etc/ssh/sshd_config as it defaults to 'no'. Seems to be happy now. On 6/19/06, Wendy Smoak [EMAIL PROTECTED] wrote: When using 'mvn site:stage-deploy -DstagingSiteURL=...' I'm being prompted for an scp password. How do I either - on the command line, specify a server id so that it will use the private key configured in settings.xml or - in pom.xml, configure a different url for staging (and not the default ${project.distributionManagement.site.url}/staging) It seems like site needs stagingURL * http://maven.apache.org/ref/current/maven-model/maven.html Thanks, Wendy - 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]
Re: [m2] configuring site:stage-deploy
Just to confirm, I just tried this solution and it fix the problems. On 6/26/06, Alexandre Poitras [EMAIL PROTECTED] wrote: Hi Wendy, I got this from an older mail. Maybe you have the same problem : For anyone interested: I had to set PasswordAuthentication to 'yes' in /etc/ssh/sshd_config as it defaults to 'no'. Seems to be happy now. On 6/19/06, Wendy Smoak [EMAIL PROTECTED] wrote: When using 'mvn site:stage-deploy -DstagingSiteURL=...' I'm being prompted for an scp password. How do I either - on the command line, specify a server id so that it will use the private key configured in settings.xml or - in pom.xml, configure a different url for staging (and not the default ${project.distributionManagement.site.url}/staging) It seems like site needs stagingURL * http://maven.apache.org/ref/current/maven-model/maven.html Thanks, Wendy - 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]
Re: How to get the latest STABLE version of a library dependency automatical
I don't think it is a good idea. You should always manually upgrade your dependencies to see if nothing break in your application. So in short, I don't think there is a way to do that and I don't think many people would be interested in this solution. On 6/26/06, Jimisola Laursen [EMAIL PROTECTED] wrote: Hi! I've been looking for a way to specify that the latest STABLE version of a library (dependency) should be used automatically. However, I can't seem to find any information on this. Is this not possible? The Dependency Version Ranges doesn't solve the problem for me since it sets with the lowest version satisfying the range. This guy had the same question about a year ago, but it doesn't look promising: http://www.nabble.com/newbie-ques%3A-downloading-latest-stable-jars-t74577.html#a202750 Regards, Jimisola -- View this message in context: http://www.nabble.com/How-to-get-the-latest-STABLE-version-of-a-library-dependency-automatical-t1851718.html#a5055636 Sent from the Maven - Users forum at Nabble.com. - 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]
Re: Alter package lifecycle
You can't do that. What is your use case? *The only possible solution I could see is to link a goal to a lifecycle phase but I think it would be better to tell us your needs first. On 6/25/06, Kevin Menard [EMAIL PROTECTED] wrote: Hi, I'd like to defer the running of my tests until after my WAR has been built. How do I go about changing the package lifecycle? I've scoured the book and the Web, and thus far I haven't been able to find anything. So, any guidance would be greatly appreciated. Thanks, Kevin - 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]
Re: Alter package lifecycle
Ah then everything is fine! Just link some goals to the integration-test phase. The test phase is only for unit tests. integration-test : process and deploy the package if necessary into an environment where integration tests can be run. http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html On 6/25/06, Kevin Menard [EMAIL PROTECTED] wrote: On Sun, 25 Jun 2006 21:47:37 -0400, Alexandre Poitras [EMAIL PROTECTED] wrote: You can't do that. What is your use case? *The only possible solution I could see is to link a goal to a lifecycle phase but I think it would be better to tell us your needs first. I have a set of tests that test my Web app using HTMLunit. In order to test the pages, the WAR must already be built. So, it'd be beneficial to package first, then run the tests afterward. -- Kevin - 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]
Re: JSP compiler plugin
Sorry if this is a banal question (I haven't done jsp precompiling yet), so the jsp's get precompiled and exposed as servlets in the web.xml? Why?? In production it is usally the recommended approach. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP compiler plugin
Just to complete my answer, usually you would pack your precompiled jsp pages in a jar respecting a naming convention according to your application server so it can link them as servlets. I prefer to link my pages as servlet at compile time to be sure my package will work on any app server. Anyway, I hate JSP. I much prefer Veloticy or Facelets in the JSF world :) On 6/23/06, Alexandre Poitras [EMAIL PROTECTED] wrote: Sorry if this is a banal question (I haven't done jsp precompiling yet), so the jsp's get precompiled and exposed as servlets in the web.xml? Why?? In production it is usally the recommended approach. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to implement an organisational super pom ?
You confuse multi-modules project and super pom. A super pom doesn't need to declare any modules. It is an independant project which has its own version and distributed in your internal repository so that any project can download whenever it needs it. It should fix your problems. On 6/20/06, Dhananjay Nene [EMAIL PROTECTED] wrote: Although the question wasn't addressed to me, I have run into some problems (hence the question in the first place) so just adding my 2c. If the super pom modeled as a top level module (ie. each project declares it as a parent), I get into a lot of issues when using the release plugin for the individuaal projects (You can just try it out to see what I mean). One of the issues I also get into is that the cvs repository needs to be structured with the superpom module at the top and each of the projects as a sub directory in the cvs module representing the super pom which is not exactly the most convenient mechanism for conducting version control across multiple independent projects. Having said that since maven itself does use a super pom which does not suffer from these limitations hopefully there's some way to implement - but I couldn't figure it out so far. Dhananjay Roald Bankras wrote: Nathan What kind of problems did you ran into? I'm currently working on a super pom for my company, but haven't seen any problems yet. Roald Bankras Software Engineer JTeam b.v. -Original Message- From: Beyer,Nathan [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 20, 2006 12:29 AM To: Maven Users List Subject: RE: How to implement an organisational super pom ? From my adventures in trying to do this, I've found that it's just not a good idea in the current state of things. There are some things that can be done with dependencyManagement and pluginManagement, but that only goes so far. My suggestion is to standardize things via archetypes to generate POMs in a certain fashion. For common automated build stuff use profile settings for the build user. -Nathan -Original Message- From: Dhananjay Nene [mailto:[EMAIL PROTECTED] Sent: Monday, June 19, 2006 1:34 PM To: Maven Users List Subject: How to implement an organisational super pom ? I need to implement a common pom which can be inherited by a large number of projects. However the common pom does not reflect a top level module and does not have any sources or artifacts (since it is used only for inheritance). My attempts so far lead me to believe that maven requires me to assign a version to the common pom, and the release management workflow tries to checkout a project corresponding to top level pom which obviously fails in my case. How can I implement a common pom (like the maven super pom) so that the common pom is used only for inheritance, and each pom which refers to it (as a parent ??) is in fact a top level application (and not a module/sub module) ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. --- - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Top-level POM behaviour
Modules are meant to be built from the top project so you can work on all of them at the same time. Don't try to build them separatly because it won't work. If it's not what you want and you prefer compiling each project separately, you should stick to normal SNAPSHOT dependencies. On 6/22/06, Max Cooper [EMAIL PROTECTED] wrote: Okay, after looking at your POMs, this is what I think is happening... 1. When you build project A, maven probably uses the relativePath in the parent section to locate the parent POM (rather than looking in the local repository). 2. When you build project B, maven uses the relativePath to find B's parent. But during dependency processing, maven looks at project A's POM and ignores the relativePath (since maven does not know where A was built from, and thus cannot resolve the relative path). Maven must be able to locate Top's POM in the repo, but it isn't there, so the build fails. I think that you ultimately must install the parent POM before building modules that reference it. If you wish, you can separate the top and parent: top/ + parent + A + B + C top will list parent, A, B, and C as modules. parent will be the parent for A, B, C, and maybe even top. Side note: Perhaps the parent/relativePath element is most useful (and least dangerous) in this context, so that top can reference parent. If you install top it will necessarily also install parent. This eliminates the chance for a confusing missing dependency problem like the one that lead to this email thread. -Max Lars Gråmark wrote: I'm sorry if you didn't understand my previous mail :) Anayway, I attached the POMs in my other mail and as you can see project A do have a parent dependency to the top POM. /Lars On Thu, 2006-06-22 at 09:41 +0200, Lars Gråmark wrote: Hej, kontrollera gärna att jag inte skickar nåt jag inte borde skicka. Det är lätt att missa nåt. mvh Lars On Wed, 2006-06-21 at 14:47 -0700, Max Cooper wrote: I would expect that running install on module A would fail if it really had a dependency on the top-level POM, and the top-level POM was not available in the local repo. You can think of your project as having four modules, A B C and Top. The dependencies you described are: A, B, C depend on Top B, C depend on A Based on this dependency structure, you should have to install project Top before any of the others will build individually. However, based on your reports of the build behavior, it doesn't sound like A depends on Top. Does the pom.xml file for A really have a parent section that refers to Top? -Max Lars Gramark wrote: Hello, I get a Failed to resolve artefact message when I'm installing one of my sub-projects. Here is the background: We have three projects A, B and C and there is a dependency from B = A and from C = A. Project A do not have any dependencies to any other project but all three projects are organized by a top-POM with the id product. When I install project A onto a clean local repository (mvn install), everything seems fine but when I install project B I get the error message below indicating that it cannot find the top POM snapshot in the repository. [INFO] Failed to resolve artifact. GroupId: mygroupid ArtifactId: product Version: 1.4-SNAPSHOT The error does not occur if I perform the installation from the top-POM but this is not always the preferable way. The current workaround for me is to do a mvn install -N from the top level to skip recursing in the sub-project but this seems a bit akward way of solving the problem. Since all sub-project have parent references it seems to me that there is enough information for Maven to compile and install project B or am I missing something? Why does project B require a top-POM in the local repository but not project A? I would really appreciate if someone could explain what going on. Thanks in advance Lars Gramark -- View this message in context: http://www.nabble.com/Top-level-POM-behaviour-t1825699.html#a4980080 Sent from the Maven - Users forum at Nabble.com. - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven best practices - company-wide local repository?
This is the best solution. Another advantage is that if you find a bug in a dependency pom, you can submit an issue to Maven team and fix it in your internal repo until it is fixed in the main repo. On 6/21/06, Aleksei Valikov [EMAIL PROTECTED] wrote: Hi. I'm introducing Maven in my company. We're not a very large firm, ~ 20 developers and I consider if we should use a common local repository - for instance over a network share. The problem is that we often use non-released versions of third party libraries, which do not exist in central repositories like ibiblio. Another thing that our projects sometimes depend on non-released artifacts (like jta or jsf-facelets). If we use a common local repository, it would be enough that just one developer installs these artifacts into a local repo - and they immediately become available to everyone. Do you do anything similar? Are there drawbacks? What is the recommended approach? Bye. /lexi - 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]
Re: Maven best practices - company-wide local repository?
BTW be careful about the words you use : internal repository is not the same as a local repository. A local repository should be only local to a developer desktop and not on a network drives or you will have speed issues. On 6/21/06, Aleksei Valikov [EMAIL PROTECTED] wrote: Hi. I'm introducing Maven in my company. We're not a very large firm, ~ 20 developers and I consider if we should use a common local repository - for instance over a network share. The problem is that we often use non-released versions of third party libraries, which do not exist in central repositories like ibiblio. Another thing that our projects sometimes depend on non-released artifacts (like jta or jsf-facelets). If we use a common local repository, it would be enough that just one developer installs these artifacts into a local repo - and they immediately become available to everyone. Do you do anything similar? Are there drawbacks? What is the recommended approach? Bye. /lexi - 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]
Re: Maven best practices - company-wide local repository?
Install Maven Proxy or Proximity and you get your repository. It will get populated automatically when a developer request a dependency found on Maven central repo. As for Maven, installation instructions are found on the front page. On 6/21/06, Nidhi Goyal, Noida [EMAIL PROTECTED] wrote: hi, Please help me how to create a new project using Maven including it's installation. I'm not able to get how to create repositories for a project. I need step by step procedure including repositories code. Thanks, Nidhi -Original Message- From: Feniks Nator [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 4:48 PM To: Maven Users List Subject: Re: Maven best practices - company-wide local repository? Oeps, seems like I've been a bit to fast. and I consider if we should use a common local repository - for instance over a network share. You're talking about a common local repository. I agree with Christian, this could slow down things a lot. And it makes it more difficult to experiment (though you always can changing the settings.xml you use.) I also strongly recommend to keep the LOCAL repository, really local, meaning on the developers workstation. DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. --- - 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]
Re: Maven best practices - company-wide local repository?
] [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 22 seconds [INFO] Finished at: Wed Jun 21 17:00:28 GMT+05:30 2006 [INFO] Final Memory: 1M/2M Thanks, Nidhi -Original Message- From: Alexandre Poitras [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 4:57 PM To: Maven Users List Subject: Re: Maven best practices - company-wide local repository? Install Maven Proxy or Proximity and you get your repository. It will get populated automatically when a developer request a dependency found on Maven central repo. As for Maven, installation instructions are found on the front page. On 6/21/06, Nidhi Goyal, Noida [EMAIL PROTECTED] wrote: hi, Please help me how to create a new project using Maven including it's installation. I'm not able to get how to create repositories for a project. I need step by step procedure including repositories code. Thanks, Nidhi -Original Message- From: Feniks Nator [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 4:48 PM To: Maven Users List Subject: Re: Maven best practices - company-wide local repository? Oeps, seems like I've been a bit to fast. and I consider if we should use a common local repository - for instance over a network share. You're talking about a common local repository. I agree with Christian, this could slow down things a lot. And it makes it more difficult to experiment (though you always can changing the settings.xml you use.) I also strongly recommend to keep the LOCAL repository, really local, meaning on the developers workstation. DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. --- - 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] DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail
Re: conceptual problem in multi-module project?
On 6/19/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: You touched on a good point here. I have a similar situation where I have multiple modules that don't share the same release structure yet I would still like to have them use the same parent POM to inherit certain project info. Has anyone defined a Parent POM like that and just not included the module tags in it? Or would that be considered a Super POM instead? --Rudy In my opinion, this is how you should do it. Lot of people don't realize it but a super pom and modules are two different concepts. So if you want to share some values just use a super pom (using the parent tag) which doesn't declare any modules. For instance, I use a 3 level pom hierarchy and it works like a charm. -Original Message- From: Alexandre Poitras [mailto:[EMAIL PROTECTED] Sent: Sunday, June 18, 2006 2:32 PM To: Maven Users List Subject: Re: conceptual problem in multi-module project? That is the point. In order to build m2, I have to build the whole project. If m2 is still in development (ie, some tests still fail), I can't build m2 separately. If m2 and m1 doesn't share the same release cycle, they shouldn't be sibling modules. The purpose of modules is to separate a big project in small subprojects. Instead just declare a SNAPSHOT m2 dependency in you m1 pom. Modules dependencies is the same as Eclipse project dependencies. If one project doesn't compile than of course all the other projects depending upon this one won't compile either. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: conceptual problem in multi-module project?
That is the point. In order to build m2, I have to build the whole project. If m2 is still in development (ie, some tests still fail), I can't build m2 separately. If m2 and m1 doesn't share the same release cycle, they shouldn't be sibling modules. The purpose of modules is to separate a big project in small subprojects. Instead just declare a SNAPSHOT m2 dependency in you m1 pom. Modules dependencies is the same as Eclipse project dependencies. If one project doesn't compile than of course all the other projects depending upon this one won't compile either. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Goal to grab dependencies
I think this is what you are looking for : http://mojo.codehaus.org/dependency-maven-plugin/introduction.html On 6/15/06, Simon Bates [EMAIL PROTECTED] wrote: Hi everyone, I'm just starting with Maven and I have a quick question that I was wondering if someone might be able to help me with. I was wondering if a goal existed to download a project's dependencies to a local repository without compiling? I know that the compiler:compile goal will grab the dependencies prior to compiling but I was wondering if I could stop just short of compiling? Thank you very much for your help and thank you to everyone that has helped develop Maven: it's a great piece of work! All the best, Simon - 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]
Re: integration builds and version numbers
Just pass it on the command line. You should check the plugin page. Tons of information like the goal names and their properties : http://maven.apache.org/plugins/maven-release-plugin/howto.html http://maven.apache.org/plugins/maven-release-plugin/plugin-info.html On 6/14/06, EJ Ciramella [EMAIL PROTECTED] wrote: Does anyone know if mvn, when using the perforce scm config, will pull the users password from an environment variable? Mike, did you try that before you left this person logged in? -Original Message- From: Mike Perham [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 12:12 PM To: Maven Users List Subject: RE: integration builds and version numbers The perforce provider does not handle passwords; it is assumed that you are already logged in. We have a special build user who is only allowed to log in from the build server and whose login never expires. -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 9:54 AM To: Maven Users List Subject: RE: integration builds and version numbers I'm talking about passwords to perforce -Original Message- From: Roald Bankras [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 10:55 AM To: Maven Users List Subject: RE: integration builds and version numbers The website mentioned by Kieran Brady shows how you can store the scm passwords. Roald Bankras Software Engineer JTeam b.v. -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 4:40 PM To: Maven Users List Subject: RE: integration builds and version numbers Ok - got the pdf, but I'm confused. Does this release plugin need to be configured at the parent or child pom level? What if our scm tool of choose (perforce) requires passwords? -Original Message- From: Roald Bankras [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 10:26 AM To: Maven Users List Subject: RE: integration builds and version numbers In chapter 7 of the 'better builds with maven' book (downloadable from www.mergere.com) there is a description on how to use the release plugin. The plugin website can be found at http://maven.apache.org/plugins/maven-release-plugin/ Roald Bankras Software Engineer JTeam b.v. -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 4:14 PM To: Maven Users List Subject: RE: integration builds and version numbers I tried both mvn release and mvn release:release - neither exists. What is the correct goal? -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 9:51 AM To: Maven Users List Subject: RE: integration builds and version numbers Where is this documented? I'd like to read more about this. -Original Message- From: Roald Bankras [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 3:16 AM To: Maven Users List Subject: RE: integration builds and version numbers Updating the version numbers in the pom files can be done by calling the release goal. Roald Bankras Software Engineer JTeam b.v. -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Monday, June 12, 2006 11:30 PM To: Maven Users List Subject: RE: integration builds and version numbers Someone must be using CC + M2, no? -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Monday, June 12, 2006 8:01 AM To: Maven Users List Subject: integration builds and version numbers How are people updating their pom.xml files with version numbers from say cruisecontrol? We have two types of codelines (in perforce) here, project and release lines. Everything starts out life as a project then over time one (or more) projects can be integrated to a release line. I'm curious, we're forcefully editing (with the ant replace task) some templated version.html files to reflect what version was built. Do I need to be doing this to the pom.xml files also? When something is getting built from a project branch, the build number looks like this: X.projectbranchname.buildnumber So: 8.P01.1 In the maven world, all the project branches would look like this: versionX.X-SNAPSHOT/version So in the above case - version8.0-P01-SNAPSHOT/version And when that goes to release version8.0.X/version Where X is a build number. This has a problem though - I'll have to remember the dependency order to build and make sure that module C gets built before B which is built before A (or the replace at least happens in that order). So what are people doing for this? Manually updating before every build? I _really_ don't want to have to go back to that - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this
Re: Building a project using Continuum + execute mvn site
Just change the default goal to mvn deploy site throught Continuum web interface. On 6/13/06, Tatiana Escovedo [EMAIL PROTECTED] wrote: Hi, I'm trying Continuum 1.0.3 and I can build my project through the web interface. However, I'd like to build and execute the goal mvn site, for example. Do you know how could I do this using Continnum? I know how to execute the goal directly from command line, but I like to execute multiple goals using continuum. I imagine that I have to add something on my POM, expliciting the goals I want to execute. Could anyone help me? Thanks, Tatiana - 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]
Re: source bundle including dependency sources
http://mojo.codehaus.org/dependency-maven-plugin/introduction.html On 6/11/06, Ovidio Mallo [EMAIL PROTECTED] wrote: Hi everyone, I wanted to ask whether there is some Maven2 plugin which allows to produce a source bundle for a project, i.e. a JAR file containing not only the sources of the module itself (as produced by mvn source:jar) but also the sources of all its dependencies. The idea would be to have an analogon to the assembly concept in order to allow (non-maven) projects which use an assembly as a library to also attach a source JAR to it for development/debugging. So far, I have looked at the assembly and source plugins but couldn't find anything providing the described functionality. Is there maybe some way to do this in Maven2? Thanks in advance for any help! Best regards, Ovidio - 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]
Re: source bundle including dependency sources
I think it can if you declare source dependencies. But as you said the problem is more with the repository. Anyway, this is the best solution he can get at the moment. On 6/11/06, jerome lacoste [EMAIL PROTECTED] wrote: On 6/11/06, Alexandre Poitras [EMAIL PROTECTED] wrote: http://mojo.codehaus.org/dependency-maven-plugin/introduction.html That dependency plugin doesn't handle sources, right? I am not sure if it is possible anyway: part of the problem is that (to my knowledge) there's no rule that says that an artifact that comes to ibiblio should come with its source version bundle. I hope it will change though. Especially that there's a talk to have a sort of non-free section, we can hope that in the future, the 'free' one will enforce a comes with source rule. In fact, we can hope that upload of future artifacts will be made given a source tar.ball plus an optional pom. But that's just my opinion :) Cheers, Jerome - 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]
Re: mvn eclipse:eclipse on linux M2_REPO/path not found by eclipse
Just do it manually : http://maven.apache.org/plugins/maven-eclipse-plugin/overview.html On 6/10/06, Marc Weber [EMAIL PROTECTED] wrote: Hi. After running mvn eclipse:eclipse -Dproject=projectname I get my .classpath file. Fine. BUILD SUCCESFUL. But eclipse still can't resolve it. Even mvn eclipse:add-maven-repo -Declipse.workspace=/home/marc/workspace the classpath entries look like this classpathentry kind=var path=M2_REPO/log4j/log4j/1.2.9/log4j-1.2.9.jar/ classpathentry kind=var path=M2_REPO/mysql/mysql-connector-java/3.1.12/mysql-connector-java-3.1.12.jar/ didn't help. What am I doing still wrong? Marc - 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]
Re: HELP! multi-projects dependency
And keep in mind that the plugin is only in version 0.0.5. On 6/9/06, Roland Asmann [EMAIL PROTECTED] wrote: And you could try sending along a small part of the output (the errors) for us to work with... Roland On Friday 09 June 2006 01:57, Lee Meador wrote: I'm only answering some questions. You can search the user list here http://www.nabble.com/Maven---Users-f178.html as well as the normal maven 2 places. You have to do a 'mvn install' to get projects into the repo so the eclipse projects that depend on it will be able to find it. When a build fails the place to look for why varies. 1) Look at the output of mvn. It will tell WHY it failed. 2) If its a compile error, you should be able to see the compiler message there. This shouldn't be much of a problem if you fix the compile errors inside eclipse. 3) If its a junit error, you have to look inside the offending project (which you find in the mvn output by backing up until you see the Tests banner it prints). Look in the folder target/surefire-reports and you will see a .txt file that has informative messages about the test failure including any stack trace that junit would have printed. 4) Other kinds of errors seem to show up in the mvn output. That would be stuff like it can't connect to a remote repository or it can't find some dependency or plugin. -- Lee On 6/8/06, Andrew [EMAIL PROTECTED] wrote: Hi: I have spent whole day to try maven2 inside eclipse, its frustrating, and hard to find document. Anyhow, I manage to setup all my dependency to work. But I can't setup the dependency between my projects, I put the dependent project inside dependence tag, but it failed to find it from repository, and eclipse could not compile it. I try to follow the tuitor(http://maven.apache.org/guides/mini/guide-ide-eclipse.html) , but it looks like the plug-in does not support flat parent-child project relationship. Also, when I use maven to compile a java code, the error msg is not useful at all, it prints stack trace from maven, but how do I know which java file at which line is wrong? Please help; thanks very much. Andrew - 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]
Re: HELP! multi-projects dependency
Whoops I mean 0.0.9 On 6/9/06, Alexandre Poitras [EMAIL PROTECTED] wrote: And keep in mind that the plugin is only in version 0.0.5. On 6/9/06, Roland Asmann [EMAIL PROTECTED] wrote: And you could try sending along a small part of the output (the errors) for us to work with... Roland On Friday 09 June 2006 01:57, Lee Meador wrote: I'm only answering some questions. You can search the user list here http://www.nabble.com/Maven---Users-f178.html as well as the normal maven 2 places. You have to do a 'mvn install' to get projects into the repo so the eclipse projects that depend on it will be able to find it. When a build fails the place to look for why varies. 1) Look at the output of mvn. It will tell WHY it failed. 2) If its a compile error, you should be able to see the compiler message there. This shouldn't be much of a problem if you fix the compile errors inside eclipse. 3) If its a junit error, you have to look inside the offending project (which you find in the mvn output by backing up until you see the Tests banner it prints). Look in the folder target/surefire-reports and you will see a .txt file that has informative messages about the test failure including any stack trace that junit would have printed. 4) Other kinds of errors seem to show up in the mvn output. That would be stuff like it can't connect to a remote repository or it can't find some dependency or plugin. -- Lee On 6/8/06, Andrew [EMAIL PROTECTED] wrote: Hi: I have spent whole day to try maven2 inside eclipse, its frustrating, and hard to find document. Anyhow, I manage to setup all my dependency to work. But I can't setup the dependency between my projects, I put the dependent project inside dependence tag, but it failed to find it from repository, and eclipse could not compile it. I try to follow the tuitor(http://maven.apache.org/guides/mini/guide-ide-eclipse.html) , but it looks like the plug-in does not support flat parent-child project relationship. Also, when I use maven to compile a java code, the error msg is not useful at all, it prints stack trace from maven, but how do I know which java file at which line is wrong? Please help; thanks very much. Andrew - 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]
Re: Maven 2 and WTP
If you want a web project, add 'packagingwar/packaging' just after 'version'. Also be sure to run 'mvn eclise:eclipse -Dwtpversion=1.0'. If you don't specify the wtpversion, Maven just create a regular Eclipse project and not a web project. On 6/8/06, giacumbert [EMAIL PROTECTED] wrote: Hello Alexandre I tried to convert an example from the xfire distribution to an wtp project. I used the following commands: mvn eclipse:clean eclipse:eclipse But this command doesn't to the trick at all for me. I used the following pom.xml in the xfire example. If you can see any faults please tell me. Cheers Christian project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdorg.codehaus.xfire.examples/groupId artifactIdxfire.demo.book/artifactId nameBook Example/name version1.1/version inceptionYear2004/inceptionYear dependencies dependency groupIdorg.codehaus.xfire/groupId artifactIdxfire-spring/artifactId version1.1/version /dependency dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.3/version scopeprovided/scope /dependency /dependencies build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration warSourceDirectory${basedir}/src/webapp/warSourceDirectory /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId configuration wtpversion 1.0/wtpversion /configuration /plugin /plugins sourceDirectorysrc/main/sourceDirectory testSourceDirectorysrc/test/testSourceDirectory resources resource directorysrc/main/directory includes include**/*.xml/include /includes /resource /resources testResources testResource directorysrc/test/directory includes include**/*.xml/include include**/*.properties/include include**/*.wsdl/include /includes /testResource /testResources /build !-- needed for XmlSchema -- repositories repository idcodehaus/id nameCodehaus maven repository/name urlhttp://dist.codehaus.org//url layoutlegacy/layout /repository /repositories /project -- View this message in context: http://www.nabble.com/Maven-2-and-WTP-t1746013.html#a4766814 Sent from the Maven - Users forum at Nabble.com. - 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]
Re: Maven 2 and WTP
Forget about wtpversion, I didn't see it was already set in your pom file. On 6/8/06, Alexandre Poitras [EMAIL PROTECTED] wrote: If you want a web project, add 'packagingwar/packaging' just after 'version'. Also be sure to run 'mvn eclise:eclipse -Dwtpversion=1.0'. If you don't specify the wtpversion, Maven just create a regular Eclipse project and not a web project. On 6/8/06, giacumbert [EMAIL PROTECTED] wrote: Hello Alexandre I tried to convert an example from the xfire distribution to an wtp project. I used the following commands: mvn eclipse:clean eclipse:eclipse But this command doesn't to the trick at all for me. I used the following pom.xml in the xfire example. If you can see any faults please tell me. Cheers Christian project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdorg.codehaus.xfire.examples/groupId artifactIdxfire.demo.book/artifactId nameBook Example/name version1.1/version inceptionYear2004/inceptionYear dependencies dependency groupIdorg.codehaus.xfire/groupId artifactIdxfire-spring/artifactId version1.1/version /dependency dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.3/version scopeprovided/scope /dependency /dependencies build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration warSourceDirectory${basedir}/src/webapp/warSourceDirectory /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId configuration wtpversion 1.0/wtpversion /configuration /plugin /plugins sourceDirectorysrc/main/sourceDirectory testSourceDirectorysrc/test/testSourceDirectory resources resource directorysrc/main/directory includes include**/*.xml/include /includes /resource /resources testResources testResource directorysrc/test/directory includes include**/*.xml/include include**/*.properties/include include**/*.wsdl/include /includes /testResource /testResources /build !-- needed for XmlSchema -- repositories repository idcodehaus/id nameCodehaus maven repository/name urlhttp://dist.codehaus.org//url layoutlegacy/layout /repository /repositories /project -- View this message in context: http://www.nabble.com/Maven-2-and-WTP-t1746013.html#a4766814 Sent from the Maven - Users forum at Nabble.com. - 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]
exported pom encoding
Hi all, I have a little problem. My pom.xml encoding is set to ISO-8859-1 but each time I run 'mvn package', maven generates an exported pom which has a 'UTF-8 encoding. I would like to keep the original encoding because Eclipse complains about bad characters in the generated xml file. Any idea how to solve this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache commons enums question
Enums package is there only since version 2.1 (before it was 'enum'). So just change your dependency version to 2.1 and everything should work. On 6/8/06, namartin [EMAIL PROTECTED] wrote: I am trying to work out the dependencies of a project that is being converted to use Maven. The project uses org.apache.commons.lang.enums. When I try to compile using Maven I get an error saying package org.apache.commons.lang.enums does not exist, which seems to indicate that there is no plugin loaded for the package. However, I cannot find a Maven plugin for the enums. I have tried including the dependency to the commons-lang plugin like this: dependency groupIdcommons-lang/groupId artifactIdcommons-lang/artifactId version2.0/version /dependency I have even tried downloading the commons.lang zip file and using: mvn install:install-file -DgroupId=org.apache.commons -DartifactId=lang -Dversion=2.1 -Dpackaging=jar -Dfile=path to file/lang-current.zip command to load it into my local repository and then including it in the project pom using: dependency groupIdorg.apache.commons/groupId artifactIdlang/artifactId version2.1/version /dependency These seem to make Maven aware of the org.apache.commons.lang package but not the org.apache.commons.lang.enums package. How do I make Maven aware of the org.apache.commons.lang.enums package so I can compile the project? Do I have to make a plugin for the enums package myself? Why can't Maven see the enums package even though it can see the lang package that contains it? -- View this message in context: http://www.nabble.com/Apache-commons-enums-question-t1758684.html#a4783985 Sent from the Maven - Users forum at Nabble.com. - 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]
Re: Apache commons enums question
And erase the file you just have installed or Maven won't download it. On 6/8/06, Alexandre Poitras [EMAIL PROTECTED] wrote: Enums package is there only since version 2.1 (before it was 'enum'). So just change your dependency version to 2.1 and everything should work. On 6/8/06, namartin [EMAIL PROTECTED] wrote: I am trying to work out the dependencies of a project that is being converted to use Maven. The project uses org.apache.commons.lang.enums. When I try to compile using Maven I get an error saying package org.apache.commons.lang.enums does not exist, which seems to indicate that there is no plugin loaded for the package. However, I cannot find a Maven plugin for the enums. I have tried including the dependency to the commons-lang plugin like this: dependency groupIdcommons-lang/groupId artifactIdcommons-lang/artifactId version2.0/version /dependency I have even tried downloading the commons.lang zip file and using: mvn install:install-file -DgroupId=org.apache.commons -DartifactId=lang -Dversion=2.1 -Dpackaging=jar -Dfile=path to file/lang-current.zip command to load it into my local repository and then including it in the project pom using: dependency groupIdorg.apache.commons/groupId artifactIdlang/artifactId version2.1/version /dependency These seem to make Maven aware of the org.apache.commons.lang package but not the org.apache.commons.lang.enums package. How do I make Maven aware of the org.apache.commons.lang.enums package so I can compile the project? Do I have to make a plugin for the enums package myself? Why can't Maven see the enums package even though it can see the lang package that contains it? -- View this message in context: http://www.nabble.com/Apache-commons-enums-question-t1758684.html#a4783985 Sent from the Maven - Users forum at Nabble.com. - 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]
Re: [M2] Snapshots deployed to server not being found
Thank, in my case it was just a matter of definition order. On 6/6/06, ben short [EMAIL PROTECTED] wrote: Hi All, Seems it was down to my maven config Here is what I added to my settings.xml profile idnexusalpha/id - repositories - repository - releases updatePolicynever/updatePolicy /releases - snapshots updatePolicynever/updatePolicy /snapshots idinternal-snapshot/id urlhttp://192.168.6.194/proximity/repository/url /repository - repository - releases updatePolicynever/updatePolicy enabledfalse/enabled /releases - snapshots updatePolicyinterval:30/updatePolicy /snapshots idinternal-released/id urlhttp://192.168.6.194/proximity/repository/url /repository /repositories /profile /profiles Hope this is a help to somebody. Ben On 6/6/06, Alexandre Poitras [EMAIL PROTECTED] wrote: In my case, snapshots are configured correctly. In fact, it was working like a charm before. I have tried on several desktops just to be sure. I also seem to have problems with the Apache snapshot repository. On 6/5/06, Tamás Cservenák [EMAIL PROTECTED] wrote: Hi all, as for Proximity, i can only repeat my previous statement: Px currently logs every request (done by Px-webapp frontent servlet). My huntch is that you did not configure maven properly to use proximity as snapshot repos. Per default, maven does not have snapshot repo (as far as i know...). It could be a little awkward, but you should direct maven to proximity twice: once as central mirror and once as snapshot repo for your inhouse snapshots. There is no contradiction in this little trick, since your px-published-inhouse repo contains your own snapshots (px will not find them on any remote peer) -- these repos ARE disjunct, no? ~t~ On 6/5/06, ben short [EMAIL PROTECTED] wrote: Tamás, There are logs, and I can see requests for the released version of the artifact im after, but nothing for the snapshot requests. I have tried the -U flag also. I havent tried what Olivier suggested yet, will try it tomorrow. Ben On 6/5/06, Alexandre Poitras [EMAIL PROTECTED] wrote: I'm not using proximity but Maven proxy at the moment. On 6/5/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Same here...one thing I think I did that seemed to work was to throw the -U cmd on the compile, ie. mvn -U compile. Try that and let us know if it works. --Rudy -Original Message- From: Paul Spencer [mailto:[EMAIL PROTECTED] Sent: Monday, June 05, 2006 10:29 AM To: Maven Users List Subject: Re: [M2] Snapshots deployed to server not being found Ben, I have seen the same behavior. Although I have not had time to determine what is the root cause, I think it may the IDE, Eclipse in my case, locking the dependency in the local repository and Maven not complaining when it can not replace the file. Again I have not had time to verify this, it is just a hunch. Paul Spencer ben short wrote: Hi, I am trying to include a snapshot that has been deployed to our internal repository. When I do mvn compile, maven complains that it couldn't resolve the dependency. Is this a bug with maven 2.0.4? Ben - 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] - 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] - 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] - 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]
Re: eclipse, wtp, maven and web apps
It isn't a problem, your ide compiling/debugging functionalities are enough to write and test your code. In that case, you just need Maven to produce a valid Eclipse project according to the pom. If it's still bother you, just turn off Eclipse automatic build features and run Maven from Eclipse as an external tool. Most of the time I use Maven only to execute indivual goals while I let continuum, which run on a different server, in charge of retrieving the project lastest sources and deploying nightly builds on our internal repository. Work like a charm in our case. On 6/6/06, kvpetrov [EMAIL PROTECTED] wrote: Maven has an eclipse plugin that would create eclipse configuration for a WTP web application. Let's imagine that you have created a web application in maven and now you want to work with it using Eclipse. You would do something like this: mvn -Dwtpversion=1.0 eclipse:eclipse Now, you open Eclipse, create a server (for example a Tomcat server), open the project and publish it to the server you have just defined. The publishing part I believe is wrong. WTP plugin starts assembling the application for you which does not make any sense for me. It will create a folder workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/ROOT and will copy your src/main/webapp into it. Then it will populate the WEB-INF/lib folder with your dependencies, and finally will copy your compiled classes under WEB-INF/classes. Though this might work for you, it is definitely not the right approach. It is not WTP plugin which should assemble the application. Maven already creates the application in target/webapp This is the folder that needs to be published. -- View this message in context: http://www.nabble.com/eclipse%2C-wtp%2C-maven-and-web-apps-t1725424.html#a4738255 Sent from the Maven - Users forum at Nabble.com. - 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]
Re: How best to specify maven-proxy - in settings.xml or as repository in pom.xml?
You should declare repositories in both and mirrors in settings.xml. A corporation wide parent pom is the best solution to define repositories but you still need to define them in settings.xml to handle 2 specific cases : 1) Being able to retrieve the parent pom. 2) Run indivual goals that don't need a pom. On 6/7/06, Wayne Fay [EMAIL PROTECTED] wrote: We use ~/.m2/settings.xml for Maven-proxy configurations. If you use repo in pom.xml, then your developers will always hit Central when they build, which you probably want to avoid. I believe the build.properties reference is simply leftover from M1 and can be safely ignored for those of us using M2. Wayne On 6/7/06, Michael Waluk [EMAIL PROTECTED] wrote: I would love some advice... I would like developers on my team to be able to checkout our maven project from source control (Clearcase) and run the package goal on it to build it. Ideally they need only install the maven eclipse plugin to execute that goal within eclipse. I've installed maven-proxy and loaded it with the dependencies and plugins we use so far. So finally to my question... What is the best way to force all the developers to use maven-proxy? Should I specify it in the project pom.xml with repository and pluginRepositorytags? Or should I put the entire maven install into Clearcase with a settings.xml file that specifies it with a proxy or mirror tag? Since the maven-proxy will server multiple projects in the future it seems like we should put it in the maven install settings.xml. Is that what teams are doing out there in order to simplify developers' lives (putting the maven install with settings.xml in source control)? We should be able to share standard settings like this with the team automatically (rather than each developer having to set the same settings in their personal settings.xml). My first attempt was to put a settings.xml file in the project's conf directory but that didn't seem to get noticed. As an aside, when you start maven-proxy it spits out this advice: Add the following to your ~/build.properties file: maven.repo.remote=http:/machine-name:/repository What build.propertiesdo they mean? Thanks for any and all help in getting us started using Maven! - Michael - 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]
Re: How best to specify maven-proxy - in settings.xml or as repository in pom.xml?
By the way, the proxy element in settings.xml is used to specify a HTTP proxy not a Maven-proxy. On 6/7/06, Alexandre Poitras [EMAIL PROTECTED] wrote: You should declare repositories in both and mirrors in settings.xml. A corporation wide parent pom is the best solution to define repositories but you still need to define them in settings.xml to handle 2 specific cases : 1) Being able to retrieve the parent pom. 2) Run indivual goals that don't need a pom. On 6/7/06, Wayne Fay [EMAIL PROTECTED] wrote: We use ~/.m2/settings.xml for Maven-proxy configurations. If you use repo in pom.xml, then your developers will always hit Central when they build, which you probably want to avoid. I believe the build.properties reference is simply leftover from M1 and can be safely ignored for those of us using M2. Wayne On 6/7/06, Michael Waluk [EMAIL PROTECTED] wrote: I would love some advice... I would like developers on my team to be able to checkout our maven project from source control (Clearcase) and run the package goal on it to build it. Ideally they need only install the maven eclipse plugin to execute that goal within eclipse. I've installed maven-proxy and loaded it with the dependencies and plugins we use so far. So finally to my question... What is the best way to force all the developers to use maven-proxy? Should I specify it in the project pom.xml with repository and pluginRepositorytags? Or should I put the entire maven install into Clearcase with a settings.xml file that specifies it with a proxy or mirror tag? Since the maven-proxy will server multiple projects in the future it seems like we should put it in the maven install settings.xml. Is that what teams are doing out there in order to simplify developers' lives (putting the maven install with settings.xml in source control)? We should be able to share standard settings like this with the team automatically (rather than each developer having to set the same settings in their personal settings.xml). My first attempt was to put a settings.xml file in the project's conf directory but that didn't seem to get noticed. As an aside, when you start maven-proxy it spits out this advice: Add the following to your ~/build.properties file: maven.repo.remote=http:/machine-name:/repository What build.propertiesdo they mean? Thanks for any and all help in getting us started using Maven! - Michael - 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]
Re: Maven 2 and WTP
The eclipse plugin works like a charm with WTP. I use it on a daily basic. If your project structure respect Maven conventions, a simple mvn -Dwtpversion=1.0 eclipse:eclipse does the trick. On 6/7/06, Zeiler Christian, Bedag [EMAIL PROTECTED] wrote: Hello Yesterday I tried to convert a maven project into an eclipse wtp project with the maven-eclipse-plugin. But unfortunately it doesn't work. Maven doesn't create all off the needed files for eclipse so I wasn't able to import the project in the server view of eclipse. Maven: 2.04 WTP: 1.0 Eclipse: 3.2 RC7 I studied all the documentation under http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html and searched the internet. I would really appreciate if anyone can provide me a running real world example (not only hello world). Cheers Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP compiler plugin
Is c.tld located in src/main/resources/WEB-INF/tld? On 6/7/06, Eugeny N Dzhurinsky [EMAIL PROTECTED] wrote: plugin groupIdorg.codehaus.mojo/groupId artifactIdjspc-maven-plugin/artifactId executions execution idjspc/id phasecompile/phase goals goalcompile/goal /goals configuration inputWebXml./WEB-INF/web.xml/inputWebXml injectStringnonexistent/injectString outputWebXml/dev/null/outputWebXml warSourceDirectory./warSourceDirectory workingDirectoryjsp-compile/workingDirectory /configuration /execution /executions /plugin for soem reason I'm getting this error: [INFO] [jspc:compile {execution: jspc}] [INFO] Built File: /MML/index.jsp [WARN] Internal Error: File /WEB-INF/web.xml not found [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error Embedded error: File /WEB-INF/tld/c.tld not found But there is WEB-INF/tld directory inside module and it contains c.tld file. Also WEB-INF/web.xml exists. Any ideas what needs to be specified? -- Eugene N Dzhurinsky - 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]
Re: Skip instal//deploy
Just run 'compile' instead of install or deploy. They are the last lifecycle phases so they are easy to skip :) On 6/7/06, Sean Schofield [EMAIL PROTECTED] wrote: Is there a way to mark an artifact such that the install and deploy are skipped? In my case, there really is no need to have WAR files in my local or public repositories. Sean - 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]
Re: Skip instal//deploy
Oops I mean 'package'. On 6/7/06, Alexandre Poitras [EMAIL PROTECTED] wrote: Just run 'compile' instead of install or deploy. They are the last lifecycle phases so they are easy to skip :) On 6/7/06, Sean Schofield [EMAIL PROTECTED] wrote: Is there a way to mark an artifact such that the install and deploy are skipped? In my case, there really is no need to have WAR files in my local or public repositories. Sean - 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]
Re: eclipse, wtp, maven and web apps
Well this may be possible in the future with the eclipse maven plugin. Anyway, packaging a web app is not something you do regularly. I think you are being a bit idealistic here. It's not optimal but in the mean time it works correctly. Never seen any performance issue and I don't agree with what you have defined as problems. On 6/7/06, kvpetrov [EMAIL PROTECTED] wrote: I don't think turning off autobuild feature of Eclipse is a good idea. I like Eclipse compiling my java classes on fly. There two problems with the current behavior: 1) I don't want to waste my CPU on copying files back and forward taking into account that the resulting application is not usable anyway because Eclipse just can't build it right. Instead of trying to build it on its own when you publish the app Eclipse should call appropriate maven goals when a resource is touched. Basically, this is more of a problem for the Eclipse maven plugin that can't get triggered when a particular resource is changed within Eclipse project. 2) Because the resulted app is invalid I can not associate the project with a server and start it within Eclipse. Of course, I found ways around this problem but I still think that what WTP+Maven do now is completely wrong. Eclipse can still compile java classes on fly it does not prevent maven from correctly assembling the app and providing it to WTP for deployment. -- View this message in context: http://www.nabble.com/eclipse%2C-wtp%2C-maven-and-web-apps-t1725424.html#a4763221 Sent from the Maven - Users forum at Nabble.com. - 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]
Re: eclipse, wtp, maven and web apps
By the way, when I speak about the Eclipse Maven plugin, I am speaking about this one http://maven.apache.org/eclipse-plugin.html. I guess in the future, there is going to be a more complete Maven builder included. On 6/7/06, Alexandre Poitras [EMAIL PROTECTED] wrote: Well this may be possible in the future with the eclipse maven plugin. Anyway, packaging a web app is not something you do regularly. I think you are being a bit idealistic here. It's not optimal but in the mean time it works correctly. Never seen any performance issue and I don't agree with what you have defined as problems. On 6/7/06, kvpetrov [EMAIL PROTECTED] wrote: I don't think turning off autobuild feature of Eclipse is a good idea. I like Eclipse compiling my java classes on fly. There two problems with the current behavior: 1) I don't want to waste my CPU on copying files back and forward taking into account that the resulting application is not usable anyway because Eclipse just can't build it right. Instead of trying to build it on its own when you publish the app Eclipse should call appropriate maven goals when a resource is touched. Basically, this is more of a problem for the Eclipse maven plugin that can't get triggered when a particular resource is changed within Eclipse project. 2) Because the resulted app is invalid I can not associate the project with a server and start it within Eclipse. Of course, I found ways around this problem but I still think that what WTP+Maven do now is completely wrong. Eclipse can still compile java classes on fly it does not prevent maven from correctly assembling the app and providing it to WTP for deployment. -- View this message in context: http://www.nabble.com/eclipse%2C-wtp%2C-maven-and-web-apps-t1725424.html#a4763221 Sent from the Maven - Users forum at Nabble.com. - 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]
Re: How best to specify maven-proxy - in settings.xml or as repository in pom.xml?
Or just distribute a little install script. On 6/7/06, Edwin Punzalan [EMAIL PROTECTED] wrote: If you don't want your developers to be creating their own setttings.xml, then I guess modifying maven.jar!conf/settings.xml is the better choice. Michael Waluk wrote: I would love some advice... I would like developers on my team to be able to checkout our maven project from source control (Clearcase) and run the package goal on it to build it. Ideally they need only install the maven eclipse plugin to execute that goal within eclipse. I've installed maven-proxy and loaded it with the dependencies and plugins we use so far. So finally to my question... What is the best way to force all the developers to use maven-proxy? Should I specify it in the project pom.xml with repository and pluginRepositorytags? Or should I put the entire maven install into Clearcase with a settings.xml file that specifies it with a proxy or mirror tag? Since the maven-proxy will server multiple projects in the future it seems like we should put it in the maven install settings.xml. Is that what teams are doing out there in order to simplify developers' lives (putting the maven install with settings.xml in source control)? We should be able to share standard settings like this with the team automatically (rather than each developer having to set the same settings in their personal settings.xml). My first attempt was to put a settings.xml file in the project's conf directory but that didn't seem to get noticed. As an aside, when you start maven-proxy it spits out this advice: Add the following to your ~/build.properties file: maven.repo.remote=http:/machine-name:/repository What build.propertiesdo they mean? Thanks for any and all help in getting us started using Maven! - Michael - 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]
Re: newbie error with archetype:create
It happens often when you download a bunch of stuff on ibiblio since it is quite a busy site. Just run it again and everything should work. On 6/7/06, Maria Odea Ching [EMAIL PROTECTED] wrote: Hi Joe, Try removing the maven-profile jar files (including its corresponding pom metadata files) from your local repo and then execute mvn archetype... again. It seemed that the pom was corrupted when it was downloaded from the central repo. Thanks, Odea Joe Hudson wrote: Hello, I tried running the archetype:create target (I recently downloaded and installed maven2 and am going through the docs: http://maven.apache.org/guides/getting-started/index.html) and I am running into the following error. Could anybody help me please? Thanks. Joe Hudson mvn -X -e archetype:create -DgroupId=com.myadbox.web -DartifactId=admin + Error stacktraces are turned on. Maven version: 2.0.4 [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\joe\.m2\plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: 'C:\Documents and Settings\joe\My Documents\My Development\Java\maven-2.0.4\bin\..\conf\plugin-registr y.xml' [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [DEBUG] maven-archetype-plugin: resolved to version 1.0-alpha-4 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.archetype:maven-archetype::1.0-alpha-4 for project: org.apache.maven.plugins:maven-archetype-plugin:maven-plugin :1.0-alpha-4 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.archetype:maven-archetype:pom:1.0-alpha-4 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [archetype:create] (aggregator-style) [INFO] [DEBUG] org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:1.0-alpha-4:run time (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven.archetype:maven-archetype::1.0-alpha-4 for project: org.apache.maven.archetype:maven-archetype-core:jar:1.0-alph a-4 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.archetype:maven-archetype:pom:1.0-alpha-4 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] org.apache.maven.archetype:maven-archetype-core:jar:1.0-alpha-4:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-model:jar:2.0 from the repository. [DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-containers::1.0.3 for project: null:plexus-container-default:jar:1.0-alpha-9 from the repository. [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for project: org.codehaus.plexus:plexus-containers:pom:1.0.3 from the repository. [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:runtime (selected for runtime) [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime) [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-artifact-manager:jar:2.0 from the repository. [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (removed - nearer found: 1.0-alpha-9) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-artifact:jar:2.0 from the repository. [DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-repository-metadata:jar:2.0 from the repository. [DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0:runtime (selected for runtime) [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-velocity:jar:1.1.2:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: plexus:plexus-containers::1.0.2 for project: org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-7 from the repository. [DEBUG] Skipping disabled repository apache.snapshots [DEBUG] Trying repository central Downloading:
Re: RE : RE : [M2] Snapshots deployed to server not being found
Same problem here, snapshots are not resolved anymore but they used to be in the past. Now, if I release a version of the same dependency and depends upon it instead of the snapshot version, everything works. Looks like a bug to me. On 6/5/06, ben short [EMAIL PROTECTED] wrote: Olivier, Ah, I have proximity (https://is-micro.myip.hu/projects/ismicro-commons/proximity/) setup as a mirror of central. Will try setting up the settings.xml as you have, and then get ontp the proximity guys. Thanks Ben On 6/5/06, Olivier Lamy [EMAIL PROTECTED] wrote: Strange, Because for me it works well. How your company repositories are declared ? In my case, we have two company repo declared in developpers settings.xml : Release one : repository releases updatePolicynever/updatePolicy /releases snapshots updatePolicynever/updatePolicy /snapshots idid/id nameid-maven2/name urlhttp://ip/maven2/url /repository Snapshot one : repository releases updatePolicynever/updatePolicy enabledfalse/enabled /releases snapshots updatePolicyinterval:30/updatePolicy /snapshots idid-snapshots/id nameid-maven2-snapshots/name urlhttp://ip/snapshots/url /repository This works like a charm. I have just tryed with a rm -rf $HOME/.m2/repository/com And all artifacts downloaded without trouble. -- Olivier -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de ben short Envoyé : lundi 5 juin 2006 12:29 À : Maven Users List Objet : Re: RE : [M2] Snapshots deployed to server not being found Oliver, I have tried the -U. But i dont have any version of the artifact in my local repo. So i would of assumed that it would download it. Ben On 6/5/06, Olivier Lamy [EMAIL PROTECTED] wrote: Hi, Try -U (sometimes saved troubles) You can change updatePolicy in your settings for this repo (during a furious dev phase you set always ;-) or interval:xxx in minutes) -- Olivier -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de ben short Envoyé : lundi 5 juin 2006 12:13 À : Maven Users List Objet : [M2] Snapshots deployed to server not being found Hi, I am trying to include a snapshot that has been deployed to our internal repository. When I do mvn compile, maven complains that it couldn't resolve the dependency. Is this a bug with maven 2.0.4? Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, any attachments and the information contained therein (this message) are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. -- Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après le message ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. - - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Snapshots deployed to server not being found
I'm not using proximity but Maven proxy at the moment. On 6/5/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Same here...one thing I think I did that seemed to work was to throw the -U cmd on the compile, ie. mvn -U compile. Try that and let us know if it works. --Rudy -Original Message- From: Paul Spencer [mailto:[EMAIL PROTECTED] Sent: Monday, June 05, 2006 10:29 AM To: Maven Users List Subject: Re: [M2] Snapshots deployed to server not being found Ben, I have seen the same behavior. Although I have not had time to determine what is the root cause, I think it may the IDE, Eclipse in my case, locking the dependency in the local repository and Maven not complaining when it can not replace the file. Again I have not had time to verify this, it is just a hunch. Paul Spencer ben short wrote: Hi, I am trying to include a snapshot that has been deployed to our internal repository. When I do mvn compile, maven complains that it couldn't resolve the dependency. Is this a bug with maven 2.0.4? Ben - 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] - 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]
Re: [M2] Snapshots deployed to server not being found
In my case, snapshots are configured correctly. In fact, it was working like a charm before. I have tried on several desktops just to be sure. I also seem to have problems with the Apache snapshot repository. On 6/5/06, Tamás Cservenák [EMAIL PROTECTED] wrote: Hi all, as for Proximity, i can only repeat my previous statement: Px currently logs every request (done by Px-webapp frontent servlet). My huntch is that you did not configure maven properly to use proximity as snapshot repos. Per default, maven does not have snapshot repo (as far as i know...). It could be a little awkward, but you should direct maven to proximity twice: once as central mirror and once as snapshot repo for your inhouse snapshots. There is no contradiction in this little trick, since your px-published-inhouse repo contains your own snapshots (px will not find them on any remote peer) -- these repos ARE disjunct, no? ~t~ On 6/5/06, ben short [EMAIL PROTECTED] wrote: Tamás, There are logs, and I can see requests for the released version of the artifact im after, but nothing for the snapshot requests. I have tried the -U flag also. I havent tried what Olivier suggested yet, will try it tomorrow. Ben On 6/5/06, Alexandre Poitras [EMAIL PROTECTED] wrote: I'm not using proximity but Maven proxy at the moment. On 6/5/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Same here...one thing I think I did that seemed to work was to throw the -U cmd on the compile, ie. mvn -U compile. Try that and let us know if it works. --Rudy -Original Message- From: Paul Spencer [mailto:[EMAIL PROTECTED] Sent: Monday, June 05, 2006 10:29 AM To: Maven Users List Subject: Re: [M2] Snapshots deployed to server not being found Ben, I have seen the same behavior. Although I have not had time to determine what is the root cause, I think it may the IDE, Eclipse in my case, locking the dependency in the local repository and Maven not complaining when it can not replace the file. Again I have not had time to verify this, it is just a hunch. Paul Spencer ben short wrote: Hi, I am trying to include a snapshot that has been deployed to our internal repository. When I do mvn compile, maven complains that it couldn't resolve the dependency. Is this a bug with maven 2.0.4? Ben - 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] - 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] - 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]
Re: Using a custom template in a skin?
What is your skin packaging type? It should be maven-plugin. On 6/5/06, Borut Bolčina [EMAIL PROTECTED] wrote: Hello, I want to have some custom HTML below the left navigation bar in my maven project site. I guess I have to make my own skin for that. Here's what I've done so far: 1. Created a maven project based on maven-default-skin. 2. Copied all the resources (css and images) to reflect the structure of maven-default-skin 3. Copied default-site.vm from doxia-site-renderer to src/main/resources/META-INF/maven/site.vm (notice different name) 4. Added one meta tag in template to see if the template will be picked up. 5. Changed one value in css to see if change will be picked up. 6. Created a jar 7. Installed in my local repo 8. In my project's site.xml I included this skin with skin tag No luck. No documentation. Please don't redirect me to official site (http://maven.apache.org/plugins/maven-site-plugin/). I don't want to go there any more, it's scary. Can someone please explain the procedure? Regards, Borut the documentation is really bad, this list gives some clues, but still got me nowhere. Vance Karimi pravi: Why not have {Project}/src/main/resources/META-INF/maven/site.vm. When you package it, it will add the template correctly. -Original Message- From: Roland Bali [mailto:[EMAIL PROTECTED] Sent: Thursday, 25 May 2006 6:45 PM To: Maven Users List Subject: Re: [m2] Using a custom template in a skin? Ah, thanks Vance. I tried that before but my page still looked messed up. But I found out what caused the whole thing. The documentation only says to copy a existing skin and the default-site.vmto make custom pages. It does not how-ever mention that to create a working page you also have to copy the CSS and image files inside the same doxia- jar that contained the default-site.vm. Now a follow-up question, is it possible to add the template file to the JAR using a setting in the POM or do I have to create a Ant script for that? Kind regards, Roland On 5/25/06, Vance Karimi [EMAIL PROTECTED] wrote: Managed to get this to work by putting the template within the skin jar directory structure META-INF/maven and call it site.vm. -Original Message- From: Roland Bali [mailto:[EMAIL PROTECTED] Sent: Thursday, 25 May 2006 5:54 PM To: Maven Users List Subject: [m2] Using a custom template in a skin? Hi, I use a custom Velocity template to generate my site. Up until yesterday I did it the old fashioned way by configuring the site plugin with templateFile. Since this stopped working a while ago I tried to create my own skin. Creating a skin worked fine, exactly as advertised at http://maven.apache.org/plugins/maven-site-plugin/creating-a- skin.htmlexcept for the template thingy. Where do I put my custom Velocity template and what do I call it so Maven can use it together with my bright and shiny new skin? If I use the old way the page gets all screwed up (which by the way is documented on the site plugin page). How come the default template is in the Doxia plugin, shouldn't it be located inside a skin? Kind regards, Roland Send instant messages to your online friends http://au.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Send instant messages to your online friends http://au.messenger.yahoo.com - 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]
Re: [m2] Is there a way to turn off downloading of poms?
Change your repository declaration order. It should do the trick but a better option would be to use Maven Proxy or Proximity. This way, Maven would only go to one place to get what is needed to build your projet. On 6/5/06, Jason Chaffee [EMAIL PROTECTED] wrote: My builds are constantly failing even when I build offline because maven is attempting to download pom files for dependencies. However, most of these dependencies do not have poms in the remote repo because they are coming from legacy repos. This is an extremely annoying feature that can cause me not to build for an entire day. - 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]
Re: How do I manage versions of artifacts in a large project in Maven 2.0?
You should take a look at the dependencyManagement section. I think this is what you are looking for. On 6/5/06, Watson, Gordon [EMAIL PROTECTED] wrote: To start the discussion we utilize properties files in maven 1.0.2 to set global properties (so we don't have to use multiple -Dproperty.value=x with each call to maven) to provide total project properties to everyone working on subprojects. But since maven 2.0 does not read properties files any more I am trying to solve the problem below. We are currently using Maven 1.0.2 for a large project. It has a hierarchy similar to the following: base project/ subproject 1/ service subproject 2/ service model subproject 3/ service subproject 4/ service model web ear subproject 5/ service model web ear With in the system we have generic scripts that build individual subprojects using multiproject goals. Note not all subprojects are built at the same time. But many refer to artifacts of other projects. Additionally we utilize the scm plugin to tag the latest version of code automatically. Build on a central server are done in the form: maven multiproject:install if successful loop on subdirectories service, model, web, ear, etc maven scm:prepare-release # to set new version of all artifacts update base project/project.properties file with new version of this artifact maven multiproject:deploy Individual service/project.xml files extend two levels up and have entries that refer to generic current.version properties to be sure they utilize the most current version of these artifacts. ?xml version=1.0 encoding=UTF-8? project extend${basedir}/../../project.xml/extend pomVersion1/pomVersion nameAssembly Service/name idAssembly-services/id groupIdAssembly/groupId artifactIdAssembly-services/artifactId currentVersion1.22/currentVersion dependencies dependency groupIdjboss/groupId artifactIdjboss-j2ee/artifactId version3.2.3/version typejar/type /dependency dependency groupIdLocalUtilities/groupId artifactIdutilities/artifactId version${OurProject.utilities.service.current.version}/version /dependency /project Any ideas on how to set a global project level file to set these values for multiple subprojects such that each individual subproject project.xml does not need to be hand modified when a centralized build is performed? Gordon Watson System Architect RLPTechnologies 248 991 1021 www.rlpt.com * This message has originated from RLPTechnologies, 26955 Northwestern Highway, Southfield, MI 48034. RLPTechnologies sends various types of email communications. If this email message concerns the potential licensing of an RLPT product or service, and you do not wish to receive further emails regarding Polk products, forward this email to [EMAIL PROTECTED] with the word remove in the subject line. The email and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this email in error, please delete this message and notify the Polk System Administrator at [EMAIL PROTECTED] * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: depencency version required
Look like there is a mistake in your ear pom. My guess : you probably forgot to add the parent section or you made a mistake in the ids you supplied in the parent pom dependencyManagement section. On 6/5/06, Lee Meador [EMAIL PROTECTED] wrote: I have a parent project/pom and several children using the form ../child1. I put the versions for all the children projects in the parent pom (in dependencyManagement). They are all 1.0-SNAPSHOT. In all the child projects, when one depends on another, I don't put a version tag in the dependency section. In the child project for my ear, if I leave the version tag out, it complains dependencies.dependency.version is missing but the version is supplied in the parent's dependencyManagement section just like in all the other children. The other children have no problem. mvn help:effective-pom gives the same error about missing the dependency version. This only happens in the one child and only as relates to the other children (of the same parent pom) upon which it is dependent. (For example, the ear is dependent on one war project and two ejb jar projects.) The only change I have to make to build successfully is to add the version tags into the ear child project's pom. Does anyone have any ideas of where to look for this problem? -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2} Possible to pull in a pre built war as the EAR webModule?
Just make sure it is installed in your local or internal repository when you build and it should work. On 6/5/06, ben short [EMAIL PROTECTED] wrote: Hi, Is it possible to use a allready built webapp as a ear webModule, rather than having the webapp as a module of the ear project itself? Ben - 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]
Snapshot repository
Hi all, I have been having problem with snapshot repositories lately. My internal repository doesn't want to serve snapshot anymore. I think it has begun with Maven 2.0.4 since it was working well in the past. I know some other people have complained about the same thing so I was wondering if this a known bug and if there is JIRA filled. Any news on this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Free book on maven 2.0
And where do you think most Maven 2 developers work ? ;) On 5/31/06, Roland Asmann [EMAIL PROTECTED] wrote: This has been posted several times already... On Wednesday 31 May 2006 16:58, Pauquette, Bryan wrote: There is a free 294 page book on maven 2.0 at the following website I have no affiliation with this organization other than a friend who got hired by this company. He told me about the book. It has been useful to me so I thought I would pass it on. You have to register to get the book. http://www.mergere.com/m2book_download.jsp - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing running Maven 2.0.4
Yup ibiblio is sometimes very busy so it happens sometimes. If it's annoy you, Maven Proxy can help you there. On 5/31/06, Mike Perham [EMAIL PROTECTED] wrote: [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retrieved from repository: central due to an error: Error transferring file Sounds like a transient network problem. Try again. -Original Message- From: Vikramm [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 31, 2006 6:50 PM To: users@maven.apache.org Subject: Installing running Maven 2.0.4 Hello, I am using Maven for the first time. I downloaded maven 2.0.4 configured the required environment variables. When I try to run at the command prompt: mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app , its giving the error as follows. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] org.apache.maven.plugins: checking for updates from central [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retrieved from repository: central due to an error: Error transferring file [INFO] Repository 'central' will be blacklisted [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Wed May 31 19:13:42 EDT 2006 [INFO] Final Memory: 1M/2M [INFO] Pl help me identify the problem how can I correct that. Thanks, Vikram -- View this message in context: http://www.nabble.com/Installing+-+running+Maven+2.0.4-t1713822.html#a46 53977 Sent from the Maven - Users forum at Nabble.com. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn not finding SNAPSHOT using continuum
Try the url and you'll get a 404. From my experience, there are sometimes some problems with the Apache Snapshots repository. Whenever you use a snapshot version, just install the pom in an internal repository unless you want to always work with the latest nightly build. On 5/29/06, Adam Hardy [EMAIL PROTECTED] wrote: I am still trying to work out an issue with continuum: mvn can't find the snapshot to download despite having configuration for the snapshots repository on cvs.apache.org (see below). I think it might be that continuum is reading the repository configuration in the POM, but ignoring the snapshotsenabled setting on the cvs.apache.org repository. Obviously I have a couple of lines of investigation still open to me involving the source code, but any suggestions would be more than welcome! Original Message I'm setting up Continuum to run my multi-project and I have a couple of snapshot repositories configured along with my normal maven-proxy repo. Continuum gives me this error: [DEBUG] maven-site-plugin: resolved to version 2.0-beta-5 from repository apache.snapshots [DEBUG] Trying repository apache.snapshots Downloading: http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/plugins /maven-site-plugin/2.0-beta-5/maven-site-plugin-2.0-beta-5.pom [DEBUG] Artifact not found - using stub model: Unable to locate resource in repository org.apache.maven.plugins:maven-site-plugin:pom:2.0-beta-5 from the specified remote repositories: central (http://macari.uk.nomadsoft.com:20003/maven-proxy/m2-proxy-repo), codehaus.snapshots (http://snapshots.maven.codehaus.org/maven2/), apache.snapshots (http://cvs.apache.org/maven-snapshot-repository) [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-site-plugin:pom:2.0-beta-5 apache.snapshot is http://cvs.apache.org/maven-snapshot-repository which has the jar, but in the directory named 2.0-beta-5-SNAPSHOT So what's wrong with this picture? I guess it's staring me in the face but I don't see it. Below is my repository config in the parent pom. repositories repository idcentral/id urlhttp://macari.uk.nomadsoft.com:20003/maven-proxy/m2-proxy-repo/url /repository repository idapache.snapshots/id urlhttp://cvs.apache.org/maven-snapshot-repository/url snapshots enabledtrue/enabled /snapshots /repository repository idcodehaus.snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2/url snapshots enabledtrue/enabled /snapshots /repository /repositories pluginRepositories pluginRepository idcentral/id urlhttp://macari.uk.nomadsoft.com:20003/maven-proxy/m2-proxy-repo/url /pluginRepository pluginRepository idapache.snapshots/id urlhttp://cvs.apache.org/maven-snapshot-repository/url snapshots enabledtrue/enabled /snapshots /pluginRepository pluginRepository idcodehaus.snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2//url snapshots enabledtrue/enabled /snapshots /pluginRepository /pluginRepositories - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [maven2] Generating several artifacts per project ?
The EBJ plugin is able to generate secondary artifact (ejb-client) so yes it's possible but a very bad practice. On 5/26/06, ben short [EMAIL PROTECTED] wrote: Hi, What IDE and VC are you using? Ben On 5/26/06, sol myr [EMAIL PROTECTED] wrote: Hi, Newbie question: Is it possible to generate several artifacts (jars) from the same project ? I have a single project (single POM, with no sub-projects). I'd like to make it so that when I call 'mvn package', it will create 3 different jars (say, client.jar, server.jar, and util.jar), and place them all under 'target'. I *know* this goes agains the recommendations phylosophy of Maven2... But we really must limit ourselves to a single POM, due to limitations of my company's IDE and version control. Thanks. - Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. - 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]
Re: Notifier from command line
Well it should not be hard to write a plugin using JavaMail since all the information can already be injected from the pom. On 5/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks for your reply But i don't want to use any CI tool , coz my builds are based on only request and there are some other reason we don't want to use any CI tool thats why i'm looking for some way to send notification mail from command line Thanks, Raghu ben short [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 05/24/2006 04:34 PM Please respond to Maven Users List To: Maven Users List users@maven.apache.org cc: Subject:Re: Notifier from command line Maven Continuum can send notifications about the outcome of builds. But i guess you want to inform people that a new release is available and they should update their dependancies or use the -U flag. On 5/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi All, I googled lot but never got answere for this Is this possible to send build notification when we do command line build in maven like when i run mvn clean deploy from command line , if something fails / build success it should send a notificaiton to notifiers specified in pom or some where else??? Is this possible.. Please advise Thanks, Raghu - 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]
Re: NullPointerException in Release Plugin 2.0-beta-4
I got the same problem :) So thank for the info. On 5/22/06, Stefan Hübner [EMAIL PROTECTED] wrote: Any news on this issue, Emmanuel? Stefan 2006/5/19, Stefan Hübner [EMAIL PROTECTED]: Hi Emmanuel, sorry for the delay! 2006/5/18, Emmanuel Venisse [EMAIL PROTECTED]: The pb seems to be in extension rewriting. Do you have some extensions in your poms? Do you have a version for them? yes, there's an extension defined in the parent POM: ... groupIdki-commons/groupId artifactIdki-commons-parent/artifactId packagingpom/packaging nameKI Commons Parent/name version1.1/version build extensions extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-ssh-external/artifactId /extension /extensions as you see, there's no version to the wagen-extension. is that problematic? Stefan Stefan Hübner a écrit : oh, sorry! But, yes there is a version in my pom: ?xml version=1.0 encoding=UTF-8? project parent artifactIdki-commons-parent/artifactId groupIdki-commons/groupId version1.1/version /parent modelVersion4.0.0/modelVersion groupIdki-commons/groupId artifactIdki-foundation/artifactId nameKI Foundation/name version1.17.2-SNAPSHOT/version ... Stefan 2006/5/18, Emmanuel Venisse [EMAIL PROTECTED]: I didn't talk about release plugin version but about your pom version Emmanuel Stefan Hübner a écrit : no, but the latest version of maven-release-plugin in my local repository is 2.0-beta-4 Stefan 2006/5/18, Emmanuel Venisse [EMAIL PROTECTED]: Do you have a version defined in your pom? Emmanuel - 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]
Re: NullPointerException in Release Plugin 2.0-beta-4
Yup, solves the problem thank. On 5/23/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: I think you'll can fix your pb if you define the version of the extension in your pom. File an issue about it and we'll fix this problem. Emmanuel Stefan Hübner a écrit : Any news on this issue, Emmanuel? Stefan 2006/5/19, Stefan Hübner [EMAIL PROTECTED]: Hi Emmanuel, sorry for the delay! 2006/5/18, Emmanuel Venisse [EMAIL PROTECTED]: The pb seems to be in extension rewriting. Do you have some extensions in your poms? Do you have a version for them? yes, there's an extension defined in the parent POM: ... groupIdki-commons/groupId artifactIdki-commons-parent/artifactId packagingpom/packaging nameKI Commons Parent/name version1.1/version build extensions extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-ssh-external/artifactId /extension /extensions as you see, there's no version to the wagen-extension. is that problematic? Stefan Stefan Hübner a écrit : oh, sorry! But, yes there is a version in my pom: ?xml version=1.0 encoding=UTF-8? project parent artifactIdki-commons-parent/artifactId groupIdki-commons/groupId version1.1/version /parent modelVersion4.0.0/modelVersion groupIdki-commons/groupId artifactIdki-foundation/artifactId nameKI Foundation/name version1.17.2-SNAPSHOT/version ... Stefan 2006/5/18, Emmanuel Venisse [EMAIL PROTECTED]: I didn't talk about release plugin version but about your pom version Emmanuel Stefan Hübner a écrit : no, but the latest version of maven-release-plugin in my local repository is 2.0-beta-4 Stefan 2006/5/18, Emmanuel Venisse [EMAIL PROTECTED]: Do you have a version defined in your pom? Emmanuel - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Parent pom
Ok, before I was able to use parent poms without any problems but not anymore (I *think* it is since I upgraded to maven 2.0.4). Although the parent pom is installed in my local repository, Maven keeps trying to download it on crentral. When I run in offline mode, Maven complains he can't finds the parent pom. Any idea why? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven vs Ivy
At the moment, it's not doable out of the box but there have been countless discussions about some sort of features like this on this list. So expect some improvements in this area to make it in Maven 2.1. On the other hand, you can always use some profiles or a super pom to manage more cleanly big dependencies (with a lot of optionnal transitives dependencies). This is how I do for Spring and Hibernate. On 5/22/06, Wim Deblauwe [EMAIL PROTECTED] wrote: I know it does, but it does not support configurations of dependencies like I believe Ivy does. If you have a project X that can either depend on Y or Z depending on what you like, you would need to declare both dependencies optional in Maven altough it will not work if you omit both. You need to choose between Y or Z. This cannot be easily expressed with Maven2. regards, Wim 2006/5/22, Geoffrey De Smet [EMAIL PROTECTED]: Maven 2 supports optional dependencies. You can even exclude non-optional transitive dependencies. Wim Deblauwe wrote: Interesting, thanks for the link. The only thing that is really helpful in Ivy when looking at this page is the fact that you can choose between optional dependencies. I think Maven could use such a concept too. regards, Wim 2006/5/22, Jeff Mutonho [EMAIL PROTECTED]: On 5/22/06, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, I really love Maven, but people in my organisation seem to have noticed Ivy. I have not used Ivy, but I really like those nice screenshots. Are there any things Ivy does that Maven2 currently can't do? One thing I see is the nice depencency graph (but hopefully someone will code that during the Google Summer of Code:)). Any more thoughts on this? regards, Wim Could http://jayasoft.org/ivy/doc/m2comparison be of any help ? -- Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- With kind regards, Geoffrey De Smet - 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]
Re: Error Assembling WAR
Delete the whole plugin configuration section, you don't need if you use the defaults which are ok in most situations. Then put your java sources in src/main/java, web.xml in src/main/resources/WEB-INF and your jsp or html pages in src/main/webapp. From there everything should work. On 5/22/06, Leo L [EMAIL PROTECTED] wrote: Hi! I have a problem and i can´t fixed it. I can´t find web.xml when i try to packaging my war. My App. is an EAR, which i have an ejb packaging, jar and a War: When I packaging the war, i get a Build Error: Error assembling War... I saw the thread http://www.nabble.com/War+plugin+and+filtering+webapp+files-t1617964.html and didn´t help me, because some configurations that i saw was for Maven 1, and i´m using mave 2. Here is my war(web) pom.xml ... build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId executions execution goals goalwar/goal /goals configuration warSourceDirectorysrc/warSourceDirectory webResources resource directoryWebRoot/directory filteringfalse/filtering includes include**/*.xml/include /includes /resource /webResources /configuration /execution /executions /plugin ... /plugins /build How can I fixed it?? Anyone can send me a pom.xml example with a configuration that works. Any help would be great... Regards, Leo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT]This list and Gmail
I use labels/filters in gmail and it's work great! On 5/22/06, ben short [EMAIL PROTECTED] wrote: I wonder if its gmail thats the problem. I would say probably as its stil beta. On 5/22/06, Piéroni Raphaël [EMAIL PROTECTED] wrote: me Raphaël 2006/5/22, ben short [EMAIL PROTECTED]: Hi, Up untill this weekend, when i posted to this list i would see the email i sent in my gmail inbox. For some reason this has changed, and i dont see the post untill its replied too. Anyone else seeing this problem? Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-jar-plugin 2.1-SNAPSHOT
I had the same error, there is definitly something wrong in Maven 2.0.4 with remote snapshots repositories. Install it manually and everything work fine. On 5/20/06, ben short [EMAIL PROTECTED] wrote: I get the following error while trying to build the maven repository manager. Any ideas where i can get the snapshot? [INFO] [INFO] snapshot org.apache.maven.plugins:maven-jar-plugin:2.1-SNAPSHOT:checking for updates from apache.snapshots [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] A required plugin was not found: Plugin could not be found - check that the goal name is correct: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.plugins-DartifactId=maven-jar-plugin \ -Dversion=2.1-SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file org.apache.maven.plugins:maven-jar-plugin:maven-plugin:2.1-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) org.apache.maven.plugins:maven-jar-plugin:maven-plugin:2.1-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: urgent - downloading of snapshot not working, aaaargh!
This is really an annoying bug. Impossible to install the repository manager without installing manually the jar plugin first. On 5/20/06, Pete [EMAIL PROTECTED] wrote: Just bumping this up the list, as this is still an issue for us. On 18/05/06, Alexandre Poitras [EMAIL PROTECTED] wrote: Also try to delete the metadata file in your local repository, I don't know why but it has fixed this kind of trouble for me in the past. I agree with you, snapshots handling seems weird lately... Maybe you're right and this is a regression bug of Maven 2.0.4. On 5/18/06, Alexandre Poitras [EMAIL PROTECTED] wrote: Weird, when you use the -U option on the command line, does it work? On 5/18/06, Pete [EMAIL PROTECTED] wrote: I have just tried a simple new project (with no parent). Did a mvn deploy on this. Then set up a new simple jar project and declared a dependency to above. But again the newly deploy snapshots don't get downloaded (not after the initial download) Are snapshots working for anyone ? On 18/05/06, Jörg Schaible [EMAIL PROTECTED] wrote: Hi Pete, Pete wrote on Thursday, May 18, 2006 9:51 AM: Jorg, Are you thinking that this has regressed then ? As I've successfully used maven 2.0.0 and 2.0.1 with deploying 1.0-SNAPSHOTS successfully ? Can't say, we started serious work with 2.0.4. - Jörg [snip] - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-jar-plugin 2.1-SNAPSHOT
By the way, don't post three mails about the same thing. It's a bit annoying On 5/20/06, Alexandre Poitras [EMAIL PROTECTED] wrote: I had the same error, there is definitly something wrong in Maven 2.0.4 with remote snapshots repositories. Install it manually and everything work fine. On 5/20/06, ben short [EMAIL PROTECTED] wrote: I get the following error while trying to build the maven repository manager. Any ideas where i can get the snapshot? [INFO] [INFO] snapshot org.apache.maven.plugins:maven-jar-plugin:2.1-SNAPSHOT:checking for updates from apache.snapshots [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] A required plugin was not found: Plugin could not be found - check that the goal name is correct: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.plugins-DartifactId=maven-jar-plugin \ -Dversion=2.1-SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file org.apache.maven.plugins:maven-jar-plugin:maven-plugin:2.1-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) org.apache.maven.plugins:maven-jar-plugin:maven-plugin:2.1-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Structure of an Internal Repository
There is nothing to do except making it accessible and filling it using the deploy plugin. Now if you want a proxy, that's another thing and you should check Maven Proxy project. On 5/20/06, Mike [EMAIL PROTECTED] wrote: Hi All, I'm new to Maven and I'm trying setup an internal repository. I've done a lot of searching but there doesn't seem to be a lot of information on how to set up an internol repository. I'd appreciate it if someone could outline the steps or point me to a link. Thanks, Mike - 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]
Re: maven-jar-plugin 2.1-SNAPSHOT
Here http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-site-plugin/ Just checkout the code and run mvn install. On 5/20/06, ben short [EMAIL PROTECTED] wrote: Alexandre, Thanks for the reply, the emails i posted dint show in my inbox for some reason, so i assumed that they didnt get sent properly. Do you know where i can get the snapshots from? Ben On 5/20/06, Alexandre Poitras [EMAIL PROTECTED] wrote: By the way, don't post three mails about the same thing. It's a bit annoying On 5/20/06, Alexandre Poitras [EMAIL PROTECTED] wrote: I had the same error, there is definitly something wrong in Maven 2.0.4 with remote snapshots repositories. Install it manually and everything work fine. On 5/20/06, ben short [EMAIL PROTECTED] wrote: I get the following error while trying to build the maven repository manager. Any ideas where i can get the snapshot? [INFO] [INFO] snapshot org.apache.maven.plugins:maven-jar-plugin:2.1-SNAPSHOT:checking for updates from apache.snapshots [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] A required plugin was not found: Plugin could not be found - check that the goal name is correct: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.plugins-DartifactId=maven-jar-plugin \ -Dversion=2.1-SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file org.apache.maven.plugins:maven-jar-plugin:maven-plugin:2.1-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) org.apache.maven.plugins:maven-jar-plugin:maven-plugin:2.1-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) - 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]
Re: maven-jar-plugin 2.1-SNAPSHOT
Oops wrong plugin http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-jar-plugin/ This is the correct location. On 5/20/06, Alexandre Poitras [EMAIL PROTECTED] wrote: Here http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-site-plugin/ Just checkout the code and run mvn install. On 5/20/06, ben short [EMAIL PROTECTED] wrote: Alexandre, Thanks for the reply, the emails i posted dint show in my inbox for some reason, so i assumed that they didnt get sent properly. Do you know where i can get the snapshots from? Ben On 5/20/06, Alexandre Poitras [EMAIL PROTECTED] wrote: By the way, don't post three mails about the same thing. It's a bit annoying On 5/20/06, Alexandre Poitras [EMAIL PROTECTED] wrote: I had the same error, there is definitly something wrong in Maven 2.0.4 with remote snapshots repositories. Install it manually and everything work fine. On 5/20/06, ben short [EMAIL PROTECTED] wrote: I get the following error while trying to build the maven repository manager. Any ideas where i can get the snapshot? [INFO] [INFO] snapshot org.apache.maven.plugins:maven-jar-plugin:2.1-SNAPSHOT:checking for updates from apache.snapshots [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] A required plugin was not found: Plugin could not be found - check that the goal name is correct: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.plugins-DartifactId=maven-jar-plugin \ -Dversion=2.1-SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file org.apache.maven.plugins:maven-jar-plugin:maven-plugin:2.1-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) org.apache.maven.plugins:maven-jar-plugin:maven-plugin:2.1-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) - 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]
Re: [m2][site] Skin developmetn advice wanted
You have to place it under src/resources/meta-inf/maven/site.vm in your skin projet. Work like a charm. On 5/19/06, Wayne Fay [EMAIL PROTECTED] wrote: I think you're looking for: build plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId configuration templateDirectory${basedir}/templateDirectory templatemaven-site.vm/template /configuration /plugin /build Wayne On 5/19/06, Mikael Andersson [EMAIL PROTECTED] wrote: Hi, I thought that was the old way of doing it, without the skinning. In the create a skin part of the documentation [1] , there is a section which says to use the default template from the doxia-siterenderer jar file. - Micke [1]http://maven.apache.org/plugins/maven-site-plugin/creating-a-skin.html On 19/05/06, Vance Karimi [EMAIL PROTECTED] wrote: You are right to add the configuration to your pom. Have a look at http://maven.apache.org/plugins/maven-site-plugin/howto.html section How to change the site template. -Original Message- From: Mikael Andersson [mailto:[EMAIL PROTECTED] Sent: Friday, 19 May 2006 9:36 PM To: Maven Users List Subject: Re: [m2][site] Skin developmetn advice wanted Hi, just tried modifying the default-site.vm template, but the changes didn't come across! I tried putting the modified template in these folders of my skin maven project: resources/ resources/org/apache/maven/doxia/siterenderer/resources Anyone know where to put it, or do I have to specify in the POM that I want to override the template? - Micke On 04/05/06, Alexandre Poitras [EMAIL PROTECTED] wrote: It's seems to have been moved to the doxia project (make more sense) : http://svn.apache.org/repos/asf/maven/doxia/trunk/doxia-site- renderer/src/main/resources/org/apache/maven/doxia/siterenderer/resources/ default-site.vm On 5/4/06, Mikael Andersson [EMAIL PROTECTED] wrote: Hi, I can't find a velocity template in the plugin jar file? The content of my site plugin jar file: [EMAIL PROTECTED] tmp2]$ jar -tf ~/.m2/repository/org/apache/maven/plugins/maven-site-plugin/2.0- SNAPSHOT/maven- site-plugin-2.0- SNAPSHOT.jar | grep vm [EMAIL PROTECTED] tmp2]$ jar -tf ~/.m2/repository/org/apache/maven/plugins/maven-site-plugin/2.0- SNAPSHOT/maven- site-plugin-2.0-SNAPSHOT.jar META-INF/ META-INF/MANIFEST.MF META-INF/maven/ org/ org/apache/ org/apache/maven/ org/apache/maven/plugins/ org/apache/maven/plugins/site/ org/apache/maven/plugins/site/webapp/ webapp/ default-site.xml META-INF/maven/plugin.xml org/apache/maven/plugins/site/AbstractSiteMojo.class org/apache/maven/plugins/site/AbstractSiteRenderingMojo.class org/apache/maven/plugins/site/CategorySummaryDocumentRenderer.class org/apache/maven/plugins/site/ReportComparator.class org/apache/maven/plugins/site/ReportDocumentRenderer.class org/apache/maven/plugins/site/SiteDeployMojo.class org/apache/maven/plugins/site/SiteDescriptorArtifactMetadata.class org/apache/maven/plugins/site/SiteDescriptorAttachMojo.class org/apache/maven/plugins/site/SiteMojo.class org/apache/maven/plugins/site/SiteRunMojo.class org/apache/maven/plugins/site/SiteStageMojo.class org/apache/maven/plugins/site/webapp/DoxiaFilter.class site-plugin.properties site-plugin_de.properties site-plugin_es.properties site-plugin_fr.properties site-plugin_it.properties site-plugin_ja.properties site-plugin_nl.properties site-plugin_pl.properties site-plugin_pt_BR.properties site-plugin_zh_CN.properties webapp/web.xml META-INF/maven/org.apache.maven.plugins/ META-INF/maven/org.apache.maven.plugins/maven-site-plugin/ META-INF/maven/org.apache.maven.plugins/maven-site-plugin/pom.xml META-INF/maven/org.apache.maven.plugins/maven-site- plugin/pom.properties Content of the default skin jar file: [EMAIL PROTECTED] tmp2]$ jar -tf ~/.m2/repository/org/apache/maven/skins/maven-default-skin/1.0- SNAPSHOT/maven- default-skin-1.0-SNAPSHOT.jar META-INF/ META-INF/MANIFEST.MF css/ images/ css/maven-theme.css images/external.png images/icon_error_sml.gif images/icon_info_sml.gif images/icon_success_sml.gif images/icon_warning_sml.gif images/newwindow.png META-INF/maven/ META-INF/maven/org.apache.maven.skins/ META-INF/maven/org.apache.maven.skins/maven-default-skin/ META-INF/maven/org.apache.maven.skins/maven-default-skin/pom.xml - Micke On 04/05/06, Alexandre Poitras [EMAIL PROTECTED] wrote: You should put the velocity template under /meta-inf/maven/site.vm. Start from the one you found in the site plugin