Re: Using UmlGraphDoc with Maven
Most def. Everyone should read it :) On Thu, Jul 9, 2009 at 4:18 PM, Roman Kournjaev kournj...@gmail.com wrote: I googeled for it right now. Is it worth reading ? On Thu, Jul 9, 2009 at 5:10 PM, Jeff Mutonho ejbeng...@gmail.com wrote: On Thu, Jul 9, 2009 at 2:41 PM, Roman Kournjaev kournj...@gmail.com wrote: Hi I have made a similar effort to make the graphitz work a year ago. Took me a day or so. Since then not only the build takes longer , but also no one has ever looked at these uml diagrams at all. :-) :) Have you read the book Fake Work ? -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: Using UmlGraphDoc with Maven
Thanks Paul , but I still seem out of luck. I downloaded UmlGraph version 4.8 and installed it as mvn install:install-file -Dpackaging=jar -DartifactId=UmlGraph -Dversion=4.8 -Dfile=C:/devenv/UMLGraph-4.8/lib/UmlGraph.jar -DgroupId=gr.spinellis -DgeneratePom=true then reconfigured the javadoc plugin to match the working example : plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId configuration aggregatetrue/aggregate docletgr.spinellis.umlgraph.doclet.UmlGraphDoc/doclet docletArtifact groupIdgr.spinellis/groupId artifactIdUmlGraph/artifactId version4.8/version /docletArtifact additionalparam -inferrel -inferdep -quiet -hide java.* -collpackages java.util.* -qualify -postfixpackage -nodefontsize 9 -nodefontpackagesize 7 /additionalparam /configuration /plugin I still am not getting any .dot generated. I noticed the following in from my mvn -X javadoc:javadoc output : [DEBUG] (f) docletArtifact = groupId = 'null' artifactId = 'null' version = 'null' [DEBUG] (f) docletArtifacts = [] Does this mean maven-javadoc-plugin isn't recognizing the UmlGraphDoc doclet? Or is that output normal? On Thu, Jul 9, 2009 at 7:50 AM, Paul Benedict pbened...@apache.org wrote: Here is a real working example: http://svn.apache.org/viewvc/tiles/framework/trunk/pom.xml?revision=790631content-type=text%2Fplain Paul On Thu, Jul 9, 2009 at 12:44 AM, Jeff Mutonhoejbeng...@gmail.com wrote: Hi After reading the article on this DZone article - Reverse Engineer Source Code http://java.dzone.com/articles/reverse-engineer-source-code-u I configured my pom as follows: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId configuration aggregatetrue/aggregate docletorg.umlgraph.doclet.UmlGraphDoc/doclet docletArtifact groupIdorg.umlgraph/groupId artifactIdumlGraph/artifactId version5.0/version /docletArtifact additionalparam -inferrel -inferdep -quiet -hide java.* -collpackages java.util.* -qualify -postfixpackage -nodefontsize 9 -nodefontpackagesize 7 /additionalparam destDirtarget/uml/destDir showprivate/show /configuration /plugin I installed Graphviz and C:\Graphviz2.24\bin is in my PATH. However when I run mvn javadoc:javadoc or even better still mvn site:deploy , there aren't any UML image files(i.e .dot) files being generated. Any clues on how I can get this to work? Thanx -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: Using UmlGraphDoc with Maven
Thanks for all your responses. I've made progress. It now looks like my problem is with Graphviz's dot.exe program. It crashes even from the command like when I do something as simple as dot -V . Says it failed to initialize properly..blah blah ...the usual Windows stuff :) Will let you know what happens. On Thu, Jul 9, 2009 at 9:47 AM, Jason Chaffee jason.chaf...@zilliontv.tvwrote: see http://repo2.maven.org/maven2/org/umlgraph/ Jason From: Jason Chaffee [jason.chaf...@zilliontv.tv]hanks Sent: Thursday, July 09, 2009 12:45 AM To: Maven Users List Subject: RE: Using UmlGraphDoc with Maven UmlGraph is in the central repo: docletorg.umlgraph.doclet.UmlGraphDoc/doclet docletArtifact groupIdorg.umlgraph/groupId artifactIddoclet/artifactId version5.1/version /docletArtifact Jason From: Mohan KR [kmoh@gmail.com] Sent: Thursday, July 09, 2009 12:27 AM To: 'Maven Users List' Subject: RE: Using UmlGraphDoc with Maven I have using both UMLGraph and Apiviz, at least with APIViz you don't need to 'install' the UMLgraph, it is available from jboss repo. Of course, both of them require the dot.exe to be available in the classpath. http://code.google.com/p/apiviz/ Thanks, mohan kr -Original Message- From: Jeff Mutonho [mailto:ejbeng...@gmail.com] Sent: Thursday, July 09, 2009 2:00 AM To: Maven Users List Subject: Re: Using UmlGraphDoc with Maven Thanks Paul , but I still seem out of luck. I downloaded UmlGraph version 4.8 and installed it as mvn install:install-file -Dpackaging=jar -DartifactId=UmlGraph -Dversion=4.8 -Dfile=C:/devenv/UMLGraph-4.8/lib/UmlGraph.jar -DgroupId=gr.spinellis -DgeneratePom=true then reconfigured the javadoc plugin to match the working example : plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId configuration aggregatetrue/aggregate docletgr.spinellis.umlgraph.doclet.UmlGraphDoc/doclet docletArtifact groupIdgr.spinellis/groupId artifactIdUmlGraph/artifactId version4.8/version /docletArtifact additionalparam -inferrel -inferdep -quiet -hide java.* -collpackages java.util.* -qualify -postfixpackage -nodefontsize 9 -nodefontpackagesize 7 /additionalparam /configuration /plugin I still am not getting any .dot generated. I noticed the following in from my mvn -X javadoc:javadoc output : [DEBUG] (f) docletArtifact = groupId = 'null' artifactId = 'null' version = 'null' [DEBUG] (f) docletArtifacts = [] Does this mean maven-javadoc-plugin isn't recognizing the UmlGraphDoc doclet? Or is that output normal? On Thu, Jul 9, 2009 at 7:50 AM, Paul Benedict pbened...@apache.org wrote: Here is a real working example: http://svn.apache.org/viewvc/tiles/framework/trunk/pom.xml?revision=790631c ontent-type=text%2Fplainhttp://svn.apache.org/viewvc/tiles/framework/trunk/pom.xml?revision=790631c%0Aontent-type=text%2Fplain Paul On Thu, Jul 9, 2009 at 12:44 AM, Jeff Mutonhoejbeng...@gmail.com wrote: Hi After reading the article on this DZone article - Reverse Engineer Source Code http://java.dzone.com/articles/reverse-engineer-source-code-u I configured my pom as follows: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId configuration aggregatetrue/aggregate docletorg.umlgraph.doclet.UmlGraphDoc/doclet docletArtifact groupIdorg.umlgraph/groupId artifactIdumlGraph/artifactId version5.0/version /docletArtifact additionalparam -inferrel -inferdep -quiet -hide java.* -collpackages java.util.* -qualify -postfixpackage -nodefontsize 9 -nodefontpackagesize 7 /additionalparam destDirtarget/uml/destDir showprivate/show /configuration /plugin I installed Graphviz and C:\Graphviz2.24\bin is in my PATH. However when I run mvn javadoc:javadoc or even better still mvn site:deploy , there aren't any UML image files(i.e .dot) files being generated. Any clues on how I can get this to work? Thanx -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user
Re: Using UmlGraphDoc with Maven
On Thu, Jul 9, 2009 at 2:41 PM, Roman Kournjaev kournj...@gmail.com wrote: Hi I have made a similar effort to make the graphitz work a year ago. Took me a day or so. Since then not only the build takes longer , but also no one has ever looked at these uml diagrams at all. :-) :) Have you read the book Fake Work ? -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Using UmlGraphDoc with Maven
Hi After reading the article on this DZone article - Reverse Engineer Source Code http://java.dzone.com/articles/reverse-engineer-source-code-u I configured my pom as follows: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId configuration aggregatetrue/aggregate docletorg.umlgraph.doclet.UmlGraphDoc/doclet docletArtifact groupIdorg.umlgraph/groupId artifactIdumlGraph/artifactId version5.0/version /docletArtifact additionalparam -inferrel -inferdep -quiet -hide java.* -collpackages java.util.* -qualify -postfixpackage -nodefontsize 9 -nodefontpackagesize 7 /additionalparam destDirtarget/uml/destDir showprivate/show /configuration /plugin I installed Graphviz and C:\Graphviz2.24\bin is in my PATH. However when I run mvn javadoc:javadoc or even better still mvn site:deploy , there aren't any UML image files(i.e .dot) files being generated. Any clues on how I can get this to work? Thanx -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: Newbie - EAR plugin can't find my war file.
Just add typewar/type below the version tag in your dependency On Tue, May 12, 2009 at 11:15 PM, KurtG ku...@serent.com wrote: I did a 'mvn install' my web app module with no problems and my war file is definitely in my ~/.m2 repository. However, when I build my ear, I get this: Missing: -- 1) my.xxx.company:SideWinderWeb:jar:3.1-snapshot But, it's not a 'jar'; it's a 'war' file. However, my pom clearly lists it as a webModule: webModule groupIdmy.xxx.company/groupId artifactIdSideWinderWeb/artifactId classifiernone/classifier contextRootSideWinderWeb/contextRoot /webModule and a dependency: dependency groupIdmy.xxx.company/groupId artifactIdSideWinderWeb/artifactId version${project.version}/version /dependency The pom for 'SideWinderWeb' has packaging as a 'war' file.Ideas? --Kurt -- View this message in context: http://www.nabble.com/Newbie---EAR-plugin-can%27t-find-my-war-file.-tp23510712p23510712.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Ftping a single file file
In my build I use the maven-assembly-plugin to create tar.gz and I would like to ftp this tar.gz file to our ftp server. I can't seem to find a way of doing this other than resorting to using the maven-antrun-plugin and call the ant ftp task. Any suggestions? -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: Ftping a single file file
On Sat, Aug 16, 2008 at 1:06 PM, Brett Porter [EMAIL PROTECTED] wrote: That's a reasonable option. If the FTP server is a Maven repository you could use distributionManagement and use the regular maven deployment. The only other alternative I've seen is a couple of different wagon plugins floating around that utilise the existing Maven deployment for arbitrary file transfer. - Brett Thanks Brett.I've gone with the maven-antrun-plugin and for the lonely soul out there wishing to do the same , my working configuration is : plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasepre-integration-test/phase configuration tasks ftp server=server remotedir=/whatever/it/is userid=your_user_name password=your_password action=put verbose=true fileset dir=target includes=**/*.tar.gz / /ftp /tasks /configuration goals goalrun/goal /goals /execution /executions dependencies dependency groupIdant/groupId artifactIdant-commons-net/artifactId version1.6.5/version /dependency dependency groupIdcommons-net/groupId artifactIdcommons-net/artifactId version1.4.1/version /dependency !--Didnt need the following 2 dependencies but they may be needed for other tasks such as listing files on the ftp server,etc Jeff-- !--dependency groupIdant/groupId artifactIdoptional/artifactId version1.5.4/version /dependency dependency groupIdoro/groupId artifactIdoro/artifactId version2.0.8/version /dependency -- /dependencies /plugin -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype : ejbengine Registered Linux user number 366042
Re: excluding some .properties files
On Thu, Jul 31, 2008 at 10:15 AM, Jeff Mutonho [EMAIL PROTECTED] wrote: On Thu, Jul 31, 2008 at 10:04 AM, Stephen Connolly [EMAIL PROTECTED] wrote: Have you tried using maven's default project layout? Nope , but I've finally got it working.It seems just listing the files (as shown below)I wish to excludes in successive exclude tags DOESN'T work : webResources resource directorysrc/directory excludes exclude**/*.java/exclude excludelog4j.properties/exclude excludemanager.properties/exclude /excludes includes includemessages_en.properties/include /includes /resource /webResources BUT , a single exclude with all the file names separated by commas and using the pattern matching string works.This is what I have and it works as I wish it to.After re-reading the docs , it makes sense , but perhaps the docs can be improved to explain this. warSourceExcludes**/*.java,**/log4j.properties,**/manager.properties/warSourceExcludes It looks like I had a moment of premature ululation!!!After deploying my war file and starting the application I was greeted by an error message saying my messages_en.properties could not be found.Upon checking the war I realized it the war plugin didn't include it in the war. So maven gurus , what am I missing here? -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype : ejbengine Registered Linux user number 366042
Re: mvn scm:checkout fails
On Wed, Aug 6, 2008 at 12:08 AM, Jeff Mutonho [EMAIL PROTECTED] wrote: I'm trying to checkout some project using the from Subversion by issuing this Maven command: mvn scm:checkout -DconnectionUrl=scm:svn: https://svn.sentium.co.za/svn/portal/trunk/myportal-DcheckoutDirectory=myportal This fails with an error message that says : [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'scm'. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-scm-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Tue Aug 05 23:58:50 CAT 2008 [INFO] Final Memory: 1M/4M [INFO] I'm still battling with this.Any idea what could cause the maven-scm-plugin to be not found?
mvn scm:checkout fails
I'm trying to checkout some project using the from Subversion by issuing this Maven command: mvn scm:checkout -DconnectionUrl=scm:svn: https://svn.sentium.co.za/svn/portal/trunk/myportal-DcheckoutDirectory=myportal This fails with an error message that says : [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'scm'. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-scm-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Tue Aug 05 23:58:50 CAT 2008 [INFO] Final Memory: 1M/4M [INFO] -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype : ejbengine Registered Linux user number 366042
Re: excluding some .properties files
I've also tried this : webResources resource directorysrc/directory excludes exclude**/*.java/exclude excludelog4j.properties/exclude excludemanager.properties/exclude /excludes includes includemessages_en.properties/include /includes /resource /webResources but still without any success. -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype : ejbengine Registered Linux user number 366042
Re: excluding some .properties files
On Thu, Jul 31, 2008 at 10:04 AM, Stephen Connolly [EMAIL PROTECTED] wrote: Have you tried using maven's default project layout? Nope , but I've finally got it working.It seems just listing the files (as shown below)I wish to excludes in successive exclude tags DOESN'T work : webResources resource directorysrc/directory excludes exclude**/*.java/exclude excludelog4j.properties/exclude excludemanager.properties/exclude /excludes includes includemessages_en.properties/include /includes /resource /webResources BUT , a single exclude with all the file names separated by commas and using the pattern matching string works.This is what I have and it works as I wish it to.After re-reading the docs , it makes sense , but perhaps the docs can be improved to explain this. warSourceExcludes**/*.java,**/log4j.properties,**/manager.properties/warSourceExcludes Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype : ejbengine Registered Linux user number 366042
excluding some .properties files
I'm building a war and the web project has the following structure: |-- pom.xml |-- src | |-- com | | `--mycompany | |`--securedpage | | `-- somejavafile.java | | `-- anotherjavafile.java | | | |`--log4j.properties | |`--messages_en.properties |`--manager.properties | `-- WebContent |-- WEB-INF | `-- web.xml `-- jsp `-- defError.jsp I wish to exclude the two properties files log4j.properties and manager.properties from my final WAR file's WEB-INF/classes directory, but when I do the build ,these 2 properties files keep appearing in my WAR file WEB-INF/classes directory.My pom has the following configuration : plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration archiveClassesfalse/archiveClasses warSourceDirectoryWebContent//warSourceDirectory webXmlWebContent/WEB-INF/web.xml/webXml warNamessomanager/warName warSourceExcludes**/*.java/warSourceExcludes /configuration /plugin /plugins sourceDirectorysrc/sourceDirectory scriptSourceDirectory / resources resource directorysrc/directory excludes exclude**/*.java/exclude excludelog4j.properties/exclude excludemanager.properties/exclude /excludes includes includemessages_en.properties/include /includes /resource /resources /build Where am I going wrong? Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype : ejbengine Registered Linux user number 366042
Including extras in the ear file
My ear project looks as shown below: [BankComponentApp directory ] | | +---META-INF | | | |__application.xml | |__ibm-application-bnd.xmi | |__MANIFEST.MF | | | +---ext |__blueprint-1.2.0.jar |__commons-configuration-1.2.jar When I package my ear using the maven-ear-plugin , the ibm-application-bnd.xmi file and the ext directory are being excluded.I've added the earSourceIncludesMETA-INF/**.xmi/earSourceIncludes configuration , but that does not seem to do it.What am I doing wrong? -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: EJB 2.0 Help
On Jan 23, 2008 5:12 PM, Mark Eramo [EMAIL PROTECTED] wrote: Hello, I have migrated our build process from Ant to Maven for all of our projects except a few that generate EJB's. T Assuming you had an Ant task to generate the ejb-jar.xml file ,surely you could reuse it with the maven-antrun-plugin ? -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: Including extras in the ear file
On Jan 24, 2008 11:04 AM, Jeff Mutonho [EMAIL PROTECTED] wrote: My ear project looks as shown below: [BankComponentApp directory ] | | +---META-INF | | | |__application.xml | |__ibm-application-bnd.xmi | |__MANIFEST.MF | | | +---ext |__blueprint-1.2.0.jar |__commons-configuration-1.2.jar When I package my ear using the maven-ear-plugin , the ibm-application-bnd.xmi file and the ext directory are being excluded.I've added the earSourceIncludesMETA-INF/**.xmi/earSourceIncludes configuration , but that does not seem to do it.What am I doing wrong? It seems one also needs to add the earSourceDirectory After trying that , the following eventually gave the desired result. earSourceDirectory${basedir}/earSourceDirectory earSourceIncludesMETA-INF/*/earSourceIncludes Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
War file with no java code
The web module for our project does not have have any java src , only a couple of wsdls ,some ibm binding xml files and the web.xml file. When I build the war using the maven-war-plugin , I noticed a classes directory is created under the war's WEB-INF folder. Since there no java code , this classes folder is empty (which makes sense). Is there a way I can configure the maven-war-plugin to not bother with creating this empty classes folder? -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: War file with no java code
Not really .The idea was just to match the war that RAD 6 creates so that I avoid the it's because of the 'classes' folder that maven created issue On Jan 23, 2008 2:49 PM, Stephane Nicoll [EMAIL PROTECTED] wrote: Nope. Is it a problem? On Jan 23, 2008 1:13 PM, Jeff Mutonho [EMAIL PROTECTED] wrote: The web module for our project does not have have any java src , only a couple of wsdls ,some ibm binding xml files and the web.xml file. When I build the war using the maven-war-plugin , I noticed a classes directory is created under the war's WEB-INF folder. Since there no java code , this classes folder is empty (which makes sense). Is there a way I can configure the maven-war-plugin to not bother with creating this empty classes folder? -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 -- Large Systems Suck: This rule is 100% transitive. If you build one, you suck -- S.Yegge - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: IBM custom project
On Jan 18, 2008 11:43 AM, Thomas Tardy [EMAIL PROTECTED] wrote: Hello, I haven't managed to get the example from Peter Pilgrim's blog working. In the example they use the ant task. The problem I faced was, that you have to initialize the runtime with lot of properties and I wasn't feeling like finding all the required properties. Therefore I'm unsing the bat-file or shellscript included in each websphere installation. It's setting up all the requiered properties. And in the poms of my ejb projects it's looking like this. plugins plugin artifactIdmaven-antrun-plugin/artifactId executions execution phaseverify/phase configuration tasks property name=mvn.classpath refid= maven.runtime.classpath / exec executable=${custom.was.home}/bin/ejbdeploy.bat failonerror=true os=Windows XP arg value=${project.build.directory }/${project.artifactId}-${project.version}.jar / arg value=${project.build.directory}/ejbdeply-working / arg value=${project.build.directory }/${project.artifactId}-${project.version}-OUTPUT.jar / arg value=-cp / arg value=${mvn.classpath} / /exec exec executable=${custom.was.home}/bin/ejbdeploy.sh failonerror=true os=Linux arg value=${project.build.directory }/${project.artifactId}-${project.version}.jar / arg value=${project.build.directory}/ejbdeply-working / arg value=${project.build.directory }/${project.artifactId}-${project.version}-OUTPUT.jar / arg value=-cp / arg value=${mvn.classpath} / /exec move file=${project.build.directory}/${ project.artifactId}-${project.version}.jar tofile=${ project.build.directory}/${project.artifactId}-${project.version}- INPUT.jar / move file=${project.build.directory}/${ project.artifactId}-${project.version}-OUTPUT.jar tofile=${ project.build.directory}/${project.artifactId}-${project.version}.jar / /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin /plugins It's working fine. The only condition you have is that you have access to a Websphere installation on the machine you are building the ejb. The ${custom.was.home} property is the path to the root directory of your Websphere installation. Hope this helps! Kind Regards, Thomas Thanks Thomas .Whats your custom.was.home variable pointing to? On the Windows platform , the plugin seems to battle with directory names that have spaces in them.On my work machine , I'm using the RAD 6 and my executable is pointing to C:\Program Files\IBM\Rational\SDP\6.0\runtimes\base_v6\bin\wsdeploy.bat which the plugin doesn't seem to like very much , complaining that : [INFO] [exec:exec {execution: BankComponentEJB}] [DEBUG] executable C:\Program Files\IBM\Rational\SDP\6.0\runtimes\base_v6\bin\wsdeploy.bat not found in place, assuming it is in the PATH. [INFO] 'C:\Program' is not recognized as an internal or external command, [INFO] operable program or batch file. -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: IBM custom project
On Jan 18, 2008 12:25 PM, Thomas Tardy [EMAIL PROTECTED] wrote: Hello I'm not using a standalone WAS, I'm using the installation from the RSA7 installation. And the property is looking like yours, just applied to the RSA7 installation structure. I'm not facing any problems with the Windows 'Program Files' directory. I have defined the property in my settings.xml looking like this: settings xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd; localRepositoryC:\repos\maven/localRepository profiles profile iddefault/id activation activeByDefaulttrue/activeByDefault /activation properties custom.was.homeC:\Program Files\IBM\SDP70\runtimes\base_v61/custom.was.home /properties /profile /profiles /settings Hope this helps! Kind Regards, Thomas On Jan 18, 2008 11:15 AM, Jeff Mutonho [EMAIL PROTECTED] wrote: On Jan 18, 2008 11:43 AM, Thomas Tardy [EMAIL PROTECTED] wrote: Hello, I haven't managed to get the example from Peter Pilgrim's blog working. In the example they use the ant task. The problem I faced was, that you have to initialize the runtime with lot of properties and I wasn't feeling like finding all the required properties. Therefore I'm unsing the bat-file or shellscript included in each websphere installation. It's setting up all the requiered properties. And in the poms of my ejb projects it's looking like this. plugins plugin artifactIdmaven-antrun-plugin/artifactId executions execution phaseverify/phase configuration tasks property name=mvn.classpath refid= maven.runtime.classpath / exec executable=${custom.was.home}/bin/ejbdeploy.bat failonerror=true os=Windows XP arg value=${ project.build.directory }/${project.artifactId}-${project.version}.jar / arg value=${project.build.directory}/ejbdeply-working / arg value=${ project.build.directory }/${project.artifactId}-${project.version}-OUTPUT.jar / arg value=-cp / arg value=${mvn.classpath} / /exec exec executable=${custom.was.home}/bin/ejbdeploy.sh failonerror=true os=Linux arg value=${ project.build.directory }/${project.artifactId}-${project.version}.jar / arg value=${project.build.directory}/ejbdeply-working / arg value=${ project.build.directory }/${project.artifactId}-${project.version}-OUTPUT.jar / arg value=-cp / arg value=${mvn.classpath} / /exec move file=${project.build.directory }/${ project.artifactId}-${project.version}.jar tofile=${ project.build.directory}/${project.artifactId}-${project.version}- INPUT.jar / move file=${project.build.directory }/${ project.artifactId}-${project.version}-OUTPUT.jar tofile=${ project.build.directory}/${project.artifactId}-${project.version}.jar / /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin /plugins It's working fine. The only condition you have is that you have access to a Websphere installation on the machine you are building the ejb. The ${custom.was.home} property is the path to the root directory of your Websphere installation. Hope this helps! Kind Regards, Thomas Thanks Thomas.It worked finally. I , however noticed that the final ejb jar has EJSxyz.class files , but not the _EJBSxyv.class files.It seems like they're not being generated , where's creating the jar using RAD does generate the those _EJBxyz class files. Arent these _EJSxyz.class files needed? Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: IBM custom project
On Jan 17, 2008 9:51 AM, Jeff Mutonho [EMAIL PROTECTED] wrote: I've commented everything else in the maven-antrun-plugin and only left with : plugin artifactIdmaven-antrun-plugin/artifactId executions execution phaseverify/phase configuration tasks property name=was6.home value=C:/Program Files/IBM/Rational/SDP/6.0/runtimes/base_v6 / echo message=was6.home: ${was6.home}/ tasks /configuration /execution /executions /plugin which prints : [INFO] Executing tasks [echo] was6.home: null How can that property be null , when I've just set its value to C:/Program Files/IBM/Rational/SDP/6.0/runtimes/base_v6 ? -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: Sending email notification to Owners
On Jan 17, 2008 8:57 AM, amit kumar [EMAIL PROTECTED] wrote: Hi, I am using Maven 2, I want to send email notifications to the respective owners of the sub modules, if possible with error trace. How do I do that? Could someone help on that? Regards, Amit I'm not sure if this is possible with Maven on its own , but I'm using Maven with Hudson , and Hudson sends an e-mail to the last person to commit , whenever there's a broken build(i think the assumption is the last person to commit would've broken the build) -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: IBM custom project
Hi Steve I decided to take this off the list as it may be very trivial.Thanks for responding to my post. On Jan 17, 2008 2:47 PM, Stephen Coy [EMAIL PROTECTED] wrote: Hi, Note: 1. ${was-home} is a property set in the user's settings.xml to suit May I see how you set this in your settings.xml ? My settings.xml looks as follows : settings proxies proxy activetrue/active protocolhttp/protocol hostcache.sanlam.co.za/host port8080/port usernamee927273/username password[EMAIL PROTECTED]/password /proxy /proxies /settings and I'm not sure under what tag would I set my was6.home property. You're not alone in WAS land! If it wasn't for having to earn money , I would just not touch anything tainted by the WAS logo!I dodged WAS for almost 2 years only yo join a company that had an ejb 2.1 app running on WAS. Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: IBM custom project
On Jan 17, 2008 4:20 PM, Stephen Coy [EMAIL PROTECTED] wrote: On Jan 17, 2008 2:47 PM, Stephen Coy [EMAIL PROTECTED] wrote: !-- This is from my Mac at home, whereas I have to use Windows at work -- profile iddefault/id activation activeByDefaulttrue/activeByDefault /activation properties was-home/Users/steve/servers/IBM/Websphere/AppServer/was- home /properties /profile /profiles /settings Thanks.On the Windows platform , the plugin seems to battle with directory names that have spaces in them.On my work machine , I'm using the RAD 6 and my executable is pointing to C:\Program Files\IBM\Rational\SDP\6.0\runtimes\base_v6\bin\wsdeploy.bat which the plugin doesn't seem to like very much , complaining that : [INFO] [exec:exec {execution: BankComponentEJB}] [DEBUG] executable C:\Program Files\IBM\Rational\SDP\6.0\runtimes\base_v6\bin\wsdeploy.bat not found in place, assuming it is in the PATH. [INFO] 'C:\Program' is not recognized as an internal or external command, [INFO] operable program or batch file.
Now what's up with exec-maven-plugin?
Why am I getting : [INFO] The plugin 'org.codehaus.mojo:exec-maven-plugin' does not exist or no val id version could be found Is this no longer available? Has it moved ? I've also noticed the plugin website http://mojo.codehaus.org/exec-maven-plugin/ has mostly broken links( eg Introduction ,Usage) -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: Re: Sending email notification to Owners
On Jan 17, 2008 5:16 PM, Martin Alejandro Villalobos [EMAIL PROTECTED] wrote: Jeff, Continuum 1.1 have a new option in the notifiers section named Send a mail to latest committers I hope that it be helpful. Regards. \Martin. Thanks Martin , but I think the target member of the audience here is Amit :) -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: IBM custom project
I've added the following to my tasks property name=compile_classpath refid=maven.compile.classpath/ echo message=compile classpath: ${compile_classpath}/ and running this yields : [INFO] [antrun:run {execution: default}] [INFO] Executing tasks [echo] compile classpath: null Could this be the source of the problem? Why isnt my maven.compile.classpathresolving to null ? On Jan 16, 2008 2:48 PM, Jeff Mutonho [EMAIL PROTECTED] wrote: Hi I have a custom IBM project with ejbs ( for the 2.1 spec).I've followed steps outlined at Peter Pilgrim's blog (http://www.jroller.com/peter_pilgrim/entry/battling_with_maven_2_integrating ) and everything seems in order. However when the maven-antrun-plugin is failing with an error message I'm failing to understand how it's coming about.The error message says: [INFO] Error executing ant tasks Embedded error: C:\devenv\automation\BankComponent\BankComponentEJB\null\lib not found. [INFO] Have you guys successfully built and deployed an IBM Websphere 6 J2EE project with EJBs ( 2.1) ? -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
IBM custom project
Hi I have a custom IBM project with ejbs ( for the 2.1 spec).I've followed steps outlined at Peter Pilgrim's blog (http://www.jroller.com/peter_pilgrim/entry/battling_with_maven_2_integrating ) and everything seems in order. However when the maven-antrun-plugin is failing with an error message I'm failing to understand how it's coming about.The error message says: [INFO] Error executing ant tasks Embedded error: C:\devenv\automation\BankComponent\BankComponentEJB\null\lib not found. [INFO] Have you guys successfully built and deployed an IBM Websphere 6 J2EE project with EJBs (2.1) ? -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: IBM custom project
On Jan 16, 2008 3:19 PM, Jörg Schaible [EMAIL PROTECTED] wrote: Jeff Mutonho wrote: Hi I have a custom IBM project with ejbs ( for the 2.1 spec).I've followed steps outlined at Peter Pilgrim's blog (http://www.jroller.com/peter_pilgrim/entry/battling_with_mave n_2_integrating ) and everything seems in order. However when the maven-antrun-plugin is failing with an error message I'm failing to understand how it's coming about.The error message says: [INFO] Error executing ant tasks Embedded error: C:\devenv\automation\BankComponent\BankComponentEJB\null\lib not found. [INFO] -- -- Have you guys successfully built and deployed an IBM Websphere 6 J2EE project with EJBs (2.1) ? For whatever reason, Maven 2 does not run on an IBM JDK. - Jörg - I'm not using the IBM JDK -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: IBM custom project
On Jan 16, 2008 2:48 PM, Jeff Mutonho [EMAIL PROTECTED] wrote: Hi I have a custom IBM project with ejbs ( for the 2.1 spec).I've followed steps outlined at Peter Pilgrim's blog (http://www.jroller.com/peter_pilgrim/entry/battling_with_maven_2_integrating ) and everything seems in order. However when the maven-antrun-plugin is failing with an error message I'm failing to understand how it's coming about.The error message says: [INFO] Error executing ant tasks Embedded error: C:\devenv\automation\BankComponent\BankComponentEJB\null\lib not found. [INFO] Have you guys successfully built and deployed an IBM Websphere 6 J2EE project with EJBs ( 2.1) ? Hey guys , I'm not nagging.I'm just desperate to get this going. Those who have successfully deployed to Websphere 6 , how did you do it?
Re: Generating ejb skeleton code from wsdls
On Nov 21, 2007 2:47 PM, Olivier Dehon [EMAIL PROTECTED] wrote: On Wed, 2007-11-21 at 10:31 +0200, Jeff Mutonho wrote: One of the steps I would like to automate is the generation of skeleton ejb code(for Websphere 6) from wsdls. Currently this is being done by creating a batch file with the following content WSDL2Java -v -r develop-server -c ejb –I yes -o outputFolderPath -f mappingFilePath wsdlFilePath This batch file is then run from the Install_Dir\runtimes\base_v6\bin You can use the exec plugin. IBM also provides an ant job for this, which you can invoke with the antrun plugin. -Olivier Thanks.I've tried the IBM ant task , but I can't seem find a way of specify the mapping file.This is what sort of works : taskdef name=wsdl2java classname=com.ibm.websphere.ant.tasks.WSDL2Java classpath refid=lib.path/ /taskdef target name=w2j wsdl2java url=C:/devenv/automation/WSDL2JAVA/User.wsdl output=tmp role=develop-server container=EJB introspect=yes verbose=false /wsdl2java /target The problem is that this adds an extra _1 in the package name.The way to ensure this does not happen is by specifying a mapping file , but I can't seem to find a way of doing it in the target definition.I've tried adding inputMappingFile , but I get content not allowed in prolog error.Perhaps the exec plugin is a better option. -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Generating ejb skeleton code from wsdls
One of the steps I would like to automate is the generation of skeleton ejb code(for Websphere 6) from wsdls. Currently this is being done by creating a batch file with the following content WSDL2Java -v -r develop-server -c ejb –I yes -o outputFolderPath -f mappingFilePath wsdlFilePath This batch file is then run from the Install_Dir\runtimes\base_v6\bin Has anyone successfully done this? Googling has only pointed me to this : https://svn.codehaus.org/mojo/tags/mojo-sandbox-3/mojo-was/was5-maven-plugin/ -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: Build failure out of the blue
On 7/19/07, Wayne Fay [EMAIL PROTECTED] wrote: You should be able to put the java6 exec in front of java4 in your PATH pretty trivially. Just put that EXPORT command in .bashrc or equivalent for your user and never worry about it again. Wayne That exactly what I did in my .profile file and doesn't seem to work.When I login , and run which java , the 1.4 one is displayed.Iliterally have to force it to use the 1.6 one buying doing a . .profile -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: Build failure out of the blue
On 7/19/07, Jeff Mutonho [EMAIL PROTECTED] wrote: On 7/19/07, Wayne Fay [EMAIL PROTECTED] wrote: You should be able to put the java6 exec in front of java4 in your PATH pretty trivially. Just put that EXPORT command in .bashrc or equivalent for your user and never worry about it again. Wayne That exactly what I did in my .profile file and doesn't seem to work.When I login , and run which java , the 1.4 one is displayed.Iliterally have to force it to use the 1.6 one buying doing a . .profile Here's what my .profile file looks like : SHELL=/usr/bin/bash;export SHELL JAVA_HOME=/app/maven/java/java6/jdk1.6.0_01;export JAVA_HOME HUDSON_HOME=/app/maven/HUDSON-BUILDS;export HUDSON_HOME MAVEN_HOME=/app/maven/M2/maven-2.0.4;export MAVEN_HOME MAVEN_OPTS=-Xmx1024m -Xms1024m -XX:MaxPermSize=512m;export MAVEN_OPTS PATH=$JAVA_HOME/bin:$PATH:/usr/local/bin:$MAVEN_HOME/bin;export PATH However when I when I do which java and echo $JAVA_HOME i get the following: bash-2.05$ which java /usr/bin/java bash-2.05$ echo $JAVA_HOME /app/maven/java/java6/jdk1.6.0_01 bash-2.05$ I literally have to force the usage of the 1.6 version by doing a . .profile as shown below : bash-2.05$ . .profile bash-2.05$ which java /app/maven/java/java6/jdk1.6.0_01/bin/java bash-2.05$ Without doing that , it uses the 1.4 version. -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: Build failure out of the blue
On 7/18/07, Henry Isidro [EMAIL PROTECTED] wrote: Try changing your java alternative setting: sudo update-alternatives --config java HTH, Henry Hmmmit's running on a Solaris machine - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Build failure out of the blue
My maven builds have been working without issue and now all of a sudden they've started failing with the message : started $ java -cp /app/maven/apache-tomcat-6.0.10/webapps/hudson/WEB-INF/lib/maven-agent-1.113.jar:/app/maven/M2/maven-2.0.4/core/boot/classworlds-1.1.jar hudson.maven.agent.Main /app/maven/M2/maven-2.0.4 /app/maven/apache-tomcat-6.0.10/webapps/hudson/WEB-INF/lib/remoting-1.113.jar /app/maven/apache-tomcat-6.0.10/webapps/hudson/WEB-INF/lib/maven-interceptor-1.113.jar Native maven support requires Java 1.5 or later, but this Maven is using /usr/j2se/jre FATAL: unexpected stream termination java.io.EOFException: unexpected stream termination at hudson.remoting.Channel.init(Channel.java:142) at hudson.Launcher$LocalLauncher$1.init(Launcher.java:183) at hudson.Launcher$LocalLauncher.launchChannel(Launcher.java:182) at hudson.maven.MavenBuild$RunnerImpl.newProcess(MavenBuild.java:296) at hudson.maven.ProcessCache.get(ProcessCache.java:166) at hudson.maven.MavenBuild$RunnerImpl.doRun(MavenBuild.java:265) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:127) at hudson.model.Run.run(Run.java:559) at hudson.maven.MavenBuild.run(MavenBuild.java:128) at hudson.model.Executor.run(Executor.java:59) Doing an echo on $JAVA_HOME shows it is set correctly to /app/maven/java/java6/jdk1.6.0_01 What could be causing this? -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Build failure out of the blue
On 7/17/07, Maria Odea Ching [EMAIL PROTECTED] wrote: Hi, Try executing 'which java' from the command line and trace from this which java (the one displayed may be an alternate only) is being executed to verify if the java you're using is really 1.6. It might not exactly be a Maven problem :-) You're absolutely right.The output is : bash-2.05$ which java /usr/bin/java bash-2.05$ java -version java version 1.4.2_05 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04) Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode) bash-2.05$ The system wide java executable is pointing to that 1.4 runtime as there are other applications that are using 1.4.How can I override and force maven to use the 1.6 one? -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hudson
Just out of interest , how many maveners are using maven with Hudson.Irecently made the transition from Continuum to try out Hudson and I'm very impressed. -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Has the maven-dependency-plugin been moved or what?
My build is failing with the following: ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-dependency-plugin' does not exist or no valid version could be found -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: Has the maven-dependency-plugin been moved or what?
I cleaned out the repository and everything is back to normal.Thanks -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: Excluding packages from being compiled
On 6/25/07, Tim Kettler [EMAIL PROTECTED] wrote: Hi, you can configure the compiler plugin [1] to in-/exclude files during compilation. -Tim [1] http://maven.apache.org/plugins/maven-compiler-plugin/ I tried the following : plugin artifactIdmaven-compiler-plugin/artifactId configuration excludes exclude**/examples1/*/exclude exclude**/examples2/*/exclude /excludes /configuration /plugin But that isnt working. -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Excluding packages from being compiled
I have a package structure that looks like : -- src `-- main `-- java |-- examples1 |-- examples2 |--wrappers1 `--wrappers2 During my build , I wish to exclude any java files in examples1 and examples2 from being compiled.How do configure this in my pom? -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excluding packages from being compiled
On 6/25/07, Jeff Mutonho [EMAIL PROTECTED] wrote: But that isnt working. Yeah right!As often , human error.It's sorted. -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-scm-plugin sometimes fails to checkin file
I have the plugin configured to checkin a built ear file into CVS.The configuration is shown below : execution idcheckin-ear/id phasepost-integration-test/phase configuration connectionUrlscm:cvs:pserver:jeffm:[EMAIL PROTECTED]:/var/lib/cvsroot:Eportal/depl/eportal-releases/eportal/dev3/connectionUrl includes**/*.ear/includes messageMaven ear file commit/message workingDirectorytarget/checkout/workingDirectory /configuration goals goalcheckin/goal /goals /execution However , sometimes the checkin does not go through , even though there's no error message.I can see from browsing the repository that the commit didnt happen since the version of the ear file in CVS remains the same, as well as the last commit date.The output I get is : [INFO] [scm:checkin {execution: checkin-ear}] [DEBUG] cvsRoot: :pserver:[EMAIL PROTECTED]:2401/var/lib/cvsroot [DEBUG] passFile: D:\Documents and Settings\jeffm\.cvspass [DEBUG] cvsroot :pserver:[EMAIL PROTECTED]:2401/var/lib/cvsroot already exis t in D:\Documents and Settings\jeffm\.cvspass. SKIPPED. [INFO] Executing: cvs -z3 -f -q commit -R -F C:\DOCUME~1\jeffm\LOCALS~1\Temp\s cm-commit-message49260.txt [INFO] Working directory: D:\CONTINUUM-BUILDS\continuum\working-directory\86\epo rtal-functional-tests\target\checkout [DEBUG] Executing CVS command: commit -F C:\DOCUME~1\jeffm\LOCALS~1\Temp\scm-c ommit-message49260.txt Sometimes it works.What could be causing this? -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Contributing a document fix/patch
I've picked up an error in some plugin documentation.How do I provide a patch for it? -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Contributing a document fix/patch
The plugin is the maven-dependency-plugin , but the actual correction is in the documentation.In the example usage , the plugin is referred to as : plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIddependency-maven-plugin/artifactId executions Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Adding a Maven 2 project
On 6/20/07, Emmanuel Venisse [EMAIL PROTECTED] wrote: When you add a project, supported url are only for http, https, ftp and file (if configured) protocols You can't add a project with a scm url. Emmanuel Ok, I've tried this : file:///D:/CONTINUUM-BUILDS/continuum/working-directory/86/pom.xml and I'm getting an error message saying : The specified resource isn't a file or the protocol used isn't allowed.
Re: Adding a Maven 2 project
On 6/20/07, Emmanuel Venisse [EMAIL PROTECTED] wrote: Why do you try to add a project that is already in the continuum working directory? I've just upgraded to 1.1 from 1.0.3 and would like to use the same working directory. Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Continuum's e-mail notification buggy?
I have two e-mails under my Notifiers , that are configured to receive only FAILURE e-mails , but Continuum is sending SUCCESS e-mails to those as well.Is this a bug?I'm running continuum-1.0.3 -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: maven-scm-plugin verbose
On 6/13/07, Emmanuel Venisse [EMAIL PROTECTED] wrote: you can use the mvn -X parameter. Well , I'm using Continuum to launch the maven builds Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ant task executing twice
Thanx . Would definitely like to get a patch for this. On 6/13/07, Siegfried Goeschl [EMAIL PROTECTED] wrote: Hi Jeff, this is/was a bug we encountered in 2.0.4 and my colleague just fixed over the evening by patching the Maven libs ... :-( If this is still an issue I will remind him to sent a patch next week Cheers, Siegfried Goeschl Jeff Mutonho wrote: I have an ant task that is suppose to run in the process-resources phase.The configuration is : plugin artifactIdmaven-antrun-plugin/artifactId executions execution phaseprocess-resources/phase configuration tasks copy todir=target/checkout overwrite=true fileset dir=../portal-ear/target include name=portal.ear/ /fileset /copy /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changelog fails ...
[INFO] Working directory: Q:\ anproject \src\main\java [ERROR] Provider message: [ERROR] The svn command failed. Have you tried getting the debug output? -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: copy file in maven
On 6/14/07, Eric Redmond [EMAIL PROTECTED] wrote: Yeah, ant is the easiest way. Eric Or you can try this : http://quebbemann.kicks-ass.net/development/qu-base/maven-plugins/copy-maven-plugin/index.html Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Passing a maven profile to Continuum
I'm posting this to both the maven and continuum forum. How do I specify a maven profile to continuum , using continuum's project configuration. Currently my Goals are specified as clean install site-deploy , in the continuum project configuration. -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Passing a maven profile to Continuum
I'm posting this to both the maven and continuum forum. How do I specify a maven profile to continuum , using continuum's project configuration. Currently my Goals are specified as clean install site-deploy , in the continuum project configuration. -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: Passing a maven profile to Continuum
On 6/13/07, Emmanuel Venisse [EMAIL PROTECTED] wrote: The continuum ML is [EMAIL PROTECTED] Thanks. I noticed immediately after sending :) Edit the build definition of your project Checnge the golas list by adding your profile: clean install site-deploy -Pprofile_id Where is declared your profiles? The declared profiles are in my projects top level pom.xml file Jeff Mutonho a écrit : I'm posting this to both the maven and continuum forum. How do I specify a maven profile to continuum , using continuum's project configuration. Currently my Goals are specified as clean install site-deploy , in the continuum project configuration. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ant task executing twice
I have an ant task that is suppose to run in the process-resources phase.The configuration is : plugin artifactIdmaven-antrun-plugin/artifactId executions execution phaseprocess-resources/phase configuration tasks copy todir=target/checkout overwrite=true fileset dir=../portal-ear/target include name=portal.ear/ /fileset /copy /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin -- When I run mvn install , the output shows the ant task executing twice as seen below : --- [INFO] Building Portal :: Functional Tests [INFO]task-segment: [install] [INFO] --- [INFO] [antrun:run {execution: default}] [INFO] Executing tasks [copy] Copying 1 file to D:\CONTINUUM-BUILDS\continuum\working-directory\8 \portal-functional-tests\target\checkout [INFO] Executed tasks [INFO] [antrun:run {execution: default}] [INFO] Executing tasks [copy] Copying 1 file to D:\CONTINUUM-BUILDS\continuum\working-directory\8 \portal-functional-tests\target\checkout [INFO] Executed tasks [INFO] [site:attach-descriptor] [INFO] [install:install] [INFO] Installing D:\CONTINUUM-BUILDS\continuum\working-directory\86\portal-fu ctional-tests\pom.xml to D:\Documents and Settings\mutonhj\.m2\repository\za\co\ pragmaticus\portal\portal-functional-tests\1.0.0\portal-functional-tests-1.0.0.pom [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 3 seconds [INFO] Finished at: Wed Jun 13 11:15:15 CAT 2007 [INFO] Final Memory: 5M/508M Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-scm-plugin verbose
Is there some undocumented feature/way to make maven-scm-plugin more verbose during checkout and checkin? -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xdoclet-maven-plugin generating incorrect hbm.xml file
I'm using the xdoclet-maven-plugin to generate my hibernate mapping files and I configured the plugin as follows : plugin groupIdorg.codehaus.mojo/groupId artifactIdxdoclet-maven-plugin/artifactId executions execution idhbm-generation-with-xdoclet/id phasegenerate-sources/phase configuration tasks hibernatedoclet destdir=src force=false excludedtags=@version,@author,@todo fileset dir=src include name=**/portal/**/*.java / include name=**/reference/**/*.java / include name=**/b2bassurance/**/*.java / /fileset hibernate version=2.0/ /hibernatedoclet /tasks generatedSourcesDirectorytarget/classes/generatedSourcesDirectory /configuration goals goalxdoclet/goal /goals /execution /executions /plugin However the generated hbm.xml are incorrect and they do not match what I get when I used Ant to generate the same hbm.xml files.Eg for one of my classes Person .java Maven generate this : === hibernate-mapping class name=za.co.telkom.portal.Person lazy=true and Ant generates this : hibernate-mapping class name=za.co.telkom.portal.Person dynamic-update=false dynamic-insert=false The Ant one works at deployment time.The Ant task used is : target name=eportal-domain-xdoclet taskdef name=hibernatedoclet classname=xdoclet.modules.hibernate.HibernateDocletTask classpath refid=portallib.classpath / /taskdef hibernatedoclet verbose=false destdir=${ant.common.eportal.domain.dir}/src force=false excludedtags=@version,@author,@todo fileset dir=${ant.common.eportal.domain.dir}/src include name=**/portal/**/*.java / include name=**/reference/**/*.java / include name=**/b2bassurance/**/*.java / /fileset hibernate version=2.0 / /hibernatedoclet echo message=Regenerated Hibernate mapping files in ${basedir}\bin level=info / /target I'm using the same xdoclet-1.2.1.jar ,xdoclet-hibernate-module-1.2.1.jar and xdoclet-xdoclet-module-1.2.1.jar both in Ant and I've noticed that Maven is using xdoclet-hibernate-module-1.2.3.jar , which I suspect to be the src of the inconsistency.How do I prevent Maven from using this xdoclet-hibernate-module-1.2.3.jar? Please help me , as I'm really stuck here. -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xdoclet-maven-plugin generating incorrect hbm.xml file
On 6/4/07, Stephen Coy [EMAIL PROTECTED] wrote: Jeff, Are you really still using Hibernate 2.0? 100%.I've searched my repository and the only hibernate jar present is hibernate-2.0.0.jar Cheers, Steve Coy On 04/06/2007, at 8:18 PM, Jeff Mutonho wrote: I'm using the xdoclet-maven-plugin to generate my hibernate mapping files and I configured the plugin as follows : plugin groupIdorg.codehaus.mojo/groupId artifactIdxdoclet-maven-plugin/artifactId executions execution idhbm-generation-with-xdoclet/id phasegenerate-sources/phase configuration tasks hibernatedoclet destdir=src force=false excludedtags=@version,@author,@todo fileset dir=src include name=**/portal/**/*.java / include name=**/reference/**/*.java / include name=**/b2bassurance/**/*.java / /fileset hibernate version=2.0/ /hibernatedoclet /tasks generatedSourcesDirectorytarget/classes/ generatedSourcesDirectory /configuration goals goalxdoclet/goal /goals /execution /executions /plugin However the generated hbm.xml are incorrect and they do not match what I get when I used Ant to generate the same hbm.xml files.Eg for one of my classes Person .java Maven generate this : === hibernate-mapping class name=za.co.telkom.portal.Person lazy=true and Ant generates this : hibernate-mapping class name=za.co.telkom.portal.Person dynamic-update=false dynamic-insert=false The Ant one works at deployment time.The Ant task used is : target name=eportal-domain-xdoclet taskdef name=hibernatedoclet classname=xdoclet.modules.hibernate.HibernateDocletTask classpath refid=portallib.classpath / /taskdef hibernatedoclet verbose=false destdir=${ant.common.eportal.domain.dir}/src force=false excludedtags=@version,@author,@todo fileset dir=${ant.common.eportal.domain.dir}/src include name=**/portal/**/*.java / include name=**/reference/**/*.java / include name=**/b2bassurance/**/*.java / /fileset hibernate version=2.0 / /hibernatedoclet echo message=Regenerated Hibernate mapping files in ${basedir}\bin level=info / /target I'm using the same xdoclet-1.2.1.jar ,xdoclet-hibernate-module-1.2.1.jar and xdoclet-xdoclet-module-1.2.1.jar both in Ant and I've noticed that Maven is using xdoclet-hibernate-module-1.2.3.jar , which I suspect to be the src of the inconsistency.How do I prevent Maven from using this xdoclet-hibernate-module-1.2.3.jar? Please help me , as I'm really stuck here. -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa 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] -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error with maven-antrun-plugin :Can't create a hibernate element under hibernatedoclet.
I'm now trying to run Xdoclet using using using maven-antrun-plugin , I keep getting an error message saying : Embedded error: Can't create a hibernate element under hibernatedoclet. Make sure the jar file containing the corresponding subtask class is on the classpath specified in the taskdef that defined {2}. I've added all the dependencies that I think are needed.What am I missing ? Here's my configuration : === plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-sources/phase configuration tasks taskdef name=hibernatedoclet classname=xdoclet.modules.hibernate.HibernateDocletTask /taskdef hibernatedoclet verbose=false destdir=src force=false excludedtags=@version,@author,@todo fileset dir=src include name=**/portal/**/*.java / include name=**/reference/**/*.java / include name=**/b2bassurance/**/*.java / /fileset hibernate version=2.0 / /hibernatedoclet /tasks /configuration goals goalrun/goal /goals /execution /executions dependencies dependency groupIdxdoclet/groupId artifactIdxdoclet/artifactId version1.2.1/version /dependency dependency groupIdxdoclet/groupId artifactIdxdoclet-hibernate-module/artifactId version1.2.1/version /dependency dependency groupIdxdoclet/groupId artifactIdxdoclet-xdoclet-module/artifactId version1.2.1/version /dependency dependency groupIdapache/groupId artifactIdxjavadoc/artifactId version1.0.3/version /dependency dependency groupIdcommons-collections/groupId artifactIdcommons-collections/artifactId version3.2/version /dependency dependency groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId version1.0.4/version /dependency /dependencies /plugin -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xdoclet-maven-plugin generating incorrect hbm.xml file
On 6/4/07, Stephen Coy [EMAIL PROTECTED] wrote: On 04/06/2007, at 9:43 PM, Jeff Mutonho wrote: Anyway, I would not mind betting that your bean has been marked up with something like: @hibernate.class lazy=true Correct. Are you worried about the markup differences or something else? Well , when I deploy ear file , I get an exception that relates to lazy=true.The actual exception is Error creating bean with name 'mySessionFactory' defined in ServletContext resource [/WEB-INF/appcontext/databaseContext.xml]: Initialization of bean failed; nested exception is net.sf.hibernate.MappingException: invalid mapping Caused by: org.xml.sax.SAXParseException: Line 58, Column 25: XML-20137: (Error) Attribute 'lazy' used but not declared. at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:441) at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:303) at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:290) at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:196) at org.dom4j.io.SAXReader.read(SAXReader.java:465) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:283) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xdoclet-maven-plugin generating incorrect hbm.xml file
On 6/4/07, Stephen Coy [EMAIL PROTECTED] wrote: On 04/06/2007, at 10:48 PM, Jeff Mutonho wrote: If so, does the mapping file have a DOCTYPE? The lazy attribute appears in the Hibernate 2.0 DTD, so it should be OK. Yes it does.It's like this : ?xml version=1.0 encoding=UTF-8? !DOCTYPE hibernate-mapping PUBLIC -//Hibernate/Hibernate Mapping DTD 2.0//EN http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd; hibernate-mapping class name=za.co.telkom.portal.Person lazy=true The 1.2.1 version looks like this : ?xml version=1.0? !DOCTYPE hibernate-mapping PUBLIC -//Hibernate/Hibernate Mapping DTD 2.0//EN http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd; hibernate-mapping class name=za.co.telkom.portal.Person dynamic-update=false dynamic-insert=false Isn't it possible to get Maven xdoclet plugin to use work with the 1.2.1 jars at runtime instead of the 1.2.3? My attempt to alter/edit the xdoclet-maven-plugin-1.0-alpha-1.pom backfired and I ended up with a corrupt repository. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xdoclet-maven-plugin generating incorrect hbm.xml file
On 6/4/07, Stephen Coy [EMAIL PROTECTED] wrote: On 05/06/2007, at 12:08 AM, Jeff Mutonho wrote: On 6/4/07, Stephen Coy [EMAIL PROTECTED] wrote: On 04/06/2007, at 10:48 PM, Jeff Mutonho wrote: If so, does the mapping file have a DOCTYPE? The lazy attribute appears in the Hibernate 2.0 DTD, so it should be OK. Yes it does.It's like this : ?xml version=1.0 encoding=UTF-8? !DOCTYPE hibernate-mapping PUBLIC -//Hibernate/Hibernate Mapping DTD 2.0//EN http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd; hibernate-mapping class name=za.co.telkom.portal.Person lazy=true You have an XML parser error on line 58 according to your stack trace. That seems to be way after this. You've probably got some Hibernate 3.0 markup in your Person class and it has sneaked into the mapping file. Do you have a validating xml editor than you can check the mapping file with? If you can find the bad xml, you will be able to locate the associated bean markup and fix it, instead of continuing to hide it. The 1.2.1 version looks like this : ?xml version=1.0? !DOCTYPE hibernate-mapping PUBLIC -//Hibernate/Hibernate Mapping DTD 2.0//EN http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd; hibernate-mapping class name=za.co.telkom.portal.Person dynamic-update=false dynamic-insert=false Isn't it possible to get Maven xdoclet plugin to use work with the 1.2.1 jars at runtime instead of the 1.2.3? Anything's possible, but it won't be easy. Fix the markup in your java classes instead. Steve Coy Thanx Steve for your help.Its a bit tricky for me to sort out the java classes instead due to redtape in convincing the powers that be why we need to get rid of the lazy=true ...more so due the fact that a pre-existing build.xml file that uses the 1.2.1 jars does not have the same issues the maven xdoclet plugin had I still find it hard to understand how maven is denying me the flexibility of me saying I wish to use 1.2.1 jars instead of the new 1.2.3 xdoclet jars. Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xdoclet-maven-plugin generating incorrect hbm.xml file
I still find it hard to understand how maven is denying me the flexibility of me saying I wish to use 1.2.1 jars instead of the new 1.2.3 xdoclet jars. Seems the patience has finally paid off.All it took was just configuring the plugin as follows : executions execution idhbm-generation-with-xdoclet/id phasegenerate-sources/phase configuration tasks hibernatedoclet destdir=src force=true excludedtags=@version,@author,@todo fileset dir=src include name=**/portal/**/*.java / include name=**/reference/**/*.java / include name=**/b2bassurance/**/*.java / /fileset hibernate version=2.0/ /hibernatedoclet /tasks generatedSourcesDirectorytarget/classes/generatedSourcesDirectory /configuration goals goalxdoclet/goal /goals /execution /executions dependencies dependency groupIdxdoclet/groupId artifactIdxdoclet-hibernate-module/artifactId version1.2.1/version /dependency /dependencies -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Could this be an xdoclet-maven-plugin issue?
I used XML Spy to validate the generated hbm.xml files and found out that indeed one of my hbm.xml , namely Person.hbm.xml , file is failing validation in XML Spy .The offending part is unique attribute which appears twice in the following entry : many-to-one name=contactDetails class=za.co.introspect.portal.ContactDetails cascade=save-update outer-join=auto update=true insert=true unique=true column=contactdetails_id not-null=false unique=true / These hbm.xml files are being generated using the xdoclet tool.I'm using both Ant and Maven to build my application's ear files.The ear file build by Ant deploys successfully even and the Maven one fails , even though they both have the same NOT-WELL formed Person.hbm.xml. Initially I thought there's a difference in version between the dom4j jars in the ear files , but both are using the same one , dom4j-1.6.1.jar. How then is it possible that the NOT-WELL formed Person.hbm.xml passes validation in the Ant generated ear file , but fails in the Maven generated ear file?What could I be over looking here? Why is xdoclet generating the two unique fields ? The code looks like : /** * @return the contact details linked to the person * @hibernate.many-to-one class=za.co.introspect.portal.ContactDetails * cascade=save-update * column=contactdetails_id not-null=false unique=true */ public ContactDetails getContactDetails() { return contactDetails; } public void setContactDetails(ContactDetails contactDetails) { this.contactDetails = contactDetails; } Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Could this be an xdoclet-maven-plugin issue?
I'm generating some mapping files for my domain objects using the xdoclet-maven-plugin , which is configured as : plugin groupIdorg.codehaus.mojo/groupId artifactIdxdoclet-maven-plugin/artifactId executions execution idhbm-generation-with-xdoclet/id phasegenerate-sources/phase configuration tasks hibernatedoclet destdir=src force=false excludedtags=@version,@author,@todo fileset dir=src include name=**/portal/**/*.java / include name=**/reference/**/*.java / include name=**/b2bassurance/**/*.java / /fileset hibernate version=2.0/ /hibernatedoclet /tasks generatedSourcesDirectorytarget/classes/generatedSourcesDirectory /configuration goals goalxdoclet/goal /goals /execution /executions /plugin However when I deploy and run the application , I'm getting the following error message: Error creating bean with name 'mySessionFactory' defined in ServletContext resource [/WEB-INF/appcontext/databaseContext.xml]: Initialization of bean failed; nested exception is net.sf.hibernate.MappingException: org.dom4j.DocumentException: Error on line 198 of document : Line 198, Column 11: XML-20124: (Fatal Error) An attribute cannot appear more than once in the same start tag. Nested exception: Line 198, Column 11: XML-20124: (Fatal Error) An attribute cannot appear more than once in the same start tag. The file databaseContext.xml does not even have 198 lines and since the error is a MappingException , the problem could in one of the generated *.hbm.xml files. Has anyone experienced this? Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Copying a file to a remote server
Ping ping...anyone out there? :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
where is xml-apis-1.0.b2.jar coming from ?
My war file's lib directory containts the xml-apis-1.0.b2.jar and I'm not sure where its coming from as I don't have a direct dependency on it?Is there a way of finding out why/how maven is adding this to my lib directory? -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: where is xml-apis-1.0.b2.jar coming from ?
On 5/29/07, Maria Odea Ching [EMAIL PROTECTED] wrote: I think that's also a dependency of jaxen 1.1 =) - Deng MK Tan wrote: Is your war file using commons-logging 1.1? AFAIK, commons-logging will include xml-apis as indirect dependency. just exclude it will solve the problem Yes I have both jaxen and commons-logging.I need both at runtime and hence can't exclude them - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: where is xml-apis-1.0.b2.jar coming from ?
On 5/29/07, Ian Springer [EMAIL PROTECTED] wrote: What they meant is that you can exclude the xml-apis transitive dep, i.e.: dependency groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId version1.1/version exclusions exclusion groupIdxml-apis/groupId artifactIdxml-apis/artifactId /exclusion /exclusions /dependency See the docs: http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html. Thanks.With Maven its always a path of discovery :).Anyway it seems like there's some other library that depends on xml-apis , as excluding it from commons-logging and jaxen didn't resolve the issue. Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Copying a file to a remote server
As part of my build I wish to copy a properties file to a directory belonging to an OC4J container.I wish to do this just before doing a remote deployment to the OC4J container.I know about wagon-ftp but I'm not sure if it the right tool I'm looking for. -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Copying a file to a remote server
On 5/28/07, Jeff Mutonho [EMAIL PROTECTED] wrote: As part of my build I wish to copy a properties file to a directory belonging to an OC4J container.I wish to do this just before doing a remote deployment to the OC4J container.I know about wagon-ftp but I'm not sure if it the right tool I'm looking for. -- I've decided to use the maven-antrun-plugin as shown below : plugin artifactIdmaven-antrun-plugin/artifactId executions execution phaseprocess-resources/phase configuration tasks scp file=${project.parent.basedir}/portal-ear/platform.properties todir=maven:[EMAIL PROTECTED]:${oc4j.applib.dir}/ /tasks /configuration goals goalrun/goal /goals /execution /executions dependencies dependency groupIdant/groupId artifactIdant-jsch/artifactId version1.6.5/version /dependency dependency groupIdcom.jcraft/groupId artifactIdjsch/artifactId version0.1.33/version /dependency /dependencies /plugin When I do a build using Continuum , the build fails with a message : [ERROR] BUILD ERROR [INFO] [INFO] Error executing ant tasks Embedded error: Could not create task or type of type: scp. Ant could not find the task or a class this task relies upon. This is common and has a number of causes; the usual solutions are to read the manual pages then download and install needed JAR files, or fix the build file: - You have misspelt 'scp'. Fix: check your spelling. - The task needs an external JAR file to execute and this is not found at the right place in the classpath. Fix: check the documentation for dependencies. Fix: declare the task. - The task is an Ant optional task and the JAR file and/or libraries implementing the functionality were not found at the time you yourself built your installation of Ant from the Ant sources. Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the task and make sure it contains more than merely a META-INF/MANIFEST.MF. If all it contains is the manifest, then rebuild Ant with the needed libraries present in ${ant.home}/lib/optional/ , or alternatively, download a pre-built release version from apache.org - The build file was written for a later version of Ant Fix: upgrade to at least the latest release version of Ant - The task is not an Ant core or optional task and needs to be declared using taskdef. - You are attempting to use a task defined using presetdef or macrodef but have spelt wrong or not defined it at the point of use Remember that for JAR files to be visible to Ant tasks implemented in ANT_HOME/lib, the files must be in the same directory or on the classpath However , when I manually run mvn install from ${project.parent.basedir}/portal-ear , the file is copied without a problem as shown below : [INFO] [antrun:run {execution: default}] [INFO] Executing tasks [scp] Connecting to 165.148.216.14:22 [scp] Sending: platform.properties : 3217 [scp] File transfer time: 0.03 Average Rate: 103,774.19 B/s [scp] done. [INFO] Executed tasks [INFO] [antrun:run {execution: default}] [INFO] Executing tasks [scp] Connecting to 165.148.216.14:22 [scp] Sending: platform.properties : 3217 [scp] File transfer time: 0.02 Average Rate: 214,466.67 B/s [scp] done. [INFO] Executed tasks My question is why does this ant task fail when run from Continuum? -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-changes-plugin
On 5/25/07, Dennis Lundberg [EMAIL PROTECTED] wrote: Dimitris Kapanidis wrote: Codehaus has an implemented version of changes plugin. The Codehaus version is older than the Apache version and should therefor not be used. True that.Thats the reason I'm using the Apache maven-changes-plugin , but I can't get it to work , hence my post. Surely someone out there is using the newer maven-changes-plugin and could give some pointers... Thanks Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-changes-plugin
Anyone got a working example configuration of the maven-changes-plugin?My pom has the following(as per maven plugin docs) : plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId configuration xmlPath${basedir}/changes.xml/xmlPath /configuration reportSets reportSet reports reportchanges-report/report /reports /reportSet /reportSets /plugin But I keep getting the error message : [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-changes-plugin' does not exist or no valid version could be found [INFO] Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-changes-plugin
On 5/25/07, Dimitris Kapanidis [EMAIL PROTECTED] wrote: Codehaus has an implemented version of changes plugin. Try this one: reporting plugins ... plugin groupIdorg.codehaus.mojo/groupId artifactIdchanges-maven-plugin/artifactId version2.0-beta-1/version configuration link_template%URL%/show_bug.cgi?id=%ISSUE%/link_template /configuration reportSets reportSet reports reportchanges-report/report /reports /reportSet /reportSets /plugin ... /plugins /reporting The link_template is for bugzilla support. Thanks.How then does one specify the changes.xml file? Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with continuum and deployment
On 3/1/07, Todd Nine [EMAIL PROTECTED] wrote: Hi all 2. The user selects that release and pushes it to staging 3. After completion of staging the user can go back to that build version, and push it to production. What does push mean in this context? -- Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: mail notifier
On 2/28/07, Rodrigo Gonçalves [EMAIL PROTECTED] wrote: HI !! When continuum sends a notification, at the beginning at the mail appears: Online report : http://localhost:8081/target/ProjectBuild.vm/view/ProjectBuild/id/11/buildId/121 I don´t want this link referring to localhost because the continuum is running on a server ! But I can't figure it out how to change this, or at least remove this info from the notification error. Any ideas? THX Rodrigo Go to the project configuration section ...all will be revealed -- Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Using maven-changes-plugin
Anyone using the maven-changes-plugin ?May you share your configuration for this plugin , in your reporting section. Thanx -- Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using maven-changes-plugin
On 2/21/07, Jochen Wiedmann [EMAIL PROTECTED] wrote: As in http://maven.apache.org/plugins/maven-changes-plugin/usage.html I had tried that , as shown below : plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId version2.0-beta-3-SNAPSHOT/version configuration xmlPath${basedir}/changes.xml/xmlPath /configuration reportSets reportSet reports reportchanges-report/report /reports /reportSet /reportSets /plugin but I keep getting a build error saying due to this exception : Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.ma ven.plugins:maven-changes-plugin' not found in repository: Unable to download th e artifact from any repository org.apache.maven.plugins:maven-changes-plugin:pom:2.0-beta-3-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo sitory(DefaultMavenProjectBuilder.java:513) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromReposito ry(DefaultMavenProjectBuilder.java:225) at org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersio n(DefaultPluginManager.java:249) ... 22 more Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository org.apache.maven.plugins:maven-changes-plugin:pom:2.0-beta-3-SNAPSHOT http://maven.apache.org/plugins/maven-changes-plugin/ says the version is 2.0-beta-3-SNAPSHOT and yet http://maven.apache.org/plugins/index.html says the version is 2.0-beta-2 Hence my question.I would like to someone else's usage in order to confirm the correct version. -- Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NullPointerException during site-deploy
(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] [INFO] Total time: 2 seconds [INFO] Finished at: Wed Feb 21 17:27:14 CAT 2007 [INFO] Final Memory: 8M/508M [INFO] -- Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Specifying a branch name in my pom
Our code base has recently been branched to a branch ,call it BRANCH-X.My current configuration check out code from the HEAD and the SCM url is specified as : scm:cvs:pserver:jeffm:[EMAIL PROTECTED]:/var/lib/cvsroot:Eportal/dev How do I specify the new branch , BRANCH-X to be used for checking out our code ? -- Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Build Error: cvs update
What does this error message mean? Build Error: Provider message: The cvs command failed. Command output: --- cvs update: in directory .: cvs [update aborted]: there is no version here; run 'cvs checkout' first --- -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Build Error: cvs update
On 2/20/07, Jeff Mutonho [EMAIL PROTECTED] wrote: What does this error message mean? Build Error: Provider message: The cvs command failed. Command output: --- cvs update: in directory .: cvs [update aborted]: there is no version here; run 'cvs checkout' first --- The only thing that I can remember having chainged in my setup is that I added a changes.xml in the same directory as my top level pom.xml.I used Eclipse checkin the changes.xml file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need to bounce OC4J during re-deployment
On 2/12/07, Erik Drolshammer [EMAIL PROTECTED] wrote: Chris Russell wrote: In order to redeploy my application I need to: 1. Undeploy app 2. Bounce OC4J instance 3. Deploy app Is there a way to accomplish this with Continuum? So far, my only thought is to write a Cron job to undeploy and restart oc4j, then let Continuum build, test and deploy. Have you looked at the cargo-maven plugin? It seems to have at least som support for OC4j. http://docs.codehaus.org/display/CARGO/Oc4J+9.x -- Regards Erik Drolshammer the cargo plugin does not support remote deployments to OC4J.I had to use the combination of the maven-antrun-plugin and the oc4j_remote_deploy.jar to do a remote deployment with my continuum builds. -- Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: maven-changes-plugin fails to download : java.net.ProtocolException: Server redirected too many times (20)
Ping May someone help me with this.Is this a proxy issue on my side? -- Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
maven-changes-plugin fails to download : java.net.ProtocolException: Server redirected too many times (20)
) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:501) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:225) at org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:249) ... 22 more Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException: Error transferring file org.apache.maven.plugins:maven-changes-plugin:pom:2.0-beta-2 from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:140) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:63) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:467) ... 24 more Caused by: org.apache.maven.wagon.TransferFailedException: Error transferring file at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:99) at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68) at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:369) at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:282) at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:244) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:124) ... 26 more Caused by: java.net.ProtocolException: Server redirected too many times (20) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:809) at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:85) ... 31 more [INFO] [INFO] Total time: 19 seconds [INFO] Finished at: Wed Jan 31 16:46:36 SAST 2007 [INFO] Final Memory: 20M/1020M [INFO] bash-2.05$ Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven site failing
) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] [INFO] Total time: 3 seconds [INFO] Finished at: Tue Jan 30 11:46:37 CAT 2007 [INFO] Final Memory: 8M/508M [INFO] -- Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven site failing
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-javadoc-plugin:maven-plugin:2.0 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null [INFO] [DEBUG] Trace java.lang.NullPointerException I see a null in the line : Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-javadoc-plugin:maven-plugin:2.0 from the repository. Could this be the reason for an NPE? If so , what would be causing this? I'm really desperate to get mvn site to run successfully -- Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Out of memory error
That exactly is what suits our environment and we wish to do that. Q1)If I create standards project , say acme-project-standards , where in acme-project-standards do I place the acme-checks.xml?Do I create this as a normal maven project?The documentation here http://maven.apache.org/plugins/maven-checkstyle-plugin/customize.html (Use a custom developed Checkstyle Check modules) explains customization but does not clarify where the acme-checks.xml would go? Q2)Assuming Q1 is sorted , then in my master pom.xml , I then list acme-projects-standards as a dependency? Or must acme-projects-standards be configured as an extension , eg (as documented at http://maven.apache.org/plugins/maven-checkstyle-plugin/customize.html) build extensions extension groupIdcom.mycompany/groupId artifactIdmycompany-checkstyle-checks/artifactId version1.0/version /extension /extensions /build A step by step treatment would be very helpful. Tx Am looking at the TIPS section of the document and it seems like it explains how to do this.Will shout if stuff doesn't work - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Out of memory error
On 1/23/07, Wayne Fay [EMAIL PROTECTED] wrote: The assumption is that you are using Maven in a large/corporate environment for many projects, and sharing things like Checkstyle configs etc in all of them. Some people construct a simple Maven project, in their own company groupId with an artifactId of say project-standards, and then bundle things like checkstyle configs etc, and then put that dependency in their corporate pom which is the parent for all projects in the organization. The plugins will automatically find these config files while building the project. That exactly is what suits our environment and we wish to do that. Q1)If I create standards project , say acme-project-standards , where in acme-project-standards do I place the acme-checks.xml?Do I create this as a normal maven project?The documentation here http://maven.apache.org/plugins/maven-checkstyle-plugin/customize.html (Use a custom developed Checkstyle Check modules) explains customization but does not clarify where the acme-checks.xml would go? Q2)Assuming Q1 is sorted , then in my master pom.xml , I then list acme-projects-standards as a dependency? Or must acme-projects-standards be configured as an extension , eg (as documented at http://maven.apache.org/plugins/maven-checkstyle-plugin/customize.html) build extensions extension groupIdcom.mycompany/groupId artifactIdmycompany-checkstyle-checks/artifactId version1.0/version /extension /extensions /build A step by step treatment would be very helpful. Tx Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Out of memory error
I'm experiencing a java.lang.OutOfMemoryError during my build ,when it get to generating a checkstyle report as shown below: [INFO] Working directory: /app/maven/MAVEN-WORK/continuum/working-directory/86/eportal-webservices/src [INFO] Generate Developer Activity report. [INFO] Using existing changelog.xml... [INFO] Generate File Activity report. [INFO] Using existing changelog.xml... [INFO] Generate Checkstyle report. [INFO] There are 35293 checkstyle errors. [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null [INFO] [INFO] Trace java.lang.OutOfMemoryError [INFO] [INFO] Total time: 1 minute 31 seconds [INFO] Finished at: Mon Jan 22 14:01:43 SAST 2007 [INFO] Final Memory: 31M/63M [INFO] My build machine is a Solaris box and the build is invoked by Continuum.I've edited my .profile file and added the following to it: MAVEN_OPTS=-Xmx1024m -Xms1024m -XX:MaxPermSize=512m; export MAVEN_OPTS I'm still getting the error message even with the MAVEN_OPTS environment variable set.Do I need to set it in a different file? -- Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: Out of memory error
On 1/22/07, Dário Luís Coneglian Oliveros [EMAIL PROTECTED] wrote: I've faced the same problem. It seems to be a bug in the checkstyle plugin. I've noticed it happens only if there are too many checkstyle errors. My suggestion is to decrease this number to about 1 (hopefully most of them are tab related). It should work. Do not ask me why :-) Dário I'm looking at the maven-checkstyle-plugin in my pom and it says , configLocationconfig/sun_checks.xml/configLocation I understand that sun_checks.xml is located in the config directory , in the plugin jar.If I wish to specify my own as : configLocationjeffs-checks.xml/configLocation The plugin documentation says that when one specifies a custom check-style file as above it causes the Maven 2 Checkstyle plugin to check for a File named checkstyle.xml or a resource named checkstyle.xml within the compile scope of the dependencies or build extensions classpath. From this , does that mean jeffs-checks.xml above should be located in the same directory as the pom.xml? Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
The skin does not exist
I've started getting a new error message during my project build.The error says : [ERROR] BUILD FAILURE [INFO] [INFO] The skin does not exist: Unable to determine the release version Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.skins-DartifactId=maven-default-skin \ -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file org.apache.maven.skins:maven-default-skin:jar:RELEASE What is causing this? -- Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
generating an admin jsp at build time
I would like to create a sort of administration jsp that gets bundled into my application war during build time.The administration jsp would probably look like this : HTML BODY This application was build on %= new java.util.Date() % /BODY /HTML but instead of new java.util.Date() , it would have the build-date. Any suggestion on how to achieve this? Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: generating an admin jsp at build time
On 12/1/06, David Delbecq [EMAIL PROTECTED] wrote: HTML BODY This application was build on @@SomeBuildDateProperty@@ /BODY /HTML And use the ant filtering rules to replace content between @@ (see ant docs) Thanx David.Ended up being this simple : tstamp prefix=build format property=date pattern=EEE MMM d, hh:mm:ss z locale=en / /tstamp filterset id=maven.build.filter begintoken=@ endtoken=@ filter token=BUILD_DATE value=${build.date} / /filterset copy todir=WebContent filtering=true overwrite=true fileset dir=. include name=**/mavenadmin.jsp/ /fileset filterset refid=maven.build.filter / /copy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Failed maven-scm-plugin: Check in
I'm trying to check in an ear file into CVS .When I run the command 'mvn scm:checkin' , the check in is failing with the following message : [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-scm-plugin:1.0-SNAPSHOT :checkin' -- [DEBUG] (f) basedir = D:\MAVEN-WORK\eportal-ear [DEBUG] (f) connectionType = developerConnection [DEBUG] (s) connectionUrl = scm:cvs:pserver:mutonj:[EMAIL PROTECTED]:/var/ lib/cvsroot:pragmaticusEportal/dev/eportal-ear [DEBUG] (f) developerConnectionUrl = scm:cvs:pserver:mutonj:[EMAIL PROTECTED] .14:/var/lib/cvsroot:pragmaticusEportal/dev/eportal-ear [DEBUG] (f) includes = **/*.ear [DEBUG] (f) message = Ear file test commit [DEBUG] (f) settings = [EMAIL PROTECTED] [DEBUG] -- end configuration -- [INFO] [scm:checkin] [INFO] Executing: cvs -z3 -f -d :pserver:[EMAIL PROTECTED]:/var/lib/cvsroot -q commit -R -F C:\DOCUME~1\mutonhj\LOCALS~1\Temp\scm-commit-message61509.txt [INFO] Working directory: D:\MAVEN-WORK\eportal-ear [ERROR] Provider message: [ERROR] The cvs command failed. [ERROR] Command output: [ERROR] cvs commit: in directory .: cvs [commit aborted]: there is no version here; run 'cvs checkout' first [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Command failed.The cvs command failed. [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Command failed.The cvs c ommand failed. My plugin is configured as shown below : plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.0-SNAPSHOT/version configuration connectionUrlscm:cvs:pserver:mutonj:[EMAIL PROTECTED]:/var/lib/cvsroot:pragmaticusEportal/dev/eportal-ear//connectionUrl includes**/*.ear/includes messageEar file test commit/message /configuration goals goalcheckin/goal /goals /plugin I've googled for the error and the only explanation I can find seems to be pointing to the idea that I'm trying to add the ear file to a non-existent sub-directory , which isn't the case because pragmaticusEportal/dev/eportal-ear/ is indeed existent. -- Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Failed maven-scm-plugin: Check in
On 11/27/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: You can't commit a file if you aren't in a working copy directory. Emmanuel Thanks Emmanuel.The log says [INFO] Working directory: D:\MAVEN-WORK\eportal-ear .Do you mean I should run this from the directory where the actual ear file is located (which in my case is D:\MAVEN-WORK\eportal-ear\target) ? Is that what you mean by working copy directory. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Failed maven-scm-plugin: Check in
On 11/27/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: A working copy directory is the directory where you done the checkout. For CVS, it must contains a CVS directory. Emmanuel Thanks.Seems sorted now. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]