surefire fails but tests work
i get ERROR] BUILD ERROR [INFO] [INFO] There are some test failure. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 13 seconds [INFO] Finished at: Thu Jul 27 13:12:46 CEST 2006 [INFO] Final Memory: 5M/14M but my only test in target/surefire-reports says --- Battery: at.systemone.configuration.ConfigurationControllerTest --- Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 4.437 sec where can i have a look to understand on this issue
Re: [Continumm 1.0.3] Alot of errors in the continumm log file..
Hi Emmanuel, Took a quick look at the package.jdo and it only contains the length property for the column not the actual datatyp. Isn't the SCMResult.class (found in continuum-model.jar) generated from http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-model/src/main/mdo/continuum.mdo This file contains the datatypes and length for the columns. And in that case the continuum.mdo needs to be modified and the class re-generated, or? /Mattias ok, I'll try changing that when I find some spare time. And the create table stmt should look like this and nothing else. CREATE TABLE SCMRESULT2 ( SCMRESULT_ID BIGINT PRIMARY KEY not null, COMMAND_LINE VARCHAR(255), COMMAND_OUTPUT CLOB(16M), EXCEPTION VARCHAR(8192), PROVIDER_MESSAGE VARCHAR(1024), SUCCESS CHAR(1) not null, MODEL_ENCODING VARCHAR(255) ); /Mattias oh yes, you need to change package.jdo in continuum-model.jar I don't think you need to change something else. Emmanuel Mattias Andersson a écrit : Hi Emmanuel, Is blob really appropriate for varchar type of information? You can't copy varchar into a blob! Shouldn't it be a clob? Below are the SQL statments that I executed. (unfortunatly you can't alter the data type of the column directly). But when I started continumm it complained that the column COMMAND_OUTPUT should be a VARCHAR and not a CLOB. org.jpox.store.exceptions.IncompatibleDataTypeException: Incompatible data type for column SCMRESULT.COMMAND_OUTPUT : was Types.CLOB, but type expected was Types.VARCHAR. Please check that the type in the datastore and the type specified in the MetaData are consistent. So I guess you can't change this without changing to code. Or is the meta data available some where? Regards, Mattias CREATE TABLE SCMRESULT2 ( SCMRESULT_ID BIGINT PRIMARY KEY not null, COMMAND_LINE VARCHAR(255), COMMAND_OUTPUT VARCHAR(16384), EXCEPTION VARCHAR(8192), PROVIDER_MESSAGE VARCHAR(1024), SUCCESS CHAR(1) not null, MODEL_ENCODING VARCHAR(255) ); INSERT INTO SCMRESULT2 SELECT * FROM SCMRESULT; ALTER TABLE CHANGESET DROP CONSTRAINT CHANGESET_FK1; ALTER TABLE BUILDRESULT DROP CONSTRAINT BUILDRESULT_FK1; ALTER TABLE BUILDRESULT DROP CONSTRAINT BUILDRESULT_FK3; ALTER TABLE PROJECT DROP CONSTRAINT PROJECT_FK1; ALTER TABLE PROJECT DROP CONSTRAINT PROJECT_FK4; DROP TABLE SCMRESULT; RENAME TABLE SCMRESULT2 TO SCMRESULT; ALTER TABLE CHANGESET ADD CONSTRAINT CHANGESET_FK1 FOREIGN KEY (CHANGES_SCMRESULT_ID_OID) REFERENCES SCMRESULT(SCMRESULT_ID); ALTER TABLE BUILDRESULT ADD CONSTRAINT BUILDRESULT_FK1 FOREIGN KEY (SCM_RESULT_SCMRESULT_ID_VM) REFERENCES SCMRESULT(SCMRESULT_ID); ALTER TABLE BUILDRESULT ADD CONSTRAINT BUILDRESULT_FK3 FOREIGN KEY (SCM_RESULT_SCMRESULT_ID_OID) REFERENCES SCMRESULT(SCMRESULT_ID); ALTER TABLE PROJECT ADD CONSTRAINT PROJECT_FK1 FOREIGN KEY (CHECKOUT_RESULT_SCMRESUL2U) REFERENCES SCMRESULT(SCMRESULT_ID); ALTER TABLE PROJECT ADD CONSTRAINT PROJECT_FK4 FOREIGN KEY (CHECKOUT_RESULT_SCMRESULT_ID_OID) REFERENCES SCMRESULT(SCMRESULT_ID); If you change it, can you send us the procedure? we'll add an entry in faqs. Emmanuel Mattias Andersson a écrit : Hi Emmanuel, ok, I'll try to change the column. Thanks for the quick response! Regards, Mattias It's a known problem thazt we'll fix in 1.1. The length of a field (COMMAND_OUTPUT) isn't enought in database, you can change it to a blob with a sql client like squirrel. Emmanuel Mattias Andersson a écrit : Hi, I got some errors today in the continuum log fil that I do know how to solve? The appeared when I pressed the build button for a project. It's a shell project, SCM is CVS and I use continumm 1.0.3. Are these errors known or should I add new isues? And are there any workarounds? (the complete stack trace is not included below to keep the mail smaller. They are available if needed) Regards, Mattias ERROR 1: === cvs update: move away scripts/Database/mssql/Views/dbo.DB_SubRatParamHistory_1.VIW; it is in the way 31802313 [Thread-2] WARN org.apache.maven.continuum.scm.ContinuumScm - Provider message: The cvs command failed. 31802391 [Thread-2] ERROR org.apache.maven.continuum.buildcontroller.BuildController - Error while building project. javax.jdo.JDODataStoreException: Insert request failed: INSERT INTO SCMRESULT (SCMRESULT_ID,SUCCESS,COMMAND_OUTPUT,EXCEPTION,COMMAND_LINE,PROVIDER_MESSAGE,MODEL_ENCODING) VALUES (?,?,?,?,?,?,?) at org.jpox.store.rdbms.request.InsertRequest.execute(InsertRequest.java:387) at org.jpox.store.rdbms.table.ClassTable.insert(ClassTable.java:2146) at org.jpox.store.StoreManager.insert(StoreManager.java:739) at org.jpox.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3415) at
RE: issue with setting up M1 POM URL
-Original Message- From: Yuan, Bill Sent: Thursday, July 27, 2006 9:15 AM To: continuum-users@maven.apache.org Subject: RE: issue with setting up M1 POM URL Arnaud and any other experts, I still have problem with adding our Maven 1.x project to Continuum. Let me restate our problem again: [deleted] Seems like we have to use the M1 POM URL option instead. However, I tried various URL format (I could only use FILE protocol), like, file:///C:\p4\WS_u208479_AIS\EAI_weblogic\uia2_5.0\project.xml fill:///C:/p4/WS_u208479_AIS/EAI_weblogic/uia2_5.0/project.xml ftp:///c: /p4/WS_u208479_AIS/EAI_weblogic/uia2_5.0/project.xml but always got the error message saying [ You must provide a valid url (http, https, ftp and file protocols are allowed) ] Bill, I'm not strictly familiar with the maven POM URL format, but the file: protocol with a DOS path should look like this: file://C:/p4/WS_u208479_AIS/EAI_weblogic/uia2_5.0/project.xml It should have 2 slashes before the disk letter, and use all forward slashes. -Original Message- From: Arnaud HERITIER [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 25, 2006 4:18 PM To: continuum-users@maven.apache.org Subject: Re: issue with setting up M1 POM URL There's no jar to update. You just have to reboot your continuum server Arnaud On 7/25/06, Yuan, Bill [EMAIL PROTECTED] wrote: Arnaud, I tried but seems like it doesn't work. I also found from the FAQ on http://maven.apache.org/continuum/faqs.html . It says that if we need to use File protocol in Add project view, we have to uncomment the line allowedSchemefile/allowedScheme in application.xml. I did the change, but how could I compile the new jars which will reference this application.xml? Thanks for your followup! - Bill -Original Message- From: Arnaud HERITIER [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 25, 2006 3:58 PM To: continuum-users@maven.apache.org Subject: Re: issue with setting up M1 POM URL If your POM isn't on a web server but on your local disk, you have to define something like : fille://C:/p4/WS_u208479_AIS/EAI_weblogic/uia2_5.0/project.xml ftp://c/p 4/WS_u208479_AIS/EAI_weblogic/uia2_5.0/project.xml cheers arnaud On 7/25/06, Yuan, Bill [EMAIL PROTECTED] wrote: Hi there, Please help me on the following issue: I installed Continuum 1-0-3 on my local machine, and our project is managed by Perforce on another server. My problem is: On the web interface of Continuum (http://localhost:8080/continuum/servlet/continuum), I clicked Add Maven 1.x project, however, whatever M1 POM URL I gave, I got the error saying [ You must provide a valid url (http, https, ftp and file protocols are allowed) ]. For example, I gave one URL string as ftp:///C:/p4/WS_u208479_AIS/EAI_weblogic/uia2_5.0/project.xml and got the error mentioned earlier. Could anybody help me on what the M1 POM URL would be? One note is that our project includes a bunch of subprojects, meaning I can't use the Upload POM function Thanks, Bill (Xinxue) Yuan Retail Bank Services and Systems Application Architectur/Integration Washington Mutual 847.393.5382 Office 847.903.4548 Mobile 340 N. Milwaukee Ave., VHF4A01, Vernon Hills, IL 60061
Re: sub project notifications
I don't think it will use that childs notification element, I don't think continuum actually knows anything about that subproject when it comes to it failing and sending out notifications. on the bright side project groups are getting a rework in the next version of continuum :) jesse On 7/27/06, Brian E. Fox [EMAIL PROTECTED] wrote: Hi All, We're currently running 1.0.3 on several large multiprojects. I needed to add just the parents and clear the non-recursive flag because having each module as a standalone entity in continuum was unmanageable (we have ~50 modules in several branches for around 100+ total). If I set a notification element in one of the child poms, will continuum use that to notify? Example: A-- B-- C D E If I set a notification email in B, when the build fails in C or D, will that be sent, or will it only send notifications configured in A since that's the only project configured directly in continuum? -- jesse mcconnell [EMAIL PROTECTED]
Re: Generate Jira Report report
Hi, I built the plugin from svn, the error does not happen any more, but the Jira report on generated site is _empty_, only headers (Key, Summary, Status, Resolution, By) are displayed. I tried downloading the XML (RSS 0.92) from Jira manualy (in browser) and it looks ok to me. Regards, bob On 26.7.2006 23:40, Dennis Lundberg wrote: Yes, you need to build the latest version of the plugin from SVN. This problem has been fixed there, but no new snapshot has been published.
Re: Maven Build Notification
Thank you alexandre, I'll take a look at that ... though I'd like to be decoupled from continuum if possible (not that I have anything against continuum :) ) Tom [EMAIL PROTECTED] 07/26/06 2:55 PM You could also use continuum manual build functionnalities. Just don't set any scheduled build if you don't need to. On 7/25/06, Thomas Van Buskirk [EMAIL PROTECTED] wrote: Thank you gscokart and ivolimmen ... I'll check JIRA for the issue. It would be nice to be able to determine the actual project that broke through Maven w/o CI (whereas if I use antrun or just have a script that executes on build failure, I would not have that ability). I'll keep searching ... Thanks again! Tom [EMAIL PROTECTED] 07/24/06 11:54 PM You can use the antrun plugin to send mail at a given phase of your build. But I don't think you can have this when your build fails. When the maven build fail, it stop. I don't think there is any listener. Did you search in jira to see if there is a feature request? If not, you should maybe introduce it. Gilles -- View this message in context: http://www.nabble.com/Maven-Build-Notification-tf1995888.html#a5480753 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dependency problem with hibernate-annotations
You have to install it by hand on your own repository. The package is not available on public repositories. I don't know if this is a license related problem or just because it is in beta On 7/27/06, German de la Cruz [EMAIL PROTECTED] wrote: Hi people, org.hibernate.hibernate-annotations.3.2.0.cr1 depends on dependency groupIdjavax.persistence/groupId artifactIdejb/artifactId version3.0-public-draft-20060502/version /dependency Which actually doesn't exist in maven2 repository. Is there a resposible to fix it? Thanks! German,. - 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: Super Pom
Maybe this link response to your question: http://maven.apache.org/ref/current/maven-model/maven.html HTH Tung Nguyen - Original Message From: Lakshman Srilakshmanan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: users@maven.apache.org Sent: Thursday, July 27, 2006 2:03:58 AM Subject: RE: Super Pom Hi Emmanuel, Thanks for your reply. The http://maven.apache.org/plugins/maven-checkstyle-plugin/customize.html describes how to include a customised checkstyle within a POM. I need to know the location of the super POM itself, if one exists. Thanks Lakshman -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Wednesday, 26 July 2006 5:28 PM To: Maven Users List Subject: Re: Super Pom http://maven.apache.org/plugins/maven-checkstyle-plugin/customize.html Lakshman Srilakshmanan a écrit : Hi All, I have used maven 1.x for a couple of years now and am in the process of migrating to maven 2.x I need to set some configuration globally (eg customised checkstyle). I find the appropriate place would be to include it in the super pom. Unfortunately I don't seem to be able to find it. Could you please direct me to where it is located. Thanks Lakshman - 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: Configuring Continuum to authenticate with SCM
There is still a question hanging around in my head related to this issue. If I try to add a project with the following url I get a message that the url is not valid https://username:[EMAIL PROTECTED]/svn/name/pom.xml You must provide a valid url (...) I cannot seem to get this to work, if I omit the username:password@ stuff I receive a 401 response. Anyone has any ideas? On 7/26/06, Jesse McConnell [EMAIL PROTECTED] wrote: you should just need to setup the settings.xml file for the user that is running the continuum instance. general rule of thumb is that if you can run it from the commandline it ought to run in continuum. There is a url format that you can use when pointing at the top lvl pom.xml when adding the m2 project https://username:[EMAIL PROTECTED]/scm/foo/pom.xml that should bypass certificates as well, there is something janky with it right now as well so you _may_ need to hit that url, then with the s in the https with the same url and then again the url above. there is a jira ticket on that strangeness jesse On 7/26/06, Chris Audley [EMAIL PROTECTED] wrote: I'm new to Continuum and I'm trying to get my first project up and running. The code for the project is stored in a subversion repository accessed through secure HTTP (Apache server). All access to the repository requires authentication. I can create an account for the continuum server, but how do I configure the account information in pom.xml and settings.xml for the server to authenticate? Thanks for any help Chris -- jesse mcconnell [EMAIL PROTECTED]
RE: M2-snapshot error
Vincent Massol wrote on Wednesday, July 26, 2006 7:25 PM: Done. Try it. Make sure you use -cpu or -u (can never recall which one) or delete the cargo files in your local repo. Well, infact -cpu should update the plugins, while -U should look for SNAPSHOTs (see mvn --help). For me its working the other way round though ;-) - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Grouping profiles: Is there a way creating a profile that activates other profiles?
Hello! Is there a way to create a profile that activates other profiles? I have the following profiles: war.exploded war.packed tomcat5x weblogic9x Now I'd like to have a profile tomcat that automatically activates profiles war.exploded and tomcat5x and a profile weblogic that automatically activates profiles war.packed and weblogic9x. Is there a way to do this? Cheers, Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generate Jira Report report
Hi, I had the same. Check out the jira-result.xml in your target directory. For me it was a html file not a xml. This is the result from calling the url in jira. For me I couldnt reach the jira-server because of proxy. But for sure the jira-result.xml will tell you more. Good Luck, juergen -- View this message in context: http://www.nabble.com/Generate-%22Jira-Report%22-report-tf2006311.html#a5517658 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[maven-antrun-plugin] How to pass default Maven Properties to ant/ ?
Hi all, As recommended by the antrun pluginhttp://maven.apache.org/plugins/maven-antrun-plugin/introduction.html, I'd like to move all my Ant tasks to a build.xml file and just call it from the POM using Ant's ant/ taskhttp://ant.apache.org/manual/CoreTasks/ant.html . I need to use some of the Maven properties (${project.build.directory}, ${ project.build.outputDirectory}, etc.) inside the build.xml, unfortunately it seems that those properties are not inherited from the Maven Project. To be precise, Maven properties are available in the Maven tasks tag but not passed to the ant task. configuration tasks !-- Maven properties are available inside the tasks... -- echo${project.build.directory}/echo !-- but not in the build.xml file! -- ant dir=${basedir} antfile=build.xml / /tasks /configuration The only workaround I found out is to explicitly declare the properties before or inside the ant tag. But you will agree that this not really neat nor efficient. configuration tasks !-- Pass all the properties that may be needed in the ant file -- property name=project.build.directory value=${ project.build.directory}/ ant dir=${basedir} antfile=build-test.xml / /tasks /configuration Does anyone have a solution please? Thanks in advance for your help, Alexis
AW: Project description
Hi Jeff, this is at the moment not solved yet. The Description tag in pom has to consist of one single line (no linebreaks or paragraphs between it). I did not find a jira issue yet, may be we have to set one up. Because I had the same problem, I just made the project description by myself using Xdoc Format. Because I named it index.xml the project 'About' link was than linked to this page. Hope that helps, Arne -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Ivo Limmen Gesendet: Mittwoch, 26. Juli 2006 10:29 An: Maven Users List Betreff: Re: Project description I recently discovered that the description is also added to the manifest within the jar that is produced. When the description spans more than one line my build fails i.e. the jar is not valid. So to answer your question: I don't think it is possible. On 7/26/06, Jeff Mutonho [EMAIL PROTECTED] wrote: My project description is a bit long and would like to introduce paragraphs and sub-headings in it.Is it possible to do this? -- Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m1.1] Unable to deploy to remote repository
This is what I have: gdps,10.1.119.102 ssh-rsa B3NzaC1yc2EBIwAAAIEAz44256CBVYdZPIrtoRvbl4qUuj758/U81bcMHpDK1J/6kax4lUKX4edBW38e/BvAULs0WFeP7eyMaZVQVj5NFGgRYiqkNSsfEDwc3byq/6T8dA+cSs7BzEj380SyP6It93tW40JdSEN+7TP4/kYVND/tg0UFpSPnJnXNxm9kNTk= On 7/26/06, Lukas Theussl [EMAIL PROTECTED] wrote: How does the line with gdps in known_hosts look like exactly? Jsch expects a fully qualified hostname, ie something like gdps.domain.org,xxx.xxx.xxx.xxx ssh-rsa ... and not gdps ssh-rsa ... even though the latter works from the command line. HTH, -Lukas Daniel Beland wrote: Hi, yes I can logon with ssh, scp and sftp works perfectly fine. I already accepted to add the server to my list. I can se a line for gdps in the file ~/.ssh/known_hosts. I am not using authentication keys, I always type in the password. As I said, everything works fine with maven 1.0.2 and artifact plugin 1.5.2 Moving to maven 1.1-beta3 and artifact plugin 1.7 is causing me the problem. Since I am on windows and I run maven in cygwin, sometimes there are problems with the $HOME directories (my cygwin HOME is in /home of cygwin and in java it is the windows home in Documents And Settings). So I tried to copy my .ssh folder in my windows HOME and it is still the same. Is the new artifact plugin using the ssh ant task? If so I think the easiest solution would be to add the trust property to the plugin to skip this security check. thanks, Daniel On 7/25/06, Arnaud HERITIER [EMAIL PROTECTED] wrote: Hi Daniel, Did you try to logon to your proxy host using ssh ? ssh -l cvs gdps It will certainly ask if you want to accept permanently the key. Arnaud On 7/25/06, Daniel Beland [EMAIL PROTECTED] wrote: Hi, I have been using maven 1.0.2 for more than a year now. I use it to make all of our releases on our internal repository. I have setup maven-proxy to access that repository and eveything works fine. In my build.properties file I have the following settings: maven.repo.RF1=sftp://gdps maven.repo.RF1.username=cvs maven.repo.RF1.password=*** maven.repo.RF1.directory=/cvs/maven/repo-local I tried to migrate to maven 1.1-beta3-SNAPSHOT (20060723) and I am unable to deploy something to the remote repository. (I tried jar:deploy, plugin:repository-deploy, etc all with the same exception). My configuration seems ok based on the maven-artifact-plugin doc. Looking on google I saw that we need to put the trust attribute to true, (if it is the ant task that is used by maven), but didn't find any way to configure it. I absolutely have to use sftp or scp. Here is the complete exception trace: Failed to deploy to: RF1 Reason: org.apache.maven.wagon.authentication.AuthenticationException: Cannot connect. Reason: reject HostKey: gdps org.apache.maven.wagon.authentication.AuthenticationException: Cannot connect. Reason: reject HostKey: gdps at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection( AbstractSshWagon.java:232) at org.apache.maven.wagon.AbstractWagon.connect( AbstractWagon.java :143) at org.apache.maven.wagon.AbstractWagon.connect( AbstractWagon.java :106) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deployFiles( DefaultArtifactDeployer.java:372) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.doDeploy( DefaultArtifactDeployer.java:320) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.handleDeploy ( DefaultArtifactDeployer.java:119) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy (DefaultArtifactDeployer.java:90) at org.apache.maven.artifact.deployer.DeployBean.deploy( DeployBean.java:155) 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:324) at org.apache.commons.jelly.impl.DynamicBeanTag.doTag( DynamicBeanTag.java:180) at org.apache.commons.jelly.impl.StaticTagScript.run( StaticTagScript.java:102) at org.apache.commons.jelly.impl.ScriptBlock.run( ScriptBlock.java :95) at org.apache.commons.jelly.impl.DynamicTag.doTag( DynamicTag.java :79) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java :250) at org.apache.commons.jelly.impl.ScriptBlock.run( ScriptBlock.java :95) at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag( MavenGoalTag.java:82) at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction (MavenGoalTag.java:115) at org.apache.maven.werkz.Goal.fire(Goal.java:647) at
Re: [Continumm 1.0.3] Alot of errors in the continumm log file..
Hi Emmanuel, Is blob really appropriate for varchar type of information? You can't copy varchar into a blob! Shouldn't it be a clob? Below are the SQL statments that I executed. (unfortunatly you can't alter the data type of the column directly). But when I started continumm it complained that the column COMMAND_OUTPUT should be a VARCHAR and not a CLOB. org.jpox.store.exceptions.IncompatibleDataTypeException: Incompatible data type for column SCMRESULT.COMMAND_OUTPUT : was Types.CLOB, but type expected was Types.VARCHAR. Please check that the type in the datastore and the type specified in the MetaData are consistent. So I guess you can't change this without changing to code. Or is the meta data available some where? Regards, Mattias CREATE TABLE SCMRESULT2 ( SCMRESULT_ID BIGINT PRIMARY KEY not null, COMMAND_LINE VARCHAR(255), COMMAND_OUTPUT VARCHAR(16384), EXCEPTION VARCHAR(8192), PROVIDER_MESSAGE VARCHAR(1024), SUCCESS CHAR(1) not null, MODEL_ENCODING VARCHAR(255) ); INSERT INTO SCMRESULT2 SELECT * FROM SCMRESULT; ALTER TABLE CHANGESET DROP CONSTRAINT CHANGESET_FK1; ALTER TABLE BUILDRESULT DROP CONSTRAINT BUILDRESULT_FK1; ALTER TABLE BUILDRESULT DROP CONSTRAINT BUILDRESULT_FK3; ALTER TABLE PROJECT DROP CONSTRAINT PROJECT_FK1; ALTER TABLE PROJECT DROP CONSTRAINT PROJECT_FK4; DROP TABLE SCMRESULT; RENAME TABLE SCMRESULT2 TO SCMRESULT; ALTER TABLE CHANGESET ADD CONSTRAINT CHANGESET_FK1 FOREIGN KEY (CHANGES_SCMRESULT_ID_OID) REFERENCES SCMRESULT(SCMRESULT_ID); ALTER TABLE BUILDRESULT ADD CONSTRAINT BUILDRESULT_FK1 FOREIGN KEY (SCM_RESULT_SCMRESULT_ID_VM) REFERENCES SCMRESULT(SCMRESULT_ID); ALTER TABLE BUILDRESULT ADD CONSTRAINT BUILDRESULT_FK3 FOREIGN KEY (SCM_RESULT_SCMRESULT_ID_OID) REFERENCES SCMRESULT(SCMRESULT_ID); ALTER TABLE PROJECT ADD CONSTRAINT PROJECT_FK1 FOREIGN KEY (CHECKOUT_RESULT_SCMRESUL2U) REFERENCES SCMRESULT(SCMRESULT_ID); ALTER TABLE PROJECT ADD CONSTRAINT PROJECT_FK4 FOREIGN KEY (CHECKOUT_RESULT_SCMRESULT_ID_OID) REFERENCES SCMRESULT(SCMRESULT_ID); If you change it, can you send us the procedure? we'll add an entry in faqs. Emmanuel Mattias Andersson a écrit : Hi Emmanuel, ok, I'll try to change the column. Thanks for the quick response! Regards, Mattias It's a known problem thazt we'll fix in 1.1. The length of a field (COMMAND_OUTPUT) isn't enought in database, you can change it to a blob with a sql client like squirrel. Emmanuel Mattias Andersson a écrit : Hi, I got some errors today in the continuum log fil that I do know how to solve? The appeared when I pressed the build button for a project. It's a shell project, SCM is CVS and I use continumm 1.0.3. Are these errors known or should I add new isues? And are there any workarounds? (the complete stack trace is not included below to keep the mail smaller. They are available if needed) Regards, Mattias ERROR 1: === cvs update: move away scripts/Database/mssql/Views/dbo.DB_SubRatParamHistory_1.VIW; it is in the way 31802313 [Thread-2] WARN org.apache.maven.continuum.scm.ContinuumScm - Provider message: The cvs command failed. 31802391 [Thread-2] ERROR org.apache.maven.continuum.buildcontroller.BuildController - Error while building project. javax.jdo.JDODataStoreException: Insert request failed: INSERT INTO SCMRESULT (SCMRESULT_ID,SUCCESS,COMMAND_OUTPUT,EXCEPTION,COMMAND_LINE,PROVIDER_MESSAGE,MODEL_ENCODING) VALUES (?,?,?,?,?,?,?) at org.jpox.store.rdbms.request.InsertRequest.execute(InsertRequest.java:387) at org.jpox.store.rdbms.table.ClassTable.insert(ClassTable.java:2146) at org.jpox.store.StoreManager.insert(StoreManager.java:739) at org.jpox.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3415) at org.jpox.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3388) at org.jpox.AbstractPersistenceManager.internalMakePersistent(AbstractPersistenceManager.java:1146) at org.jpox.AbstractPersistenceManager.makePersistentInternal(AbstractPersistenceManager.java:1187) at org.jpox.store.mapping.PersistenceCapableMapping.setObject(PersistenceCapableMapping.java:409) at org.jpox.store.rdbms.fieldmanager.ParameterSetter.storeObjectField(ParameterSetter.java:132) at org.jpox.state.StateManagerImpl.providedObjectField(StateManagerImpl.java:2627) ... ... ERROR 2: === ERROR 22001: A truncation error was encountered trying to shrink VARCHAR 'cvs update: move away scripts/Database/factorydata/CUSTOMER_' to length 1024. at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) at org.apache.derby.iapi.types.SQLChar.hasNonBlankChars(Unknown Source) at org.apache.derby.iapi.types.SQLVarchar.normalize(Unknown Source) at org.apache.derby.iapi.types.SQLVarchar.normalize(Unknown Source)
Re: [Continumm 1.0.3] Alot of errors in the continumm log file..
oh yes, you need to change package.jdo in continuum-model.jar I don't think you need to change something else. Emmanuel Mattias Andersson a écrit : Hi Emmanuel, Is blob really appropriate for varchar type of information? You can't copy varchar into a blob! Shouldn't it be a clob? Below are the SQL statments that I executed. (unfortunatly you can't alter the data type of the column directly). But when I started continumm it complained that the column COMMAND_OUTPUT should be a VARCHAR and not a CLOB. org.jpox.store.exceptions.IncompatibleDataTypeException: Incompatible data type for column SCMRESULT.COMMAND_OUTPUT : was Types.CLOB, but type expected was Types.VARCHAR. Please check that the type in the datastore and the type specified in the MetaData are consistent. So I guess you can't change this without changing to code. Or is the meta data available some where? Regards, Mattias CREATE TABLE SCMRESULT2 ( SCMRESULT_ID BIGINT PRIMARY KEY not null, COMMAND_LINE VARCHAR(255), COMMAND_OUTPUT VARCHAR(16384), EXCEPTION VARCHAR(8192), PROVIDER_MESSAGE VARCHAR(1024), SUCCESS CHAR(1) not null, MODEL_ENCODING VARCHAR(255) ); INSERT INTO SCMRESULT2 SELECT * FROM SCMRESULT; ALTER TABLE CHANGESET DROP CONSTRAINT CHANGESET_FK1; ALTER TABLE BUILDRESULT DROP CONSTRAINT BUILDRESULT_FK1; ALTER TABLE BUILDRESULT DROP CONSTRAINT BUILDRESULT_FK3; ALTER TABLE PROJECT DROP CONSTRAINT PROJECT_FK1; ALTER TABLE PROJECT DROP CONSTRAINT PROJECT_FK4; DROP TABLE SCMRESULT; RENAME TABLE SCMRESULT2 TO SCMRESULT; ALTER TABLE CHANGESET ADD CONSTRAINT CHANGESET_FK1 FOREIGN KEY (CHANGES_SCMRESULT_ID_OID) REFERENCES SCMRESULT(SCMRESULT_ID); ALTER TABLE BUILDRESULT ADD CONSTRAINT BUILDRESULT_FK1 FOREIGN KEY (SCM_RESULT_SCMRESULT_ID_VM) REFERENCES SCMRESULT(SCMRESULT_ID); ALTER TABLE BUILDRESULT ADD CONSTRAINT BUILDRESULT_FK3 FOREIGN KEY (SCM_RESULT_SCMRESULT_ID_OID) REFERENCES SCMRESULT(SCMRESULT_ID); ALTER TABLE PROJECT ADD CONSTRAINT PROJECT_FK1 FOREIGN KEY (CHECKOUT_RESULT_SCMRESUL2U) REFERENCES SCMRESULT(SCMRESULT_ID); ALTER TABLE PROJECT ADD CONSTRAINT PROJECT_FK4 FOREIGN KEY (CHECKOUT_RESULT_SCMRESULT_ID_OID) REFERENCES SCMRESULT(SCMRESULT_ID); If you change it, can you send us the procedure? we'll add an entry in faqs. Emmanuel Mattias Andersson a écrit : Hi Emmanuel, ok, I'll try to change the column. Thanks for the quick response! Regards, Mattias It's a known problem thazt we'll fix in 1.1. The length of a field (COMMAND_OUTPUT) isn't enought in database, you can change it to a blob with a sql client like squirrel. Emmanuel Mattias Andersson a écrit : Hi, I got some errors today in the continuum log fil that I do know how to solve? The appeared when I pressed the build button for a project. It's a shell project, SCM is CVS and I use continumm 1.0.3. Are these errors known or should I add new isues? And are there any workarounds? (the complete stack trace is not included below to keep the mail smaller. They are available if needed) Regards, Mattias ERROR 1: === cvs update: move away scripts/Database/mssql/Views/dbo.DB_SubRatParamHistory_1.VIW; it is in the way 31802313 [Thread-2] WARN org.apache.maven.continuum.scm.ContinuumScm - Provider message: The cvs command failed. 31802391 [Thread-2] ERROR org.apache.maven.continuum.buildcontroller.BuildController - Error while building project. javax.jdo.JDODataStoreException: Insert request failed: INSERT INTO SCMRESULT (SCMRESULT_ID,SUCCESS,COMMAND_OUTPUT,EXCEPTION,COMMAND_LINE,PROVIDER_MESSAGE,MODEL_ENCODING) VALUES (?,?,?,?,?,?,?) at org.jpox.store.rdbms.request.InsertRequest.execute(InsertRequest.java:387) at org.jpox.store.rdbms.table.ClassTable.insert(ClassTable.java:2146) at org.jpox.store.StoreManager.insert(StoreManager.java:739) at org.jpox.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3415) at org.jpox.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3388) at org.jpox.AbstractPersistenceManager.internalMakePersistent(AbstractPersistenceManager.java:1146) at org.jpox.AbstractPersistenceManager.makePersistentInternal(AbstractPersistenceManager.java:1187) at org.jpox.store.mapping.PersistenceCapableMapping.setObject(PersistenceCapableMapping.java:409) at org.jpox.store.rdbms.fieldmanager.ParameterSetter.storeObjectField(ParameterSetter.java:132) at org.jpox.state.StateManagerImpl.providedObjectField(StateManagerImpl.java:2627) ... ... ERROR 2: === ERROR 22001: A truncation error was encountered trying to shrink VARCHAR 'cvs update: move away scripts/Database/factorydata/CUSTOMER_' to length 1024. at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) at org.apache.derby.iapi.types.SQLChar.hasNonBlankChars(Unknown Source)
Re: AW: Project description
Description in POM is meant to be a short description. If you need something longer, you just add an index.apt file (or xdoc) to your site, and it will take the place of the project's description. Cheers! Arne Sutor wrote: Hi Jeff, this is at the moment not solved yet. The Description tag in pom has to consist of one single line (no linebreaks or paragraphs between it). I did not find a jira issue yet, may be we have to set one up. Because I had the same problem, I just made the project description by myself using Xdoc Format. Because I named it index.xml the project 'About' link was than linked to this page. Hope that helps, Arne -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Ivo Limmen Gesendet: Mittwoch, 26. Juli 2006 10:29 An: Maven Users List Betreff: Re: Project description I recently discovered that the description is also added to the manifest within the jar that is produced. When the description spans more than one line my build fails i.e. the jar is not valid. So to answer your question: I don't think it is possible. On 7/26/06, Jeff Mutonho [EMAIL PROTECTED] wrote: My project description is a bit long and would like to introduce paragraphs and sub-headings in it.Is it possible to do this? -- Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Project-description-tf2002608.html#a5518560 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m1.1] Unable to deploy to remote repository
Settping though the code to debug what was going on, I saw that wagon handle putty (plink and pscp) differently than the rest. So I downloaded them and changed the protocol to scpexe. This works fine for me so I'll use that from now on. If scp and sftp works fine for everyone else, I guess we can put the problem on my windows+cygwin setup that does not work well with java. (It's not the first time I see that, for example it always read my .cvspass from my windows HOME directory even though I'm running it in cygwin. ie: java.user.home = windows home because java doesn't know about cygwin). So I think we can leave it as it is, though I would recommend a note on the web site to recommend putty for windows users that want to use ssh. Thanks for your help, Daniel On 7/27/06, Daniel Beland [EMAIL PROTECTED] wrote: This is what I have: gdps,10.1.119.102 ssh-rsa B3NzaC1yc2EBIwAAAIEAz44256CBVYdZPIrtoRvbl4qUuj758/U81bcMHpDK1J/6kax4lUKX4edBW38e/BvAULs0WFeP7eyMaZVQVj5NFGgRYiqkNSsfEDwc3byq/6T8dA+cSs7BzEj380SyP6It93tW40JdSEN+7TP4/kYVND/tg0UFpSPnJnXNxm9kNTk= On 7/26/06, Lukas Theussl [EMAIL PROTECTED] wrote: How does the line with gdps in known_hosts look like exactly? Jsch expects a fully qualified hostname, ie something like gdps.domain.org,xxx.xxx.xxx.xxx ssh-rsa ... and not gdps ssh-rsa ... even though the latter works from the command line. HTH, -Lukas Daniel Beland wrote: Hi, yes I can logon with ssh, scp and sftp works perfectly fine. I already accepted to add the server to my list. I can se a line for gdps in the file ~/.ssh/known_hosts. I am not using authentication keys, I always type in the password. As I said, everything works fine with maven 1.0.2 and artifact plugin 1.5.2 Moving to maven 1.1-beta3 and artifact plugin 1.7 is causing me the problem. Since I am on windows and I run maven in cygwin, sometimes there are problems with the $HOME directories (my cygwin HOME is in /home of cygwin and in java it is the windows home in Documents And Settings). So I tried to copy my .ssh folder in my windows HOME and it is still the same. Is the new artifact plugin using the ssh ant task? If so I think the easiest solution would be to add the trust property to the plugin to skip this security check. thanks, Daniel On 7/25/06, Arnaud HERITIER [EMAIL PROTECTED] wrote: Hi Daniel, Did you try to logon to your proxy host using ssh ? ssh -l cvs gdps It will certainly ask if you want to accept permanently the key. Arnaud On 7/25/06, Daniel Beland [EMAIL PROTECTED] wrote: Hi, I have been using maven 1.0.2 for more than a year now. I use it to make all of our releases on our internal repository. I have setup maven-proxy to access that repository and eveything works fine. In my build.properties file I have the following settings: maven.repo.RF1=sftp://gdps maven.repo.RF1.username=cvs maven.repo.RF1.password=*** maven.repo.RF1.directory=/cvs/maven/repo-local I tried to migrate to maven 1.1-beta3-SNAPSHOT (20060723) and I am unable to deploy something to the remote repository. (I tried jar:deploy, plugin:repository-deploy, etc all with the same exception). My configuration seems ok based on the maven-artifact-plugin doc. Looking on google I saw that we need to put the trust attribute to true, (if it is the ant task that is used by maven), but didn't find any way to configure it. I absolutely have to use sftp or scp. Here is the complete exception trace: Failed to deploy to: RF1 Reason: org.apache.maven.wagon.authentication.AuthenticationException : Cannot connect. Reason: reject HostKey: gdps org.apache.maven.wagon.authentication.AuthenticationException: Cannot connect. Reason: reject HostKey: gdps at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection( AbstractSshWagon.java:232) at org.apache.maven.wagon.AbstractWagon.connect( AbstractWagon.java :143) at org.apache.maven.wagon.AbstractWagon.connect( AbstractWagon.java :106) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deployFiles ( DefaultArtifactDeployer.java:372) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.doDeploy ( DefaultArtifactDeployer.java:320) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.handleDeploy( DefaultArtifactDeployer.java:119) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy (DefaultArtifactDeployer.java:90) at org.apache.maven.artifact.deployer.DeployBean.deploy( DeployBean.java :155) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39)
Re: Generate Jira Report report
Hi, the strangest thing. Accessing the Jira URL with xml report with browser returned valid RSS with issues, but the jira-result.xml is almost empty. Like this ?xml version=1.0 encoding=UTF-8 ? !-- RSS generated by JIRA 156 at Thu Jul 27 08:03:35 CEST 2006 -- rss version=0.92 channel titleInterseek JIRA/title linkhttp://svarog:8080/link descriptionThis file is an XML representation of some issues/description languageen/language /channel /rss I guess parsing the Jira XML by jira report plugin is buggy, so I will have to wait for a solution. Also, the links to Jira issues in changes report (the one written by hand) work correctly, but it looks like CSS is missing (it shows Jira issue screen, but not in the right colors and fonts). bye On 27.7.2006 11:02, juergen.schumacher wrote: Hi, I had the same. Check out the jira-result.xml in your target directory. For me it was a html file not a xml. This is the result from calling the url in jira. For me I couldnt reach the jira-server because of proxy. But for sure the jira-result.xml will tell you more. Good Luck, juergen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Continumm 1.0.3] Alot of errors in the continumm log file..
ok, I'll try changing that when I find some spare time. And the create table stmt should look like this and nothing else. CREATE TABLE SCMRESULT2 ( SCMRESULT_ID BIGINT PRIMARY KEY not null, COMMAND_LINE VARCHAR(255), COMMAND_OUTPUT CLOB(16M), EXCEPTION VARCHAR(8192), PROVIDER_MESSAGE VARCHAR(1024), SUCCESS CHAR(1) not null, MODEL_ENCODING VARCHAR(255) ); /Mattias oh yes, you need to change package.jdo in continuum-model.jar I don't think you need to change something else. Emmanuel Mattias Andersson a écrit : Hi Emmanuel, Is blob really appropriate for varchar type of information? You can't copy varchar into a blob! Shouldn't it be a clob? Below are the SQL statments that I executed. (unfortunatly you can't alter the data type of the column directly). But when I started continumm it complained that the column COMMAND_OUTPUT should be a VARCHAR and not a CLOB. org.jpox.store.exceptions.IncompatibleDataTypeException: Incompatible data type for column SCMRESULT.COMMAND_OUTPUT : was Types.CLOB, but type expected was Types.VARCHAR. Please check that the type in the datastore and the type specified in the MetaData are consistent. So I guess you can't change this without changing to code. Or is the meta data available some where? Regards, Mattias CREATE TABLE SCMRESULT2 ( SCMRESULT_ID BIGINT PRIMARY KEY not null, COMMAND_LINE VARCHAR(255), COMMAND_OUTPUT VARCHAR(16384), EXCEPTION VARCHAR(8192), PROVIDER_MESSAGE VARCHAR(1024), SUCCESS CHAR(1) not null, MODEL_ENCODING VARCHAR(255) ); INSERT INTO SCMRESULT2 SELECT * FROM SCMRESULT; ALTER TABLE CHANGESET DROP CONSTRAINT CHANGESET_FK1; ALTER TABLE BUILDRESULT DROP CONSTRAINT BUILDRESULT_FK1; ALTER TABLE BUILDRESULT DROP CONSTRAINT BUILDRESULT_FK3; ALTER TABLE PROJECT DROP CONSTRAINT PROJECT_FK1; ALTER TABLE PROJECT DROP CONSTRAINT PROJECT_FK4; DROP TABLE SCMRESULT; RENAME TABLE SCMRESULT2 TO SCMRESULT; ALTER TABLE CHANGESET ADD CONSTRAINT CHANGESET_FK1 FOREIGN KEY (CHANGES_SCMRESULT_ID_OID) REFERENCES SCMRESULT(SCMRESULT_ID); ALTER TABLE BUILDRESULT ADD CONSTRAINT BUILDRESULT_FK1 FOREIGN KEY (SCM_RESULT_SCMRESULT_ID_VM) REFERENCES SCMRESULT(SCMRESULT_ID); ALTER TABLE BUILDRESULT ADD CONSTRAINT BUILDRESULT_FK3 FOREIGN KEY (SCM_RESULT_SCMRESULT_ID_OID) REFERENCES SCMRESULT(SCMRESULT_ID); ALTER TABLE PROJECT ADD CONSTRAINT PROJECT_FK1 FOREIGN KEY (CHECKOUT_RESULT_SCMRESUL2U) REFERENCES SCMRESULT(SCMRESULT_ID); ALTER TABLE PROJECT ADD CONSTRAINT PROJECT_FK4 FOREIGN KEY (CHECKOUT_RESULT_SCMRESULT_ID_OID) REFERENCES SCMRESULT(SCMRESULT_ID); If you change it, can you send us the procedure? we'll add an entry in faqs. Emmanuel Mattias Andersson a écrit : Hi Emmanuel, ok, I'll try to change the column. Thanks for the quick response! Regards, Mattias It's a known problem thazt we'll fix in 1.1. The length of a field (COMMAND_OUTPUT) isn't enought in database, you can change it to a blob with a sql client like squirrel. Emmanuel Mattias Andersson a écrit : Hi, I got some errors today in the continuum log fil that I do know how to solve? The appeared when I pressed the build button for a project. It's a shell project, SCM is CVS and I use continumm 1.0.3. Are these errors known or should I add new isues? And are there any workarounds? (the complete stack trace is not included below to keep the mail smaller. They are available if needed) Regards, Mattias ERROR 1: === cvs update: move away scripts/Database/mssql/Views/dbo.DB_SubRatParamHistory_1.VIW; it is in the way 31802313 [Thread-2] WARN org.apache.maven.continuum.scm.ContinuumScm - Provider message: The cvs command failed. 31802391 [Thread-2] ERROR org.apache.maven.continuum.buildcontroller.BuildController - Error while building project. javax.jdo.JDODataStoreException: Insert request failed: INSERT INTO SCMRESULT (SCMRESULT_ID,SUCCESS,COMMAND_OUTPUT,EXCEPTION,COMMAND_LINE,PROVIDER_MESSAGE,MODEL_ENCODING) VALUES (?,?,?,?,?,?,?) at org.jpox.store.rdbms.request.InsertRequest.execute(InsertRequest.java:387) at org.jpox.store.rdbms.table.ClassTable.insert(ClassTable.java:2146) at org.jpox.store.StoreManager.insert(StoreManager.java:739) at org.jpox.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3415) at org.jpox.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3388) at org.jpox.AbstractPersistenceManager.internalMakePersistent(AbstractPersistenceManager.java:1146) at org.jpox.AbstractPersistenceManager.makePersistentInternal(AbstractPersistenceManager.java:1187) at org.jpox.store.mapping.PersistenceCapableMapping.setObject(PersistenceCapableMapping.java:409) at org.jpox.store.rdbms.fieldmanager.ParameterSetter.storeObjectField(ParameterSetter.java:132) at
Re: Generate Jira Report report
Hi, that's strange. If you have more time to try then check the source code for this plugin. You will find the lines easily where the urlis called with the httpclient. Create logging messages and see what really comes back from the url. You said that manually it works so I think you will see any problem. Did you try it with an url like http://localhost:8083/jira/secure/IssueNavigator.jspa?view=rsspid=1sorter/field=createdsorter/order=DESCsorter/field=prioritysorter/ order=DESCtempMax=100reset=truedecorator=none ?? For me at the beginning I had a bad definition in my pom.xml for the issuemanagement, in my pom.xml it looks like issueManagement systemjira/system url http://localhost:8083/jira/BrowseProject.jspa?id=1 /url /issueManagement Maybe this helps or give any idea, Good Luck :-) Juergen -- View this message in context: http://www.nabble.com/Generate-%22Jira-Report%22-report-tf2006311.html#a5518788 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JBuilder Plugin for Maven2
Since im currently migrating all of my projects to Maven2, i ask myself if there is a plugin for the JBuilder X IDE, that supports Maven2. The only thing i could find out is that there exists a plugin for Maven1, which is no longer supported and will not be extended to work for Maven2 as well. http://mevenide.codehaus.org/download.html Now my questions: - Has someone taken over the development of the mevenide plugin? - Has anyone adapted the plugin for him-/herself to get it running for Maven2 projects? - Does anybody know about another plugin that supports Maven2 for the JBuilder X IDE? - If there is no plugin for the JBuilder X IDE available at the moment, how did you (JBuilder Users) manage the problem of configuring the required libraries for a project, without the need of passing the whole local repository as required lib, and need to reload the classpath each time a new dependency is added (and installed into the local rep.) for that project? thx R.C. -- View this message in context: http://www.nabble.com/JBuilder-Plugin-for-Maven2-tf2009003.html#a5519261 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Project description
Thanx.Very muc appreciated Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: JBuilder Plugin for Maven2
On 7/27/06, CodingPlayer [EMAIL PROTECTED] wrote: Since im currently migrating all of my projects to Maven2, i ask myself if there is a plugin for the JBuilder X IDE, that supports Maven2. The only thing i could find out is that there exists a plugin for Maven1, which is no longer supported and will not be extended to work for Maven2 as well. http://mevenide.codehaus.org/download.html Now my questions: - Has someone taken over the development of the mevenide plugin? not that I know of, any contributions are welcome. the only maven2 plugin that is currently under development at mevenide is the Netbeans one. Milos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Include Depending JARs (Assembly plugin)
Hi, Since i'm quite new to Maven2 i still haven't found out how to solve all of my questions. I just wonder how do i generate a single JAR, containing all of the dependend JARs declared in the pom.xml. What i mean is, after the build i get my JAR which contains just the class files for my project. But when i would like to deploy it to a third party i want all the necessary libs deployed with my classes, so that the person who uses it, can simply run it without having to download all the JARs him-/herself. So far i found out, that there is a plugin called maven-assembly-plugin. But is it the Best Practice to do so, and if how can i configure that plugin? I might think absolutely the wrong way, and maybe i just need to change some maven settings (e.g. scope), so that all dependend JAR-files are packed within the projects JAR-file. All informations are welcome on this. R.C. -- View this message in context: http://www.nabble.com/Include-Depending-JARs-%28Assembly-plugin%29-tf2009061.html#a5519446 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The authenticity of host 'www.whatever.com' can't be established
Worked perfectly! (Except that I'm on windows so c:\Document and Settings\username\.ssh) I think something is broken with Wagon -- shouldn't it create that directory and file, the same way that the command line version of ssh does? Thanks again! On 7/26/06, Wayne Fay [EMAIL PROTECTED] wrote: This was discussed recently... http://www.nabble.com/Default-dir-fo-site-src-tf1976644.html#a5431309 The resolution was: Try adding an empty file ~/.ssh/known_hosts Wayne On 7/26/06, korebantic [EMAIL PROTECTED] wrote: I'm working on creating a remote repository. I'm uploading to the repository using: http://maven.apache.org/guides/mini/guide-3rd-party-jars-remote.html In setting up ssh, I cannot get rid of the The authenticity of host 'www.whatever.com' can't be established message when executing mvn deploy:deploy-file. I don't get that message when connecting via ssh from the command line. I've followed both these suggestions carefully, but neither make any difference: http://www.csua.berkeley.edu/~ranga/notes/ssh_nopass.html http://www.mail-archive.com/users@maven.apache.org/msg42287.html Any suggestions? Thanks... - 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: The authenticity of host 'www.whatever.com' can't be established
Worked perfectly! (Except that I'm on windows so c:\Document and Settings\username\.ssh) I think something is broken with Wagon -- shouldn't it create that directory and file, the same way that the command line version of ssh does? Thanks again! On 7/26/06, Wayne Fay [EMAIL PROTECTED] wrote: This was discussed recently... http://www.nabble.com/Default-dir-fo-site-src-tf1976644.html#a5431309 The resolution was: Try adding an empty file ~/.ssh/known_hosts Wayne On 7/26/06, korebantic [EMAIL PROTECTED] wrote: I'm working on creating a remote repository. I'm uploading to the repository using: http://maven.apache.org/guides/mini/guide-3rd-party-jars-remote.html In setting up ssh, I cannot get rid of the The authenticity of host 'www.whatever.com' can't be established message when executing mvn deploy:deploy-file. I don't get that message when connecting via ssh from the command line. I've followed both these suggestions carefully, but neither make any difference: http://www.csua.berkeley.edu/~ranga/notes/ssh_nopass.html http://www.mail-archive.com/users@maven.apache.org/msg42287.html Any suggestions? Thanks... - 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]
POM variable reference?
Hi, can anyone direct me to a reference/tutorial on build-in parameters? I'm hoping to find out how I can reference the root basedir of a multiproject build. Didn't find it on the Maven site, Google or the Better builds.. book :( regards, Bram -- Bram de Kruijff GX creative online development B.V. t: 024 - 3888 261 f: 024 - 3888 621 e: [EMAIL PROTECTED] Wijchenseweg 111 6538 SW Nijmegen http://www.gx.nl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dependency problem with hibernate-annotations
très bien! I've already done that. At the moment, I've no problem. I only wanted to warn it just in case it's a mistake. Perhaps the mantainer could see it. thanks very much! Sebastien Cesbron wrote: You have to install it by hand on your own repository. The package is not available on public repositories. I don't know if this is a license related problem or just because it is in beta On 7/27/06, German de la Cruz [EMAIL PROTECTED] wrote: Hi people, org.hibernate.hibernate-annotations.3.2.0.cr1 depends on dependency groupIdjavax.persistence/groupId artifactIdejb/artifactId version3.0-public-draft-20060502/version /dependency Which actually doesn't exist in maven2 repository. Is there a resposible to fix it? Thanks! German,. - 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]
Include Test classes in Jar
When I am trying to build/jar a project. The test-classes are not getting jarred. Is there a way I can change settings in my pom.xml to include the test classes as well when i build my project? -- View this message in context: http://www.nabble.com/Include-Test-classes-in-Jar-tf2009433.html#a5520569 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: M2-snapshot error
Hi Vincent, It works now! I had to go in and manually delete the cargo files and then run the mvn clean command to get it to work. Thank for the help. FYI, just doing the mvn clean -cpu or -u at first didn't work (for me). Thanks again, Matilda -Original Message- From: Jörg Schaible [mailto:[EMAIL PROTECTED] Sent: Thursday, July 27, 2006 3:31 AM To: Maven Users List; [EMAIL PROTECTED] Subject: RE: M2-snapshot error Vincent Massol wrote on Wednesday, July 26, 2006 7:25 PM: Done. Try it. Make sure you use -cpu or -u (can never recall which one) or delete the cargo files in your local repo. Well, infact -cpu should update the plugins, while -U should look for SNAPSHOTs (see mvn --help). For me its working the other way round though ;-) - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Attention: Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you received this in error, please contact the sender and delete the material from any system and destroy any copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Include Test classes in Jar
you should add the following plugins. regards Alexis !-- | Those 2 plugins allow to build: |- a JAR of the test classes |- a JAR of the sources classes |- a JAR of the test sources classes -- !-- JAR of the test classes -- plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId executions execution idBuild test-jar/id goals goaltest-jar/goal /goals /execution /executions /plugin !-- JAR of the sources classes JAR of the test sources classes -- plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-source-plugin/artifactId executions execution idBuild src-jar and src-test-jar/id goals goaljar/goal goaltest-jar/goal /goals /execution /executions /plugin On 7/27/06, RobJac [EMAIL PROTECTED] wrote: When I am trying to build/jar a project. The test-classes are not getting jarred. Is there a way I can change settings in my pom.xml to include the test classes as well when i build my project? -- View this message in context: http://www.nabble.com/Include-Test-classes-in-Jar-tf2009433.html#a5520569 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: M2-snapshot error
-Original Message- From: Matilda Robert [mailto:[EMAIL PROTECTED] Sent: jeudi 27 juillet 2006 15:20 To: 'Maven Users List' Subject: RE: M2-snapshot error Hi Vincent, It works now! I had to go in and manually delete the cargo files and then run the mvn clean command to get it to work. Thank for the help. FYI, just doing the mvn clean -cpu or -u at first didn't work (for me). Glad to know it worked. Thanks -Vincent -Original Message- From: Jörg Schaible [mailto:[EMAIL PROTECTED] Sent: Thursday, July 27, 2006 3:31 AM To: Maven Users List; [EMAIL PROTECTED] Subject: RE: M2-snapshot error Vincent Massol wrote on Wednesday, July 26, 2006 7:25 PM: Done. Try it. Make sure you use -cpu or -u (can never recall which one) or delete the cargo files in your local repo. Well, infact -cpu should update the plugins, while -U should look for SNAPSHOTs (see mvn --help). For me its working the other way round though ;-) - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Attention: Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you received this in error, please contact the sender and delete the material from any system and destroy any copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ 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]
Issues related to snapshot versions of dependencies and filenames
Hi there, We've run into the following issue: Our war project depends on a certain number of in house jar projects. Now, these jar projects are under development, so we're using snapshots, and publishing these to our company repository on a regular basis. Now, the thing is that on some environments, the snapshot-jars end up in the web-inf\lib dir with filenames as follows: jarproject-3.1-20060725.121629-3.jar, whereas on other environments they end up with the following filename jarproject-3.1-SNAPSHOT.jar You might say, this is not a problem, because they get loaded by the classloader anyways, however, we're using a portal framework that requires the filenames to be known in advance. Does anyone know why this happens, and how we can get around this issue? Kind regards, Stefan Magnus Landrø BEKK Consulting
RE: M2-snapshot error
Matilda Robert wrote on Thursday, July 27, 2006 3:20 PM: Hi Vincent, It works now! I had to go in and manually delete the cargo files and then run the mvn clean command to get it to work. Thank for the help. FYI, just doing the mvn clean -cpu or -u at first didn't work (for me). Captial 'U' please ... Thanks again, Matilda -Original Message- From: Jörg Schaible [mailto:[EMAIL PROTECTED] Sent: Thursday, July 27, 2006 3:31 AM To: Maven Users List; [EMAIL PROTECTED] Subject: RE: M2-snapshot error Vincent Massol wrote on Wednesday, July 26, 2006 7:25 PM: Done. Try it. Make sure you use -cpu or -u (can never recall which one) or delete the cargo files in your local repo. Well, infact -cpu should update the plugins, while -U should look for SNAPSHOTs (see mvn --help). For me its working the other way round though ;-) - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Attention: Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you received this in error, please contact the sender and delete the material from any system and destroy any copies. - 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: The authenticity of host 'www.whatever.com' can't be established
Feel free to file a JIRA bug report about this issue. But I'd expect its already been filed, and possibly even fixed in a SNAPSHOT release. Wayne On 7/27/06, Trent Albright [EMAIL PROTECTED] wrote: Worked perfectly! (Except that I'm on windows so c:\Document and Settings\username\.ssh) I think something is broken with Wagon -- shouldn't it create that directory and file, the same way that the command line version of ssh does? Thanks again! On 7/26/06, Wayne Fay [EMAIL PROTECTED] wrote: This was discussed recently... http://www.nabble.com/Default-dir-fo-site-src-tf1976644.html#a5431309 The resolution was: Try adding an empty file ~/.ssh/known_hosts Wayne On 7/26/06, korebantic [EMAIL PROTECTED] wrote: I'm working on creating a remote repository. I'm uploading to the repository using: http://maven.apache.org/guides/mini/guide-3rd-party-jars-remote.html In setting up ssh, I cannot get rid of the The authenticity of host 'www.whatever.com' can't be established message when executing mvn deploy:deploy-file. I don't get that message when connecting via ssh from the command line. I've followed both these suggestions carefully, but neither make any difference: http://www.csua.berkeley.edu/~ranga/notes/ssh_nopass.html http://www.mail-archive.com/users@maven.apache.org/msg42287.html Any suggestions? Thanks... - 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: How to deselect classes while creating jar?
I'm far from an expert, but I think you have to put your exclude elements in a separate excludes element, like: includes include/ /includes excludes exclude/ /excludes -Original Message- From: Abhijit Diwan [mailto:[EMAIL PROTECTED] Sent: Thursday, 27 July, 2006 00:28 To: users@maven.apache.org Subject: How to deselect classes while creating jar? Hi all I have maven 2.0 project which includes all the java classes for my project. Now I do not want to create single jar from the classes generated in the target directory. But there is no documentation on the maven jar plug-in site about how can I exclude the some of the classes from getting them in to the jar. I am using maven 2.0. Also there is lot of cyclic dependency in the classes so can not really separate the projects. I feel there is no clear documentation about how can I skip some of the classes from getting in to the jar. I am using following profile like this and calling mvn jar:jar -PConnectorJar from the command line. profile idConnectorJar/id build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration includes includecom/tibco/ejb/common/*.java/include includecom/tibco/ejb/connector/*.java/include includecom/tibco/ejb/support/*.java/include includecom/tibco/ejb/util/*.java/include includecom/tibco/ejb/adapter/*.java/include includecom/tibco/ejb/jca15/support/*.java/include includecom/tibco/ejb/jca15/util/*.java/include includecom/tibco/ejb/jca15/connector/**/*.java/include !--exclude**/*Work*.java/exclude-- /includes /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration jarNameAeConnector/jarName /configuration /plugin /plugins /build activation property nameAeConnectorJar/name /property /activation /profile Help on this will be really appreciated. Thanks a lot Abhijit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
1 Module - N output jars
Hi all, I'm currently migrating a big project from Ant to Maven. I have exploded the source code in modules as much as possible but for legacy reasons I want one of them to generate N output jars (instead of a single one). My question is How can I do that? I have several leads but some questions remain. Here they are : 1. add to package phase an antrun plugin to create the desired jars, but then the underlying question is: how to disable the 'jar:jar' goal during this phase? 1bis. use the assembly plugin to build several jars, sounds quite cumbersome and not better than the ant plugin solution. 2. is there a way to make the jar plugin generate several jars? Thanks for your help! Alexis
Re: surefire fails but tests work
thanks, someone wrote a test thats wasn't a unit test but a main() class. surefire should some how report such issues. best rk Andrew Williams schrieb: are you using clover or such like which could be redirecting test output to another directory? Roland Kofler wrote: i get ERROR] BUILD ERROR [INFO] [INFO] There are some test failure. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 13 seconds [INFO] Finished at: Thu Jul 27 13:12:46 CEST 2006 [INFO] Final Memory: 5M/14M but my only test in target/surefire-reports says --- Battery: at.systemone.configuration.ConfigurationControllerTest --- Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 4.437 sec where can i have a look to understand on this issue
RE: snapshots in local repository after install?
Not sure why it would be different for your two environments, but you need to specify unique version to false to avoid the timestamp being appended, e.g.: distributionManagement repository ... uniqueVersionfalse/uniqueVersion ... /repository /distributionManagement That looks like what I want to do, but how to set this for the localRepository as defined in my settings.xml? Looks like you might have different pom files since one is version 9.0.0 and the other is -SNAPSHOT. No, same pom. The version is 9.0.0-SNAPSHOT but in the latter case SNAPSHOT is substituded with a real timestamp in the localRepository. regards, Bram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [mojo-user] Unable to use the weblogic-8.1 plugin to deploy a simple ejb jar
When I manually change the name of the artifact like so mv dsc-ear-1.0.ear dsc-ear.ear Now I get this. [EMAIL PROTECTED]:target]$ cd .. [EMAIL PROTECTED]:ear]$ mvn weblogic:deploy [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'weblogic'. [INFO] [INFO] Building DSC:: Enterprise Application [INFO]task-segment: [weblogic:deploy] [INFO] [INFO] Preparing weblogic:deploy [INFO] [ear:generate-application-xml] [INFO] Generating application.xml [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [ear:ear] [INFO] Copying artifact[jar:net.myco.dsc:dsc-ejb:1.0] to[dsc-ejb-1.0.jar] [INFO] Could not find manifest file: /opt/app/devtp/username/builds/dsc/vobs/opus_dev/earpackaging/ear/src/ma in/application/META-INF/MANIFEST.MF - Generating one [INFO] Building jar: /opt/app/devtp/username/builds/dsc/vobs/opus_dev/earpackaging/ear/target /dsc-ear-1.0.ear Downloading: http://corprepo.edc.myco.net:4321/repository/weblogic/webservices/8.1/we bservices-8.1.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [INFO] [weblogic:deploy] [INFO] Weblogic Deployment beginning weblogic.management.DeploymentException: Error while loading descriptors: Error processing file 'META-INF/application.xml'. weblogic.xml.process.XMLProcessingException: XML document does not appear to contain a properly formed DOCTYPE header - with nested exception: [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed DOCTYPE header] - with nested exception: [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed DOCTYPE header] weblogic.management.ApplicationException: weblogic.management.DeploymentException: Error while loading descriptors: Error processing file 'META-INF/application.xml'. weblogic.xml.process.XMLProcessingException: XML document does not appear to contain a properly formed DOCTYPE header - with nested exception: [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed DOCTYPE header] - with nested exception: [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed DOCTYPE header] I think Weblogic is not happy with the application descriptor being generated by mvn because there is no DOCTYPE header. How can I instruct maven to add a DOCTYPE Header to the application.xml? Can I create or modify the application.xml manually? [EMAIL PROTECTED]:target]$ cat application.xml ?xml version=1.0 encoding=UTF-8? application xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd; version=1.4 descriptionDSC/description display-nameDSC Enterprise Application/display-name module javadsc-ejb-1.0.jar/java /module /application -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 26, 2006 11:13 AM To: user@mojo.codehaus.org Subject: Re: [mojo-user] Unable to use the weblogic-8.1 plugin to deploy a simple ejb jar I actually don't use Weblogic much these days, just trying to help Bryan out. ;-) Bryan, let us know how it goes... Wayne On 7/26/06, Scott Ryan [EMAIL PROTECTED] wrote: Yes that will work to change the object that is being sought. you can also use the same structure for deploying the ejb.jar target/dsc-ejb-1.0.jar. I am really trying to get the defaults to work for you guys but in the mean time the overrides will work for you. Scott Ryan Chief Technology Officer Soaring Eagle L.L.C. [EMAIL PROTECTED] www.soaringeagleco.com (303) 263-3044 -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 26, 2006 12:31 AM To: user@mojo.codehaus.org Subject: Re: [mojo-user] Unable to use the weblogic-8.1 plugin to deploy a simple ejb jar Give this a try, it might work (??)... Obviously I'm not positive of all the details, but I think you can figure it out. build plugins plugin groupIdo.a.m.p artifactIdweblogic... configuration objectPathtarget/dsc-ear-1.0.ear/objectPath /configuration ... Wayne - To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [mojo-user] Unable to use the weblogic-8.1 plugin to deploy a simple ejb jar
According to the weblogic documentation.. http://e-docs.bea.com/wls/docs81/programming/app_xml.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: issue with setting up M1 POM URL
Arnaud and any other experts, I still have problem with adding our Maven 1.x project to Continuum. Let me restate our problem again: I am experimenting Continuum on my local machine, with the Continuum 1-0-3 installed. Our project's version control is managed by Perforce which is running on a server. Our project itself is managed by Maven 1.x. Since our project contains multiple sub-projects, and in our main project.xml it extends some other project.xml files, I encountered the error on Continuum's web tool when trying the option of upload POM from my local machine, with the error messages as, - Continuum Error Cannot use a POM with an 'extend' element. - Check the logs for more details. groupId is null. - Check the logs for more details. Seems like we have to use the M1 POM URL option instead. However, I tried various URL format (I could only use FILE protocol), like, file:///C:\p4\WS_u208479_AIS\EAI_weblogic\uia2_5.0\project.xml fill:///C:/p4/WS_u208479_AIS/EAI_weblogic/uia2_5.0/project.xmlftp:///c: /p4/WS_u208479_AIS/EAI_weblogic/uia2_5.0/project.xml but always got the error message saying [ You must provide a valid url (http, https, ftp and file protocols are allowed) ] Please share with me any of your advises and instructions. Thanks, - Bill -Original Message- From: Arnaud HERITIER [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 25, 2006 4:18 PM To: continuum-users@maven.apache.org Subject: Re: issue with setting up M1 POM URL There's no jar to update. You just have to reboot your continuum server Arnaud On 7/25/06, Yuan, Bill [EMAIL PROTECTED] wrote: Arnaud, I tried but seems like it doesn't work. I also found from the FAQ on http://maven.apache.org/continuum/faqs.html . It says that if we need to use File protocol in Add project view, we have to uncomment the line allowedSchemefile/allowedScheme in application.xml. I did the change, but how could I compile the new jars which will reference this application.xml? Thanks for your followup! - Bill -Original Message- From: Arnaud HERITIER [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 25, 2006 3:58 PM To: continuum-users@maven.apache.org Subject: Re: issue with setting up M1 POM URL If your POM isn't on a web server but on your local disk, you have to define something like : fille://C:/p4/WS_u208479_AIS/EAI_weblogic/uia2_5.0/project.xmlftp://c/p 4/WS_u208479_AIS/EAI_weblogic/uia2_5.0/project.xml cheers arnaud On 7/25/06, Yuan, Bill [EMAIL PROTECTED] wrote: Hi there, Please help me on the following issue: I installed Continuum 1-0-3 on my local machine, and our project is managed by Perforce on another server. My problem is: On the web interface of Continuum (http://localhost:8080/continuum/servlet/continuum), I clicked Add Maven 1.x project, however, whatever M1 POM URL I gave, I got the error saying [ You must provide a valid url (http, https, ftp and file protocols are allowed) ]. For example, I gave one URL string as ftp:///C:/p4/WS_u208479_AIS/EAI_weblogic/uia2_5.0/project.xml and got the error mentioned earlier. Could anybody help me on what the M1 POM URL would be? One note is that our project includes a bunch of subprojects, meaning I can't use the Upload POM function Thanks, Bill (Xinxue) Yuan Retail Bank Services and Systems Application Architectur/Integration Washington Mutual 847.393.5382 Office 847.903.4548 Mobile 340 N. Milwaukee Ave., VHF4A01, Vernon Hills, IL 60061
problem getting the jetty maven 2.0 plugin to run in the pre-test phase
build plugins plugin groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty6-plugin/artifactId executions execution idstart-container/id phasepre-test/phase goals goalrun/goal /goals /execution /executions /plugin /plugins /build I really thought adding this to my module's pom would do it. (there is a higher pom that configures jetty and using mvn jetty:run will bring jetty up sucessfully.) I want jetty to run in the pre-test phase so that I can unit test my web-app. (using jwebunit) but it doesn't seem to run, and jetty doesn't seem to have any kind of 'stop' goal, which makes me think it might not be the right container for the job. Can anybody slap me about a bit and tell me what I've done wrong? thanks Meghan Pike
Re: [M2] Surefire POJO / Inner class issue
Hi Hal - I'm running into a similar issue.. did you find a work-around? thx, -Russ ([EMAIL PROTECTED]) At 4:05 PM -0700 7/14/06, Hal Hildebrand wrote: I'm running into a weird issue here. It seems that the Maven surefire plugin is trying to create POJO tests for inner classes which clearly aren't tests. I'm not even a surefire novice, so I'm not sure why on earth this is happening - I'm just wondering how to stop it from happening. Anyone have any clues as to how to escape this? [INFO] Surefire report directory: /Users/hhildebrand/Projects/wadi/modules/core/target/surefire-reports org.apache.maven.surefire.booter.SurefireExecutionException: Unable to instantiate POJO 'class org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy'; nested exception is java.lang.InstantiationException: org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy; nested exception is org.apache.maven.surefire.testset.TestSetFailedException: Unable to instantiate POJO 'class org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy'; nested exception is java.lang.InstantiationException: org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy org.apache.maven.surefire.testset.TestSetFailedException: Unable to instantiate POJO 'class org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy'; nested exception is java.lang.InstantiationException: org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy java.lang.InstantiationException: org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy at java.lang.Class.newInstance0(Class.java:335) at java.lang.Class.newInstance(Class.java:303) at org.apache.maven.surefire.testset.PojoTestSet.init(PojoTestSet.java:52) at org.apache.maven.surefire.junit.JUnitDirectoryTestSuite.createTestSet(JUnitD irectoryTestSuite.java:61) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(Ab stractDirectoryTestSuite.java:93) at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:1 47) at org.apache.maven.surefire.Surefire.run(Surefire.java:108) 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.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireB ooter.java:225) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 1 Module - N output jars
1. Are you sure you need to disable jar:jar? Or just modify it such that it builds one of your desired jars? I also needed to generate multiple jars for a project; you can read about my particular solution here: http://www.nabble.com/-maven2--Generating-several-artifacts-per-project- --tf1689630.html#a4630045 2. Don't know, but hopefully answer 1 will make this a moot point. Chris -Original Message- From: Alexis Midon [mailto:[EMAIL PROTECTED] Sent: Thursday, 27 July, 2006 09:50 To: Maven Users List Subject: 1 Module - N output jars Hi all, I'm currently migrating a big project from Ant to Maven. I have exploded the source code in modules as much as possible but for legacy reasons I want one of them to generate N output jars (instead of a single one). My question is How can I do that? I have several leads but some questions remain. Here they are : 1. add to package phase an antrun plugin to create the desired jars, but then the underlying question is: how to disable the 'jar:jar' goal during this phase? 1bis. use the assembly plugin to build several jars, sounds quite cumbersome and not better than the ant plugin solution. 2. is there a way to make the jar plugin generate several jars? Thanks for your help! Alexis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 1 Module - N output jars
well disable the jar:jar is not a requirement, but if I generate several jars, I do not need the jar:jar goal to create a big jar containing all classes. you see what I mean? by the way, your answer is really appreciated. I did not know the build-helper-maven-plugin up until now. Regards, Alexis On 7/27/06, Chris Hilton [EMAIL PROTECTED] wrote: 1. Are you sure you need to disable jar:jar? Or just modify it such that it builds one of your desired jars? I also needed to generate multiple jars for a project; you can read about my particular solution here: http://www.nabble.com/-maven2--Generating-several-artifacts-per-project- --tf1689630.html#a4630045 2. Don't know, but hopefully answer 1 will make this a moot point. Chris -Original Message- From: Alexis Midon [mailto:[EMAIL PROTECTED] Sent: Thursday, 27 July, 2006 09:50 To: Maven Users List Subject: 1 Module - N output jars Hi all, I'm currently migrating a big project from Ant to Maven. I have exploded the source code in modules as much as possible but for legacy reasons I want one of them to generate N output jars (instead of a single one). My question is How can I do that? I have several leads but some questions remain. Here they are : 1. add to package phase an antrun plugin to create the desired jars, but then the underlying question is: how to disable the 'jar:jar' goal during this phase? 1bis. use the assembly plugin to build several jars, sounds quite cumbersome and not better than the ant plugin solution. 2. is there a way to make the jar plugin generate several jars? Thanks for your help! Alexis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 1 Module - N output jars
Right, but you can designate one of the jars you want to create as the primary jar for Maven's purposes, even though this may mean nothing to you, and then configure the maven-jar-plugin with the appropriate includes/excludes to create that jar. Then use the other technique to create your secondary jars and attach them. -Original Message- From: Alexis Midon [mailto:[EMAIL PROTECTED] Sent: Thursday, 27 July, 2006 12:14 To: Maven Users List Subject: Re: 1 Module - N output jars well disable the jar:jar is not a requirement, but if I generate several jars, I do not need the jar:jar goal to create a big jar containing all classes. you see what I mean? by the way, your answer is really appreciated. I did not know the build-helper-maven-plugin up until now. Regards, Alexis On 7/27/06, Chris Hilton [EMAIL PROTECTED] wrote: 1. Are you sure you need to disable jar:jar? Or just modify it such that it builds one of your desired jars? I also needed to generate multiple jars for a project; you can read about my particular solution here: http://www.nabble.com/-maven2--Generating-several-artifacts-per-projec t- --tf1689630.html#a4630045 2. Don't know, but hopefully answer 1 will make this a moot point. Chris -Original Message- From: Alexis Midon [mailto:[EMAIL PROTECTED] Sent: Thursday, 27 July, 2006 09:50 To: Maven Users List Subject: 1 Module - N output jars Hi all, I'm currently migrating a big project from Ant to Maven. I have exploded the source code in modules as much as possible but for legacy reasons I want one of them to generate N output jars (instead of a single one). My question is How can I do that? I have several leads but some questions remain. Here they are : 1. add to package phase an antrun plugin to create the desired jars, but then the underlying question is: how to disable the 'jar:jar' goal during this phase? 1bis. use the assembly plugin to build several jars, sounds quite cumbersome and not better than the ant plugin solution. 2. is there a way to make the jar plugin generate several jars? Thanks for your help! Alexis - 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]
SV: Project description
Hi Arne, This JIRA issue already exists as MJAR-4, MJAR-34, MJAR-39, MJAR-50 and PLX-185. Apparently the root cause was PLX-185, which has been closed, but since it doesn't specify a fix version, it is hard to tell the actual status of this issue. Best regards Simon Kepp Nielsen, Configurations Manager PFA Pension, Teknisk Arkitektur Mobile: +45 30 52 77 07 E-mail: [EMAIL PROTECTED] PFA Pension Sundkrogsgade 4 DK-2100 Copenhagen OE Disclaimer This message is for the designated recipient only and may contain confidential or privileged information. If you have received the message in error, please notify the sender by replying the e-mail and delete the message without copying or disclosing. -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sendt: 27. juli 2006 11:46 Til: 'Maven Users List' Emne: AW: Project description Hi Jeff, this is at the moment not solved yet. The Description tag in pom has to consist of one single line (no linebreaks or paragraphs between it). I did not find a jira issue yet, may be we have to set one up. Because I had the same problem, I just made the project description by myself using Xdoc Format. Because I named it index.xml the project 'About' link was than linked to this page. Hope that helps, Arne -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Ivo Limmen Gesendet: Mittwoch, 26. Juli 2006 10:29 An: Maven Users List Betreff: Re: Project description I recently discovered that the description is also added to the manifest within the jar that is produced. When the description spans more than one line my build fails i.e. the jar is not valid. So to answer your question: I don't think it is possible. On 7/26/06, Jeff Mutonho [EMAIL PROTECTED] wrote: My project description is a bit long and would like to introduce paragraphs and sub-headings in it.Is it possible to do this? -- Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 1 Module - N output jars
At 12:48 PM -0400 7/27/06, John Casey wrote: One of the fundamental principles that Maven operates on is the 1:1 association of POMs to primary output artifacts (not counting special assemblies, source, or javadoc jars). If you want, you might be able to construct a set of POMs that all reference the same source directory, and setup compiler excludes configurations such that each POM generates a jar based on a different subset of the sources in that single directory... I wonder why the compiler-plugin doesn't let us set the output directory so we don't have to propogate poms? (snipet from maven-compiler-2.1-SNAPSHOT/META-INF/maven/plugin.xml): parameter nameoutputDirectory/name typejava.io.File/type requiredtrue/required editablefalse/editable descriptionThe directory for compiled classes./description /parameter This seems to be a common design feature in many of the standard plugins - they are only tested for one instantiation per build cycle, and give the user little control over the configuration of secondary executions. Or is there a hidden way to configure the default execution such that the configuration won't override subsequent executions of the same plugin? The only way that seems to be implied is to use a configuration element in parallel with executions, i.e.: projectbuild ... plugin artifactIdmaven-some-plugin/artifactId configuration [A] /configuration executions execution configuration [B] /configuration In the plugins I tried, [A] trumps [B] (jar-plugin, resources-plugin, surefire-plugin) But why would I specify [B] if I wanted to use [A]? In other words, the [A] configuration seems to be recognized for the default (or implied) execution of say, the jar-plugin, but in specifying [A], we no longer have [B] available. On the other hand, if we specify: executions execution configuration [B] /configuration /execution execution configuration [C] /configuration /execution Then I can successfully provide 2 configurations in addition to the implied, untouched configuration. What this means in the case of the jar-plugin, is, we get 3 executions instead of 2 in order to create 2 jars. One jar is wasted. This is true regardless of whether or not we use ant, since there appears to be no way to turn off the default jar execution during packaging. (This is a case where the source tree is generated as a unit, and then packaged into two non-overlapping jars). Or, again, is there an way to specify a configuration for the default execution with some magic id element? Bottom line is I think that if I go to the trouble of specifying an configuration for an execution, then mvn should use it, and we should have clearly defined semantics for plug-in writers on how to handle the scope of a configuration element. This would greatly reduce the amount of ant code that is required in an m2 project, especially a large legacy project where we don't necessarily have the luxury of implementing the one-artifact-per-pom dogma pervasively. In the case of the jar-plugin, simply providing include/exclude elements would go a long way in solving our particular packaging problems, but this would have to be in addition to a fix for the configuration scoping problem outlined above. -Russ On 7/27/06, Alexis Midon [EMAIL PROTECTED] wrote: Hi all, I'm currently migrating a big project from Ant to Maven. I have exploded the source code in modules as much as possible but for legacy reasons I want one of them to generate N output jars (instead of a single one). My question is How can I do that? I have several leads but some questions remain. Here they are : 1. add to package phase an antrun plugin to create the desired jars, but then the underlying question is: how to disable the 'jar:jar' goal during this phase? 1bis. use the assembly plugin to build several jars, sounds quite cumbersome and not better than the ant plugin solution. 2. is there a way to make the jar plugin generate several jars? Thanks for your help! Alexis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to deselect classes while creating jar?
No, unfortunately the maven-jar-plugin for maven 2.x does not support includes/excludes at the current time: http://jira.codehaus.org/browse/MJAR-30 You can of course control what goes into the jar by using includes/excludes at the *compile* stage, if that's appropriate for your project. If not, you might want to vote for that issue... Regards, Simon On Thu, 2006-07-27 at 09:45 -0500, Chris Hilton wrote: I'm far from an expert, but I think you have to put your exclude elements in a separate excludes element, like: includes include/ /includes excludes exclude/ /excludes -Original Message- From: Abhijit Diwan [mailto:[EMAIL PROTECTED] Sent: Thursday, 27 July, 2006 00:28 To: users@maven.apache.org Subject: How to deselect classes while creating jar? Hi all I have maven 2.0 project which includes all the java classes for my project. Now I do not want to create single jar from the classes generated in the target directory. But there is no documentation on the maven jar plug-in site about how can I exclude the some of the classes from getting them in to the jar. I am using maven 2.0. Also there is lot of cyclic dependency in the classes so can not really separate the projects. I feel there is no clear documentation about how can I skip some of the classes from getting in to the jar. I am using following profile like this and calling mvn jar:jar -PConnectorJar from the command line. profile idConnectorJar/id build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration includes includecom/tibco/ejb/common/*.java/include includecom/tibco/ejb/connector/*.java/include includecom/tibco/ejb/support/*.java/include includecom/tibco/ejb/util/*.java/include includecom/tibco/ejb/adapter/*.java/include includecom/tibco/ejb/jca15/support/*.java/include includecom/tibco/ejb/jca15/util/*.java/include includecom/tibco/ejb/jca15/connector/**/*.java/include !--exclude**/*Work*.java/exclude-- /includes /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration jarNameAeConnector/jarName /configuration /plugin /plugins /build activation property nameAeConnectorJar/name /property /activation /profile Help on this will be really appreciated. Thanks a lot Abhijit - 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: POM variable reference?
Bram, This may be helpful: 1. Reference for the POM: http://maven.apache.org/ref/current/maven-model/maven.html If you scroll past the .xsd file, you'll see the description of all XML elements. 2. for each variable, you can usually access it using ${project.varname} so maybe you can get to ${project.basedir} to get your root basedir, for example. hope this helps. On 7/27/06, Bram de Kruijff [EMAIL PROTECTED] wrote: Hi, can anyone direct me to a reference/tutorial on build-in parameters? I'm hoping to find out how I can reference the root basedir of a multiproject build. Didn't find it on the Maven site, Google or the Better builds.. book :( regards, Bram -- Bram de Kruijff GX creative online development B.V. t: 024 - 3888 261 f: 024 - 3888 621 e: [EMAIL PROTECTED] Wijchenseweg 111 6538 SW Nijmegen http://www.gx.nl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Toli Kuznets http://www.marketcetera.com: Open-Source Trading Platform download.run.trade. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [maven-antrun-plugin] How to pass default Maven Properties to ant/ ?
Alexis, i've experimented with this as well and ended up with the same solution as you. I'm afraid that may be the only option for now. On 7/27/06, Alexis Midon [EMAIL PROTECTED] wrote: Hi all, As recommended by the antrun pluginhttp://maven.apache.org/plugins/maven-antrun-plugin/introduction.html, I'd like to move all my Ant tasks to a build.xml file and just call it from the POM using Ant's ant/ taskhttp://ant.apache.org/manual/CoreTasks/ant.html . I need to use some of the Maven properties (${project.build.directory}, ${ project.build.outputDirectory}, etc.) inside the build.xml, unfortunately it seems that those properties are not inherited from the Maven Project. To be precise, Maven properties are available in the Maven tasks tag but not passed to the ant task. configuration tasks !-- Maven properties are available inside the tasks... -- echo${project.build.directory}/echo !-- but not in the build.xml file! -- ant dir=${basedir} antfile=build.xml / /tasks /configuration The only workaround I found out is to explicitly declare the properties before or inside the ant tag. But you will agree that this not really neat nor efficient. configuration tasks !-- Pass all the properties that may be needed in the ant file -- property name=project.build.directory value=${ project.build.directory}/ ant dir=${basedir} antfile=build-test.xml / /tasks /configuration Does anyone have a solution please? Thanks in advance for your help, Alexis -- Toli Kuznets http://www.marketcetera.com: Open-Source Trading Platform download.run.trade. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-surefire-plugin - turn off for test, turn on for integration-test?
Hello! I would like to turn off maven-surefire-plugin during the test phase (so, no unit testing at all), and turn on maven-surefire-plugin for the integration-test. Basically my source is a test webapp, and my tests are integration tests. While playing around with maven-surefire-plugin configuration, I'm finding the executions are not honored for maven-surefire-plugin. The following POM stanza still runs maven-surefire-plugin during the test phase. If executions is removed and configuration is kept for turn-off-unit-test, the second maven-surefire-plugin, surefire-it, seems to run in the test phase. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId executions execution idturn-off-unit-test/id phasetest/phase goals goaltest/goal /goals configuration skiptrue/skip /configuration /execution /executions /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId executions execution idsurefire-it/id phaseintegration-test/phase goals goaltest/goal /goals /execution /executions /plugin -Chris ___ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.
RE: 1 Module - N output jars
So, just to keep this thread up-to-date, according to the other email I just read (RE: How to deselect classes while creating jar? from Simon Kitching), you can't exactly do what I outlined below because the jar plugin does not support includes/excludes yet. Please vote for http://jira.codehaus.org/browse/MJAR-30. Until then, I guess you will have to create one big jar with everything and all of your custom jars will be secondary artifacts. Chris -Original Message- From: Chris Hilton Sent: Thursday, 27 July, 2006 12:19 To: 'Maven Users List' Subject: RE: 1 Module - N output jars Right, but you can designate one of the jars you want to create as the primary jar for Maven's purposes, even though this may mean nothing to you, and then configure the maven-jar-plugin with the appropriate includes/excludes to create that jar. Then use the other technique to create your secondary jars and attach them. -Original Message- From: Alexis Midon [mailto:[EMAIL PROTECTED] Sent: Thursday, 27 July, 2006 12:14 To: Maven Users List Subject: Re: 1 Module - N output jars well disable the jar:jar is not a requirement, but if I generate several jars, I do not need the jar:jar goal to create a big jar containing all classes. you see what I mean? by the way, your answer is really appreciated. I did not know the build-helper-maven-plugin up until now. Regards, Alexis On 7/27/06, Chris Hilton [EMAIL PROTECTED] wrote: 1. Are you sure you need to disable jar:jar? Or just modify it such that it builds one of your desired jars? I also needed to generate multiple jars for a project; you can read about my particular solution here: http://www.nabble.com/-maven2--Generating-several-artifacts-per-projec t- --tf1689630.html#a4630045 2. Don't know, but hopefully answer 1 will make this a moot point. Chris -Original Message- From: Alexis Midon [mailto:[EMAIL PROTECTED] Sent: Thursday, 27 July, 2006 09:50 To: Maven Users List Subject: 1 Module - N output jars Hi all, I'm currently migrating a big project from Ant to Maven. I have exploded the source code in modules as much as possible but for legacy reasons I want one of them to generate N output jars (instead of a single one). My question is How can I do that? I have several leads but some questions remain. Here they are : 1. add to package phase an antrun plugin to create the desired jars, but then the underlying question is: how to disable the 'jar:jar' goal during this phase? 1bis. use the assembly plugin to build several jars, sounds quite cumbersome and not better than the ant plugin solution. 2. is there a way to make the jar plugin generate several jars? Thanks for your help! Alexis - 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]
maven-war-plugin 2.0.1 not copying xml files
Hello. I am trying to build a war with: mvn war:exploded mvn war:inplace mvn war:war And, no matter how I configure it, only .properties files get copied from my src/main/resources directory into the webapp/WEB-INF/classes/. plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0.1/version configuration webResources resource directorysrc/main/resources/directory targetPathWEB-INF/classes/targetPath filteringtrue/filtering includes include**/*/include /includes /resource /webResources /configuration /plugin /plugins When I set it up this way, it copes all the files from src/main/resources into the root directory of the webapp. If I don't have this plugin declaration (which I should not need because everything is in the default location), only .properties files are copied over. Is there something I am doing wrong? When I put this config in, it says: Copy webapp webResources to workspace\projectname\target\projectname-1.0 TWICE. If I leave it out, I only see it once. It doesn't say it is copying it to the WEB-INF/classes directory. Any help is much appreciated. Charlie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems creating first app
I am having creating a test app. Maven runs, but doesn't create it. I get the following output: [EMAIL PROTECTED] ~]$ mvn archetype:create -DgroupId=com.plexq.applications-DartifactId=my-app [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] org.apache.maven.plugins: checking for updates from central [INFO] org.codehaus.mojo: checking for updates from central [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for updates from central Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/1.0-alpha-4/maven-archetype-plugin-1.0-alpha-4.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype/1.0-alpha-4/maven-archetype-1.0-alpha-4.pom 2K downloaded [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 'eb9e286b16844e1c5f8f38a9ddd7ee266985c8f6'; remote = '2f4311799239ce76c6c1386bee04988f579d26b7' - RETRYING Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype/1.0-alpha-4/maven-archetype-1.0-alpha-4.pom 2K downloaded [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 'eb9e286b16844e1c5f8f38a9ddd7ee266985c8f6'; remote = '2f4311799239ce76c6c1386bee04988f579d26b7' - IGNORING Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/1/maven-parent-1.pom 6K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/apache/1/apache-1.pom 3K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/1.0-alpha-4/maven-archetype-plugin-1.0-alpha-4.jar 9K downloaded [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [archetype:create] (aggregator-style) [INFO] Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-core/1.0-alpha-4/maven-archetype-core-1.0-alpha-4.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0/maven-model-2.0.pom 2K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven/2.0/maven-2.0.pom 8K downloaded Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom 6K downloaded Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-9/plexus-container-default-1.0-alpha-9.pom 1K downloaded [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.codehaus.plexus:plexus-container-default Reason: Error getting POM for 'org.codehaus.plexus:plexus-container-default' from the repository: Error transferring file org.codehaus.plexus:plexus-container-default:pom:1.0-alpha-9 from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.snapshots (http://svn.apache.org/maven-snapshot-repository) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 7 seconds [INFO] Finished at: Thu Jul 27 17:13:10 CDT 2006 [INFO] Final Memory: 2M/40M [INFO] [EMAIL PROTECTED] ~]$
Re: maven-surefire-plugin - turn off for test, turn on for integration-test?
On 7/27/06, Chris Wall [EMAIL PROTECTED] wrote: I would like to turn off maven-surefire-plugin during the test phase (so, no unit testing at all), and turn on maven-surefire-plugin for the integration-test. Basically my source is a test webapp, and my tests are integration tests. The usual advice is to put your integration tests in a separate module, and bind executions of the compiler and surefire to the right phases. Here's an example of that: http://svn.apache.org/repos/asf/struts/struts1/trunk/integration/apps-it/pom.xml (There are much better examples in the Better Builds with Maven book from Mergere.) Check the archives for some of my recent posts (2-3 months). I got some help configuring the Shale Framework examples webapps, where we needed to keep the integration tests in the same module as the example app and its unit tests. Here's one of those poms: http://svn.apache.org/repos/asf/shale/framework/trunk/shale-apps/shale-blank/pom.xml Along those lines, for your project, try letting Surefire run during 'test', but excluding all of the test classes. Then bind a second execution of surefire to the integration-test phase. (Based on the Shale example, you might have to explicitly include the test classes.) HTH, -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven-surefire-plugin - turn off for test, turn on for integration-test?
Thanks Wendy. Unfortunately svn.apache.org is timing out. I did come across one of your earlier posts, so I now understand executions better. Base on one of your posts, I tried the following w/o success. executions !-- skip unit test run, tests to be executed during integration-test -- execution idsurefire-unit/id phasetest/phase goals goaltest/goal /goals configuration excludes exclude**/*.java/exclude /excludes !-- naturally this doesn't work either: skiptrue/skip -- /configuration /execution execution idsurefire-it/id phaseintegration-test/phase goals goaltest/goal /goals configuration includes include**/*.java/include /includes /configuration /execution /executions I admit we're bending Maven a bit. Actually, the entire module is a test project. ;-) -Chris -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: July 27, 2006 5:23 PM To: Maven Users List Subject: Re: maven-surefire-plugin - turn off for test, turn on for integration-test? On 7/27/06, Chris Wall [EMAIL PROTECTED] wrote: I would like to turn off maven-surefire-plugin during the test phase (so, no unit testing at all), and turn on maven-surefire-plugin for the integration-test. Basically my source is a test webapp, and my tests are integration tests. The usual advice is to put your integration tests in a separate module, and bind executions of the compiler and surefire to the right phases. Here's an example of that: http://svn.apache.org/repos/asf/struts/struts1/trunk/integration/apps-it /pom.xml (There are much better examples in the Better Builds with Maven book from Mergere.) Check the archives for some of my recent posts (2-3 months). I got some help configuring the Shale Framework examples webapps, where we needed to keep the integration tests in the same module as the example app and its unit tests. Here's one of those poms: http://svn.apache.org/repos/asf/shale/framework/trunk/shale-apps/shale-b lank/pom.xml Along those lines, for your project, try letting Surefire run during 'test', but excluding all of the test classes. Then bind a second execution of surefire to the integration-test phase. (Based on the Shale example, you might have to explicitly include the test classes.) HTH, -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven-surefire-plugin - turn off for test, turn on for integration-test?
Hi Chris, I don't think it's bending maven to run two lots of unit tests, normal and integration. An executions section defines invocations of the specified plugin *in addition* to the standard one. If you want to skip the standard run, or restrict the set of classes it runs, then do that inside the configuration section of the plugin main block, not the executions section: plugin artifactIdmaven-surefire-plugin/artifactId ... configurationskiptrue/skip/configuration executions execution ... skipfalse/skip Because the additional execution inherits settings from the main one, you need to reset skip to false in the nested definition. Using excludes will work in the same manner. Regards, Simon On Thu, 2006-07-27 at 15:52 -0700, Chris Wall wrote: Thanks Wendy. Unfortunately svn.apache.org is timing out. I did come across one of your earlier posts, so I now understand executions better. Base on one of your posts, I tried the following w/o success. executions !-- skip unit test run, tests to be executed during integration-test -- execution idsurefire-unit/id phasetest/phase goals goaltest/goal /goals configuration excludes exclude**/*.java/exclude /excludes !-- naturally this doesn't work either: skiptrue/skip -- /configuration /execution execution idsurefire-it/id phaseintegration-test/phase goals goaltest/goal /goals configuration includes include**/*.java/include /includes /configuration /execution /executions I admit we're bending Maven a bit. Actually, the entire module is a test project. ;-) -Chris -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: July 27, 2006 5:23 PM To: Maven Users List Subject: Re: maven-surefire-plugin - turn off for test, turn on for integration-test? On 7/27/06, Chris Wall [EMAIL PROTECTED] wrote: I would like to turn off maven-surefire-plugin during the test phase (so, no unit testing at all), and turn on maven-surefire-plugin for the integration-test. Basically my source is a test webapp, and my tests are integration tests. The usual advice is to put your integration tests in a separate module, and bind executions of the compiler and surefire to the right phases. Here's an example of that: http://svn.apache.org/repos/asf/struts/struts1/trunk/integration/apps-it /pom.xml (There are much better examples in the Better Builds with Maven book from Mergere.) Check the archives for some of my recent posts (2-3 months). I got some help configuring the Shale Framework examples webapps, where we needed to keep the integration tests in the same module as the example app and its unit tests. Here's one of those poms: http://svn.apache.org/repos/asf/shale/framework/trunk/shale-apps/shale-b lank/pom.xml Along those lines, for your project, try letting Surefire run during 'test', but excluding all of the test classes. Then bind a second execution of surefire to the integration-test phase. (Based on the Shale example, you might have to explicitly include the test classes.) HTH, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
scm: svn, Jira, conitinum
Hi, i have seen couple of posting on these, but not able to find some basic answers I got my project setup with Maven2 and build is working. a. How do we confirgure to scm: SVN - any samples configuration files with couple of instructions b. same for continum and JIRA Thanks for all help! -- View this message in context: http://www.nabble.com/scm%3A-svn%2C-Jira%2C-conitinum-tf2012580.html#a5531160 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven-surefire-plugin - turn off for test, turn on forintegration-test?
Thanks Simon. Based on your recommendation I made the following update. Yet, the execution element's skip=false is not overriding the parent value. Both the unit test and integration test executions are being skipped. What am I missing? Thanks. Plugin def: !-- skip unit test run, tests to be executed during integration-test -- plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId configuration skiptrue/skip /configuration executions execution idsurefire-it/id phaseintegration-test/phase goals goaltest/goal /goals configuration configuration skipfalse/skip /configuration /configuration /execution /executions /plugin Result: [INFO] Scanning for projects... [INFO] [INFO] Building TOM Test WebApp [INFO]task-segment: [clean, clean, integration-test] [INFO] [INFO] [clean:clean] ... [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] ... [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] ... [INFO] [surefire:test] [INFO] Tests are skipped. [INFO] [war:war] [INFO] Exploding webapp... ... [INFO] [surefire:test {execution: surefire-it}] [INFO] Tests are skipped. [INFO] [INFO] BUILD SUCCESSFUL -Chris -Original Message- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: July 27, 2006 5:59 PM To: Maven Users List Subject: RE: maven-surefire-plugin - turn off for test, turn on forintegration-test? Hi Chris, I don't think it's bending maven to run two lots of unit tests, normal and integration. An executions section defines invocations of the specified plugin *in addition* to the standard one. If you want to skip the standard run, or restrict the set of classes it runs, then do that inside the configuration section of the plugin main block, not the executions section: plugin artifactIdmaven-surefire-plugin/artifactId ... configurationskiptrue/skip/configuration executions execution ... skipfalse/skip Because the additional execution inherits settings from the main one, you need to reset skip to false in the nested definition. Using excludes will work in the same manner. Regards, Simon On Thu, 2006-07-27 at 15:52 -0700, Chris Wall wrote: Thanks Wendy. Unfortunately svn.apache.org is timing out. I did come across one of your earlier posts, so I now understand executions better. Base on one of your posts, I tried the following w/o success. executions !-- skip unit test run, tests to be executed during integration-test -- execution idsurefire-unit/id phasetest/phase goals goaltest/goal /goals configuration excludes exclude**/*.java/exclude /excludes !-- naturally this doesn't work either: skiptrue/skip -- /configuration /execution execution idsurefire-it/id phaseintegration-test/phase goals goaltest/goal /goals configuration includes include**/*.java/include /includes /configuration /execution /executions I admit we're bending Maven a bit. Actually, the entire module is a test project. ;-) -Chris -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: July 27, 2006 5:23 PM To: Maven Users List Subject: Re: maven-surefire-plugin - turn off for test, turn on for integration-test? On 7/27/06, Chris Wall [EMAIL PROTECTED] wrote: I would like to turn off maven-surefire-plugin during the test phase (so, no unit testing at all), and turn on maven-surefire-plugin for the integration-test. Basically my source is a test webapp, and my tests are integration tests. The usual advice is to put your integration tests in a separate module, and bind executions of the compiler and surefire to the right phases. Here's an example of that: http://svn.apache.org/repos/asf/struts/struts1/trunk/integration/apps-it /pom.xml (There are much better examples in the Better Builds with Maven book from Mergere.) Check the archives for some of my recent posts (2-3 months). I got some help configuring the Shale Framework examples webapps, where we needed to keep the integration tests in the same module as the example app and its unit tests. Here's one of those poms: http://svn.apache.org/repos/asf/shale/framework/trunk/shale-apps/shale-b lank/pom.xml Along those lines, for your project, try letting Surefire run during 'test', but excluding all of the test classes. Then bind a second execution of surefire to the integration-test phase. (Based on the Shale example, you might have
Packaged webapp
Hi all, I have a Web app project that builds to a WAR just fine. What I'd like to do is also package it with a Tomcat bundle. This way, I can provide a single ZIP with everything necessary to run the Web app. Does anyone have any experience doing this with maven? Any pointers for me? Thanks, Kevin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-surefire-plugin - turn off for test, turn on forintegration-test?
On 7/27/06, Chris Wall [EMAIL PROTECTED] wrote: Based on your recommendation I made the following update. Yet, the execution element's skip=false is not overriding the parent value. Both the unit test and integration test executions are being skipped. That fits with what I (vaguely) remember happening. I think you either have to let Surefire run in 'test' and do the includes/excludes, or else switch to pom packaging and bind executions of the various plugins exactly where you want them. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Super Pom
Hi Stephen, Thanks for your suggestion, I was coming to the same conclusion. What puzzled me was the manual Better Builds with Maven pg 24, where they refer to a Super POM that is implicitly inherited by all pom's. I guess this is buried deep in the maven code somewhere and not available for the end user. Could you please confirm my observation above, about the Super POM. Thanks Lakshman -Original Message- From: Stephen Duncan [mailto:[EMAIL PROTECTED] Sent: Thursday, 27 July 2006 10:38 AM To: Maven Users List Subject: Re: Super Pom You can choose to make a super-pom that all your projects inherit from to provide common configuration. - Stephen On 7/26/06, Lakshman Srilakshmanan [EMAIL PROTECTED] wrote: Hi Emmanuel, Thanks for your reply. The http://maven.apache.org/plugins/maven-checkstyle-plugin/customize.html describes how to include a customised checkstyle within a POM. I need to know the location of the super POM itself, if one exists. Thanks Lakshman -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Wednesday, 26 July 2006 5:28 PM To: Maven Users List Subject: Re: Super Pom http://maven.apache.org/plugins/maven-checkstyle-plugin/customize.html Lakshman Srilakshmanan a écrit : Hi All, I have used maven 1.x for a couple of years now and am in the process of migrating to maven 2.x I need to set some configuration globally (eg customised checkstyle). I find the appropriate place would be to include it in the super pom. Unfortunately I don't seem to be able to find it. Could you please direct me to where it is located. Thanks Lakshman - 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] -- Stephen Duncan Jr www.stephenduncanjr.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]
Cleaning a Directory After Tests
Hi, My tests create a directory in the root of the project. Does anyone know of a plugin that will clean a specified directory? Something similar to doing this in ant: delete directory=parent/child/directoryToDelete/ Thanks, - Ole __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-war-plugin 2.0.1 not copying xml files
hello, the src/main/resources is handled by the resource plugin, by default the resource plugin copies the contents to target/classes. =) you need to explicitly invoke the compile phase before using the war goals. check the war plugin documentation for the details : http://maven.apache.org/plugins/maven-war-plugin/usage.html pete marvin Charles Harvey III wrote: Hello. I am trying to build a war with: mvn war:exploded mvn war:inplace mvn war:war And, no matter how I configure it, only .properties files get copied from my src/main/resources directory into the webapp/WEB-INF/classes/. plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0.1/version configuration webResources resource directorysrc/main/resources/directory targetPathWEB-INF/classes/targetPath filteringtrue/filtering includes include**/*/include /includes /resource /webResources /configuration /plugin /plugins When I set it up this way, it copes all the files from src/main/resources into the root directory of the webapp. If I don't have this plugin declaration (which I should not need because everything is in the default location), only .properties files are copied over. Is there something I am doing wrong? When I put this config in, it says: Copy webapp webResources to workspace\projectname\target\projectname-1.0 TWICE. If I leave it out, I only see it once. It doesn't say it is copying it to the WEB-INF/classes directory. Any help is much appreciated. Charlie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven-surefire-plugin - turn off for test, turn on forintegration-test?
Goodness me. This... execution idsurefire-it/id phaseintegration-test/phase goals goaltest/goal /goals configuration configuration skipfalse/skip /configuration /configuration /execution ...should be (note extra configuration stanza)... execution idsurefire-it/id phaseintegration-test/phase goals goaltest/goal /goals configuration skipfalse/skip /configuration /execution Works! Thanks everyone! -Chris -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: July 27, 2006 6:58 PM To: Maven Users List Subject: Re: maven-surefire-plugin - turn off for test, turn on forintegration-test? On 7/27/06, Chris Wall [EMAIL PROTECTED] wrote: Based on your recommendation I made the following update. Yet, the execution element's skip=false is not overriding the parent value. Both the unit test and integration test executions are being skipped. That fits with what I (vaguely) remember happening. I think you either have to let Surefire run in 'test' and do the includes/excludes, or else switch to pom packaging and bind executions of the various plugins exactly where you want them. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-surefire-plugin - turn off for test, turn on forintegration-test?
On 7/27/06, Chris Wall [EMAIL PROTECTED] wrote: Goodness me. This... ... Works! Thanks everyone! Would you consider writing up what you've discovered for the wiki? Here's an 'Examples' page where it might fit: http://docs.codehaus.org/display/MAVENUSER/Examples (If by chance you don't have permission to edit, ask on [EMAIL PROTECTED]) Thanks, -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logging within JUnit tests run by surefire-plugin
I'm writing unit tests for a library which uses commons-logging-api for its logging. I've noticed that, even if I don't include log4j.properties or the log4j jar on the classpath, logging is accomplished at the INFO level (and higher) to the console. That's almost what I want. I'd like to be able to set the logging to a different level (say, while debugging a failing unit test). Furthermore, I'd really like the logging done during the execution of each unit test to go into surefire-report for that TestCase. (Also, if there's a way to make it all run with log4j and log output to the appropriate surefire-report, that'd be great, too. It's nice to setup your appender pattern conversion like you want, too.) Any ideas? Thanks, all! --Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-war-plugin 2.0.1 not copying xml files
D'oh! Knew it was going to be something stupid like not reading the instructions. Thanks. Charlie Pete Marvin King said the following on 7/27/2006 9:08 PM: hello, the src/main/resources is handled by the resource plugin, by default the resource plugin copies the contents to target/classes. =) you need to explicitly invoke the compile phase before using the war goals. check the war plugin documentation for the details : http://maven.apache.org/plugins/maven-war-plugin/usage.html pete marvin Charles Harvey III wrote: Hello. I am trying to build a war with: mvn war:exploded mvn war:inplace mvn war:war And, no matter how I configure it, only .properties files get copied from my src/main/resources directory into the webapp/WEB-INF/classes/. plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0.1/version configuration webResources resource directorysrc/main/resources/directory targetPathWEB-INF/classes/targetPath filteringtrue/filtering includes include**/*/include /includes /resource /webResources /configuration /plugin /plugins When I set it up this way, it copes all the files from src/main/resources into the root directory of the webapp. If I don't have this plugin declaration (which I should not need because everything is in the default location), only .properties files are copied over. Is there something I am doing wrong? When I put this config in, it says: Copy webapp webResources to workspace\projectname\target\projectname-1.0 TWICE. If I leave it out, I only see it once. It doesn't say it is copying it to the WEB-INF/classes directory. Any help is much appreciated. Charlie - 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: Cleaning a Directory After Tests
Actually, I think it's cleaner just to use the apache commons.io library FileUtils.delete(File directory) method in the teardown of the test. Here's the dependency in case anyone else wants to do this: dependency groupIdcommons-io/groupId artifactIdcommons-io/artifactId version1.2/version scopetest/scope /dependency Cheers, - Ole --- Ole Ersoy [EMAIL PROTECTED] wrote: Hi, My tests create a directory in the root of the project. Does anyone know of a plugin that will clean a specified directory? Something similar to doing this in ant: delete directory=parent/child/directoryToDelete/ Thanks, - Ole __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Super Pom
Thanks Stephen, Sending to maven users list for future reference. Thanks Lakshman -Original Message- From: Stephen Duncan [mailto:[EMAIL PROTECTED] Sent: Friday, 28 July 2006 12:09 PM To: Lakshman Srilakshmanan Subject: Re: Super Pom Yes. That Super POM is basically a set of default values built in to Maven (from my understanding). This includes things like a profile activated by performRelease=true that includes the javadoc:jar and source:jar goals at package time, etc. - Stephen On 7/27/06, Lakshman Srilakshmanan [EMAIL PROTECTED] wrote: Hi Stephen, Thanks for your suggestion, I was coming to the same conclusion. What puzzled me was the manual Better Builds with Maven pg 24, where they refer to a Super POM that is implicitly inherited by all pom's. I guess this is buried deep in the maven code somewhere and not available for the end user. Could you please confirm my observation above, about the Super POM. Thanks Lakshman -Original Message- From: Stephen Duncan [mailto:[EMAIL PROTECTED] Sent: Thursday, 27 July 2006 10:38 AM To: Maven Users List Subject: Re: Super Pom You can choose to make a super-pom that all your projects inherit from to provide common configuration. - Stephen On 7/26/06, Lakshman Srilakshmanan [EMAIL PROTECTED] wrote: Hi Emmanuel, Thanks for your reply. The http://maven.apache.org/plugins/maven-checkstyle-plugin/customize.html describes how to include a customised checkstyle within a POM. I need to know the location of the super POM itself, if one exists. Thanks Lakshman -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Wednesday, 26 July 2006 5:28 PM To: Maven Users List Subject: Re: Super Pom http://maven.apache.org/plugins/maven-checkstyle-plugin/customize.html Lakshman Srilakshmanan a écrit : Hi All, I have used maven 1.x for a couple of years now and am in the process of migrating to maven 2.x I need to set some configuration globally (eg customised checkstyle). I find the appropriate place would be to include it in the super pom. Unfortunately I don't seem to be able to find it. Could you please direct me to where it is located. Thanks Lakshman - 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] -- Stephen Duncan Jr www.stephenduncanjr.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]
RE: Super Pom
Dear all, For maven2, the child POM will inherit all properties from parent pom. thanks. Tel: (020)36315358-328 Fax: (020)36315170 Lakshman Srilakshmanan [EMAIL PROTECTED]To: Maven Users List users@maven.apache.org ost.com.au cc: Subject: RE: Super Pom 28/07/2006 10:12 Please respond to Maven Users List Thanks Stephen, Sending to maven users list for future reference. Thanks Lakshman -Original Message- From: Stephen Duncan [mailto:[EMAIL PROTECTED] Sent: Friday, 28 July 2006 12:09 PM To: Lakshman Srilakshmanan Subject: Re: Super Pom Yes. That Super POM is basically a set of default values built in to Maven (from my understanding). This includes things like a profile activated by performRelease=true that includes the javadoc:jar and source:jar goals at package time, etc. - Stephen On 7/27/06, Lakshman Srilakshmanan [EMAIL PROTECTED] wrote: Hi Stephen, Thanks for your suggestion, I was coming to the same conclusion. What puzzled me was the manual Better Builds with Maven pg 24, where they refer to a Super POM that is implicitly inherited by all pom's. I guess this is buried deep in the maven code somewhere and not available for the end user. Could you please confirm my observation above, about the Super POM. Thanks Lakshman -Original Message- From: Stephen Duncan [mailto:[EMAIL PROTECTED] Sent: Thursday, 27 July 2006 10:38 AM To: Maven Users List Subject: Re: Super Pom You can choose to make a super-pom that all your projects inherit from to provide common configuration. - Stephen On 7/26/06, Lakshman Srilakshmanan [EMAIL PROTECTED] wrote: Hi Emmanuel, Thanks for your reply. The http://maven.apache.org/plugins/maven-checkstyle-plugin/customize.html describes how to include a customised checkstyle within a POM. I need to know the location of the super POM itself, if one exists. Thanks Lakshman -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Wednesday, 26 July 2006 5:28 PM To: Maven Users List Subject: Re: Super Pom http://maven.apache.org/plugins/maven-checkstyle-plugin/customize.html Lakshman Srilakshmanan a écrit : Hi All, I have used maven 1.x for a couple of years now and am in the process of migrating to maven 2.x I need to set some configuration globally (eg customised checkstyle). I find the appropriate place would be to include it in the super pom. Unfortunately I don't seem to be able to find it. Could you please direct me to where it is located. Thanks Lakshman - 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] -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stephen Duncan Jr www.stephenduncanjr.com
[ANN] Proximity RC2 is out!
Hi all, Proximity RC2 is here! Proximity RC2 has moved forward in time, due to an important BUG about handling aggregated repositories and Maven2 metadata. If using non-snapshot and snapshot repositories together that contains same paths (NOT with the default config), RC1 and former releases was actually hiding metadata files from Maven2. This bug is FIXED in RC2 and Proximity merges these metadata files properly. Also, much-much improvements have been made in configurability of Proximity itself. Some of them, like ProximityLogic externalization, repository grouping and Repository Snapshot policies has been a introduced as solution to the aggregation problem and as response to submitted issues. Please, download the newest RC2 from here: http://proximity.abstracthorizon.org/deploy/ Updated site: http://proximity.abstracthorizon.org/ Changes (look for RC2): https://trac.abstracthorizon.org/proximity/report/9 Have fun, ~t~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd: mvn idea:idea question
Not sure if my first mail went through as I was not subscribed to the list. -- Forwarded message -- From: Sanjiv Jivan [EMAIL PROTECTED] Date: Jul 27, 2006 11:42 PM Subject: mvn idea:idea question To: users@maven.apache.org Anyone know how to use this plugin so that it creates an IDEA project with the dependencies as project modules with ability to attach source/javadocs as opposed to the default where the individual jar are included (not as libraries). I also found a new idea plugin here : http://ci.codehaus.org:8002/continuum/servlet/continuum/target/WorkingCopy.vm/view/WorkingCopy/id/45?userDirectory=target How do I install this? Thanks, Sanjiv
RE: How to deselect classes while creating jar?
Thanks a lot Simon. I have voted for the issue. Abhijit -Original Message- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: Friday, July 28, 2006 3:18 AM To: Maven Users List Subject: RE: How to deselect classes while creating jar? No, unfortunately the maven-jar-plugin for maven 2.x does not support includes/excludes at the current time: http://jira.codehaus.org/browse/MJAR-30 You can of course control what goes into the jar by using includes/excludes at the *compile* stage, if that's appropriate for your project. If not, you might want to vote for that issue... Regards, Simon On Thu, 2006-07-27 at 09:45 -0500, Chris Hilton wrote: I'm far from an expert, but I think you have to put your exclude elements in a separate excludes element, like: includes include/ /includes excludes exclude/ /excludes -Original Message- From: Abhijit Diwan [mailto:[EMAIL PROTECTED] Sent: Thursday, 27 July, 2006 00:28 To: users@maven.apache.org Subject: How to deselect classes while creating jar? Hi all I have maven 2.0 project which includes all the java classes for my project. Now I do not want to create single jar from the classes generated in the target directory. But there is no documentation on the maven jar plug-in site about how can I exclude the some of the classes from getting them in to the jar. I am using maven 2.0. Also there is lot of cyclic dependency in the classes so can not really separate the projects. I feel there is no clear documentation about how can I skip some of the classes from getting in to the jar. I am using following profile like this and calling mvn jar:jar -PConnectorJar from the command line. profile idConnectorJar/id build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration includes includecom/tibco/ejb/common/*.java/include includecom/tibco/ejb/connector/*.java/include includecom/tibco/ejb/support/*.java/include includecom/tibco/ejb/util/*.java/include includecom/tibco/ejb/adapter/*.java/include includecom/tibco/ejb/jca15/support/*.java/include includecom/tibco/ejb/jca15/util/*.java/include includecom/tibco/ejb/jca15/connector/**/*.java/include !--exclude**/*Work*.java/exclude-- /includes /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration jarNameAeConnector/jarName /configuration /plugin /plugins /build activation property nameAeConnectorJar/name /property /activation /profile Help on this will be really appreciated. Thanks a lot Abhijit - 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]
mvn idea:idea question
Anyone know how to use this plugin so that it creates an IDEA project with the dependencies as project modules with ability to attach source/javadocs as opposed to the default where the individual jar are included (not as libraries). I also found a new idea plugin here : http://ci.codehaus.org:8002/continuum/servlet/continuum/target/WorkingCopy.vm/view/WorkingCopy/id/45?userDirectory=target How do I install this? Thanks, Sanjiv
J2EE - Java EE and Coping with SUN JARs
Hi, with J2EE now named Java EE, shall also the guideline for the library be changed? From Product artifact Group ID Artifact ID J2EE javax.j2ee j2ee To Product artifact Group ID Artifact ID Java EE javax.javaee javaee Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] The packaging for this project did not assign a file to the build artifact
I just read the archived mail and actually have the same problem: http://www.mail-archive.com/users@maven.apache.org/msg36680.html How to assign the build artefact in a custum plugin, that is based on ant tasks? Is there a more elegant way? For me, there's also an additional tweak. I'd like to assign not what comes out of my plugin, but I'm using the maven-source-plugin in a subsequent step in the lifecycle and want to deploy that. Any hints appreciated! Andreas Ebbert-Karroum Senior Software Design Engineer - Nokia Networks Services / Middleware phone: +49-211-94123928, fax: +49-211-94123838 Heltorfer Straße 1, 40472 Düsseldorf, Germany This message is confidential. If you have received this message in error, please delete it from your system. You should not copy it for any purpose, or disclose its contents to any other person. Internet communications are not secure and therefore Nokia GmbH does not accept legal responsibility for the contents of this message as it has been transmitted over a public network. Thank you. Nokia GmbH, Nokia Networks is a German Company. Further information about the Company is available from its principal offices at Heltorferstrasse 1, D-40472, Düsseldorf, Germany and from the website at http://www.nokia.com/