Re: [continuum 1.0] BUILD ERROR Message
Can you filed a jira issue and attach all your logs? Allison, Bob a écrit : Looking at the log a little further, when I see the exception occur I seem to see an message about enqueuing a project before and after the exception occurs. Could the problem be caused by starting to build the first project before you finish looking for projects to run? -Original Message- From: Allison, Bob [mailto:[EMAIL PROTECTED] Sent: Friday, October 28, 2005 06:43 To: continuum-users@maven.apache.org Subject: RE: [continuum 1.0] BUILD ERROR Message It seems to be an occasional message. The two projects I have are on a schedule which runs every 15 minutes and I received another failure like this after 12 hours then another one 2 1/2 hours after that. I have not made any SCM changes in the interim on either project, so it would not appear to be related to SCM changes. On the third occurrence the exception was logged by org.quartz.core.JobRunShell rather than being reported by the BuildController; I was not sent an email about the third occurrence. Looking at the lines in the log, I always see the same two projects (6 and 7) involved in the locks. The interesting thing is that project 6 is built once a day, project 1 is the other frequently-run project. Anything else I can do to help pin this one down? -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Thursday, October 27, 2005 17:28 To: continuum-users@maven.apache.org Subject: Re: [continuum 1.0] BUILD ERROR Message strange error, I never see it. Can you reproduce it? Emmanuel Donszelmann, Mark a écrit : Hi I see the same on some of my 15 projects in continuum 1.0. It happens from time to time, but they do compile most of the time. Regards Mark Donszelmann -Original Message- From: Allison, Bob [mailto:[EMAIL PROTECTED] Sent: Thursday, October 27, 2005 12:08 PM To: Continuum Users List Subject: [continuum 1.0] BUILD ERROR Message Got this log message from Continuum 1.0 Final while checking to see if a Maven 2 project should be run. Anyone have any idea what this means? I have two different projects that would have been checking for execution at the time. Should this get filed in JIRA? -Original Message- From: Q.Access Continuous Integration System [mailto:[EMAIL PROTECTED] Sent: Thursday, October 27, 2005 15:00 To: Allison, Bob Subject: [continuum] BUILD ERROR: Bob's Maven 2.0 Experiment Build statistics: State: Error Previous State: Ok Started at: Thu, 27 Oct 2005 13:00:00 -0600 Finished at: Thu, 27 Oct 2005 13:00:20 -0600 Total time: 20s Build Trigger: Schedule Exit code: 0 Building machine hostname: qadev21.dev.qintra.com Operating system : Linux(unknown) Java version : 1.5.0_01(Sun Microsystems Inc.) Build Error: javax.jdo.JDODataStoreException: Locate request failed: SELECT 1 FROM PROJECT THIS WHERE (THIS.ID = ?) at org.jpox.store.rdbms.request.LocateRequest.execute(LocateRequest.java:13 2) at org.jpox.store.rdbms.table.ClassTable.locate(ClassTable.java:1901) at org.jpox.store.StoreManager.locate(StoreManager.java:793) at org.jpox.state.StateManagerImpl.locate(StateManagerImpl.java:3670) at org.jpox.state.StateManagerImpl.attachCopy(StateManagerImpl.java:3411) at org.jpox.AbstractPersistenceManager.attachCopy(AbstractPersistenceManage r.java:1644) at org.jpox.sco.List.attachCopy(List.java:326) at org.jpox.state.AttachFieldManager.storeObjectField(AttachFieldManager.ja va:107) at org.jpox.state.StateManagerImpl.providedObjectField(StateManagerImpl.jav a:2394) at org.apache.maven.continuum.model.project.ProjectGroup.jdoProvideField(Pr ojectGroup.java) at org.apache.maven.continuum.model.project.ProjectGroup.jdoProvideFields(P rojectGroup.java) at org.jpox.state.StateManagerImpl.provideFields(StateManagerImpl.java:2732 ) at org.jpox.state.StateManagerImpl.internalAttachCopy(StateManagerImpl.java :3518) at org.jpox.state.StateManagerImpl.attachCopy(StateManagerImpl.java:3446) at org.jpox.AbstractPersistenceManager.attachCopy(AbstractPersistenceManage r.java:1644) at org.jpox.state.AttachFieldManager.storeObjectField(AttachFieldManager.ja va:120) at org.jpox.state.StateManagerImpl.providedObjectField(StateManagerImpl.jav a:2394) at org.apache.maven.continuum.model.project.Project.jdoProvideField(Project .java) at org.apache.maven.continuum.model.project.Project.jdoProvideFields(Projec t.java) at org.jpox.state.StateManagerImpl.provideFields(StateManagerImpl.java:2732 ) at org.jpox.state.StateManagerImpl.internalAttachCopy(StateManagerImpl.java :3518) at org.jpox.state.StateManagerImpl.attachCopy(StateManagerImpl.java:3446)
RE: Question about Jabber Configuration
Hi Emmanuel, It seems quite easy to enable the SSL connection in Jabber client. The DefaultJabberClent class has a function public void setSslConnection( boolean isSslConnection ) which will enable the SSL when pass a true into it. Therefore the solution could be adding a property in the application.xml file and call jabberClient.setSslConnection(true); before you make the Jabber connection if the user enable SSL in the xml file. I hope you can help me add the SSL Jabber support in Continuum, I can help for the testing. I wish I could do it meself. However, it has been two days but I still couldn't figure out how to make the Continuum build on my machine. It seems it build OK although get a few errors in testing. But when I tried to start Continuum from the continuum-plexus-application/target/plexus-test-runtime/bin/plexus.sh I got errors as the following. I am going to keep trying it since we are going to move to the Continuum very soon. But I do hope you can add this in the next release. Thanks, Frank The error I got when ran plexus.sh: ... constituent[15]: file:/nfs/fzhao/work/continuum/develop/continuum-trunk/continuum-plexus-application/target/plexus-test-runtime/services/plexus-service-jetty-1.0-alpha-3/classes/ --- Exception in thread main java.lang.NoSuchMethodError: java.lang.IllegalArgumentException: method init(Ljava/lang/String;Ljava/lang/Throwable;)V not found at org.codehaus.plexus.logging.log4j.Log4JLoggerManager.initialize(Log4JLoggerManager.java:202) at org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:16) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95) at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:327) at org.codehaus.plexus.DefaultPlexusContainer.initializeLoggerManager(DefaultPlexusContainer.java:1194) at org.codehaus.plexus.DefaultPlexusContainer.initialize(DefaultPlexusContainer.java:633) at org.codehaus.plexus.application.deploy.DefaultApplicationDeployer.deployApplicationDirectory(DefaultApplicationDeployer.java:364) at org.codehaus.plexus.application.deploy.DefaultApplicationDeployer.deployJar(DefaultApplicationDeployer.java:212) at org.codehaus.plexus.application.deploy.DefaultApplicationDeployer.deploy(DefaultApplicationDeployer.java:136) at org.codehaus.plexus.application.deploy.DefaultApplicationDeployer.deploy(DefaultApplicationDeployer.java:116) at org.codehaus.plexus.application.DefaultApplicationServer$2.onJarDiscovered(DefaultApplicationServer.java:117) at org.codehaus.plexus.application.supervisor.DefaultSupervisor.scanDirectory(DefaultSupervisor.java:89) at org.codehaus.plexus.application.supervisor.DefaultSupervisor.scan(DefaultSupervisor.java:68) at org.codehaus.plexus.application.DefaultApplicationServer.start(DefaultApplicationServer.java:146) at org.codehaus.plexus.personality.plexus.lifecycle.phase.StartPhase.execute(StartPhase.java:16) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95) at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:327) at org.codehaus.plexus.application.PlexusApplicationHost.start(PlexusApplicationHost.java:109) at org.codehaus.plexus.application.PlexusApplicationHost.main(PlexusApplicationHost.java:236) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.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
Re: build fails not noticed for maven1/win32?
Baz a écrit : I was on 1.0. The fix doesnt work on that, so I've upgraded to 1.0.2; ran into a couple of issues though: - I changed a file to break the build and fired it off to test this. The log checking takes forever (cvs -f -d XXX -q log). From the flags this is going to dump the entire history from CVS. Shouldn't that be more like 'cvs -z3 -f -d XXX log -N -d1 day ago ' or something, to trim the output to commits recent enough to affect the integration, and use compression? I think cvsnt doesn't support z3 compression, but I'm not sure. Some times: with '-z3 ... -N -d1 day ago' our log is 1.4Mb and dumps in 10s. With just -z3, the log is 16.2Mb and takes about 15s. With neither option, it takes 1m 55s(!) and annoys all the developers by holding locks :) Yes, it's an omission in maven-scm code. If you filed an issue in maven-scm project, we can remember it. - So I killed that and tried to get it to do the build again without the log, which it does when it doesnt see any updates; although the build is marked 'in progress'. I saw it unstick itself from that state earlier today, and presumed it did that on the hourly schedule. Being at the top of the hour, I decided to set up a 5 min schedule to hurry things up. Using quartz's fugly cron[1] every 5 mins is: 0 0,5,10,15,20,25,30,35,40,45,50,55 * * * * Your expression isn't correct, it must be 0 0,5,10,15,20,25,30,35,40,45,50,55 * * * ? http://www.opensymphony.com/quartz/api/org/quartz/CronTrigger.html this schedule failed to fire, twice. So I bounced continuum, and it didn't restart: Caused by: java.lang.UnsupportedOperationException: Support for specifying both a day-of-week AND a day-of-month parameter is not implemented. at org.quartz.CronTrigger.getTimeAfter(CronTrigger.java:1985) Ok, so now I could figure out how to log into derby, find the broken data and fix it - or just reinstall, since I only had one project set up so far. Guess that'll teach me to mess with the schedules ;) ... Just mentioning this all in case other people see the problems, I'm not sure these are worth filing bug reports on. -Baz [1] rantwe found quartz integration in our own product deeply painful; the db backend was full of bugs and the code is tortuous. So we went back to the cron manpage. The traditional Vixie design is pretty damn elegant, schedules just need 134 bits of storage, and looping for a 'next' date always terminates at most 28 years into the future. The parser and date iterator took well under 200 LOC...and we've never touched quartz again./rant We don't use db job storage, we store only cron expressions. Emmanuel On 10/28/05, Emmanuel Venisse [EMAIL PROTECTED] wrote: Do you use maven 1.0.2? It's a problem in maven.bat. I've add the workaround in continuum faq http://maven.apache.org/continuum/faqs.html Emmanuel Baz a écrit : When I build a maven-1.0 project, its being marked as successful even if the build fails, building on win32. Is this (still) a known issue? I've seen something similar before - as far back as 2002, forehead was swallowing maven's status code. I had to patch that to get it working with anthill. (http://lists.urbancode.com/pipermail/anthill/2002-December/000543.html - I mention it there, but it seems that jira is now defunct and forehead never made the move to codehaus).
Children cannot find master pom in local repo
Hi, I have several projects and try to build them with a master POM containing an artifactId proj-master. The master contains module entries for each of the children. The children POMs point back to the master in a parent element. All projects have the same groupID. I used mvn install on the master to have everything in the local repository. Now, when I try to build a child separately the build fails because a proj-master.pom artifact cannot be found in the local or remote repository. I checked the local repo, it is true, there is no such POM. I'm new to mvn, maybe I didn't get the project structure right. The proj-master in fact should not produce any artifacts, it rather causes the submodules to build their artifacts. Then why do the children expect an artifact of the master? Regards, Dietrich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Children cannot find master pom in local repo
Dietrich Schulten wrote: Hi, I have several projects and try to build them with a master POM containing an artifactId proj-master. The master contains module entries for each of the children. The children POMs point back to the master in a parent element. All projects have the same groupID. I used mvn install on the master to have everything in the local repository. Now, when I try to build a child separately the build fails because a proj-master.pom artifact cannot be found in the local or remote repository. I checked the local repo, it is true, there is no such POM. I'm new to mvn, maybe I didn't get the project structure right. The proj-master in fact should not produce any artifacts, it rather causes the submodules to build their artifacts. Then why do the children expect an artifact of the master? Regards, Dietrich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Hi, Please post the build results, it will be easier to see what's causing the error. Cheers, Johnny
Re: keyword SNAPSHOT in depedency version is ignored
Hi Lukas, I had the same problem as Stefan ( I am a maven beginner also) and get the same explanation as you give. The fact is that I was expecting the same behavior as Stefan and maybe that can be a possible enhancement to put on the strack? Maybe I miss something but I don't see why it will not be possible. Regards. Gianfranco Oldani Original Message Follows From: Lukas Theussl [EMAIL PROTECTED] Reply-To: Maven Users List users@maven.apache.org To: Maven Users List users@maven.apache.org Subject: Re: keyword SNAPSHOT in depedency version is ignored Date: Thu, 27 Oct 2005 21:11:08 + This is a misunderstanding of the SNAPSHOT functionality, maven does _not_ replace SNAPSHOT with the latest available version of a project. Using a SNAPSHOT dependency still assumes that the project that you depend upon has actually published a SNAPSHOT. This is not the case for commons-logging. See http://maven.apache.org/maven-1.x/using/managing-dependencies.html#Using_SNAPSHOT_Dependencies Regards, Lukas Dr. Stefan Reisner wrote: I have created the following dependency in my maven project: dependency groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId versionSNAPSHOT/version /dependency This results in the following behaviour being logged on the console when invoking maven: D:\workspace\de.syngenio.kompass.kikmaven __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 Attempting to download commons-logging-SNAPSHOT.jar. WARNING: Failed to download commons-logging-SNAPSHOT.jar. My expectation was that maven would replace SNAPSHOT (or for that any version value in which SNAPSHOT occurs as a substring) by the most current version available in the repository. What is going wrong here? I should add that I'm new to maven, so it's probably something stupid simple. Best regards, Dr. Stefan Reisner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Éradiquez enfin les fenêtres intempestives et surfez en toute tranquilité!!! http://toolbar.fr.msn.ch?DI=1057XAPID=2083 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Children cannot find master pom in local repo
Below you find the output, the master pom and the child pom. Johnny R. Ruiz schrieb: Hi, Please post the build results, it will be easier to see what's causing the error. The build output within a sub-project: $ mvn compile [INFO] Scanning for projects... [INFO] - --- [INFO] Building Implementation of enter*easy Core Interfaces [INFO]task-segment: [compile] [INFO] - --- [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [WARNING] POM for: 'commons-dbcp:commons-dbcp:pom:1.2.1' does not appear to be v alid. Its will be ignored for artifact resolution. Reason: Failed to validate POM [INFO] - --- [ERROR] BUILD ERROR [INFO] - --- [INFO] Failed to resolve artifact. GroupId: de.yellow.eeasy ArtifactId: eeasy-master Version: 1.0-SNAPSHOT Reason: Unable to download the artifact from any repository de.yellow.eeasy:eeasy-master:1.0-SNAPSHOT:pom from the specified remote repositories: central (http://repo1.maven.org/maven2) - The problem is the line Unable to download... The master POM: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdde.yellow.eeasy/groupId artifactIdeeasy-master/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameThe Server/name urlhttp://www.unknown.de/url dependencyManagement dependencies dependency groupIdde.yellow.eeasy/groupId artifactIdeeasy-core/artifactId version1.0-SNAPSHOT/version /dependency dependency groupIdde.yellow.eeasy/groupId artifactIdeeasy-ifc-impl/artifactId version1.0-SNAPSHOT/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency dependency groupIdjunit-doclet/groupId artifactIdjunit-doclet/artifactId version1.0.2/version /dependency dependency groupIdspringframework/groupId artifactIdspring/artifactId version1.2.5/version /dependency dependency groupIdacegisecurity/groupId artifactIdacegi-security/artifactId version0.8.3/version /dependency dependency groupIdehcache/groupId artifactIdehcache/artifactId version1.1/version /dependency dependency groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId version1.0.4/version /dependency dependency groupIdcommons-logging/groupId artifactIdcommons-logging-api/artifactId version1.0.4/version /dependency dependency groupIdcommons-discovery/groupId artifactIdcommons-discovery/artifactId version0.2/version /dependency dependency groupIdcommons-codec/groupId artifactIdcommons-codec/artifactId version1.3/version /dependency dependency groupIdcommons-collections/groupId artifactIdcommons-collections/artifactId version3.1/version /dependency
Re: OutOfMemoryErrors in Reports
I am using maven 2 and the tests I run are StrutsTestcase and JUnit. I can run them in eclipse (and I see that they are consuming lot of memory) but the mvn test -goal fails with the OutOfMemoryError. In the mvn.bat file I added -Xmx512m to the MAVEN_OPT variable but that did not help. Christian Mailing list archives Site index · List index Message view« Date » · « Thread » Top « Date » · « Thread » From Arnaud HERITIER [EMAIL PROTECTED] Subject RE: OutOfMemoryErrors in Reports DateThu, 27 Oct 2005 20:03:16 GMT Is it with m1 or m2 ? I suppose it's for m2 because there's no official surfire plugin for m1 ? Arnaud -Message d'origine- De : Jamie Bisotti [mailto:[EMAIL PROTECTED] Envoyé : jeudi 27 octobre 2005 19:19 À : Maven Users List Objet : Re: OutOfMemoryErrors in Reports On 10/25/05, Christian Goos [EMAIL PROTECTED] wrote: Hi I get OutOfMemoryErrors with javadoc, checkstyle and surefire reports. Configure Maven_opts did not help. What can I do? Thanks for help Christian __ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE http://WEB.DE FreeMail: http://f.web.de/?mc=021193 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] It should be MAVEN_OPTS. However that only works if you are not forking VMs, I think. -- Jamie Bisotti - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] New plugin for Jetty6
FYI, I've created a new plugin that runs Jetty6 on a Maven war project without first requiring that the project is built into a war or exploded war. This allows you to develop in an IDE and to avoid having to run the mvn packaging step to test. But the really useful feature of this plugin is that you leave it running, and it will periodically scan the project for changes and automatically redeploy the webapp if needed. This is particularly convenient if you're using an IDE that does automatic compilation - you can edit your changes and they will be reflected in the running web container without you needing to do a thing. At the moment, the plugin is on the MortBay Maven2 repository at scpexe://jetty.mortbay.org/home/ftp/pub/maven2. Hopefully, this will be mirrored to the main Maven2 repository soon. The plugin is: groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty6-plugin/artifactId version1.0/version You run it like so: mvn jetty6:run The plugin has documentation with it, but isn't linked in to a website (yet). In the meanwhile, you can check the JettyExperimental project out on SourceForge and build it to get the plugin doco. cheers Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Seems like the CVS checkout command is not compatible with CVSNT
Hello! Continuum can't checkout sources from CVS using following SCM URL scm:cvs:pserver:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:/cvs/src:BPM/source/com.exigen.bpm.util. It results in errors shown down bellow. As you can see the error happens while invoking command cvs -f -d :pserver:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:2401/cvs/src -q checkout -r -d 1 BPM/source/com.exigen.bpm.util. And indeed, even manually run this command produce an error. However if I adjust the command to cvs -f -d :pserver:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:2401/cvs/src -q checkout BPM/source/com.exigen.bpm.util (remove -r -d 1) then the checkout happens without any errors. === console screen with error messages == jvm 1 | 2005-10-27 14:21:52,071 [SocketListener0-5] INFO Continuum - Enqueuing 'com.exigen.bpm:util:jar:1.0-SNAPSHOT' (Build definition id=1. jvm 1 | 2005-10-27 14:21:52,492 [Thread-1] INFO ContinuumScm - Checking out project: 'com.exigen.bpm:util:jar:1.0-SNAPSHOT', id: '1' to 'C:\WIN32APP\continuum-1.0\bin\win32\..\..\apps\continuum\working-directory\1' with branch/tag . jvm 1 | 2005-10-27 14:21:52,492 [Thread-1] DEBUG ScmManager - cvsRoot: :pserver:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:2401/cvs/src jvm 1 | 2005-10-27 14:21:52,492 [Thread-1] DEBUG ScmManager - passFile: C:\Documents and Settings\miks\.cvspass jvm 1 | 2005-10-27 14:21:52,492 [Thread-1] DEBUG ScmManager - cvsroot :pserver:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:2401/cvs/src already exist in C:\Documents and Settings\miks\.cvspass. SKIPPED. jvm 1 | 2005-10-27 14:21:52,492 [Thread-1] DEBUG ScmManager - Working directory: C:\WIN32APP\continuum-1.0\bin\win32\..\..\apps\continuum\working-directory\1 jvm 1 | 2005-10-27 14:21:52,492 [Thread-1] DEBUG ScmManager - Command line: cvs -f -d :pserver:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:2401/cvs/src -q checkout -r -d 1 BPM/source/com.exigen.bpm.util jvm 1 | 2005-10-27 14:21:53,864 [Thread-1] WARN ContinuumScm - Error while checking out the code for project: 'com.exigen.bpm:util:jar:1.0-SNAPSHOT', id: '1' to 'C:\WIN32APP\continuum-1.0\bin\win32\..\..\apps\continuum\working-directory\1' with branch/tag . jvm 1 | 2005-10-27 14:21:53,864 [Thread-1] WARN ContinuumScm - Command output: cvs server: cannot find module `1' - ignored jvm 1 | jvm 1 | 2005-10-27 14:21:53,864 [Thread-1] WARN ContinuumScm - Provider message: The cvs command failed. jvm 1 | 2005-10-27 14:21:54,104 [Thread-1] WARN ConfigurationService - Error reading build output for build '18'. P.S. I've also submitted this issue to JIRA -- http://jira.codehaus.org/browse/CONTINUUM-373 Best Regards, Miks Rozenbergs
Re: Children cannot find master pom in local repo
Hi, In your master pom. Shouldn't the packagingjar/packaging be packagingpom/packaging ? Please try it out and do mvn install in the master project. After trying it out, then do the mvn install in the child project. Let me know if this works. :D Cheers, Johnny Dietrich Schulten wrote: Below you find the output, the master pom and the child pom. Johnny R. Ruiz schrieb: Hi, Please post the build results, it will be easier to see what's causing the error. The build output within a sub-project: $ mvn compile [INFO] Scanning for projects... [INFO] - --- [INFO] Building Implementation of enter*easy Core Interfaces [INFO]task-segment: [compile] [INFO] - --- [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [WARNING] POM for: 'commons-dbcp:commons-dbcp:pom:1.2.1' does not appear to be v alid. Its will be ignored for artifact resolution. Reason: Failed to validate POM [INFO] - --- [ERROR] BUILD ERROR [INFO] - --- [INFO] Failed to resolve artifact. GroupId: de.yellow.eeasy ArtifactId: eeasy-master Version: 1.0-SNAPSHOT Reason: Unable to download the artifact from any repository de.yellow.eeasy:eeasy-master:1.0-SNAPSHOT:pom from the specified remote repositories: central (http://repo1.maven.org/maven2) - The problem is the line Unable to download... The master POM: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdde.yellow.eeasy/groupId artifactIdeeasy-master/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameThe Server/name urlhttp://www.unknown.de/url dependencyManagement dependencies dependency groupIdde.yellow.eeasy/groupId artifactIdeeasy-core/artifactId version1.0-SNAPSHOT/version /dependency dependency groupIdde.yellow.eeasy/groupId artifactIdeeasy-ifc-impl/artifactId version1.0-SNAPSHOT/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency dependency groupIdjunit-doclet/groupId artifactIdjunit-doclet/artifactId version1.0.2/version /dependency dependency groupIdspringframework/groupId artifactIdspring/artifactId version1.2.5/version /dependency dependency groupIdacegisecurity/groupId artifactIdacegi-security/artifactId version0.8.3/version /dependency dependency groupIdehcache/groupId artifactIdehcache/artifactId version1.1/version /dependency dependency groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId version1.0.4/version /dependency dependency groupIdcommons-logging/groupId artifactIdcommons-logging-api/artifactId version1.0.4/version /dependency dependency groupIdcommons-discovery/groupId artifactIdcommons-discovery/artifactId version0.2/version /dependency dependency groupIdcommons-codec/groupId artifactIdcommons-codec/artifactId
Re: Parent POM Properties
Jason van Zyl wrote: What is it concretely you are trying to do. Often users give us solutions to their problems without actually telling us what the problem is. We really need to know what you're trying to do first. We definitely don't want duplication and is something we try to avoid so we need more details. I'll try again with an example: Given a project with three subprojects, I want to use a checkstyle definition that is valid for all three subprojects. (The checkstyle definition itself differs from project to project since it mostly depends on the style used by the customer.) +- toplevel/ | +- pom.xml +- src/ | | | +- java/ | | | +- resources/ || |+- checkstyle.xml | +- subproj1/ | | | +- pom.xml | +- src/ | +- ... | +- subproj2/ | +- pom.xml +- src/ +- ... Now, if I want to include a checkstyle configuration like the following in toplevel/pom.xml so that it is picked up by all subprojects: ... configuration configFile${topdir}/src/java/resources/checkstyle.xml/configFile /configuration ... I cannot use ${basedir} since this always yields the base directory of the subproject being built. What I want is to access resources relative to the toplevel directory. I don't want to use a fixed URL for the location since I want to have versioning for the file and I also need it to be in a relative location since a customer will build the project in a location that may not even have access to the fixed URL (even though I could work around this using a profile). Cheers, // Bruno PS: I am aware that I cannot currently set the checkstyle configuration, see http://jira.codehaus.org/browse/MNG-587 and http://jira.codehaus.org/browse/MNG-1113 (I have a local copy that allows me to do anyway until an official solution is out). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Migration path
I tried it and it doesn't work because jpox can't add new fields, only new tables. Emmanuel Brett Porter a écrit : I thought the DB schema wasn't changing post beta? What changed? If it was purely the addition of fields, I think copying the database across should work... - Brett On 10/26/05, Mark Hobson [EMAIL PROTECTED] wrote: On 26/10/05, Emmanuel Venisse [EMAIL PROTECTED] wrote: The migration tool is planned for continuum 1.1, so you need to re-add all your projects. Sorry. I feared you'd say that ;) I'll look forward to the migration tool.. Cheers, Mark
Re: Why continuum always auto stopped?
your shell console or shell session is always open? Emmanuel Hong Xing a écrit : I starup continuum using command ./run.sh start. Continuum can run for a while(3 or 4 mins), then it stopped, but nobody stop it! wrapper.log: INFO | jvm 1| 2005/10/28 12:41:54 | [INFO] The application server has started. INFO | jvm 1| 2005/10/28 12:42:44 | 12:42:43.984 EVENT Started HttpContext[/] INFO | jvm 1| 2005/10/28 12:43:04 | 2005-10-28 12:43:04,142 [SocketListener0-1] INFO Action:login - Trying to log in admin INFO | jvm 1| 2005/10/28 12:45:02 | [INFO] Shutting down the application container. INFO | jvm 1| 2005/10/28 12:45:02 | 12:45:02.072 EVENT Stopping Acceptor ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=9 999] INFO | jvm 1| 2005/10/28 12:45:02 | 12:45:02.074 EVENT Stopped SocketListener on 0.0.0.0: INFO | jvm 1| 2005/10/28 12:45:02 | 12:45:02.077 EVENT Stopped WebApplicationContext[/continuum,/usr/local/continuum-1.0/bin/ linux/../../apps/continuum/webapp] INFO | jvm 1| 2005/10/28 12:45:02 | 12:45:02.077 EVENT Stopped HttpContext[/] INFO | jvm 1| 2005/10/28 12:45:02 | 12:45:02.078 EVENT Stopped [EMAIL PROTECTED] INFO | jvm 1| 2005/10/28 12:45:02 | [INFO] Stopping servlet container service. INFO | jvm 1| 2005/10/28 12:45:02 | [INFO] Undeploying 'continuum'. INFO | jvm 1| 2005/10/28 12:45:02 | 2005-10-28 12:45:02,084 [Thread-7] INFO TaskQueueExecutor:check-out-project - Executor th read got shutdown signal. INFO | jvm 1| 2005/10/28 12:45:02 | 2005-10-28 12:45:02,084 [Thread-7] INFO TaskQueueExecutor:check-out-project - Waiting unt il task executor 'check-out-project' is idling... INFO | jvm 1| 2005/10/28 12:45:02 | 2005-10-28 12:45:02,084 [Thread-2] INFO TaskQueueExecutor:check-out-project - Executor th read 'check-out-project' exited. INFO | jvm 1| 2005/10/28 12:45:02 | java.util.NoSuchElementException INFO | jvm 1| 2005/10/28 12:45:02 | 2005-10-28 12:45:02,102 [Thread-7] INFO Continuum - Stopping Continu um. INFO | jvm 1| 2005/10/28 12:45:02 | 2005-10-28 12:45:02,102 [Thread-7] INFO Continuum - Continuum stoppe d.
Re: How to force rebuild of projects depending on changed Project
It's planned for 1.1 Emmanuel Christian Schlaefcke a écrit : Hi folks, I have a java module that is shared by two webapps (all as m2 projects). At the moment I have to build the webapps war files manually when I change the java module. Can I tell continuum to force a rebuild/war of the webapps when the java module changes? Thanks Regards, Christian
Re: SPAM: Seems like the CVS checkout command is not compatible with CVSNT
Yes, your are several people that have this pb. cvsnt doesn't seems to respect arguments of cvs command line. You can install cygwin and cvs, and put cvs in your path. Emmanuel Miks Rozenbergs a écrit : Hello! Continuum can't checkout sources from CVS using following SCM URL scm:cvs:pserver:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:/cvs/src:BPM/source/com.exigen.bpm.util. It results in errors shown down bellow. As you can see the error happens while invoking command cvs -f -d :pserver:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:2401/cvs/src -q checkout -r -d 1 BPM/source/com.exigen.bpm.util. And indeed, even manually run this command produce an error. However if I adjust the command to cvs -f -d :pserver:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:2401/cvs/src -q checkout BPM/source/com.exigen.bpm.util (remove -r -d 1) then the checkout happens without any errors. === console screen with error messages == jvm 1 | 2005-10-27 14:21:52,071 [SocketListener0-5] INFO Continuum - Enqueuing 'com.exigen.bpm:util:jar:1.0-SNAPSHOT' (Build definition id=1. jvm 1 | 2005-10-27 14:21:52,492 [Thread-1] INFO ContinuumScm - Checking out project: 'com.exigen.bpm:util:jar:1.0-SNAPSHOT', id: '1' to 'C:\WIN32APP\continuum-1.0\bin\win32\..\..\apps\continuum\working-directory\1' with branch/tag . jvm 1 | 2005-10-27 14:21:52,492 [Thread-1] DEBUG ScmManager - cvsRoot: :pserver:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:2401/cvs/src jvm 1 | 2005-10-27 14:21:52,492 [Thread-1] DEBUG ScmManager - passFile: C:\Documents and Settings\miks\.cvspass jvm 1 | 2005-10-27 14:21:52,492 [Thread-1] DEBUG ScmManager - cvsroot :pserver:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:2401/cvs/src already exist in C:\Documents and Settings\miks\.cvspass. SKIPPED. jvm 1 | 2005-10-27 14:21:52,492 [Thread-1] DEBUG ScmManager - Working directory: C:\WIN32APP\continuum-1.0\bin\win32\..\..\apps\continuum\working-directory\1 jvm 1 | 2005-10-27 14:21:52,492 [Thread-1] DEBUG ScmManager - Command line: cvs -f -d :pserver:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:2401/cvs/src -q checkout -r -d 1 BPM/source/com.exigen.bpm.util jvm 1 | 2005-10-27 14:21:53,864 [Thread-1] WARN ContinuumScm - Error while checking out the code for project: 'com.exigen.bpm:util:jar:1.0-SNAPSHOT', id: '1' to 'C:\WIN32APP\continuum-1.0\bin\win32\..\..\apps\continuum\working-directory\1' with branch/tag . jvm 1 | 2005-10-27 14:21:53,864 [Thread-1] WARN ContinuumScm - Command output: cvs server: cannot find module `1' - ignored jvm 1 | jvm 1 | 2005-10-27 14:21:53,864 [Thread-1] WARN ContinuumScm - Provider message: The cvs command failed. jvm 1 | 2005-10-27 14:21:54,104 [Thread-1] WARN ConfigurationService - Error reading build output for build '18'. P.S. I've also submitted this issue to JIRA -- http://jira.codehaus.org/browse/CONTINUUM-373 Best Regards, Miks Rozenbergs
Does CruiseControl support M2?
Does CruiseControl support M2?
compile error
myfile.java:[11,1] annotations are not supported in -source 1.3 (try -source 1.5 to enable annotations) @SuppressWarnings(serial) Executing mvn install i had that error. Where I have to set -source options? I try mvn -source 1.5 compile and mvn compile -source 1.5 and mvn compiler:compile -Dsource=1.5 and also mvn compiler:compile -DcompilerVersion=1.5 Why annotations doesn't work? Tnx, Luca
Re: OutOfMemoryErrors in Reports
Hello again, I just got another proof that I should avoid doing 2 things at the same time. The configuration in MAVEN_OPTS works of course, I just put the parameter in the wrong mvn.bat-file. Sorry for not paying attention and thanks for trying to help me! Christian I am using maven 2 and the tests I run are StrutsTestcase and JUnit. I can run them in eclipse (and I see that they are consuming lot of memory) but the mvn test -goal fails with the OutOfMemoryError. In the mvn.bat file I added -Xmx512m to the MAVEN_OPT variable but that did not help. Christian Mailing list archives Site index #65533; List index Message view#65533; Date #65533; #65533; #65533; Thread #65533; Top #65533; Date #65533; #65533; #65533; Thread #65533; From Arnaud HERITIER [EMAIL PROTECTED] Subject RE: OutOfMemoryErrors in Reports DateThu, 27 Oct 2005 20:03:16 GMT Is it with m1 or m2 ? I suppose it's for m2 because there's no official surfire plugin for m1 ? Arnaud -Message d'origine- De : Jamie Bisotti [mailto:[EMAIL PROTECTED] Envoy#65533; : jeudi 27 octobre 2005 19:19 #65533; : Maven Users List Objet : Re: OutOfMemoryErrors in Reports On 10/25/05, Christian Goos [EMAIL PROTECTED] wrote: Hi I get OutOfMemoryErrors with javadoc, checkstyle and surefire reports. Configure Maven_opts did not help. What can I do? Thanks for help Christian __ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE http://WEB.DE FreeMail: http://f.web.de/?mc=021193 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] It should be MAVEN_OPTS. However that only works if you are not forking VMs, I think. -- Jamie Bisotti __ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
crazy in hardhead maven2 ( or me)
I try to build a SWT repository in my FTP server. SWT includes many dll or so file and their name are hard-code in SWT java code. I take days to try to find a way to deploy jar, src zip and dll. Failed. Folllowing is my assumed solution: 1) For maven2 repository file name rule!? it is obviously not meet my requirement. 2) does maven2 provide a customized artifact name rule? 3) Zip all dlls and unzip it after download, it seems need ant to do this. Are there any solution for this case? Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does CruiseControl support M2?
I don't think but continuum does. Emmanuel Hong Xing a écrit : Does CruiseControl support M2? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
newby questions
hello i'm new to maven 2 and i reading around maven for a couple of days but i'm stuck in a problem were i don't know how to get out - maybe somebody can help me: 1. i have an existing project an i want to maven-enable it - i have tried out to change an existing pom.xml but when i call mvn compile i get the errors listed below - really strange C:\data\projects\MetaGruppenWizzy\src\at\ac\univie\metagruppenwizzy\dao\ListReso lverJdbc.java:[13,37] package org.springframework.jdbc.core does not exist C:\data\projects\MetaGruppenWizzy\src\at\ac\univie\metagruppenwizzy\dao\ListReso lverJdbc.java:[14,45] package org.springframework.jdbc.core.support does not exi st (and more) here ist my pom.xml project modelVersion4.0.0/modelVersion groupIdat.ac.univie.metagruppenwizzy/groupId artifactIdmetagruppenwizzy/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameMetagruppenwizzy/name repositories repository idcentral/id nameMaven Repository Switchboard/name layoutdefault/layout !-- urlhttp://www.ibiblio.org/maven2/url -- urlhttp://repo1.maven.org/maven2/url snapshots enabledfalse/enabled /snapshots /repository /repositories pluginRepositories pluginRepository idcentral/id nameMaven Plugin Repository/name !-- urlhttp://www.ibiblio.org/maven2/url -- urlhttp://repo1.maven.org/maven2/url layoutdefault/layout snapshots enabledfalse/enabled /snapshots releases updatePolicynever/updatePolicy /releases /pluginRepository /pluginRepositories build directorytarget/directory outputDirectorytarget/classes/outputDirectory finalName${artifactId}-${version}/finalName testOutputDirectorytarget/test-classes/testOutputDirectory sourceDirectorysrc//sourceDirectory scriptSourceDirectorysrc/scriptSourceDirectory testSourceDirectory/test/testSourceDirectory resources resource directory/lib/directory /resource /resources testResources testResource directory/lib/directory /testResource /testResources /build reporting outputDirectorytarget/site/outputDirectory /reporting /project 2. what i want to do with maven is to download a set of defined jars and at deployment time put them into a /lib directory our structure is the following: project src/at/ac test/at/ac .. /lib 3. how can i check out files from cvs automatically ? ist there an example somewhere ? i haven't found anything ... 4. is there a way to integrate maven2 into ecplise? currently i'm completly overloaded therefore i hope the someone can help me in this issue thanx greetinx andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to force rebuild of projects depending on changed Project
Cool! When is it planned? Is there a roadmap available? I´m also really looking forward for the clearcase support of continuum. Thanks Regards, Christian It's planned for 1.1 Emmanuel Christian Schlaefcke a écrit : Hi folks, I have a java module that is shared by two webapps (all as m2 projects). At the moment I have to build the webapps war files manually when I change the java module. Can I tell continuum to force a rebuild/war of the webapps when the java module changes? Thanks Regards, Christian
Re: Children cannot find master pom in local repo
Hi, I had the same problem and your solution works. Thank you! regards, Wim 2005/10/28, Johnny R. Ruiz [EMAIL PROTECTED]: Hi, In your master pom. Shouldn't the packagingjar/packaging be packagingpom/packaging ? Please try it out and do mvn install in the master project. After trying it out, then do the mvn install in the child project. Let me know if this works. :D Cheers, Johnny Dietrich Schulten wrote: Below you find the output, the master pom and the child pom. Johnny R. Ruiz schrieb: Hi, Please post the build results, it will be easier to see what's causing the error. The build output within a sub-project: $ mvn compile [INFO] Scanning for projects... [INFO] - --- [INFO] Building Implementation of enter*easy Core Interfaces [INFO] task-segment: [compile] [INFO] - --- [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [WARNING] POM for: 'commons-dbcp:commons-dbcp:pom:1.2.1' does not appear to be v alid. Its will be ignored for artifact resolution. Reason: Failed to validate POM [INFO] - --- [ERROR] BUILD ERROR [INFO] - --- [INFO] Failed to resolve artifact. GroupId: de.yellow.eeasy ArtifactId: eeasy-master Version: 1.0-SNAPSHOT Reason: Unable to download the artifact from any repository de.yellow.eeasy:eeasy-master:1.0-SNAPSHOT:pom from the specified remote repositories: central (http://repo1.maven.org/maven2) - The problem is the line Unable to download... The master POM: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdde.yellow.eeasy/groupId artifactIdeeasy-master/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameThe Server/name urlhttp://www.unknown.de/url dependencyManagement dependencies dependency groupIdde.yellow.eeasy/groupId artifactIdeeasy-core/artifactId version1.0-SNAPSHOT/version /dependency dependency groupIdde.yellow.eeasy/groupId artifactIdeeasy-ifc-impl/artifactId version1.0-SNAPSHOT/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency dependency groupIdjunit-doclet/groupId artifactIdjunit-doclet/artifactId version1.0.2/version /dependency dependency groupIdspringframework/groupId artifactIdspring/artifactId version1.2.5/version /dependency dependency groupIdacegisecurity/groupId artifactIdacegi-security/artifactId version0.8.3/version /dependency dependency groupIdehcache/groupId artifactIdehcache/artifactId version1.1/version /dependency dependency groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId version1.0.4/version /dependency dependency groupIdcommons-logging/groupId artifactIdcommons-logging-api/artifactId version1.0.4/version /dependency dependency groupIdcommons-discovery/groupId artifactIdcommons-discovery/artifactId version0.2/version /dependency dependency groupIdcommons-codec/groupId artifactIdcommons-codec/artifactId version1.3/version /dependency dependency groupIdcommons-collections/groupId artifactIdcommons-collections/artifactId version3.1/version /dependency dependency groupIdcommons-dbcp/groupId artifactIdcommons-dbcp/artifactId version1.2.1/version /dependency dependency groupIdcommons-digester/groupId artifactIdcommons-digester/artifactId version1.7/version /dependency dependency groupIdcommons-beanutils/groupId artifactIdcommons-beanutils/artifactId version1.7.0/version /dependency dependency groupIdcommons-lang/groupId artifactIdcommons-lang/artifactId version2.1/version /dependency dependency groupIdcommons-pool/groupId artifactIdcommons-pool/artifactId version1.2/version /dependency dependency groupIdhsqldb/groupId artifactIdhsqldb/artifactId version1.8.0.1 http://1.8.0.1/version /dependency dependency groupIdoro/groupId artifactIdoro/artifactId version2.0.8/version /dependency dependency groupIdaxis/groupId artifactIdaxis/artifactId version1.2.1/version /dependency dependency groupIdaxis/groupId artifactIdaxis-wsdl4j/artifactId version1.5.1/version /dependency dependency groupIdaxis/groupId artifactIdaxis-jaxrpc/artifactId version1.2.1/version /dependency dependency groupIdaxis/groupId artifactIdaxis-ant/artifactId version1.2.1/version /dependency
Re: postgoal function in M2 Need Help?
Try removing the phase element in your pom.xml... The plugin authors should have setup their plugins to be bound to a lifecycle phase so you need not put the phase element in the configuration part of the plugin. For example, if a plugin is bound to the generate-sources phase, then using mvn compile while having the plugin in your pom.xml will run the plugin before the generate-sources phase ends without having to put phase in the configuration. Regarding the plugins docs, this is a goog place to start: http://maven.apache.org/maven2/guides/introduction/introduction-to-plugins.html [EMAIL PROTECTED] wrote: Hi I understand there is no pre/post goal things in M2, instead we have to do that in pom.xml plugin itself. But how do i do more than one for eg. My needs is 1. Before compile i have generate a ejb home/remoteinterface .java files. 2. Then do regular javac compile 3. Then do ejbc compile which create some classes needed for weblogic. so i used phasegenerate-source/phase to create a .java files, then i tried adding phaseprocess-classes/phase like these which comes after compilation in lifecycle, to do ejbc compile but what hppends is at my second phase again its trying to goback and do full lifecycle stating from validate... again i do understand this is coz of lifecycle But my question is how do i do this thing without going thru the full lifecycle again, i mean i'm looking for a way to have (m1)postgoal like function in M2 Can any one please give me some example how to acheive this Thanks, Raghurajan Gurunathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: -source 1.5
Thank you for that info, but why is 1.5 not the default if your JAVA_HOME is a 1.5 jdk? regards, Wim 2005/10/27, Emmanuel Venisse [EMAIL PROTECTED]: http://maven.apache.org/maven2/general.html#Compiling-J2SE-5 Guido Zockoll a écrit : I am trying to mavenize my current project. It is a Java 5 project and i get to following error from mvn: java:[24,9] annotations are not supported in -source 1.3 (try -source 1.5 to enable annotations) @Override But where should i define -source 1.5? I could not find any hint in the documentation? Thanks for help in advance Guido - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] How to include download url in site
Hi folks, I try to get an download link of my jars and wars on the project page genarated with mvn site. I tried with: distributionManagement downloadUrlmyDownloadUrl/downloadUrl /distributionManagement But this isn´t working. Thanks Regards, Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Re: xdoclet and ant and xjc
Actually a change of plan. I'm going to implement the functionality in the xjc plugin so that there will be a second goal which goes straight through to the nested ant tag. Don't want to tinker with the wildly popular xdoclet plugin at this stage. Last chance to stop me if somebody is already doing something similar! - AW On 28 Oct 2005, at 00:10, Ashley Williams wrote: (posted to dev by muscle memory, please ignore that one) Hi Just wondering if anything is ongoing to automatically provide a mapping from maven injected properties to ant attributes. I've done a little work on the xdoclet plugin on my machine that means instead of providing the following: configuration tasks ejbdoclet destdir=${project.build.directory}/ generated-sources/xdoclet ejbspec=2.1 fileset dir=${basedir}/src/main/java includes=**/*Bean.java/ entitycmp destDir=$ {project.build.outputDirectory}/ deploymentdescriptor destdir=$ {project.build.directory}/generated-sources/xdoclet/ remoteinterface/ homeinterface/ /ejbdoclet /tasks /configuration we can write: configuration tasks ejbdoclet ejbspec=2.1 fileset includes=**/*Bean.java/ entitycmp/ deploymentdescriptor/ remoteinterface/ homeinterface/ /ejbdoclet /tasks /configuration The code I have would easily refactor into the ant run plugin, but obviously I don't want to double up if stuff is already happening - seem to remember John was looking at this area. - Ashley - 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] New plugin for Jetty6
That's great news! I loved using jetty under m1 for speed for development and always meant to look into writing a scanner for hot deployment. One thing - I noticed that the plugin misses a few project dependencies at runtime. You'll need to add the following to JettyMojo: @requiresDependencyResolution runtime Also, will the plugin really appear on ibiblio.org/maven2 - it depends on jetty 6-SNAPSHOT and I thought the central repo was only for released artifacts? Cheers, Mark On 28/10/05, Jan Bartel [EMAIL PROTECTED] wrote: FYI, I've created a new plugin that runs Jetty6 on a Maven war project without first requiring that the project is built into a war or exploded war. This allows you to develop in an IDE and to avoid having to run the mvn packaging step to test. But the really useful feature of this plugin is that you leave it running, and it will periodically scan the project for changes and automatically redeploy the webapp if needed. This is particularly convenient if you're using an IDE that does automatic compilation - you can edit your changes and they will be reflected in the running web container without you needing to do a thing. At the moment, the plugin is on the MortBay Maven2 repository at scpexe://jetty.mortbay.org/home/ftp/pub/maven2. Hopefully, this will be mirrored to the main Maven2 repository soon. The plugin is: groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty6-plugin/artifactId version1.0/version You run it like so: mvn jetty6:run The plugin has documentation with it, but isn't linked in to a website (yet). In the meanwhile, you can check the JettyExperimental project out on SourceForge and build it to get the plugin doco. cheers Jan - 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] Unit test report in website
Hi, I'm trying to add the results of my unit tests on the generated webpage. I added the surefire-plugin to the reports section, and I get a link the menu. However the webpage shows that no tests have run, but they do run: Results : [surefire] Tests run: 46, Failures: 0, Errors: 0 any ideas? Wim
[m2] Image link when creating a site?
Hi, I'm trying to add a image link to my site descriptor but the image is not added. I've tried the following: menu name=Links item name=image1 href=http://maven.apache.org; img=http://maven.apache.org/images/logos/maven-feather.png/ item name=image2 href=http://maven.apache.org; src=http://maven.apache.org/images/logos/maven-feather.png/ /menu I also would like to have a image at the same level as the default created by Maven-image is it possible to add such a image in the site descriptor so I won't have to modify the generated .html files? Kind regards, Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why continuum always auto stopped?
Is it a clean continuum installation? Hong Xing a écrit : [EMAIL PROTECTED] bin]# ./plexus.sh Using PLEXUS_HOME: /usr/local/continuum-1.0 Using PLEXUS_CONF: /usr/local/continuum-1.0/conf Using PLEXUS_TMPDIR: /usr/local/continuum-1.0/temp Using JAVA_HOME: /usr/local/j2sdk1.5.0/ [INFO] Services will be deployed in: '/usr/local/continuum-1.0/services'. [INFO] Applications will be deployed in: '/usr/local/continuum-1.0/apps'. [INFO] The application server has been initialized. [INFO] Removing old service. [INFO] Extracting service jar '/usr/local/continuum-1.0/services/plexus-service-jetty-1.0-alpha-3.jar' to '/usr/local/continuum-1.0/services/plexus-service-jetty-1.0-alpha-3'. [DEBUG] Found 1 components to load on start [INFO] Loading on start [role,roleHint]: [org.codehaus.plexus.application.service.PlexusService,jetty] 19:38:26.972 EVENT Starting Jetty/4.2.24 19:38:27.006 EVENT Started [EMAIL PROTECTED] [INFO] Initializing servlet container service. [INFO] Starting servlet container service. [INFO] Removing old service. [INFO] Extracting service jar '/usr/local/continuum-1.0/services/plexus-service-xmlrpc-1.0-alpha-3.jar' to '/usr/local/continuum-1.0/services/plexus-service-xmlrpc-1.0-alpha-3'. [DEBUG] Found 1 components to load on start [INFO] Loading on start [role,roleHint]: [org.codehaus.plexus.application.service.PlexusService,xml-rpc] [INFO] Starting XML-RPC service. [INFO] Application 'continuum' already extracted. [INFO] Deploying application 'continuum' at '/usr/local/continuum-1.0/apps/continuum'. [INFO] Starting XML-RPC listener on port '9997'. 2005-10-28 19:38:27,918 [main] DEBUG PlexusContainer- Found 3 components to load on start 2005-10-28 19:38:27,920 [main] INFO PlexusContainer- Loading on start [role]: [org.apache.maven.continuum.Continuum] 2005-10-28 19:38:27,989 [main] INFO JdoFactory - Initializing JDO. 2005-10-28 19:38:28,523 [main] INFO JDO- PersistenceManagerFactory - Vendor: JPOX Version: 1.1.0-beta-4 2005-10-28 19:38:28,523 [main] INFO JDO- PersistenceManagerFactory initialised for datastore URL=jdbc:derby:/usr/local/continuum-1.0/apps/continuum/database;create=true driver=org.apache.derby.jdbc.EmbeddedDriver userName=sa Oct 28, 2005 7:38:28 PM org.quartz.simpl.RAMJobStore initialize INFO: RAMJobStore initialized. Oct 28, 2005 7:38:28 PM org.quartz.impl.StdSchedulerFactory instantiate INFO: Quartz scheduler 'scheduler1' initialized from an externally provided properties instance. Oct 28, 2005 7:38:28 PM org.quartz.impl.StdSchedulerFactory instantiate INFO: Quartz scheduler version: 1.4.5 Oct 28, 2005 7:38:28 PM org.quartz.core.QuartzScheduler start INFO: Scheduler scheduler1_$_NON_CLUSTERED started. 2005-10-28 19:38:28,723 [main] INFO Continuum - Initializing Continuum. 2005-10-28 19:38:28,723 [main] INFO Continuum - Showing all projects: 2005-10-28 19:38:30,416 [main] INFO RDBMS - RDBMS Adapter initialised : CloudscapeAdapter : Apache Derby version=10.1.1.0, major=10, minor=1, revision=1 Identifier Names : UPPERCASE Driver name=Apache Derby Embedded JDBC Driver, version=10.1.1.0, major=10, minor=1 Identifier Max Lengths : Table=128 Column=30 Constraint=18 Index=18 Delimeters= Identifier Support in DDL : catalog=false schema=true 2005-10-28 19:38:30,417 [main] INFO SCHEMA - Initialising Catalog , Schema SA using SchemaTable auto-start option 2005-10-28 19:38:31,697 [main] INFO JDO- Managing Persistence of org.apache.maven.continuum.model.scm.ScmResult since it was managed previously 2005-10-28 19:38:31,697 [main] INFO JDO- Managing Persistence of org.apache.maven.continuum.model.project.ProjectGroup since it was managed previously 2005-10-28 19:38:31,700 [main] INFO JDO- Managing Persistence of org.apache.maven.continuum.model.project.Profile since it was managed previously 2005-10-28 19:38:31,702 [main] INFO JDO- Managing Persistence of org.apache.maven.continuum.model.system.Installation since it was managed previously 2005-10-28 19:38:31,702 [main] INFO JDO- Managing Persistence of org.apache.maven.continuum.model.project.BuildResult since it was managed previously 2005-10-28 19:38:31,702 [main] INFO JDO- Managing Persistence of org.apache.maven.continuum.model.system.UserGroup since it was managed previously 2005-10-28 19:38:31,703 [main] INFO JDO- Managing Persistence of org.apache.maven.continuum.model.project.Project since it was managed previously 2005-10-28 19:38:31,705 [main] INFO JDO- Managing Persistence of
Re: [m2] Image link when creating a site?
On 10/28/2005 01:16 PM, Roland Bali wrote: Hi, I'm trying to add a image link to my site descriptor but the image is not added. I've tried the following: menu name=Links item name=image1 href=http://maven.apache.org; img=http://maven.apache.org/images/logos/maven-feather.png/ item name=image2 href=http://maven.apache.org; src=http://maven.apache.org/images/logos/maven-feather.png/ /menu I also would like to have a image at the same level as the default created by Maven-image is it possible to add such a image in the site descriptor so I won't have to modify the generated .html files? Kind regards, Roland You can by creating a custom velocity template, and include it in your src/site/resources directory. In your pom you also have to add something like this: [..] plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId configuration templateDirectory file://${basedir}/src/site/resources/ /templateDirectory templateyour-site.vm/template /configuration /plugin [..] Look into the maven-site-plugin.jar for a default maven-site.vm template, you can use as a start point. Hope this helps, -- Rohnny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Continuum and ClearCase
I'm trying to get my maven 2 project running with continuum but I don't succeed. We are using ClearCase, you I've set: scm connectionscm:clearcase:/connection /scm In my pom.xml, but the build fails. This is the debug window: jvm 1 | 2005-10-28 13:46:33,171 [SocketListener0-1] INFO Continuum - Enqueuing 'Utils Logging Module' (Build definition id=6. jvm 1 | 2005-10-28 13:46:33,593 [Thread-1] INFO ContinuumScm - Checking out project: 'Utils Logging Module', id: '6' to 'C:\Program Files\Apache Software Foundation\continuum-1.0 \bin\win32\..\..\apps\continuum\working-directory\6'. jvm 1 | 2005-10-28 13:46:33,750 [Thread-1] WARN ConfigurationService - Error reading build output for build '12'. jvm 1 | java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\continuum- 1.0\bin\win32\..\..\apps\continuum\build-output-directory\6\12.log.txt (The system cannot find the file specified) jvm 1 | at java.io.FileInputStream.open(Native Method) jvm 1 | at java.io.FileInputStream.init(FileInputStream.java:106) jvm 1 | at org.codehaus.plexus.util.FileUtils.fileRead(FileUtils.java:269) jvm 1 | at org.codehaus.plexus.util.FileUtils.fileRead(FileUtils.java:261) jvm 1 | at org.apache.maven.continuum.configuration.DefaultConfigurationService.getBuildOutput (DefaultConfigurationService.java:167) jvm 1 | at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification (DefaultContinuumNotificationDispatcher.java:129) jvm 1 | at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete (DefaultContinuumNotificationDispatcher.java:96) jvm 1 | at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build( DefaultBuildController.java:261) jvm 1 | at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask (BuildProjectTaskExecutor.java:53) jvm 1 | at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run (ThreadedTaskQueueExecutor.java:103) jvm 1 | at java.lang.Thread.run(Thread.java:595) It states checking out project , but that directory working-directory\6 is never created. regards, Wim
SSH proxy for deployments
Does Maven use the proxy defined in settings.xml for SSH connections? I've successfully deployed sites and artifacts inside my LAN, but as soon as I try to do the same for a computer outsite the LAN, I get a connection time out. Of course I've tried to connect to those hosts using an SSH client with no problem. TIA, best regards Jose - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Complicated Assembly Guidance
I'm trying to automate my normal file release process. Right now it takes two assembly descriptors and three commands to accomplish. Not too bad, but I'm wondering if there's a better way. If not, maybe this use-case can be looked at for ways to improve the assembly plugin. The project is a mutli-project with two modules: a jar project and a war project that is a sample web-app using the jar. The goal is to produce a directory with the following files: RELEASE NOTES.txt OVERVIEW.txt myapp-version.jar myapp-version-javadoc.jar myapp-version-sources.jar mysampleapp-version.war MultiProjectSource-version.zip So, I know have a src/main/assembly in the parent project with two descriptors. The first is a source descriptor, src.xml: assembly idsrc/id formats formatzip/format /formats fileSets fileSet includes include*/include /includes excludes exclude.*/exclude excludetarget/exclude /excludes /fileSet fileSet directorysrc/directory /fileSet fileSet directoryframework/src/directory /fileSet fileSet directoryframework/directory includes include*/include /includes excludes exclude.*/exclude excludetarget/exclude /excludes /fileSet fileSet directorysample/src/directory /fileSet fileSet directorysample/directory includes include*/include /includes excludes exclude.*/exclude excludetarget/exclude /excludes /fileSet /fileSets /assembly The second is release.xml: assembly idrelease/id formats formatzip/format /formats fileSets fileSet includes includeRELEASE*/include includeOVERVIEW*/include /includes /fileSet fileSet directorytarget/directory outputDirectory/outputDirectory includes include*.zip/include /includes /fileSet fileSet directoryframework/target/directory outputDirectory/outputDirectory includes include*.jar/include /includes /fileSet fileSet directorysample/target/directory outputDirectory/outputDirectory includes include*.war/include /includes /fileSet /fileSets /assembly And, finally, I have a shell script that runs the following three commands: mvn clean package javadoc:jar source:jar mvn -Ddescriptor=src/main/assembly/src.xml assembly:assembly mvn -Ddescriptor=src/main/assembly/release.xml assembly:directory Any ideas on improvement, either in what I've done, or planned/un-planned improvements in plugins? -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] New plugin for Jetty6
Mark, Thanks for the quick response. That's great news! I loved using jetty under m1 for speed for development and always meant to look into writing a scanner for hot deployment. One thing - I noticed that the plugin misses a few project dependencies at runtime. You'll need to add the following to JettyMojo: @requiresDependencyResolution runtime Thanks for that. I've put it in. Must have been working for me because I have the Jetty jars and dependencies in my local repo. Also, will the plugin really appear on ibiblio.org/maven2 - it depends on jetty 6-SNAPSHOT and I thought the central repo was only for released artifacts? I'll take your advice on that as I'm not sure what the policy is. We maintain a maven1 repository for Jetty releases which gets mirrored to ibiblio.org/maven so I just assumed the maven2 repo would also be mirrored. cheers Jan Cheers, Mark On 28/10/05, Jan Bartel [EMAIL PROTECTED] wrote: FYI, I've created a new plugin that runs Jetty6 on a Maven war project without first requiring that the project is built into a war or exploded war. This allows you to develop in an IDE and to avoid having to run the mvn packaging step to test. But the really useful feature of this plugin is that you leave it running, and it will periodically scan the project for changes and automatically redeploy the webapp if needed. This is particularly convenient if you're using an IDE that does automatic compilation - you can edit your changes and they will be reflected in the running web container without you needing to do a thing. At the moment, the plugin is on the MortBay Maven2 repository at scpexe://jetty.mortbay.org/home/ftp/pub/maven2. Hopefully, this will be mirrored to the main Maven2 repository soon. The plugin is: groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty6-plugin/artifactId version1.0/version You run it like so: mvn jetty6:run The plugin has documentation with it, but isn't linked in to a website (yet). In the meanwhile, you can check the JettyExperimental project out on SourceForge and build it to get the plugin doco. cheers Jan - 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] Unit test report in website
Wim, AFAIK, the current release of the surefire plugin can't generate XML reports, which is required for the surefire report plugin to work correctly. Try to build the surefire plugin from SVN, and you would probably get correct reports. Best Regards / Cordialement, Fabrice BELLINGARD DINQ/DSIN/INSI/EATE/IDVS/AIDV (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] Wim Deblauwe [EMAIL PROTECTED] ail.com Pour Maven Users List 28/10/2005 13:12 users@maven.apache.org cc VeuillezObjet répondre à [m2] Unit test report in website Maven Users List [EMAIL PROTECTED] che.org Hi, I'm trying to add the results of my unit tests on the generated webpage. I added the surefire-plugin to the reports section, and I get a link the menu. However the webpage shows that no tests have run, but they do run: Results : [surefire] Tests run: 46, Failures: 0, Errors: 0 any ideas? Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Seems like the CVS checkout command is not compatible with CVSNT
Miks Rozenbergs a �crit : Hello! Continuum can't checkout sources from CVS using following SCM URL scm:cvs:pserver:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:/cvs/src:BPM/source/com.exigen.bpm.util. It results in errors shown down bellow. As you can see the error happens while invoking command cvs -f -d :pserver:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:2401/cvs/src -q checkout -r -d 1 BPM/source/com.exigen.bpm.util. I just had the exact same problem this morning, it isn't cvsnt's fault. If you look closely at that command line: ...checkout -r -d 1... actually means 'check out module 1 with a /tag/ of '-d'' . BTW I tried this command line on cygwin too and it fails too. It wasnt until I removed the '-d 1' from the command line that the error became obvious, as it says you havent specified a module - the -r swallows the module name and uses it as a tag. Once I twigged this is what I'd done wrong, I went into the continuum config and set the tag to 'HEAD'. This resulted in a command line like ...checkout -r HEAD -d 1... and everything works. This looks like a bug in SCM to me, it shouldn't emit that '-r' unless there's a tag specified?
RE: compile error
put: build pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId inheritedtrue/inherited configuration source1.5/source target1.5/target /configuration /plugin /plugins /pluginManagement /build into your pom. if you have only one pom (ie. no parent project) you could also use build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin /plugins /build -Original Message- From: Rasconi Luca (u.e.) [mailto:[EMAIL PROTECTED] Sent: Friday, October 28, 2005 10:25 AM To: Maven Users List Subject: compile error myfile.java:[11,1] annotations are not supported in -source 1.3 (try -source 1.5 to enable annotations) @SuppressWarnings(serial) Executing mvn install i had that error. Where I have to set -source options? I try mvn -source 1.5 compile and mvn compile -source 1.5 and mvn compiler:compile -Dsource=1.5 and also mvn compiler:compile -DcompilerVersion=1.5 Why annotations doesn't work? Tnx, Luca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to add br to description tag?
Hi, is there a way to add a new line tag (br, \n, ...) to the description tag in the pom.xml? I tried CDATA, but that doesn't work. Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] CVSNT problem
Hi, i'm in the process of learning about maven 2.0. So I created a project and decided to fetch source code from cvs repository. After I read that connection string from pom.xml won't help me with checkout, I tried with mvn -e scm:checkout -DconnectionUrl=scm:cvs:pserver:[EMAIL PROTECTED]:E:\cvs\common:MODULE mvn -e scm:checkout -DconnectionUrl=scm|cvs|pserver|[EMAIL PROTECTED]|E:\cvs\common|MODULE mvn -e scm:checkout -DconnectionUrl=scm|cvs|pserver|[EMAIL PROTECTED]|E:\cvs\common|MODULE With last command I got: [INFO] [scm:checkout] [ERROR] Provider message: [ERROR] The cvs command failed. [ERROR] Command output: [ERROR] Empty password used - try 'cvs login' with a real password cvs [checkout aborted]: \cvs\common: no such repository I'm using CVSNT on WinXP and .cvspass is created in user home. It seems that the problem is colon in repository path, but I don't know how to fix it. My Maven 1.x CVS history is repeating. Can someone help me with this. Thanks, Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2]create an entry into internal repository
How to deploy local jar to internal repository: 1) Install local: mvn install:install-file -Dfile=alice-commons-1.2.jar ^ -DgroupId=alice-commons ^ -DartifactId=alice-commons ^ -Dversion=1.2 ^ -Dpackaging=jar This create the structure .m2/repository/alice-commons/alice-commons/1.2 2) ftp all the structure to the docroot of the inernal repository But just now I tried to compile my project and I had this warning: Downloading: http:// localhost:8089/pub/maven/alice-commons/alice-commons/1.2/alice-commons-1.2.p om [WARNING] Unable to get resource from repository RossoAlice Repo (http://localhost:8089/pub/maven) my repo :-) Downloading: http://repo1.maven.org/maven2/alice-commons/alice-commons/1.2/alice-commons- 1.2.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) ok ... but without the .pom the compilation failed because the compiler is not able to found the jar (is it right?). ... in the step 1 above the installtion in the local repository create a maven-metadata-local.xml. who use it? Is there a way to create the .pom file like the maven-metadata-local.xml file? Tnx, Luca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: checkout and build (with ant)
No stack trace. I believe it is a problem with the cvs path because the build immediately goes from in progress to failed. I think there would be a delay if it was an ant problem (because it checks out the code first) ala cruise control. it doesn't seem to be checking out the code into the working-directory. no stack trace in the build results window either :-( On 10/27/05, Emmanuel Venisse [EMAIL PROTECTED] wrote: if your project is a maven project, you need to install maven. if your project is a ant project, you need to install ant. Do you have an error or stacktrace in console that can help to find what is the problem? What is your cvs? the standard cvs or cvsnt? Emmanuel Keith Fitzgerald a écrit : hi, i'm trying to do a checkout and build of my project using pserver. here's my url: scm:cvs:pserver:user:[EMAIL PROTECTED]:/opt/cvs/comcast:myproject it immediately fails and then the error in the build history is blank. why doesn't this work? do i need to install maven or anything else on my box? i've also tried: scm:cvs:pserver:[EMAIL PROTECTED]:/opt/cvs/comcast:myproject and it fails the same. I know cvs is setup correctly b/c i use the pserver in eclipse to checkout my code. any help is appreciated. i really want to cutover from cruisecontrol to continuum. thanks, keith
M2 from behind a proxy
Hi all, how I can configure M2 to access ibiblio from behind a proxy? I'd like to create my first M2 project using a command line like this: mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app Thanks in advance, Roberto de Castro Analista de Suporte Cetip - Desus Rio de Janeiro +55 21 2276-7439 mailto:[EMAIL PROTECTED] Atenção: Esta mensagem foi enviada para uso exclusivo do(s) destinatários(s) acima identificado(s), podendo conter informações e/ou documentos confidencias/privilegiados e seu sigilo é protegido por lei. Caso você tenha recebido por engano, por favor, informe o remetente e apague-a de seu sistema. Notificamos que é proibido por lei a sua retenção, disseminação, distribuição, cópia ou uso sem expressa autorização do remetente. Opiniões pessoais do remetente não refletem, necessariamente, o ponto de vista da CETIP, o qual é divulgado somente por pessoas autorizadas. Attention: This message was sent for exclusive use of the addressees above identified, being able to contain information and or privileged/confidential documents and law protects its secrecies. In case that you it has received for deceit, please, it informs the shipper and erases it of your system. We notify that law forbids its retention, dissemination, distribution, copy or use without express authorization. Personal opinions of the shipper do not reflect, necessarily, the point of view of the CETIP, which is only divulged by authorized people. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: compile error
C:\Documents and Settings\lucarasconi\workspace\archetype\archetype\my-webappmvn compiler:compile ... [INFO] [compiler:compile] Compiling 2 source files to C:\Documents and Settings\lucarasconi\workspace\arch etype\archetype\my-webapp\target\classes [INFO] - --- [ERROR] BUILD FAILURE [INFO] - --- [INFO] Compilation failure C:\Documents and Settings\lucarasconi\workspace\archetype\archetype\my-webapp\src\main\java\i t\telecomitalia\rossoalice\SimpleServlet.java:[6,51] package it.telecomitalia.rossoalice.commons.servlet does not exist ... Other error This is my pom.xml file: project ... modelVersion4.0.0/modelVersion groupIdit.telecomitalia.rossoalice.template/groupId artifactIdsimple-servlet/artifactId packagingwar/packaging version1.0-SNAPSHOT/version nameRossoalice Webapp Template/name urlhttp://www.rossoalice.it/url repositories repository . /repository /repositories dependencies dependency groupIdalice-commons/groupId artifactIdalice-commons/artifactId version1.2/version scopesource/scope /dependency /dependencies build plugins plugin /plugin /plugins /build /project And inside alice-commons-1.2.jar there is the package it.telecomitalia.rossoalice.commons.servlet. why the compiler said the package doen't exist? Or what could be the problem? Tnx, Luca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: checkout and build (with ant)
Can you try to edit the project and define the tag to HEAD? Emmanuel Keith Fitzgerald a écrit : No stack trace. I believe it is a problem with the cvs path because the build immediately goes from in progress to failed. I think there would be a delay if it was an ant problem (because it checks out the code first) ala cruise control. it doesn't seem to be checking out the code into the working-directory. no stack trace in the build results window either :-( On 10/27/05, Emmanuel Venisse [EMAIL PROTECTED] wrote: if your project is a maven project, you need to install maven. if your project is a ant project, you need to install ant. Do you have an error or stacktrace in console that can help to find what is the problem? What is your cvs? the standard cvs or cvsnt? Emmanuel Keith Fitzgerald a écrit : hi, i'm trying to do a checkout and build of my project using pserver. here's my url: scm:cvs:pserver:user:[EMAIL PROTECTED]:/opt/cvs/comcast:myproject it immediately fails and then the error in the build history is blank. why doesn't this work? do i need to install maven or anything else on my box? i've also tried: scm:cvs:pserver:[EMAIL PROTECTED]:/opt/cvs/comcast:myproject and it fails the same. I know cvs is setup correctly b/c i use the pserver in eclipse to checkout my code. any help is appreciated. i really want to cutover from cruisecontrol to continuum. thanks, keith
Re: checkout and build (with ant)
Can you send the continuum logs? Keith Fitzgerald a écrit : No stack trace. I believe it is a problem with the cvs path because the build immediately goes from in progress to failed. I think there would be a delay if it was an ant problem (because it checks out the code first) ala cruise control. it doesn't seem to be checking out the code into the working-directory. no stack trace in the build results window either :-( On 10/27/05, Emmanuel Venisse [EMAIL PROTECTED] wrote: if your project is a maven project, you need to install maven. if your project is a ant project, you need to install ant. Do you have an error or stacktrace in console that can help to find what is the problem? What is your cvs? the standard cvs or cvsnt? Emmanuel Keith Fitzgerald a écrit : hi, i'm trying to do a checkout and build of my project using pserver. here's my url: scm:cvs:pserver:user:[EMAIL PROTECTED]:/opt/cvs/comcast:myproject it immediately fails and then the error in the build history is blank. why doesn't this work? do i need to install maven or anything else on my box? i've also tried: scm:cvs:pserver:[EMAIL PROTECTED]:/opt/cvs/comcast:myproject and it fails the same. I know cvs is setup correctly b/c i use the pserver in eclipse to checkout my code. any help is appreciated. i really want to cutover from cruisecontrol to continuum. thanks, keith
Re: Continuum and ClearCase
Continuum doesn't support clearcase for the moment. Some users will try to do it in Maven-SCM. If you want to join to the effort, you're welcome. The next time, it would be better if you send message on the continuum user list. Emmanuel Wim Deblauwe a écrit : I'm trying to get my maven 2 project running with continuum but I don't succeed. We are using ClearCase, you I've set: scm connectionscm:clearcase:/connection /scm In my pom.xml, but the build fails. This is the debug window: jvm 1 | 2005-10-28 13:46:33,171 [SocketListener0-1] INFO Continuum - Enqueuing 'Utils Logging Module' (Build definition id=6. jvm 1 | 2005-10-28 13:46:33,593 [Thread-1] INFO ContinuumScm - Checking out project: 'Utils Logging Module', id: '6' to 'C:\Program Files\Apache Software Foundation\continuum-1.0 \bin\win32\..\..\apps\continuum\working-directory\6'. jvm 1 | 2005-10-28 13:46:33,750 [Thread-1] WARN ConfigurationService - Error reading build output for build '12'. jvm 1 | java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\continuum- 1.0\bin\win32\..\..\apps\continuum\build-output-directory\6\12.log.txt (The system cannot find the file specified) jvm 1 | at java.io.FileInputStream.open(Native Method) jvm 1 | at java.io.FileInputStream.init(FileInputStream.java:106) jvm 1 | at org.codehaus.plexus.util.FileUtils.fileRead(FileUtils.java:269) jvm 1 | at org.codehaus.plexus.util.FileUtils.fileRead(FileUtils.java:261) jvm 1 | at org.apache.maven.continuum.configuration.DefaultConfigurationService.getBuildOutput (DefaultConfigurationService.java:167) jvm 1 | at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification (DefaultContinuumNotificationDispatcher.java:129) jvm 1 | at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete (DefaultContinuumNotificationDispatcher.java:96) jvm 1 | at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build( DefaultBuildController.java:261) jvm 1 | at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask (BuildProjectTaskExecutor.java:53) jvm 1 | at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run (ThreadedTaskQueueExecutor.java:103) jvm 1 | at java.lang.Thread.run(Thread.java:595) It states checking out project , but that directory working-directory\6 is never created. regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] CVSNT problem
I'm not sure if maven-scm works with cvsnt, but you can try this: mvn -e scm:checkout -DconnectionUrl=scm|cvs|pserver|USERNAME:[EMAIL PROTECTED]|E:\cvs\common|MODULE and mvn -e scm:checkout -DconnectionUrl=scm|cvs|pserver|USERNAME:[EMAIL PROTECTED]|E:/cvs/common|MODULE Emmanuel Nitko2 a écrit : Hi, i'm in the process of learning about maven 2.0. So I created a project and decided to fetch source code from cvs repository. After I read that connection string from pom.xml won't help me with checkout, I tried with mvn -e scm:checkout -DconnectionUrl=scm:cvs:pserver:[EMAIL PROTECTED]:E:\cvs\common:MODULE mvn -e scm:checkout -DconnectionUrl=scm|cvs|pserver|[EMAIL PROTECTED]|E:\cvs\common|MODULE mvn -e scm:checkout -DconnectionUrl=scm|cvs|pserver|[EMAIL PROTECTED]|E:\cvs\common|MODULE With last command I got: [INFO] [scm:checkout] [ERROR] Provider message: [ERROR] The cvs command failed. [ERROR] Command output: [ERROR] Empty password used - try 'cvs login' with a real password cvs [checkout aborted]: \cvs\common: no such repository I'm using CVSNT on WinXP and .cvspass is created in user home. It seems that the problem is colon in repository path, but I don't know how to fix it. My Maven 1.x CVS history is repeating. Can someone help me with this. Thanks, Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: POM properties
How do you reference something that is a collection in the POM? Let's say there are 2 developers and I want to get their email addresses to put in the notifier.address section of the ciManagement section (I know a mailing list is preferred but we don't have one set up right now and I know there are JIRA's in Continuum to propogate the developers into continuum as users and the users as the notifiers but until then...) ${project.developers.developer.xxx.email} (where xxx is ther id) or ${project.developers.developer[0].email) On 10/27/05, Jason van Zyl [EMAIL PROTECTED] wrote: On Thu, 2005-10-27 at 15:25 +1000, Michael McCrann wrote: Hi, Is there any documentation that describes what things from the POM are available as variables? Anything in the POM itself: http://maven.apache.org/maven-model/maven.html How do I specify 'target' as a property? The things I have tried haven't worked: You can take a look at this: http://maven.apache.org/guides/introduction/introduction-to-the-pom.html Which shows the Super POM which has most of the build elements that you might want to use. $(pom.build.outputDirectory} ${pom.build.dir} ${build.dir} Close but no cigar :-) ${pom.build.directory} NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Unit test report in website
You can generate test report with surefire-report plugin available in Mojo project : http://mojo.codehaus.org/surefire-report-maven-plugin/ Emmanuel Wim Deblauwe a écrit : Wow, so you're saying that the released version of Maven 2, can't generate a report of the unit tests??? any idea when a next version will be released. This seems like very basic functionality. regards, Wim 2005/10/28, [EMAIL PROTECTED] [EMAIL PROTECTED]: Wim, AFAIK, the current release of the surefire plugin can't generate XML reports, which is required for the surefire report plugin to work correctly. Try to build the surefire plugin from SVN, and you would probably get correct reports. Best Regards / Cordialement, Fabrice BELLINGARD DINQ/DSIN/INSI/EATE/IDVS/AIDV (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] Wim Deblauwe [EMAIL PROTECTED] ail.com http://ail.com Pour Maven Users List 28/10/2005 13:12 users@maven.apache.org cc Veuillez Objet répondre à [m2] Unit test report in website Maven Users List [EMAIL PROTECTED] che.org http://che.org Hi, I'm trying to add the results of my unit tests on the generated webpage. I added the surefire-plugin to the reports section, and I get a link the menu. However the webpage shows that no tests have run, but they do run: Results : [surefire] Tests run: 46, Failures: 0, Errors: 0 any ideas? Wim - 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: Continuum and ClearCase
ok, thanks for the info (I'm not registered on the continuum list,that is why I posted here) Is there a workaround? Can I just point to a file location somewhere and tell continuum to build that? regards, Wim 2005/10/28, Emmanuel Venisse [EMAIL PROTECTED]: Continuum doesn't support clearcase for the moment. Some users will try to do it in Maven-SCM. If you want to join to the effort, you're welcome. The next time, it would be better if you send message on the continuum user list. Emmanuel Wim Deblauwe a écrit : I'm trying to get my maven 2 project running with continuum but I don't succeed. We are using ClearCase, you I've set: scm connectionscm:clearcase:/connection /scm In my pom.xml, but the build fails. This is the debug window: jvm 1 | 2005-10-28 13:46:33,171 [SocketListener0-1] INFO Continuum - Enqueuing 'Utils Logging Module' (Build definition id=6. jvm 1 | 2005-10-28 13:46:33,593 [Thread-1] INFO ContinuumScm - Checking out project: 'Utils Logging Module', id: '6' to 'C:\Program Files\Apache Software Foundation\continuum-1.0 \bin\win32\..\..\apps\continuum\working-directory\6'. jvm 1 | 2005-10-28 13:46:33,750 [Thread-1] WARN ConfigurationService - Error reading build output for build '12'. jvm 1 | java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\continuum- 1.0\bin\win32\..\..\apps\continuum\build-output-directory\6\12.log.txt(The system cannot find the file specified) jvm 1 | at java.io.FileInputStream.open(Native Method) jvm 1 | at java.io.FileInputStream.init(FileInputStream.java:106) jvm 1 | at org.codehaus.plexus.util.FileUtils.fileRead(FileUtils.java :269) jvm 1 | at org.codehaus.plexus.util.FileUtils.fileRead(FileUtils.java :261) jvm 1 | at org.apache.maven.continuum.configuration.DefaultConfigurationService.getBuildOutput (DefaultConfigurationService.java:167) jvm 1 | at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification (DefaultContinuumNotificationDispatcher.java:129) jvm 1 | at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete (DefaultContinuumNotificationDispatcher.java:96) jvm 1 | at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build( DefaultBuildController.java:261) jvm 1 | at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask (BuildProjectTaskExecutor.java:53) jvm 1 | at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run (ThreadedTaskQueueExecutor.java:103) jvm 1 | at java.lang.Thread.run(Thread.java:595) It states checking out project , but that directory working-directory\6 is never created. regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Continuum and ClearCase
not with continuum provider, but you can certainly use the local provider in your scm connection string. format is described there: http://maven.apache.org/scm/scm-url-format.html Wim Deblauwe a écrit : ok, thanks for the info (I'm not registered on the continuum list,that is why I posted here) Is there a workaround? Can I just point to a file location somewhere and tell continuum to build that? regards, Wim 2005/10/28, Emmanuel Venisse [EMAIL PROTECTED]: Continuum doesn't support clearcase for the moment. Some users will try to do it in Maven-SCM. If you want to join to the effort, you're welcome. The next time, it would be better if you send message on the continuum user list. Emmanuel Wim Deblauwe a écrit : I'm trying to get my maven 2 project running with continuum but I don't succeed. We are using ClearCase, you I've set: scm connectionscm:clearcase:/connection /scm In my pom.xml, but the build fails. This is the debug window: jvm 1 | 2005-10-28 13:46:33,171 [SocketListener0-1] INFO Continuum - Enqueuing 'Utils Logging Module' (Build definition id=6. jvm 1 | 2005-10-28 13:46:33,593 [Thread-1] INFO ContinuumScm - Checking out project: 'Utils Logging Module', id: '6' to 'C:\Program Files\Apache Software Foundation\continuum-1.0 \bin\win32\..\..\apps\continuum\working-directory\6'. jvm 1 | 2005-10-28 13:46:33,750 [Thread-1] WARN ConfigurationService - Error reading build output for build '12'. jvm 1 | java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\continuum- 1.0\bin\win32\..\..\apps\continuum\build-output-directory\6\12.log.txt(The system cannot find the file specified) jvm 1 | at java.io.FileInputStream.open(Native Method) jvm 1 | at java.io.FileInputStream.init(FileInputStream.java:106) jvm 1 | at org.codehaus.plexus.util.FileUtils.fileRead(FileUtils.java :269) jvm 1 | at org.codehaus.plexus.util.FileUtils.fileRead(FileUtils.java :261) jvm 1 | at org.apache.maven.continuum.configuration.DefaultConfigurationService.getBuildOutput (DefaultConfigurationService.java:167) jvm 1 | at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification (DefaultContinuumNotificationDispatcher.java:129) jvm 1 | at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete (DefaultContinuumNotificationDispatcher.java:96) jvm 1 | at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build( DefaultBuildController.java:261) jvm 1 | at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask (BuildProjectTaskExecutor.java:53) jvm 1 | at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run (ThreadedTaskQueueExecutor.java:103) jvm 1 | at java.lang.Thread.run(Thread.java:595) It states checking out project , but that directory working-directory\6 is never created. regards, Wim - 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]
can't download poi-2.0-final-20040126
Hi, the directory to download poi-2.0-final is the right one, the pom file can be downloaded but the data in the pom file (groupId, artifactId, version) seems to be wrong... [INFO] Using default encoding to copy filtered resources. Downloading: http://www.ibiblio.org/maven2//poi/poi-2.0-final/20040126/poi-2.0-final-20040126.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: poi:poi-2.0-final Reason: Error getting POM for 'poi:poi-2.0-final' from the repository: Error transferring file poi:poi-2.0-final:20040126:pom poi-2.0-final-20040126.pom: metadata groupIdpoi/groupId artifactIdpoi-2.0-final/artifactId version20040126/version /metadata - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Unit test report in website
project ... build ... plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdsurefire-report-maven-plugin/artifactId version2.0-beta-1-SNAPSHOT/version /plugin /plugins ... /build ... /project Ok I just add this to my pom.xml I am get an error [INFO] - --- [ERROR] BUILD ERROR [INFO] - --- [INFO] Failed to resolve artifact. GroupId: org.codehaus.mojo ArtifactId: surefire-report-maven-plugin Version: 2.0-beta-1-SNAPSHOT Reason: Unable to download the artifact from any repository org.codehaus.mojo:surefire-report-maven-plugin:2.0-beta-1-SNAPSHOT:pom from the specified remote repositories: central (http://repo1.maven.org/maven2) -- Peter Pilgrim :: J2EE Software Development Operations/IT - Credit Suisse First Boston, Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom Tel: +44-(0)207-883-4497 -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: 28 October 2005 14:25 To: Maven Users List Subject: Re: [m2] Unit test report in website You can generate test report with surefire-report plugin available in Mojo project : http://mojo.codehaus.org/surefire-report-maven-plugin/ Emmanuel Wim Deblauwe a écrit : Wow, so you're saying that the released version of Maven 2, can't generate a report of the unit tests??? any idea when a next version will be released. This seems like very basic functionality. regards, Wim 2005/10/28, [EMAIL PROTECTED] [EMAIL PROTECTED]: Wim, AFAIK, the current release of the surefire plugin can't generate XML reports, which is required for the surefire report plugin to work correctly. Try to build the surefire plugin from SVN, and you would probably get correct reports. Best Regards / Cordialement, Fabrice BELLINGARD DINQ/DSIN/INSI/EATE/IDVS/AIDV (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] Wim Deblauwe [EMAIL PROTECTED] ail.com http://ail.com Pour Maven Users List 28/10/2005 13:12 users@maven.apache.org cc Veuillez Objet répondre à [m2] Unit test report in website Maven Users List [EMAIL PROTECTED] che.org http://che.org Hi, I'm trying to add the results of my unit tests on the generated webpage. I added the surefire-plugin to the reports section, and I get a link the menu. However the webpage shows that no tests have run, but they do run: Results : [surefire] Tests run: 46, Failures: 0, Errors: 0 any ideas? Wim - 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] == Please access the attached hyperlink for an important electronic communications disclaimer: http://www.csfb.com/legal_terms/disclaimer_external_email.shtml == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] CVSNT problem
No, this doesn't work. Do I have any other possiblities? Server is CVSNT on Windows 2003 server. Emmanuel Venisse wrote: I'm not sure if maven-scm works with cvsnt, but you can try this: mvn -e scm:checkout -DconnectionUrl=scm|cvs|pserver|USERNAME:[EMAIL PROTECTED]|E:\cvs\common|MODULE and mvn -e scm:checkout -DconnectionUrl=scm|cvs|pserver|USERNAME:[EMAIL PROTECTED]|E:/cvs/common|MODULE Emmanuel Nitko2 a écrit : Hi, i'm in the process of learning about maven 2.0. So I created a project and decided to fetch source code from cvs repository. After I read that connection string from pom.xml won't help me with checkout, I tried with mvn -e scm:checkout -DconnectionUrl=scm:cvs:pserver:[EMAIL PROTECTED]:E:\cvs\common:MODULE mvn -e scm:checkout -DconnectionUrl=scm|cvs|pserver|[EMAIL PROTECTED]|E:\cvs\common|MODULE mvn -e scm:checkout -DconnectionUrl=scm|cvs|pserver|[EMAIL PROTECTED]|E:\cvs\common|MODULE With last command I got: [INFO] [scm:checkout] [ERROR] Provider message: [ERROR] The cvs command failed. [ERROR] Command output: [ERROR] Empty password used - try 'cvs login' with a real password cvs [checkout aborted]: \cvs\common: no such repository I'm using CVSNT on WinXP and .cvspass is created in user home. It seems that the problem is colon in repository path, but I don't know how to fix it. My Maven 1.x CVS history is repeating. Can someone help me with this. Thanks, Filip - 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]
build fails not noticed for maven1/win32?
When I build a maven-1.0 project, its being marked as successful even if the build fails, building on win32. Is this (still) a known issue? I've seen something similar before - as far back as 2002, forehead was swallowing maven's status code. I had to patch that to get it working with anthill. (http://lists.urbancode.com/pipermail/anthill/2002-December/000543.html - I mention it there, but it seems that jira is now defunct and forehead never made the move to codehaus).
Re: compile error
dependencies dependency groupIdalice-commons/groupId artifactIdalice-commons/artifactId version1.2/version scopecompile/scope - cause: no source but compile!!! /dependency /dependencies On 10/28/05, Luca Gmail [EMAIL PROTECTED] wrote: C:\Documents and Settings\lucarasconi\workspace\archetype\archetype\my-webappmvn compiler:compile ... [INFO] [compiler:compile] Compiling 2 source files to C:\Documents and Settings\lucarasconi\workspace\arch etype\archetype\my-webapp\target\classes [INFO] - --- [ERROR] BUILD FAILURE [INFO] - --- [INFO] Compilation failure C:\Documents and Settings\lucarasconi\workspace\archetype\archetype\my-webapp\src\main\java\i t\telecomitalia\rossoalice\SimpleServlet.java:[6,51] package it.telecomitalia.rossoalice.commons.servlet does not exist ... Other error This is my pom.xml file: project ... modelVersion4.0.0/modelVersion groupIdit.telecomitalia.rossoalice.template/groupId artifactIdsimple-servlet/artifactId packagingwar/packaging version1.0-SNAPSHOT/version nameRossoalice Webapp Template/name urlhttp://www.rossoalice.it/url repositories repository . /repository /repositories dependencies dependency groupIdalice-commons/groupId artifactIdalice-commons/artifactId version1.2/version scopesource/scope /dependency /dependencies build plugins plugin /plugin /plugins /build /project And inside alice-commons-1.2.jar there is the package it.telecomitalia.rossoalice.commons.servlet. why the compiler said the package doen't exist? Or what could be the problem? Tnx, Luca
Re: [m2] Unit test report in website
Wim, Maven plugins have their own release cycle. This means that even if Maven 2.0 (Core) has been released, some plugins have not been finalised yet. This is the case of the maven-surefire-plugin (http://maven.apache.org/maven2/plugins/maven-surefire-plugin/), which is currently released in 2.0-beta-1 version (http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/). This plugin executes the tests and can generate XML reports. This is also the case of the surefire-report-maven-plugin (http://mojo.codehaus.org/surefire-report-maven-plugin/), which is also released in 2.0-beta-1 version (http://www.ibiblio.org/maven2/org/codehaus/mojo/surefire-report-maven-plugin/). This plugin takes the result of the maven-surefire-plugin's execution and generates the web page report. As for the release dates, please read this thread: http://www.nabble.com/Plugin-release-dates-t444838.html#a1215236 Best Regards / Cordialement, Fabrice BELLINGARD DINQ/DSIN/INSI/EATE/IDVS/AIDV (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] Wim Deblauwe [EMAIL PROTECTED] ail.com Pour Maven Users List 28/10/2005 15:01 users@maven.apache.org cc VeuillezObjet répondre à Re: [m2] Unit test report in Maven Users List website [EMAIL PROTECTED] che.org Wow, so you're saying that the released version of Maven 2, can't generate a report of the unit tests??? any idea when a next version will be released. This seems like very basic functionality. regards, Wim 2005/10/28, [EMAIL PROTECTED] [EMAIL PROTECTED]: Wim, AFAIK, the current release of the surefire plugin can't generate XML reports, which is required for the surefire report plugin to work correctly. Try to build the surefire plugin from SVN, and you would probably get correct reports. Best Regards / Cordialement, Fabrice BELLINGARD DINQ/DSIN/INSI/EATE/IDVS/AIDV (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] Wim Deblauwe [EMAIL PROTECTED] ail.com http://ail.com Pour Maven Users List 28/10/2005 13:12 users@maven.apache.org cc Veuillez Objet répondre à [m2] Unit test report in website Maven Users List [EMAIL PROTECTED] che.org http://che.org Hi, I'm trying to add the results of my unit tests on the generated webpage. I added the surefire-plugin to the reports section, and I get a link the menu. However the webpage shows that no tests have run, but they do run: Results : [surefire] Tests run: 46, Failures: 0, Errors: 0 any ideas? Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can't download poi-2.0-final-20040126
Mysql 3.0.10 also doesn't work if you depend on it in maven 2. Marcus Eberts wrote: Hi, the directory to download poi-2.0-final is the right one, the pom file can be downloaded but the data in the pom file (groupId, artifactId, version) seems to be wrong... [INFO] Using default encoding to copy filtered resources. Downloading: http://www.ibiblio.org/maven2//poi/poi-2.0-final/20040126/poi-2.0-final-20040126.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: poi:poi-2.0-final Reason: Error getting POM for 'poi:poi-2.0-final' from the repository: Error transferring file poi:poi-2.0-final:20040126:pom poi-2.0-final-20040126.pom: metadata groupIdpoi/groupId artifactIdpoi-2.0-final/artifactId version20040126/version /metadata -- With kind regards, Geoffrey De Smet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JDeveloper Plugin
Hi, Recently downloaded Maven 2.0, as part of an evaluation within our development team as to whether it would benefit our development efforts. Currently, we use JDeveloper 10g as our development tool, and so the JDeveloper plugin looked great for our needs. However, on trying to use with Maven, the log tells us... [INFO] The plugin 'org.apache.maven.plugins:maven-jdeveloper-plugin' does not exist or no valid version could be found ... whenever we attempt to call the JDeveloper functions. Just to confirm a few things: Proxy server settings are made in settings.xml - I have been able to use compile, test and site goals with no problems.I've attempted to download the plugin(s) from http://maven.apache.org/reference/plugins/jdeveloper/downloads.html which worked, but won't integrate with Maven.Editing the maven-metadata-central.xml file still refuses to locate the plugin.Any suggestions? On a related note, does anyone know whether there is the ability to generate .JWS (JDeveloper Workspace) files from this plugin? Many thanks, Dave Edmonds ISD Software Solutions Kent Police, UK This Email and any accompanying document(s) contain information from Kent Police, which is confidential or privileged. The information is intended to be for the exclusive use of the individual(s) or bodies to whom it is addressed. If you are not the intended recipient be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this Email in error please notify us by telephone immediately. The copyright in the contents of this email and any enclosures is the property of Kent Police and any unauthorised reproduction or disclosure is contrary to the provisions of the Copyright Designs and Patents Act 1988.
Re: [m2] deployment of Jetty 6
On Thu, 2005-10-27 at 21:35 -0700, David Jencks wrote: On Oct 26, 2005, at 3:30 AM, Greg Wilkins wrote: Ideally, I think apache should branch all the standard javax stuff into a project of it's own. That way tomcat, jetty and geronimo would all be siblings and there would be no cross dependancies and versioning could be correctly done. +1 Several geronimo developers have discussed this as well but we haven't had time to gather support from the other apache projects bundling specs such as tomcat, axis, pluto, etc etc etc. Where do you think the best place might be to organize something like this? A separate TLP where all the projects could get involved? I think that we will still need to include more versioning information than the spec version, such as groupIdorg.apache.specs/groupId artifactIdservlet-2.4/artifactId versionId1.0/versionId Just as you have needed to modify spec code when problems appear, at geronimo we've recently found some problems in e.g. jacc, which has been passing the tck for months and months. So, I think we need the ability to fix bugs within a spec version. So if some project were formed that housed all the specs the same project would house (privately) the TCKs? I assume fixes to the specs would be infrequent but would require the running of the TCK for each change. thanks david jencks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org believe nothing, no matter where you read it, or who has said it, not even if i have said it, unless it agrees with your own reason and your own common sense. -- Buddha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Too heavy load for ibiblio?
On Fri, 2005-10-28 at 08:46 +0200, Dietrich Schulten wrote: Hi, Mvn is having trouble to download commons-codec from ibiblio. Browsing showed that yesterday something was updated there, but I cannot download manually. Is there something broken or are there just too many connections? During peak hours (the afternoon in US TZs) Ibiblio can get rather bogged down. Now that the main push for Maven and Continuum releases have been done we can now focus on some infrastructure issues like repository maintenance and repository distribution. We definitely need to move toward a CPAN like distribution of artifacts. Regards, Dietrich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org First, the taking in of scattered particulars under one Idea, so that everyone understands what is being talked about ... Second, the separation of the Idea into parts, by dividing it at the joints, as nature directs, not breaking any limb in half as a bad carver might. -- Plato, Phaedrus (Notes on the Synthesis of Form by C. Alexander) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Continuum and ClearCase
What is meant by path_to_repository ? Is this the path from my pom.xml to my local repository, or to my remote repository? And what is the module_name? 2005/10/28, Emmanuel Venisse [EMAIL PROTECTED]: not with continuum provider, but you can certainly use the local provider in your scm connection string. format is described there: http://maven.apache.org/scm/scm-url-format.html Wim Deblauwe a écrit : ok, thanks for the info (I'm not registered on the continuum list,that is why I posted here) Is there a workaround? Can I just point to a file location somewhere and tell continuum to build that? regards, Wim 2005/10/28, Emmanuel Venisse [EMAIL PROTECTED]: Continuum doesn't support clearcase for the moment. Some users will try to do it in Maven-SCM. If you want to join to the effort, you're welcome. The next time, it would be better if you send message on the continuum user list. Emmanuel Wim Deblauwe a écrit : I'm trying to get my maven 2 project running with continuum but I don't succeed. We are using ClearCase, you I've set: scm connectionscm:clearcase:/connection /scm In my pom.xml, but the build fails. This is the debug window: jvm 1 | 2005-10-28 13:46:33,171 [SocketListener0-1] INFO Continuum - Enqueuing 'Utils Logging Module' (Build definition id=6. jvm 1 | 2005-10-28 13:46:33,593 [Thread-1] INFO ContinuumScm - Checking out project: 'Utils Logging Module', id: '6' to 'C:\Program Files\Apache Software Foundation\continuum-1.0 \bin\win32\..\..\apps\continuum\working-directory\6'. jvm 1 | 2005-10-28 13:46:33,750 [Thread-1] WARN ConfigurationService - Error reading build output for build '12'. jvm 1 | java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\continuum- 1.0\bin\win32\..\..\apps\continuum\build-output-directory\6\12.log.txt (The system cannot find the file specified) jvm 1 | at java.io.FileInputStream.open(Native Method) jvm 1 | at java.io.FileInputStream.init(FileInputStream.java:106) jvm 1 | at org.codehaus.plexus.util.FileUtils.fileRead(FileUtils.java :269) jvm 1 | at org.codehaus.plexus.util.FileUtils.fileRead(FileUtils.java :261) jvm 1 | at org.apache.maven.continuum.configuration.DefaultConfigurationService.getBuildOutput (DefaultConfigurationService.java:167) jvm 1 | at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification (DefaultContinuumNotificationDispatcher.java:129) jvm 1 | at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete (DefaultContinuumNotificationDispatcher.java:96) jvm 1 | at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build ( DefaultBuildController.java:261) jvm 1 | at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask (BuildProjectTaskExecutor.java:53) jvm 1 | at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run (ThreadedTaskQueueExecutor.java:103) jvm 1 | at java.lang.Thread.run(Thread.java:595) It states checking out project , but that directory working-directory\6 is never created. regards, Wim - 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] APT and Umlaut
For full internationalization I think APT should be able to handle umlauts. How do I code umlaut in APT? xdoc does accept umlauts, APT does translate them into something non-readable. Example Einführung --APT-- Einführung Einfuuml;rung --APT-- Einfuuml;rung I tried to save the APT document as UNICODE, UTF8, but with the same result. Any ideas are welcome. Thanks in advance Daniel Frey
Re: [m2] CVSNT problem
can you send us the logs? Nitko2 a écrit : Yes, 'pserver' is not recognized as an internal or external command,operable program or batch file. Emmanuel Venisse wrote: Do you have an error or message with this command? Nitko2 a écrit : No, this doesn't work. Do I have any other possiblities? Server is CVSNT on Windows 2003 server. Emmanuel Venisse wrote: I'm not sure if maven-scm works with cvsnt, but you can try this: mvn -e scm:checkout -DconnectionUrl=scm|cvs|pserver|USERNAME:[EMAIL PROTECTED]|E:\cvs\common|MODULE and mvn -e scm:checkout -DconnectionUrl=scm|cvs|pserver|USERNAME:[EMAIL PROTECTED]|E:/cvs/common|MODULE Emmanuel Nitko2 a écrit : Hi, i'm in the process of learning about maven 2.0. So I created a project and decided to fetch source code from cvs repository. After I read that connection string from pom.xml won't help me with checkout, I tried with mvn -e scm:checkout -DconnectionUrl=scm:cvs:pserver:[EMAIL PROTECTED]:E:\cvs\common:MODULE mvn -e scm:checkout -DconnectionUrl=scm|cvs|pserver|[EMAIL PROTECTED]|E:\cvs\common|MODULE mvn -e scm:checkout -DconnectionUrl=scm|cvs|pserver|[EMAIL PROTECTED]|E:\cvs\common|MODULE With last command I got: [INFO] [scm:checkout] [ERROR] Provider message: [ERROR] The cvs command failed. [ERROR] Command output: [ERROR] Empty password used - try 'cvs login' with a real password cvs [checkout aborted]: \cvs\common: no such repository I'm using CVSNT on WinXP and .cvspass is created in user home. It seems that the problem is colon in repository path, but I don't know how to fix it. My Maven 1.x CVS history is repeating. Can someone help me with this. Thanks, Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] CVSNT problem
Hi Nitko, I had a similar problem using CVSNT client and a Linux CVS server. Try these steps: 1. Update client and server CVS binaries to the latest version (there used to be some incompatibilities between Win / Linux versions) 2. Look if the .cvspass repository entries really match the repository specified in the SCM Url 3. Search the registry for your path (/cvs/common or whatever), in my case the entries that CVSNT put there contained a trailing slash, which caused the problem for me. 4. Check your CVSROOT environment variable, try to set it explicitly on the command prompt for testing. As a general advice: the problem that you encounter is probably not the fault of the Maven PlugIn, but rather a configuration error on your side. CVSNT does not use the .cvspass, but instead the entries in the registry, so the first thing to do would be to execute the CVS commands on the dosprompt and see if it works there, if not check your settings in the .cvspass, the registry and also the server side if the repository strings match exactly. It took me quite some time until I got that fixed on my side, but don't despair, it will eventually work. :-) Hope this helps, Michael Böckling Do you have an error or message with this command? Nitko2 a écrit : No, this doesn't work. Do I have any other possiblities? Server is CVSNT on Windows 2003 server. Emmanuel Venisse wrote: I'm not sure if maven-scm works with cvsnt, but you can try this: mvn -e scm:checkout -DconnectionUrl=scm|cvs|pserver|USERNAME:[EMAIL PROTECTED]|E:\cvs\common|MODULE and mvn -e scm:checkout -DconnectionUrl=scm|cvs|pserver|USERNAME:[EMAIL PROTECTED]|E:/cvs/common|MODULE Emmanuel Nitko2 a écrit : Hi, i'm in the process of learning about maven 2.0. So I created a project and decided to fetch source code from cvs repository. After I read that connection string from pom.xml won't help me with checkout, I tried with mvn -e scm:checkout -DconnectionUrl=scm:cvs:pserver:[EMAIL PROTECTED]:E:\cvs\common:MODULE mvn -e scm:checkout -DconnectionUrl=scm|cvs|pserver|[EMAIL PROTECTED]|E:\cvs\common|MODULE mvn -e scm:checkout -DconnectionUrl=scm|cvs|pserver|[EMAIL PROTECTED]|E:\cvs\common|MODULE With last command I got: [INFO] [scm:checkout] [ERROR] Provider message: [ERROR] The cvs command failed. [ERROR] Command output: [ERROR] Empty password used - try 'cvs login' with a real password cvs [checkout aborted]: \cvs\common: no such repository I'm using CVSNT on WinXP and .cvspass is created in user home. It seems that the problem is colon in repository path, but I don't know how to fix it. My Maven 1.x CVS history is repeating. Can someone help me with this. Thanks, Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: POM properties
On Fri, 2005-10-28 at 09:23 -0400, Tomislav Stojcevich wrote: How do you reference something that is a collection in the POM? Let's say there are 2 developers and I want to get their email addresses to put in the notifier.address section of the ciManagement section (I know a mailing list is preferred but we don't have one set up right now and I know there are JIRA's in Continuum to propogate the developers into continuum as users and the users as the notifiers but until then...) ${project.developers.developer.xxx.email} (where xxx is ther id) or ${project.developers.developer[0].email) Currently the interpolation won't allow that but there is a JIRA issue for moving toward using Velocity like interpolation which would make this easier. On 10/27/05, Jason van Zyl [EMAIL PROTECTED] wrote: On Thu, 2005-10-27 at 15:25 +1000, Michael McCrann wrote: Hi, Is there any documentation that describes what things from the POM are available as variables? Anything in the POM itself: http://maven.apache.org/maven-model/maven.html How do I specify 'target' as a property? The things I have tried haven't worked: You can take a look at this: http://maven.apache.org/guides/introduction/introduction-to-the-pom.html Which shows the Super POM which has most of the build elements that you might want to use. $(pom.build.outputDirectory} ${pom.build.dir} ${build.dir} Close but no cigar :-) ${pom.build.directory} NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org We all have problems. How we deal with them is a measure of our worth. -- Unknown - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven 2 specify properties file
i have an antrun plugin that runs in integration test phase to copy war file to a local webapps folder. i want each developer to be able to specify the webapps folder. how can i get maven to read the property ${webapps.folder} out of a properties file? i saw a post on m2 beta that suggests profile idenv-test/id activation *property* nameenv/name valuetest/value /*property* /activation properties appPropertiestest.properties/appProperties /properties /profile but appProperties doesn't seem to work on maven 2.0 -- John Stein [EMAIL PROTECTED] 717.439.0787 mobile jdsetown AIM, Yahoo IM Perfect Order has changed its name to Versatile, which more correctly represents the combined capabilities of Versatile Mobile Systems and Perfect Order. From the data center to users on the move, Versatile turns data into knowledge. Please visit our new web site at http://www.versatile.com
[102] subproject Downloads page Release Notes
hello to all, We're using v1.0.2. I have a multiproject, with several subprojects (each subproject has it's own project.xml, some not all have their own xdocs). When I tag and release the parent project, the Downloads page of a subproject contains a generated line for the new release tag, with a link for the jar but also a link for the Release Notes. The problem is, I may not have updated changes.xml in the subproject for the new release (there may have been no need to) but the subproject has a Release Notes to a nonexistent link. Do I have to add a release comment to changes.xml for subprojects, even if the subproject had no changes to report? Or should changes.xml for a multiproject be coded *only* at the parent level, not subproject level? Or is there a way to suppress the generation of a release note in a subproject, unless it is truly coded in the subproject's changes.xml? Thanks in advance for your help. Tom 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: How to add jtidy as a depency?
On Fri, 2005-10-28 at 08:52 -0600, Siegfried Heintze wrote: Did I miss the reply to this? I've been looking for it. If I did not miss it, can anyone advise me on how to add JTidy? Try again now, all the -dev JARs were put back into the repository. If that doesn't work now then we have a bigger problem. Thanks, Siegfried -Original Message- From: Jason van Zyl [mailto:[EMAIL PROTECTED] Sent: Thursday, October 20, 2005 9:26 AM To: Maven Users List Subject: Re: How to add jtidy as a depency? On Wed, 2005-10-19 at 22:42 -0600, Siegfried Heintze wrote: Thanks for that last response on license.txt. I'm looking at http://www.ibiblio.org/maven/jtidy/jars/. How would I add this as a dependency? This does not work: dependency groupIdjtidy/groupId artifactIdjtidy/artifactId version4aug2000r7-dev/version /dependency I had that problem yesterday when I used a clean repo. I thought it was a timeout but that -dev might be causing problems. I'll take a peek. Thanks, Siegfried - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Custom package dependencies (dotnet dll's) not being found f or compile step in CSharpCompiler
Dear All, I've been writing a dotnet plugin for Maven to compile/NDoc/Nunit a dotnet project within Maven 2. Things have been progressing well but I've got to real sticking point with handling custom dependent types. What I've done is: 1. Use a custom compiler (written by Trygve and overs) to compile the C# libraries. 2. Written a dotnet plugin which defines its own build process for dotnet projects (using as much as possible of the existing build process) My problem is the custom compiler is not being passed the dependencies that I have defined in the pom (they are of a custom package dotnet-libray that I have defined). The only entry in the ${project.compileClasspathElements} that is being passed to the CSharpCompiler is the path to the output directory as a string. So my questions are: 1. Should I/one of the existing build components set this variable by manually adding my dlls as dependants? If I should should it be in a custom implementation of the resources:resources goal? 2. If not is there some way I can pass this info to the custom compiler through the POM? I know that the dependency is definately being found (see output from compile goal) Any help much appreciated. Regards, Chris. Here is the POM in my CSharp project, my custom build cycle and the output from the compile step: -- POM -- project modelVersion4.0.0/modelVersion artifactIdcsharp-sample/artifactId groupIdengn/groupId nameEngine CSharp Test/name versionSNAPSHOT/version packagingdotnet-exe/packaging build directorytarget/directory outputDirectorytarget/dotnet-assembly/outputDirectory testOutputDirectorytarget/test-dotnet-assembly/testOutputDirectory sourceDirectorysrc/main/csharp/sourceDirectory testSourceDirectorysrc/test/csharp/testSourceDirectory plugins plugin artifactIdmaven-compiler-plugin/artifactId version2.0/version configuration compilerIdcsharp/compilerId forktrue/fork executablecsc/executable includes include**/*.cs/include /includes verbosetrue/verbose compilerArguments mainClassConsoleApplication1.ConsoleApp/mainClass doctrue/doc targetexe/target /compilerArguments /configuration extensionstrue/extensions dependencies dependency groupIdorg.codehaus.plexus/groupId artifactIdplexus-compiler-csharp/artifactId version1.6-SNAPSHOT/version /dependency /dependencies /plugin plugin groupIdengn/groupId artifactIdengn-maven-plugin-dotnet/artifactId extensionstrue/extensions /plugin /plugins /build dependencies dependency groupIdnunit/groupId artifactIdnunit.framework/artifactId version2.2/version typedotnet-library/type /dependency /dependencies /project -- Custom LifeCycle -- component-set components component roleorg.apache.maven.lifecycle.mapping.LifecycleMapping/role role-hintdotnet-library/role-hint implementationorg.apache.maven.lifecycle.mapping.DefaultLifecycleMapping/ implementation configuration phases process-resourcesorg.apache.maven.plugins:maven-resources-plugin:resources /process-resources compileorg.apache.maven.plugins:maven-compiler-plugin:compile/compile process-test-resourcesorg.apache.maven.plugins:maven-resources-plugin:test Resources/process-test-resources test-compileorg.apache.maven.plugins:maven-compiler-plugin:testCompile/te st-compile testengn:engn-maven-plugin-dotnet:test/test packageengn:engn-maven-plugin-dotnet:package/package installorg.apache.maven.plugins:maven-install-plugin:install/install
[m2] Tomcat plugin
Hello, With m1 I was using the codeczar tomcat plugin at http://www.codeczar.com/products/maven-tomcat-plugin/. But this project doesn't look like it's too actively maintained and I can't find a version for m2. Does anyone know the status or an alternative plugin to deploy/undeploy/redeploy webapps to tomcat with maven? Thanks, Rich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RES: M2 from behind a proxy
The problem is not the proxy conf. maven, i don't know why, is unable to resolve the right version. I suggest to delete the .m2/repository dir and retry. Bye, Luca -Original Message- From: John Casey [mailto:[EMAIL PROTECTED] Sent: venerdì 28 ottobre 2005 17.47 To: Maven Users List Subject: Re: RES: M2 from behind a proxy -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You might want to see the FAQ entry on proxy setup on the Maven website. You need an entry in ~/.m2/settings.xml to tell what the proxy settings are... http://maven.apache.org/guides/mini/guide-proxies.html HTH, john Roberto Castro wrote: | Hi, Luca! | I've entered this line but it didn't work yet: | mvn -X archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app | -Dproxies.proxy.host=copacabana.cetipnet -Dproxies.proxy.port=3128 | | Here is the error message I've been facing: | | + Error stacktraces are turned on. | [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settin | gs\roberto\.m2\plugin-registry.xml' | [DEBUG] Building Maven global-level plugin registry from: 'G:\Maven\Apache Softw | are Foundation\maven-2.0\conf\plugin-registry.xml' | [INFO] Scanning for projects... | [INFO] Searching repository for plugin with prefix: 'archetype'. | [DEBUG] maven-archetype-plugin: using locally installed snapshot | [DEBUG] Artifact not found - using stub model: Unable to determine the latest ve | rsion | org.apache.maven.plugins:maven-archetype-plugin:LATEST:pom | | | [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-archetype- | plugin:pom:LATEST | [DEBUG] maven-archetype-plugin: using locally installed snapshot | [DEBUG] Artifact not found - using stub model: Unable to determine the release v | ersion | org.apache.maven.plugins:maven-archetype-plugin:RELEASE:pom | | | [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-archetype- | plugin:pom:RELEASE | [INFO] - - | --- | [ERROR] BUILD ERROR | [INFO] - - | --- | [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exi | st or no valid version could be found | [INFO] - - | --- | [DEBUG] Trace | org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.m | aven.plugins:maven-archetype-plugin' does not exist or no valid version could be | found | at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa | ultLifecycleExecutor.java:1124) | at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor | (DefaultLifecycleExecutor.java:1356) | at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy | AggregationNeeds(DefaultLifecycleExecutor.java:376) | at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi | fecycleExecutor.java:132) | at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) | at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) | 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(DelegatingMethodAcces | sorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) | at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) | at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) | | at org.codehaus.classworlds.Launcher.main(Launcher.java:375) | Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The p | lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no val | id version could be found | at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl | uginVersion(DefaultPluginVersionManager.java:225) | at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl | uginVersion(DefaultPluginVersionManager.java:87) | at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug | inManager.java:158) | at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa | ultLifecycleExecutor.java:1095) | ... 14 more | [INFO] - - | --- | [INFO] Total time: 1 second | [INFO] Finished at: Fri Oct 28 13:22:39 BRST 2005 | [INFO] Final Memory: 1M/2M | [INFO] - - | --- | | Regards, | | Roberto de Castro | Analista de Suporte | Cetip - Desus Rio de Janeiro |
Re: AW: [m2] Tomcat plugin
Lars Francke wrote: Hello, With m1 I was using the codeczar tomcat plugin at http://www.codeczar.com/products/maven-tomcat-plugin/. But this project doesn't look like it's too actively maintained and I can't find a version for m2. Does anyone know the status or an alternative plugin to deploy/undeploy/redeploy webapps to tomcat with maven? there is one available at: https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/maven-tomcat-plugin/ but you have to check it out and compile by yourself (which, of course, is easy thans to Maven). Working like a charme here. Awesome, thanks. I'll give it a try. Rich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: keyword SNAPSHOT in depedency version is ignored
Hey, I realized when writing the reply that the documentation is somehow misleading (at least if you don't read it carefully), we will rewrite the corresponding section to make it clearer. If you think that the functionality that you expected should be implemented, you could file a feature request on JIRA [1]. However, personally, I am not sure if I would want such a functionality. Having the latest releases downloaded automatically is not always what you want and could even be dangerous (what if the dependency project publishes a backwards-incompatible release?). Cheers, Lukas [1] http://jira.codehaus.org/browse/MAVEN (you have to open an account if you want to file issues) Gianfranco Oldani wrote: Hi Lukas, I had the same problem as Stefan ( I am a maven beginner also) and get the same explanation as you give. The fact is that I was expecting the same behavior as Stefan and maybe that can be a possible enhancement to put on the strack? Maybe I miss something but I don't see why it will not be possible. Regards. Gianfranco Oldani Original Message Follows From: Lukas Theussl [EMAIL PROTECTED] Reply-To: Maven Users List users@maven.apache.org To: Maven Users List users@maven.apache.org Subject: Re: keyword SNAPSHOT in depedency version is ignored Date: Thu, 27 Oct 2005 21:11:08 + This is a misunderstanding of the SNAPSHOT functionality, maven does _not_ replace SNAPSHOT with the latest available version of a project. Using a SNAPSHOT dependency still assumes that the project that you depend upon has actually published a SNAPSHOT. This is not the case for commons-logging. See http://maven.apache.org/maven-1.x/using/managing-dependencies.html#Using_SNAPSHOT_Dependencies Regards, Lukas Dr. Stefan Reisner wrote: I have created the following dependency in my maven project: dependency groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId versionSNAPSHOT/version /dependency This results in the following behaviour being logged on the console when invoking maven: D:\workspace\de.syngenio.kompass.kikmaven __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 Attempting to download commons-logging-SNAPSHOT.jar. WARNING: Failed to download commons-logging-SNAPSHOT.jar. My expectation was that maven would replace SNAPSHOT (or for that any version value in which SNAPSHOT occurs as a substring) by the most current version available in the repository. What is going wrong here? I should add that I'm new to maven, so it's probably something stupid simple. Best regards, Dr. Stefan Reisner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Éradiquez enfin les fenêtres intempestives et surfez en toute tranquilité!!! http://toolbar.fr.msn.ch?DI=1057XAPID=2083 - 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] Too heavy load for ibiblio?
There are a couple of mirrors that you can use.. I find that solves a lot of these types of issues! There is a doc about how to use mirrored repositories. Eric On Oct 28, 2005, at 2:46 AM, Dietrich Schulten wrote: Hi, Mvn is having trouble to download commons-codec from ibiblio. Browsing showed that yesterday something was updated there, but I cannot download manually. Is there something broken or are there just too many connections? Regards, Dietrich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven 2 specify properties file
dave, that shows how to do token filtering, but not how to specify that maven read in properties from a properties file.i can specify a property on command line like: mvn integration-test -Dwebapps.dir=/zeus/webapps but don't know how to get maven to read in a bunch of properties from a file regards, John Stein [EMAIL PROTECTED] 717.439.0787 mobile jdsetown AIM, Yahoo IM Dave EDMONDS PSE 54839 wrote: John, Take a quick peek at this page - think this does what you want... http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20filter%20resource%20files? Regards, Dave Edmonds ISD Software Solutions Kent Police, UK [EMAIL PROTECTED] 10/28/05 3:42 pm i have an antrun plugin that runs in integration test phase to copy war file to a local webapps folder. i want each developer to be able to specify the webapps folder. how can i get maven to read the property ${webapps.folder} out of a properties file? i saw a post on m2 beta that suggests profile idenv-test/id activation *property* nameenv/name valuetest/value /*property* /activation properties appPropertiestest.properties/appProperties /properties /profile but appProperties doesn't seem to work on maven 2.0 -- John Stein [EMAIL PROTECTED] 717.439.0787 mobile jdsetown AIM, Yahoo IM Perfect Order has changed its name to Versatile, which more correctly represents the combined capabilities of Versatile Mobile Systems and Perfect Order. From the data center to users on the move, Versatile turns data into knowledge. Please visit our new web site at http://www.versatile.com This Email and any accompanying document(s) contain information from Kent Police, which is confidential or privileged. The information is intended to be for the exclusive use of the individual(s) or bodies to whom it is addressed. If you are not the intended recipient be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this Email in error please notify us by telephone immediately. The copyright in the contents of this email and any enclosures is the property of Kent Police and any unauthorised reproduction or disclosure is contrary to the provisions of the Copyright Designs and Patents Act 1988. Perfect Order has changed its name to Versatile, which more correctly represents the combined capabilities of Versatile Mobile Systems and Perfect Order. From the data center to users on the move, Versatile turns data into knowledge. Please visit our new web site at http://www.versatile.com
RE: [m2] multiple goal executions
On Fri, 2005-10-28 at 09:41 -0600, David Jackman wrote: Is there an answer for this question anywhere? This is something I'll be facing in the not-too-distant future as well. It would be a matter of placing something in the session to indicate the task had been done already or the surefire plugin could drop a token somewhere when the tests were done and we could compare the timestamp of that token with the test sources. The latter is probably easier but the former might be a more general solution for plugin developers. -Original Message- From: Van Steenberghe Mario (GFDI) [mailto:[EMAIL PROTECTED] Sent: Thursday, October 27, 2005 3:30 AM To: users@maven.apache.org Subject: [m2] multiple goal executions Hello, We've set up a build that generates some jar files for our projects. During this build, I also generate some reports, such as surefire-report and clover. Now, when I look in the log files, I see that certain goals are executed multiple times. The one that bothers us the most is 'surefire:test'. After some research I found that the concerned report mojos have an '@execute phase=test' annotation, which means that this phase will be executed before the mojo is executed, no matter if this phase was already executed somewhere before. Since our junit tests take about 20 minutes to run completely, it is very important that they are not run multiple times. Is there any way I could easily overcome this problem ? Many thanks in advance, Mario Van Steenberghe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org First, the taking in of scattered particulars under one Idea, so that everyone understands what is being talked about ... Second, the separation of the Idea into parts, by dividing it at the joints, as nature directs, not breaking any limb in half as a bad carver might. -- Plato, Phaedrus (Notes on the Synthesis of Form by C. Alexander) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ant classpath variables
I'm using the antrun plugin to enhance my kodo jdo class files, and run testng from ant build files. In these build files I know I have access to maven.dependency.classpath, however this doesn't include any of the jars that are in the test scope. Is there any other class path reference I can use? I have tried maven.test.classpath, however that doesn't seem to work any better than maven.dependency.classpath Any ideas?? POM: plugin artifactIdmaven-antrun-plugin/artifactId version1.0/version executions execution idrun-testng/id phasetest/phase configuration tasks ant antfile=run-testng.xml inheritAll=true inheritRefs =true/ /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin Ant Build file project name=TestNG default=test property environment=environment/ property name=m2localrepo value=${environment.M2_REPO}/ path id=local.class.path fileset dir=${m2localrepo} include name=**/*testng*.jar/ /fileset pathelement location=./target/test-classes/ pathelement location=./target/classes/ path refid=maven.dependency.classpath/ /path target name=test taskdef resource=testngtasks classpathref=local.class.path/ testng classpathref=local.class.path outputDir=./target/testng-output sourcedir=./src/test/java haltOnfailure=true xmlfileset dir=./target/test-classes includes=testng.xml/ /testng /target /project ___ Damian Bradicich Software Developer Scientific Technologies Corporation Tel: (603) 471-4712 Email: [EMAIL PROTECTED] Web Site: www.stchome.com Advancing Public Health Outcomes Through Information Technology ___ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Profiles in dependent projects
using maven2 fyi I have a pom file that defines our persistant layer jar project, it has 2 dependencies, each is wrapped in a profile as follows profiles profile idoracle-supplementaldata/id dependencies dependency groupIdoracle/groupId artifactIdclasses12/artifactId version1.0/version scopecompile/scope /dependency /dependencies /profile profile idmssql-supplementaldata/id dependencies dependency groupIdmicrosoft/groupId artifactIdmssqlserver/artifactId versionUNKNOWN/version scopecompile/scope /dependency /dependencies /profile /profiles Now when I try to then include this jar project as a compile dependency for a war project, the profile dependencies aren't getting carried over. My current workaround is to redefine the profiles in the pom of the war project, but that just seems like it isn't necessary Any ideas?? ___ Damian Bradicich Software Developer Scientific Technologies Corporation Tel: (603) 471-4712 Email: [EMAIL PROTECTED] Web Site: www.stchome.com Advancing Public Health Outcomes Through Information Technology ___ - 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] DIR structure and archetype questions...
I need help to get my existing directory structure into an m2 statndard structure. I also want to know if the m2 structure I create can be made into an archetype so that all groups in our organization can use the same structure easily? Here is my m1 structure (layout #1): * fastforward Application | +-commonJar-subproject |+- src || +- java || +- test || +- java |+- xdocs | +-ff-web-subproject +- src | +- conf | | +- web | | +- properties | | +- tld | | +- xmi | | +- xml | +- java | +- test | | +- java | +- web | +- layouts (under WEB-INF) | +- resources (NOT under WEB-INF. images etc...) +- xdocs I am guessing at the new web structure as this but not sure (Layout #2): * fastforward Application | +-ff-web-subproject |+- servlet || +- src || +- main || | +- java || | +- webapp || | +- WEB-INF || | +- (*.jsp, *.xml, *.properties, *.xmi, *.tld) || | +- (*.jsp, *.htm*, *.gif, *.jpg, *.css, *.js) || +- test || +- java |+- site |+- src |+- site |+- apt (name?) | +-commonJar-subproject |+- src |+- main |+- java |+- test |+- java +- site +- src +- site +- apt (name?) I guess my confusion here comes with the directories in the maven archetype called ear, ejbs, projects and there only being 1 site DIR now. So let me try to outline my questions: -- 1. Why is the archetype-resources DIR structure under src/main/resources? 2. Is there now only 1 site dir for the entire project? 3. did I rearrange my subprojectscorrectly as depicted in layout #2? 4. Why is there a src/main/java in the ear subproject of this archetype? 5. What is the difference between the primary-source and the projects DIR's? 6. Why did you call the DIR with the web files servlets? Why not something like ff-web-subproject or ff-webapp-subproject? Is there a reason NOT to name it like I had already done in my m1? Then from the Vincent Massol PPT, I am not sure what to do with the following DIR's: +- distibution +- extensions |+- maven |+- ant +- samples Thank You Mick Knutson Sr. Java/J2EE Consultant BASE logic, inc. (415) 648-1804 (S.F., CA) http://www.BASELogic.com HP Consulting Services (Walnut Creek, CA) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] DIR structure and archetype questions...
I need help to get my existing directory structure into an m2 statndard structure. I also want to know if the m2 structure I create can be made into an archetype so that all groups in our organization can use the same structure easily? Here is my m1 structure (layout #1): * fastforward Application | +-commonJar-subproject |+- src || +- java || +- test || +- java |+- xdocs | +-ff-web-subproject +- src | +- conf | | +- web | | +- properties | | +- tld | | +- xmi | | +- xml | +- java | +- test | | +- java | +- web | +- layouts (under WEB-INF) | +- resources (NOT under WEB-INF. images etc...) +- xdocs I am guessing at the new web structure as this but not sure (Layout #2): * fastforward Application | +-ff-web-subproject |+- servlet || +- src || +- main || | +- java || | +- webapp || | +- WEB-INF || | +- (*.jsp, *.xml, *.properties, *.xmi, *.tld) || | +- (*.jsp, *.htm*, *.gif, *.jpg, *.css, *.js) || +- test || +- java |+- site |+- src |+- site |+- apt (name?) | +-commonJar-subproject |+- src |+- main |+- java |+- test |+- java +- site +- src +- site +- apt (name?) I guess my confusion here comes with the directories in the maven archetype called ear, ejbs, projects and there only being 1 site DIR now. So let me try to outline my questions: -- 1. Why is the archetype-resources DIR structure under src/main/resources? 2. Is there now only 1 site dir for the entire project? 3. did I rearrange my subprojectscorrectly as depicted in layout #2? 4. Why is there a src/main/java in the ear subproject of this archetype? 5. What is the difference between the primary-source and the projects DIR's? 6. Why did you call the DIR with the web files servlets? Why not something like ff-web-subproject or ff-webapp-subproject? Is there a reason NOT to name it like I had already done in my m1? Then from the Vincent Massol PPT, I am not sure what to do with the following DIR's: +- distibution +- extensions |+- maven |+- ant +- samples Thank You Mick Knutson Sr. Java/J2EE Consultant BASE logic, inc. (415) 648-1804 (S.F., CA) http://www.BASELogic.com HP Consulting Services (Walnut Creek, CA) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: RES: M2 from behind a proxy
Luca, I deleted .m2/repository and executed Maven agind, but, It didn't work. I think Maven is not able to find ibiblio. Actually, the problem must be with proxy configuration. I'll try to configure settings.xml and I'll inform you later. Let's see. Best regards, Roberto de Castro Analista de Suporte Cetip - Desus Rio de Janeiro +55 21 2276-7439 mailto:[EMAIL PROTECTED] -Mensagem original- De: Luca Gmail [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 28 de outubro de 2005 13:54 Para: 'Maven Users List' Assunto: RE: RES: M2 from behind a proxy The problem is not the proxy conf. maven, i don't know why, is unable to resolve the right version. I suggest to delete the .m2/repository dir and retry. Bye, Luca -Original Message- From: John Casey [mailto:[EMAIL PROTECTED] Sent: venerdì 28 ottobre 2005 17.47 To: Maven Users List Subject: Re: RES: M2 from behind a proxy -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You might want to see the FAQ entry on proxy setup on the Maven website. You need an entry in ~/.m2/settings.xml to tell what the proxy settings are... http://maven.apache.org/guides/mini/guide-proxies.html HTH, john Roberto Castro wrote: | Hi, Luca! | I've entered this line but it didn't work yet: | mvn -X archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app | -Dproxies.proxy.host=copacabana.cetipnet -Dproxies.proxy.port=3128 | | Here is the error message I've been facing: | | + Error stacktraces are turned on. | [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settin | gs\roberto\.m2\plugin-registry.xml' | [DEBUG] Building Maven global-level plugin registry from: 'G:\Maven\Apache Softw | are Foundation\maven-2.0\conf\plugin-registry.xml' | [INFO] Scanning for projects... | [INFO] Searching repository for plugin with prefix: 'archetype'. | [DEBUG] maven-archetype-plugin: using locally installed snapshot | [DEBUG] Artifact not found - using stub model: Unable to determine the latest ve | rsion | org.apache.maven.plugins:maven-archetype-plugin:LATEST:pom | | | [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-archetype- | plugin:pom:LATEST | [DEBUG] maven-archetype-plugin: using locally installed snapshot | [DEBUG] Artifact not found - using stub model: Unable to determine the release v | ersion | org.apache.maven.plugins:maven-archetype-plugin:RELEASE:pom | | | [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-archetype- | plugin:pom:RELEASE | [INFO] - - | --- | [ERROR] BUILD ERROR | [INFO] - - | --- | [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exi | st or no valid version could be found | [INFO] - - | --- | [DEBUG] Trace | org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.m | aven.plugins:maven-archetype-plugin' does not exist or no valid version could be | found | at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa | ultLifecycleExecutor.java:1124) | at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor | (DefaultLifecycleExecutor.java:1356) | at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy | AggregationNeeds(DefaultLifecycleExecutor.java:376) | at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi | fecycleExecutor.java:132) | at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) | at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) | 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(DelegatingMethodAcces | sorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) | at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) | at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) | | at org.codehaus.classworlds.Launcher.main(Launcher.java:375) | Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The p | lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no val | id version could be found | at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl | uginVersion(DefaultPluginVersionManager.java:225) | at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl | uginVersion(DefaultPluginVersionManager.java:87) | at
Re: [M2] Too heavy load for ibiblio?
Hi Jason, Jason van Zyl wrote: On Fri, 2005-10-28 at 08:46 +0200, Dietrich Schulten wrote: Hi, Mvn is having trouble to download commons-codec from ibiblio. Browsing showed that yesterday something was updated there, but I cannot download manually. Is there something broken or are there just too many connections? During peak hours (the afternoon in US TZs) Ibiblio can get rather bogged down. Now that the main push for Maven and Continuum releases have been done we can now focus on some infrastructure issues like repository maintenance and repository distribution. We definitely need to move toward a CPAN like distribution of artifacts. It would be good to advertise maven-proxy much more. It works really fine even for M2. Especially for companies or other big organizations it can decrease the traffic significantly. What's missing: A proper guide how to make use of it in M2 (it took me some time to get the home/.m2/settings.xml right, so that artifacts and plugins will use the proxy) and special hints in the M2 docs for its existence. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: RES: M2 from behind a proxy
Hi, Luca, John Casey and Peter Pilgrim. I created file settings.xml like this in ~/.m2 directory: settings proxies proxy activetrue/active protocolhttp/protocol hostcopacabana.cetipnet/host port3128/port /proxy proxy activetrue/active protocolhttp/protocol hostbpeixoto.cetipnet/host port3128/port /proxy /proxies /settings And executed Maven like this: mvn -X archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app Everything is working fine now. Thanks a lot for your help. Best regards, Roberto de Castro Analista de Suporte Cetip - Desus Rio de Janeiro +55 21 2276-7439 mailto:[EMAIL PROTECTED] -Mensagem original- De: John Casey [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 28 de outubro de 2005 13:47 Para: Maven Users List Assunto: Re: RES: M2 from behind a proxy -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You might want to see the FAQ entry on proxy setup on the Maven website. You need an entry in ~/.m2/settings.xml to tell what the proxy settings are... http://maven.apache.org/guides/mini/guide-proxies.html HTH, john Roberto Castro wrote: | Hi, Luca! | I've entered this line but it didn't work yet: | mvn -X archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app | -Dproxies.proxy.host=copacabana.cetipnet -Dproxies.proxy.port=3128 | | Here is the error message I've been facing: | | + Error stacktraces are turned on. | [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settin | gs\roberto\.m2\plugin-registry.xml' | [DEBUG] Building Maven global-level plugin registry from: 'G:\Maven\Apache Softw | are Foundation\maven-2.0\conf\plugin-registry.xml' | [INFO] Scanning for projects... | [INFO] Searching repository for plugin with prefix: 'archetype'. | [DEBUG] maven-archetype-plugin: using locally installed snapshot | [DEBUG] Artifact not found - using stub model: Unable to determine the latest ve | rsion | org.apache.maven.plugins:maven-archetype-plugin:LATEST:pom | | | [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-archetype- | plugin:pom:LATEST | [DEBUG] maven-archetype-plugin: using locally installed snapshot | [DEBUG] Artifact not found - using stub model: Unable to determine the release v | ersion | org.apache.maven.plugins:maven-archetype-plugin:RELEASE:pom | | | [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-archetype- | plugin:pom:RELEASE | [INFO] - - | --- | [ERROR] BUILD ERROR | [INFO] - - | --- | [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exi | st or no valid version could be found | [INFO] - - | --- | [DEBUG] Trace | org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.m | aven.plugins:maven-archetype-plugin' does not exist or no valid version could be | found | at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa | ultLifecycleExecutor.java:1124) | at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor | (DefaultLifecycleExecutor.java:1356) | at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy | AggregationNeeds(DefaultLifecycleExecutor.java:376) | at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi | fecycleExecutor.java:132) | at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) | at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) | 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(DelegatingMethodAcces | sorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) | at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) | at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) | | at org.codehaus.classworlds.Launcher.main(Launcher.java:375) | Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The p | lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no val | id version could be found | at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl | uginVersion(DefaultPluginVersionManager.java:225) |
Re: [m2] Eclipse webapp lib
Hi Brian, I'm writing in relation to the j2ee artifact that was released and the maven-eclipse-plugin patch that you wrote. If I didn't understand wrongly it might be possible to put all projects on one level and then reference the modules in the main pom in a relative way like: modules module ../child-project1 /module module ../child-project2 /module /modules So perhaps the eclipse plugin should also have the role of flattening hierarchical projects? That way it would be unnecessary to fork the j2ee archetype and maven-eclipse-plugin would know what would it need to be done. Brian Bonner wrote: Hi guys, I was able to get the project to install with the required dependencies of servlet on primary-sources and logging. I'm not sure about the EAR because I haven't created an EAR project in the WTP. I've mostly done dynamic web projects. I use spring/hibernate and have stayed clear of the packaging. I haven't used j2ee clients per se. To get the web side working, I needed to add a build section to the j2ee web's POM and the patch to EclipsePlugin *was* required. It also needed a base web.xml included in the tree to get the project to load in tomcat. I think this should be added anyway as part of the archetype. Brian - 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: doing something after all modules are built
[m2] On 10/28/05, Xavier Toth [EMAIL PROTECTED] wrote: I'm building multiple modules now I want do something after they are built how can I do this?
RE: [M2] Too heavy load for ibiblio?
One problem I have been having with maven-proxy is that I find that once a jar's metadata is downloaded, it never seems to be updated. I noticed this when Maven 2.0 was released. Soon after that, a few plugins had new versions released but my Maven 2.0 never updated, even using -U and blasting the repository. Only by stopping the proxy, blasting it's cache, and restarting it was I able to get the updated plugins. I think there may need to be a serious code review of this to make sure that it is working correctly with m2 before it is heavily advertised. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jörg Schaible Sent: Friday, October 28, 2005 15:24 To: users@maven.apache.org Subject: Re: [M2] Too heavy load for ibiblio? Hi Jason, Jason van Zyl wrote: On Fri, 2005-10-28 at 08:46 +0200, Dietrich Schulten wrote: Hi, Mvn is having trouble to download commons-codec from ibiblio. Browsing showed that yesterday something was updated there, but I cannot download manually. Is there something broken or are there just too many connections? During peak hours (the afternoon in US TZs) Ibiblio can get rather bogged down. Now that the main push for Maven and Continuum releases have been done we can now focus on some infrastructure issues like repository maintenance and repository distribution. We definitely need to move toward a CPAN like distribution of artifacts. It would be good to advertise maven-proxy much more. It works really fine even for M2. Especially for companies or other big organizations it can decrease the traffic significantly. What's missing: A proper guide how to make use of it in M2 (it took me some time to get the home/.m2/settings.xml right, so that artifacts and plugins will use the proxy) and special hints in the M2 docs for its existence. - 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]
including project local jars as a dependency
In Maven 1 I used to be able to include project local jars and include them in the dependency list with an override property. This is important to be able to do it so that a build can include private jars where a repository is *not* an option (I have several such cases). How do I do that in m2? - Brill Pappin