Re: XML-RPC scripts to kick off the continuum builds with subversion
apologies - wrong list for continuum :( Andrew Williams wrote: (Cross-posting so we can move this to the continuum users list) The python scripts are getting worked on. I am currently waiting for 2 or 3 patches to be committed (check JIRA) Once they are in I will tidy it up further. I intend to fix it up completely to the java api, but it is difficult without commit access. A p.s. yes, next I will work on the Java client side code, that is now more out of date than the python :( Toli Kuznets wrote: To follow-up on an old thread from http://mail-archives.apache.org/mod_mbox/maven-users/200607.mbox/[EMAIL PROTECTED] I was forwarded a set of old python scripts (thanks Tom) that interface with Conntiuum using XML-RPC to force the builds. These are actually based on the code from http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-sandbox/continuum-python/ However, i found that the calling code in python files does not correspond to the latest in java API: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-xmlrpc/src/main/java/org/apache/maven/continuum/xmlrpc/ Anyway, i made some modifications to continuum.py to match the actual function names and # of params in the Java code, and wrote a simple script that just always forces all the builds. To make this work for those of you that want it, make these changes: 1. modify continuum.py to specify the right address for your continuum server 2. modify your continuum/app/conf/application.xml to enable XML-RPC and restart continuum 3. place the .py files somewhere (mine are in svn-repo/hooks directory) 3. modify your svn-repo/hooks/post-commit file to run the forceBuilds.py script enjoy. if someone with authority wants to add this to the sandbox directory, that'd be great. On 7/14/06, dan tran [EMAIL PROTECTED] wrote: you will need to get your svn's hook script's postcommit/postcommit.bat to call a jvm with your java app that talk to continuum via XMLRPC. so the gut is the java code, not the script. Sorry I know this in theory only, but very comfortable it would work this way. -- Toli Kuznets http://www.marketcetera.org: Open-Source Trading Platform download.run.trade. - 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 stop a build in continuum
It's a little bug in 1.0.3. After a continuum restart, click on build all button. Emmanuel Badre AKARIDAN a écrit : Him I'm new user of continuum and I have a problem with one task. A build was launch automatically 23 days ago and he is again in progress. So I want to know, how can i stop it? I stop the continuum server and restart it but he's running again. Do you have any idea for to fix this problem Thanks, PS: sorry for my timid english Badre
installing sources to local repository by means of install plugin
Hi all I am missing documentation about how to install sources packed by the source plugin into the local repository. I want to avoid file copying because I assume I should be able to do it with the install plugin. I assume that the sources postfix is a dependency classifier, so I was hoping to be able to use a classifier argument to the install:install-file plugin, as it is possible with the deploy:deploy-file plugin. Any hints appreciatet, Simon
RE: How can I tell Maven to use my internal repository first?
Hi, Reading the book, Better builds with maven, on pg 28 it is suggested that the order in which you have defined repositories in your POM will determine the order maven will use to retrieve dependencies. Thanks Lakshman -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Tuesday, 8 August 2006 6:33 AM To: Maven Users List Subject: Re: How can I tell Maven to use my internal repository first? Most people resolve this by setting up a Maven Proxy (or Proximity) in their local corporate environment. Then you can configure your proxy to look at Central and/or local internal repo for artifacts. Wayne On 8/7/06, Wayne Fay [EMAIL PROTECTED] wrote: You can't tell Maven to check your local repo first. You can however override Central (with mirrorOf in settings) but then you will not able to connect to Central at all. Wayne On 8/7/06, Daniel Serodio [EMAIL PROTECTED] wrote: I have setup an internal repository in our intranet, and added it to the project's POM, but Maven still tries repo1.maven.org before trying our internal repo. How can I tell it to try my internal repository first? It's the only one listed in the project's POM. Maven is 2.0.4 TIA, Daniel Serodio - 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: Jar With Dependencies
Douglas Ferguson [EMAIL PROTECTED] writes: Does anybody have a suggestion for creating a jar with dependencies that has all the dependencies exploded? There is an unpack tag in assembly descriptor that does this. http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html If I send them a jar with dependencies, then they would have to crack the jar open, because the classloader won't read a jar within a jar. I think that classworlds can do this. You could also write a simple wrapper classloader that launches your application. I did this once to ensure platform-independent classpath resolution as I could not write a script in windows that would add a list of jars in one lib to classpath (not an expert rin windows scripting obviously). If you are interested by this small snippet, I can send you. BTW, IBM released recently a tool for doing just that kind of things (loading jars from jars). Lost references to it. regards -- 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]
Re: Is it possible to build Eclipse 3.1 plugins using M2 ?
there was a thread one month ago approximately about it (subject: eclipse plugin archetype?) where some improvements in the maven-eclipse-plugin could allow to build a maven eclipse. let me know if you don't find it. On 8/23/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote: Does any plugin exists in Maven2 to build eclipse 3.1 plugins ? -- http://valerioschiavoni.blogspot.com http://jroller.com/page/vschiavoni
Re: Is it possible to build Eclipse 3.1 plugins using M2 ?
after a quick search, i found it my self. adding these lines to your pom: plugin artifactIdmaven-eclipse-plugin/artifactId version2.3-SNAPSHOT/version configuration pdetrue/pde /configuration /plugin you should be able at least to compile an eclipse plugin. On 8/23/06, Valerio Schiavoni [EMAIL PROTECTED] wrote: improvements in the maven-eclipse-plugin -- http://valerioschiavoni.blogspot.com http://jroller.com/page/vschiavoni
Re: Is it possible to build Eclipse 3.1 plugins using M2 ?
There is also a thread about building eclipse RCP apps but i believe this is for eclipse 3.2 : http://www.nabble.com/Eclipse-bundle-howto-tf2065506.html#a5690799 Stéphane. Valerio Schiavoni a écrit : after a quick search, i found it my self. adding these lines to your pom: plugin artifactIdmaven-eclipse-plugin/artifactId version2.3-SNAPSHOT/version configuration pdetrue/pde /configuration /plugin you should be able at least to compile an eclipse plugin. On 8/23/06, Valerio Schiavoni [EMAIL PROTECTED] wrote: improvements in the maven-eclipse-plugin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m204] JDevloper plugin not found
Everything under groupId maven is legacy from maven 1, even if it's in the maven 2 repository. You can't use a m1 plugin in m2. So take a look at what is below groupId org.apache.maven.plugins and org.codehaus.mojo Mick Knutson wrote: The plugin 'org.apache.maven.plugins:maven-jdeveloper-plugin' does not exist or no valid version could be found plugin groupIdmaven/groupId artifactIdmaven-jdeveloper-plugin/artifactId version1.4/version /plugin The plugin is located at http://www.ibiblio.org/maven2/maven/maven-jdeveloper-plugin/1.4/ --- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson -- With kind regards, Geoffrey De Smet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ant plugin and javah
Hello, I solved the problem by following trick : tasks exec executable=ant failonerror=true/ /tasks that is ti say I use the ant version that is installed on my computer. But it is not very portable ... another question : is it possible to execute several ant tasks in the same pom ? when I try to define several execution tags (for different compilation phases, for instance compile and clean), I only get error messages. pierre Quoting Dave Syer [EMAIL PROTECTED]: How is it possible to tell the plugin to use more libraries ? for instances the ones that are present in $ANT_HOME/lib/ ? I don't know about $ANT_HOME/lib (maven isn't using $ANT_HOME so it probably isn't going to see those jars). Have you tried adding dependencies to the plugin in your build element? -- View this message in context: http://www.nabble.com/getting-the-sources-and-javadocs-tf2141673.html#a5930104 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Pierre Parrend doctorant, moniteur laboratoire CITI, 21, Av. Jean Capelle 69621 Villeurbanne Cedex [EMAIL PROTECTED] www.rzo.free.fr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Use System Properties in Settings.xml?
-Original Message- From: Sharma, Jaikumar [mailto:[EMAIL PROTECTED] Sent: 19 August 2006 08:51 To: Maven Users List Subject: RE: Use System Properties in Settings.xml? As I had initially mentioned, this works for me, not sure about adding ENV as a prefix to MAVEN_HOME. localRepository${MAVEN_HOME}/repository/localRepository -Original Message- From: Eric Redmond [mailto:[EMAIL PROTECTED] ==== I believe you need to prefix environment variables with ENV, so you may need ${ENV.MAVEN_HOME}. Eric Hi Instead of using a system property is there a way to define a system property by default in settings.xml ? ==== -- Peter Pilgrim UBS Investment Bank, PTS Portal / IT FIRC OPS LDN, 100 Liverpool Street, London EC2M 2RH, United Kingdom +44 (0) 20 75 75692 :: Java EE / E-Commerce / Enterprise Integration / Development :: Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Compilation errors on web site
Hello, Is there a way to display compilation errors on generated maven's project web site? Do we have to use continuum? Thanks in advance. Franck HUGOT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Create Dynamic Web Projects of Enterprise Projects under Eclipse WTP
Hello, I m currently I m trying to interoperate maven 2 and eclipse 3.2 I have installed WTP and maven2 plugin .I would like to communicate with OC4J (deploy, debug,...) .For my tests I have a complex J2EE project which have several artifacts (2 webapps, 1 ejb, 1 ear,few jars) When I start the target eclipse:eclipse on the top level project, maven doesn t seem to create a good configuration for the ear project. I have for these projects the configuration of a simple java project. How may I configure maven or the eclipse plugin to set up correctly these artifacts? Thanks in advance for your help! Regards, Alexandre Touret - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
multiproject plugin
hi all i am building multiproject through maven 1.0.2 with the help of maven:recator by defining the following in maven.xml maven:reactor basedir=${basedir} includes=**/project.xml goals=clean:clean,war:deploy,jar:deploy,ear:deploy banner=Building ignoreFailures=false / it is working well but what happen that the all four goals are running for each module but i only want that the specific module will run for each type of project for that i define the maven.multiproject.type=(war,jar,ear) as i required in our module but i am not geeting theresult as my need due ,all four gaol are running for each module , i am not able to get that it is its feature or there is somthing which i am lacking in my project.properties to define any one can help me where i am wrong Regards Neeraj
Re: maven-cobertura-plugin upgraded to cobertura 1.8 - (Was: Re: Cobertu
This is great news, thanks for the update! Any idea when version 2.1 will be available through iBiblio? I can't seem to find the snapshot release. Cheers, GB Joakim Erdfelt-2 wrote: Funny that this should come up. I just committed MCOBERTURA-46 (Upgrade to cobertura 1.8) just a minute ago. There is a bug in the datafile location setting ability in cobertura 1.8 I have arranged a patch on the cobertura side, but need help from other interested parties to get it commited into the cobertura codebase. See: https://sourceforge.net/tracker/index.php?func=detailaid=1543280group_id=130558atid=720017 - Joakim Erdfelt Wayne Fay wrote: This can only happen with a new cobertura-maven-plugin release, which is up to the owners of the c-m-p plugin. You will probably need to speak with them directly to find out when they plan a new release of this plugin, etc. Wayne On 8/22/06, Guillaume Bilodeau [EMAIL PROTECTED] wrote: Jimisola Laursen wrote: Hi! Not sure who is responsible, but I've been trying to make cobertura-maven-plugin use cobertura 1.8 instead of 1.7 due to problems with AspectJ. In the process of this I get the error below and it looks as if the deployed cobertura 1.8 contains errors. Not sure of who can fix this I post this here. Regardsm Jimisola [WARNING] POM for 'cobertura:cobertura:pom:1.8:runtime' is invalid. It will be ignored for artifact resolution. Reason: Parse error reading POM. Reason: expected START_TA G or END_TAG not TEXT (position: TEXT seen .../version\r\n urlhttp://asm.objectweb.org/... @12:38) [DEBUG] Reason: Parse error reading POM. Reason: expected START_TAG or END_TAG not TEXT (position: TEXT seen .../version\r\n urlhttp://asm.objectweb.org/... @12 :38) About the fact that the cobertura-maven-plugin still uses Cobertura 1.7 and not 1.8: will this be fixed eventually? I'm running into the same problems with AspectJ here. Of course I could just update our local POM files, but I would prefer the cleaner solution :) Cheers, GB -- View this message in context: http://www.nabble.com/Cobertura-1.8-pom-%28on-ibiblio%29-contains-errors-and-is-invalid-tf2058878.html#a5921143 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] -- View this message in context: http://www.nabble.com/Cobertura-1.8-pom-%28on-ibiblio%29-contains-errors-and-is-invalid-tf2058878.html#a5941527 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : Web site generation for multiple projects
Hi Arnaud, What does : menu name=Common Links inherit=top / achieve ? Thanks Jon Arnaud Bailly [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thomas Van Buskirk [EMAIL PROTECTED] writes: I tried this and the modules didn't display. All I saw was the Modules menu with no modules displayed below them. I looked on JIRA and it seems there is a bug for it: http://jira.codehaus.org/browse/MSITE-86 It says that it's fixed in 2.0-beta-5 (i'm assuming that means 2.0.5) Does anyone have a workaround for version 2.0.4? Actually, it works for me in 2.0.4. I use the following site.xml: ?xml version=1.0 encoding=ISO-8859-1? project name=Framework LDAP bannerRight hrefhttp://sourceforge.net/href srchttp://sflogo.sourceforge.net/sflogo.php?group_id=169899amp;type=1/src nameSorugeforge/name /bannerRight body links item name=Maven href=http://maven.apache.org/; / /links menu name=Documentation href=/index.html collapsed=true item name=User guide href=/user-guide.html/ item name=French documentation href=/fr/index.html/ /menu menu ref=modules / /body /project regards PS: in the children, I have ?xml version=1.0 encoding=ISO-8859-1? project name=Framework LDAP body links item name=Maven href=http://maven.apache.org/; / /links menu name=Common Links inherit=top / menu ref=parent / ${reports} /body /project -- 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]
Re: exec plugin - how to define more than one?
Hi, Put the configuration within an execution for each executable you require. Cheers Jon iceman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've been able to successfully define the configuration for a single execution, but I would like to define more than one. IOTW, I have the following: ... plugin groupIdorg.codehaus.mojo/groupId artifactIdexec-maven-plugin/artifactId executions execution idclient/id goals goalexec/goal /goals /execution /executions configuration executablefoo/executable arguments argument-classpath/argument classpath/ argumentA B C D/argument /arguments /configuration !-- This doesn't work - you'll have to pass everything on the cmdline! configuration executablebar/executable arguments argumentX Y Z/argument /arguments /configuration -- /plugin As you can see, I can define how to run foo, but not bar. I would like to do both, since it will be common for users of the software to run more than one application. -- View this message in context: http://www.nabble.com/exec-plugin---how-to-define-more-than-one--tf2149338.html#a5935357 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: using archiva as a maven1 repo proxy...
I've found myslef the reponse for question 1 : org.apache.maven.repository.discovery.LegacyArtifactDiscoverer I think the javadoc.jars type is missing. This is not a commonly used type but support for it has been added in maven1 eclipse plugin. I've created http://jira.codehaus.org/browse/MRM-152 for it and attached a patch. question 2. may be more difficult... Nicolas De Loof a écrit : Two questions about archiva support for maven1 repository requests : 1. How does archiva extracts artifactId / version from maven1 request ? I have created a quick dirty converter for my repo and wanted to use the ibilio regexp to convert, but I got issues for artifact which artifact ID has multiple parts separated by -. I solved it by not useing regexp but parsing the name for - and searchnig the first element starting with a digit char, but it fails for groovy-1.0-jsr-06.jar (version found is 1.0-jsr-06) 2. Could archiva support relocation for maven1 request ? As maven1 has no relocation mecanism, it would be great to avoid muliple artifacts for same jar (let's say servletapi...) and use maven2 relocation to automagically convert /servletapi/jars/servletapi-2.5.jar to /javax/servlet/servlet-api/2.5/servlet-api-2.5.jar. This requires archiva proxy to be not a simple proxy, but also a maven2 agent and search for POM when looking for an artifact... This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
Re: XML-RPC scripts to kick off the continuum builds with subversion
(Cross-posting so we can move this to the continuum users list) The python scripts are getting worked on. I am currently waiting for 2 or 3 patches to be committed (check JIRA) Once they are in I will tidy it up further. I intend to fix it up completely to the java api, but it is difficult without commit access. A p.s. yes, next I will work on the Java client side code, that is now more out of date than the python :( Toli Kuznets wrote: To follow-up on an old thread from http://mail-archives.apache.org/mod_mbox/maven-users/200607.mbox/[EMAIL PROTECTED] I was forwarded a set of old python scripts (thanks Tom) that interface with Conntiuum using XML-RPC to force the builds. These are actually based on the code from http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-sandbox/continuum-python/ However, i found that the calling code in python files does not correspond to the latest in java API: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-xmlrpc/src/main/java/org/apache/maven/continuum/xmlrpc/ Anyway, i made some modifications to continuum.py to match the actual function names and # of params in the Java code, and wrote a simple script that just always forces all the builds. To make this work for those of you that want it, make these changes: 1. modify continuum.py to specify the right address for your continuum server 2. modify your continuum/app/conf/application.xml to enable XML-RPC and restart continuum 3. place the .py files somewhere (mine are in svn-repo/hooks directory) 3. modify your svn-repo/hooks/post-commit file to run the forceBuilds.py script enjoy. if someone with authority wants to add this to the sandbox directory, that'd be great. On 7/14/06, dan tran [EMAIL PROTECTED] wrote: you will need to get your svn's hook script's postcommit/postcommit.bat to call a jvm with your java app that talk to continuum via XMLRPC. so the gut is the java code, not the script. Sorry I know this in theory only, but very comfortable it would work this way. -- Toli Kuznets http://www.marketcetera.org: Open-Source Trading Platform download.run.trade. - 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: XML-RPC scripts to kick off the continuum builds with subversion
apologies - wrong list for continuum :( Andrew Williams wrote: (Cross-posting so we can move this to the continuum users list) The python scripts are getting worked on. I am currently waiting for 2 or 3 patches to be committed (check JIRA) Once they are in I will tidy it up further. I intend to fix it up completely to the java api, but it is difficult without commit access. A p.s. yes, next I will work on the Java client side code, that is now more out of date than the python :( Toli Kuznets wrote: To follow-up on an old thread from http://mail-archives.apache.org/mod_mbox/maven-users/200607.mbox/[EMAIL PROTECTED] I was forwarded a set of old python scripts (thanks Tom) that interface with Conntiuum using XML-RPC to force the builds. These are actually based on the code from http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-sandbox/continuum-python/ However, i found that the calling code in python files does not correspond to the latest in java API: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-xmlrpc/src/main/java/org/apache/maven/continuum/xmlrpc/ Anyway, i made some modifications to continuum.py to match the actual function names and # of params in the Java code, and wrote a simple script that just always forces all the builds. To make this work for those of you that want it, make these changes: 1. modify continuum.py to specify the right address for your continuum server 2. modify your continuum/app/conf/application.xml to enable XML-RPC and restart continuum 3. place the .py files somewhere (mine are in svn-repo/hooks directory) 3. modify your svn-repo/hooks/post-commit file to run the forceBuilds.py script enjoy. if someone with authority wants to add this to the sandbox directory, that'd be great. On 7/14/06, dan tran [EMAIL PROTECTED] wrote: you will need to get your svn's hook script's postcommit/postcommit.bat to call a jvm with your java app that talk to continuum via XMLRPC. so the gut is the java code, not the script. Sorry I know this in theory only, but very comfortable it would work this way. -- Toli Kuznets http://www.marketcetera.org: Open-Source Trading Platform download.run.trade. - 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]
m2eclipse vs. eclipse:eclipse
(This is a repost of a previous mail, with a new, more appropriate subject For the eclipse part, you should run eclipse:eclipse from the root project to use project dependency instead of binary dependency (ie a module will directly use another module as its dependency instead of using the produced jar). hmmm OK, I was using the eclipse plugin from http://m2eclipse.codehaus.org, and the dependencies were set that way (binary) by the Maven2/Update Source Folders option from the project context menu. I like the plugin as it lets me run mvn from the context menu, it executes a build whenever I modify the pom. So the way to go right now would be to eclipse:eclipse the main module, and then NOT to use the plugins Maven2/Update Source Folders option but manually add things to pom, and then eclipse:eclipse again? I found something about a marriage of those two http://jira.codehaus.org/browse/MECLIPSE-78 but I don't know if it's still valid, or maybe there is another way to get those two working together? hmm??? -- Wojtek Biela - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT][ANN] JAVAWUG BOF XX Videos Uploaded
Hi The JAVAWUG is happy to announce two new videos uploaded to Google Video of the birds-of-a-feather meeting number 20. Petstore RIFE Edition by Emmanuel Okyere http://video.google.com/videoplay?docid=37561501217859187q=JAVAWUG+BOF+ XX Rearchitecting Legacy J2EE Applications with the Spring Framework by Peter Pilgrim http://video.google.com/videoplay?docid=-4427639624207114903q=JAVAWUG+B OF+XX Enjoy. Thanks -- Peter Pilgrim JUG Leader, Java Web User Group http://jroller.com/page/javawug Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Building MyEclipse project with Maven2
Hi Guys, I'm having a problem building myEclipse project using m2. The main issue is that it's not in default maven file structure. It looks like this myProject src com/company... all java sources go here WebRoot *.jsp all jsp files are here WEB-INF Xmls Classes compiled classes should be placed here POM.xml The first task is to get maven to compile it and place classes to WebRoot/WEB-INF/classes It could be done by saying following build sourceDirectorysrc/sourceDirectory outputDirectoryWebRoot/WEB-INF/classes/outputDirectory /build But how can I manage to create war file when it doesn't really know where my jsps/xmls are? Basically after the compilation all it has to do is to grab WebRoot and just work with it... I couldn't really find a solution, any help would be appreciated. Cheers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 2.0 - Common resource problem
Hi Jim, I just would like to thank you, it has helped to solve my problem :) This was what I had in mind but I didn't know how to actually do it, thanks to your solution I could have the job done. Kind regards, David 2006/8/22, Jim Stafford [EMAIL PROTECTED]: I had the same issue with schema files. I wanted to find a more elegant solution using zip files or the assembly plugin, but all fell short of what I really wanted. I got the job done with the following, but will be watching this thread for a better solution. I ... a) packaged the reusable files into a jar artifact b) unjar only the files I needed out of the artifact using the Ant unjar task and maven-antrun-plugin. It worked except referencing the assembly from within the Ant code was not as clean as I'd like. //declare dependency !-- get a copy of the ddl -- plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-sources/phase configuration tasks unjar dest=${basedir}/target/schema overwrite=true fileset dir=${user.home}/.m2/repository include name=**/schemaBook-${pom.version}*.jar/ /fileset patternset include name=**/*.ddl/ /patternset /unjar /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin David Blain wrote: Hi, I'm having the following problem which I don't know how to handle in Maven: I have some jar projects which are/can being used by different war projects, no problem here. The problem is that is have a jar project (not war), which also has some related common resources (like eg html/jsp files). Those resources (that are related to that jar project) should be injected in the root of the war project at assembly (package goal in Maven). I figured that I could package those common resources in a seperate project as a zip, still I don't know if this is possible and how it should be done? Then I also wonder how that zip could be extracted into the root of that war project at assembly? Maybe I'm working completely wrong in Maven? To repeat: 1. I have a common jar project which can be used by differnt kinds of war projects (no surprise here). 2. I have a common resources projects containing html and jsp files which will be used by different war projects if they use the above mentioned jar project. How do I integrate this with Maven? Kind regards, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Proximity RC4 rolled out!
Hi, yes, the RC4 is 4 times big because the XFire and dependencies - directors uncut version :) -- did not have time to clean that mess up. Anyway, Proximity is coming now in multiple flavours, so anybody can cherrypick the most appealing size WAR :) Yes, emergeGroups are available http://trac.abstracthorizon.org/proximity/ticket/26 and thanx to fixed http://trac.abstracthorizon.org/proximity/ticket/32 you are now completely free to make (or not) repo aggregation by configuring repoGroups and emerge option. ~t~ On 8/23/06, Adrian Shum [EMAIL PROTECTED] wrote: Thanks a lot for the great work. BTW, is it normal that the webapp size become almost 4 times of the previous version? http://trac.abstracthorizon.org/proximity/query?status=closedmilestone=Proximity+Release+1.0.0-RC4 Just wanna see if the repo group feature is available in this version? (as it seems not mentioned in the trac entires) As I would want to have something like http://localhost:8080/px-webapp/repository/non-snapshot and http://localhost:8080/px-webapp/repository/snapshot in my environment :) Thanks a lot again for your great work ^__^ Adrian -Original Message- From: Tamas Cservenak [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 7:24 AM To: Maven Users List Subject: [ANN] Proximity RC4 rolled out! Hi All, the Proximity is finally got to RC4. It has three major improvements: aggregated metadata checksum is correctly calculated, emergeGroups that enables proper selective repository aggregation and WS interface publishing using XFire. See: http://trac.abstracthorizon.org/proximity/milestone/Proximity%20Release%201.0.0-RC4 Also, the j2ee webapp modules are exploded, they comes now in different flavours: Default - as it was till now: Proximity Webapp (Default) is J2EE Web Application with default configuration that suits in almost all cases. Default configuration offers Px Core Web Services, uses Spring MVC + Jakarta Velocity for view-tech and DWR as AJAX engine. Demosite - Proximity Webapp (Demosite) is similar to default: it is J2EE Web Application with default configuration that runs on Proximity demo site. Thus, it has few restrictions, including JAR downloading from public repositories. Minimal - Proximity Webapp (Minimal) is minimal J2EE Web Application that still have Maven Proxy functionality. To reduce it's weight, view layer uses vanilla JSPs. Indexing is also sacrificed, together with pages that relies on them (Search, Artifact browse). Fast and small. (on the way) PxMaster and PxSlave - Proximity Webapp (PxMASTER and PxSLAVE) is J2EE Web Application similar to default configured to act as PxMaster/PxSlave in Proximity chain. Not usable in every day scenarios. Meant as template for chaining setups. (on the way) Have fun! ~t~
RE: Assembly plugin issues
I am not sure I follow, dependencySet is in the assembly.xml. Can you give an example tag you'd need to add the the xml below to get it to exclude 1 class file that is picked up from the dependencySet below? - Original Message - From: Barrie Treloar Sent: Tue, 8/22/2006 11:54pm To: Maven Users List Subject: Re: Assembly plugin issues On 8/23/06, Douglas Ferguson [EMAIL PROTECTED] wrote: When using the dependencySet, can you exclude individual class files or are you limited to excluding specific artifacts. dependency set excludes specific dependencies. When you create your assembly that is the place to exclude any files that you don't want in your assembly. - 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: Jar With Dependencies
Sure, I'd love to see that script. - Original Message - From: Arnaud Bailly Sent: Wed, 8/23/2006 2:01am To: Maven Users List Subject: Re: Jar With Dependencies Douglas Ferguson [EMAIL PROTECTED] writes: Does anybody have a suggestion for creating a jar with dependencies that has all the dependencies exploded? There is an unpack tag in assembly descriptor that does this. http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html If I send them a jar with dependencies, then they would have to crack the jar open, because the classloader won't read a jar within a jar. I think that classworlds can do this. You could also write a simple wrapper classloader that launches your application. I did this once to ensure platform-independent classpath resolution as I could not write a script in windows that would add a list of jars in one lib to classpath (not an expert rin windows scripting obviously). If you are interested by this small snippet, I can send you. BTW, IBM released recently a tool for doing just that kind of things (loading jars from jars). Lost references to it. regards -- 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]
changing remote repository
hello when i type the command mvn clean install to compile some exo modules, i recieve this error message : F:\java\projects\v2.x\exo-ssomvn clean install [INFO] Scanning for projects... Downloading: http://www.ibiblio.org/maven2//exo-tools/exo-tools.build.config/2.0 .1/exo-tools.build.config-2.0.1.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org /maven2)[INFO] [ERROR] FATAL ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: exo-tools ArtifactId: exo-tools.build.config Version: 2.0.1 Reason: Unable to download the artifact from any repository exo-tools:exo-tools.build.config:pom:2.0.1 from the specified remote repositories: central (http://repo1.maven.org/maven2) [INFO] [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Cannot find parent: exo-tools: exo-tools.build.config for project: exo-sso:exo-sso:pom:1.0 at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) although i have executed command mvn install before, and maven have downloaded it's neseccery files. may be the default repository http://repo1.maven.org; does not have the neseccery files for this task, i have find another site wich has nesecceray jar files that maven needs for this task, but i don't know how to set maven remote repository to that site. how can i change maven remote repositrory? in wich file i should set it? and where is that file located? i appreciate any help. -- View this message in context: http://www.nabble.com/changing-remote-repository-tf2152019.html#a5943129 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
goal not found error
hello i am going to upload a par file to workflow portlet in exo platform and i have problem in building one with maven. i am using maven2, when i type mvn exo:bp from maven bin directory to create a par file from existing business brocess in exo source, maven does not automaticly download maven-exo-plugin and says that 'maven-exo-plugin' does not exist or no valid version could be found,(although it downloads other necessary jar files when i executed other command like:install) so i downloaded the necessary jar and pom files from http://maven.objectweb.org/maven2/... manualy and placed them in appropriate files in repository. the next time i executed mvn exo:bp command the error message changed to required goal not found: exo:bp what does maven mean by goal not found is it the plugin problem? where are maven goals defined? or is it possible to make par files in eclipse by the help of eclipse-maven-plugin? i am using exo v.1.0 and maven2 i appreciate any help. -- View this message in context: http://www.nabble.com/goal-not-found-error-tf2152081.html#a5943329 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is it possible to build Eclipse 3.1 plugins using M2 ?
Dear Maven Users, Does any plugin exists in Maven2 to build eclipse 3.1 plugins ? Thanks. - - - - - - - DISCLAIMER- - - - - - - - Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you.
Re: Use System Properties in Settings.xml?
You create at profile in settings.xml that is active by default, and contains a properties element with the property you wish to active. On 8/23/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: -Original Message- From: Sharma, Jaikumar [mailto:[EMAIL PROTECTED] Sent: 19 August 2006 08:51 To: Maven Users List Subject: RE: Use System Properties in Settings.xml? As I had initially mentioned, this works for me, not sure about adding ENV as a prefix to MAVEN_HOME. localRepository${MAVEN_HOME}/repository/localRepository -Original Message- From: Eric Redmond [mailto:[EMAIL PROTECTED] ==== I believe you need to prefix environment variables with ENV, so you may need ${ENV.MAVEN_HOME}. Eric Hi Instead of using a system property is there a way to define a system property by default in settings.xml ? ==== -- Peter Pilgrim UBS Investment Bank, PTS Portal / IT FIRC OPS LDN, 100 Liverpool Street, London EC2M 2RH, United Kingdom +44 (0) 20 75 75692 :: Java EE / E-Commerce / Enterprise Integration / Development :: Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eric Redmond http://codehaus.org/~eredmond
Re: Suggestions for running Maven on an airgapped network
Hmmm. You took the URL right out of my mouth :) ~t~ On 8/23/06, Eric Redmond [EMAIL PROTECTED] wrote: It sounds like you could use a proxy. Before Tamás has time to reply, take a look at this ;-)
How to change dependencies at run time?
Hi! We have a problem with our build as we came to a point where we need to build two versions of a single project which both have slightly different dependencies. We'd like to somehow use the same project files for the project, but for example define different goals for the different versions. Is this possible? We are using maven 1.1-beta3. Thanks. Olli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Problem deploying to filesystem on remote server
Hi, I'm new to Maven2 and trying to deploy my first JAR... alas without success up to now. We are running an internal repository using Maven-Proxy (using it as a proxy to central and for hosting our own artifacts). This is working well, and now I would like to put my JARs (snapshot version) onto this server using the deploy goal with file system configuration. In my POM, I configured the settings like this: snapshotRepository idcentral/id namexxx/name urlfile:///[a_server]/maven2-server/target/repo-local/url uniqueVersionfalse/uniqueVersion /snapshotRepository The output seems to be ok, it says 551 K uploaded, but the file has NOT been copied. Even with enabled debug information (see below) I don't see any problems... or is this not adding permissions to wagon connection telling me anything? And yes, I have full access to the specified folder on the remote computer. Is file system deploy only working locally? What else should I use to deploy to Maven-Repo? Any help is appreciated... Thanks in advance, Christoph. --- snip --- [INFO] [deploy:deploy] [INFO] Retrieving previous build number from central [DEBUG] repository metadata for: 'snapshot sss:foundation:4.3.2-SNAPSHOT' could not be found on repository: central [DEBUG] not adding permissions to wagon connection Uploading: file:///[a_server]/maven2-server/target/repo-local/xxx/yyy/4.3.2-SNAPSHOT/yy y-4.3.2-SNAPSHOT.jar file:///[a_server]/maven2-server/target/repo-local/xxx/yyy/4.3.2-SNAPSHOT/y yy-4.3.2-SNAPSHOT.jar 551K uploaded [INFO] Retrieving previous metadata from central [DEBUG] repository metadata for: 'artifact sss:foundation' could not be found on repository: central [INFO] Uploading repository metadata for: 'artifact sss:foundation' [DEBUG] not adding permissions to wagon connection [INFO] Retrieving previous metadata from central [DEBUG] repository metadata for: 'snapshot sss:foundation:4.3.2-SNAPSHOT' could not be found on repository: central [INFO] Uploading repository metadata for: 'snapshot sss:foundation:4.3.2-SNAPSHOT' [DEBUG] not adding permissions to wagon connection [INFO] Retrieving previous metadata from central [DEBUG] project information for foundation 4.3.2-SNAPSHOT could not be found on repository: central [INFO] Uploading project information for foundation 4.3.2-SNAPSHOT [DEBUG] not adding permissions to wagon connection --- snap --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : Web site generation for multiple projects
hello Jon, On 8/23/06, Jon SlinnHawkins [EMAIL PROTECTED] wrote: What does : menu name=Common Links inherit=top / achieve ? as it is explained in the how-to: http://maven.apache.org/plugins/maven-site-plugin/howto.html: Site descriptors are inherited along the same lines as project descriptors are. When you deploy a project, it's site descriptor is also deployed so that it can be inherited. By default, only the basic settings are inherited. From the body, only the links are inherited, and these accumulate to contain all of the descriptor's links. However, it is possible to inherit menus as well. To do so, use the inheritflag of the site descriptor. This can be either top or bottom, indicating where in the menu it will be placed after inheritance. -- http://valerioschiavoni.blogspot.com http://jroller.com/page/vschiavoni
Re: Maven cannot find dependencies classes from WEB-INF/classes
This isn't really a shortcomming of Maven as much as a Java thing. Imagine that your WAR was a JAR that contained a class in: somejar.jar:WEB-INF/classes/com.MyClass.class the classloader isn't going to find it anyway. The only reason that classes existing in WEB-IN/classes are found in a WAR is because the loading container knows where to look for them. So, yes, if you want to share classes between projects you will have to create a seperate JAR project, and that JAR will be a dependency of the WAR. This is not a bad thing. Eric On 8/22/06, Denis Cabasson [EMAIL PROTECTED] wrote: I guess this functionality isn't present in Maven, as it goes against the best practice Maven is trying to enforce. If an artifact is supposed to be used as both an external dependency and a webapp, it should be bundled in its own jar, and user as a normal dependency in both project. To be more precise, the buisness logic (which is to be re-used as a dependency in another project) should be in another project, well the user interface, and all the webapp related stuff should stay in the war project. Well, at least, that's my point of view on the matter. Denis. Matt Raible-3 wrote: I discovered this same thing last week. http://www.nabble.com/Re%3A-Converting-AppFuse-to-a-Maven-2-Project-p5870757.html Seems like a bug to me, but it's probably more of a missing feature. What would it take to add this functionality? Thanks, Matt On 8/22/06, alexsun [EMAIL PROTECTED] wrote: I use this configuration in my pom file ... dependency groupId!-- groupId of the war --/groupId artifactId!-- artifactId of the war --/artifactId version! -- version of the war --/version typewar/type /dependency ... but during build process get error that classes from war-package not found. Why? -- View this message in context: http://www.nabble.com/Maven-cannot-find-dependencies-classes-from-WEB-INF-classes-tf2147059.html#a5928069 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] -- View this message in context: http://www.nabble.com/Maven-cannot-find-dependencies-classes-from-WEB-INF-classes-tf2147059.html#a5930280 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eric Redmond http://codehaus.org/~eredmond
Re: goal not found error
You can look at the details of a plugin with: mvn help:describe -DgroupId=? -DartifactId=? -Dfull http://maven.apache.org/plugins/maven-help-plugin/describe-mojo.html Eric On 8/23/06, john_sh [EMAIL PROTECTED] wrote: hello i am going to upload a par file to workflow portlet in exo platform and i have problem in building one with maven. i am using maven2, when i type mvn exo:bp from maven bin directory to create a par file from existing business brocess in exo source, maven does not automaticly download maven-exo-plugin and says that 'maven-exo-plugin' does not exist or no valid version could be found,(although it downloads other necessary jar files when i executed other command like:install) so i downloaded the necessary jar and pom files from http://maven.objectweb.org/maven2/... manualy and placed them in appropriate files in repository. the next time i executed mvn exo:bp command the error message changed to required goal not found: exo:bp what does maven mean by goal not found is it the plugin problem? where are maven goals defined? or is it possible to make par files in eclipse by the help of eclipse-maven-plugin? i am using exo v.1.0 and maven2 i appreciate any help. -- View this message in context: http://www.nabble.com/goal-not-found-error-tf2152081.html#a5943329 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eric Redmond http://codehaus.org/~eredmond
M2 ChangeLog 2.0-snapshot generates NPE
Hi *, I've downloaded the 2.0-snapshot from urlhttp://people.apache.org/maven-snapshot-repository//url my POM says: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changelog-plugin/artifactId version2.0-SNAPSHOT/version configuration typedate/type dates date implementation=java.lang.String2005-08-01/date date implementation=java.lang.String2005-09-01/date /dates dateFormat-MM-dd/dateFormat /configuration and scm: scmconnectionscm:clearcase:\\X\cc_views\X\config_spec/connection/scm Here is the exception I get: Caused by: java.lang.NullPointerException at org.apache.maven.changelog.ChangeLogReport$1.compare(ChangeLogReport.java:925) at java.util.Arrays.mergeSort(Arrays.java:1270) at java.util.Arrays.sort(Arrays.java:1210) at java.util.Collections.sort(Collections.java:159) at org.apache.maven.changelog.ChangeLogReport.doChangedSetTable(ChangeLogReport.java:919) at org.apache.maven.changelog.ChangeLogReport.doChangedSet(ChangeLogReport.java:837) at org.apache.maven.changelog.ChangeLogReport.doGenerateReport(ChangeLogReport.java:774) at org.apache.maven.changelog.ChangeLogReport.executeReport(ChangeLogReport.java:275) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98) at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:73) has anyone seen this? What am I doing wrong? Am I missing some settings? many thanks Benoit -- View this message in context: http://www.nabble.com/M2-ChangeLog-2.0-snapshot-generates-NPE-tf2152355.html#a5944202 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: goal not found error
You can use the fully-specified syntax for executing a goal, eg. mvn groupId:artifactId:version:goal When using the short form of specifying a goal, maven, by default, only searches two groupIds: org.apache.maven.plugins and org.codehaus.mojo. Odds are the maven-evo-plugin is not in either of these groups and that's why she doesn't find the evo plugin. You can modify the groupIds maven searches when using the short form by adding the following to your settings.xml: pluginGroups pluginGroupsome.groupId/pluginGroup pluginGroupsome.other.groupId/pluginGroup /pluginGroups HTH, Doug On 8/23/06, Eric Redmond [EMAIL PROTECTED] wrote: You can look at the details of a plugin with: mvn help:describe -DgroupId=? -DartifactId=? -Dfull http://maven.apache.org/plugins/maven-help-plugin/describe-mojo.html Eric On 8/23/06, john_sh [EMAIL PROTECTED] wrote: hello i am going to upload a par file to workflow portlet in exo platform and i have problem in building one with maven. i am using maven2, when i type mvn exo:bp from maven bin directory to create a par file from existing business brocess in exo source, maven does not automaticly download maven-exo-plugin and says that 'maven-exo-plugin' does not exist or no valid version could be found,(although it downloads other necessary jar files when i executed other command like:install) so i downloaded the necessary jar and pom files from http://maven.objectweb.org/maven2/... manualy and placed them in appropriate files in repository. the next time i executed mvn exo:bp command the error message changed to required goal not found: exo:bp what does maven mean by goal not found is it the plugin problem? where are maven goals defined? or is it possible to make par files in eclipse by the help of eclipse-maven-plugin? i am using exo v.1.0 and maven2 i appreciate any help. -- View this message in context: http://www.nabble.com/goal-not-found-error-tf2152081.html#a5943329 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eric Redmond http://codehaus.org/~eredmond
Re: using archiva as a maven1 repo proxy...
On 23/08/2006, at 8:43 PM, Nicolas De Loof wrote: I've found myslef the reponse for question 1 : org.apache.maven.repository.discovery.LegacyArtifactDiscoverer I think the javadoc.jars type is missing. This is not a commonly used type but support for it has been added in maven1 eclipse plugin. I've created http://jira.codehaus.org/browse/MRM-152 for it and attached a patch. Got it, I will look at applying tomorrow question 2. may be more difficult... Somewhat, but I think it's entirely possible. This is what Archiva is designed for. Nicolas De Loof a écrit : Two questions about archiva support for maven1 repository requests : 1. How does archiva extracts artifactId / version from maven1 request ? I have created a quick dirty converter for my repo and wanted to use the ibilio regexp to convert, but I got issues for artifact which artifact ID has multiple parts separated by -. I solved it by not useing regexp but parsing the name for - and searchnig the first element starting with a digit char, but it fails for groovy-1.0-jsr-06.jar (version found is 1.0-jsr-06) 2. Could archiva support relocation for maven1 request ? As maven1 has no relocation mecanism, it would be great to avoid muliple artifacts for same jar (let's say servletapi...) and use maven2 relocation to automagically convert /servletapi/jars/ servletapi-2.5.jar to /javax/servlet/servlet-api/2.5/servlet- api-2.5.jar. This requires archiva proxy to be not a simple proxy, but also a maven2 agent and search for POM when looking for an artifact... This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
Re: Is it possible to build Eclipse 3.1 plugins using M2 ?
There are some discussions going on about this (see equinox and pde-build mailinglist at eclipse.org), but there is no plugin available for this right now. Tom On 8/23/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote: Dear Maven Users, Does any plugin exists in Maven2 to build eclipse 3.1 plugins ? Thanks. - - - - - - - DISCLAIMER- - - - - - - - Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you.
Re: Jar With Dependencies
Douglas Ferguson [EMAIL PROTECTED] writes: Sure, I'd love to see that script. Just to be clear, this is not a script, this is java code for a wrapper main application that just adds all jars it find in a list of directories in a classloader then call the real main. I used this as a stable main entry point for an application assembled with maven-assembly-plugin which had a set of changing components and as a replacement for a platform-dependent script. For loading jars inside jar: http://www-128.ibm.com/developerworks/library/j-onejar/ The main wrapper is sent to you by mail. regards. -- 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]
Re: Jar With Dependencies
Douglas Ferguson [EMAIL PROTECTED] writes: Sure, I'd love to see that script. import java.io.File; import java.io.FileFilter; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.net.MalformedURLException; import java.net.URL; import java.net.URLClassLoader; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class Lanceur implements Runnable { private static final Log LOG = LogFactory.getLog(Lanceur.class); /* * the command line arguments array */ private String[] arguments; /* * the exit status * */ private int status = 0; /* * class loader constructed by this lanceur */ private URLClassLoader loader; public static void main(String[] argv) { if(argv.length == 0) System.exit(1); /* first argument is real lanucher class */ String real = argv[0]; Class realC = Class.forName(real); /* shift les arguments */ String[] nargs = new String[argv.length - 1]; if (nargs.length != 0) { System.arraycopy(arguments, 1, nargs, 0, nargs.length); } Lanceur l = (Lanceur)realC.newInstance(); l.setArguments(argv); l.run(); } public void run() { /* extraction du repertoire */ String libdir = System.getProperty(libdir,..\\lib); if (libdir == null) { LOG.error(Definir le repertoire contenant les bibliotheques : -Dlibdir=x); setStatus(1); return; } /* verifications */ File f = new File(libdir); if (!f.exists()) { LOG.error(Le repertoire + libdir + n'existe pas); setStatus(2); return; } if (!f.isDirectory()) { LOG.error(libdir + n'est pas un repertoire); setStatus(2); return; } if (!f.canRead()) { LOG.error(Le contenu de + libdir + ne peut etre lu); setStatus(2); return; } /* extraction du nom de la classe principale */ String clname = System.getProperty(main,Main); if (clname == null) clname = Main; /* construction du classpath */ File[] jars = f.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.getName().endsWith(.jar) || pathname.getName().endsWith(.zip); } }); int ln = jars.length; URL[] urls = new URL[ln + 1]; /* ajout du repertoire courant par defaut*/ try { urls[0] = new URL(file://.); } catch (MalformedURLException e) { LOG.error(Impossible d'ajouter . au classpath : + e.getLocalizedMessage()); } for (int i = 0; i ln; i++) try { handleJar(jars[i]); urls[i] = new URL(file:// + jars[i].getPath()); } catch (MalformedURLException e) { LOG.error(Impossible d'ajouter . au classpath : + e.getLocalizedMessage()); } /* chargement */ loader = new URLClassLoader(urls, ClassLoader.getSystemClassLoader()); try { Class cls = loader.loadClass(clname); Method main = cls.getDeclaredMethod(main, new Class[] { nargs .getClass() }); LOG.debug(Execution de +clname +.main(); for(int i=0;iarguments.length;i++) { LOG.debug(arguments[i]); if(i arguments.length -1) LOG.debug(','+); } LOG.debug()); main.invoke(null, new Object[] { nargs }); } catch (ClassNotFoundException e) { LOG.error(Impossible de trouver la classe + clname + : + e.getLocalizedMessage());
Re: Building MyEclipse project with Maven2
Konstantin Bartchenkov wrote: Hi Guys, I'm having a problem building myEclipse project using m2. The main issue is that it's not in default maven file structure. It looks like this myProject src com/company... all java sources go here WebRoot *.jsp all jsp files are here WEB-INF Xmls Classes compiled classes should be placed here POM.xml The first task is to get maven to compile it and place classes to WebRoot/WEB-INF/classes It could be done by saying following build sourceDirectorysrc/sourceDirectory outputDirectoryWebRoot/WEB-INF/classes/outputDirectory /build But how can I manage to create war file when it doesn't really know where my jsps/xmls are? Basically after the compilation all it has to do is to grab WebRoot and just work with it... I couldn't really find a solution, any help would be appreciated. Add the following to your plugins section: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0/version configuration webResources resource directoryWebRoot/directory /resource /webResources /configuration /plugin HTH, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to change dependencies at run time?
i'm not sure if using profiles it is also possiible to define dependencies..maybe that could be a way to go. On 8/23/06, Olli Aalto [EMAIL PROTECTED] wrote: We have a problem with our build as we came to a point where we need to build two versions of a single project which both have slightly different dependencies. We'd like to somehow use the same project files for the project, but for example define different goals for the different versions. Is this possible? We are using maven 1.1-beta3. -- http://valerioschiavoni.blogspot.com http://jroller.com/page/vschiavoni
Re: Building MyEclipse project with Maven2
Konstantin Bartchenkov wrote: Hi Guys, I'm having a problem building myEclipse project using m2. The main issue is that it's not in default maven file structure. I don't know exactly what myEclipse is, but your porject looks a lot like a WTP project to me. In this case, I'd advocate for the maven file structure, with the maven-eclipse-plugin being able to generate correct eclipse settings so that WTP can correctly recognize your project structure. See: http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html Cheers! Denis -- View this message in context: http://www.nabble.com/Building-MyEclipse-project-with-Maven2-tf2151867.html#a5944810 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jar With Dependencies
Arnaud Bailly [EMAIL PROTECTED] writes: Oops ! Did not mean to clutter the list with code, sorry. -- 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]
M2 release plugin snapshot version does not handle new development depency version correctly in multimodule project
Hi, After release:perform snapshot version project pom.xml include dependency versions for dependent projects remains to new release version ex. 1.0a not new development version ex 1.0-SNAPSHOT. I couldn't find anything from google concerning this issue. Is there any way to avoid this. It's annoying because there are over 40 modules in project. Regards, Markku Saarela - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Suggestions for running Maven on an airgapped network
You probably realize this, but to expand on the answer below, you'll probably want two copies of Proximity running. One copy on your declass network you will use to download dependencies from external repositories and create a repository with the particular subset of dependencies you need. Burn that Proximity repository info to a CD/DVD and transfer it to your classified network where another copy of Proximity will use that repository info to act as a mirror of the central repository. Chris -Original Message- From: Eric Redmond [mailto:[EMAIL PROTECTED] Sent: Tuesday, 22 August, 2006 21:32 To: Maven Users List Subject: Re: Suggestions for running Maven on an airgapped network It sounds like you could use a proxy. Before Tamás has time to reply, take a look at this ;-) http://proximity.abstracthorizon.org/ Eric On 8/22/06, Kelly Harward [EMAIL PROTECTED] wrote: I am new to Maven and am currently looking at it to help bring order to a handful of related projects that are currently built using Ant. I have been working my way through Better Builds with Maven and trying to digest the information presented there. In section 2.1 (Preparing to Use Maven) you can find the following assertion, In its optimal mode, Maven requires network access I assume that the term network in the phrase network access refers to the Internet. I can already see that Maven relies pretty heavily on being able to phone home to the central repository in its efforts to resolve project dependencies. I am faced with an interesting environment where all development is conducted on an internal, airgapped network. In short, there is no physical connection between this internal development network and the Internet. Sometimes two networks in this configuration are referred to as low side and high side, indicating which direction data is flowing. In our particular case, the Internet is the high side network and the internal development network is the low side network. In order to move data from the high side to the low side, it is necessary to write data to a physical medium, and move it to a device on the latter network. The first thought that comes to mind is to setup an internal mirror of the Maven central repository. That may work (although it is certain to give at least one security-minded network engineer serious heartburn). Are there any guidelines or standards for this type of configuration? Also, it is possible to setup a partial mirror of the central repository (in the event that those aforementioned security- minded folk can't abide the entire repository)? I would imagine that I am not the first person in the Maven community to face this dilemma. Any information or insight that you may be able to provide in this matter is appreciated. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eric Redmond http://codehaus.org/~eredmond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Building ear, war without including resources (Maven 2.0)
Hi, I am novice in Maven. I try to investigate if my company projects could be migrated to Maven and I have a question. We have building many projects creating ear files or war files without the corresponding resources, that is for example we deploy an application with an ear file and a separate directory called 'etc' with the application resources (the directory of course is in the CLASSPATH of the server). This is done principally to permit changing a property value without to have to redeploy the application (the application refresh the configuration at intervals). So the question is: can we do this type of build with Maven in an easy way? Or we have to write for example our own compile plugin or call an Ant task to perform the splitting? (Also notice that the resources we have to bundle must be filtered and not only copied). Thanks. -- Daniele Pirola ICTeam S.p.A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Adding information to plexus components.xml
Hello, Is it possible in a project usin plexus-maven-plugin for descriptor generation to add some informations to the descriptor in the configuration section of the lpugin ? thx -- 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]
Re: [ANN] Proximity RC4 rolled out!
Tamás, I've found this error whenever I try to start Tomcat with the last release candidate: - Deploying web application archive proximity.war - Error deploying web application archive proximity.war java.lang.IncompatibleClassChangeError at org.apache.commons.logging.impl.SLF4JLog.isDebugEnabled(SLF4JLog.java:29) at org.apache.tomcat.util.digester.Digester.addRuleSet(Digester.java:1682) at org.apache.catalina.startup.DigesterFactory.newDigester(DigesterFactory.java:85) at org.apache.catalina.startup.TldConfig.createTldDigester(TldConfig.java:408) at org.apache.catalina.startup.TldConfig.tldScanStream(TldConfig.java:508) at org.apache.catalina.startup.TldConfig.tldScanJar(TldConfig.java:472) at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:307) at org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4278) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4115) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) The Tomcat version is 5.5.17 and I have only the proximity WAR in the webapps folder. Am I missing something? Thanks in advance, Henrique Tamás Cservenák wrote: Hi All, the Proximity is finally got to RC4. It has three major improvements: aggregated metadata checksum is correctly calculated, emergeGroups that enables proper selective repository aggregation and WS interface publishing using XFire. See: http://trac.abstracthorizon.org/proximity/milestone/Proximity%20Release%201.0.0-RC4 Also, the j2ee webapp modules are exploded, they comes now in different flavours: Default - as it was till now: Proximity Webapp (Default) is J2EE Web Application with default configuration that suits in almost all cases. Default configuration offers Px Core Web Services, uses Spring MVC + Jakarta Velocity for view-tech and DWR as AJAX engine. Demosite - Proximity Webapp (Demosite) is similar to default: it is J2EE Web Application with default configuration that runs on Proximity demo site. Thus, it has few restrictions, including JAR downloading from public repositories. Minimal - Proximity Webapp (Minimal) is minimal J2EE Web Application that still have Maven Proxy functionality. To reduce it's weight, view layer uses vanilla JSPs. Indexing is also sacrificed, together with pages that relies on them (Search, Artifact browse). Fast and small. (on the way) PxMaster and PxSlave - Proximity Webapp (PxMASTER and PxSLAVE) is J2EE Web Application similar to default configured to act as PxMaster/PxSlave in Proximity chain. Not usable in every day scenarios. Meant as template for chaining setups. (on the way) Have fun! ~t~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: goal not found error
You can use the fully-specified syntax for executing a goal, eg. mvn groupId:artifactId:version:goal When using the short form of specifying a goal, maven, by default, only searches two groupIds: org.apache.maven.plugins and org.codehaus.mojo. Odds are the maven-evo-plugin is not in either of these groups and that's why she doesn't find the evo plugin. You can modify the groupIds maven searches when using the short form by adding the following to your settings.xml: pluginGroups pluginGroupsome.groupId/pluginGroup pluginGroupsome.other.groupId/pluginGroup /pluginGroups HTH, Doug -- thank u for ur reply but maven-exo-plugin exists in the org\apache\maven\plugins dir, and plugin groupId is set to the same groupId(org.apache.maven.plugin), and even when i specify the groupId and other properties in the command line it says that required goal not found: org.apache.maven.plugins:maven-exo-plugin:1.0:exo and please tell me from which path i must execute this command? from where my exo business process(which i want to create par file from that with maven with this plugin) is located or from maven bin dir? or? -- View this message in context: http://www.nabble.com/goal-not-found-error-tf2152081.html#a5946596 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Proximity RC4 rolled out!
Hi Henrique, Please, use the http://forum.abstracthorizon.org/index.php?c=9 forum for Proximity support, i do not want to misuse Maven Users list. I use it only to announce new releases. It seems to me that this has some connection with the following nlog4j issue found in this mail: http://www.mail-archive.com/nlog4j-dev@slf4j.org/msg00020.html Q's - Do you have log4j or nlog4j on Tomcat somewhere other than Proximity (WAR contains it)? - Try to deploy the WAR unpacked, remove the two slf4j package and place them on $TOMCAT_HOME/lib? - I use jetty6 to test the WAR, it works perfectly there. Will try on Tomcat later today. Hope helps ~t~ On 8/23/06, Henrique Prange [EMAIL PROTECTED] wrote: Tamás, I've found this error whenever I try to start Tomcat with the last release candidate: - Deploying web application archive proximity.war - Error deploying web application archive proximity.war java.lang.IncompatibleClassChangeError at org.apache.commons.logging.impl.SLF4JLog.isDebugEnabled(SLF4JLog.java:29) at ...
Re: perforce client specs
if there is it would definitately be in the maven-scm perforce provider...there are a number of little tweaks and whatnot in those providers. Mike Perham has been working on that lately I think, you might want to ping him directly on it or on the maven users list [EMAIL PROTECTED] is the address I see atm jesse On 8/22/06, Prashanth Krishnamurthy [EMAIL PROTECTED] wrote: Hi, Why does continuum create a perforce client specs when it does a build ? ( ex : Administrator-winmac-MavenSCM-C:\continuum-1.0.3\apps\continuum\working-directory\19 ) Is there someway to configure to use the default client specs ( say : winmac ) and not create one ? thanks Prashanth __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- jesse mcconnell [EMAIL PROTECTED]
RE: hibernate3-maven-plugin:hbm2doc: IndexOutOfBoundsException
Hello Kaj This might be a problem with the dependencies. I'm updating the dependencies so I'll keep let you know once I have done this for you to try it again. Regards Johann reyes -Original Message- From: Kaj Hejer [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 22, 2006 8:15 AM To: users@maven.apache.org Subject: hibernate3-maven-plugin:hbm2doc: IndexOutOfBoundsException Hi! When running mvn hibernate3:hbm2doc when using hibernate3-maven-plugin I get the following stacktrace: DEBUG 22.08 11:13:15 (TemplateHelper.java:220) - putInContext docFile=index.html INFO 22.08 11:13:15 (VelocityProducer.java:46) - Writing doc/entities/ index.vm to /Users/kajh/src/w3/webapps/nettskjema/trunk/target/ hibernate3/javadoc/entities/index.html DEBUG 22.08 11:13:15 (TemplateHelper.java:227) - removeFromContext docFile=index.html [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Index: 0, Size: 0 [INFO] [INFO] Trace java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:546) at java.util.ArrayList.remove(ArrayList.java:389) at org.hibernate.tool.hbm2x.DocExporter.generatePackageSummary (DocExporter.java:251) at org.hibernate.tool.hbm2x.DocExporter.doStart (DocExporter.java:154) at org.hibernate.tool.hbm2x.AbstractExporter.start (AbstractExporter.java:92) at org.codehaus.mojo.hibernate3.HibernateExporterMojo.doExecute (HibernateExporterMojo.java:96) at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute (HibernateExporterMojo.java:60) at org.apache.maven.plugin.DefaultPluginManager.executeMojo (DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (DefaultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa l(DefaultLifecycleExecutor.java:488) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal (DefaultLifecycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced (Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode (Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] [INFO] Total time: 7 seconds [INFO] Finished at: Tue Aug 22 11:13:15 CEST 2006 [INFO] Final Memory: 6M/12M [INFO] I'm using java5 on osx 10.4.7. Any ideas? -Kaj :) - 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: Building ear, war without including resources (Maven 2.0)
Hi, have same situation in my company. the quick fix i did was to use the maven-antrun-plugin to copy the content of those 'resource's directories int he target\ directory of my project that was my quick fix, i m sure some maven guru on the list will have a better solution hth marco On 8/23/06, daniele pirola [EMAIL PROTECTED] wrote: Hi, I am novice in Maven. I try to investigate if my company projects could be migrated to Maven and I have a question. We have building many projects creating ear files or war files without the corresponding resources, that is for example we deploy an application with an ear file and a separate directory called 'etc' with the application resources (the directory of course is in the CLASSPATH of the server). This is done principally to permit changing a property value without to have to redeploy the application (the application refresh the configuration at intervals). So the question is: can we do this type of build with Maven in an easy way? Or we have to write for example our own compile plugin or call an Ant task to perform the splitting? (Also notice that the resources we have to bundle must be filtered and not only copied). Thanks. -- Daniele Pirola ICTeam S.p.A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building ear, war without including resources (Maven 2.0)
Hello did you try to set the scope of the dependencies to system or runtime ? Regards, Alexandre daniele pirola wrote: Hi, I am novice in Maven. I try to investigate if my company projects could be migrated to Maven and I have a question. We have building many projects creating ear files or war files without the corresponding resources, that is for example we deploy an application with an ear file and a separate directory called 'etc' with the application resources (the directory of course is in the CLASSPATH of the server). This is done principally to permit changing a property value without to have to redeploy the application (the application refresh the configuration at intervals). So the question is: can we do this type of build with Maven in an easy way? Or we have to write for example our own compile plugin or call an Ant task to perform the splitting? (Also notice that the resources we have to bundle must be filtered and not only copied). Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to stop a build in continuum
Him I'm new user of continuum and I have a problem with one task. A build was launch automatically 23 days ago and he is again in progress. So I want to know, how can i stop it? I stop the continuum server and restart it but he's running again. Do you have any idea for to fix this problem Thanks, PS: sorry for my timid english Badre
Re: exec plugin - how to define more than one?
Thanks for the tip. I still don't seem to get it, based on what you are saying my config should change to: ... plugin groupIdorg.codehaus.mojo/groupId artifactIdexec-maven-plugin/artifactId executions execution idclient/id goals goalexec/goal /goals configuration executablefoo/executable arguments argument-classpath/argument classpath/ argumentA B C D/argument /arguments /configuration /execution ... [ more execution definitions here] /executions /plugin However maven complains with the following error: - [ERROR] BUILD ERROR [INFO] [INFO] One or more required plugin parameters are invalid/missing for 'exec:exec ' [0] inside the definition for plugin: 'exec-maven-plugin'specify the following: configuration ... executableVALUE/executable /configuration -OR- on the command line, specify: '-Dexec.executable=VALUE' - Assuming I were to get the config right, I am still not understanding how I would distinguish between one execution or another from the command line. My goal is that I want to use Maven to launch execution A, or execution B - not both. thanks! Jon SlinnHawkins wrote: Hi, Put the configuration within an execution for each executable you require. Cheers Jon iceman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've been able to successfully define the configuration for a single execution, but I would like to define more than one. IOTW, I have the following: ... plugin groupIdorg.codehaus.mojo/groupId artifactIdexec-maven-plugin/artifactId executions execution idclient/id goals goalexec/goal /goals /execution /executions configuration executablefoo/executable arguments argument-classpath/argument classpath/ argumentA B C D/argument /arguments /configuration !-- This doesn't work - you'll have to pass everything on the cmdline! configuration executablebar/executable arguments argumentX Y Z/argument /arguments /configuration -- /plugin As you can see, I can define how to run foo, but not bar. I would like to do both, since it will be common for users of the software to run more than one application. -- View this message in context: http://www.nabble.com/exec-plugin---how-to-define-more-than-one--tf2149338.html#a5935357 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/exec-plugin---how-to-define-more-than-one--tf2149338.html#a5947937 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Better to use variables or hard-coded paths?
Matt Raible wrote: I'm customizing my pom.xml so XML files are available on my classpath (at /WEB-INF/*.xml) when testing. My question is (hopefully) simple. Is it better to use: snip/ I think using Hard-coded directories is more Maven-like, while using variables is more Ant-like. I'd stick with the hard-coded directories, or better yet, use Maven's stardard directory layout http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html HTH, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Override dependency own dependency
Hi, I would like to know how i can override a specific dependency of one of my dependency : My project has a dependency on dependency1 which has a dependency on dependency2. I have made some improvements/bug fixes on dependy2jar, how can I configure Maven 2 to use My own dependency2jar in place of the one in the default repository ? For the two cases : 1. Generation of war file 2. Creation of Eclipse Workspace Libraries dependency Thanks for your help, Sébastien Boutté
Re: Better to use variables or hard-coded paths?
On 8/23/06, Daniel Serodio [EMAIL PROTECTED] wrote: Matt Raible wrote: I'm customizing my pom.xml so XML files are available on my classpath (at /WEB-INF/*.xml) when testing. My question is (hopefully) simple. Is it better to use: snip/ I think using Hard-coded directories is more Maven-like, while using variables is more Ant-like. I'd stick with the hard-coded directories, or better yet, use Maven's stardard directory layout http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html I am using this layout, I just need to include src/main/webapp in my classpath so I can use /WEB-INF/applicationContext.xml in my tests - w/o having duplicate context files. Thanks for your advice Daniel. Matt HTH, Daniel Serodio - 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: Building ear, war without including resources (Maven 2.0)
This post shows a code-snippet of how one might do it. I wish I knew of a better way to refer to a specific dependency jar file within Ant so that I didn't need the crude use of fileset. Of course, I also wish the assmebly plugin had direct support for this use case as well. http://www.nabble.com/Maven-2.0---Common-resource-problem-tf2146290.html#a5926085 Marco Mistroni wrote: Hi, have same situation in my company. the quick fix i did was to use the maven-antrun-plugin to copy the content of those 'resource's directories int he target\ directory of my project that was my quick fix, i m sure some maven guru on the list will have a better solution hth marco On 8/23/06, daniele pirola [EMAIL PROTECTED] wrote: Hi, I am novice in Maven. I try to investigate if my company projects could be migrated to Maven and I have a question. We have building many projects creating ear files or war files without the corresponding resources, that is for example we deploy an application with an ear file and a separate directory called 'etc' with the application resources (the directory of course is in the CLASSPATH of the server). This is done principally to permit changing a property value without to have to redeploy the application (the application refresh the configuration at intervals). So the question is: can we do this type of build with Maven in an easy way? Or we have to write for example our own compile plugin or call an Ant task to perform the splitting? (Also notice that the resources we have to bundle must be filtered and not only copied). Thanks. -- Daniele Pirola ICTeam S.p.A - 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: Building ear, war without including resources (Maven 2.0)
Could you set the scope on the dependency to compile? D- -Original Message- From: Jim Stafford [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 12:11 PM To: Maven Users List Subject: Re: Building ear, war without including resources (Maven 2.0) This post shows a code-snippet of how one might do it. I wish I knew of a better way to refer to a specific dependency jar file within Ant so that I didn't need the crude use of fileset. Of course, I also wish the assmebly plugin had direct support for this use case as well. http://www.nabble.com/Maven-2.0---Common-resource-problem-tf2146290.html#a5926085 Marco Mistroni wrote: Hi, have same situation in my company. the quick fix i did was to use the maven-antrun-plugin to copy the content of those 'resource's directories int he target\ directory of my project that was my quick fix, i m sure some maven guru on the list will have a better solution hth marco On 8/23/06, daniele pirola [EMAIL PROTECTED] wrote: Hi, I am novice in Maven. I try to investigate if my company projects could be migrated to Maven and I have a question. We have building many projects creating ear files or war files without the corresponding resources, that is for example we deploy an application with an ear file and a separate directory called 'etc' with the application resources (the directory of course is in the CLASSPATH of the server). This is done principally to permit changing a property value without to have to redeploy the application (the application refresh the configuration at intervals). So the question is: can we do this type of build with Maven in an easy way? Or we have to write for example our own compile plugin or call an Ant task to perform the splitting? (Also notice that the resources we have to bundle must be filtered and not only copied). Thanks. -- Daniele Pirola ICTeam S.p.A - 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: Building MyEclipse project with Maven2
Just curious what the plugin does to specifically deal with wtp? Also, what does update sources do? D- -Original Message- From: Denis Cabasson [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 8:48 AM To: users@maven.apache.org Subject: Re: Building MyEclipse project with Maven2 Konstantin Bartchenkov wrote: Hi Guys, I'm having a problem building myEclipse project using m2. The main issue is that it's not in default maven file structure. I don't know exactly what myEclipse is, but your porject looks a lot like a WTP project to me. In this case, I'd advocate for the maven file structure, with the maven-eclipse-plugin being able to generate correct eclipse settings so that WTP can correctly recognize your project structure. See: http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html Cheers! Denis -- View this message in context: http://www.nabble.com/Building-MyEclipse-project-with-Maven2-tf2151867.html#a5944810 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: Jar With Dependencies
Ah.. that's nifty. However, this is not a console app. These are our java apis that we are sending the client. They need to add this jar to their classpath. Here's a simplified example what we have: Common.jar Persistence.jar WSA.jar Client.jar Where Client.jar is just a composite module with dependencies on Common, Persistence, WSA. I think the trick is to use the assembly plug and set unpack to true. However, if someone else knows another trick. D- -Original Message- From: Arnaud Bailly [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 8:38 AM To: Maven Users List Subject: Re: Jar With Dependencies Douglas Ferguson [EMAIL PROTECTED] writes: Sure, I'd love to see that script. import java.io.File; import java.io.FileFilter; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.net.MalformedURLException; import java.net.URL; import java.net.URLClassLoader; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class Lanceur implements Runnable { private static final Log LOG = LogFactory.getLog(Lanceur.class); /* * the command line arguments array */ private String[] arguments; /* * the exit status * */ private int status = 0; /* * class loader constructed by this lanceur */ private URLClassLoader loader; public static void main(String[] argv) { if(argv.length == 0) System.exit(1); /* first argument is real lanucher class */ String real = argv[0]; Class realC = Class.forName(real); /* shift les arguments */ String[] nargs = new String[argv.length - 1]; if (nargs.length != 0) { System.arraycopy(arguments, 1, nargs, 0, nargs.length); } Lanceur l = (Lanceur)realC.newInstance(); l.setArguments(argv); l.run(); } public void run() { /* extraction du repertoire */ String libdir = System.getProperty(libdir,..\\lib); if (libdir == null) { LOG.error(Definir le repertoire contenant les bibliotheques : -Dlibdir=x); setStatus(1); return; } /* verifications */ File f = new File(libdir); if (!f.exists()) { LOG.error(Le repertoire + libdir + n'existe pas); setStatus(2); return; } if (!f.isDirectory()) { LOG.error(libdir + n'est pas un repertoire); setStatus(2); return; } if (!f.canRead()) { LOG.error(Le contenu de + libdir + ne peut etre lu); setStatus(2); return; } /* extraction du nom de la classe principale */ String clname = System.getProperty(main,Main); if (clname == null) clname = Main; /* construction du classpath */ File[] jars = f.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.getName().endsWith(.jar) || pathname.getName().endsWith(.zip); } }); int ln = jars.length; URL[] urls = new URL[ln + 1]; /* ajout du repertoire courant par defaut*/ try { urls[0] = new URL(file://.); } catch (MalformedURLException e) { LOG.error(Impossible d'ajouter . au classpath : + e.getLocalizedMessage()); } for (int i = 0; i ln; i++) try { handleJar(jars[i]); urls[i] = new URL(file:// + jars[i].getPath()); } catch (MalformedURLException e) { LOG.error(Impossible d'ajouter . au classpath : + e.getLocalizedMessage()); } /* chargement */ loader = new URLClassLoader(urls, ClassLoader.getSystemClassLoader()); try { Class cls = loader.loadClass(clname); Method main = cls.getDeclaredMethod(main, new Class[] { nargs .getClass() });
out of memory error - deploying to tomcat
using maven 2.0 and trying to deploy war to tomcat. any configuration need to do for handling this error [INFO] [tomcat:deploy] [INFO] Deploying war to http://localhost:8080/webtop-1.0-SNAPSHOT [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Java heap space [INFO] [INFO] Trace java.lang.OutOfMemoryError: Java heap space -- View this message in context: http://www.nabble.com/out-of-memory-error---deploying-to-tomcat-tf2153802.html#a5949309 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Pagkaging in a faster way
Hello there! Is it possible to run mvn package and skip compile and test phases? When I need to pack new stuff that don't need to be tested/compiled, its taking too long. Best Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pagkaging in a faster way
You want to package w/o compiling? That seems kinda silly doesn't it? To skip testing, use mvn -Dmaven.test.skip=true. Matt On 8/23/06, Vinicius Carvalho [EMAIL PROTECTED] wrote: Hello there! Is it possible to run mvn package and skip compile and test phases? When I need to pack new stuff that don't need to be tested/compiled, its taking too long. Best Regards - 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: multiproject plugin
You should use the multiproject:deploy goal for that. HTH, -Lukas neeraj daffodil wrote: hi all i am building multiproject through maven 1.0.2 with the help of maven:recator by defining the following in maven.xml maven:reactor basedir=${basedir} includes=**/project.xml goals=clean:clean,war:deploy,jar:deploy,ear:deploy banner=Building ignoreFailures=false / it is working well but what happen that the all four goals are running for each module but i only want that the specific module will run for each type of project for that i define the maven.multiproject.type=(war,jar,ear) as i required in our module but i am not geeting theresult as my need due ,all four gaol are running for each module , i am not able to get that it is its feature or there is somthing which i am lacking in my project.properties to define any one can help me where i am wrong Regards Neeraj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pagkaging in a faster way
That would be very useful in the case that you're either making changes to the packaging without changing code, or packaging static content, for example. Personally, I use the compile phase as a reason to grab another cup of tea. On 8/23/06, Matt Raible [EMAIL PROTECTED] wrote: You want to package w/o compiling? That seems kinda silly doesn't it? To skip testing, use mvn -Dmaven.test.skip=true. Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: out of memory error - deploying to tomcat
It sounds like you may need to adjust your JVM settings to allow for additional heap space. I ran a quick 'tomcat jvm heap' google search, and came up with the following URL with instructions: http://www.jguru.com/faq/view.jsp?EID=568115 On 8/23/06, Satish [EMAIL PROTECTED] wrote: using maven 2.0 and trying to deploy war to tomcat. any configuration need to do for handling this error [INFO] [tomcat:deploy] [INFO] Deploying war to http://localhost:8080/webtop-1.0-SNAPSHOT [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Java heap space [INFO] [INFO] Trace java.lang.OutOfMemoryError: Java heap space -- View this message in context: http://www.nabble.com/out-of-memory-error---deploying-to-tomcat-tf2153802.html#a5949309 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]
[OT][ANN] JAVAWUG BOF XXII / Sun London / 20 Sept 2006 @ 18:30 / featuring Jason van Zyl, Maven 2.0
Hi I would like to formally announce that ``JAVAWUG'' (Java Web User Group) is holding the twenty second Birds-of-Feather XXII (Meet up number 22) at the Sun's London Office on Wednesday, 20th September 2006 from 18:30. For more information http://www.jroller.com/page/javawug?entry=announcement_javabof_xxii_jaso n_van The confirmed speakers are: Jason van Zyl - Architect - Maven 2.0 Jason van Zyl presents the architecture and infrastructure behind the declaration software construction framework called ``Maven''. Jason van Zyl is the Chief Architect and co-founder of ``Mergere, Inc''. Jason co-founded Mergere to deliver an open source-based build platform for dynamic, distributed, enterprise-level Java(TM) projects requiring leading-edge resource orchestration and build management. Jason has over 10 years of enterprise software development experience working primarily for Fortune 500 companies. Jason is heavily involved with open source: he is the lead in the development of several open source projects including Plexus, Modello, and Continuum. Afterwards members can retire to the nearby bar and restuarant (TBA) ... The address is: Sun Microsystems Ltd. Customer Briefing Centre -- Cheapside Theatre Regis House 45 King William Street London EC4R 9AN Map (http://uk.sun.com/aboutsun/location/map-london-1.html) If you would like to attend : Please REGISTER so that you can be added to the Sun Security Detail. Join the ``http://groups.google.com/group/javawug'' JAVAWUG at Google Groups and Send a mail to the list you are attending http://jroller.com/page/javawug Thanks very much -- Peter Pilgrim UBS Investment Bank, PTS Portal / IT FIRC OPS LDN, 100 Liverpool Street, London EC2M 2RH, United Kingdom +44 (0) 20 75 75692 :: Java EE / E-Commerce / Enterprise Integration / Development :: Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Override dependency own dependency
Hi Sébastien, If you add directly dependency2 into your project POM, it should override the transitive one. Does it help ? - Yann 2006/8/23, Sébastien Boutté [EMAIL PROTECTED]: Hi, I would like to know how i can override a specific dependency of one of my dependency : My project has a dependency on dependency1 which has a dependency on dependency2. I have made some improvements/bug fixes on dependy2'jar, how can I configure Maven 2 to use My own dependency2'jar in place of the one in the default repository ? For the two cases : 1. Generation of war file 2. Creation of Eclipse Workspace Libraries dependency Thanks for your help, Sébastien Boutté
testing and working folder
We are running into some issues with unit tests finding the correct working folder. The root of the problem seems to be that maven uses the root path of where ever it is launched from. This means that a test coded to create a file in ./target will sometimes drop that file in the parent's target folder. It generally works, but it leaves droppings all over the source tree. Is there a way that we can access some maven properties from within the test (in java) that could be used to refer to the correct location. I'm specifically interested in ${project.build.directory} but others would be handy. I'm hoping that our tests are running inside the same vm and we can access some property. The only thing I can think of currently is to use a filtered property file that is read by the tests, but when you have 100's of modules, this will be combersome. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pagkaging in a faster way
I know it sounds silly, but I'm using maven ide that already compiles everything I need :) so when packaging all I need is to pack everything :) Regards On 8/23/06, Andrew Kreps [EMAIL PROTECTED] wrote: That would be very useful in the case that you're either making changes to the packaging without changing code, or packaging static content, for example. Personally, I use the compile phase as a reason to grab another cup of tea. On 8/23/06, Matt Raible [EMAIL PROTECTED] wrote: You want to package w/o compiling? That seems kinda silly doesn't it? To skip testing, use mvn -Dmaven.test.skip=true. Matt - 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]
ant based plugin
Hi All, I have been using an antrun execution to generate some code whilst prototyping a maven build system. I want to make a generic ant plugin to do this but had some issues in doing so. First of, I couldn't see how to use the paths as allowed in antrun - such as maven.compile.classpath, I eventually got it to work with a custom ant task and setting a property of type java.util.List - not ideal, I can deal with it until it's fixed in a release but is there any tidier way to do it? Secondly my maven-plugin-plugin usage in my ant maven-plugin has it's own dependencies - a generic set that should always be used with this plugin but I can't see how to access these - any ideas? Thanks for your time in advance. Dave. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] howto run the maven compiler two times ?
Neat. I didn't know this would work. I think it is the lesser of the two evils. Ruel Loehr JBoss QA - 512-342-7840 ext 2011 Yahoo: ruelloehr Skype: ruelloehr AOL: dokoruel -Original Message- From: Jörg Schaible [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 22, 2006 1:35 AM To: Maven Users List Subject: RE: [m2] howto run the maven compiler two times ? Nicolas De Loof wrote on Monday, August 21, 2006 5:31 PM: Hello, I've a requirement for a utility lib to include both Java1.3 and Java5 code. I don't want to split my lib into two jars, but to split the source three into src/main/java and src/main/tiger. I'm searching for a way to configure the compiler plugin for this. I've set two compiler configuration (default config is for 1.3 and idtiger/id execution for java5) I've tried to use the build-helper plugin, but I cannot make int run between compiler default execution (java13) and compiler java5 execution. I've also looked at compiler doc, but |compileSourceRoots| seems to be readonly. My requirement seems not to be so strange : take a look at Spring or any other utility/framework that want to add support for Java5 witout breaking existing code. Is there any known solution for this ? It has flaws, but it works: http://jira.codehaus.org/browse/MCOMPILER-37 (see my comment) - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.5/425 - Release Date: 8/22/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.5/425 - Release Date: 8/22/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cargo Tomcat
Anybody using cargo with tomcat? Im curious about how you deal with quick dev cycle changes where you might want to push 1 file but dont want to do an entire build to do so. D-
RE: Cargo Tomcat
I just located tomcat-maven-plugin at codehaus and cargo doesnt seem to be listed. Is tomcat-maven-plugin the cargo replacement? Also, in the maven book, I read about a continuous deploy for jetty. Is there anything like that available for tomcat? -Original Message- From: Douglas Ferguson Sent: Wednesday, August 23, 2006 3:44 PM To: users Subject: Cargo Tomcat Anybody using cargo with tomcat? Im curious about how you deal with quick dev cycle changes where you might want to push 1 file but dont want to do an entire build to do so. D- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cargo Tomcat
We've been using Cargo to deploy out WARs to instances of tomcat on local dev boxes beautifully. The relevant stanza we're using: plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId configuration container containerIdtomcat5x/containerId homec:/apps/stock-tomcat-5.0.28/home /container configuration dirc:/apps/stock-tomcat-5.0.28/dir /configuration /configuration /plugin Although there's a lot more information on the cargo plugin site for options and how-to. -joe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Ferguson Sent: Wednesday, August 23, 2006 1:59 PM To: users Subject: RE: Cargo Tomcat I just located tomcat-maven-plugin at codehaus and cargo doesn't seem to be listed. Is tomcat-maven-plugin the cargo replacement? Also, in the maven book, I read about a continuous deploy for jetty. Is there anything like that available for tomcat? -Original Message- From: Douglas Ferguson Sent: Wednesday, August 23, 2006 3:44 PM To: users Subject: Cargo Tomcat Anybody using cargo with tomcat? I'm curious about how you deal with quick dev cycle changes where you might want to push 1 file but don't want to do an entire build to do so. D- - 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: Cargo Tomcat
Where can I find the cargo docs? Also, do you ever do any file deploys. I.E. After updating just 1 jsp... -Original Message- From: Heck, Joe [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 4:11 PM To: Maven Users List Subject: RE: Cargo Tomcat We've been using Cargo to deploy out WARs to instances of tomcat on local dev boxes beautifully. The relevant stanza we're using: plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId configuration container containerIdtomcat5x/containerId homec:/apps/stock-tomcat-5.0.28/home /container configuration dirc:/apps/stock-tomcat-5.0.28/dir /configuration /configuration /plugin Although there's a lot more information on the cargo plugin site for options and how-to. -joe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Ferguson Sent: Wednesday, August 23, 2006 1:59 PM To: users Subject: RE: Cargo Tomcat I just located tomcat-maven-plugin at codehaus and cargo doesn't seem to be listed. Is tomcat-maven-plugin the cargo replacement? Also, in the maven book, I read about a continuous deploy for jetty. Is there anything like that available for tomcat? -Original Message- From: Douglas Ferguson Sent: Wednesday, August 23, 2006 3:44 PM To: users Subject: Cargo Tomcat Anybody using cargo with tomcat? I'm curious about how you deal with quick dev cycle changes where you might want to push 1 file but don't want to do an entire build to do so. D- - 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: goal not found error
Well, I know nothing of exo, so I can't help you with those specifics. I can say that originally you were trying to execute the bp goal of the maven-exo-plugin, yet the error message you mention above required goal not found: org.apache.maven.plugins:maven-exo-plugin:1.0:exo indicates you tried to run the exo goal. Which goal are you trying to execute? For help with the plugin, try running mvn help:describe -DgroupId= org.apache.maven.plugins -DartifactId=maven-exo-plugin and see what goals the plugin supports. Or you may need to contact whoever created the plugin for support/docs. As for where to run these command, I don't think the help:describe goal requires a pom, so you should be able to run that anywhere. For most plugins though, you need to be in a directory with a valid pom file. HTH, Doug On 8/23/06, john_sh [EMAIL PROTECTED] wrote: You can use the fully-specified syntax for executing a goal, eg. mvn groupId:artifactId:version:goal When using the short form of specifying a goal, maven, by default, only searches two groupIds: org.apache.maven.plugins and org.codehaus.mojo. Odds are the maven-evo-plugin is not in either of these groups and that's why she doesn't find the evo plugin. You can modify the groupIds maven searches when using the short form by adding the following to your settings.xml: pluginGroups pluginGroupsome.groupId/pluginGroup pluginGroupsome.other.groupId/pluginGroup /pluginGroups HTH, Doug -- thank u for ur reply but maven-exo-plugin exists in the org\apache\maven\plugins dir, and plugin groupId is set to the same groupId(org.apache.maven.plugin), and even when i specify the groupId and other properties in the command line it says that required goal not found: org.apache.maven.plugins:maven-exo-plugin:1.0:exo and please tell me from which path i must execute this command? from where my exo business process(which i want to create par file from that with maven with this plugin) is located or from maven bin dir? or? -- View this message in context: http://www.nabble.com/goal-not-found-error-tf2152081.html#a5946596 Sent from the Maven - Users forum at Nabble.com. - 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: Pagkaging in a faster way
So you can try to call the specific goal of packaging jar:jar for a jar packaging. war:war for war packaging (IIRC) Raphaël 2006/8/23, Vinicius Carvalho [EMAIL PROTECTED]: I know it sounds silly, but I'm using maven ide that already compiles everything I need :) so when packaging all I need is to pack everything :) Regards On 8/23/06, Andrew Kreps [EMAIL PROTECTED] wrote: That would be very useful in the case that you're either making changes to the packaging without changing code, or packaging static content, for example. Personally, I use the compile phase as a reason to grab another cup of tea. On 8/23/06, Matt Raible [EMAIL PROTECTED] wrote: You want to package w/o compiling? That seems kinda silly doesn't it? To skip testing, use mvn -Dmaven.test.skip=true. Matt - 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: Cargo Tomcat
http://cargo.codehaus.org/ specifically I'd recommend taking a once over http://cargo.codehaus.org/Quick+start -joe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Ferguson Sent: Wednesday, August 23, 2006 2:18 PM To: users Subject: RE: Cargo Tomcat Where can I find the cargo docs? Also, do you ever do any file deploys. I.E. After updating just 1 jsp... -Original Message- From: Heck, Joe [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 4:11 PM To: Maven Users List Subject: RE: Cargo Tomcat We've been using Cargo to deploy out WARs to instances of tomcat on local dev boxes beautifully. The relevant stanza we're using: plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId configuration container containerIdtomcat5x/containerId homec:/apps/stock-tomcat-5.0.28/home /container configuration dirc:/apps/stock-tomcat-5.0.28/dir /configuration /configuration /plugin Although there's a lot more information on the cargo plugin site for options and how-to. -joe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Ferguson Sent: Wednesday, August 23, 2006 1:59 PM To: users Subject: RE: Cargo Tomcat I just located tomcat-maven-plugin at codehaus and cargo doesn't seem to be listed. Is tomcat-maven-plugin the cargo replacement? Also, in the maven book, I read about a continuous deploy for jetty. Is there anything like that available for tomcat? -Original Message- From: Douglas Ferguson Sent: Wednesday, August 23, 2006 3:44 PM To: users Subject: Cargo Tomcat Anybody using cargo with tomcat? I'm curious about how you deal with quick dev cycle changes where you might want to push 1 file but don't want to do an entire build to do so. D- - 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: goal not found error
These questios probably better belong on the eXo mailing list. Manually downloading the jar placing it in your repository will not work as far as I know. You should be able to set up http://maven.objectweb.org/maven2 as a pluginRepository, and have it download the plugin from there, but I've had no luck, and I don't really understand why it's not working (anybodye else? Some help?) Your best bet is probably to check out the eXo source code and install the plugin. -Stephen On 8/23/06, john_sh [EMAIL PROTECTED] wrote: You can use the fully-specified syntax for executing a goal, eg. mvn groupId:artifactId:version:goal When using the short form of specifying a goal, maven, by default, only searches two groupIds: org.apache.maven.plugins and org.codehaus.mojo. Odds are the maven-evo-plugin is not in either of these groups and that's why she doesn't find the evo plugin. You can modify the groupIds maven searches when using the short form by adding the following to your settings.xml: pluginGroups pluginGroupsome.groupId/pluginGroup pluginGroupsome.other.groupId/pluginGroup /pluginGroups HTH, Doug -- thank u for ur reply but maven-exo-plugin exists in the org\apache\maven\plugins dir, and plugin groupId is set to the same groupId(org.apache.maven.plugin), and even when i specify the groupId and other properties in the command line it says that required goal not found: org.apache.maven.plugins:maven-exo-plugin:1.0:exo and please tell me from which path i must execute this command? from where my exo business process(which i want to create par file from that with maven with this plugin) is located or from maven bin dir? or? -- View this message in context: http://www.nabble.com/goal-not-found-error-tf2152081.html#a5946596 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2.04] deploy goal is causing MalformedPatternException
I get the following error when I try to deploy a project configured to use ftp for distributionManagement (I am using ftp wagon 1.0-alpha-6); what could be causing this? (I am using http for repositories.) [INFO] Building X-Rite XDSIII Instrument Drivers [INFO]task-segment: [deploy] [INFO] - --- [INFO] [site:attach-descriptor] [INFO] [install:install] [INFO] Installing C:\svn\components\xdsiii-drivers\trunk\pom.xml to C:\Documents and Settings\XRBUILD\.m2\repository\com\xrite\xdsiii-drivers\1.0-SNAPSHOT\xd sii i-drivers-1.0-SNAPSHOT.pom [INFO] [deploy:deploy] [INFO] Retrieving previous build number from internal_snapshot [INFO] [ERROR] FATAL ERROR [INFO] [INFO] org/apache/oro/text/regex/MalformedPatternException [INFO] [INFO] Trace java.lang.NoClassDefFoundError: org/apache/oro/text/regex/MalformedPatternExcept ion at org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.cr eateNTFTPEntryParser(DefaultFTPFileEntryParserFactory.java:184) at org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.cr eateFileEntryParser(DefaultFTPFileEntryParserFactory.java:102) at org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.ja va:2358) at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2141) at org.apache.maven.wagon.providers.ftp.FtpWagon.fillInputData(FtpWagon. java:332) at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68) at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(D efaultWagonManager.java:369) at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMeta data(DefaultWagonManager.java:295) at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetada taManager.resolveAlways(DefaultRepositoryMetadataManager.java:356) at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetada taManager.resolveAlways(DefaultRepositoryMetadataManager.java:310) at org.apache.maven.artifact.transform.SnapshotTransformation.resolveLat estSnapshotBuildNumber(SnapshotTransformation.java:158) at org.apache.maven.artifact.transform.SnapshotTransformation.transformF orDeployment(SnapshotTransformation.java:97) at org.apache.maven.artifact.transform.DefaultArtifactTransformationMana ger.transformForDeployment(DefaultArtifactTransformationManager.java:61) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Def aultArtifactDeployer.java:68) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:121 ) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cargo Tomcat
Hi Doug, -Original Message- From: Douglas Ferguson [mailto:[EMAIL PROTECTED] Sent: mercredi 23 août 2006 22:44 To: users Subject: Cargo Tomcat Anybody using cargo with tomcat? Im curious about how you deal with quick dev cycle changes where you might want to push 1 file but dont want to do an entire build to do so. Yes this can be done with Cargo and Tomcat. It's not documented yet but you can see a test project that does it here: http://fisheye.codehaus.org/browse/cargo/cargo/trunk/samples/extensions/mave n2/src/test/projects/testStartInplaceDevelopment In the future please use the Cargo mailing list for any cargo-related question. BTW we are accepting documentation patches so if you have a good experience using it and you want to document it we'd love that! :-) Thanks -Vincent p5.vert.ukl.yahoo.com uncompressed Wed Aug 23 21:27:00 GMT 2006 ___ Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. http://fr.answers.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
authorization error deploying to tomcat
Scenario: trying to deploy app to tomcat using org.codehaus.mojo plugin Error: getting authorization error, how do pass/specify the tomcat manger username/pwd [INFO] [tomcat:deploy] [INFO] Deploying war to http://localhost:8080/webtop-1.0-SNAPSHOT [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Cannot invoke Tomcat manager Embedded error: Server returned HTTP response code: 401 for URL: http://localhos t:8080/manager/deploy?path=%2Fwebtop-1.0-SNAPSHOTwar= [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Cannot invoke Tomcat man ager at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:488) -- View this message in context: http://www.nabble.com/authorization-error-deploying-to-tomcat-tf2155282.html#a5953887 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running offline
Hello there! Why some of my poms always try to be downloaded again from their repositores everytime I call an maven goal? (Eg. spring.pom, tapestry.pom, and even some jee jars I installed like: mail and activation)? Here's an output of a mvn in my project: --- Downloading: http://howardlewisship.com/repository//javax/activation/1.0/activation-1.0.pom [WARNING] Unable to get resource from repository HLS (http://howardlewisship.com/repository/) Downloading: http://repo1.maven.org/maven2/javax/activation/1.0/activation-1.0.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) Downloading: http://howardlewisship.com/repository//javax/mail/1.0/mail-1.0.pom [WARNING] Unable to get resource from repository HLS (http://howardlewisship.com/repository/) Downloading: http://repo1.maven.org/maven2/javax/mail/1.0/mail-1.0.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) Downloading: http://howardlewisship.com/repository//org/springframework/spring/1.2.8/spring-1.2.8.pom [WARNING] Unable to get resource from repository HLS (http://howardlewisship.com/repository/) Downloading: http://repo1.maven.org/maven2/org/springframework/spring/1.2.8/spring-1.2.8.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) Downloading: http://howardlewisship.com/repository//tapestry/tapestry-contrib/4.0.2/tapestry-contrib-4.0.2.pom [WARNING] Unable to get resource from repository HLS (http://howardlewisship.com/repository/) Downloading: http://repo1.maven.org/maven2/tapestry/tapestry-contrib/4.0.2/tapestry-contrib-4.0.2.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [INFO] [war:war] Best Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2.04] HTTP protocol 403 error
We recently switched from using ftp wagon protocol to download dependent artifacts from our private repo to using HTTP with Apache2. We are getting a 403 error when we download these artifacts but do not see any reason for this error. For example, the file is accessible with browsers. What may be causing this error with maven2? org.apache.maven.wagon:wagon-ftp:pom:1.0-alpha-6 from the specified remote repositories: central (http://repo1.maven.org/maven2), external_free (http://XRBUILD2.xrite.com/external_free), internal (http://XRBUILD2.xrite.com/internal) org.apache.maven.wagon:wagon-ftp:jar:1.0-alpha-6 from the specified remote repositories: central (http://repo1.maven.org/maven2), external_free (http://XRBUILD2.xrite.com/external_free), internal (http://XRBUILD2.xrite.com/internal) Path to dependency: 1) com.xrite:xdsiii-drivers:pom:1.0-SNAPSHOT at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(D efaultArtifactCollector.java:297) at org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(D efaultArtifactCollector.java:67) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTra nsitively(DefaultArtifactResolver.java:223) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTra nsitively(DefaultArtifactResolver.java:211) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTra nsitively(DefaultArtifactResolver.java:182) at org.apache.maven.extension.DefaultExtensionManager.addExtension(Defau ltExtensionManager.java:68) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.findExtensions(De faultLifecycleExecutor.java:155) ... 12 more Caused by: org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException : Unable to read the metadata file for artifact 'org.apache.maven.wagon:wagon-ft p:jar': Error getting POM for 'org.apache.maven.wagon:wagon-ftp' from the reposi tory: Error transferring file org.apache.maven.wagon:wagon-ftp:pom:1.0-alpha-6 from the specified remote repositories: central (http://repo1.maven.org/maven2), external_free (http://XRBUILD2.xrite.com/external_free), internal (http://XRBUILD2.xrite.com/internal) at org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenM etadataSource.java:131) at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(D efaultArtifactCollector.java:275) ... 18 more Caused by: org.apache.maven.project.ProjectBuildingException: Error getting POM for 'org.apache.maven.wagon:wagon-ftp' from the repository: Error transferring f ile org.apache.maven.wagon:wagon-ftp:pom:1.0-alpha-6 from the specified remote repositories: central (http://repo1.maven.org/maven2), external_free (http://XRBUILD2.xrite.com/external_free), internal (http://XRBUILD2.xrite.com/internal) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo sitory(DefaultMavenProjectBuilder.java:501) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromReposito ry(DefaultMavenProjectBuilder.java:225) at org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenM etadataSource.java:102) ... 19 more Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException: Error transferring file org.apache.maven.wagon:wagon-ftp:pom:1.0-alpha-6 from the specified remote repositories: central (http://repo1.maven.org/maven2), external_free (http://XRBUILD2.xrite.com/external_free), internal (http://XRBUILD2.xrite.com/internal) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De faultArtifactResolver.java:140) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De faultArtifactResolver.java:63) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo sitory(DefaultMavenProjectBuilder.java:467) ... 21 more Caused by: org.apache.maven.wagon.TransferFailedException: Error transferring fi le at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD ata(LightweightHttpWagon.java:99) at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68) at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(D efaultWagonManager.java:369) at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def aultWagonManager.java:282) at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def aultWagonManager.java:244) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De faultArtifactResolver.java:124) ... 23 more Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://XRBUILD2.xrite.com/internal/org/apache/maven/wagon/wagon-ftp/1.0- alpha-6
Re: Assembly plugin issues
On 8/23/06, Douglas Ferguson [EMAIL PROTECTED] wrote: I am not sure I follow, dependencySet is in the assembly.xml. Can you give an example tag you'd need to add the the xml below to get it to exclude 1 class file that is picked up from the dependencySet below? You don't use the dependencySet to exclude the file. DependencySet copies existing dependencies. What you do is you craft your assembly so that it includes or excludes the files you want. So in my src/main/assembly/bin.xml (which is building a binary distribution for an artifact say my.group:mouldeA): I have: assembly idbin/id formats formatdir/format formatzip/format /formats includeBaseDirectorytrue/includeBaseDirectory fileSets fileSet directorysrc/main/config/directory outputDirectoryconfig//outputDirectory includes include*/include /includes /fileSet fileSet directorytarget/directory outputDirectory/outputDirectory includes include${artifactId}-${version}.jar/include /includes /fileSet /fileSets files file sourcesrc/main/scripts/start_debug.bat/source filteredfalse/filtered /file file sourcesrc/main/scripts/start.bat/source filteredfalse/filtered /file file sourcesrc/main/scripts/stop.bat/source filteredfalse/filtered /file /files dependencySets dependencySet outputDirectorylib/outputDirectory unpackfalse/unpack outputFileNameMapping ${artifactId}-${baseVersion}.${extension}/outputFileNameMapping /dependencySet /dependencySets /assembly Here you would include all the files you want. Or exclude them as necessary in fileSet or file declarations. Then in my main distribution I would include this as a dependency as per my previous mail and it will automatically be included in the super archive as part of the dependencySet. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: [m204] Help getting Maven to run with JDeveloper 10.x please...???
This was donated with the intention of bringing it to Maven. If you both are interested, we're looking for people who can contribute to it. - Brett On 24/08/06, Alexandre Poitras [EMAIL PROTECTED] wrote: 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] -- Apache Maven - http://maven.apache.org Better Builds with Maven book - http://library.mergere.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jetty6 plugin and IntelliJ IDEA
IDEA can't save files while I use jetty6:run. I've tried with and without scanIntervalSeconds set. When scanIntervalSeconds is set. I can save files a little while (less than a minute) before I have trouble. But eventually IDEA says it can't save a file. It seems like it works until I view one of my JSPs, then the error message. Any Ideas? Here's my jetty6 plugin settings... plugin groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty-plugin/artifactId configuration scanIntervalSeconds5/scanIntervalSeconds /configuration /plugin Thanks! ,chris
Re: Assembly plugin issues
On 8/22/06, Owen Jacobson [EMAIL PROTECTED] wrote: However I have one last thing to try: I notice that you have two moduleSet declarations. Can you not collapse them into one? which contains both the source and the binary sections? I suspect that might be the problem. Just for grins I tried this anyways. It still duplicated the foo-1.3-SNAPSHOT part of the assembly-relative path. Does this not explain how to do what you want? http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-source-inclusion-simple.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to make maven quiet
Hi EJ, Have you tried using maven.test.redirectTestOutputToFile parameter to mvn test? EJ Ciramella wrote: We're getting TONS of output when we run things like mvn compile or mvn test - some of is is our test classes but in the case of the compile, it's all maven output. How do we turn this down/off? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven2 / hibernate3- schema-export
Hi Marco, Your hbm.xml file must be located in src/main/resources When you run mvn clean resources:resources hibernate3:hbm2java the hbm.xml files are copied into target/classes and then the java source files are generated. Alternatively you could generate the hbm.xml file directly into target/classes and run mvn hibernate3:hbm2java. Thanks Lakshman From: Marco Mistroni [mailto:[EMAIL PROTECTED] Sent: Wednesday, 23 August 2006 11:12 PM To: Lakshman Srilakshmanan Subject: Re: maven2 / hibernate3- schema-export Hi Lakshman, htanx for the link! i managed to build it and use it but i am still having problems .. i am generating hbm.xml files out of my annotated classes using xdoclet, and somehow i'd need to tell to the plugin where to find the .hbm.xml . how can i configure that? thanks and regards marco On 8/23/06, Lakshman Srilakshmanan [EMAIL PROTECTED] wrote: Hi Marco The link I provided is for anonymous access as shown below. Happy hunting :) svn co http://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/maven-hibernate3/hibernate3-maven-plugin hibernate3-maven-plugin Ahibernate3-maven-plugin/src Ahibernate3-maven-plugin/src/main Ahibernate3-maven-plugin/src/main/java Ahibernate3-maven-plugin/src/main/java/org Ahibernate3-maven-plugin/src/main/java/org/codehaus Ahibernate3-maven-plugin/src/main/java/org/codehaus/mojo Ahibernate3-maven-plugin/src/main/java/org/codehaus/mojo/hibernate3 Ahibernate3-maven-plugin/src/main/java/org/codehaus/mojo/hibernate3/HibernateExporterMojo.java Ahibernate3-maven-plugin/src/main/java/org/codehaus/mojo/hibernate3/converter Ahibernate3-maven-plugin/src/main/java/org/codehaus/mojo/hibernate3/converter/ProviderConfigurationConverter.java Ahibernate3-maven-plugin/src/main/java/org/codehaus/mojo/hibernate3/exporter Ahibernate3-maven-plugin/src/main/java/org/codehaus/mojo/hibernate3/exporter/Hbm2JavaGeneratorMojo.java Ahibernate3-maven-plugin/src/main/java/org/codehaus/mojo/hibernate3/exporter/Hbm2CfgXmlExporterMojo.java Ahibernate3-maven-plugin/src/main/java/org/codehaus/mojo/hibernate3/exporter/SchemaExportMojo.java Ahibernate3-maven-plugin/src/main/java/org/codehaus/mojo/hibernate3/exporter/SchemaUpdateMojo.java Ahibernate3-maven-plugin/src/main/java/org/codehaus/mojo/hibernate3/exporter/Hbm2DDLExporterMojo.java Ahibernate3-maven-plugin/src/main/java/org/codehaus/mojo/hibernate3/exporter/Hbm2DocExporterMojo.java Ahibernate3-maven-plugin/src/main/java/org/codehaus/mojo/hibernate3/exporter/Hbm2HbmXmlExporterMojo.java Ahibernate3-maven-plugin/src/main/resources Ahibernate3-maven-plugin/src/main/resources/META-INF Ahibernate3-maven-plugin/src/main/resources/META-INF/plexus Ahibernate3-maven-plugin/src/main/resources/META-INF/plexus/components.xml Ahibernate3-maven-plugin/src/site Ahibernate3-maven-plugin/src/site/site.xml Ahibernate3-maven-plugin/src/site/apt Ahibernate3-maven-plugin/src/site/apt/howto.apt Ahibernate3-maven-plugin/src/site/apt/confighibernate.apt Ahibernate3-maven-plugin/src/site/apt/configoutputdirectory.apt Ahibernate3-maven-plugin/pom.xml U hibernate3-maven-plugin Thanks Lakshman From: Marco Mistroni [mailto: [EMAIL PROTECTED] Sent: Tuesday, 22 August 2006 11:25 PM To: Lakshman Srilakshmanan Subject: Re: maven2 / hibernate3- schema-export Hello Lakshman, i didnt manage to donwload the plugin... :( any links to SVN for anonymous access? thanks and regards marco On 8/22/06, Marco Mistroni [EMAIL PROTECTED] wrote: Hello Lakshman, thanx very much!!! i will surely try i tout and by end of to day i'll get back to tell you how it went thanx a lot and regards Marco On 8/22/06, Lakshman Srilakshmanan [EMAIL PROTECTED] wrote: Hi Marco, No problem. I had to download hibernate3 plugin from http://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/maven-hibernate3 and compile it locally before I could get it to work. Besides the command I ran are mvn clean resources:resources hibernate3:hbm2java mvn clean resources:resources hibernate3:schema-export Hope it helps. build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdhibernate3-maven-plugin/artifactId version1.0-SNAPSHOT/version executions execution configuration hibernate configurationFile/src/main/resources/hibernate.cfg.xml/configurationFile /hibernate outputDirectory hbm2cfgxmlsrc/main/resources/hbm2cfgxml !-- hbm2dlltarget/hibernate3/sql/hbm2dll -- /outputDirectory outputFileSMS.sql/outputFile /configuration /execution /executions /plugin /plugins extensions extension groupIdjdbc.jtds/groupId artifactIdjtds/artifactId version1.2/version !-- groupIdhsqldb/groupId artifactIdhsqldb/artifactId
RE: How to make maven quiet
That would alleviate about 20% of the output from maven - what about all the nonsense spit out during compile/package? -Original Message- From: Allan Ramirez [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 8:44 PM To: Maven Users List Subject: Re: How to make maven quiet Hi EJ, Have you tried using maven.test.redirectTestOutputToFile parameter to mvn test? EJ Ciramella wrote: We're getting TONS of output when we run things like mvn compile or mvn test - some of is is our test classes but in the case of the compile, it's all maven output. How do we turn this down/off? - 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]