Re: Newbie question
On Mon, Feb 13, 2006 at 06:08:45PM -0500, Alexandre Poitras wrote: Just run compile on your parent project and everything will work fine. And it will build entire project? I don't need this, I need to build just single module. -- Eugene N Dzhurinsky - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Nightly builds in Maven2
Use Continuum. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 21 September 2006 10:01 To: Maven Users List Subject: Nightly builds in Maven2 Hi , I believe cruise control supports only maven1.x , Is there anyway to create nightly builds in maven2 ? Regards Saravana - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question about changelog developer name vs develope report
From how I understood it, the developer report is created by using the team list as basis: this means developers that made commits that are not included in the team list will not have a page generated for them. And then the changelog report creates all recent changes for the project regardless if the committer is part of the team list or not. Therefore, the list of developers in the Developer report are part of the team list while the developers in the Changelog report may not actually be part of the team. Hence, the Developer report have links and the Changelog does not. I'm sure it is easy to modify the code to put developer links when the developer is a member of the team... we're open for patches. ^_^ Brian Burridge wrote: Why is it that the name of the developer on the developer report links to the team list, but the developers name on the changelog doesn't? Is that a setting? Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there a way to get a Build Date/Time and Version/Release into a Maven build ?
Seems like you have no other choice but to use the ant-run plugin just for replacing/filtering part. Please see: http://maven.apache.org/plugins/maven-antrun-plugin/introduction.html Pete wrote: When I used to use Ant I had an ant target that would copy a pre-prepared HTML file into the webApp's pages - replacing/filtering ${build.date} ${ build.version} etc, so that Users and Testers could see which version of the application they have deployed. I was about to do a similar function for Maven, but then wondered how does everyone else do this ? Are there any M2 plugins to help ? I've seen the http://mojo.codehaus.org/changes-maven-plugin/howto.html 'Maven 2 Changes Plugin', but presumably this is just published to the Application's Site, where as I want the information deployed as part of the app's web pages. Any thoughts / suggestions appreciated. We're currently not using the release plugin because of the unresolved issues. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem - Maven plugin
Please see: http://maven.apache.org/guides/mini/guide-ibiblio-upload.html ^_^ Annette Cass wrote: Gentlemen, I tried to post this on Jira (Re: Maven 2.x Release Plugin). webTest's most recent build is: Release class = 1.7, build number = R_1167 I would VERY MUCH appreciate it if you could get the most recent version to allow downloading from your site (http://maven-plugins.sourceforge.net). They responded that this is not a Maven 2.x Release Plugin issue. Can you tell me who I should contact to request this? Thanks. Annette Cass *** Annette Cass, PMP Duke Clinical Research Institute I.T. Dept. E-mail: [EMAIL PROTECTED] Phone: 919-668-8720 If you are what you eat, a visit to North Carolina could make you a very interesting person. -- N.C. Travel Dept. advertisement - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: M2.0.2 SVN ChangeLog
If you use only one server, you can define a property in a default profile in your settings.xml and use this property in your pom. http://maven.apache.org/guides/introduction/introduction-to-profiles.html Emmanuel javed mandary a écrit : The thing is that i dont want to have to type the parameters for svn authentication each time i want to run mvn site . Isnt there a way to store authentication information inside the settings.xmlfile for svn ? regards, Javed On 2/13/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: If you have an anonymous access to your svn, they don't required. If you need them, try the followings parameters to command line : -Dusername=your_username -Dpassword=your_password Emmanuel javed mandary a écrit : Hi All, regarding the changelog and developer activity reports generated , where do you specify the username and password used to access the SCM - SVN ? is that in the settings.xml ... any one has an example? Right now my reports are being generated but without being able to indentify any commits watsoever. regards, Javed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Multi-Project setup and relativePath
Hi, From how I understand on how the relativePath works, it is used for resolving the parent pom (being inside the parent tag). When you run mvn on a sub-module, mvn detects that the sub-module has a parent and mvn tries to resolve that using either the groupId:artifactId:version for the parent tag or the relativePath if it is not available in the local/remote repository yet. Although your argument is valid (please create a jira request if you want), I would not suggest that its a good approach. Consider this scenario: parentA has modules moduleA and moduleB where moduleB depends on moduleA. If I try to build moduleB, when mvn finds that moduleA has not yet been installed, then it will try to build moduleA. but what if during the build of moduleA, a problem occurred? Then it will be confusing for me to see the moduleA errors when I was trying to build moduleB. So the approach is, if you want to use an artifact, then that artifact must have been previously built and installed for use by other projects. Just my two cents, btw. ^_^ Grothaus, Christoph wrote: Hi maven-users! I've got a m2 project with several levels of sub-modules, held together by a main pom of packaging type pom. In each sub-module there is a parent entry pointing to the module above, including the relativePath tag pointing to ../ . I don't quite understand the use of the relativePath tag. If I build the whole project, everything works fine, obviously because I'm starting the reactor from the top. If I try to build only sub-module X maven complains that it can't get the poms for the other sub-modules X depends on. Okay, now I could solve that if I ran mvn install on all sub-modules X needs. But what use is the relativePath tag then? Wouldn't it be nicer if maven saw that there is a parent module and that the other sub-modules X needs are not so far away? Maybe I look at this from the wrong direction and should get used to walk up some directories to start a reactor build. But I come back to my initial question: why is there a relativePath tag if maven doesn't look at it and just looks at the (local and remote) repos? Christoph Grothaus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Multi-Project setup and relativePath
-Original Message- From: Edwin Punzalan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 10:40 AM To: Maven Users List Subject: Re: [m2] Multi-Project setup and relativePath [...] So the approach is, if you want to use an artifact, then that artifact must have been previously built and installed for use by other projects. [...] Edwin, I now think you're right on that point. But then the relativePath tag could easyly be omitted, as for being really useful, I don't need only the pom of an artifact, but the whole artifact, thus making it necessary that this artifact is installed or deployed. Regards, Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deploying from windows via putty
Actually, I've had some problems deploying from Cygwin too, although I'm not entirely sure that this isn't due to the setup on my machine, as I don't use Cygwin all that much. Rather than poke around with Cygwin setups though, I installed openssh and this seems to work fine. Although I guess the ssh and scp executable failures is a bug. Tony. Matthew Vanbiervliet wrote: I had some problems with the deployment under Windows too. Even with the ssh executable set to plink and scp to pscp, maven was still trying to find a ssh and scp executable. I switched to Cygwin and lauching the deploy from there was ok. I switched back to the windows dos prompt, added the cygwin bin dir to the path, and it now works from there too (ssh.exe and scp.exe exist in the cygwin bin dir). Installing the windows version of openssh also works for this I think. I know this isn't exactly what you want, but you could encounter this problem at the next step of the deployment...that's what I had. Matthew On 2/10/06, Jörg Schaible [EMAIL PROTECTED] wrote: Tony Burdett wrote on Thursday, February 09, 2006 6:20 PM: Hi, I'm having some problems deploying artifacts to a remote server from Windows. I have the following entry in my projects POM: distributionManagement repository idrepo-aux/id nameFluxion aux repository/name urlscp://deanmoor.ncl.ac.uk/var/www/fluxions/repo-aux/url /repository /distributionManagement I'm using PuTTY and pscp as my clients, so as far as I can tell from the guide, I should add to my settings.xml something like: servers server idrepo-aux/id usernametony/username privateKey/home/tony/.ssh/id_dsa.ppk/privateKey configuration sshExecutableputty/sshExecutable scpExecutablepscp/scpExecutable /configuration /server /servers Although as I'm using pageant, I'm not supposed to need the path to my private key either. IMHO the sshExecutable is not putty, but plink. [snip] - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Antrun-Plugin javac not working
UPDATE: Now I managed to get the javac task working by setting the fork attribute to true. After the javac task I also have a rmic task, and now that one fails. Message: Embedded error: Cannot use SUN rmic, as it is not available. A common solution is to set the environment variable JAVA_HOME or CLASSPATH. The rmic task has no fork attribute, so no analogous solution here :-( But this behaviour leads me to a new assumption: as this stuff used to run before yesterday, and as it still runs as a single module, have there recently been any changes on how maven treats environment variables in a reactor build? It seems that maven does not propagate environment to child modules, so the rmic task does not see JAVA_HOME, and thus does not find the rmic executable. How do I get around that? Regards, Christoph -Original Message- From: Grothaus, Christoph [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 11:04 AM To: users@maven.apache.org Subject: [m2] Antrun-Plugin javac not working Hi there, I have a problem here that didn't occur until yesterday. Have there been made any changes to the maven-antrun-plugin or to how maven handles classpaths? Situation: I have a multi-module J2EE project. In the EJB module I compile an EJB client, not with the maven-ejb-plugin, as it doesn't fit my needs, but with the antrun plugin. It's just the usual Ant javac task. You can see the way I call the antrun plugin below, in the INPUT section. Now what is strange: when I cd directly to the module and then call mvn clean compile, everything works fine. When I cd to the project top level directory and start a reactor build with mvn clean compile, I get an error that Ant is Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Why that??? Look at my debug echo message I've put into the ant script, the output is in the OUTPUT section. In the output you can clearly see that the last entry of the classpath is tools.jar, and yes, the location is correct. I'm desperate. Anyone any hints? Christoph --8Attachments--- # INPUT plugin !-- build EJB-Client -- artifactIdmaven-antrun-plugin/artifactId executions execution idejb-client-compile/id phasecompile/phase configuration tasks property environment=env / path id=ejb-client.classpath path refid=maven.plugin.classpath / path refid=maven.compile.classpath / !-- WORKAROUND -- fileset dir=${env.JAVA_HOME}/lib include name=tools.jar / /fileset /path property name=prop.ejb-client.classpath refid=ejb-client.classpath / echo message=[DEBUG] The classpath is: ${prop.ejb-client.classpath} / [...] mkdir dir=${ejb-client.destdir} / javac destdir=${ejb-client.destdir} classpathref=ejb-client.classpath debug=${javac.debug} deprecation=on optimize=off target=${javac.target} src path=${ejb-client.sourcedir} / /javac /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin # OUTPUT [...] [INFO] [antrun:run {execution: ejb-client-compile}] [INFO] Executing tasks [echo] [DEBUG] The classpath is:
how to use snapshot policy or how to update dependencies snapshots only
Hi all I have read about snapshot-policy in a design document at the link given below for modifying download behavior for the snapshots. http://docs.codehaus.org/display/MAVEN/Repository+-+SNAPSHOT+Handling but the given snapshot-policy tag is not working in my pom.xml file when I added it under repository definition as follows repositories repository id1/id urlour own repository url/url snapshots enabledtrue/enabled snapshot-policyalways/snapshot-policy /snapshots /repository /repositories Also as too repositories repository id1/id urlour own repository url/url snapshot-policyalways/snapshot-policy /repository /repositories But in both the cases I got unrecognized tag parse error. I have tried it with both maven2.0 and maven2.0.2. Is this feature is currently not available or I am doing something wrong. I am doing all this to update my dependency snapshot's only, not the plugins snapshots from our own remote repository and I don't want use –U option as it updates plugin's too. Thanx!!
RE: How can I store artifacts in our remote repository?
This is the solution im using: I ve a web server I use as reomote (internal) repository. Asscociated with the url referencing the remote repo there is a docroot. I use the deploy goal to copy (via scp) my artifact to the docroot. -Original Message- From: ravi kumar [mailto:[EMAIL PROTECTED] Sent: martedì 14 febbraio 2006 10.03 To: commits; dev; dev; dev; dion; ggolden; Maven Help; Maven Help; users Subject: How can I store artifacts in our remote repository? Hi, I am Ravikumar. I came to get help form you. That is : How can I store artifacts in our remote repository? Could you please give the solution for this? I am waiting for you solution . Thanks and Regards, Ravikumar.M - Yahoo! Mail Use Photomail to share photos without annoying attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bug in Continuum 1.0.3-SNAPSHOT
Emmanuel Venisse was kind enough to fix a critical bug in the current Continuum 1.0.2. and sent me a Continuum 1.0.3-SNAPSHOT where this bug is fixed. But then I tried to add a new Build definition and got the error below. Is this a known bug or should I file a Jira? Regards, Michael ognl.MethodFailedException: Method addBuildDefinition failed for object [EMAIL PROTECTED] [java.lang.NullPointerException] at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:796) at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61) at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819) at ognl.ASTMethod.getValueBody(ASTMethod.java:75) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at ognl.Ognl.getValue(Ognl.java:378) at ognl.Ognl.getValue(Ognl.java:357) at org.apache.maven.continuum.web.action.CallApplicationModel.execute(CallApplicationModel.java:72) at org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve.java:68) at org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipeline.java:70) at org.codehaus.plexus.summit.Summit.doGet(Summit.java:54) at org.codehaus.plexus.summit.Summit.doPost(Summit.java:108) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java:789) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520) /-- Encapsulated exception \ java.lang.NullPointerException at org.apache.maven.continuum.DefaultContinuum.addBuildDefinition(DefaultContinuum.java:1083) 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 ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:491) at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:785) at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61) at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819) at ognl.ASTMethod.getValueBody(ASTMethod.java:75) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at ognl.Ognl.getValue(Ognl.java:378) at ognl.Ognl.getValue(Ognl.java:357) at org.apache.maven.continuum.web.action.CallApplicationModel.execute(CallApplicationModel.java:72) at org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve.java:68) at org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipeline.java:70) at org.codehaus.plexus.summit.Summit.doGet(Summit.java:54) at org.codehaus.plexus.summit.Summit.doPost(Summit.java:108) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java:789) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960) at
Re: Newbie question
Then you have to build everything manually. But Maven is not stupid it won't recompile everything, just what has changed so I don't think there is a problem there. On 2/14/06, Eugeny N Dzhurinsky [EMAIL PROTECTED] wrote: On Mon, Feb 13, 2006 at 06:08:45PM -0500, Alexandre Poitras wrote: Just run compile on your parent project and everything will work fine. And it will build entire project? I don't need this, I need to build just single module. -- Eugene N Dzhurinsky - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: m2: install-snapshot
On 2/14/06, Brett Porter [EMAIL PROTECTED] wrote: if the version includes SNAPSHOT, it will be published as a snapshot, if the version does not, it won't. Thanks! This is what I was missing:))) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ear:ear and symbolic links in repository
Hi, I am trying to assemble an ear file with maven 1.0.2 on linux. The problem is that I have a lot of dependencies, which have to go into the ear file as libraries, which have to be downloaded from the web and manually added to the repository. I did this with symbolic links under linux, and this is causing problems for the ear:ear goal. The below mentioned oss_common_spec-1.2.jar is copied to the repository for testing purposes (it was a link previously), the oss_cbe_service_spec is a symbolic link. I couldn't find any open bug report for this behaviour. The problem is - as far as I can tell - that the test j:if test=${!(checkFile.getAbsolutePath().equals(checkFile.getCanonicalPath( )))} Doesn't work for symbolic links. Here's the output from the build: ear:ear: [echo] Building EAR oss_sa_ri_ear-1.2 with appxml /home/andreas/Documents/Development/java.net/ossj/service_activation/ro ot/../ri/app/target/application.xml [echo] Bundling: jar - ossj:oss_common_spec - 1.2 [echo] Dependency oss_common_spec-1.2.jar will be bundled as /oss_common_spec-1.2.jar [copy] Copying 1 file to /home/andreas/Documents/Development/java.net/ossj/service_activation/ri/ app/target/tmpEarDeps BUILD FAILED File.. /home/andreas/Documents/Development/java.net/ossj/service_activation/roo t/maven.xml Element... m:reactor Line.. 28 Column 131 Unable to obtain goal [ear:ear] -- /home/andreas/.maven/cache/maven-ear-plugin-1.6/plugin.jelly:99:24: ant:fail Case-sensitive issue: The dependency ossj:oss_cbe_service_spec has a case problem. The dependency was either retrieved in the past with the wrong case or has been specified with the wrong case in your project.xml file. Fix your project.xml or update your local repository with the properly-cased file and try again. Total time: 10 seconds Finished at: Wed Feb 08 09:37:32 CET 2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there a way to get a Build Date/Time and Version/Release into a Maven build ?
Well I ended up using the 'Maven 2 Changes Plugin' to produce a changes-report based on the changes.xml that is input to the plugin. I bind the plugin to the generate-resources phase, but found that it wouldn't allow me to override the outputDirectory, so the html report still ends up in the /site folder. I then use the antrun plugin to copy the file from the site directory to a new directory in webapp/pages/release (during the process-resources phase). So changes-report.html ends up getting embedded in the built WAR file. On 14/02/06, Edwin Punzalan [EMAIL PROTECTED] wrote: Seems like you have no other choice but to use the ant-run plugin just for replacing/filtering part. Please see: http://maven.apache.org/plugins/maven-antrun-plugin/introduction.html Pete wrote: When I used to use Ant I had an ant target that would copy a pre-prepared HTML file into the webApp's pages - replacing/filtering ${build.date} ${ build.version} etc, so that Users and Testers could see which version of the application they have deployed. I was about to do a similar function for Maven, but then wondered how does everyone else do this ? Are there any M2 plugins to help ? I've seen the http://mojo.codehaus.org/changes-maven-plugin/howto.html 'Maven 2 Changes Plugin', but presumably this is just published to the Application's Site, where as I want the information deployed as part of the app's web pages. Any thoughts / suggestions appreciated. We're currently not using the release plugin because of the unresolved issues. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I store artifacts in our remote repository?
On 2/14/06, ravi kumar [EMAIL PROTECTED] wrote: Hi, I am Ravikumar. I came to get help form you. That is : How can I store artifacts in our remote repository? Could you please give the solution for this? I am waiting for you solution…. Thanks and Regards, Ravikumar.M I think you may find those links useful: http://maven.apache.org/guides/mini/guide-deploy-ftp.html http://maven.apache.org/guides/mini/guide-deploy-ssh-external.html http://maven.apache.org/guides/mini/guide-deployment-security-settings.html
Fwd: http://jira.codehaus.org/browse/CONTINUUM-441
Hi. Unfortunately, we have this option (READ_UNCOMMITED) already set in the application.xml file (apps/continuum/conf/application.xml). Any more hints? regards, Borys -- Forwarded message -- From: John Casey [EMAIL PROTECTED] Date: Jan 22, 2006 7:16 AM Subject: Re: http://jira.codehaus.org/browse/CONTINUUM-441 To: continuum-users@maven.apache.org I suspect you may need to set the transaction isolation level to READ_UNCOMMITTED in your continuum configuration file...application.xml, is it? Here's a reference I found in the continuum project itself: https://svn.apache.org/repos/asf/maven/continuum/continuum-1.0.1/continuum-plexus-application/src/conf/application.xml The section looks like this: property nameorg.jpox.transactionIsolation/name valueREAD_UNCOMMITTED/value /property and it's about 3/4 of the way down the page. HTH, John Marcin Gurbisz wrote: Hi once again, I suffer from problem described in: http://jira.codehaus.org/browse/CONTINUUM-441 Do anybody have any workaround? What is the reason for this exception?
Site plugin: is the skin tag used?
Hi, I'm currently testing the latest snapshot of the site plugin, and read the threads about the skinning functionnality, but I can't get it to work. I have added under project of my site.xml file: skin groupIdorg.apache.maven.skins/groupId artifactIdmaven-stylus-skin/artifactId version1.0-SNAPSHOT/version /skin But I get the following error: [ERROR] BUILD FAILURE [INFO] --- [INFO] The skin does not exist: Unable to determine the release version org.apache.maven.skins:maven-default-skin:jar:RELEASE It seems that my skin tag is not read by Maven, as I'm required stylus skin and not the default one. Did I put the site tag in a wrong place? Has someone managed to make it work? Thanks in advance for your answers, Best Regards / Cordialement, Fabrice BELLINGARD DINQ/DSIN/INSI/EATE/IDVS/AIDV (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Site plugin: is the skin tag used?
You must add this in your pom : repository releases enabledfalse/enabled /releases idapache.snapshots/id nameApache Development Repository/name urlhttp://cvs.apache.org/maven-snapshot-repository/url /repository because the skin jar isn't release yet. Emmanuel [EMAIL PROTECTED] a écrit : Hi, I'm currently testing the latest snapshot of the site plugin, and read the threads about the skinning functionnality, but I can't get it to work. I have added under project of my site.xml file: skin groupIdorg.apache.maven.skins/groupId artifactIdmaven-stylus-skin/artifactId version1.0-SNAPSHOT/version /skin But I get the following error: [ERROR] BUILD FAILURE [INFO] --- [INFO] The skin does not exist: Unable to determine the release version org.apache.maven.skins:maven-default-skin:jar:RELEASE It seems that my skin tag is not read by Maven, as I'm required stylus skin and not the default one. Did I put the site tag in a wrong place? Has someone managed to make it work? Thanks in advance for your answers, Best Regards / Cordialement, Fabrice BELLINGARD DINQ/DSIN/INSI/EATE/IDVS/AIDV (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Site plugin: is the skin tag used?
Must I add this even if I grabbed the skin modules from SVN and installed them locally? This sounds weird... And what if I try to build my own skin? If I put the skin tag with my own skin groupId and artifactId (that I have previously built and installed of course), Maven is still looking for the default skin, not mine... Is this a bug or just the fact that the site plugin not finished yet? Best Regards / Cordialement, Fabrice BELLINGARD DINQ/DSIN/INSI/EATE/IDVS/AIDV (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] Emmanuel Venisse [EMAIL PROTECTED] e.net Pour Maven Users List 14/02/2006 14:27 users@maven.apache.org cc VeuillezObjet répondre à Re: Site plugin: is the skin tag Maven Users List used? [EMAIL PROTECTED] che.org You must add this in your pom : repository releases enabledfalse/enabled /releases idapache.snapshots/id nameApache Development Repository/name urlhttp://cvs.apache.org/maven-snapshot-repository/url /repository because the skin jar isn't release yet. Emmanuel [EMAIL PROTECTED] a écrit : Hi, I'm currently testing the latest snapshot of the site plugin, and read the threads about the skinning functionnality, but I can't get it to work. I have added under project of my site.xml file: skin groupIdorg.apache.maven.skins/groupId artifactIdmaven-stylus-skin/artifactId version1.0-SNAPSHOT/version /skin But I get the following error: [ERROR] BUILD FAILURE [INFO] --- [INFO] The skin does not exist: Unable to determine the release version org.apache.maven.skins:maven-default-skin:jar:RELEASE It seems that my skin tag is not read by Maven, as I'm required stylus skin and not the default one. Did I put the site tag in a wrong place? Has someone managed to make it work? Thanks in advance for your answers, Best Regards / Cordialement, Fabrice BELLINGARD DINQ/DSIN/INSI/EATE/IDVS/AIDV (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven and Classpaths
To explain further, I need to be able to add class path jars to the manifest file that are not tracked by maven. These are internal jars that will not be in public or private repos. Currently, when I use the maven xml code from bellow I get all the items that I said my package depends on that maven tracks. The items that maven does not track do not show up in the manifest (aka the 3 jars in maven are there, items that are in my class path variable are not.). I don't mind explicitly saying I need them I just can't find anything that lets me know how. Thanks! Edwin Punzalan wrote: Hi, Is the use of extensions not good enough? How about dependencies with scopesystem/scope ? Can you explain further as I maybe misunderstanding what you want to do. ^_^ Stephen Milner wrote: I'm sure this has been brought up a lot of times but I couldn't find it via google or the mailing list . I'm using the maven plugin for creating jars like so: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifest mainClasscom.mycorp.ProtomanMain/mainClass addClasspathTrue/addClasspath /manifest /archive /configuration /plugin I would like to add items that Maven doesn't keep track of (jars that are added internally as plugins that may be dropped in at times). How do I explicitly tell maven to add these items in to the classpath? Even if I have to use a directive for each item added it would be fine. Thanks, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven and Classpaths
I don't know the answer to your question, but from past experience I guess you would save a lot of time/trouble by going the maven way and drop the internal jars to a local/internal remote repository and declare these as regular dependencies.. just my 2 cents.. Milos On 2/14/06, Stephen Milner [EMAIL PROTECTED] wrote: To explain further, I need to be able to add class path jars to the manifest file that are not tracked by maven. These are internal jars that will not be in public or private repos. Currently, when I use the maven xml code from bellow I get all the items that I said my package depends on that maven tracks. The items that maven does not track do not show up in the manifest (aka the 3 jars in maven are there, items that are in my class path variable are not.). I don't mind explicitly saying I need them I just can't find anything that lets me know how. Thanks! Edwin Punzalan wrote: Hi, Is the use of extensions not good enough? How about dependencies with scopesystem/scope ? Can you explain further as I maybe misunderstanding what you want to do. ^_^ Stephen Milner wrote: I'm sure this has been brought up a lot of times but I couldn't find it via google or the mailing list . I'm using the maven plugin for creating jars like so: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifest mainClasscom.mycorp.ProtomanMain/mainClass addClasspathTrue/addClasspath /manifest /archive /configuration /plugin I would like to add items that Maven doesn't keep track of (jars that are added internally as plugins that may be dropped in at times). How do I explicitly tell maven to add these items in to the classpath? Even if I have to use a directive for each item added it would be fine. Thanks, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mvn site:stage does not work
Hello, I am relatively new to maven and have not been able to get the site:stage goal to work I have included the output of all commands below. I first tried mvn site:stage, but but maven could not find the site:stage goal. Then I tried to force maven to get any updates mvn -U site:stage still no luck. Just to show that most other items are working I have included mvn site Any help would be appreciated! James Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\ja16654cd my-app C:\Documents and Settings\ja16654\my-appmvn site:stage [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'site'. [INFO] - --- [ERROR] BUILD FAILURE [INFO] - --- [INFO] Required goal not found: site:stage [INFO] - --- [INFO] For more information, run Maven with the -e switch [INFO] - --- [INFO] Total time: 1 second [INFO] Finished at: Tue Feb 14 09:42:50 EST 2006 [INFO] Final Memory: 1M/3M [INFO] - --- C:\Documents and Settings\ja16654\my-appmvn -U site:stage [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'site'. [INFO] org.apache.maven.plugins: checking for updates from central [INFO] org.codehaus.mojo: checking for updates from central [INFO] artifact org.apache.maven.plugins:maven-site-plugin: checking for updates from central [INFO] - --- [ERROR] BUILD FAILURE [INFO] - --- [INFO] Required goal not found: site:stage [INFO] - --- [INFO] For more information, run Maven with the -e switch [INFO] - --- [INFO] Total time: 5 seconds [INFO] Finished at: Tue Feb 14 09:43:04 EST 2006 [INFO] Final Memory: 1M/3M [INFO] - --- C:\Documents and Settings\ja16654\my-appmvn site [INFO] Scanning for projects... [INFO] - --- [INFO] Building Maven Quick Start Archetype [INFO]task-segment: [site] [INFO] - --- [INFO] Setting property: classpath.resource.loader.class = 'org.codehaus.plexus .velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on = 'false'. [INFO] Setting property: resource.loader = 'classpath'. [INFO] Setting property: resource.manager.logwhenfound = 'false'. [INFO] ** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.pr operties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime. resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLo aderResourceLoader [INFO] ClasspathResourceLoader : initialization starting. [INFO] ClasspathResourceLoader : initialization complete. [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource. ResourceCacheImpl) [INFO] Default ResourceManager initialization complete. [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach [INFO] Created: 20 parsers. [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org .apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'V M_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be glob al in scope if allowed. [INFO] Velocimacro : initialization complete. [INFO] Velocity
skipping sha1 md5 downloading
Hello all, Is it possible to skip artifact .sha1or md5 on download dependency processing. It seems to fail build. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ann] maven-one-plugin 1.0
Hi, Without much ado here's the maven-one-plugin. If we need to do anything else we can do a 1.1. It was holding up the XBean release and the plugin was made for them so they are more then likely going to find the issues. +1: John, Brett, Arnaud, Emmanuel, Jason -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org happiness is like a butterfly: the more you chase it, the more it will elude you, but if you turn your attention to other things, it will come and sit softly on your shoulder ... -- Thoreau - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: skipping sha1 md5 downloading
What's the error? -Original Message- From: Tom Joad [mailto:[EMAIL PROTECTED] Sent: martedì 14 febbraio 2006 15.56 To: Maven Users List Subject: skipping sha1 md5 downloading Hello all, Is it possible to skip artifact .sha1or md5 on download dependency processing. It seems to fail build. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Antrun-Plugin javac not working
There is a bug such that if you have a child build which uses the ant plugin it inherits the plugin dependencies of the first time the plugin is declared. The workaround is to put the antrun plugin in the toplevel, and add the java jar to its plugin dependencies. Ruel Loehr JBoss QA -Original Message- From: Grothaus, Christoph [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 4:36 AM To: Maven Users List Subject: RE: [m2] Antrun-Plugin javac not working UPDATE: Now I managed to get the javac task working by setting the fork attribute to true. After the javac task I also have a rmic task, and now that one fails. Message: Embedded error: Cannot use SUN rmic, as it is not available. A common solution is to set the environment variable JAVA_HOME or CLASSPATH. The rmic task has no fork attribute, so no analogous solution here :-( But this behaviour leads me to a new assumption: as this stuff used to run before yesterday, and as it still runs as a single module, have there recently been any changes on how maven treats environment variables in a reactor build? It seems that maven does not propagate environment to child modules, so the rmic task does not see JAVA_HOME, and thus does not find the rmic executable. How do I get around that? Regards, Christoph -Original Message- From: Grothaus, Christoph [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 11:04 AM To: users@maven.apache.org Subject: [m2] Antrun-Plugin javac not working Hi there, I have a problem here that didn't occur until yesterday. Have there been made any changes to the maven-antrun-plugin or to how maven handles classpaths? Situation: I have a multi-module J2EE project. In the EJB module I compile an EJB client, not with the maven-ejb-plugin, as it doesn't fit my needs, but with the antrun plugin. It's just the usual Ant javac task. You can see the way I call the antrun plugin below, in the INPUT section. Now what is strange: when I cd directly to the module and then call mvn clean compile, everything works fine. When I cd to the project top level directory and start a reactor build with mvn clean compile, I get an error that Ant is Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Why that??? Look at my debug echo message I've put into the ant script, the output is in the OUTPUT section. In the output you can clearly see that the last entry of the classpath is tools.jar, and yes, the location is correct. I'm desperate. Anyone any hints? Christoph --8Attachments- -- # INPUT plugin !-- build EJB-Client -- artifactIdmaven-antrun-plugin/artifactId executions execution idejb-client-compile/id phasecompile/phase configuration tasks property environment=env / path id=ejb-client.classpath path refid=maven.plugin.classpath / path refid=maven.compile.classpath / !-- WORKAROUND -- fileset dir=${env.JAVA_HOME}/lib include name=tools.jar / /fileset /path property name=prop.ejb-client.classpath refid=ejb-client.classpath / echo message=[DEBUG] The classpath is: ${prop.ejb-client.classpath} / [...] mkdir dir=${ejb-client.destdir} / javac destdir=${ejb-client.destdir} classpathref=ejb-client.classpath debug=${javac.debug} deprecation=on optimize=off target=${javac.target} src path=${ejb-client.sourcedir} / /javac /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin # OUTPUT [...] [INFO] [antrun:run {execution: ejb-client-compile}] [INFO] Executing tasks [echo] [DEBUG] The classpath is: D:\ENTWICKLUNGSPROGRAMME\maven-local-repository\ant\ant-nodeps\1.6.5\ant -nodeps-1.6.5.jar;D:\ENTWICKLUNGSPROGRAMME\maven-local-repository\ant\an t\1.6.5\ant-1.6.5.jar;D:\ENTWICKLUNGSPROGRAMME\maven-local-repository\an t\ant-launcher\1.6.5\ant-launcher-1.6.5.jar;D:\ENTWICKLUNGSPROGRAMME\mav en-2.0.2\lib\maven-project-2.0.2.jar;D:\ENTWICKLUNGSPROGRAMME\maven-2.0. 2\lib\maven-plugin-api-2.0.2.jar;D:\ENTWICKLUNGSPROGRAMME\MAVENENTWICKLU NG\basel2maven\server\modules\ejb\generic\target\classes;D:\ENTWICKLUNGS PROGRAMME\maven-local-repository\org\hibernate\hibernate\3.0.5\hibernate -3.0.5.jar;D:\ENTWICKLUNGSPROGRAMME\maven-local-repository\asm\asm-util\ 1.3.4\asm-util-1.3.4.jar;D:\ENTWICKLUNGSPROGRAMME\maven-local-repository \cglib\cglib\2.1\cglib-2.1.jar;D:\ENTWICKLUNGSPROGRAMME\maven-local-repo
Re: skipping sha1 md5 downloading
[DEBUG] SHA1 not found, trying MD5 org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate resource in repository at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:95) at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68) at org.apache.maven.artifact.manager.DefaultWagonManager.verifyChecksum(DefaultWagonManager.java:520) at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:380) 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) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:63) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:233) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:211) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:182) at org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1120) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:369) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139) 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:249) 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) Caused by: java.io.FileNotFoundException: http://10.21.240.120:/repository/poi/poi/2.5.1-final-20040804/poi-2.5.1-final-20040804.jar.sha1 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1147) at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:85) ... 29 more I run mvn under eclipse with external tools. I think it is not actually an error but.The command execution seems to wait for something and it takes a very long time before it continues after a message like this [WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for poi/poi/2.5.1-final-20040804/poi-2.5.1-final-20040804.jar - IGNORING. especially , It appears when It is an artifact , i manually (by mvn install) install on our internal repository , and so on with sun jars. Tom 2006/2/14, Luca Gmail [EMAIL PROTECTED]: What's the error? -Original Message- From: Tom Joad [mailto:[EMAIL PROTECTED] Sent: martedì 14 febbraio 2006 15.56 To: Maven Users List Subject: skipping sha1 md5 downloading Hello all, Is it possible to skip artifact .sha1or md5 on download dependency processing. It seems to fail build. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] XML Entities
Hi, Sorry to bring up this topic again but I definitively need a mechanism to import files into XML xdoc source files. With Maven 1.x I used to declare XML entities in DOCTYPE header but I can't get entities to be resolved with Maven 2.x. XInclude won't work neither. Shall I develop a plugin to perform XInclude inclusion on my own or is there already such facility in Maven 2.x? BTW, XML entities are better than XInclude in my own purpose because I need to be able to include some of my Java source files into the Xdoc files (to illustrate and comment some code samples). Herve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: weird problem in continuum
Thanks for your reply, But What do you mean by this error fixed in maven scm?? i'm using continuum shell project where i gave the scm url in maven-scm format.. Do i need update my plugin? Can u please explain Thanks, Raghu Emmanuel Venisse [EMAIL PROTECTED] 02/14/2006 02:32 AM Please respond to continuum-users To: continuum-users@maven.apache.org cc: Subject:Re: weird problem in continuum This error is fixed in maven-scm. Emmanuel [EMAIL PROTECTED] a écrit : Hi All, I have this weird problem with continuum, i have created a shell project and using it with Maven2 Some times my build goes, fine no problem at all, but some other times, it s throwing the following error, is this something known bug? any ideas please? org.apache.maven.continuum.scm.ContinuumScmException: Error while update sources. at org.apache.maven.continuum.scm.DefaultContinuumScm.updateProject(DefaultContinuumScm.java:248) at org.apache.maven.continuum.core.action.UpdateWorkingDirectoryFromScmContinuumAction.execute(UpdateWorkingDirectoryFromScmContinuumAction.java:58) at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:127) at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:53) at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103) at java.lang.Thread.run(Thread.java:534) Caused by: org.apache.maven.scm.ScmException: Exception while executing SCM command. at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:59) at org.apache.maven.scm.provider.clearcase.ClearCaseScmProvider.update(ClearCaseScmProvider.java:117) at org.apache.maven.scm.provider.AbstractScmProvider.update(AbstractScmProvider.java:313) at org.apache.maven.continuum.scm.DefaultContinuumScm.updateProject(DefaultContinuumScm.java:223) ... 5 more Caused by: java.lang.NullPointerException at org.apache.maven.scm.provider.clearcase.command.changelog.ClearCaseChangeLogCommand.executeChangeLogCommand(ClearCaseChangeLogCommand.java:51) at org.apache.maven.scm.command.changelog.AbstractChangeLogCommand.executeCommand(AbstractChangeLogCommand.java:63) at org.apache.maven.scm.command.update.AbstractUpdateCommand.executeCommand(AbstractUpdateCommand.java:60) at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:55) ... 8 more Thanks, Raghu
RE: skipping sha1 md5 downloading
I saw this error when I had copied manually artifact into repository. I think you should use mvn deploy to update your internal repository. Luca -Original Message- From: Tom Joad [mailto:[EMAIL PROTECTED] Sent: martedì 14 febbraio 2006 16.38 To: Maven Users List Subject: Re: skipping sha1 md5 downloading [DEBUG] SHA1 not found, trying MD5 org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate resource in repository ... I run mvn under eclipse with external tools. I think it is not actually an error but.The command execution seems to wait for something and it takes a very long time before it continues after a message like this [WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for poi/poi/2.5.1-final-20040804/poi-2.5.1-final-20040804.jar - IGNORING. especially , It appears when It is an artifact , i manually (by mvn install) install on our internal repository , and so on with sun jars. Tom 2006/2/14, Luca Gmail [EMAIL PROTECTED]: What's the error? -Original Message- From: Tom Joad [mailto:[EMAIL PROTECTED] Sent: martedì 14 febbraio 2006 15.56 To: Maven Users List Subject: skipping sha1 md5 downloading Hello all, Is it possible to skip artifact .sha1or md5 on download dependency processing. It seems to fail build. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: weird problem in continuum
Continuum use maven-scm project and this NPE is fixed in maven-scm project 1.0-beta-3 that will be release for continuum-1.0.3. If you want to fix it in your continuum, you'll need to replace all maven-scm-* in continuum/apps/continuum/lib by snapshot versions. Emmanuel [EMAIL PROTECTED] a écrit : Thanks for your reply, But What do you mean by this error fixed in maven scm?? i'm using continuum shell project where i gave the scm url in maven-scm format.. Do i need update my plugin? Can u please explain Thanks, Raghu Emmanuel Venisse [EMAIL PROTECTED] 02/14/2006 02:32 AM Please respond to continuum-users To: continuum-users@maven.apache.org cc: Subject:Re: weird problem in continuum This error is fixed in maven-scm. Emmanuel [EMAIL PROTECTED] a écrit : Hi All, I have this weird problem with continuum, i have created a shell project and using it with Maven2 Some times my build goes, fine no problem at all, but some other times, it s throwing the following error, is this something known bug? any ideas please? org.apache.maven.continuum.scm.ContinuumScmException: Error while update sources. at org.apache.maven.continuum.scm.DefaultContinuumScm.updateProject(DefaultContinuumScm.java:248) at org.apache.maven.continuum.core.action.UpdateWorkingDirectoryFromScmContinuumAction.execute(UpdateWorkingDirectoryFromScmContinuumAction.java:58) at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:127) at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:53) at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103) at java.lang.Thread.run(Thread.java:534) Caused by: org.apache.maven.scm.ScmException: Exception while executing SCM command. at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:59) at org.apache.maven.scm.provider.clearcase.ClearCaseScmProvider.update(ClearCaseScmProvider.java:117) at org.apache.maven.scm.provider.AbstractScmProvider.update(AbstractScmProvider.java:313) at org.apache.maven.continuum.scm.DefaultContinuumScm.updateProject(DefaultContinuumScm.java:223) ... 5 more Caused by: java.lang.NullPointerException at org.apache.maven.scm.provider.clearcase.command.changelog.ClearCaseChangeLogCommand.executeChangeLogCommand(ClearCaseChangeLogCommand.java:51) at org.apache.maven.scm.command.changelog.AbstractChangeLogCommand.executeCommand(AbstractChangeLogCommand.java:63) at org.apache.maven.scm.command.update.AbstractUpdateCommand.executeCommand(AbstractUpdateCommand.java:60) at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:55) ... 8 more Thanks, Raghu
M2 Eclipse Plugin vs. Command Line
My question is about the differences between the M2 Eclipse Plugin and the plain old command line M2 version. What advantages does the plugin provide? I checked out a project (Apache Tusqany) into my eclipse workspace. I have the M2 plugin installed - on the console I see: 2/13/06 8:13:53 PM EST: Local repository folder does not exist 2/13/06 8:13:54 PM EST: [DEBUG] Found 0 components to load on start 2/13/06 8:13:54 PM EST: [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\Administrator\.m2\plugin-registry.xml' 2/13/06 8:13:54 PM EST: [DEBUG] Building Maven global-level settings from: 'C:\eclipse-SDK-3.1.1\eclipse\conf\settings.xml' 2/13/06 8:13:54 PM EST: [DEBUG] Building Maven user-level settings from: 'C:\Documents and Settings\Administrator\.m2\settings.xml' 2/13/06 8:13:54 PM EST: Reading /Tusqany/pom.xml 2/13/06 8:13:54 PM EST: Local repository folder does not exist 2/13/06 8:13:54 PM EST: [DEBUG] Found 0 components to load on start 2/13/06 8:13:55 PM EST: [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\Administrator\.m2\plugin-registry.xml' 2/13/06 8:13:55 PM EST: [DEBUG] Building Maven global-level settings from: 'C:\eclipse-SDK-3.1.1\eclipse\conf\settings.xml' 2/13/06 8:13:55 PM EST: [DEBUG] Building Maven user-level settings from: 'C:\Documents and Settings\Administrator\.m2\settings.xml' 2/13/06 8:13:55 PM EST: [DEBUG] org.apache.tuscany:tuscany-project:pom:SNAPSHOT (selected for null) 2/13/06 8:13:55 PM EST: Reading /Tusqany/spec/pom.xml *snip* And basically nothing gets built. If I run the command line version right against the tree directly, everything builds like a champ. Am I lacking some eclipse setup to make this work? I simply checked out the code into the workspace as a 'project'. Thanks, Scott.
Re: skipping sha1 md5 downloading
Ok Thanks , i'll do this Tom. 2006/2/14, Luca Gmail [EMAIL PROTECTED]: I saw this error when I had copied manually artifact into repository. I think you should use mvn deploy to update your internal repository. Luca -Original Message- From: Tom Joad [mailto:[EMAIL PROTECTED] Sent: martedì 14 febbraio 2006 16.38 To: Maven Users List Subject: Re: skipping sha1 md5 downloading [DEBUG] SHA1 not found, trying MD5 org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate resource in repository ... I run mvn under eclipse with external tools. I think it is not actually an error but.The command execution seems to wait for something and it takes a very long time before it continues after a message like this [WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for poi/poi/2.5.1-final-20040804/poi-2.5.1-final-20040804.jar - IGNORING. especially , It appears when It is an artifact , i manually (by mvn install) install on our internal repository , and so on with sun jars. Tom 2006/2/14, Luca Gmail [EMAIL PROTECTED]: What's the error? -Original Message- From: Tom Joad [mailto:[EMAIL PROTECTED] Sent: martedì 14 febbraio 2006 15.56 To: Maven Users List Subject: skipping sha1 md5 downloading Hello all, Is it possible to skip artifact .sha1or md5 on download dependency processing. It seems to fail build. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: M2 Eclipse Plugin vs. Command Line
Hello , You must set up your local repository on eclipse windowpreferencesmaven2 local repository folder= a folder in which plugin put artifacts downloaded. Could you tell me if after that it works , because it never does. I use maven with external tools as on documentation maven2 site. Tom. 2006/2/14, Scott M Mcclements [EMAIL PROTECTED]: My question is about the differences between the M2 Eclipse Plugin and the plain old command line M2 version. What advantages does the plugin provide? I checked out a project (Apache Tusqany) into my eclipse workspace. I have the M2 plugin installed - on the console I see: 2/13/06 8:13:53 PM EST: Local repository folder does not exist 2/13/06 8:13:54 PM EST: [DEBUG] Found 0 components to load on start 2/13/06 8:13:54 PM EST: [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\Administrator\.m2\plugin-registry.xml' 2/13/06 8:13:54 PM EST: [DEBUG] Building Maven global-level settings from: 'C:\eclipse-SDK-3.1.1\eclipse\conf\settings.xml' 2/13/06 8:13:54 PM EST: [DEBUG] Building Maven user-level settings from: 'C:\Documents and Settings\Administrator\.m2\settings.xml' 2/13/06 8:13:54 PM EST: Reading /Tusqany/pom.xml 2/13/06 8:13:54 PM EST: Local repository folder does not exist 2/13/06 8:13:54 PM EST: [DEBUG] Found 0 components to load on start 2/13/06 8:13:55 PM EST: [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\Administrator\.m2\plugin-registry.xml' 2/13/06 8:13:55 PM EST: [DEBUG] Building Maven global-level settings from: 'C:\eclipse-SDK-3.1.1\eclipse\conf\settings.xml' 2/13/06 8:13:55 PM EST: [DEBUG] Building Maven user-level settings from: 'C:\Documents and Settings\Administrator\.m2\settings.xml' 2/13/06 8:13:55 PM EST: [DEBUG] org.apache.tuscany:tuscany-project:pom:SNAPSHOT (selected for null) 2/13/06 8:13:55 PM EST: Reading /Tusqany/spec/pom.xml *snip* And basically nothing gets built. If I run the command line version right against the tree directly, everything builds like a champ. Am I lacking some eclipse setup to make this work? I simply checked out the code into the workspace as a 'project'. Thanks, Scott. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Specifying Master POM Version Once
I am trying to find a way to specify the version of the master POM that will be used in sub project parent references in only one location such as a property in the master POM. This does not seem to resolve outIs there another way rather than hardcoding a version in all the sub project parent references ? Michael Lantink Software Engineer (519) 880-2400 ext 2765 www.sandvine.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Site plugin: is the skin tag used?
Something strange: I've figured out that the SVN version of the site plugin does not use my site.xml file... whereas version 2.0-beta-4 finds this file in my project and uses it correctly to generate the site. Did something change between 2.0-beta-4 and the SVN version of the plugin? What could make the plugin ignore my site.xml file and use the default one instead? Best Regards / Cordialement, Fabrice BELLINGARD DINQ/DSIN/INSI/EATE/IDVS/AIDV (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] Best Regards / Cordialement, Fabrice BELLINGARD DINQ/DSIN/INSI/EATE/IDVS/AIDV (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] - Emmanuel Venisse [EMAIL PROTECTED] PourMaven Users List You must add this in your pom : repository releases enabledfalse/enabled /releases idapache.snapshots/id nameApache Development Repository/name url http://cvs.apache.org/maven-snapshot-repository/url /repository because the skin jar isn't release yet. Emmanuel [EMAIL PROTECTED] a écrit : Hi, I'm currently testing the latest snapshot of the site plugin, and read the threads about the skinning functionnality, but I can't get it to work. I have added under project of my site.xml file: skin groupIdorg.apache.maven.skins/groupId artifactIdmaven-stylus-skin/artifactId version1.0-SNAPSHOT/version /skin But I get the following error: [ERROR] BUILD FAILURE [INFO] --- [INFO] The skin does not exist: Unable to determine the release version org.apache.maven.skins:maven-default-skin:jar:RELEASE It seems that my skin tag is not read by Maven, as I'm required stylus skin and not the default one. Did I put the site tag in a wrong place? Has someone managed to make it work? Thanks in advance for your answers, Best Regards / Cordialement, Fabrice BELLINGARD DINQ/DSIN/INSI/EATE/IDVS/AIDV (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: M2 Eclipse Plugin vs. Command Line
Have you tried version 0.0.5 of the plugin? It works for me on Mac OSX 10.4.4. I'm not sure that the plugin reads setting.xml yet. It didn't use to, which was extremely annoying. -K On 2/14/06 10:14 AM, Tom Joad [EMAIL PROTECTED] wrote: Hello , You must set up your local repository on eclipse windowpreferencesmaven2 local repository folder= a folder in which plugin put artifacts downloaded. Could you tell me if after that it works , because it never does. I use maven with external tools as on documentation maven2 site. Tom. 2006/2/14, Scott M Mcclements [EMAIL PROTECTED]: My question is about the differences between the M2 Eclipse Plugin and the plain old command line M2 version. What advantages does the plugin provide? I checked out a project (Apache Tusqany) into my eclipse workspace. I have the M2 plugin installed - on the console I see: 2/13/06 8:13:53 PM EST: Local repository folder does not exist 2/13/06 8:13:54 PM EST: [DEBUG] Found 0 components to load on start 2/13/06 8:13:54 PM EST: [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\Administrator\.m2\plugin-registry.xml' 2/13/06 8:13:54 PM EST: [DEBUG] Building Maven global-level settings from: 'C:\eclipse-SDK-3.1.1\eclipse\conf\settings.xml' 2/13/06 8:13:54 PM EST: [DEBUG] Building Maven user-level settings from: 'C:\Documents and Settings\Administrator\.m2\settings.xml' 2/13/06 8:13:54 PM EST: Reading /Tusqany/pom.xml 2/13/06 8:13:54 PM EST: Local repository folder does not exist 2/13/06 8:13:54 PM EST: [DEBUG] Found 0 components to load on start 2/13/06 8:13:55 PM EST: [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\Administrator\.m2\plugin-registry.xml' 2/13/06 8:13:55 PM EST: [DEBUG] Building Maven global-level settings from: 'C:\eclipse-SDK-3.1.1\eclipse\conf\settings.xml' 2/13/06 8:13:55 PM EST: [DEBUG] Building Maven user-level settings from: 'C:\Documents and Settings\Administrator\.m2\settings.xml' 2/13/06 8:13:55 PM EST: [DEBUG] org.apache.tuscany:tuscany-project:pom:SNAPSHOT (selected for null) 2/13/06 8:13:55 PM EST: Reading /Tusqany/spec/pom.xml *snip* And basically nothing gets built. If I run the command line version right against the tree directly, everything builds like a champ. Am I lacking some eclipse setup to make this work? I simply checked out the code into the workspace as a 'project'. Thanks, Scott. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kathryn Huxtable Middleware Architect Core Middleware Information Technology, a division of Information Services The University of Kansas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven builder and eclipse deployement
Hello all, I use maven with eclipse ,with external tools. Our project , initially , was not managed with maven. Libraries were located under WEB-INF/lib We decided to use maven for all cycle of our project . I delete the directory WEB-INF/lib and all references to it and set up M2_REPO . It works fine for compilation . but my question is about the directory .deployables of eclipse. The eclipse builder doesn't create .class like before ,the WEB-INF/lib is not created and so no dependencies deployed. I think that I must use maven to deploy but how to do it? All helps are welcomed Tom. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Adding target/classes to plugin classpath
All, I'm sorry if this was already discussed, but I didn't found in the archives. I developed a java plugin for use here in a project. The plugin runs after compiling code and needs to instantiate a class that was compiled by maven, using Class.forName(). Unfortunatelly, seems that the target/classes directory is not in the plugin classpath, doesn't matter the phase I run it. I'm receiving a java.lang.ClassNotFoundException. Is there a way to configure a plugin to have target/classes in its classpath? Thanks in advance, Edson --- Edson Tirelli Auster Solutions do Brasil @ www.auster.com.br +55 11 5096-2277 / +55 11 9218-4151 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] How to bundle a rar file into an ear with maven-ear-plugin
Title: [m2] How to bundle a rar file into an ear with maven-ear-plugin Hello, I'd like to configure the maven-ear-plugin to bundle a rar file. Is there any idea? Rgds, -Xavier Ce message et ses pièces jointes (le message) est destiné à l'usage exclusif de son destinataire. Si vous recevez ce message par erreur, merci d'en aviser immédiatement l'expéditeur et de le détruire ensuite. Le présent message pouvant être altéré à notre insu, CALYON Corporate and Investment Bank ne peut pas être engagé par son contenu. Tous droits réservés. This message and/or any attachments (the message) is intended for the sole use of its addressee. If you are not the addressee, please immediately notify the sender and then destroy the message. As this message and/or any attachments may have been altered without our knowledge, its content is not legally binding on CALYON Corporate and Investment Bank. All rights reserved. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] getting clean to remove generated sources
Is it possible to get clean to remove sources I generate during my build?
Re: SPAM: [m2] getting clean to remove generated sources
If you generate your sources in target, they will be remove Emmanuel Xavier Toth a écrit : Is it possible to get clean to remove sources I generate during my build? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Antrun-Plugin javac not working
May it be something like http://jira.codehaus.org/browse/MANTRUN-37 ? On 2/14/06, Ruel Loehr [EMAIL PROTECTED] wrote: There is a bug such that if you have a child build which uses the ant plugin it inherits the plugin dependencies of the first time the plugin is declared. The workaround is to put the antrun plugin in the toplevel, and add the java jar to its plugin dependencies. Ruel Loehr JBoss QA -Original Message- From: Grothaus, Christoph [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 4:36 AM To: Maven Users List Subject: RE: [m2] Antrun-Plugin javac not working UPDATE: Now I managed to get the javac task working by setting the fork attribute to true. After the javac task I also have a rmic task, and now that one fails. Message: Embedded error: Cannot use SUN rmic, as it is not available. A common solution is to set the environment variable JAVA_HOME or CLASSPATH. The rmic task has no fork attribute, so no analogous solution here :-( But this behaviour leads me to a new assumption: as this stuff used to run before yesterday, and as it still runs as a single module, have there recently been any changes on how maven treats environment variables in a reactor build? It seems that maven does not propagate environment to child modules, so the rmic task does not see JAVA_HOME, and thus does not find the rmic executable. How do I get around that? Regards, Christoph -Original Message- From: Grothaus, Christoph [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 11:04 AM To: users@maven.apache.org Subject: [m2] Antrun-Plugin javac not working Hi there, I have a problem here that didn't occur until yesterday. Have there been made any changes to the maven-antrun-plugin or to how maven handles classpaths? Situation: I have a multi-module J2EE project. In the EJB module I compile an EJB client, not with the maven-ejb-plugin, as it doesn't fit my needs, but with the antrun plugin. It's just the usual Ant javac task. You can see the way I call the antrun plugin below, in the INPUT section. Now what is strange: when I cd directly to the module and then call mvn clean compile, everything works fine. When I cd to the project top level directory and start a reactor build with mvn clean compile, I get an error that Ant is Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Why that??? Look at my debug echo message I've put into the ant script, the output is in the OUTPUT section. In the output you can clearly see that the last entry of the classpath is tools.jar, and yes, the location is correct. I'm desperate. Anyone any hints? Christoph --8Attachments- -- # INPUT plugin !-- build EJB-Client -- artifactIdmaven-antrun-plugin/artifactId executions execution idejb-client-compile/id phasecompile/phase configuration tasks property environment=env / path id=ejb-client.classpath path refid=maven.plugin.classpath / path refid=maven.compile.classpath / !-- WORKAROUND -- fileset dir=${env.JAVA_HOME}/lib include name=tools.jar / /fileset /path property name=prop.ejb-client.classpath refid=ejb-client.classpath / echo message=[DEBUG] The classpath is: ${prop.ejb-client.classpath} / [...] mkdir dir=${ejb-client.destdir} / javac destdir=${ejb-client.destdir} classpathref=ejb-client.classpath debug=${javac.debug} deprecation=on optimize=off target=${javac.target} src path=${ejb-client.sourcedir} / /javac /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin # OUTPUT [...] [INFO] [antrun:run {execution: ejb-client-compile}] [INFO] Executing tasks [echo] [DEBUG] The classpath is: D:\ENTWICKLUNGSPROGRAMME\maven-local-repository\ant\ant-nodeps\1.6.5\ant -nodeps-1.6.5.jar;D:\ENTWICKLUNGSPROGRAMME\maven-local-repository\ant\an t\1.6.5\ant-1.6.5.jar;D:\ENTWICKLUNGSPROGRAMME\maven-local-repository\an t\ant-launcher\1.6.5\ant-launcher-1.6.5.jar;D:\ENTWICKLUNGSPROGRAMME\mav en-2.0.2\lib\maven-project-2.0.2.jar;D:\ENTWICKLUNGSPROGRAMME\maven-2.0. 2\lib\maven-plugin-api-2.0.2.jar;D:\ENTWICKLUNGSPROGRAMME\MAVENENTWICKLU NG\basel2maven\server\modules\ejb\generic\target\classes;D:\ENTWICKLUNGS PROGRAMME\maven-local-repository\org\hibernate\hibernate\3.0.5\hibernate
[m1] PMD: How to add custom rules with Java code?
I know to use maven.pmd.rulesetfiles to specify the rules config, but I'm not sure of the correct way to get the custom PMD rule Java class files on the classpath so the PMD plugin sees them. Can anyone advise on that, please? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] AntTasks with Rhino js.jar missing Context.getDebuggableEngine()
I'm using the Ant Dependency Tasks of Maven 2.0.2. I have the following dependencies defined in my pom: dependency groupIdbsf/groupId artifactIdbsf/artifactId version2.3.0/version scopetest/scope /dependency dependency groupIdrhino/groupId artifactIdjs/artifactId version1.6R2/version scopetest/scope /dependency My ant file includes the deps via: artifact:pom file=java/pom.xml id=maven.project/ artifact:dependencies pathId=cp.dependencies.utest verbose=true useScope=test pom refid=maven.project/ /artifact:dependencies I've included the .m2/repository/... directories on Ant's classpath via: ARGS=-lib %USERPROFILE%\.m2\repository\bsf Ant gives the following error when it tries to do any javascript: BUILD FAILED C:\ibtDev\ibt\java\build.xml:1321: The following error occurred while executing this line: java.lang.NoSuchMethodError: org.mozilla.javascript.Context.getDebuggableEngine()Lorg/mozilla/javasc ript/debug/DebuggableEngine; If I simply use my old js.jar (version from Rhino 1.5R3 - as far as I can tell) instead of the .m2/repo...js-1.6R2.jar, everything works. I've also tried using all other versions of js.jar from ibiblio (listed below), and still get the same DebuggableEngine error: js/1.5R4-RC3 js/1.5R4.1 js/1.6R1 js/1.6R2 rhino/1.5R4.1 Any ideas? Is there a js/1.6R3 or newer around? Is there an old js/1.5R3 available on Ibiblio? Thanks, Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] getting clean to remove generated sources
If you generate the sources inside target/generated-sources they will be removed when you clean. On 2/14/06, Xavier Toth [EMAIL PROTECTED] wrote: Is it possible to get clean to remove sources I generate during my build? -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]
JDepend Exception
I got the following exception... dunno if it some kind of javadoc comment that I added I don't believe so... I am using snapshot beta-1 from mojo site... FATAL ERROR: Error executing Maven for a project org.apache.maven.lifecycle.LifecycleExecutionException: Error during report generation at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:472) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:413) at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68) Caused by: org.apache.maven.plugin.MojoExecutionException: Error during report generation at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:389) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531) ... 8 more Caused by: org.apache.maven.reporting.MavenReportException: Failed to execute JDepend at org.codehaus.mojo.jdepend.JDependMojo.executeReport(JDependMojo.java:118) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98) at org.apache.maven.plugins.site.SiteMojo.generateReportsPages(SiteMojo.java:802) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:301) ... 10 more Caused by: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0xf) was found in the value of attribute sourceFile and element is Class. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316) at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438) at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue(XMLScanner.java:969) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanAttribute(XMLDocumentFragmentScannerImpl.java:1033) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:851) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) at javax.xml.parsers.SAXParser.parse(SAXParser.java:311) at org.codehaus.mojo.jdepend.JDependXMLReportParser.init(JDependXMLReportParser.java:71) at org.codehaus.mojo.jdepend.JDependMojo.executeReport(JDependMojo.java:112) ... 13 more Any ideas? It says there is some kind of problem with the input generated from jdepend and goes to the site plugin Thanks Guilherme -- Guilherme Silveira -- [EMAIL PROTECTED] Caelum - Ensino e Solucoes em Java www.caelum.com.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Specifying Master POM Version Once
Not in M2, heard it will be allowed in 2.1 -D On 2/14/06, Mike Lantink [EMAIL PROTECTED] wrote: I am trying to find a way to specify the version of the master POM that will be used in sub project parent references in only one location such as a property in the master POM. This does not seem to resolve outIs there another way rather than hardcoding a version in all the sub project parent references ? Michael Lantink Software Engineer (519) 880-2400 ext 2765 www.sandvine.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Specifying Master POM Version Once
On 2/14/06, Mike Lantink [EMAIL PROTECTED] wrote: I am trying to find a way to specify the version of the master POM that will be used in sub project parent references in only one location such as a property in the master POM. This does not seem to resolve outIs there another way rather than hardcoding a version in all the sub project parent references ? I tried to achieve the same thing, and posted a question here on it, but didn't generate any answers: http://www.nabble.com/Property-variable-not-interpolated-in-%3Cparent%3E-element-when-POM-is-installed-t1105519.html#a2888441 I think this would be very useful thing to have, particularly when you have a large multiproject build. I was actually able to get it work with a property defined in the root POM, when the parent POM and the POM that was the start of my multiproject build was one and the same. However, when my JARs/POMs were installed in the repo (local or remote), the variable in the parent was not expanded (becomes a problem when transitive dependencies are calculated for the end-user project where this JAR is a dependency). This is true of other variables in the POM, but for the parent declaration it becomes a chicken and egg issue: you can't get the property value denoting the POM version without getting the POM itself. But, I'd think you should be able to specify a -Dxxx= value for the property on the command line, or settings.xml, but it didn't seem to work. I wish an exception was made for the parent declaration in the installed POM, so that a variable declaration in the version tag was actually in interpolated/expanded form when it was installed in the repo. BTW, I was able to use properties to refer to dependencies, and that in itself will cut down a lot on the tedium when we go from SNAPSHOT-to-release-to-SNAPSHOT. If you care to look at it, the root POM and a sample child POM are: http://cvs.apache.org/viewcvs.cgi/*checkout*/excalibur/trunk/pom.xml?rev=377265 http://cvs.apache.org/viewcvs.cgi/*checkout*/excalibur/trunk/framework/impl/pom.xml?rev=377209 Shash - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] merging separate CVS modules
I am trying to use Maven 2 to build a series of WAR projects from an existing CVS repository. The developer has placed the source for the war files in three separate modules: base; var1; var2. Currently the wars are created by checking out base and then overlaying any files contained in var1 or var2, depending on which war is to be generated. Is it possible to do this in Maven 2? If so what should the POM look like? I'm a true newbie to all things java, maven, etc., although I do have some familiarity with ant, so please be as specific as you can. Thanking all in advance, Steve Hahn NFR Engineer 925 658-6616 (direct)
RE: [m2] Antrun-Plugin javac not working
I was thinking of this one: http://jira.codehaus.org/browse/MNG-1323 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Tuesday, February 14, 2006 11:47 AM To: Maven Users List Subject: Re: [m2] Antrun-Plugin javac not working May it be something like http://jira.codehaus.org/browse/MANTRUN-37 ? On 2/14/06, Ruel Loehr [EMAIL PROTECTED] wrote: There is a bug such that if you have a child build which uses the ant plugin it inherits the plugin dependencies of the first time the plugin is declared. The workaround is to put the antrun plugin in the toplevel, and add the java jar to its plugin dependencies. Ruel Loehr JBoss QA -Original Message- From: Grothaus, Christoph [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 4:36 AM To: Maven Users List Subject: RE: [m2] Antrun-Plugin javac not working UPDATE: Now I managed to get the javac task working by setting the fork attribute to true. After the javac task I also have a rmic task, and now that one fails. Message: Embedded error: Cannot use SUN rmic, as it is not available. A common solution is to set the environment variable JAVA_HOME or CLASSPATH. The rmic task has no fork attribute, so no analogous solution here :-( But this behaviour leads me to a new assumption: as this stuff used to run before yesterday, and as it still runs as a single module, have there recently been any changes on how maven treats environment variables in a reactor build? It seems that maven does not propagate environment to child modules, so the rmic task does not see JAVA_HOME, and thus does not find the rmic executable. How do I get around that? Regards, Christoph -Original Message- From: Grothaus, Christoph [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 11:04 AM To: users@maven.apache.org Subject: [m2] Antrun-Plugin javac not working Hi there, I have a problem here that didn't occur until yesterday. Have there been made any changes to the maven-antrun-plugin or to how maven handles classpaths? Situation: I have a multi-module J2EE project. In the EJB module I compile an EJB client, not with the maven-ejb-plugin, as it doesn't fit my needs, but with the antrun plugin. It's just the usual Ant javac task. You can see the way I call the antrun plugin below, in the INPUT section. Now what is strange: when I cd directly to the module and then call mvn clean compile, everything works fine. When I cd to the project top level directory and start a reactor build with mvn clean compile, I get an error that Ant is Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Why that??? Look at my debug echo message I've put into the ant script, the output is in the OUTPUT section. In the output you can clearly see that the last entry of the classpath is tools.jar, and yes, the location is correct. I'm desperate. Anyone any hints? Christoph --8Attachments- -- # INPUT plugin !-- build EJB-Client -- artifactIdmaven-antrun-plugin/artifactId executions execution idejb-client-compile/id phasecompile/phase configuration tasks property environment=env / path id=ejb-client.classpath path refid=maven.plugin.classpath / path refid=maven.compile.classpath / !-- WORKAROUND -- fileset dir=${env.JAVA_HOME}/lib include name=tools.jar / /fileset /path property name=prop.ejb-client.classpath refid=ejb-client.classpath / echo message=[DEBUG] The classpath is: ${prop.ejb-client.classpath} / [...] mkdir dir=${ejb-client.destdir} / javac destdir=${ejb-client.destdir} classpathref=ejb-client.classpath debug=${javac.debug} deprecation=on optimize=off target=${javac.target} src path=${ejb-client.sourcedir} / /javac /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin # OUTPUT [...] [INFO] [antrun:run {execution: ejb-client-compile}] [INFO] Executing tasks [echo] [DEBUG] The classpath is: D:\ENTWICKLUNGSPROGRAMME\maven-local-repository\ant\ant-nodeps\1.6.5\ant -nodeps-1.6.5.jar;D:\ENTWICKLUNGSPROGRAMME\maven-local-repository\ant\an t\1.6.5\ant-1.6.5.jar;D:\ENTWICKLUNGSPROGRAMME\maven-local-repository\an t\ant-launcher\1.6.5\ant-launcher-1.6.5.jar;D:\ENTWICKLUNGSPROGRAMME\mav en-2.0.2\lib\maven-project-2.0.2.jar;D:\ENTWICKLUNGSPROGRAMME\maven-2.0.
Re: [m1] PMD: How to add custom rules with Java code?
Is maven.dependency.classpath the classpath created by Maven of all the dependencies listed in the dependecies section (I did not see this property described on the Properties Reference page, or elsewhere)? If so, then is the correct solution to install a jar of the custom rules in the local repo and add it as a project dependency? The PMD plugin.jelly has this: !-- Setup the classpath for pmd plugins -- path id=pmd-classpath pathelement path=${plugin.getDependencyPath('pmd:pmd')} / pathelement path=${plugin.getDependencyPath('jaxen:jaxen')} / pathelement path=${plugin.getDependencyPath('saxpath:saxpath')} / pathelement path=${pom.getDependencyClasspath()} / path refid=maven.dependency.classpath / /path so, I think that would work. Would very much appreciate an expert's validation of this and/or a better, more correct approach suggested! Quoting Jeff Jensen [EMAIL PROTECTED]: I know to use maven.pmd.rulesetfiles to specify the rules config, but I'm not sure of the correct way to get the custom PMD rule Java class files on the classpath so the PMD plugin sees them. Can anyone advise on that, please? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Site plugin: is the skin tag used?
It sohuld find it. And the parent. On 2/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Something strange: I've figured out that the SVN version of the site plugin does not use my site.xml file... whereas version 2.0-beta-4 finds this file in my project and uses it correctly to generate the site. Did something change between 2.0-beta-4 and the SVN version of the plugin? What could make the plugin ignore my site.xml file and use the default one instead? Best Regards / Cordialement, Fabrice BELLINGARD DINQ/DSIN/INSI/EATE/IDVS/AIDV (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] Best Regards / Cordialement, Fabrice BELLINGARD DINQ/DSIN/INSI/EATE/IDVS/AIDV (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] - Emmanuel Venisse [EMAIL PROTECTED] PourMaven Users List You must add this in your pom : - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How can I store artifacts in our remote repository?
hi Luca, I'm very interested in your use of a docroot. we also have a webroot defined under tomcat with an absolute path to the M2 repository. like /m2-repo with a path of /absolute/path/to/m2/repository I've gotten ftp and scpexe to work for deploys, but I haven't been able to deploy using the webroot. The docroot url I tried was urlxxx://server:port/m2-repo/url I've gotten deploy to work with ftp and scpexe using urlxxx://server/absolute/path/to/repository/url Can you share a bit more about how you used the docroot? We're using apache-tomcat-5.5.12 when you mentioned 'scp' did you mean scp or scpexe? which wagon and version did you use in the extension? did you define the docroot anywhere else in maven? was there anything in settings.xml or the pom that was needed to make the docroot url work? Thank you for any help you can provide. Tom Luca Gmail [EMAIL PROTECTED] wrote on 02/14/2006 06:23:09 AM: This is the solution im using: I ve a web server I use as reomote (internal) repository. Asscociated with the url referencing the remote repo there is a docroot. I use the deploy goal to copy (via scp) my artifact to the docroot. -Original Message- From: ravi kumar [mailto:[EMAIL PROTECTED] Sent: martedì 14 febbraio 2006 10.03 To: commits; dev; dev; dev; dion; ggolden; Maven Help; Maven Help; users Subject: How can I store artifacts in our remote repository? Hi, I am Ravikumar. I came to get help form you. That is : How can I store artifacts in our remote repository? Could you please give the solution for this? I am waiting for you solution?. Thanks and Regards, Ravikumar.M - Yahoo! Mail Use Photomail to share photos without annoying attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message is intended for the recipient only and is not meant to be forwarded or distributed in any other format. This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument, or security, or as an official confirmation of any transaction. Putnam does not accept purchase or redemptions of securities, instructions, or authorizations that are sent via e-mail. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of Putnam, LLC (DBA Putnam Investments) and its subsidiaries and affiliates. If you are not the intended recipient of this e-mail, please delete the e-mail. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] getting clean to remove generated sources
My generated sources aren't being compiled. I've tried generating them in target/generated-sources and target/generated-sources/java/main. Have you compiled generated source? On 2/14/06, Lee Meador [EMAIL PROTECTED] wrote: If you generate the sources inside target/generated-sources they will be removed when you clean. On 2/14/06, Xavier Toth [EMAIL PROTECTED] wrote: Is it possible to get clean to remove sources I generate during my build? -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]
m2 -- Ready for Prime Time, yet?
I read Vincent Massol's PPT dated 15 September 2005. He said, Short answer: No. But, that was 5 months ago! How about now? I have a major set of J2EE apps that are mostly all in m1, with a few stragglers in Ant. I will be going through these, externalizing the environmental dependencies from inside the app to properties files of some kind. So it is tempting to upgrade from m1 to m2 in the process. What are the risks? Suicidal? None? Olympic downhill skiiers only? Curlers would be comfortable? ;-) TIA, Ray Ward, PMP
still use Ant
Hello all, I'm really new to Maven, I just migrated a small toolbox project and a small webapp project to maven and it's great my question is : do you still use ant to do some special stuff or should maven be enough ? thanks in advance F. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: m2 -- Ready for Prime Time, yet?
Safe rollercoaster with insurance. ;-) On 2/14/06, Ray Ward [EMAIL PROTECTED] wrote: I read Vincent Massol's PPT dated 15 September 2005. He said, Short answer: No. But, that was 5 months ago! How about now? I have a major set of J2EE apps that are mostly all in m1, with a few stragglers in Ant. I will be going through these, externalizing the environmental dependencies from inside the app to properties files of some kind. So it is tempting to upgrade from m1 to m2 in the process. What are the risks? Suicidal? None? Olympic downhill skiiers only? Curlers would be comfortable? ;-) TIA, Ray Ward, PMP
Re: m2 -- Ready for Prime Time, yet?
On 2/15/06, Ray Ward [EMAIL PROTECTED] wrote: I read Vincent Massol's PPT dated 15 September 2005. He said, Short answer: No. But, that was 5 months ago! How about now? Well, in September, it wasn't final, so probably fair enough. There was a long discussion on this list a little more recently (maybe November?) where people debated it again. Long story short, yes: as long as you are using final release plugins. If you need certain plugins which are alpha, beta, or non-existant, then your experience of m2 will be that it is alpha, beta or incomplete. Especially if coming from m1, do your homework first, and if things you need aren't ready, tell us. Some plugins are right on the cusp of becoming final or having updates. There's every chance one you need is just around the corner anyway (check the JIRA scheduling for a clearer idea). What are the risks? Suicidal? None? Olympic downhill skiiers only? What's the difference between suicidal and olympic downhill skiiers? (Just watching someone hit a net at 120km/h... ouch :) HTH, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: m2 -- Ready for Prime Time, yet?
The only thing I'd add is that the IDE extensions are not as mature as those for M1. Although I run the Eclipse extension (m2eclipse.codehaus.org) I am not really satisfied with it. It's pretty easy to use the mvn eclipse:eclipse command, though, to keep your .classpath and .project up to date and use the external build with the real Maven 2. -K On 2/14/06 4:27 PM, Brett Porter [EMAIL PROTECTED] wrote: On 2/15/06, Ray Ward [EMAIL PROTECTED] wrote: I read Vincent Massol's PPT dated 15 September 2005. He said, Short answer: No. But, that was 5 months ago! How about now? Well, in September, it wasn't final, so probably fair enough. There was a long discussion on this list a little more recently (maybe November?) where people debated it again. Long story short, yes: as long as you are using final release plugins. If you need certain plugins which are alpha, beta, or non-existant, then your experience of m2 will be that it is alpha, beta or incomplete. Especially if coming from m1, do your homework first, and if things you need aren't ready, tell us. Some plugins are right on the cusp of becoming final or having updates. There's every chance one you need is just around the corner anyway (check the JIRA scheduling for a clearer idea). What are the risks? Suicidal? None? Olympic downhill skiiers only? What's the difference between suicidal and olympic downhill skiiers? (Just watching someone hit a net at 120km/h... ouch :) HTH, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kathryn Huxtable Middleware Architect Core Middleware Information Technology, a division of Information Services The University of Kansas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Update for Maven plugin list
An update for the Maven plugin list.. A new JAXB plugin for Maven 2 is under construction. Alpha release expected this week. Plugin: Maven jaxb Plug-in Author for m2 version Jonathan Johnson --- Anyone have information or status of the JNLP Maven 2 plugin? Jerome Locoste is slated to be working on it.
[m2] Clover license files
According to Cenqua's documentation, I should be able to drop my clover.license file next to clover-1.3.11.jar in my local repository, and have it work. However, I just tried this, and it still won't find the license file. I see the plugin's licensePath/ attribute, but it seems like it shouldn't be necessary. (It's also undocumented - what's the default value?) All this worked fine in Maven 1... would be nice if it worked in Maven 2 as well. Thought I should check here before filing a JIRA on it. http://www.cenqua.com/clover/doc/ --Matthew Beermann - Yahoo! Mail Use Photomail to share photos without annoying attachments.
RE: [m2] ignore known hosts
Luca, user id is either your userid or some other userid for that system. So, for you it could be C:/Documents and Settings/Luca/.ssh Michael -Original Message- From: luca rasconi [mailto:[EMAIL PROTECTED] Sent: Thursday, February 09, 2006 9:48 AM To: Maven Users List Subject: Re: [m2] ignore known hosts i did it. it doesn't work! but there isn't an env variable namend USER_HOME. there is one named HOMEPATH whom value is C:\Documents and Settings\user id. i created USER_HOME=C:\Documents and Settings\user id and a dir .ssh within the file known_hosts copied from another host which use ssh to connect to the target host. i don't know. but someone is able to deploy in this way? tnx, Luca On 2/8/06, Michael Fiedler [EMAIL PROTECTED] wrote: If you are a Windows user, make a folder named .ssh in %USER_HOME%, i.eC:\Documents and Settings\user id\.ssh Michael -Original Message- From: Luca Gmail [mailto:[EMAIL PROTECTED] Sent: Friday, February 03, 2006 10:39 AM To: 'Maven Users List' Subject: RE: [m2] ignore known hosts In ither words: where wagon-ssh look for known_hosts file? tnx -Original Message- From: Rasconi Luca (u.e.) [mailto:[EMAIL PROTECTED] Sent: venerdì 3 febbraio 2006 14.38 To: Maven Users List Subject: [m2] ignore known hosts During the artifacts deploy I use scp to copy it to my repository. Is there a way to skip the authenticity of the repository's host? Tnx, Luca This is the ant task I use: target name=test-deploy depends=initTaskDefs artifact:install-provider artifactId=wagon-ssh version=1.0-alpha-5/ artifact:deploy file=jar/${jar.name} remoteRepository url=scp://myhost.myhost.it/sw/alive/instance/jetty/docroot/repository authentication username= / /remoteRepository pom refid=maven.project/ /artifact:deploy /target Thisi is the response: [artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5 [artifact:deploy] Deploying to scp://192.168.25.217/sw/alive/instance/jetty/docroot/repository [artifact:deploy] The authenticity of host '192.168.25.217' can't be established. [artifact:deploy] RSA key fingerprint is 4e:be:74:ba:77:79:a0:70:4e:a4:ec:55:20:02:02:54. [artifact:deploy] Are you sure you want to continue connecting? (yes/no): - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: m2 -- Ready for Prime Time, yet?
I use Maven 2.0 in production and I am quite satisfied. I haven't run in a lot of bugs. The documentation can look a little bit sparsed but there is a good wiki and this list is pretty active and helpful and Maven 2.0 is very intuitive in my opionion. But like Kathryn said the IDE integration isn't really mature yet (wich is normal since Maven 2.0 is just like 4 months old) but the Eclipse plugins seems to progress quite fast (two new versions in about one month) and big IDE vendors seems interested in it. For instance, ADF Faces was built using Maven 2.0. So when people say it is production ready, it is based on a command line usage for the moment. The only thing I would like to see some bugs fixed in it and wouldn't say it is production ready is the WebDav protocol support although it can be used. Other then that kudo to the Maven team and thank for the great product!! On 2/14/06, Kathryn Huxtable [EMAIL PROTECTED] wrote: The only thing I'd add is that the IDE extensions are not as mature as those for M1. Although I run the Eclipse extension (m2eclipse.codehaus.org) I am not really satisfied with it. It's pretty easy to use the mvn eclipse:eclipse command, though, to keep your .classpath and .project up to date and use the external build with the real Maven 2. -K On 2/14/06 4:27 PM, Brett Porter [EMAIL PROTECTED] wrote: On 2/15/06, Ray Ward [EMAIL PROTECTED] wrote: I read Vincent Massol's PPT dated 15 September 2005. He said, Short answer: No. But, that was 5 months ago! How about now? Well, in September, it wasn't final, so probably fair enough. There was a long discussion on this list a little more recently (maybe November?) where people debated it again. Long story short, yes: as long as you are using final release plugins. If you need certain plugins which are alpha, beta, or non-existant, then your experience of m2 will be that it is alpha, beta or incomplete. Especially if coming from m1, do your homework first, and if things you need aren't ready, tell us. Some plugins are right on the cusp of becoming final or having updates. There's every chance one you need is just around the corner anyway (check the JIRA scheduling for a clearer idea). What are the risks? Suicidal? None? Olympic downhill skiiers only? What's the difference between suicidal and olympic downhill skiiers? (Just watching someone hit a net at 120km/h... ouch :) HTH, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kathryn Huxtable Middleware Architect Core Middleware Information Technology, a division of Information Services The University of Kansas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: m2 -- Ready for Prime Time, yet?
I'll add that I looked over a colleague's shoulder when he opened a Maven2 project in NetBeans 5.0 with the Mevenide plugin and was very impressed. It figured everything out without creating a separate Ant build.xml like NB normally does. I'm not sure how solid it was for roundtrip project management, but he was able to build the project with no trouble. Personally, I use Eclipse and have been unsatisfied with the M2 plugin. K.C. -Original Message- From: Alexandre Poitras [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 4:56 PM To: Maven Users List Subject: Re: m2 -- Ready for Prime Time, yet? I use Maven 2.0 in production and I am quite satisfied. I haven't run in a lot of bugs. The documentation can look a little bit sparsed but there is a good wiki and this list is pretty active and helpful and Maven 2.0 is very intuitive in my opionion. But like Kathryn said the IDE integration isn't really mature yet (wich is normal since Maven 2.0 is just like 4 months old) but the Eclipse plugins seems to progress quite fast (two new versions in about one month) and big IDE vendors seems interested in it. For instance, ADF Faces was built using Maven 2.0. So when people say it is production ready, it is based on a command line usage for the moment. The only thing I would like to see some bugs fixed in it and wouldn't say it is production ready is the WebDav protocol support although it can be used. Other then that kudo to the Maven team and thank for the great product!! On 2/14/06, Kathryn Huxtable [EMAIL PROTECTED] wrote: The only thing I'd add is that the IDE extensions are not as mature as those for M1. Although I run the Eclipse extension (m2eclipse.codehaus.org) I am not really satisfied with it. It's pretty easy to use the mvn eclipse:eclipse command, though, to keep your .classpath and .project up to date and use the external build with the real Maven 2. -K On 2/14/06 4:27 PM, Brett Porter [EMAIL PROTECTED] wrote: On 2/15/06, Ray Ward [EMAIL PROTECTED] wrote: I read Vincent Massol's PPT dated 15 September 2005. He said, Short answer: No. But, that was 5 months ago! How about now? Well, in September, it wasn't final, so probably fair enough. There was a long discussion on this list a little more recently (maybe November?) where people debated it again. Long story short, yes: as long as you are using final release plugins. If you need certain plugins which are alpha, beta, or non-existant, then your experience of m2 will be that it is alpha, beta or incomplete. Especially if coming from m1, do your homework first, and if things you need aren't ready, tell us. Some plugins are right on the cusp of becoming final or having updates. There's every chance one you need is just around the corner anyway (check the JIRA scheduling for a clearer idea). What are the risks? Suicidal? None? Olympic downhill skiiers only? What's the difference between suicidal and olympic downhill skiiers? (Just watching someone hit a net at 120km/h... ouch :) HTH, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kathryn Huxtable Middleware Architect Core Middleware Information Technology, a division of Information Services The University of Kansas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven-proxy and snapshots problem
One problem I ran into with specifying your repositories in the pom: You will probably eventually want to have some inheritance and the repository definition will be at some parent pom above where you are building. In this case, if your repository definition is in the parent pom, maven won't know how to find your parent in the repository. A good ol' catch-22. This obviously isn't a problem if you are always checking out the code containing the parent and you have the correct layout where the parent is ../pom.xml. Just something to consider. -Original Message- From: Treloar, Barrie (SAPOL) [mailto:[EMAIL PROTECTED] Sent: Sunday, February 12, 2006 8:27 PM To: Maven Users List Subject: RE: maven-proxy and snapshots problem I am a bit confused about what you said. The page says : However the repositoryDefinitions profile section can be made simpler by using a proxy infront of the internal repositories. What I understand from this (and which sounds obvious to me) is: if you're using maven-proxy, you don't have to put those profile definitions in your settings.xml any longer. Why ? Because the mirror element replaces them all because maven-proxy handles everything from the URL http://NUCLEUS:/repository/; (which is the actual purpose of a proxy). So for what I've understood, you don't need to activate any extra repository definition profile when you're using maven-proxy. Am I wrong? Maybe central is a repository for which snapshots are not activated by default, and therefore when setting the mirror of central to maven-proxy, it does not handle them? This bit is still a work in progress. The mirror entry will only mirror artifacts from the repository with the same id as specified in the mirrorOf tag. Internal repositories are not deployed to central and therefore maven will not contact maven-proxy, even though I have configured maven-proxy to allow mirroring of the internal repositories. Maven will contact all repositories defined in settings.xml, in the order the are declared, looking for an artifact. So although it is not proxied maven can still locate the artifacts. Not proxying internal repositories isn't a big issue anyway. However from a discussion on the list it became clear that putting repository definitions in settings.xml is not ideal because 1) all developers need to update settings.xml to include the repositories 2) the pom should have authorative information about where dependency artifacts are located. I am still fiddling with this so I have not updated the document yet. So far, I have removed the profiles and activeProfiles section from settings.xml and placed the repository definitions into the repositories section of pom.xml. More will come later. As for the SNAPSHOT unique version, I put it to false because I don't want to have my snapshot repository getting bigger and bigger too fast. I know Maven knows well how to handle snapshots when unique version is activated, but I just want to save space. Fair enough. One other thing I need to add the document, is that I believe that no developer should be issuing the deploy command. This should be happening as part of continuous integration in nightly builds. So your snapshot repository size will be growing 365 times a year at worst. Hopefully some artifacts are being promoted out of snapshot faster than that. Barrie. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] getting clean to remove generated sources
I just read that clean 2.1 will support this and was put up for a release vote today. Maybe by Monday you will have a solution... -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 12:36 PM To: Maven Users List Subject: Re: SPAM: [m2] getting clean to remove generated sources If you generate your sources in target, they will be remove Emmanuel Xavier Toth a écrit : Is it possible to get clean to remove sources I generate during my build? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven-proxy and snapshots problem
I ended up having to require all developers set the repository in their settings just to bootstrap. Another work around is if you have a mirror of central defined to your maven proxy is to setup maven proxy to find the parent by looking in your repo. The problem here is that it won't work for snapshots because central has snapshots turned off by default. The solution to this? You guessed it, define a repository in your settings. As far as I can tell, there is no complete solution that doesn't require a repository in settings. Further complicating any attempts to outsmart maven was that repositories in the settings are searched before things in the pom. (can't remember why that was a problem, I think I was trying to cut down on the needless searching in locations where I know the files won't be found) -Original Message- From: Treloar, Barrie (SAPOL) [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 8:38 PM To: Maven Users List Subject: RE: maven-proxy and snapshots problem -Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] Sent: Wednesday, 15 February 2006 12:01 PM To: Maven Users List Subject: RE: maven-proxy and snapshots problem One problem I ran into with specifying your repositories in the pom: You will probably eventually want to have some inheritance and the repository definition will be at some parent pom above where you are building. In this case, if your repository definition is in the parent pom, maven won't know how to find your parent in the repository. A good ol' catch-22. This obviously isn't a problem if you are always checking out the code containing the parent and you have the correct layout where the parent is ../pom.xml. Just something to consider. Thank you for coherently articulating exactly my situation yesterday! I was at another developer's machine and I had this problem. We were creating a new module, and trying to link it to the parent pom. But the parent pom was not in our local repository, and not being available in the proxy since maven was only checking central. In this case the answer is obvious, checkout the parent and modify the parent pom since you need to define the module there anyway. Then install the parent pom in your local repository. But it doesn't solve the problem where: - A new developer starts on the project - Checks out the module they are working on - No parent pom in repository. I can't think of any real solutions to this problem. Previously it was working because my repository definitions were in settings.xml not in pom.xml. And all repositories in settings.xml where checked for the requested artifact. Now that the repository definitions are in the pom... Anyone have ideas? Barrie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hibernate3 plugin
A site that describes goals and documents the plugin would be most usefull. Srgjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven and Classpaths
If you really don't ever want to put them into a private repository, then use system scope dependencies... -Stephen On 2/14/06, Stephen Milner [EMAIL PROTECTED] wrote: To explain further, I need to be able to add class path jars to the manifest file that are not tracked by maven. These are internal jars that will not be in public or private repos. Currently, when I use the maven xml code from bellow I get all the items that I said my package depends on that maven tracks. The items that maven does not track do not show up in the manifest (aka the 3 jars in maven are there, items that are in my class path variable are not.). I don't mind explicitly saying I need them I just can't find anything that lets me know how. Thanks! Edwin Punzalan wrote: Hi, Is the use of extensions not good enough? How about dependencies with scopesystem/scope ? Can you explain further as I maybe misunderstanding what you want to do. ^_^ Stephen Milner wrote: I'm sure this has been brought up a lot of times but I couldn't find it via google or the mailing list . I'm using the maven plugin for creating jars like so: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifest mainClasscom.mycorp.ProtomanMain/mainClass addClasspathTrue/addClasspath /manifest /archive /configuration /plugin I would like to add items that Maven doesn't keep track of (jars that are added internally as plugins that may be dropped in at times). How do I explicitly tell maven to add these items in to the classpath? Even if I have to use a directive for each item added it would be fine. Thanks, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: M2 Eclipse Plugin vs. Command Line
Have you tried version 0.0.5 of the plugin? It works for me on Mac OSX 10.4.4. Ahh! Thanks! What a difference +0.0.1 makes. Its compiling now. I have some jar ordering problems on the classpath that I don't have when I run from the command line, but I think I can handle that problem. -Scott
Re: hibernate3 plugin
06-02-13, Michal Palička [EMAIL PROTECTED] napisał(a): the Hibernate3 plugin can be found at the mojo-sandbox. Hi, (Since it's the users mailing list I hope such irritating questions are acceptable ;)) What's the difference between the Hibernate3 plugin hosted at the mojo-sandbox and the XDoclet2 Hibernate plugin for Maven2? Michal Palicka Jacek -- Jacek Laskowski http://www.laskowski.org.pl
RE: hibernate3 plugin
Hello Michal The main difference is that while the hibernate3-maven-plugin is based on hibernate-tools (http://www.hibernate.org/hib_docs/tools/reference/en/html/ant.html) and can do more tasks like create a database schema base in your POJOs or generate a database documentation (kind of javadoc) also based in your POJOS Regards Johann Reyes -Original Message- From: Jacek Laskowski [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 15, 2006 2:03 AM To: Maven Users List Subject: Re: hibernate3 plugin 06-02-13, Michal Palička [EMAIL PROTECTED] napisał(a): the Hibernate3 plugin can be found at the mojo-sandbox. Hi, (Since it's the users mailing list I hope such irritating questionsare acceptable ;)) What's the difference between the Hibernate3 plugin hosted at themojo-sandbox and the XDoclet2 Hibernate plugin for Maven2? Michal Palicka Jacek --Jacek Laskowskihttp://www.laskowski.org.pl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]