Re: Artifacts didnt download to archiva
Could it be the security? Do you have the user credentials for the repo set in your settings.xml, or have the Observer role for that repo active for the 'guest' account? HTH, Deng On Tue, Feb 12, 2008 at 8:50 PM, Juergen Schumacher [EMAIL PROTECTED] wrote: Hi, I use Archiva 1.0.1 and maven 2.0.8. My maven build process wants to download a lib. i.e. http://myserver/archiva/repository/internal/org/codehaus/mojo/axistools-maven-plugin/1.1/axistools-maven-plugin-1.1.pom but I this doesnt work. No download and no caching, just nothing. On the other side when I paste this URL into the browser then the file was proxyed and the download starts. What could be the problem? I tried the debug also but cant see any reasonable message. And the settings.xml contains the correct network settings. Any ideas? Thx J.
Re: The list of maven plug-ins that are used by maven during the build
Or you could run mvn install help:effective-pom And get all used plugins (for the 'install'-phase) from the effective pom printed to standard output. hth, - martin On Thursday 14 February 2008 wrote Holt, Jack C.: You could run maven with the -X parameter and scan all the debug messages and look for the names of all the plugins used. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan H. Hello Folks, A quick question: is there a way to get the list of ALL maven plug-ins and their versions that are used by maven build life cycle? Maven uses tons of standard plug-ins explicitly and inexplicitly. Is there a way to get the whole list of it for a given build? Thanks Ryan -- Martin Höller | [EMAIL PROTECTED] *x Software + Systeme | http://www.xss.co.at/ Karmarschgasse 51/2/20 | Tel: +43-1-6060114-30 A-1100 Vienna, Austria | Fax: +43-1-6060114-71 signature.asc Description: This is a digitally signed message part.
Re: generate e-mailaddresses from SVN?
Not yet. Emmanuel On Wed, Feb 13, 2008 at 9:01 PM, Eric Pugh [EMAIL PROTECTED] wrote: Do you have any guidance for projects that don't have a POM? I am building some .NET code via the shell script approach... Is there a way for me to create a POM? Or some sort of rule that appends something to SVN id's for sending email? Eric On Feb 13, 2008, at 10:31 AM, Wendy Smoak wrote: On Feb 13, 2008 8:22 AM, Doug Knesek [EMAIL PROTECTED] wrote: How are the e-mail addresses of the latest committers determined? I'm going to guess it's from the list of developers in the pom. The id there will need to match the svn id on the commit. -- Wendy - Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467 | http://www.opensourceconnections.com
Re: notifier email address as property giving error
Can you file an issue? Emmanuel On Thu, Feb 14, 2008 at 2:11 AM, treese [EMAIL PROTECTED] wrote: With Continuum 1.1, I have two build definitions for one project - one for hourly builds and the other for a daily full build. We want different email addresses for each build definition. We tried configuring the notifier address in the pom as a property ${smx.project.build.email} and then passing the value as an argument in the Continuum build definition. However, with no mail received we found the log indicates errors below. Is there a better way for Continuum to handle this? INFO org.codehaus.plexus.notification.notifier.Notifier:mail - Sending message: From '[EMAIL PROTECTED]${smx.project.build.email}'. INFO | jvm 1| 2008/02/12 15:45:33 | 2008-02-12 15:45:33,265 [pool-1-thread-1] INFO org.codehaus.plexus.notification.notifier.Notifier:mail - Recipient: To '${smx.project.build.email}'. INFO | jvm 1| 2008/02/12 15:45:33 | 2008-02-12 15:45:33,577 [pool-1-thread-1] ERROR org.apache.maven.continuum.notification.ContinuumNotificationDispatcher:default - Error while trying to use the mail notifier. INFO | jvm 1| 2008/02/12 15:45:33 | org.codehaus.plexus.notification.NotificationException: Exception while sending message. INFO | jvm 1| 2008/02/12 15:45:33 | at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendMessage (MailContinuumNotifier.java:566) INFO | jvm 1| 2008/02/12 15:45:33 | at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.buildComplete (MailContinuumNotifier.java:387) INFO | jvm 1| 2008/02/12 15:45:33 | at org.apache.maven.continuum.no tification.mail.MailContinuumNotifier.sendNotification( MailContinuumNotifier.java:254) INFO | jvm 1| 2008/02/12 15:45:33 | at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification (DefaultContinuumNotificationDispatcher.java:199) INFO | jvm 1| 2008/02/12 15:45:33 | at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification (DefaultContinuumNotificationDispatcher.java:151) INFO | jvm 1| 2008/02/12 15:45:33 | at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete (DefaultContinuumNotificationDispatcher.java:103) INFO | jvm 1| 2008/02/12 15:45:33 | at org.apache.maven.continuum.buildcontroller.DefaultBuildController.endBuild (DefaultBuildController.java:221) INFO | jvm 1| 2008/02/12 15:45:33 | at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build( DefaultBuildController.java:175) INFO | jvm 1| 2008/02/12 15:45:33 | at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask (BuildProjectTaskExecutor.java:50) INFO | jvm 1| 2008/02/12 15:45:33 | at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run (ThreadedTaskQueueExecutor.java:116) INFO | jvm 1| 2008/02/12 15:45:33 | at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:442) INFO | jvm 1| 2008/02/12 15:45:33 | at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run( FutureTask.java:176) INFO | jvm 1| 2008/02/12 15:45:33 | at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask (ThreadPoolExecutor.java:665) INFO | jvm 1| 2008/02/12 15:45:33 | at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:690) INFO | jvm 1| 2008/02/12 15:45:33 | at java.lang.Thread.run(Thread.java:619) INFO | jvm 1| 2008/02/12 15:45:33 | Caused by: org.codehaus.plexus.mailsender.MailSenderException: Error while sending the message. INFO | jvm 1| 2008/02/12 15:45:33 | at org.codehaus.plexus.mailsender.javamail.AbstractJavamailMailSender.send( AbstractJavamailMailSender.java:221) INFO | jvm 1| 2008/02/12 15:45:33 | at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendMessage (MailContinuumNotifier.java:562) INFO | jvm 1| 2008/02/12 15:45:33 | ... 14 more INFO | jvm 1| 2008/02/12 15:45:33 | Caused by: com.sun.mail.smtp.SMTPSendFailedException: 553 5.5.4 ${smx.project.build.email}... Domain name required for sender address ${smx.project.build.email} INFO | jvm 1| 2008/02/12 15:45:33 | INFO | jvm 1| 2008/02/12 15:45:33 | at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388) INFO | jvm 1| 2008/02/12 15:45:33 | at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959) INFO | jvm 1| 2008/02/12 15:45:33 | at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583) INFO | jvm 1| 2008/02/12 15:45:33 | at
mvn javadoc:jar does not work from the parent folder?
I'm using the following: Maven version: 2.0.7 Java version: 1.6.0_02-ea OS name: windows xp version: 5.1 arch: x86 I've the following folder structure: Project --pom.xml --module_A --pom.xml --module_B --pom.xml When I issue the following command: mvn javadoc:jar from the top parent Project level the javadoc.jar files don get generate, and instead I see the following message: [INFO] [javadoc:jar] [INFO] Not executing Javadoc as the project is not a Java classpath-capable package But if I run the same command from each module folder, for example, from module_A the javadoc.jar file is generated! Do I need to set something, or is this is a know bug? Does anyone know? By the way, when I run mvn install it works fine from both the parent level and the modules level, so you'd think the same should apply when you run mvn javadoc:jar, meaning mvn would go to each module and build the needed javadoc jar file. Thanks, This email and any files transmitted with it are confidential, proprietary and intended solely for the individual or entity to whom they are addressed. If you have received this email in error please delete it immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reset continuum admin password
Thanks for reply. I reset the password to a new one. Bala. On Feb 13, 2008 10:34 AM, Bala Rajamani [EMAIL PROTECTED] wrote: We have lost continuum admin id password? Is there a way to reset the password to new value? We are running continuum-1.0.3. Thanks in advance
mvn site-deploy and modules
Hi ! I want to deploy my site on a remote server. I use scpexe for that. The global project is well upload, but directories corresponding to modules are not created, and I get this trace : Executing command: /bin/sh -c 'ssh -o BatchMode yes [EMAIL PROTECTED] chmod -Rf g+w,a+rX /path/to/htdocs/hudson' scpexe://server/path/to/htdocs/hudson - Session: Disconnecting scpexe://server/path/to/htdocs/hudson - Session: Disconnected [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error uploading site Embedded error: Exit code 1 - [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading site at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error uploading site at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:216) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) ... 16 more Caused by: org.apache.maven.wagon.CommandExecutionException: Exit code 1 - at org.apache.maven.wagon.providers.ssh.external.ScpExternalWagon.executeCommand(ScpExternalWagon.java:145) at org.apache.maven.wagon.providers.ssh.external.ScpExternalWagon.executeCommand(ScpExternalWagon.java:326) at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:191) ... 18 more I don't understand well what happens and wich command failed.. Does someone can help me ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mvn site-deploy and modules
It seems the command executed has returned a non-succes code. What happens when you execute the command from the commandline, thus: /bin/sh -c 'ssh -o BatchMode yes [EMAIL PROTECTED] chmod -Rf g+w,a+rX /path/to/htdocs/hudson Hth, Nick Stolwijk -Original Message- From: Julien FOROT [mailto:[EMAIL PROTECTED] Sent: Thu 2/14/2008 10:42 To: Maven Users List Subject: mvn site-deploy and modules Hi ! I want to deploy my site on a remote server. I use scpexe for that. The global project is well upload, but directories corresponding to modules are not created, and I get this trace : Executing command: /bin/sh -c 'ssh -o BatchMode yes [EMAIL PROTECTED] chmod -Rf g+w,a+rX /path/to/htdocs/hudson' scpexe://server/path/to/htdocs/hudson - Session: Disconnecting scpexe://server/path/to/htdocs/hudson - Session: Disconnected [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error uploading site Embedded error: Exit code 1 - [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading site at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error uploading site at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:216) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) ... 16 more Caused by: org.apache.maven.wagon.CommandExecutionException: Exit code 1 - at org.apache.maven.wagon.providers.ssh.external.ScpExternalWagon.executeCommand(ScpExternalWagon.java:145) at org.apache.maven.wagon.providers.ssh.external.ScpExternalWagon.executeCommand(ScpExternalWagon.java:326) at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:191) ... 18 more I don't understand well what happens and wich command failed.. Does someone can help me ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: dependency:unpack vs. eclipse:eclipse
Thanks Brian, for finding this out. I have created a workaround as suggested. Only additional thing I had to do, was to also bind the resources:resources to process-resources phase, because otherwise the filtering occured before the dependency:unpack. It's dirty, but at least it works now. Have you already taken care of filing a bug? If not, I would take care of this. The bug is in the dependency-plugin, right? bye, Michael Brian E. Fox schrieb: I am able to reproduce this and it's an unfortunate bug in 2.0.x. The only workaround I can suggest is to change the dependency plugin binding to a later phase than is invoked by the eclipse plugin. According to [1] the phase is generate-resources so you can bump it to process-resources. [1]: http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html -Original Message- From: Michael Heß [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 13, 2008 1:07 AM To: Maven Users List Subject: RE: dependency:unpack vs. eclipse:eclipse Sure, here you go, I hope it somehow survives the transfer to the list. If it's completely garbled I can also send you the file directly as an attachment. Furthermore I'd like to add the error I'm getting when binding the dependendy-plugin unpack goal to a specific phase: ERROR - [INFO] One or more required plugin parameters are invalid/missing for 'dependency:unpack' [0] Inside the definition for plugin 'maven-dependency-plugin' specify the following: configuration ... artifactItemsVALUE/artifactItems /configuration. ERROR - But as you can see in the pom below, I do have the wanted configuration settings. Thanks for looking into this. bye, Michael ---pom starts here--- ?xml version=1.0 encoding=UTF-8? 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; parent artifactIdabc/artifactId groupIdde.customer/groupId version1.0.0-SNAPSHOT/version /parent modelVersion4.0.0/modelVersion groupIdde.customer.abc/groupId artifactIdproduct-config/artifactId packagingjar/packaging version${parent.version}/version nameproduct-config/name dependencies dependency groupIdde.customer.abc.common/groupId artifactIdabc-basis-config/artifactId version${abc.common.version}/version scopecompile/scope /dependency /dependencies profiles profile idlocal/id activation property namelocal/name /property /activation build / properties maven.test.skiptrue/maven.test.skip mvn.filter.file ${basedir}/src/main/filters/local.properties /mvn.filter.file /properties /profile !--other profiles here as well - intentionally left them out -- /profiles build filters filter${mvn.filter.file}/filter /filters resources resource directorysrc/main/resources/directory filteringtrue/filtering /resource resource directorytarget/work/conf/directory !-- copies the contents of conf to target/conf -- targetPath../conf/targetPath filteringtrue/filtering /resource /resources plugins !-- Java 1.5 -- plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId version2.0/version inheritedfalse/inherited configuration artifactItems
Re: mvn site-deploy and modules
The command line works well on command line.. [EMAIL PROTECTED] a écrit : It seems the command executed has returned a non-succes code. What happens when you execute the command from the commandline, thus: /bin/sh -c 'ssh -o BatchMode yes [EMAIL PROTECTED] chmod -Rf g+w,a+rX /path/to/htdocs/hudson Hth, Nick Stolwijk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Surefire plugin 2.3 - 2.4.1 not working.
Stupid question: Have you tried clean test yet? Stefan Toni Heimala wrote: I have tried defining versions 2.3, 2.4 and 2.4.1. They all give the same output. If I don't define a version for the surefire plugin, then it uses some old version which is not compliant with JUnit 4.x, which causes the tests to fail (because @Before is not run). Maven version: 2.0.8 Surefire Plugin Version: 2.3 - 2.4.1 JUnit version: 4.0 - 4.4 JDK Version: 1.5 - 1.6 -- MavenSurefireProblemTest.java -- package maven; import static org.junit.Assert.*; import org.junit.Before; import org.junit.Test; public class MavenSurefireProblemTest { private String foo; @Before public void setUp() throws Exception { foo = new String(FOO!); } @Test public void testFoo() { System.out.println(Result: + foo); assertNotNull(foo); } } -- /MavenSurefireProblemTest.java -- -- pom.xml -- ?xml version=1.0 encoding=UTF-8? project modelVersion4.0.0/modelVersion groupIdJavaProblems/groupId artifactIdJavaProblems/artifactId version0.0.1/version build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin plugin artifactIdmaven-surefire-plugin/artifactId groupIdorg.apache.maven.plugins/groupId version2.4.1/version/plugin /plugins /build dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.4/version scopetest/scope /dependency /dependencies /project -- /pom.xml -- -- mvn test -- [INFO] Scanning for projects... [INFO] [INFO] Building Unnamed - JavaProblems:JavaProblems:jar:0.0.1 [INFO]task-segment: [test] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:test] [INFO] Surefire report directory: C:\toni\work\projects\JavaProblems\target\surefire-reports org.apache.maven.surefire.booter.SurefireExecutionException: Bad version number in .class file; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:87) at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:209) at org.apache.maven.surefire.Surefire.run(Surefire.java:156) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] There are test failures. Please refer to C:\toni\work\projects\JavaProblems\target\surefire-reports for t he individual test results. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 16 seconds [INFO] Finished at: Wed Feb 13 16:42:34 EET 2008 [INFO] Final Memory: 6M/11M [INFO]
What format is recommended for documentation when using mvn site ?
Hi, We have a large multimodule project using maven2, and Continuum. We've just started to look into the site-goal, and if I've understood correctly, it is possible to also create project documentation/system documentation that will be generated when running the site goal. According to the doc of maven2, the formats apt, xdoc and fml are supported. LaTeX used to be supported, but has been removed (anyone knows why?). With project documentation I mean design specifications, technical documents etc., other than the reports that can be automatically generated (like javadoc, xref etc.). What is the common practice here, and which format is recommended ? APT seams to me to be a bit to unstructured for larger documents... Also it would be nice if it was possible to generate both html and PDF-files from the same source. Regards Arne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple build definitions within a project
I've set up three build definitions within a single project, hoping that if I trigger a build for that project, it would run all three build definitions. However I discovered that it only runs which ever build definition happens to be the default. I concluded that I don't understand how to use multiple build definitions within a single project. Can somebody offer a brief explanation, perhaps with examples using 'shell' type build definitions? -- View this message in context: http://www.nabble.com/Multiple-build-definitions-within-a-project-tp15476619p15476619.html Sent from the Continuum - Users mailing list archive at Nabble.com.
Re: Maven Concepts
*Different finalName for development and integration environment: Something like the builds at CI server would have x-INT-2008.jar. * Hi, The above is a requirement to be catered to. But my doubt is the finalName gets overridden in children projects if it is present(which is the case). How to accomplish this. Is profiles the answer? But submodules doesn't have a profile for finalName, they have it directly in the build tag. Regards, Amit Kumar On Tue, Feb 12, 2008 at 9:49 PM, [EMAIL PROTECTED] wrote: The modules section is only used when building an aggregate project. It is not used for dependencies in any way. If submodule b uses submodule a, you have to give submodule b a dependency on submodule a. If multiple submodules depend on submodule a, you can have submodule a in the dependencyManagement, with the right version (often it is ${project.version}, which is the version of your aggregate project) so you don't need to include the version number in each submodule. Hth, Nick Stolwijk -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: Tue 2/12/2008 15:15 To: Maven Users List Subject: Re: Maven Concepts Continuing on the dependency Vs dependencyManagement, I read the documents on it but after encountering the archetype:create for j2ee simple, I am not able to figure out what is the motive behind giving sub-modules of the project in the dependencyManagement section. Regards, Amit On Feb 12, 2008 7:08 PM, amit kumar [EMAIL PROTECTED] wrote: Thanks Nick. I was unaware of that part. Configured the repository for snapshots and now it is working. Regards, Amit On Feb 12, 2008 3:16 PM, [EMAIL PROTECTED] wrote: How did you configure your repository? Especially take a look at the updatePolicy element in your snapshot repository. [1] If this one is omitted, it will default to daily, so it is possible it won't take your newest snapshot. You can use mvn -U to look for newer versions of the snapshot dependencies. Or set the updatePolicy to another value: The frequency for downloading updates - can be always, daily (default), interval:XXX (in minutes) or never (only if it doesn't exist locally). Hth, Nick S. [1] http://maven.apache.org/ref/2.0.7/maven-settings/settings.html#class_snapshots -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: Tue 2/12/2008 10:40 To: Maven Users List Subject: Re: Maven Concepts I tested with SNAPSHOT version as well. But maven still seems to prefer the local version of even the SNAPSHOT version? i have these two modules a.jar and b.jar, a-1.0-SNAPSHOT.jar depends on b-1.0-SNAPSHOT.jar, I tested and deployed b.jar at a later time stamp and again tried to build a.jar. But still it fetched the local version which was build at 14:29 while the one of two jars at repository is a 14:45 built? Am I missing something here? I am using the buildNumber as well to have the finalName appended with time stamp. Regards, Amit On Feb 8, 2008 3:52 PM, Simon Kitching [EMAIL PROTECTED] wrote: Stephen Connolly [EMAIL PROTECTED] schrieb: Redeploying a non-SNAPSHOT version is a _bad thing_ as Maven will not re-download it. Absolutely. Never overwrite an existing deployed file except when it has SNAPSHOT in the version. Builds should be repeatable, ie you should be able to compile something today, then compile it again next week and get the same result. This means that stuff deployed to a repository should never change. The only exception is SNAPSHOT versions; when a project depends on one of these, then it is explicitly acknowledging that repeatable builds are not possible. One of the things the release plugin does is check that there are no SNAPSHOT dependencies anywere; if there are then it refuses to continue with the release process as the release is not repeatable. Of course using the release plugin is not mandatory, but that particular check is a very good idea. And because Maven assumes people never overwrite non-snapshot files, it never bothers to check for newer ones. Only with SNAPSHOTs does maven look for newer versions, on an every time, daily or weekly basis as configured. Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven Concepts
You can add a property to your finalName and fill that with a profile, or use the build definition inside a profile to add your finalName to. Hth, Nick Stolwijk -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: Thu 2/14/2008 10:45 To: Maven Users List Subject: Re: Maven Concepts *Different finalName for development and integration environment: Something like the builds at CI server would have x-INT-2008.jar. * Hi, The above is a requirement to be catered to. But my doubt is the finalName gets overridden in children projects if it is present(which is the case). How to accomplish this. Is profiles the answer? But submodules doesn't have a profile for finalName, they have it directly in the build tag. Regards, Amit Kumar On Tue, Feb 12, 2008 at 9:49 PM, [EMAIL PROTECTED] wrote: The modules section is only used when building an aggregate project. It is not used for dependencies in any way. If submodule b uses submodule a, you have to give submodule b a dependency on submodule a. If multiple submodules depend on submodule a, you can have submodule a in the dependencyManagement, with the right version (often it is ${project.version}, which is the version of your aggregate project) so you don't need to include the version number in each submodule. Hth, Nick Stolwijk -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: Tue 2/12/2008 15:15 To: Maven Users List Subject: Re: Maven Concepts Continuing on the dependency Vs dependencyManagement, I read the documents on it but after encountering the archetype:create for j2ee simple, I am not able to figure out what is the motive behind giving sub-modules of the project in the dependencyManagement section. Regards, Amit On Feb 12, 2008 7:08 PM, amit kumar [EMAIL PROTECTED] wrote: Thanks Nick. I was unaware of that part. Configured the repository for snapshots and now it is working. Regards, Amit On Feb 12, 2008 3:16 PM, [EMAIL PROTECTED] wrote: How did you configure your repository? Especially take a look at the updatePolicy element in your snapshot repository. [1] If this one is omitted, it will default to daily, so it is possible it won't take your newest snapshot. You can use mvn -U to look for newer versions of the snapshot dependencies. Or set the updatePolicy to another value: The frequency for downloading updates - can be always, daily (default), interval:XXX (in minutes) or never (only if it doesn't exist locally). Hth, Nick S. [1] http://maven.apache.org/ref/2.0.7/maven-settings/settings.html#class_snapshots -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: Tue 2/12/2008 10:40 To: Maven Users List Subject: Re: Maven Concepts I tested with SNAPSHOT version as well. But maven still seems to prefer the local version of even the SNAPSHOT version? i have these two modules a.jar and b.jar, a-1.0-SNAPSHOT.jar depends on b-1.0-SNAPSHOT.jar, I tested and deployed b.jar at a later time stamp and again tried to build a.jar. But still it fetched the local version which was build at 14:29 while the one of two jars at repository is a 14:45 built? Am I missing something here? I am using the buildNumber as well to have the finalName appended with time stamp. Regards, Amit On Feb 8, 2008 3:52 PM, Simon Kitching [EMAIL PROTECTED] wrote: Stephen Connolly [EMAIL PROTECTED] schrieb: Redeploying a non-SNAPSHOT version is a _bad thing_ as Maven will not re-download it. Absolutely. Never overwrite an existing deployed file except when it has SNAPSHOT in the version. Builds should be repeatable, ie you should be able to compile something today, then compile it again next week and get the same result. This means that stuff deployed to a repository should never change. The only exception is SNAPSHOT versions; when a project depends on one of these, then it is explicitly acknowledging that repeatable builds are not possible. One of the things the release plugin does is check that there are no SNAPSHOT dependencies anywere; if there are then it refuses to continue with the release process as the release is not repeatable. Of course using the release plugin is not mandatory, but that particular check is a very good idea. And because Maven assumes people never overwrite non-snapshot files, it never bothers to check for newer ones. Only with SNAPSHOTs does maven look for newer versions, on an every time, daily or weekly basis as configured. Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven migration and future
Hi, We are about to migrate to Maven. Our source code(million of line of source) is monolithic and does not fit at all Maven conventions and is not modular at all. 1-I wounder wether any standard migration strategy to speed-up the component driven approch in order to mavenize such huge amount of source code? Do you know such adventure in the software industry? Personally, I know that Spring framework was migrated by using a gradual approach( no source move, just empty maven modules with just pom.xml files). But Spring is not that big in term of source code. 2- The second thing that I miss is the future of Maven. Where do you want to lead us? what Maven 3 will implement? Thanks in advance. Best regards Habib Ragelhassi Software Engineer: Software Development eXtended team Sales e-Commerce Platforms Amadeus IT Group SA (+33) 04 97 15 45 83 [EMAIL PROTECTED] www.amadeus.com
Re: What format is recommended for documentation when using mvn site ?
Hi Arne, Have a look at the docbook format http://www.nabble.com/forum/Search.jtp?forum=178local=yquery=docbook and the corresponding plugin named docbkx-tools ( http://code.google.com/p/docbkx-tools/) http://www.nabble.com/Any-tool-available-for-generating-docs-from-pom.xml--td15036590s177.html#a15061807 Rémy
Archetypes
Hi On my laptop I successfully copied the command for creating an archetype from the bottom of http://maven.apache.org/guides/mini/guide-creating-archetypes.html, eg mvn archetype:create \ -DgroupId=org.group \ -DartifactId=my-archetype \ -DarchetypeArtifactId=maven-archetype-archetype Today, I tried the same thing on my desktop but I get prompted for various details, and there is no archetype-archetype available. It appears to be using a different plug-in, and one that has very poor documentation. How can I ensure that I use the right plug-in even though the names are the same. Thanks Robert Matthews -- View this message in context: http://www.nabble.com/Archetypes-tp15477315s177p15477315.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Archetypes
On 14/02/2008, rmatthews [EMAIL PROTECTED] wrote: Hi On my laptop I successfully copied the command for creating an archetype from the bottom of http://maven.apache.org/guides/mini/guide-creating-archetypes.html, eg mvn archetype:create \ -DgroupId=org.group \ -DartifactId=my-archetype \ -DarchetypeArtifactId=maven-archetype-archetype Today, I tried the same thing on my desktop but I get prompted for various details, and there is no archetype-archetype available. It appears to be using a different plug-in, and one that has very poor documentation. How can I ensure that I use the right plug-in even though the names are the same. you can use: mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create ...etc... to force Maven to use the old version (unfortunately only the verbose form can set the version) see the developer list for the full discussion of what happened wrt. the new archetype plugin: http://www.nabble.com/New-archetype-plugin-issues-questions-td15435079s177.html and a fix is in progress to avoid the prompt always popping up. Thanks Robert Matthews -- View this message in context: http://www.nabble.com/Archetypes-tp15477315s177p15477315.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Cheers, Stuart
Timestamp in snapshot dependencies names
Hi, When I build a war artifact that has some snapshot jar dependencies, the jar packaged in WEB-INF/lib are sometime named my-dependency-version-SNAPSHOT.jar and sometime named my-dependency-version-LONG_18_CHARS_TIMETAMP_HERE.jar. When the jar dependencies are named with a timestamp, I've got classpath related issues when deploying my web app on Jboss / windows (because the path to the jars, including their name, is too long). So I need to make sure that my snapshot jars under WEB-INF/lib are always named my-dependency-version-SNAPSHOT.jar. Is there a way to do this ? Note that using the outputFileNameMapping configuration parameter of the war plugin is unfortunately not an option for me because of (http://jira.codehaus.org/browse/MWAR-116). Thanks for your help, Sebastien Brunot Make simple things simple before making complex things possible (David S. Platt in Why Software Sucks ?) and then... Make complex things simple and accessible (Steve Demuth) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven migration and future
Habib Ragelhassi wrote: We are about to migrate to Maven. Our source code(million of line of source) is monolithic and does not fit at all Maven conventions and is not modular at all. 1-I wounder wether any standard migration strategy to speed-up the component driven approch in order to mavenize such huge amount of source code? Do you know such adventure in the software industry? Having completed a year long exercise in this, combining jars, ears, wars, and Eclipse plugins, the basic advice is small steps, slowly. The payoff is huge - we are capable of cutting a release and deploying it in under 30 minutes, while other projects schedule deployments that take whole weekends. Personally, I know that Spring framework was migrated by using a gradual approach( no source move, just empty maven modules with just pom.xml files). But Spring is not that big in term of source code. That's the approach, the size of the source code doesn't really matter. Resign yourself that it will take a while, and constantly reevaluate your progress as you move through your code. Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature
Howto configure a plugin parameter that is defined as expression=${project.build...} ?
Hello, I need to generate configuration fils for muliple environments (dev/test/prod) in the same build, to get packaged in my assembly. The templates files are in my resources directory, and I have 3 filters files in src/main/filters I'd like to run the resource plugin 3 times using execution, with configuration changed to use the 3 filters files ... but the filters parameter is set as expression=${project.build.filters } Is there any way to set configuration to override this expression ? Using project.build.filtersMyFile/ has no effect. Why is expression used for plugin parameters ? Why not use default-value, so that user can override whene needed ? Nico
SSH connections
Hi there, we have a Maven repository outside our firewall and running _maven_deploy_ from the inside to deploy to it I see many SSH connections opening. This is apparently due to looking into the repository first before uploading. Would there be a chance to reuse existing SSH connections to reduce their number? This behavior can be observed no matter if I use the *wagon-ssh-external* plugin, *scp* or *scpexe* in my distributionManagement URL. Best regards, Björn -- Dipl.-Inform. Björn Hagemeier Juelich Supercomputing Centre Institute for Advanced Simulation Phone: +49 2461 61 1584 Fax : +49 2461 61 6656 Email: [EMAIL PROTECTED] Skype: bhagemeier WWW : http://www.fz-juelich.de/jsc JSC is the coordinator of the John von Neumann Institute for Computing and member of the Gauss Centre for Supercomputing smime.p7s Description: S/MIME Cryptographic Signature
Compile Delta only
I am part of team working on large scale web application, As full application build cycle is approx 20 minutes. Is it possible to tell Maven to build changed classes only(change since last build)? Thank you Sharon -- View this message in context: http://www.nabble.com/Compile-Delta-only-tp15479308s177p15479308.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Compile Delta only
Sharon Whipple wrote: I am part of team working on large scale web application, As full application build cycle is approx 20 minutes. Is it possible to tell Maven to build changed classes only(change since last build)? Maven (or more accurately the maven-compile-plugin) already does this by default. Are you building using mvn clean install or just mvn install? Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature
Cannot configure filters for resource plugin
My first diagnostic was wrong. Here is my config : plugin artifactIdmaven-resources-plugin/artifactId executions execution iddev/id goalsgoalresources/goal/goals configuration outputDirectory${basedir}/src/main/properties/dev/outputDirectory filters filter${basedir}/src/filters/dev.properties/filter /filters /configuration /execution /executions /plugin outputDirectory is set as expected, but not filters. Using debugger, I wen into CollectionConverter.fromExpression( .. ) with configuration = filtersfiltersD:\projets\pnm\pnm/src/filters/dev.properties/filters/filters The configuration.gatValue( null ) is expected (but maybe I'm wrong) to return the configured value... for a strange reason, the configuration.domattribute has its value set to the expression ${ project.build.filters} and does not return the childlist... What's wrong ? Is this related to expression vs default-value ? Nico. 2008/2/14, nicolas de loof [EMAIL PROTECTED]: Hello, I need to generate configuration fils for muliple environments (dev/test/prod) in the same build, to get packaged in my assembly. The templates files are in my resources directory, and I have 3 filters files in src/main/filters I'd like to run the resource plugin 3 times using execution, with configuration changed to use the 3 filters files ... but the filters parameter is set as expression=${ project.build.filters} Is there any way to set configuration to override this expression ? Using project.build.filtersMyFile/ has no effect. Why is expression used for plugin parameters ? Why not use default-value, so that user can override whene needed ? Nico
best practices for site deployment over multiple versions of the application
Hi, Recently we needed to create a new branch for our code and we realized the documentation generated by maven with mvn site:site will drift apart in time. So we need to deploy both versions of the site (multiple versions for the future maybe ?) I was wondering if there are some best practices for this .. Thank you.
Re: mvn site-deploy and modules
Well I solved the problem using scp instead of scpexe.. Julien FOROT a écrit : The command line works well on command line.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Compile Delta only
Graham Leggett schrieb: Sharon Whipple wrote: I am part of team working on large scale web application, As full application build cycle is approx 20 minutes. Is it possible to tell Maven to build changed classes only(change since last build)? Maven (or more accurately the maven-compile-plugin) already does this by default. Does it? That would be great, but I haven't seen that documented anywhere. Due to the way Java works, it is quite a difficult problem. A file Foo.java needs to be recompiled not just if it changed, but if any class that it depends upon (ancestor of any remoteness, member-variable, local-variable, parameter type) changed. So AFAIK a full data-dependency analysis needs to be run on every class to determine whether it needs to be recompiled. An IDE can possibly do this then cache the results, but without such a cache it is probably just as slow to do the analysis as to simply compile the source again. Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Compile Delta only
[EMAIL PROTECTED] wrote: Does it? That would be great, but I haven't seen that documented anywhere. Recompiling only what's changed has been dealt with in the past by the classic make application, followed by ant, and then by maven. It is not a trivial thing to achieve as you've pointed out, but it is a problem that has been well understood and solved for many years. Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature
Re: best practices for site deployment over multiple versions of the application
Very good question Lonut! I think what you are asking for can only be done if you use some dynamic properties/profiles or leverage the project version to generate a this is a branch projecturl/.../ (aka deployment path). Sorry I'm about to go on an adhoc rant... I know this is a rant, but here goes... It's important to note that a project/release/version/branch has documentation (aka site). At some point in time (install/release) the documentation (site) and the artifact abandon each other. Why? To me this seems like a really really *strange* choice. A much slimmer yet richer option would be to publish the site alongside the artifact in the maven repository. This means the site-deploy config drops back to the maven project/repository naming conventions (which might fix your problem?). These naming conventions (paths) can be exploited to provide html parent/modules/versions/dependency/plugins href's. It would also remove the need for extra user configuration, because by default they have a local repository to host this content (file://${user.home}/.m2/repository/) eta eta eta. It would also mean that documentation is stored/cached locally, and even better from an organizational level with archiva managing both doco and artifacts. Note this means that providing archiva (or your local repo) has the artifact in its repo, you can get a html href to all the dependency documentation in your repository... Other option is to build site war's, but that still seperates things and I don't promote that idea too much. Anyway I could go on, but I think this is a neat idea and probably comparatively less work. On Thu, Feb 14, 2008 at 11:21 PM, Ionut Scutaru [EMAIL PROTECTED] wrote: Hi, Recently we needed to create a new branch for our code and we realized the documentation generated by maven with mvn site:site will drift apart in time. So we need to deploy both versions of the site (multiple versions for the future maybe ?) I was wondering if there are some best practices for this .. Thank you.
Re: RAD7 / Portal6 hot redeploy fails with Maven2 layout
On Tue, 2008-02-12 at 11:35 -0800, Guillaume Bilodeau wrote: This question is mostly for the Eclipse plugin guys - sorry if this isn't the right place. We are developing a portal application using RAD7 and deploying it on IBM WebSphere Portal 6. It seems that after switching a project's directory structure to the Maven2 layout, hot deployment stopped working. I had the same issue. I had to upgrade to RAD 7.0.0.5, and move src/main/webapp to WebContent (with corresponding pom configuration) to keep RAD happy. -Olivier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
aspectj-maven-plugin
Hi all. Anyone know when the 1.0-beta-4 of aspectj-maven-plugin will be released ? I need to use aspectj 1.5.4. Best regards Alex -- View this message in context: http://www.nabble.com/aspectj-maven-plugin-tp15480746s177p15480746.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RAD7 / Portal6 hot redeploy fails with Maven2 layout
Indeed, with websphere you're better off being as close as possible to RAD default project structure. Especially if it involves webservices. Also, it's worth mentioning that 2.5-SNAPSHOT contains quite a lot of improvements. Siarhei On Thu, Feb 14, 2008 at 3:15 PM, Olivier Dehon [EMAIL PROTECTED] wrote: On Tue, 2008-02-12 at 11:35 -0800, Guillaume Bilodeau wrote: This question is mostly for the Eclipse plugin guys - sorry if this isn't the right place. We are developing a portal application using RAD7 and deploying it on IBM WebSphere Portal 6. It seems that after switching a project's directory structure to the Maven2 layout, hot deployment stopped working. I had the same issue. I had to upgrade to RAD 7.0.0.5, and move src/main/webapp to WebContent (with corresponding pom configuration) to keep RAD happy. -Olivier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Message from my annotation processor don't appear in console
Hi, I do not have an answer to your question, sorry. But I wonder if you can help me with a small problem i have? Im trying to invoke the annotation processor from Maven, and i cannot get Maven to invoke my processors during 'compile'.. It works fine with straight javac... I have configured maven-compiler-plugin like so: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version2.0/version configuration source1.6/source target1.6/target encodingutf-8/encoding compilerArgument-proc:only/compilerArgument /configuration /plugin Is there anything more that i have to do trigger my processor? thanks, -Kristoffer Sahoo wrote: Hi, Recently I was writing an annotation processor [1] which gets called from javac. JDK 6 javac exposes an API called Messager to be used to report warnings or errors or diagnostic information. I noticed that if I launch javac from command line, my messages appear in the output, but when javac is invcoked by maven-compiler-plugin, my messages don't appear. While debugging I found that maven passes StringWriter to javac to write the messages to and javac is also writing to that object, so I suspect maven is not subsequently printing the information available in the StringWriter object. More information is available at [2]. Thanks, Sahoo [1] http://weblogs.java.net/blog/ss141213/archive/2007/11/a_javac_plugin_1.html [2] http://forum.java.sun.com/thread.jspa?threadID=5241006tstart=0 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Message-from-my-annotation-processor-don%27t-appear-in-console-tp14026435s177p15480785.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: best practices for site deployment over multiple versions of the application
On Thu, Feb 14, 2008 at 5:51 AM, Ionut Scutaru [EMAIL PROTECTED] wrote: Recently we needed to create a new branch for our code and we realized the documentation generated by maven with mvn site:site will drift apart in time. So we need to deploy both versions of the site (multiple versions for the future maybe ?) Here's an example from the Archiva project. The top-level site is a separate module and has general information. The version-specific documentation is in another module that gets versioned and released with the code. And then there are reference docs (Javadoc, test reports, etc.). So we end up with: http://maven.apache.org/archiva (top level site) http://maven.apache.org/archiva/docs/1.0 (documentation for version 1.0) http://maven.apache.org/archiva/ref/1.0 (reference docs for 1.0, such as Javadoc) (This is done by using ${version} in the distributionManagement site url, so it always deploys to the right place.) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NSIS plugin
Hi I am looking for an install framework able to create Windows install. I currently have selected 3 possibilities : InstallShield, InnoSetup and NSIS (1) There is a maven plugin (2) for NSIS, but it seems to be stuck in maven 1(reference for maven 1 in the pom). Is it useable in maven2? mvn nsis:installer does not work, neither mvn maven:maven-nsis-plugin:2.1:installer err: java.lang.IllegalStateException: The PluginDescriptor for the plugin Plugin [maven:maven-nsis-plugin] was not found. Thx, 1: http://nsis.sourceforge.net/ 2 : http://repo1.maven.org/maven2/maven/maven-nsis-plugin/2.1/ -- Julien Graglia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Compile Delta only
in the meanwhile use ANT uptodate task http://ant.apache.org/manual/CoreTasks/uptodate.html Anyone else? M- - Original Message - From: [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Thursday, February 14, 2008 8:30 AM Subject: Re: Compile Delta only Graham Leggett schrieb: Sharon Whipple wrote: I am part of team working on large scale web application, As full application build cycle is approx 20 minutes. Is it possible to tell Maven to build changed classes only(change since last build)? Maven (or more accurately the maven-compile-plugin) already does this by default. Does it? That would be great, but I haven't seen that documented anywhere. Due to the way Java works, it is quite a difficult problem. A file Foo.java needs to be recompiled not just if it changed, but if any class that it depends upon (ancestor of any remoteness, member-variable, local-variable, parameter type) changed. So AFAIK a full data-dependency analysis needs to be run on every class to determine whether it needs to be recompiled. An IDE can possibly do this then cache the results, but without such a cache it is probably just as slow to do the analysis as to simply compile the source again. Regards, Simon - 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: NSIS plugin
Julien Graglia wrote: I am looking for an install framework able to create Windows install. I currently have selected 3 possibilities : InstallShield, InnoSetup and NSIS (1) We are very happy with IZPack [a]. Using it from Ant is a breeze. A JIRA ticket with a Maven2 plugin is also available [b], although I've never used it. [a] http://izpack.org/ [b] http://jira.codehaus.org/browse/MOJO-277 hth, Manos There is a maven plugin (2) for NSIS, but it seems to be stuck in maven 1(reference for maven 1 in the pom). Is it useable in maven2? mvn nsis:installer does not work, neither mvn maven:maven-nsis-plugin:2.1:installer err: java.lang.IllegalStateException: The PluginDescriptor for the plugin Plugin [maven:maven-nsis-plugin] was not found. Thx, 1: http://nsis.sourceforge.net/ 2 : http://repo1.maven.org/maven2/maven/maven-nsis-plugin/2.1/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: NSIS plugin
I don't know if that's a problem for you Julien, but NSIS is strictly Windows AFAIK. I switched to IzPack and I'm loving it! (tm) Regards, Rodrigo On Thu, Feb 14, 2008 at 3:06 PM, Manos Batsis [EMAIL PROTECTED] wrote: Julien Graglia wrote: I am looking for an install framework able to create Windows install. I currently have selected 3 possibilities : InstallShield, InnoSetup and NSIS (1) We are very happy with IZPack [a]. Using it from Ant is a breeze. A JIRA ticket with a Maven2 plugin is also available [b], although I've never used it. [a] http://izpack.org/ [b] http://jira.codehaus.org/browse/MOJO-277 hth, Manos There is a maven plugin (2) for NSIS, but it seems to be stuck in maven 1(reference for maven 1 in the pom). Is it useable in maven2? mvn nsis:installer does not work, neither mvn maven:maven-nsis-plugin:2.1:installer err: java.lang.IllegalStateException: The PluginDescriptor for the plugin Plugin [maven:maven-nsis-plugin] was not found. Thx, 1: http://nsis.sourceforge.net/ 2 : http://repo1.maven.org/maven2/maven/maven-nsis-plugin/2.1/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Working around MNG-2261 (How can I manually download and install artifact)
The -DremoteRepositories solution looks good, but I can't get it to work. The archetype plugin doesn't seem to be respecting the remoteRepositories parameter. Below is the command I am executing with the sensitive information taken out and line breaks added for readability. I have verified using the -X flag that version 2.0 alpha 1 of the maven-archetype-plugin is being used. Am I doing something wrong or does the remoteRepositories parameter not work? mvn archetype:create -DgroupId=com.whereiwork.apps -DartifactId=newApp7 -DarchetypeGroupId=com.whereiwork.apps -DarchetypeArtifactId=appArchetype -DarchetypeVersion=1.0 -DremoteRepositories=http://username:[EMAIL PROTECTED]/archiva/repository/releases/ Wendy Smoak-3 wrote: On Feb 13, 2008 9:00 AM, kroe [EMAIL PROTECTED] wrote: MNG-2261 is making creating projects using an archetype difficult. I have an archetype I created. I want the archetype:create command to download my archetype from an internal repository. The internal repository is specified in my settings.xml file. Due to MNG-2261, the settings.xml repositories are not respected unless there is a pom in the current directory. The archetype plugin just had a new release, but I suspect you're using the older one. With that one, you can use -DremoteRepositories=... on the command line. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Working-around-MNG-2261-%28How-can-I-manually-download-and-install-artifact%29-tp15459817s177p15481213.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RAD7 / Portal6 hot redeploy fails with Maven2 layout
Olivier Dehon-2 wrote: On Tue, 2008-02-12 at 11:35 -0800, Guillaume Bilodeau wrote: This question is mostly for the Eclipse plugin guys - sorry if this isn't the right place. We are developing a portal application using RAD7 and deploying it on IBM WebSphere Portal 6. It seems that after switching a project's directory structure to the Maven2 layout, hot deployment stopped working. I had the same issue. I had to upgrade to RAD 7.0.0.5, and move src/main/webapp to WebContent (with corresponding pom configuration) to keep RAD happy. -Olivier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] I'm already running 7.0.0.5. I've worked on this problem a little more: . I created a new portlet project using the RAD wizard and with the default project structure (src and WebContent). I deployed it and tested hot redeploy on both JSPs and classes: everything works. . I converted the structure piece by piece to the Maven2 structure. Once again, hot redeploy on both JSPs and classes works. . I tried converting an existing project to the Maven2 structure. Hot redeploy fails for both JSPs and class files with this project. A few interesting things: . Hot redeploy can work with a Maven2 directory structure. . The project created with the RAD wizard isn't deployed by copying files to the WPS profile or to a org.eclipse.wst.server.core temp directory. I'll post my further findings later. Cheers, GB -- View this message in context: http://www.nabble.com/RAD7---Portal6-hot-redeploy-fails-with-Maven2-layout-tp15441108s177p15481214.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exposing artifacts other than jar and pom
Hi all, I have a couple of questions about artifacts that can be accessed thru the browse screen. When I browse a module in Artifactory, there's a navbar on the top with the elements info, dependencies, dependency tree, used by, mailing lists. 1) What's the purpose of mailing lists, and from whence is this information derived? 2) Is there any way to add other data to that navbar, for example an html junit report or somesuch? There is also a side box called Downloads which offers the pom and a jar for download. 1) Is there any way to offer artifacts for download other than a pom or a jar? Thanks in advance, Carlton - This message contains PRIVILEGED and CONFIDENTIAL information that is intended only for use by the named recipient. If you are not the named recipient, any disclosure, dissemination, or action based on the contents of this message is prohibited. In such case please notify us and destroy and delete all copies of this transmission. Thank you.
Re: NSIS plugin
Rodrigo Madera a écrit : I don't know if that's a problem for you Julien, but NSIS is strictly Windows AFAIK. You are right, it is only for Windows. I 'am using .deb to install on my linux boxes, and I need 100% window solution. Cross platform installers usually don't integrate well with the OS. When I install on Windows, I want to use all the possibilities of Windows : start menu, registry, uninstaller, service, all that little gadgets... Wen I install on a Debian Server, I want to use .deb (apt-get install, update, reconfigure...) I use mvn exec and ant (I try assembly plugin but it seems complicated) to get all resources, then the installer (NSIS, deb builder) for the final build. Thx. -- Julien Graglia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exposing artifacts other than jar and pom
On 15/02/2008, Brown, Carlton [EMAIL PROTECTED] wrote: Hi all, I have a couple of questions about artifacts that can be accessed thru the browse screen. When I browse a module in Artifactory, there's a navbar on the top with the elements info, dependencies, dependency tree, used by, mailing lists. 1) What's the purpose of mailing lists, and from whence is this information derived? This is project information from the Maven POM. We should really hide it if it's empty. 2) Is there any way to add other data to that navbar, for example an html junit report or somesuch? Not at present, but it is something I've thought about in the past. We're discussing the future roadmap on the dev@ list at the moment - if you're interested in helping implement one feel free to jump on board there. There is also a side box called Downloads which offers the pom and a jar for download. 1) Is there any way to offer artifacts for download other than a pom or a jar? It has javadocs, etc. It should work for non-jars as well. But if you want further additional things to be added to that - I'm not sure how extensible it is and would need to do some digging. I think it already should show everything it discovers - but if not that might need to be a feature request. - Brett -- Brett Porter Blog: http://blogs.exist.com/bporter/
EAR plugin: problem with unpacking modules
Hi! Maven EAR plugin is unpacking modules content right into the working folder :-( Maven version 2.0.8 (tried on 2.0.6 and 2.0.7 with the same result) Here's the POM: project parent artifactIdmystuff/artifactId groupIdmystuff/groupId version1.0/version /parent modelVersion4.0.0/modelVersion groupIdmystuff/groupId artifactIdear/artifactId namemystuff - ear/name packagingear/packaging version1.0/version urlhttp://maven.apache.org/url dependencies dependency groupIdmystuff/groupId artifactIdejb/artifactId version1.0/version typeejb/type /dependency dependency groupIdmystuff/groupId artifactIdwar/artifactId version1.0/version typewar/type /dependency dependency groupIdorg.jboss.seam/groupId artifactIdjboss-seam/artifactId typeejb/type version2.0.1.GA/version /dependency dependency groupIdorg.jboss.seam/groupId artifactIdjboss-el/artifactId exclusions exclusion groupIdjavax.el/groupId artifactIdel-api/artifactId /exclusion /exclusions typejar/type version2.0.0.GA/version /dependency dependency groupIdcommons-beanutils/groupId artifactIdcommons-beanutils/artifactId exclusions exclusion groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId /exclusion /exclusions typejar/type /dependency /dependencies build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ear-plugin/artifactId configuration unpackTypesrar,war,ejb/unpackTypes jboss version4/version loader-repositorymystuff:loader=mystuff.ear /loader-repository /jboss modules webModule groupIdmystuff/groupId artifactIdwar/artifactId contextRootmystuff/contextRoot /webModule ejbModule groupIdmystuff/groupId artifactIdejb/artifactId /ejbModule ejbModule groupIdorg.jboss.seam/groupId artifactIdjboss-seam/artifactId /ejbModule !-- The stuff that needs to go in the lib directory. They will not be included in application.xml -- jarModule groupIdorg.jboss.seam/groupId artifactIdjboss-el/artifactId bundleDirlib/bundleDir /jarModule jarModule groupIdcommons-beanutils/groupId artifactIdcommons-beanutils/artifactId bundleDirlib/bundleDir /jarModule /modules /configuration /plugin /plugins /build /project And here's the running log: c:\projects\dinnerManager\ear\testmvn -f ..\pom.xml package [INFO] Scanning for projects... [INFO] [INFO] Building mystuff - ear [INFO]task-segment: [package] [INFO] [INFO] [ear:generate-application-xml] [INFO] Generating application.xml [INFO] Generating jboss-app.xml [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [ear:ear] [INFO] Copying artifact[war:mystuff:war:1.0] to[war-1.0.war] (unpacked) [INFO] Expanding: c:\java\repository\mystuff\war\1.0\war-1.0.war into null [INFO] Copying artifact[ejb:mystuff:ejb:1.0] to[ejb-1.0.jar] (unpacked) [INFO] Expanding: c:\java\repository\mystuff\ejb\1.0\ejb-1.0.jar into null [INFO] Copying artifact[ejb:org.jboss.seam:jboss-seam:2.0.1.GA] to[ jboss-seam-2.0.1.GA.jar] (unpacked) [INFO] Expanding: c:\java\repository\org\jboss\seam\jboss-seam\2.0.1.GA\jboss- seam-2.0.1.GA.jar into null [INFO] Copying artifact[jar:org.jboss.seam:jboss-el:2.0.0.GA] to[lib/jboss- el-2.0.0.GA.jar] [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] [INFO] Copying artifact[jar:javax.el:el-api:1.0] to[el-api-1.0.jar] [INFO] Copying artifact[jar:jboss:javassist:3.3.ga] to[javassist-3.3.ga.jar]
Re: Working around MNG-2261 (How can I manually download and install artifact)
The -DremoteRepositories bit does work, I've used it several times, but never with name/pass in the URL. Is it possible for you to use anonymous access to get the files? Wayne On 2/14/08, kroe [EMAIL PROTECTED] wrote: The -DremoteRepositories solution looks good, but I can't get it to work. The archetype plugin doesn't seem to be respecting the remoteRepositories parameter. Below is the command I am executing with the sensitive information taken out and line breaks added for readability. I have verified using the -X flag that version 2.0 alpha 1 of the maven-archetype-plugin is being used. Am I doing something wrong or does the remoteRepositories parameter not work? mvn archetype:create -DgroupId=com.whereiwork.apps -DartifactId=newApp7 -DarchetypeGroupId=com.whereiwork.apps -DarchetypeArtifactId=appArchetype -DarchetypeVersion=1.0 -DremoteRepositories=http://username:[EMAIL PROTECTED]/archiva/repository/releases/ Wendy Smoak-3 wrote: On Feb 13, 2008 9:00 AM, kroe [EMAIL PROTECTED] wrote: MNG-2261 is making creating projects using an archetype difficult. I have an archetype I created. I want the archetype:create command to download my archetype from an internal repository. The internal repository is specified in my settings.xml file. Due to MNG-2261, the settings.xml repositories are not respected unless there is a pom in the current directory. The archetype plugin just had a new release, but I suspect you're using the older one. With that one, you can use -DremoteRepositories=... on the command line. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Working-around-MNG-2261-%28How-can-I-manually-download-and-install-artifact%29-tp15459817s177p15481213.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: dependency:unpack vs. eclipse:eclipse
No, this is a maven core bug and will probably have to be fixed in 2.1, but file an issue anyway. -Original Message- From: Michael Heß [mailto:[EMAIL PROTECTED] Sent: Thursday, February 14, 2008 12:57 AM To: Maven Users List Subject: RE: dependency:unpack vs. eclipse:eclipse Thanks Brian, for finding this out. I have created a workaround as suggested. Only additional thing I had to do, was to also bind the resources:resources to process-resources phase, because otherwise the filtering occured before the dependency:unpack. It's dirty, but at least it works now. Have you already taken care of filing a bug? If not, I would take care of this. The bug is in the dependency-plugin, right? bye, Michael Brian E. Fox schrieb: I am able to reproduce this and it's an unfortunate bug in 2.0.x. The only workaround I can suggest is to change the dependency plugin binding to a later phase than is invoked by the eclipse plugin. According to [1] the phase is generate-resources so you can bump it to process-resources. [1]: http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html -Original Message- From: Michael Heß [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 13, 2008 1:07 AM To: Maven Users List Subject: RE: dependency:unpack vs. eclipse:eclipse Sure, here you go, I hope it somehow survives the transfer to the list. If it's completely garbled I can also send you the file directly as an attachment. Furthermore I'd like to add the error I'm getting when binding the dependendy-plugin unpack goal to a specific phase: ERROR - [INFO] One or more required plugin parameters are invalid/missing for 'dependency:unpack' [0] Inside the definition for plugin 'maven-dependency-plugin' specify the following: configuration ... artifactItemsVALUE/artifactItems /configuration. ERROR - But as you can see in the pom below, I do have the wanted configuration settings. Thanks for looking into this. bye, Michael ---pom starts here--- ?xml version=1.0 encoding=UTF-8? 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; parent artifactIdabc/artifactId groupIdde.customer/groupId version1.0.0-SNAPSHOT/version /parent modelVersion4.0.0/modelVersion groupIdde.customer.abc/groupId artifactIdproduct-config/artifactId packagingjar/packaging version${parent.version}/version nameproduct-config/name dependencies dependency groupIdde.customer.abc.common/groupId artifactIdabc-basis-config/artifactId version${abc.common.version}/version scopecompile/scope /dependency /dependencies profiles profile idlocal/id activation property namelocal/name /property /activation build / properties maven.test.skiptrue/maven.test.skip mvn.filter.file ${basedir}/src/main/filters/local.properties /mvn.filter.file /properties /profile !--other profiles here as well - intentionally left them out -- /profiles build filters filter${mvn.filter.file}/filter /filters resources resource directorysrc/main/resources/directory filteringtrue/filtering /resource resource directorytarget/work/conf/directory !-- copies the contents of conf to target/conf -- targetPath../conf/targetPath filteringtrue/filtering /resource /resources plugins !-- Java 1.5 -- plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId
Re: NSIS plugin
Doesn't IzPack provide OS integration for those basic things? Rodrigo On Thu, Feb 14, 2008 at 3:55 PM, Julien Graglia [EMAIL PROTECTED] wrote: Rodrigo Madera a écrit : I don't know if that's a problem for you Julien, but NSIS is strictly Windows AFAIK. You are right, it is only for Windows. I 'am using .deb to install on my linux boxes, and I need 100% window solution. Cross platform installers usually don't integrate well with the OS. When I install on Windows, I want to use all the possibilities of Windows : start menu, registry, uninstaller, service, all that little gadgets... Wen I install on a Debian Server, I want to use .deb (apt-get install, update, reconfigure...) I use mvn exec and ant (I try assembly plugin but it seems complicated) to get all resources, then the installer (NSIS, deb builder) for the final build. Thx. -- Julien Graglia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EAR plugin: problem with unpacking modules
Problem was successfully solved by executing the 'clean' goal before packaging. 2008/2/14, Pavel Kaplin [EMAIL PROTECTED]: Hi! Maven EAR plugin is unpacking modules content right into the working folder :-( Maven version 2.0.8 (tried on 2.0.6 and 2.0.7 with the same result) Here's the POM: project parent artifactIdmystuff/artifactId groupIdmystuff/groupId version1.0/version /parent modelVersion4.0.0/modelVersion groupIdmystuff/groupId artifactIdear/artifactId namemystuff - ear/name packagingear/packaging version1.0/version urlhttp://maven.apache.org/url dependencies dependency groupIdmystuff/groupId artifactIdejb/artifactId version1.0/version typeejb/type /dependency dependency groupIdmystuff/groupId artifactIdwar/artifactId version1.0/version typewar/type /dependency dependency groupIdorg.jboss.seam/groupId artifactIdjboss-seam/artifactId typeejb/type version2.0.1.GA/version /dependency dependency groupIdorg.jboss.seam/groupId artifactIdjboss-el/artifactId exclusions exclusion groupIdjavax.el/groupId artifactIdel-api/artifactId /exclusion /exclusions typejar/type version2.0.0.GA/version /dependency dependency groupIdcommons-beanutils/groupId artifactIdcommons-beanutils/artifactId exclusions exclusion groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId /exclusion /exclusions typejar/type /dependency /dependencies build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ear-plugin/artifactId configuration unpackTypesrar,war,ejb/unpackTypes jboss version4/version loader-repositorymystuff:loader=mystuff.ear /loader-repository /jboss modules webModule groupIdmystuff/groupId artifactIdwar/artifactId contextRootmystuff/contextRoot /webModule ejbModule groupIdmystuff/groupId artifactIdejb/artifactId /ejbModule ejbModule groupIdorg.jboss.seam/groupId artifactIdjboss-seam/artifactId /ejbModule !-- The stuff that needs to go in the lib directory. They will not be included in application.xml -- jarModule groupIdorg.jboss.seam/groupId artifactIdjboss-el/artifactId bundleDirlib/bundleDir /jarModule jarModule groupIdcommons-beanutils/groupId artifactIdcommons-beanutils/artifactId bundleDirlib/bundleDir /jarModule /modules /configuration /plugin /plugins /build /project And here's the running log: c:\projects\dinnerManager\ear\testmvn -f ..\pom.xml package [INFO] Scanning for projects... [INFO] [INFO] Building mystuff - ear [INFO]task-segment: [package] [INFO] [INFO] [ear:generate-application-xml] [INFO] Generating application.xml [INFO] Generating jboss-app.xml [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [ear:ear] [INFO] Copying artifact[war:mystuff:war:1.0] to[war-1.0.war] (unpacked) [INFO] Expanding: c:\java\repository\mystuff\war\1.0\war-1.0.war into null [INFO] Copying artifact[ejb:mystuff:ejb:1.0] to[ejb-1.0.jar] (unpacked) [INFO] Expanding: c:\java\repository\mystuff\ejb\1.0\ejb-1.0.jar into null [INFO] Copying artifact[ejb:org.jboss.seam:jboss-seam:2.0.1.GA] to[ jboss-seam-2.0.1.GA.jar] (unpacked) [INFO] Expanding: c:\java\repository\org\jboss\seam\jboss-seam\2.0.1.GA\jboss- seam-2.0.1.GA.jar into null [INFO] Copying artifact[jar:org.jboss.seam:jboss-el:2.0.0.GA] to[lib/jboss-el-2.0.0.GA.jar]
Creating a project
I am new to maven, and used the Maven in 5 Minutes page ( http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html) to guide creating a new simple project. I am using maven as a build tool for creating OSGi plugins (using Felix), and need to create a simple plugin project. When I run the mvn archetype:create command, I get prompted to choose an archetype. On a different system when I executed the archetype:create command, I was not prompted and the project was created for me. I just need a simple project structure, as shown in the Maven in 5 Minutes page, but don¹t know which archetype to choose, or how to avoid being prompted to choose during creation. Any thoughts? (I have tried this on both Mac OS X and Windows XP) - Matt
Re: The list of maven plug-ins that are used by maven during the build
well, it doesn't list the plug-ins that are used by maven inexplicitly. On 2/14/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: You could look here [1] for a list of all the default plugins. Versions that are used are the latest release versions by default. Hth, Nick Stolwijk [1] http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html -Original Message- From: Ryan H. [mailto:[EMAIL PROTECTED] Sent: Thu 2/14/2008 00:58 To: Maven Users List Subject: The list of maven plug-ins that are used by maven during the build Hello Folks, A quick question: is there a way to get the list of ALL maven plug-ins and their versions that are used by maven build life cycle? Maven uses tons of standard plug-ins explicitly and inexplicitly. Is there a way to get the whole list of it for a given build? Thanks Ryan You
Controlling the build with profiles.
I'm sure there's a good resource for this on the web somewhere, and I'm just not finding it. I'd like to control certain aspect of my build using profiles. I'd like to prevent certain artifacts from even being built unless I ask for them specifically. For instance, I don't really need to build a war file if I just want to build the code and create the jars (install). It would be nice to have it skip that artifact entirely. Any help? Thanks! Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creating a project
A new archetype plugin has just been released. If you are being prompted, this is the new (ArchetypeNG) plugin. If you are not being prompted, then you are running the old one. You can force Maven to use the old one with the following command: mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create ...(other -D parameters go here)... Search the Users and Dev list for archetype to see various related discussions on this topic. Wayne On 2/14/08, Streeton, Matt [EMAIL PROTECTED] wrote: I am new to maven, and used the Maven in 5 Minutes page ( http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html) to guide creating a new simple project. I am using maven as a build tool for creating OSGi plugins (using Felix), and need to create a simple plugin project. When I run the mvn archetype:create command, I get prompted to choose an archetype. On a different system when I executed the archetype:create command, I was not prompted and the project was created for me. I just need a simple project structure, as shown in the Maven in 5 Minutes page, but don¹t know which archetype to choose, or how to avoid being prompted to choose during creation. Any thoughts? (I have tried this on both Mac OS X and Windows XP) - Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Controlling the build with profiles.
Typically, the war file is a separate project from the jar project, then the war depends on (and subsequently, includes in WEB-INF/lib) the jar. If you have a structure like this with a common parent pom, you can shove the modulewar/module reference into a profile, then use something like: mvn -P include-war clean install to build with the war, or just: mvn clean install to exclude it. Does that make sense? -john On Feb 14, 2008, at 2:07 PM, David C. Hicks wrote: I'm sure there's a good resource for this on the web somewhere, and I'm just not finding it. I'd like to control certain aspect of my build using profiles. I'd like to prevent certain artifacts from even being built unless I ask for them specifically. For instance, I don't really need to build a war file if I just want to build the code and create the jars (install). It would be nice to have it skip that artifact entirely. Any help? Thanks! Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- John Casey Committer and PMC Member, Apache Maven mail: jdcasey at commonjava dot org blog: http://www.ejlife.net/blogs/john rss: http://feeds.feedburner.com/ejlife/john
Re: Controlling the build with profiles.
Yes! That's exactly what I'm looking for, but I haven't found any examples. So far, my attempts to do it on my own have met with failure. I'm not as POM savvy as I'd like to be. :-( John Casey wrote: Typically, the war file is a separate project from the jar project, then the war depends on (and subsequently, includes in WEB-INF/lib) the jar. If you have a structure like this with a common parent pom, you can shove the modulewar/module reference into a profile, then use something like: mvn -P include-war clean install to build with the war, or just: mvn clean install to exclude it. Does that make sense? -john On Feb 14, 2008, at 2:07 PM, David C. Hicks wrote: I'm sure there's a good resource for this on the web somewhere, and I'm just not finding it. I'd like to control certain aspect of my build using profiles. I'd like to prevent certain artifacts from even being built unless I ask for them specifically. For instance, I don't really need to build a war file if I just want to build the code and create the jars (install). It would be nice to have it skip that artifact entirely. Any help? Thanks! Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- John Casey Committer and PMC Member, Apache Maven mail: jdcasey at commonjava dot org blog: http://www.ejlife.net/blogs/john rss: http://feeds.feedburner.com/ejlife/john - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The list of maven plug-ins that are used by maven during the build
All I can say is I've added a lot of support for this sort of thing to maven trunk code, which will be the basis for Maven 2.1 eventually. In the debug output, it has a log like this: Our build plan is: 1. ... 2. ... Alternatively, there is a new plugin in the maven sandbox for querying this information in 2.1, called the maven-lifecycle-plugin. Using it, you could run: mvn lifecycle:build-plan I know, I know, that's not helpful for maven 2.0.x users. I don't have any good advice for you in 2.0.x, other than what's already been said: 1. Take a look at http://svn.apache.org/repos/asf/maven/components/ tags/maven-2.0.7/maven-core/src/main/resources/META-INF/plexus/ components.xml and look for role-hintjar/role-hint or similar. ( you can just search for that string in the file) 2. To get a complete picture including those plugins from the POM, you may also need to use help:effective-pom 3. If there isn't a specific lifecycle mapping for the lifecycle (clean, default, site) for your packaging (from step 1), you may need to look at the component configuration for: org.apache.maven.lifecycle.DefaultLifecycleExecutor (you can just search for that class name to find it, and look at the lifecycles configuration). You might also peruse: http://maven.apache.org/guides/introduction/ introduction-to-the-lifecycle.html Hope that helps. -john On Feb 13, 2008, at 6:58 PM, Ryan H. wrote: Hello Folks, A quick question: is there a way to get the list of ALL maven plug- ins and their versions that are used by maven build life cycle? Maven uses tons of standard plug-ins explicitly and inexplicitly. Is there a way to get the whole list of it for a given build? Thanks Ryan --- John Casey Committer and PMC Member, Apache Maven mail: jdcasey at commonjava dot org blog: http://www.ejlife.net/blogs/john rss: http://feeds.feedburner.com/ejlife/john
RE: The list of maven plug-ins that are used by maven during the build
I'm planning to move code from the enforcer to help to do this, but alas it also doesn't help you now. -Original Message- From: John Casey [mailto:[EMAIL PROTECTED] Sent: Thursday, February 14, 2008 12:09 PM To: Maven Users List Subject: Re: The list of maven plug-ins that are used by maven during the build All I can say is I've added a lot of support for this sort of thing to maven trunk code, which will be the basis for Maven 2.1 eventually. In the debug output, it has a log like this: Our build plan is: 1. ... 2. ... Alternatively, there is a new plugin in the maven sandbox for querying this information in 2.1, called the maven-lifecycle-plugin. Using it, you could run: mvn lifecycle:build-plan I know, I know, that's not helpful for maven 2.0.x users. I don't have any good advice for you in 2.0.x, other than what's already been said: 1. Take a look at http://svn.apache.org/repos/asf/maven/components/ tags/maven-2.0.7/maven-core/src/main/resources/META-INF/plexus/ components.xml and look for role-hintjar/role-hint or similar. ( you can just search for that string in the file) 2. To get a complete picture including those plugins from the POM, you may also need to use help:effective-pom 3. If there isn't a specific lifecycle mapping for the lifecycle (clean, default, site) for your packaging (from step 1), you may need to look at the component configuration for: org.apache.maven.lifecycle.DefaultLifecycleExecutor (you can just search for that class name to find it, and look at the lifecycles configuration). You might also peruse: http://maven.apache.org/guides/introduction/ introduction-to-the-lifecycle.html Hope that helps. -john On Feb 13, 2008, at 6:58 PM, Ryan H. wrote: Hello Folks, A quick question: is there a way to get the list of ALL maven plug- ins and their versions that are used by maven build life cycle? Maven uses tons of standard plug-ins explicitly and inexplicitly. Is there a way to get the whole list of it for a given build? Thanks Ryan --- John Casey Committer and PMC Member, Apache Maven mail: jdcasey at commonjava dot org blog: http://www.ejlife.net/blogs/john rss: http://feeds.feedburner.com/ejlife/john - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Controlling the build with profiles.
Figured it out. I didn't realize that modules are additive. Once that dawned on me, it was easy. Thanks! David C. Hicks wrote: Yes! That's exactly what I'm looking for, but I haven't found any examples. So far, my attempts to do it on my own have met with failure. I'm not as POM savvy as I'd like to be. :-( John Casey wrote: Typically, the war file is a separate project from the jar project, then the war depends on (and subsequently, includes in WEB-INF/lib) the jar. If you have a structure like this with a common parent pom, you can shove the modulewar/module reference into a profile, then use something like: mvn -P include-war clean install to build with the war, or just: mvn clean install to exclude it. Does that make sense? -john On Feb 14, 2008, at 2:07 PM, David C. Hicks wrote: I'm sure there's a good resource for this on the web somewhere, and I'm just not finding it. I'd like to control certain aspect of my build using profiles. I'd like to prevent certain artifacts from even being built unless I ask for them specifically. For instance, I don't really need to build a war file if I just want to build the code and create the jars (install). It would be nice to have it skip that artifact entirely. Any help? Thanks! Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- John Casey Committer and PMC Member, Apache Maven mail: jdcasey at commonjava dot org blog: http://www.ejlife.net/blogs/john rss: http://feeds.feedburner.com/ejlife/john - 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]
How to get build-helper plugin to place xml files in the build
Hi, I'm using build-helper-plugin to move class files from the generated-sources folder to the final jar file (pom packaging is jar). (The generated-sources files are client classes generated from a web-service wsdl2java). One of the generated file is an xml file (MyService.xml) that describes the service. I tried using the build-helper-plugin to get this xml file into the jar'red up artifact in the following way: execution idattach-artifacts/id phaseadd-source/phase goals goalattach-artifact/goal /goals configuration artifacts artifact filetarget/generated-sources/clientgen/com/path/to/UnifiedViewService.xml/file typexml/type /artifact /artifacts /configuration /execution /executions Does not add the xml file into the artifact. I tried the other goals in the plugin, namely add-source and add-test-source. Both did not help. Can someone please suggest a way I can get the xml file that is generated by WSDL2Java into the jar file (artifact)? Thanks Pankaj -- View this message in context: http://www.nabble.com/How-to-get-build-helper-plugin-to-place-xml-files-in-the-build-tp15489379s177p15489379.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to get build-helper plugin to place xml files in the build
build-helper will literally attach the file to the artifact. So when you install or deploy the project, it will copy the xml file into your repo alongside the jar and pom files. I don't think this is what you want. What I think you want is to just copy the xml file into the proper directory in target/ so that it gets bundled up with the rest of the classes and related files, right? So use Ant or something to copy it where it needs to go, or modify the plugin you're using to generate the WSDL to attach its output to the MavenProject so it is bundled with the JAR. Wayne On 2/14/08, Pankaj Tandon [EMAIL PROTECTED] wrote: Hi, I'm using build-helper-plugin to move class files from the generated-sources folder to the final jar file (pom packaging is jar). (The generated-sources files are client classes generated from a web-service wsdl2java). One of the generated file is an xml file (MyService.xml) that describes the service. I tried using the build-helper-plugin to get this xml file into the jar'red up artifact in the following way: execution idattach-artifacts/id phaseadd-source/phase goals goalattach-artifact/goal /goals configuration artifacts artifact filetarget/generated-sources/clientgen/com/path/to/UnifiedViewService.xml/file typexml/type /artifact /artifacts /configuration /execution /executions Does not add the xml file into the artifact. I tried the other goals in the plugin, namely add-source and add-test-source. Both did not help. Can someone please suggest a way I can get the xml file that is generated by WSDL2Java into the jar file (artifact)? Thanks Pankaj -- View this message in context: http://www.nabble.com/How-to-get-build-helper-plugin-to-place-xml-files-in-the-build-tp15489379s177p15489379.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Exposing artifacts other than jar and pom
-Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Thursday, February 14, 2008 11:12 AM To: [EMAIL PROTECTED] Subject: Re: Exposing artifacts other than jar and pom On 15/02/2008, Brown, Carlton [EMAIL PROTECTED] wrote: There is also a side box called Downloads which offers the pom and a jar for download. 1) Is there any way to offer artifacts for download other than a pom or a jar? It has javadocs, etc. It should work for non-jars as well. But if you want further additional things to be added to that - I'm not sure how extensible it is and would need to do some digging. I think it already should show everything it discovers - but if not that might need to be a feature request. It does not appear to show everything it discovers. I have a tar artifact that does not get exposed for download. - This message contains PRIVILEGED and CONFIDENTIAL information that is intended only for use by the named recipient. If you are not the named recipient, any disclosure, dissemination, or action based on the contents of this message is prohibited. In such case please notify us and destroy and delete all copies of this transmission. Thank you.
Re: Exposing artifacts other than jar and pom
ok - can you make sure to file that in JIRA? Thanks, Brett On 15/02/2008, Brown, Carlton [EMAIL PROTECTED] wrote: -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Thursday, February 14, 2008 11:12 AM To: [EMAIL PROTECTED] Subject: Re: Exposing artifacts other than jar and pom On 15/02/2008, Brown, Carlton [EMAIL PROTECTED] wrote: There is also a side box called Downloads which offers the pom and a jar for download. 1) Is there any way to offer artifacts for download other than a pom or a jar? It has javadocs, etc. It should work for non-jars as well. But if you want further additional things to be added to that - I'm not sure how extensible it is and would need to do some digging. I think it already should show everything it discovers - but if not that might need to be a feature request. It does not appear to show everything it discovers. I have a tar artifact that does not get exposed for download. - This message contains PRIVILEGED and CONFIDENTIAL information that is intended only for use by the named recipient. If you are not the named recipient, any disclosure, dissemination, or action based on the contents of this message is prohibited. In such case please notify us and destroy and delete all copies of this transmission. Thank you. -- Brett Porter Blog: http://blogs.exist.com/bporter/
Re: How to get build-helper plugin to place xml files in the build
Wayne, Thanks for the clarification. From the way you describe it, I certainly dont want to use the build-helper plugin. I think I'll have to resort to the antrun plugin. But I'm curious what you mean by modify the plugin to attach it's output to MavenProject Where can I find more info on this? Thanks Wayne Fay wrote: build-helper will literally attach the file to the artifact. So when you install or deploy the project, it will copy the xml file into your repo alongside the jar and pom files. I don't think this is what you want. What I think you want is to just copy the xml file into the proper directory in target/ so that it gets bundled up with the rest of the classes and related files, right? So use Ant or something to copy it where it needs to go, or modify the plugin you're using to generate the WSDL to attach its output to the MavenProject so it is bundled with the JAR. Wayne On 2/14/08, Pankaj Tandon [EMAIL PROTECTED] wrote: Hi, I'm using build-helper-plugin to move class files from the generated-sources folder to the final jar file (pom packaging is jar). (The generated-sources files are client classes generated from a web-service wsdl2java). One of the generated file is an xml file (MyService.xml) that describes the service. I tried using the build-helper-plugin to get this xml file into the jar'red up artifact in the following way: execution idattach-artifacts/id phaseadd-source/phase goals goalattach-artifact/goal /goals configuration artifacts artifact filetarget/generated-sources/clientgen/com/path/to/UnifiedViewService.xml/file typexml/type /artifact /artifacts /configuration /execution /executions Does not add the xml file into the artifact. I tried the other goals in the plugin, namely add-source and add-test-source. Both did not help. Can someone please suggest a way I can get the xml file that is generated by WSDL2Java into the jar file (artifact)? Thanks Pankaj -- View this message in context: http://www.nabble.com/How-to-get-build-helper-plugin-to-place-xml-files-in-the-build-tp15489379s177p15489379.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-get-build-helper-plugin-to-place-xml-files-in-the-build-tp15489379s177p15490199.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse project dependency no set up on WTP project
Do you launch the eclipse:eclipse goal from your master project ? It is necessary to have in the reactor all your projects to create direct links between them. Arnaud On Wed, Feb 13, 2008 at 12:04 PM, rmatthews [EMAIL PROTECTED] wrote: I am using Maven (2.0.7) to set up Eclipse with a multi-module project. Two of the seven modules are wars and using the following settings I am able to import into them both into Eclipse as WTP projects: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId configuration wtpContextNamecart/wtpContextName wtpversion1.5/wtpversion /configuration /plugin When I come to run them (Run As/On a Server) I have classpath problems, i.e. class not found. If I change the J2EE Module Dependencies (in the properties for the project) by ticking the the projects that I have just imported then all will be fine. The question then is, how do I get the Eclipse plugin to select the peer projects in the same way that it is selecting all the dependent jars. Many thanks Robert Matthews -- View this message in context: http://www.nabble.com/Eclipse-project-dependency-no-set-up--on-WTP-project-tp15454841s177p15454841.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- .. Arnaud HERITIER .. OCTO Technology - aheritier AT octo DOT com www.octo.com | blog.octo.com .. ASF - aheritier AT apache DOT org www.apache.org | maven.apache.org ...
Rmic maven plugin 1.0-alpha-1 release
For anyone that uses rmic in their builds, I have released the rmic-maven-plugin version 1.0-alpha-1. It is now in the codehaus repository, and it should be available via the central repository later today. Please check it out and submit feedback through jira. Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to get build-helper plugin to place xml files in the build
I'm talking about actually modifying the WSDL plugin code itself so it adds the WSDL XML files to your project automatically. This thread should be useful to you -- find it on Nabble: from Kallin Nagelberg to users@maven.apache.org date Dec 19, 2007 10:17 PM subject generated sources convention Wayne On 2/14/08, Pankaj Tandon [EMAIL PROTECTED] wrote: Wayne, Thanks for the clarification. From the way you describe it, I certainly dont want to use the build-helper plugin. I think I'll have to resort to the antrun plugin. But I'm curious what you mean by modify the plugin to attach it's output to MavenProject Where can I find more info on this? Thanks Wayne Fay wrote: build-helper will literally attach the file to the artifact. So when you install or deploy the project, it will copy the xml file into your repo alongside the jar and pom files. I don't think this is what you want. What I think you want is to just copy the xml file into the proper directory in target/ so that it gets bundled up with the rest of the classes and related files, right? So use Ant or something to copy it where it needs to go, or modify the plugin you're using to generate the WSDL to attach its output to the MavenProject so it is bundled with the JAR. Wayne On 2/14/08, Pankaj Tandon [EMAIL PROTECTED] wrote: Hi, I'm using build-helper-plugin to move class files from the generated-sources folder to the final jar file (pom packaging is jar). (The generated-sources files are client classes generated from a web-service wsdl2java). One of the generated file is an xml file (MyService.xml) that describes the service. I tried using the build-helper-plugin to get this xml file into the jar'red up artifact in the following way: execution idattach-artifacts/id phaseadd-source/phase goals goalattach-artifact/goal /goals configuration artifacts artifact filetarget/generated-sources/clientgen/com/path/to/UnifiedViewService.xml/file typexml/type /artifact /artifacts /configuration /execution /executions Does not add the xml file into the artifact. I tried the other goals in the plugin, namely add-source and add-test-source. Both did not help. Can someone please suggest a way I can get the xml file that is generated by WSDL2Java into the jar file (artifact)? Thanks Pankaj -- View this message in context: http://www.nabble.com/How-to-get-build-helper-plugin-to-place-xml-files-in-the-build-tp15489379s177p15489379.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-get-build-helper-plugin-to-place-xml-files-in-the-build-tp15489379s177p15490199.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Why does maven2 not provide iteration or foreach language feature?
Why does maven2 not provide iteration or foreach language feature?
Re: [ANN] Maven Archetype Plugin 2.0-alpha-1 for Maven 2 Released
Is this http://jira.codehaus.org/browse/ARCHETYPE-23 ARCHETYPE-23 implemented in this version? If so, is there some docs about using it? Thanx. Alexander -- View this message in context: http://www.nabble.com/-ANN--Maven-Archetype-Plugin-2.0-alpha-1-for-Maven-2-Released-tp15368261s177p15492927.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Maven Archetype Plugin 2.0-alpha-1 for Maven 2 Released
On Thu, Feb 14, 2008 at 5:52 PM, Bohtvaroh [EMAIL PROTECTED] wrote: Is this http://jira.codehaus.org/browse/ARCHETYPE-23 ARCHETYPE-23 implemented in this version? If so, is there some docs about using it? Thanx. That looks interesting. I'd suggest starting a new thread with a descriptive subject line, and describe what you want to do. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why does maven2 not provide iteration or foreach language feature?
Please describe what you're trying to do and why, and perhaps someone can help you figure out a way to do it using features that Maven does support. Wayne On Thu, Feb 14, 2008 at 6:41 PM, Ryan H. [EMAIL PROTECTED] wrote: Why does maven2 not provide iteration or foreach language feature? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
rltd to maven sources plugin - adding java sources jar to class path
Hi, I recently started using gwt in my struts project. We use maven as a project management tool. Since GWT needs java sources to be in the class path for it to compile the java files and my gwt module uses other module java classes, I thought of trying maven sources plugin to generate the source files jars for all the modules of my project. the maven plugin creates one jar file for .class file and one for .java file... so for ex ... if there is a project called java-proj , the plugin will create com/my/company/java-proj/1.0-SNAPSHOT/java-proj-1.0-SNAPSHOT.jar com/my/company/java-proj/1.0-SNAPSHOT/java-proj-1.0-SNAPSHOT-sources.jar now if my gwt project uses some classes from the above project so I need to define the dependency... for classes I can say dependency groupIdcom.my.company/groupId artifactIdjava-proj/artifactId version1.0-SNAPSHOT/version /dependency and it looks for java-proj-1.0-SNAPSHOT.jar in com/my/company/java-proj/1.0-SNAPSHOT/ directory but I am not able to figure out how to define the dependency on source file because if I say dependency groupIdcom.my.company/groupId artifactIdjava-proj/artifactId version1.0-SNAPSHOT/version /dependency it looks for java-proj-1.0-SNAPSHOT-sources.jar in com/my/company/java-proj/1.0-SNAPSHOT-sources but the jar is in com/my/company/java-proj/1.0-SNAPSHOT. Any idea on how to define dependency on java-proj-1.0-SNAPSHOT-sources.jar which not in com/my/company/java-proj/1.0-SNAPSHOT-sources but in com/my/company/java-proj/1.0-SNAPSHOT-sources Any input is appreciated Thanks
Profile Activation Rule for SNAPSHOT?
Hi All, I'm trying to activate a profile only if the current version is a snapshot. Is there a way to do this? Much Thanks for Reading! --AH
Re: rltd to maven sources plugin - adding java sources jar to class path
Add classifiersources/classifier to your dependency declaration as needed. Wayne On 2/14/08, rohit aman [EMAIL PROTECTED] wrote: Hi, I recently started using gwt in my struts project. We use maven as a project management tool. Since GWT needs java sources to be in the class path for it to compile the java files and my gwt module uses other module java classes, I thought of trying maven sources plugin to generate the source files jars for all the modules of my project. the maven plugin creates one jar file for .class file and one for .java file... so for ex ... if there is a project called java-proj , the plugin will create com/my/company/java-proj/1.0-SNAPSHOT/java-proj-1.0-SNAPSHOT.jar com/my/company/java-proj/1.0-SNAPSHOT/java-proj-1.0-SNAPSHOT-sources.jar now if my gwt project uses some classes from the above project so I need to define the dependency... for classes I can say dependency groupIdcom.my.company/groupId artifactIdjava-proj/artifactId version1.0-SNAPSHOT/version /dependency and it looks for java-proj-1.0-SNAPSHOT.jar in com/my/company/java-proj/1.0-SNAPSHOT/ directory but I am not able to figure out how to define the dependency on source file because if I say dependency groupIdcom.my.company/groupId artifactIdjava-proj/artifactId version1.0-SNAPSHOT/version /dependency it looks for java-proj-1.0-SNAPSHOT-sources.jar in com/my/company/java-proj/1.0-SNAPSHOT-sources but the jar is in com/my/company/java-proj/1.0-SNAPSHOT. Any idea on how to define dependency on java-proj-1.0-SNAPSHOT-sources.jar which not in com/my/company/java-proj/1.0-SNAPSHOT-sources but in com/my/company/java-proj/1.0-SNAPSHOT-sources Any input is appreciated Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Query a property based indicating goal executed?
Is there a property that tells you which goal has been executed from the command line? I'm wrappering an Ant build and binding the build target to the install phase while it binds the deploy target to the deploy phase. Both of these targets run thru the entire build. I want to condition the build target so it doesn't run when the deploy phase is taken from the cmd line. Eg. tasks unless=maven.goal.deploy ant target=build/ ... /tasks tasks ant target=deploy/ ... /tasks Any ideas? -- View this message in context: http://www.nabble.com/Query-a-property-based-indicating-goal-executed--tp15494349s177p15494349.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JWSC in Maven
I haven an Ant script which is executing a JWSC target and I would like to convert this to Maven2. I have seen an example that uses the maven-antrun-plugin to achieve this. Is this the best way to do this or is there a better way. Regards, Robert -- View this message in context: http://www.nabble.com/JWSC-in-Maven-tp15494764s177p15494764.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
about mvn site's encoding and test errors interrupt mvn site
Hi User Group,I am using mvn site to generate reports for my project. Here is some problems that confused me:1. I use the command mvn project-info-reports:dependencies, the reports generated support Chinese Charset and the report is Chinese--it is great, I love it. But when I use the command mvn site, the reports generated is English, even if I configure it like this:reporting plugins plugin groupIdorg.apache.maven.plugins/groupIdartifactId maven-project-info-reports-plugin/artifactIdconfiguration i18nzh/i18n inputEncodingGB2312/inputEncoding outputEncodingGB2312/outputEncoding/configuration /pluginreporting My question is how I can make the command mvn site to generate chinese reports?2. When I use the mvn site, if there are errors in testing phase, I cann't got any report. My question is if I can always get reports if testing occur error or not? If I can, how?thanks and best regards! 2008-02-15 wayne.moo
Re: Maven Concepts
SNAPSHOT Vs release version. Hi, In our intranet maven repository we have both release version and snaphot version under the same groupId (under the same folder on file system). While amounting to ignorance to SNAPSHOT versions, release version existed long before SNAPSHOT versions started getting placed in the same folder. Now we realized that when people changed their dependency versions to snapshot, maven is not able to fetch the SNAPSHOT version, and it just tells not able to find the specified jar. The earlier dependency of y on x groupIdcom.group.x/groupId artifactIdx/artifactId version1.0.0/version has become groupIdcom.group.x/groupId artifactIdx/artifactId version1.0.0-SNAPSHOT/version and x has already been deployed to the repository with 1.0.0-SNAPSHOTversion. Could someone please help me figure out what exactly is happening here? Regards, Amit On Thu, Feb 14, 2008 at 3:17 PM, [EMAIL PROTECTED] wrote: You can add a property to your finalName and fill that with a profile, or use the build definition inside a profile to add your finalName to. Hth, Nick Stolwijk -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: Thu 2/14/2008 10:45 To: Maven Users List Subject: Re: Maven Concepts *Different finalName for development and integration environment: Something like the builds at CI server would have x-INT-2008.jar. * Hi, The above is a requirement to be catered to. But my doubt is the finalName gets overridden in children projects if it is present(which is the case). How to accomplish this. Is profiles the answer? But submodules doesn't have a profile for finalName, they have it directly in the build tag. Regards, Amit Kumar On Tue, Feb 12, 2008 at 9:49 PM, [EMAIL PROTECTED] wrote: The modules section is only used when building an aggregate project. It is not used for dependencies in any way. If submodule b uses submodule a, you have to give submodule b a dependency on submodule a. If multiple submodules depend on submodule a, you can have submodule a in the dependencyManagement, with the right version (often it is ${project.version}, which is the version of your aggregate project) so you don't need to include the version number in each submodule. Hth, Nick Stolwijk -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: Tue 2/12/2008 15:15 To: Maven Users List Subject: Re: Maven Concepts Continuing on the dependency Vs dependencyManagement, I read the documents on it but after encountering the archetype:create for j2ee simple, I am not able to figure out what is the motive behind giving sub-modules of the project in the dependencyManagement section. Regards, Amit On Feb 12, 2008 7:08 PM, amit kumar [EMAIL PROTECTED] wrote: Thanks Nick. I was unaware of that part. Configured the repository for snapshots and now it is working. Regards, Amit On Feb 12, 2008 3:16 PM, [EMAIL PROTECTED] wrote: How did you configure your repository? Especially take a look at the updatePolicy element in your snapshot repository. [1] If this one is omitted, it will default to daily, so it is possible it won't take your newest snapshot. You can use mvn -U to look for newer versions of the snapshot dependencies. Or set the updatePolicy to another value: The frequency for downloading updates - can be always, daily (default), interval:XXX (in minutes) or never (only if it doesn't exist locally). Hth, Nick S. [1] http://maven.apache.org/ref/2.0.7/maven-settings/settings.html#class_snapshots -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: Tue 2/12/2008 10:40 To: Maven Users List Subject: Re: Maven Concepts I tested with SNAPSHOT version as well. But maven still seems to prefer the local version of even the SNAPSHOT version? i have these two modules a.jar and b.jar, a-1.0-SNAPSHOT.jar depends on b-1.0-SNAPSHOT.jar, I tested and deployed b.jar at a later time stamp and again tried to build a.jar. But still it fetched the local version which was build at 14:29 while the one of two jars at repository is a 14:45 built? Am I missing something here? I am using the buildNumber as well to have the finalName appended with time stamp. Regards, Amit On Feb 8, 2008 3:52 PM, Simon Kitching [EMAIL PROTECTED] wrote: Stephen Connolly [EMAIL PROTECTED] schrieb: Redeploying a non-SNAPSHOT version is a _bad thing_ as Maven will not re-download it. Absolutely. Never overwrite an existing deployed file except when it has SNAPSHOT in the version. Builds should be repeatable, ie you should be able to compile something today, then compile it again next week and get the same result. This means
Re: Why does maven2 not provide iteration or foreach language feature?
Okay, here is an example of a legacy maven1 goal. You can see how easily it can be done in the iteration language feature provided by jelly script. I'm scratching my head as to how the same can be done in maven2 (easily) without writing a plug-in or changing the perl script that is invoked against each file. goal name=foo_goal fileScanner var=testFiles fileset dir=${pom.build.unitTestSourceDirectory} includes=**/*Test.java/ /fileScanner j:forEach var=file items=${testFiles.iterator()} trim=yes echo message=running TestCase: ${file}/ exec executable=perl arg value=${maven.test.dest}/bin/mytest.pl/ arg value=${file}/ arg value=${maven.test.dest}// /exec /j:forEach /goal On 2/14/08, Wayne Fay [EMAIL PROTECTED] wrote: Please describe what you're trying to do and why, and perhaps someone can help you figure out a way to do it using features that Maven does support. Wayne On Thu, Feb 14, 2008 at 6:41 PM, Ryan H. [EMAIL PROTECTED] wrote: Why does maven2 not provide iteration or foreach language feature? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What format is recommended for documentation when using mvn site ?
Hi Remy, Thanks. I'll check it out. I've also seen mentioned that there is work going on to create PDF from apt and xdoc. I also saw that for maven1, the xdoc format was the recomended format to use for any user specific documentation. What is the status for xdoc and Maven2 ? Do you know ? Arne Have a look at the docbook format http://www.nabble.com/forum/Search.jtp?forum=178local=yquery=docbook and the corresponding plugin named docbkx-tools ( http://code.google.com/p/docbkx-tools/) http://www.nabble.com/Any-tool-available-for-generating-docs-from-pom.xml--td1 5036590s177.html#a15061807 Rémy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why does maven2 not provide iteration or foreach language feature?
Okay, here is an example of a legacy maven1 goal. You can see how easily it can be done in the iteration language feature provided by jelly script. I'm scratching my head as to how the same can be done in maven2 (easily) without writing a plug-in or changing the perl script that is invoked against each file. goal name=foo_goal fileScanner var=testFiles fileset dir=${pom.build.unitTestSourceDirectory} includes=**/*Test.java/ /fileScanner j:forEach var=file items=${testFiles.iterator()} trim=yes echo message=running TestCase: ${file}/ exec executable=perl arg value=${maven.test.dest}/bin/mytest.pl/ arg value=${file}/ arg value=${maven.test.dest}// /exec /j:forEach /goal On 2/14/08, Wayne Fay [EMAIL PROTECTED] wrote: Please describe what you're trying to do and why, and perhaps someone can help you figure out a way to do it using features that Maven does support. Wayne On Thu, Feb 14, 2008 at 6:41 PM, Ryan H. [EMAIL PROTECTED] wrote: Why does maven2 not provide iteration or foreach language feature? - 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 Concepts
Hi Amit, Firstly, when you have a question that is not really related to an existing thread, then please start a new email thread rather than replying to the existing one. By doing that, and choosing a good subject line for the email, other people with the same problem can later search the email archives and find the necessary answer. AFAIK, there's no major problem having release and snapshot versions in the same repository. This doesn't happen often with open-source projects because (a) all releases get put into the official repositories (ibiblio, rep1.maven.org) that are mirrored arround the world, and (b) mirroring snapshots is silly. So for apache software for example, there is a non-mirrored repo that only holds snapshots, with all actual releases going to the mirrored repos. But for a company that doesn't mirror its releases, I'm not aware of any reason why snapshots and releases cannot be on the same repo. Your problem is probably that you have the repository tag that points to your repo configured with snapshot-lookup disabled. Try adding this to the repository tag: snapshots enabledtrue/enabled /snapshots Regards, Simon amit kumar schrieb: SNAPSHOT Vs release version. Hi, In our intranet maven repository we have both release version and snaphot version under the same groupId (under the same folder on file system). While amounting to ignorance to SNAPSHOT versions, release version existed long before SNAPSHOT versions started getting placed in the same folder. Now we realized that when people changed their dependency versions to snapshot, maven is not able to fetch the SNAPSHOT version, and it just tells not able to find the specified jar. The earlier dependency of y on x groupIdcom.group.x/groupId artifactIdx/artifactId version1.0.0/version has become groupIdcom.group.x/groupId artifactIdx/artifactId version1.0.0-SNAPSHOT/version and x has already been deployed to the repository with 1.0.0-SNAPSHOTversion. Could someone please help me figure out what exactly is happening here? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Concepts
The only reason i can think of to have a snapshot repo in a company is to get rid of very old snapshots which may bump up your repo size heavily. It is much easier to drop obsolete snapshots if they are strictly separated from released modules. LieGrü, strub --- [EMAIL PROTECTED] [EMAIL PROTECTED] schrieb: Hi Amit, Firstly, when you have a question that is not really related to an existing thread, then please start a new email thread rather than replying to the existing one. By doing that, and choosing a good subject line for the email, other people with the same problem can later search the email archives and find the necessary answer. AFAIK, there's no major problem having release and snapshot versions in the same repository. This doesn't happen often with open-source projects because (a) all releases get put into the official repositories (ibiblio, rep1.maven.org) that are mirrored arround the world, and (b) mirroring snapshots is silly. So for apache software for example, there is a non-mirrored repo that only holds snapshots, with all actual releases going to the mirrored repos. But for a company that doesn't mirror its releases, I'm not aware of any reason why snapshots and releases cannot be on the same repo. Your problem is probably that you have the repository tag that points to your repo configured with snapshot-lookup disabled. Try adding this to the repository tag: snapshots enabledtrue/enabled /snapshots Regards, Simon amit kumar schrieb: SNAPSHOT Vs release version. Hi, In our intranet maven repository we have both release version and snaphot version under the same groupId (under the same folder on file system). While amounting to ignorance to SNAPSHOT versions, release version existed long before SNAPSHOT versions started getting placed in the same folder. Now we realized that when people changed their dependency versions to snapshot, maven is not able to fetch the SNAPSHOT version, and it just tells not able to find the specified jar. The earlier dependency of y on x groupIdcom.group.x/groupId artifactIdx/artifactId version1.0.0/version has become groupIdcom.group.x/groupId artifactIdx/artifactId version1.0.0-SNAPSHOT/version and x has already been deployed to the repository with 1.0.0-SNAPSHOTversion. Could someone please help me figure out what exactly is happening here? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Lesen Sie Ihre E-Mails auf dem Handy. www.yahoo.de/go - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]