RE: Maven-Proxy error
Just throw away configs for Maven1 repositories in the maven proxy properties file. Adrian -Original Message- From: emerson cargnin [mailto:[EMAIL PROTECTED] Sent: Thursday, September 14, 2006 2:11 AM To: Maven Users List Subject: Maven-Proxy error Hi all to use maven-proxy with maven 2, should I configure the maven2 repository? the original configuration in the maven-proxy.properties points to http://www.ibiblio.org/maven: #www.ibiblio.org repo.www-ibiblio-org.url=http://www.ibiblio.org/maven repo.www-ibiblio-org.description=www.ibiblio.org repo.www-ibiblio-org.proxy=one repo.www-ibiblio-org.hardfail=true #Cache this repository for 1 hour repo.www-ibiblio-org.cache.period=3600 repo.www-ibiblio-org.cache.failures=true #dist.codehaus.org repo.dist-codehaus-org.url=http://dist.codehaus.org repo.dist-codehaus-org.proxy=two repo.dist-codehaus-org.hardfail=false repo.dist-codehaus-org.cache.period=3600 repo.dist-codehaus-org.cache.failures=true Emerson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email is confidential. If you are not the intended recipient, please delete it from your system and notify the sender immediately. Any unauthorized use, disclosure, dissemination or copying of this email is prohibited. Taifook Securities Group, its group companies and their content providers (Parties) shall not be responsible for the accuracy or completeness of this email or its attachment, if any, which could contain virus, be corrupted, destroyed, incomplete, intercepted, lost or arrive late. The Parites do not accept liability for any damage caused by this email. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
StarTeam support in Maven 2
Hello, Im new in Maven 2. So, I would be very grateful if you could you help me to start implementation of StarTeam support in my Maven system. Thank you in advance, Roman __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
RE: Cargo deploy on to a remote machine
Hi Prashanth, As it has been suggested, please use the cargo mailing list if you need more information and help. Note that I've also answered to you already on this list... :-( Thanks -Vincent -Original Message- From: Prashanth Krishnamurthy [mailto:[EMAIL PROTECTED] Sent: mercredi 13 septembre 2006 21:09 To: continuum-users@maven.apache.org Subject: Re: Cargo deploy on to a remote machine I did try cargo:undeploy. undeploy works fine. But when I use deploy again, it fails with an error, something like ..Application with that name already exists.. thanks --Prashanth --- Wayne Fay [EMAIL PROTECTED] wrote: Did you try cargo:undeploy? I don't currently use Cargo, but I'd expect that's a valid goal/target. Also, it might be more appropriate to send this question to the Cargo Users email list... Wayne On 9/12/06, Prashanth Krishnamurthy [EMAIL PROTECTED] wrote: I am trying to deploy my application to a running tomcat instance on a different machine. I have tried the following and haven't been successfully. What is the right way to do this? Please suggest. 1.mvn cargo:deploy - This works fine only when the tomcat instance doesn't have my application deployed. 2. mvn cargo:deploy - This fails when run against a tomcat instance which already has my application running or deployed. Failed to deploy [c:\main\app\ui\target\aa.war] Application already exists at path /aa 3. mvn cargo:deployer-redeploy - This goal undeploys and redeploys the application. I guess this is deploying the existing war file without refreshing with the new war file. 4. mvn cargo:deployer-redeploy - This fails when run against a tomcat instance which doesn't have my running or deployed. [INFO] Failed to redeploy [c:\main\app\ui\target\aa.war] FAIL - No context exists for path /aa thanks --Prashanth __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. http://fr.answers.yahoo.com
maven2 / xdoclet plugin and strutsconfigxml
hi all, i have a webapp where i want to generete the struts-config.xml i am currently using maven2, my action class is as follows /** * @struts.action name=contactForm path=/editPerson scope=request * validate=false input=mainMenu * * @struts.action-forward *name=success *path=viewContacts.jsp * * @jboss.ejb-ref-jndi * jndi-name=ejb/ContactMaintenanceLocalHome * ref-name=ContactMaintenance * */ my pom.xml is as follows build sourceDirectory${basedir}\JavaSource/sourceDirectory plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdxdoclet-maven-plugin/artifactId executions execution idgenerateSources/id phasegenerate-sources/phase goals goalxdoclet/goal /goals configuration tasks webdoclet destDir=${project.build.directory}/generated-sources/xdoclet excludedTags=@author,@version fileset dir=${basedir}/JavaSource includes=**/*.java / strutsconfigxml validatexml=true version=1.1/ strutsvalidationxml/ deploymentdescriptor destDir=${project.build.outputDirectory}/META-INF useIDs=true/ jbosswebxml/ /webdoclet /tasks /configuration /execution /executions /plugin i got the jbosswebxml generated successfully.. i have tagged even my forms with @struts.form tags and struts config get properly generated the only problem is that i see no action-mappings for my action class... i did a google search, was not able to find anything that could help.. is it a bug in the struts plugin? thanks in advance and regards marco
Continuum svn update suddenly not working
I am suddenly getting this e-mail from Continuum: Build Error: Provider message: The svn command failed. Command output: --- svn: URL 'https://svn.sourceforge.net/svnroot/spring-rich-c/trunk/spring-richclient/spring-richclient-samples/spring-richclient-petclinic/spring-richclient-petclinic-server' doesn't exist --- The correct svn url should be https://svn.sourceforge.net/svnroot/spring-rich-c/trunk/spring-richclient/samples/petclinic/server (our modules folder names aren't the same as their artifactId) And that always worked until a few days ago. Our maven plugin version are locked down, our SVN url didn't change and the continuum version is still 1.0.3. Does anyone have any idea what is going on? -- With kind regards, Geoffrey De Smet
Re: Update over scm-local does not delete files removed from source dir
ArneD a écrit : Emmanuel Venisse wrote: Are you sure it isn't possible to checkout sources in a specific folder with cleartool? It is possible with snapshot views. My ClearCase know-how is limited, but I am quite sure it is not possible with dynamic views. Do you think the suggested enhancement for scm-local would be useful and make sense? Not only in combination with ClearCase dynamic views but for other usage as well, e.g. testing. yes. Do you want to implement it? Regards, Arne That's true. Maybe we could enhance scm-local to keep its own metadata? In particular, scm-local could maintain a simple file, say .maven-scm-local, that contains as plain text the list of files in the source directory, as seen during the last checkout or update operation: - During checkout, the file .maven-scm-local is created in the checkout base directory. Its just a plain text file containing the list of files that have been checked out. - The update command looks for the file. If it is there, it compares the contents of that file to the current source directory contents (including subdirs). All files that are in .maven-scm-local but are no longer in the source dir, have been deleted in the source dir. The update command therefore removes them from the checkout dir. - If for whatever reason .maven-scm-local is not there, the update command won't delete any files. That way, we're backwards compatible. - After completing the update process, the update command rewrites the .maven-scm-local metadata file. - Even the changelog command can interpret .maven-scm-local - For add and checkin commands, I don't think that changes are needed. What do you think? Regards, Arne
Java project dependent on a dll
We are running Maven 2 and need to use some third party Java component. That component actually is delivered as a windows .dll file, since it is implemented in a native way by JNI. So we do not have the c++ source code but only the .dll. The dll is needed for both, compilation and runtime. How can we tell Maven 2 to add a dependancy on that .dll file in the project using it? Thanks Markus begin:vcard fn:Markus KARG n:KARG;Markus org:QUIPSY QUALITY GmbH;Entwicklung / R D adr:;;Stuttgarter Strasse 23;Pforzheim;Baden-Wuerttemberg;75179;Bundesrepublik Deutschland email;internet:[EMAIL PROTECTED] title:Staatl. gepr. Inf. tel;work:+49-7231-9189-52 tel;fax:+49-7231-9189-59 note:QUIPSY(R) Entwicklung / R D x-mozilla-html:TRUE url:http://www.quipsy.de version:2.1 end:vcard smime.p7s Description: S/MIME Cryptographic Signature
Re: Java project dependent on a dll
upload your dll to your internal repo. At build time, use maven-dependency-plugin to copy it ( without version ) to your designated place. -Dan On 9/14/06, Markus KARG [EMAIL PROTECTED] wrote: We are running Maven 2 and need to use some third party Java component. That component actually is delivered as a windows .dll file, since it is implemented in a native way by JNI. So we do not have the c++ source code but only the .dll. The dll is needed for both, compilation and runtime. How can we tell Maven 2 to add a dependancy on that .dll file in the project using it? Thanks Markus
xdoclet2 maven2 plugin not resolving
Hello, I have been using xdoclet2 in maven2 for a few months now, but I have just found a problem when a new developer has joined our team and tried to build the maven project. It is unable to find the xdoclet2 maven2 plugin. Has the repository changed as my local .m2/repository can still resolve this plugin? Please can anyone tell me what I have done wrong, or confirm this. Thanks Neil info attached: [INFO] [INFO] Building mod-hibernate [INFO]task-segment: [test] [INFO] [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from codehaus-plugins [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking for updates from codehaus-plugins [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for updates from codehaus-plugins [INFO] artifact xdoclet:maven2-xdoclet2-plugin: checking for updates from codehaus-plugins [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'xdoclet:maven2-xdoclet2-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 2 seconds [INFO] Finished at: Thu Sep 14 09:26:58 BST 2006 [INFO] Final Memory: 2M/4M [INFO] the pom.xml has this: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdgroup1/groupId artifactIdhibernate_mod/artifactId packagingjar/packaging version1.0-SNAPSHOT/version namemod-hibernate/name dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate/artifactId version3.1.3/version /dependency /dependencies build plugins plugin groupIdxdoclet/groupId artifactIdmaven2-xdoclet2-plugin/artifactId executions execution idxdoclet/id phasegenerate-sources/phase goals goalxdoclet/goal /goals /execution /executions dependencies dependency groupIdxdoclet-plugins/groupId artifactIdxdoclet-plugin-hibernate/artifactId version1.0.4-SNAPSHOT/version /dependency /dependencies configuration configs config components component classnameorg.xdoclet.plugin.hibernate.HibernateMappingPlugin/class\name params version3.0/version destdirtarget/destdir validatefalse/validate /params /component /components /config /configs /configuration /plugin /plugins /build pluginRepositories pluginRepository idcodehaus-plugins/id urlhttp://dist.codehaus.org//url layoutlegacy/layout snapshots enabledtrue/enabled /snapshots releases enabledtrue/enabled /releases /pluginRepository /pluginRepositories /project -- View this message in context: http://www.nabble.com/xdoclet2-maven2-plugin-not-resolving-tf2270299.html#a6301608 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java project dependent on a dll
I am a beginner with Maven 2. Can you please be so kind and post me the lines how to do that? Or can you please give me an URL where to find a guide for that? Thanks a lot Markus dan tran schrieb: upload your dll to your internal repo. At build time, use maven-dependency-plugin to copy it ( without version ) to your designated place. -Dan On 9/14/06, *Markus KARG* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: We are running Maven 2 and need to use some third party Java component. That component actually is delivered as a windows .dll file, since it is implemented in a native way by JNI. So we do not have the c++ source code but only the .dll. The dll is needed for both, compilation and runtime. How can we tell Maven 2 to add a dependancy on that .dll file in the project using it? Thanks Markus begin:vcard fn:Markus KARG n:KARG;Markus org:QUIPSY QUALITY GmbH;Entwicklung / R D adr:;;Stuttgarter Strasse 23;Pforzheim;Baden-Wuerttemberg;75179;Bundesrepublik Deutschland email;internet:[EMAIL PROTECTED] title:Staatl. gepr. Inf. tel;work:+49-7231-9189-52 tel;fax:+49-7231-9189-59 note:QUIPSY(R) Entwicklung / R D x-mozilla-html:TRUE url:http://www.quipsy.de version:2.1 end:vcard smime.p7s Description: S/MIME Cryptographic Signature
uniqueVersion property accessible during deploy ?
Is there a way of referencing the date timestamp that is appended to artifacts during a deploy ? e.g. my_ear-1.0-20060912.160818-730.ear Can I reference something like ${uniqueVersion} ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Class-Path: ?
I have added a dependency to FOP-0.20.5 (from the maven main repository) to my project, using compile scope. I can compile and package my jar. But in the jar there is no Class-Path: fop-0.20.5.jar entry created by mvn, so at runtime java -jar my.jar will fail since it doesn't know where to find the fop classes I have used. How do I tell mvn to add the needed Class-Path: fop-0.20.5.jar entry into the MANIFEST.MF file it created in my.jar? Thanks a lot! Markus begin:vcard fn:Markus KARG n:KARG;Markus org:QUIPSY QUALITY GmbH;Entwicklung / R D adr:;;Stuttgarter Strasse 23;Pforzheim;Baden-Wuerttemberg;75179;Bundesrepublik Deutschland email;internet:[EMAIL PROTECTED] title:Staatl. gepr. Inf. tel;work:+49-7231-9189-52 tel;fax:+49-7231-9189-59 note:QUIPSY(R) Entwicklung / R D x-mozilla-html:TRUE url:http://www.quipsy.de version:2.1 end:vcard smime.p7s Description: S/MIME Cryptographic Signature
EJB Client JAR
Using Maven2's ejb package, I was able to create an ejb-jar from my sources. But not I want Maven to create an EJB Client JAR, that only contains the interfaces, and make another JAR dependent of that EJB Client JAR (by means of Class-Path: entry in MANIFEST.MF). How to do that? begin:vcard fn:Markus KARG n:KARG;Markus org:QUIPSY QUALITY GmbH;Entwicklung / R D adr:;;Stuttgarter Strasse 23;Pforzheim;Baden-Wuerttemberg;75179;Bundesrepublik Deutschland email;internet:[EMAIL PROTECTED] title:Staatl. gepr. Inf. tel;work:+49-7231-9189-52 tel;fax:+49-7231-9189-59 note:QUIPSY(R) Entwicklung / R D x-mozilla-html:TRUE url:http://www.quipsy.de version:2.1 end:vcard smime.p7s Description: S/MIME Cryptographic Signature
need my Mojo to execute a CVS status command - help
Could any of you guys help with the code I would need to put in my MOJO to execute a cvs command. The command is cvs status -v filename which isn't supported by maven-scm-providers-cvs. I see there is a AbstractCvsStatusCommand but this issues a cvs update I believe. Is there a way I can execute an arbitary CVS command using the api ? If so how ? All I really need is the result as a String so I could parse it. What I'm trying to do is determine the most recent CVS Tag, so that I could write a MOJO to get the next tag, and pass this to the scm:tag goal. output from 'cvs status -v filename' is like File: ChangeLog Status: Needs Patch Working revision: 1.3338.2.122 Repository revision:1.3338.2.152/cvs/gnome/gtk+/ChangeLog,v Sticky Tag: gtk-2-0 (branch: 1.3338.2) Sticky Date:(none) Sticky Options: (none) Existing Tags: GTK_2_0_6 (revision: 1.3338.2.147) GTK_2_0_5 (revision: 1.3338.2.120) GTK_2_0_4 (revision: 1.3338.2.115) GTK_2_0_3 (revision: 1.3338.2.68) GTK_MULTIHEAD_MERGEPOINT_19_04_02 (revision: 1.3347) gtk-2-0 (branch: 1.3338.2) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multi-module project in continuum
We have some CVS modules which are maven2 projects: acme-web, acme-upload, and acme-ear. I want to create a new CVS module called acme-pom which will recusively build these projects in continuum. I know that I need to add a parent directive to each of these modules: parent groupIdcom.acme/groupId artifactIdacme-pom/artifactId versionHEAD_SNAPSHOT-${target.profile}-${target.machine}/version /parent With this approach will continuum be able to recursively checkout and build these projects? Or, do I need to create a symbolic link in acme-pom to acme-web, acme-upload, and acme-ear in CVS for this to work? Regards, Richard
Re: Class-Path: ?
Markus KARG wrote: I have added a dependency to FOP-0.20.5 (from the maven main repository) to my project, using compile scope. I can compile and package my jar. But in the jar there is no Class-Path: fop-0.20.5.jar entry created by mvn, so at runtime java -jar my.jar will fail since it doesn't know where to find the fop classes I have used. How do I tell mvn to add the needed Class-Path: fop-0.20.5.jar entry into the MANIFEST.MF file it created in my.jar? addClasspathtrue/addClasspath Example here: http://maven.apache.org/plugins/maven-jar-plugin/examples/executable-jar.html Max. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Class-Path: ?
Great, thanks a lot! In fact this was exactly I was looking for! :-) Markus Max Bowsher schrieb: Markus KARG wrote: I have added a dependency to FOP-0.20.5 (from the maven main repository) to my project, using compile scope. I can compile and package my jar. But in the jar there is no Class-Path: fop-0.20.5.jar entry created by mvn, so at runtime java -jar my.jar will fail since it doesn't know where to find the fop classes I have used. How do I tell mvn to add the needed Class-Path: fop-0.20.5.jar entry into the MANIFEST.MF file it created in my.jar? addClasspathtrue/addClasspath Example here: http://maven.apache.org/plugins/maven-jar-plugin/examples/executable-jar.html Max. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] begin:vcard fn:Markus KARG n:KARG;Markus org:QUIPSY QUALITY GmbH;Entwicklung / R D adr:;;Stuttgarter Strasse 23;Pforzheim;Baden-Wuerttemberg;75179;Bundesrepublik Deutschland email;internet:[EMAIL PROTECTED] title:Staatl. gepr. Inf. tel;work:+49-7231-9189-52 tel;fax:+49-7231-9189-59 note:QUIPSY(R) Entwicklung / R D x-mozilla-html:TRUE url:http://www.quipsy.de version:2.1 end:vcard smime.p7s Description: S/MIME Cryptographic Signature
Re: Update over scm-local does not delete files removed from source dir
my Continuum installation is accessing a file system directory using scm-local provider to get sources (BTW, the directory is on a ClearCase dynamic view). Updates are working fine as long as files are only changed or added. But when files are removed from the source directory, they still exist in the target directory. Especially after refactoring activities, this leads to build errors. Make sure you are runnning clean goal in maven. When you do a clean it should delete this info from the target directories. And that will fix your problem. BTW, you'll speed up your build if you get maven to put the target directories somewhere else, outside of the dynamic view, as dynamic views can be slow. David
Re: Update over scm-local does not delete files removed from source dir
Emmanuel Venisse wrote: Do you think the suggested enhancement for scm-local would be useful and make sense? Not only in combination with ClearCase dynamic views but for other usage as well, e.g. testing. yes. Do you want to implement it? Yes, I can try to do so and then provide a patch. Regards, Arne -- View this message in context: http://www.nabble.com/Update-over-scm-local-does-not-delete-files-removed-from-source-dir-tf2257460.html#a6303945 Sent from the Continuum - Users forum at Nabble.com.
Uploading to a local repository
Hi I am strugling with the deploy task after we switched servers for the local repository. When I deploy, the artifacts get deployed to my user instead of ending up in the local repository My repository url in the distributionManagement section is : scp:my-server/repository where /repository is a symlink to the real location. Anybody had any similar problem Hermod * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
section
I need to add the following information to the MANIFEST.MF file of a JAR: Name: S1 N1: V1 Name: S2 N2: V2 How can I do that? I tried it this way but it doesn't work: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive indextrue/index manifest addClasspathtrue/addClasspath /manifest manifestEntries section name=S1N1V1/N1/section section name=S2N2V2/N2/section /manifestEntries /archive /configuration /plugin /plugins /build What is the correct way to configure the pom.xml that get the above sections and entries? Thanks Markus begin:vcard fn:Markus KARG n:KARG;Markus org:QUIPSY QUALITY GmbH;Entwicklung / R D adr:;;Stuttgarter Strasse 23;Pforzheim;Baden-Wuerttemberg;75179;Bundesrepublik Deutschland email;internet:[EMAIL PROTECTED] title:Staatl. gepr. Inf. tel;work:+49-7231-9189-52 tel;fax:+49-7231-9189-59 note:QUIPSY(R) Entwicklung / R D x-mozilla-html:TRUE url:http://www.quipsy.de version:2.1 end:vcard smime.p7s Description: S/MIME Cryptographic Signature
Re: Modified WAR Plugin
How do you refer to the new plugin in your pom.xml file? I thought that a project of packaging typewar/type will automatically use the default war plugin... How did you override this behavior? jp4 Max Cooper wrote: My project was using a modified version of the war plugin for a while. I decided that the best solution was to make the plugin another module in our project. This solution seemed easier than managing a release process for the modified plugin separately, or requiring team members to do something unusual like installing it themselves. We have since removed the plugin from our file tree because the released version now does what we need. It all went pretty smoothly. You might find that making the modified plugin just another module in your project to be the best solution. -Max jp4 wrote: I recently modified the maven-war-plugin source to accomodate some changes that I needed to support axis2. I submitted this code for inclusion into the next version of the plugin, but until that time I need to distribute the plugin to everyone on my development team. I can install it into the local repository and it works fine, but if I try to upload it to our development repository (internally) I can't seem to get the plugin to update. I have included the development repository in the settings.xml and have tried using 2.0.1-SNAPSHOT as well as 2.0.2 versions. I seem to get the same problem listed below. Can I disable the Super POM plugin repo? Having each developer install the plugin locally isn't really an option so I have to be able to distribute this via our development repository. I have also tried using the explicit plugin version in our root POM file and I get the same error. Any help would be greatly appreciated. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [INFO] artifact org.apache.maven.plugins:maven-war-plugin: checking for updates from devrepo [DEBUG] Skipping disabled repository codehaus-snapshots [INFO] artifact org.apache.maven.plugins:maven-war-plugin: checking for updates from central [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '867df7ba2a0c81782ac0fb14db5ccda5f85f5d42'; remote = '3009ca8b79c340cc83543ea789f57b1ee0128cb6' - RETRYING [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '867df7ba2a0c81782ac0fb14db5ccda5f85f5d42'; remote = '3009ca8b79c340cc83543ea789f57b1ee0128cb6' - IGNORING [DEBUG] maven-war-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the latest version org.apache.maven.plugins:maven-war-plugin:pom:LATEST [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-war-plugin:pom:LATEST [DEBUG] maven-war-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the release version org.apache.maven.plugins:maven-war-plugin:pom:RELEASE [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-war-plugin:pom:RELEASE [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-war-plugin' does not exist or no valid version could be found [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.maven.plugins:maven-war-plugin' does not exist or no valid version could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1281) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1517) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1011) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:975) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:453) Thanks, JP4 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Modified-WAR-Plugin-tf2268007.html#a6305302 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Update over scm-local does not delete files removed from source dir
ArneD a écrit : Emmanuel Venisse wrote: Do you think the suggested enhancement for scm-local would be useful and make sense? Not only in combination with ClearCase dynamic views but for other usage as well, e.g. testing. yes. Do you want to implement it? Yes, I can try to do so and then provide a patch. Cool. Thanks. Emmanuel
2.0.5 release?
Hi all, Apologies for what is probably a FAQ, but can anyone give me an approx timescale for the 2.0.5 release? Just knowing whether it's imminent, weeks or months away would help me decide whether to invest in finding workarounds to some of the issues in 2.0.4. I'm really hoping that 2.0.5 will fix the problems with site deployment, particularly http://jira.codehaus.org/browse/MSITE-138 and http://jira.codehaus.org/browse/MSITE-25 (a real problem for windows users). John. -- AstroGrid/VOTech Institute for Astronomy, Edinburgh Skype:johndavidtaylor skype:johndavidtaylor?chat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-surefire-plugin not redirecting test output
Hi there, I'd like the maven-surefire-plugin to redirect all test console output to file. I've added the following to my POM: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.3-SNAPSHOT/version configuration useFilefalse/useFile redirectTestOutputToFiletrue/redirectTestOutputToFile suiteXmlFiles suiteXmlFiletestng.xml/suiteXmlFile /suiteXmlFiles /configuration /plugin The correct version of the plugin is downloaded along with all its dependencies, however the test output still appears in the console and there is no output file generated. Any ideas what we're doing wrong? Thanks, Manish This email is intended only for the use of the addressees named above and may be confidential or legally privileged. If you are not an addressee you must not read it and must not use any information contained in it, nor copy it, nor inform any person other than TietoEnator or the addressees of its existence or contents. If you have received this email and are not a named addressee, please delete it and notify the TietoEnator UK Technical Services Team on 0113 390 0700.
Re: maven repositories https
Douglas Ferguson wrote: My IT department just started requiring my repository to use https. However they didnt install a signed cert. Maven is now failing with the error: Error transferring file Could this be because the cert isnt signed? Is there anything else that I need to consider when using https for the repository url? Good day to you, Douglas, I think you have to specify the following in your {M2_HOME}\conf\settings.xml server id.../id username.../username password.../password /server Cheers, Franz -- View this message in context: http://www.nabble.com/maven-repositories---https-tf2269481.html#a6305623 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EJB Client JAR
Actually I don't want to do that but I want to know and do the maven-ejb-plugin way. Nevertheless, thanks a lot! Markus [EMAIL PROTECTED] schrieb: Not necessarily the maven-ejb-plugin way, but you can create a separate module for the EJB client and then add a compile dependency on the that project in your EJB project's pom. We did this to get around the fact that using the generateClient option on the maven-ejb-plugin generates a pom for the client with way too many dependencies (includes all of the EJBs dependencies) and so that we could compile the EJB in 1.5 but compile the client under 1.4. -Original Message- From: Markus KARG [mailto:[EMAIL PROTECTED] Sent: Thursday, September 14, 2006 4:23 AM To: Maven Users List Subject: EJB Client JAR Using Maven2's ejb package, I was able to create an ejb-jar from my sources. But not I want Maven to create an EJB Client JAR, that only contains the interfaces, and make another JAR dependent of that EJB Client JAR (by means of Class-Path: entry in MANIFEST.MF). How to do that? begin:vcard fn:Markus KARG n:KARG;Markus org:QUIPSY QUALITY GmbH;Entwicklung / R D adr:;;Stuttgarter Strasse 23;Pforzheim;Baden-Wuerttemberg;75179;Bundesrepublik Deutschland email;internet:[EMAIL PROTECTED] title:Staatl. gepr. Inf. tel;work:+49-7231-9189-52 tel;fax:+49-7231-9189-59 note:QUIPSY(R) Entwicklung / R D x-mozilla-html:TRUE url:http://www.quipsy.de version:2.1 end:vcard smime.p7s Description: S/MIME Cryptographic Signature
Re: section
Markus Karg wrote: I need to add the following information to the MANIFEST.MF file of a JAR: Name: S1 N1: V1 Name: S2 N2: V2 How can I do that? I tried it this way but it doesn't work: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive indextrue/index manifest addClasspathtrue/addClasspath /manifest manifestEntries section name=S1N1V1/N1/section section name=S2N2V2/N2/section /manifestEntries /archive /configuration /plugin /plugins /build What is the correct way to configure the pom.xml that get the above sections and entries? Thanks Markus begin:vcard fn:Markus KARG n:KARG;Markus org:QUIPSY QUALITY GmbH;Entwicklung / R D adr:;;Stuttgarter Strasse 23;Pforzheim;Baden-Wuerttemberg;75179;Bundesrepublik Deutschland email;internet:[EMAIL PROTECTED] title:Staatl. gepr. Inf. tel;work:+49-7231-9189-52 tel;fax:+49-7231-9189-59 note:QUIPSY(R) Entwicklung / R D x-mozilla-html:TRUE url:http://www.quipsy.de version:2.1 end:vcard Good day to you, Markus, Not exactly sure how, but you want to take a look at [1] and [2] ^_^ This documentation is still under review though, so feel free to post any comments that you may have so that we can update it ^_^ Thanks, Franz [1] http://people.apache.org/~dennisl/maven-jar-plugin/examples/manifest-customization.html [2] http://people.apache.org/~dennisl/maven-jar-plugin/examples/manifest-file.html -- View this message in context: http://www.nabble.com/%3Csection%3E-tf2271367.html#a6306101 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Uploading to a local repository
On 9/14/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am strugling with the deploy task after we switched servers for the local repository. When I deploy, the artifacts get deployed to my user instead of ending up in the local repository What do you mean to your user, as in ~/.m2/repository as if you just installed the archive instead of deployed? Or something else? My repository url in the distributionManagement section is : scp:my-server/repository where /repository is a symlink to the real location. Our repo is a symlink as well so AFAIK that is not an issue. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: EJB Client JAR
Not necessarily the maven-ejb-plugin way, but you can create a separate module for the EJB client and then add a compile dependency on the that project in your EJB project's pom. We did this to get around the fact that using the generateClient option on the maven-ejb-plugin generates a pom for the client with way too many dependencies (includes all of the EJBs dependencies) and so that we could compile the EJB in 1.5 but compile the client under 1.4. -Original Message- From: Markus KARG [mailto:[EMAIL PROTECTED] Sent: Thursday, September 14, 2006 4:23 AM To: Maven Users List Subject: EJB Client JAR Using Maven2's ejb package, I was able to create an ejb-jar from my sources. But not I want Maven to create an EJB Client JAR, that only contains the interfaces, and make another JAR dependent of that EJB Client JAR (by means of Class-Path: entry in MANIFEST.MF). How to do that? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: section
Franz, are you joking? Do you see any section tags on the URLs you posted? Maybe I am blind, but I don't see any, actually. Have Fun Markus franz see schrieb: Markus Karg wrote: I need to add the following information to the MANIFEST.MF file of a JAR: Name: S1 N1: V1 Name: S2 N2: V2 How can I do that? I tried it this way but it doesn't work: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive indextrue/index manifest addClasspathtrue/addClasspath /manifest manifestEntries section name=S1N1V1/N1/section section name=S2N2V2/N2/section /manifestEntries /archive /configuration /plugin /plugins /build What is the correct way to configure the pom.xml that get the above sections and entries? Thanks Markus begin:vcard fn:Markus KARG n:KARG;Markus org:QUIPSY QUALITY GmbH;Entwicklung / R D adr:;;Stuttgarter Strasse 23;Pforzheim;Baden-Wuerttemberg;75179;Bundesrepublik Deutschland email;internet:[EMAIL PROTECTED] title:Staatl. gepr. Inf. tel;work:+49-7231-9189-52 tel;fax:+49-7231-9189-59 note:QUIPSY(R) Entwicklung / R D x-mozilla-html:TRUE url:http://www.quipsy.de version:2.1 end:vcard Good day to you, Markus, Not exactly sure how, but you want to take a look at [1] and [2] ^_^ This documentation is still under review though, so feel free to post any comments that you may have so that we can update it ^_^ Thanks, Franz [1] http://people.apache.org/~dennisl/maven-jar-plugin/examples/manifest-customization.html [2] http://people.apache.org/~dennisl/maven-jar-plugin/examples/manifest-file.html begin:vcard fn:Markus KARG n:KARG;Markus org:QUIPSY QUALITY GmbH;Entwicklung / R D adr:;;Stuttgarter Strasse 23;Pforzheim;Baden-Wuerttemberg;75179;Bundesrepublik Deutschland email;internet:[EMAIL PROTECTED] title:Staatl. gepr. Inf. tel;work:+49-7231-9189-52 tel;fax:+49-7231-9189-59 note:QUIPSY(R) Entwicklung / R D x-mozilla-html:TRUE url:http://www.quipsy.de version:2.1 end:vcard smime.p7s Description: S/MIME Cryptographic Signature
Re: Multi-module project in continuum
Just the parent section inside the modules and the modules section in the parent pom will do. The modules section in the parent pom tells maven where the modules are already. Richard Abbuhl wrote: We have some CVS modules which are maven2 projects: acme-web, acme-upload, and acme-ear. I want to create a new CVS module called acme-pom which will recusively build these projects in continuum. I know that I need to add a parent directive to each of these modules: parent groupIdcom.acme/groupId artifactIdacme-pom/artifactId versionHEAD_SNAPSHOT-${target.profile}-${target.machine}/version /parent With this approach will continuum be able to recursively checkout and build these projects? Or, do I need to create a symbolic link in acme-pom to acme-web, acme-upload, and acme-ear in CVS for this to work? Regards, Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with maven repository
Maven2 fails to download http://dist.codehaus.org/org.mortbay.jetty/jars/servlet-api-2.5-6.0. I don't know why M2 is looking for the file there, since the file is on Ibiblio at http://www.ibiblio.org/maven2/org/mortbay/jetty/servlet-api/2.5-6.0.0beta12/ , and this is already cached in our Maven Proxy (which mirrors central). He's using the same settings.xml file as everyone else, which just mirrors central with the Maven Proxy. I copied the error below. Anyone have an idea as to why Maven2 is looking in the wrong place? Downloading: http://dist.codehaus.org/org.mortbay.jetty/jars/servlet-api-2.5-6.0 .0beta12.jar [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Error transferring file org.mortbay.jetty:servlet-api-2.5:jar:6.0.0beta12 from the specified remote repositories: central (http://repo1.maven.org/maven2), codehaus (http://dist.codehaus.org), apache.snapshots (http://svn.apache.org/maven-snapshot-repository), snapshots (http://snapshots.maven.codehaus.org/maven2) Path to dependency: 1) org.apache.maven.plugins:maven-site-plugin:maven-plugin:2.0-beta-5 2) org.mortbay.jetty:jetty:jar:6.0.0beta12 3) org.mortbay.jetty:servlet-api-2.5:jar:6.0.0beta12 Thanks a lot. ~ Franck HUGOT SOFINCO - Groupe Credit Agricole Service Urbanisation Des Développements DSI/PAT/DAOS/SUDD Tel : (+33) 01 60 76 54 66 [EMAIL PROTECTED] ~
Apache snapshot repository use unique versions
Why is the option uniqueVersion enabled when you deploy plugins to the apache snapshot repository? This feature doesn't work and so I can't use a snapshot version of a plugin without installing it myself on a daily basic. I find it very annoying and frustrating. Any comments? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Stuck ! (was Re: Doxia module)
This is something I really needed, so after a bit of playing, I managed to write and use a customized version of the xdoc doxia module without needing to recompile doxia, maven2 or the site plugin. The module pom contains: build plugins plugin groupIdorg.codehaus.plexus/groupId artifactIdplexus-maven-plugin/artifactId executions execution goals goaldescriptor/goal /goals /execution /executions /plugin /plugins /build dependencies dependency groupIdorg.apache.maven.doxia/groupId artifactIddoxia-core/artifactId version1.0-alpha-8/version scopecompile/scope exclusions exclusion groupIdorg.codehaus.plexus/groupId artifactIdplexus-util/artifactId /exclusion exclusion groupIdjunit/groupId artifactIdjunit/artifactId /exclusion /exclusions /dependency /dependencies The app pom contains: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId dependencies dependency groupIdorg.andromda.maven.site/groupId artifactIdandromda-doxia-module-xdoc/artifactId version3.2-SNAPSHOT/version /dependency /dependencies configuration localesen/locales outputEncodingUTF-8/outputEncoding /configuration /plugin plugins /build Regards Vance -Original Message- From: Arnaud Bailly [mailto:[EMAIL PROTECTED] Sent: Monday, 14 August 2006 10:43 PM To: Maven Developers List Cc: users@maven.apache.org Subject: Stuck ! (was Re: Doxia module) Hello, I still have troubles with doxia while trying to add a new module. I can see from posts in the users list that other people have troubles with using non standard modules like twiki. I tried copying my muse module to doxia-modules, it works fine and compiles ok, but I am left with the problem of telling maven to use my version of doxia. I could think of various solutions to this problem, including full recompilation of maven with modified dependency but I dont think this is the rigth way: there must be a way to add a plexus component to a system without recompiling everything. After all, this is the whole point of component based software engineering ! So I am asking my question again: How can I add a new module (ie. input file format) to doxia in such a way that this format can be used to document a project in maven ? I suspect this has something to do with injecting a new plexus component, which may be something that is done when a jar or classpath entry is loadedd ( ? maybe through classworlds). Any insights into this would be greatly appreciated as I desperately want this plugin to work. thx, -- OQube software engineering \ génie logiciel Arnaud Bailly, Dr. \web http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Send instant messages to your online friends http://au.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Stuck ! (was Re: Doxia module)
This is something I really needed, so after a bit of playing, I managed to write and use a customized version of the xdoc doxia module without needing to recompile doxia, maven2 or the site plugin. The module pom contains: build plugins plugin groupIdorg.codehaus.plexus/groupId artifactIdplexus-maven-plugin/artifactId executions execution goals goaldescriptor/goal /goals /execution /executions /plugin /plugins /build dependencies dependency groupIdorg.apache.maven.doxia/groupId artifactIddoxia-core/artifactId version1.0-alpha-8/version scopecompile/scope exclusions exclusion groupIdorg.codehaus.plexus/groupId artifactIdplexus-util/artifactId /exclusion exclusion groupIdjunit/groupId artifactIdjunit/artifactId /exclusion /exclusions /dependency /dependencies The app pom contains: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId dependencies dependency groupIdorg.andromda.maven.site/groupId artifactIdandromda-doxia-module-xdoc/artifactId version3.2-SNAPSHOT/version /dependency /dependencies configuration localesen/locales outputEncodingUTF-8/outputEncoding /configuration /plugin plugins /build Regards Vance -Original Message- From: Arnaud Bailly [mailto:[EMAIL PROTECTED] Sent: Monday, 14 August 2006 10:43 PM To: Maven Developers List Cc: users@maven.apache.org Subject: Stuck ! (was Re: Doxia module) Hello, I still have troubles with doxia while trying to add a new module. I can see from posts in the users list that other people have troubles with using non standard modules like twiki. I tried copying my muse module to doxia-modules, it works fine and compiles ok, but I am left with the problem of telling maven to use my version of doxia. I could think of various solutions to this problem, including full recompilation of maven with modified dependency but I dont think this is the rigth way: there must be a way to add a plexus component to a system without recompiling everything. After all, this is the whole point of component based software engineering ! So I am asking my question again: How can I add a new module (ie. input file format) to doxia in such a way that this format can be used to document a project in maven ? I suspect this has something to do with injecting a new plexus component, which may be something that is done when a jar or classpath entry is loadedd ( ? maybe through classworlds). Any insights into this would be greatly appreciated as I desperately want this plugin to work. thx, -- OQube software engineering \ génie logiciel Arnaud Bailly, Dr. \web http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Send instant messages to your online friends http://au.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with maven repository
I remove my proxy repository and my local repository and now I get this error : [INFO] [INFO] Building Projets Framework AMT [INFO]task-segment: [package] [INFO] Downloading: http://canope:8080/px-webapp/repository/private/org/codehaus/plexus/plexus-i18n/1.0-beta-6/plexus-i18n-1.0-beta-6.jar [WARNING] Unable to get resource from repository inhouse (http://canope:8080/px-webapp/repository/private) Downloading: http://canope:8080/px-webapp/repository/public/org/codehaus/plexus/plexus-i18n/1.0-beta-6/plexus-i18n-1.0-beta-6.jar 11K downloaded [INFO] [site:attach-descriptor] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error parsing site descriptor Embedded error: expected = after attribute name (position: TEXT seen ...project name=Framework LDAP ba\r\nnnerRight... @2:11) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 13 seconds [INFO] Finished at: Thu Sep 14 15:50:35 GMT+01:00 2006 [INFO] Final Memory: 4M/8M [INFO] I think this a very important problem in maven : the repository management! I have a deadline to use maven, it was working great when I try it but now I get this problem, why? I don't't change anything, only recreate local repository!! ---Message d'origine- --De : HUGOT Franck [mailto:[EMAIL PROTECTED] --Envoyé : jeudi 14 septembre 2006 16:19 --À : Maven Users List --Objet : Problem with maven repository -- --Maven2 fails to download --http://dist.codehaus.org/org.mortbay.jetty/jars/servlet-api-2.5-6.0. --I don't know why M2 is looking for the file there, since the file is on --Ibiblio at --http://www.ibiblio.org/maven2/org/mortbay/jetty/servlet-api/2.5- --6.0.0beta12/ --, and this is already cached in our Maven Proxy (which mirrors central). -- --He's using the same settings.xml file as everyone else, which just --mirrors --central with the Maven Proxy. I copied the error below. Anyone have an --idea --as to why Maven2 is looking in the wrong place? -- --Downloading: --http://dist.codehaus.org/org.mortbay.jetty/jars/servlet-api-2.5-6.0 --.0beta12.jar --[INFO] -- --[ERROR] BUILD ERROR --[INFO] -- --[INFO] Failed to resolve artifact. -- --Error transferring file -- org.mortbay.jetty:servlet-api-2.5:jar:6.0.0beta12 -- --from the specified remote repositories: -- central (http://repo1.maven.org/maven2), -- codehaus (http://dist.codehaus.org), -- apache.snapshots (http://svn.apache.org/maven-snapshot-repository), -- snapshots (http://snapshots.maven.codehaus.org/maven2) --Path to dependency: --1) --org.apache.maven.plugins:maven-site-plugin:maven-plugin:2.0-beta-5 --2) org.mortbay.jetty:jetty:jar:6.0.0beta12 --3) org.mortbay.jetty:servlet-api-2.5:jar:6.0.0beta12 -- -- -- -- -- -- -- --Thanks a lot. -- -- -- --~ -- --Franck HUGOT -- --SOFINCO - Groupe Credit Agricole -- --Service Urbanisation Des Développements -- --DSI/PAT/DAOS/SUDD -- --Tel : (+33) 01 60 76 54 66 -- --[EMAIL PROTECTED] -- --~ -- -- -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with maven repository
I remember there was a issue with the latest jetty pom but I could be wrong. On 9/14/06, HUGOT Franck [EMAIL PROTECTED] wrote: Maven2 fails to download http://dist.codehaus.org/org.mortbay.jetty/jars/servlet-api-2.5-6.0. I don't know why M2 is looking for the file there, since the file is on Ibiblio at http://www.ibiblio.org/maven2/org/mortbay/jetty/servlet-api/2.5-6.0.0beta12/ , and this is already cached in our Maven Proxy (which mirrors central). He's using the same settings.xml file as everyone else, which just mirrors central with the Maven Proxy. I copied the error below. Anyone have an idea as to why Maven2 is looking in the wrong place? Downloading: http://dist.codehaus.org/org.mortbay.jetty/jars/servlet-api-2.5-6.0 .0beta12.jar [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Error transferring file org.mortbay.jetty:servlet-api-2.5:jar:6.0.0beta12 from the specified remote repositories: central (http://repo1.maven.org/maven2), codehaus (http://dist.codehaus.org), apache.snapshots (http://svn.apache.org/maven-snapshot-repository), snapshots (http://snapshots.maven.codehaus.org/maven2) Path to dependency: 1) org.apache.maven.plugins:maven-site-plugin:maven-plugin:2.0-beta-5 2) org.mortbay.jetty:jetty:jar:6.0.0beta12 3) org.mortbay.jetty:servlet-api-2.5:jar:6.0.0beta12 Thanks a lot. ~ Franck HUGOT SOFINCO - Groupe Credit Agricole Service Urbanisation Des Développements DSI/PAT/DAOS/SUDD Tel : (+33) 01 60 76 54 66 [EMAIL PROTECTED] ~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Plugins Executions
There is a phase in execution... you can put it there. Douglas Ferguson wrote: If you are define a plugin in your pom that isn’t binded to a lifecyle phase, and then add executions to the plugin. When will this execute? I was thinking that it would be great if you can define 2 executions with separate configs and then somehow instruct the commandline to run the specific execution. I guess you could do this with profiles… - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: section
Hi! Franz, are you joking? Do you see any section tags on the URLs you posted? Maybe I am blind, but I don't see any, actually. The text may not mention it, but the JavaDocs show it. You have got to abstract a little from the example and the docs. Just make your POM look like this: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive indextrue/index manifest addClasspathtrue/addClasspath /manifest manifestSections manifestSection nameS1/name manifestEntries N1V1/N1 /manifestEntries /manifestSection /manifestSections /archive /configuration /plugin This will result in a manifest like this: Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven Built-By: hb Build-Jdk: 1.5.0_06 Class-Path: commons-lang-2.1.jar Name: S1 N1: V1 Enjoy! -- Mit freundlichen Grüßen / Kind regards Hendrik Busch - Stellv. Leiter der Softwareentwicklung LexisNexis Deutschland GmbH http://www.lexisnexis.de Feldstiege 100 D-48161 Münster phone +49 (0) 2533-9300-455 fax +49 (0) 02533-9300-50 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Plugins Executions
Yeah.. I know but I was curious if you didn't define a phase. It will use the configuration when you run it on the commandline. However, what does it do if there are 2 executions that aren't bound to any phase? -Original Message- From: Edwin Punzalan [mailto:[EMAIL PROTECTED] Sent: Thursday, September 14, 2006 10:12 AM To: Maven Users List Subject: Re: Plugins Executions There is a phase in execution... you can put it there. Douglas Ferguson wrote: If you are define a plugin in your pom that isnt binded to a lifecyle phase, and then add executions to the plugin. When will this execute? I was thinking that it would be great if you can define 2 executions with separate configs and then somehow instruct the commandline to run the specific execution. I guess you could do this with profiles - 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]
Packaging
I have a project that needs to generate a jar with dependencies. The jar without the deps is never needed. At first I had the project set to packaging pom and used the assembly plugin to generate my jar with deps. However, neigther works great: 1) in packaging type pom, the process-resources phase is never called. is there a way to get this phase to execute for pom? 2) in packaging type, jar I end up with 2 jar files. 1 with the correct name but not enough contents Another with the correct contents but an extra classifer on the name. Is there a way to prevent the jar:jar phase from running for the jar packaging?
Building maven-plugins project
We've developed a warpath plugin[1] that allows you to read dependencies from a war dependency. It works great, but we're currently unable to hook into the eclipse or idea plugin for project file generation. There's two thoughts I have to solving this: 1. Modify any typewar/type dependencies to be typejar/type during the process-resources phase. This doesn't seem to work, and even if we got it to work with the IDE plugins, I'm guessing it might clobber the war-overlay feature. 2. Modify the eclipse/idea/netbeans plugins to detect if maven-warpath-plugin exists, and if it does, treat WARs as JARs. Obviously, #2 is more work, but #1 doesn't seem to work. Any suggestions? Thanks, Matt [1] http://www.nabble.com/Re%3A-Maven-2-issues-for-Appfuse-2-p6125909s2369.html Download source at http://static.appfuse.org/downloads/maven-warpath-plugin-20060905.zip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven repositories https
I ended up using scp:// because I couldn't get anything to work over https:// However, I was unable to define multiple repositories using the same id So they could share the server user pass. When you have the same id the first one wins and the others aren't picked up. Using the same id works if they are in separate lists, i.e. dependency management:repositories, dependency management:snapshotrepositories, repositories But when you put them in the same list (i.e. all in repositories then it don't work) D- -Original Message- From: franz see [mailto:[EMAIL PROTECTED] Sent: Thursday, September 14, 2006 8:14 AM To: users@maven.apache.org Subject: Re: maven repositories https Douglas Ferguson wrote: My IT department just started requiring my repository to use https. However they didn_t install a signed cert. Maven is now failing with the error: Error transferring file Could this be because the cert isn_t signed? Is there anything else that I need to consider when using https for the repository url? Good day to you, Douglas, I think you have to specify the following in your {M2_HOME}\conf\settings.xml server id.../id username.../username password.../password /server Cheers, Franz -- View this message in context: http://www.nabble.com/maven-repositories---https-tf2269481.html#a6305623 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building maven-plugins project
What will this do for me? Were would I use the WAR dependancies with this plugin? On 9/14/06, Matt Raible [EMAIL PROTECTED] wrote: On 9/14/06, Matt Raible [EMAIL PROTECTED] wrote: We've developed a warpath plugin[1] that allows you to read dependencies from a war dependency. It works great, but we're currently unable to hook into the eclipse or idea plugin for project file generation. There's two thoughts I have to solving this: 1. Modify any typewar/type dependencies to be typejar/type during the process-resources phase. This doesn't seem to work, and even if we got it to work with the IDE plugins, I'm guessing it might clobber the war-overlay feature. 2. Modify the eclipse/idea/netbeans plugins to detect if maven-warpath-plugin exists, and if it does, treat WARs as JARs. Obviously, #2 is more work, but #1 doesn't seem to work. Any suggestions? Thanks, Matt [1] http://www.nabble.com/Re%3A-Maven-2-issues-for-Appfuse-2-p6125909s2369.html Download source at http://static.appfuse.org/downloads/maven-warpath-plugin-20060905.zip Sorry, forgot to finish my message and make the subject match my e-mail. ;-) Since I couldn't get #1 to work, I'm going to take a (reluctant) stab at #2. I tried to checkout the maven-plugins project using: svn co http://svn.apache.org/repos/asf/maven/plugins/trunk maven-plugins This worked just fine - but when I tried to build it, I get the error below. Do I have to download a higher-level project to build maven-plugins? 226:~/dev/maven-plugins mraible$ mvn [INFO] Scanning for projects... Downloading: http://snapshots.repository.codehaus.org/org/apache/maven/plugins/maven-plugins/2-SNAPSHOT/maven-plugins-2-SNAPSHOT.pom [WARNING] Unable to get resource from repository codehaus.org (http://snapshots.repository.codehaus.org) [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.maven.plugins ArtifactId: maven-plugins Version: 2-SNAPSHOT Reason: Unable to download the artifact from any repository org.apache.maven.plugins:maven-plugins:pom:2-SNAPSHOT from the specified remote repositories: codehaus.org (http://snapshots.repository.codehaus.org), central (http://repo1.maven.org/maven2) [INFO] [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.apache.maven.plugins:maven-plugins for project: null:maven-assembly-plugin:maven-plugin:2.2-SNAPSHOT at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java :365) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java :315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode( Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: org.apache.maven.plugins:maven-plugins for project: null:maven-assembly-plugin:maven-plugin:2.2-SNAPSHOT at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage( DefaultMavenProjectBuilder.java:1161) at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal( DefaultMavenProjectBuilder.java:674) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal (DefaultMavenProjectBuilder.java:416) at org.apache.maven.project.DefaultMavenProjectBuilder.build( DefaultMavenProjectBuilder.java:192) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:515) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java :447) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java :491) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java :351) ... 11 more Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.maven.plugins:maven-plugins' not found in repository: Unable to download the artifact from any repository org.apache.maven.plugins:maven-plugins:pom:2-SNAPSHOT from the specified remote repositories: codehaus.org (http://snapshots.repository.codehaus.org), central (http://repo1.maven.org/maven2) at
filtering web.xml with profile properties
I can't for the life of me figure out how to have the maven-war-plugin filter my web.xml with properties from my profiles. i've read this thread: http://www.nabble.com/War-plugin-and-filtering-webapp-files-t1617964.html and i've tried all the configuration options mentioned there--except providing the filter files. this thread seems to provide a solution if i want to have properties files as my filter source, but i want to have profiles, so i can take advantage of the inheritance of them to avoid having to redefine variables multiple times. this works fine for files in my webapp that aren't web.xml (i.e., those in src/main/resources). i was hoping that the solution to MWAR-41 would provide what i'm looking for, but it doesn't. does anybody have web.xml filtering with profile properties working? if so, can you post an example? thanks in advance... -- View this message in context: http://www.nabble.com/filtering-web.xml-with-profile-properties-tf2272626.html#a6309369 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs command from mojo gives error
I am trying to use the org.codehaus.plexus.util.cli.Commandline in a mojo to run a cvs status command (which isn't supported at the mo) the command looks correct on the log, and executes fine if I cut paste into a cvs command prompt, but via CommandLineUtils.executeCommandLine( cl, consumer, stderr ); I get this , any ideas ?? :- Executing: cvs -z3 -d :pserver:[EMAIL PROTECTED]:/data/cvsroot/myproject status -v pom.xml Working directory: D:\JavaProjects\myproject\myapplication_ear Unknown file status: '='. Unknown file status: 'F'. Unexpected input, the line must be at least three characters long. Line: ''. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unexpected input, the line must be at least three characters long. Line: ''. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unknown file status: ' '. Unexpected input, the line must be at least three characters long. Line: ''. command output is null - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Creating a FAQ with FML format
Hello, I've created a faq using the fml format, and I just can't get to display an xml example in the answer element. Here's what I'm trying to do: (skipping some elements) answer p some blablah /p pre lt;element1gt; ... lt;param1 value=value /gt; ... lt;/element1gt; /pre /answer When I render that using mvn site, everything goes well except for the gt; and lt; chars, which are not displayed. Any ideas? Thanks for your help! -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Update over scm-local does not delete files removed from source dir
Thanks for your answer, David. continuum-3 wrote: my Continuum installation is accessing a file system directory using scm-local provider to get sources (BTW, the directory is on a ClearCase dynamic view). Updates are working fine as long as files are only changed or added. But when files are removed from the source directory, they still exist in the target directory. Especially after refactoring activities, this leads to build errors. Make sure you are runnning clean goal in maven. When you do a clean it should delete this info from the target directories. And that will fix your problem. This is what I am doing. The problem is: My project source dir resides on a dynamic view on drive Z:\VOB\some\where. My Continuum working directory is e.g. D:\continuum-work\99. What Continuum does (with help of scm-local) is to copy all files from Z:\VOB\some\where to D:\continuum-work\99 before running the build. If someone removes an outdated class from ClearCase, it won't be on Z:\VOB\some\where any longer. As scm-local currently does not delete anything from the checkout directory, the outdated class will still be there at d:\continuum-work\99. The clean goal will only delete d:\continuum-work\99\target. BTW, you'll speed up your build if you get maven to put the target directories somewhere else, outside of the dynamic view, as dynamic views can be slow. Did you manage to let Continuum operate directly on a dynamic view, in my example on Z:\VOB\some\where, without copying to a working directory? Probably you are only talking about Maven stand-alone usage. Then, I agree, it is no problem, as long as you are running the clean goal. Regards, Arne -- View this message in context: http://www.nabble.com/Update-over-scm-local-does-not-delete-files-removed-from-source-dir-tf2257460.html#a6309477 Sent from the Continuum - Users forum at Nabble.com.
Re: EJB Client JAR
Configure you ejb plugin like this: build plugins plugin artifactIdmaven-ejb-plugin/artifactId inheritedtrue/inherited configuration archive manifest addClasspathtrue/addClasspath /manifest /archive generateClienttrue/generateClient /configuration /plugin /plugins /build then in you module where you have dependency of this ejb client jar : dependencies dependency groupIdyour_group_id/groupId artifactIddbserviceejb/artifactId version${version}/version typeejb-client/type /dependency /dependencies regards, Markku Markus KARG wrote: Actually I don't want to do that but I want to know and do the maven-ejb-plugin way. Nevertheless, thanks a lot! Markus [EMAIL PROTECTED] schrieb: Not necessarily the maven-ejb-plugin way, but you can create a separate module for the EJB client and then add a compile dependency on the that project in your EJB project's pom. We did this to get around the fact that using the generateClient option on the maven-ejb-plugin generates a pom for the client with way too many dependencies (includes all of the EJBs dependencies) and so that we could compile the EJB in 1.5 but compile the client under 1.4. -Original Message- From: Markus KARG [mailto:[EMAIL PROTECTED] Sent: Thursday, September 14, 2006 4:23 AM To: Maven Users List Subject: EJB Client JAR Using Maven2's ejb package, I was able to create an ejb-jar from my sources. But not I want Maven to create an EJB Client JAR, that only contains the interfaces, and make another JAR dependent of that EJB Client JAR (by means of Class-Path: entry in MANIFEST.MF). How to do that? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
where to set -D values in pom.xml
Hello. I have a multiple module project with one of the modules being the war file, the rest being jar files. When I check the project out, I want to run mvn eclipse:clean eclipse:eclipse on the top-level project so it will run the command for each sub-project. So far, so good. Except, in the last sub-project, which builds into a war file. For that one I want to run: mvn -Dwtpversion=1.0 eclipse:clean eclipse:eclipse. How do I do that? As in, is there somewhere in the pom.xml that I can add wtpversion=1.0 so that it will get picked up for that sub-project only? Thanks a lot. Charlie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
where to set -D values in pom.xml
Hello. I have a multiple module project with one of the modules being the war file, the rest being jar files. When I check the project out, I want to run mvn eclipse:clean eclipse:eclipse on the top-level project so it will run the command for each sub-project. So far, so good. Except, in the last sub-project, which builds into a war file. For that one I want to run: mvn -Dwtpversion=1.0 eclipse:clean eclipse:eclipse. How do I do that? As in, is there somewhere in the pom.xml that I can add wtpversion=1.0 so that it will get picked up for that sub-project only? Thanks a lot. Charlie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creating a FAQ with FML format
It is basically an xdoc doc, so use CDATA. See #9 here: http://jakarta.apache.org/site/jakarta-site2.html Quoting Sebastien Pennec [EMAIL PROTECTED]: Hello, I've created a faq using the fml format, and I just can't get to display an xml example in the answer element. Here's what I'm trying to do: (skipping some elements) answer p some blablah /p pre lt;element1gt; ... lt;param1 value=value /gt; ... lt;/element1gt; /pre /answer When I render that using mvn site, everything goes well except for the gt; and lt; chars, which are not displayed. Any ideas? Thanks for your help! -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - 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: Creating a FAQ with FML format
Hello Jeff, Thanks for your answer. However, when I do as said in the link, here's what gets printed: ![CDATA[ appender name=SOCKET class=ch.qos.logback.classic.net.SocketAppender ... param name=remoteHost value=127.0.0.1 / ... /appender ]] The CDATA part gets printed on my html page... Do you have any idea about what does wrong? Sébastien Jeff Jensen a écrit : It is basically an xdoc doc, so use CDATA. See #9 here: http://jakarta.apache.org/site/jakarta-site2.html Quoting Sebastien Pennec [EMAIL PROTECTED]: Hello, I've created a faq using the fml format, and I just can't get to display an xml example in the answer element. Here's what I'm trying to do: (skipping some elements) answer p some blablah /p pre lt;element1gt; ... lt;param1 value=value /gt; ... lt;/element1gt; /pre /answer When I render that using mvn site, everything goes well except for the gt; and lt; chars, which are not displayed. Any ideas? Thanks for your help! -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - 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] -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EJB Client JAR
Daryl, thanks a lot for your answer once again. Indeed we managed to let the ejb packager create the client jar and now understand why you have not been using it. Actually it is scary to see all the Class-Path entries in the client... Maybe we should file a feature request. Thanks again Markus [EMAIL PROTECTED] wrote: Not necessarily the maven-ejb-plugin way, but you can create a separate module for the EJB client and then add a compile dependency on the that project in your EJB project's pom. We did this to get around the fact that using the generateClient option on the maven-ejb-plugin generates a pom for the client with way too many dependencies (includes all of the EJBs dependencies) and so that we could compile the EJB in 1.5 but compile the client under 1.4. -Original Message- From: Markus KARG [mailto:[EMAIL PROTECTED] Sent: Thursday, September 14, 2006 4:23 AM To: Maven Users List Subject: EJB Client JAR Using Maven2's ejb package, I was able to create an ejb-jar from my sources. But not I want Maven to create an EJB Client JAR, that only contains the interfaces, and make another JAR dependent of that EJB Client JAR (by means of Class-Path: entry in MANIFEST.MF). How to do that? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Re: section
Hendrik and Franz, thanks a lot for your kind help! I indeed will try out tomorrow. But please one more question: How is the relationship between javadocs and pom structure? I did not yet understand how I can guess from the javadocs to the pom structure actually. Thanks a lot! Markus Hendrik Busch wrote: Hi! Franz, are you joking? Do you see any section tags on the URLs you posted? Maybe I am blind, but I don't see any, actually. The text may not mention it, but the JavaDocs show it. You have got to abstract a little from the example and the docs. Just make your POM look like this: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive indextrue/index manifest addClasspathtrue/addClasspath /manifest manifestSections manifestSection nameS1/name manifestEntries N1V1/N1 /manifestEntries /manifestSection /manifestSections /archive /configuration /plugin This will result in a manifest like this: Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven Built-By: hb Build-Jdk: 1.5.0_06 Class-Path: commons-lang-2.1.jar Name: S1 N1: V1 Enjoy! smime.p7s Description: S/MIME Cryptographic Signature
Re: EJB Client JAR
Markku, thanks a lot for your kind help! We will try out tomorrow! Thanks a lot Markus Markku Saarela wrote: Configure you ejb plugin like this: build plugins plugin artifactIdmaven-ejb-plugin/artifactId inheritedtrue/inherited configuration archive manifest addClasspathtrue/addClasspath /manifest /archive generateClienttrue/generateClient /configuration /plugin /plugins /build then in you module where you have dependency of this ejb client jar : dependencies dependency groupIdyour_group_id/groupId artifactIddbserviceejb/artifactId version${version}/version typeejb-client/type /dependency /dependencies regards, Markku Markus KARG wrote: Actually I don't want to do that but I want to know and do the maven-ejb-plugin way. Nevertheless, thanks a lot! Markus [EMAIL PROTECTED] schrieb: Not necessarily the maven-ejb-plugin way, but you can create a separate module for the EJB client and then add a compile dependency on the that project in your EJB project's pom. We did this to get around the fact that using the generateClient option on the maven-ejb-plugin generates a pom for the client with way too many dependencies (includes all of the EJBs dependencies) and so that we could compile the EJB in 1.5 but compile the client under 1.4. -Original Message- From: Markus KARG [mailto:[EMAIL PROTECTED] Sent: Thursday, September 14, 2006 4:23 AM To: Maven Users List Subject: EJB Client JAR Using Maven2's ejb package, I was able to create an ejb-jar from my sources. But not I want Maven to create an EJB Client JAR, that only contains the interfaces, and make another JAR dependent of that EJB Client JAR (by means of Class-Path: entry in MANIFEST.MF). How to do that? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Re: Creating a FAQ with FML format
On 9/14/06, Sebastien Pennec [EMAIL PROTECTED] wrote: I've created a faq using the fml format, and I just can't get to display an xml example in the answer element. I have the same problem: http://struts.apache.org/struts-sandbox/tiles/faq.html The JSP tags should be surrounded by but I can't get them to display. I have not yet checked to see if there's already an issue open for this. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WANTED: Suggestions on performing vendor-specific builds
I had looked at the profile documentation but obviously not close enough. I had originally thought that it would only allow me to set properties. Upone further inspection I see that I can also modify the modules list. My current solution, for those who might care, is to create a POM-based profile that controls the list of modules that will be built. The profiles are triggered off of the -D property specifying which container is targetted. Thanks for the suggestion. POM.xml snippet !-- Since we have platform-specific modules, we need to enumerate them using profiles that are triggered off of a system property-- profiles profile idWeblogic/id activation property nameplatform/name valueWLS/value /property /activation modules modulewls-specific/module modulepojo-one/module moduleejb-one/module moduleweb-one/module moduleear-one/module /modules /profile profile idWebSphere/id activation property nameplatform/name valueWAS/value /property /activation modules modulewas-specific/module modulepojo-one/module moduleejb-one/module moduleweb-one/module moduleear-one/module /modules /profile /profiles Alexander Sack-3 wrote: Ronald, I have a very similar setup in my projects where ANT was used based on an if clause. In fact I wound up actually using ant-contrib to give me if/else type logic to make the builds more readable. Have you looked into Maven2 style PROFILES? A profile allows you to define a number of configuration parameters based on some activation property (system property I think is currently the only thing supported) as well as a command line define, think -Dweblogic passed to mvn. Here is a pointer: http://maven.apache.org/guides/introduction/introduction-to-profiles.html -aps On 9/13/06, Ronald Kurr [EMAIL PROTECTED] wrote: I've been looking at Maven 2 as a replacement to a current ANT-based build system and I'm looking for ideas on how I might be able to translate one of the features it currently provides. The code base supports multiple J2EE containers. Sometimes we have to build two different versions of the same code with each version relying on vendor-specific APIs. Sometimes modules are built only when a certain vendor's container is targeted. We handle triggering of optional but vendor-specific modules via the if attribute of the target tag. For example, target name=do-websphere-only-module if=websphere ... /target We handle the triggering of mandatory but vendor-specific code by naming conventions and property values. For example, our source directories are layed out similar to this: source/java/neutral source/java/weblogic source/java/websphere When the ANT build is kicked off, a property is set to indicate the target platform: -Dvendor=weblogic. When then use the value of the property to construct the source path for that build: path id=compile.source.path pathelement location=source/java/neutral/ pathelement location=source/java/${vendor}/ /path This allows us to only include the correct vendor-specific source during the build. We use a similar technique when building out the classpath which contains vendor-specific libraries. I'm trying to figure out how I might achieve similar functionality under Maven 2 and could use some suggestions. My first idea was to house the mandatory but vendor-specific code in their own modules and use a naming convention coupled with a property to control which module gets invoked by the parent module. For example, module names: mandatory-webshere/ mandatory-weblogic/ mandatory-jboss/ parent POM: modules modulemandatory-${vendor}/module modulepojo-one/module moduleejb-one/module moduleweb-one/module moduleear-one/module /modules That seems to work but I'm open to other ideas. What I haven't been able to figure out is how to configure the only build this module if the target is Webshere logic. Any ideas are appreciated. I'd like to avoid having to drop down to ANT using the maven-antrun-plugin or writing a custom plugin but I'll try whatever suggestions are provided. Many Thanks, Ron -- What lies behind us and what lies in front of us is of little concern to what lies within us. -Ralph Waldo Emerson -- View this message in context: http://www.nabble.com/WANTED%3A-Suggestions-on-performing-vendor-specific-builds-tf2265358.html#a6310402 Sent from the Maven - Users forum at Nabble.com.
Running mvn at any level of a multi-level project while still using inheritance
Hi: I am new to Maven so this issue is probably due to a misunderstanding on my part so any help would be greatly appreciated. I have a multi-level project structure (4 levels) i.e. applications-- common -- server -- project 1 ... -- project n -- client -- project 1 ... -- project m Each project (lowest level) produces a jar file so the packaging in each of their pom files is set to jar. There is a pom file at each level whose packaging is set to pom so that I can inherit settings and plugins at each level from the level above. Everything works fine when I am at the project (i.e. lowest) level in my tree. If however, I am at, say the server level (one level up from the project level) and I want to do a 'mvn package' to package all of the projects underneath I get the following error message: GroupId: applications ArtifactId: common Version: 1.0-SNAPSHOT Reason: Unable to download the artifact from any repository applications:common:pom:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) [INFO] [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Cannot find parent: applications:common for project: applications.common:server:pom:1.0-SNAPSHOT at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl. java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) This kind of makes sense, since the packaging for the pom file at this level is not going to create anything to be placed in the repository, or does it? How can I achieve what I am trying to do? i.e while at any level be able to run mvn on all levels underneath when the pom at the level I'm working at has a parent? In my first iteration I only had 2 levels and I was able to run mvn at the top level for the level underneath. Thanks in advance for any help of references to examples of what I am trying to do. Tom. Tom Hurley Senior Lead Developer Insighful Corp 1700 Westlake Ave N., #500 Seattle, WA 98109 (Work): 206-283-8802 x369 (Fax): 206-283-8691 (Cell): 206-661-6930
Re: Creating a FAQ with FML format
Did you wrap it in the source tags? Quoting Sebastien Pennec [EMAIL PROTECTED]: Hello Jeff, Thanks for your answer. However, when I do as said in the link, here's what gets printed: ![CDATA[ appender name=SOCKET class=ch.qos.logback.classic.net.SocketAppender ... param name=remoteHost value=127.0.0.1 / ... /appender ]] The CDATA part gets printed on my html page... Do you have any idea about what does wrong? Sébastien Jeff Jensen a écrit : It is basically an xdoc doc, so use CDATA. See #9 here: http://jakarta.apache.org/site/jakarta-site2.html Quoting Sebastien Pennec [EMAIL PROTECTED]: Hello, I've created a faq using the fml format, and I just can't get to display an xml example in the answer element. Here's what I'm trying to do: (skipping some elements) answer p some blablah /p pre lt;element1gt; ... lt;param1 value=value /gt; ... lt;/element1gt; /pre /answer When I render that using mvn site, everything goes well except for the gt; and lt; chars, which are not displayed. Any ideas? Thanks for your help! -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - 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] -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - 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: where to set -D values in pom.xml
You have to place plugin artifactIdmaven-eclipse-plugin/artifactId configuration wtpversion1.0/wtpversion /configuration /plugin in your pom in the build section. Sylvain On 9/14/06, Charles Harvey III [EMAIL PROTECTED] wrote: Hello. I have a multiple module project with one of the modules being the war file, the rest being jar files. When I check the project out, I want to run mvn eclipse:clean eclipse:eclipse on the top-level project so it will run the command for each sub-project. So far, so good. Except, in the last sub-project, which builds into a war file. For that one I want to run: mvn -Dwtpversion=1.0 eclipse:clean eclipse:eclipse. How do I do that? As in, is there somewhere in the pom.xml that I can add wtpversion=1.0 so that it will get picked up for that sub-project only? Thanks a lot. Charlie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creating a FAQ with FML format
Yes, just like your example mentionned. Finally, I got to display the wanted chars by doing this: source foo bar /foo /source Actually, I just used source elements and put the xml in, without coding the and chars, and without using the CDATA part. Thanks for the info :) Sébastien Jeff Jensen a écrit : Did you wrap it in the source tags? Quoting Sebastien Pennec [EMAIL PROTECTED]: Hello Jeff, Thanks for your answer. However, when I do as said in the link, here's what gets printed: ![CDATA[ appender name=SOCKET class=ch.qos.logback.classic.net.SocketAppender ... param name=remoteHost value=127.0.0.1 / ... /appender ]] The CDATA part gets printed on my html page... Do you have any idea about what does wrong? Sébastien Jeff Jensen a écrit : It is basically an xdoc doc, so use CDATA. See #9 here: http://jakarta.apache.org/site/jakarta-site2.html Quoting Sebastien Pennec [EMAIL PROTECTED]: Hello, I've created a faq using the fml format, and I just can't get to display an xml example in the answer element. Here's what I'm trying to do: (skipping some elements) answer p some blablah /p pre lt;element1gt; ... lt;param1 value=value /gt; ... lt;/element1gt; /pre /answer When I render that using mvn site, everything goes well except for the gt; and lt; chars, which are not displayed. Any ideas? Thanks for your help! -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - 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] -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - 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] -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: where to set -D values in pom.xml
Spectacular. Thanks so much. Charlie Fneuch said the following on 9/14/2006 1:37 PM: You have to place plugin artifactIdmaven-eclipse-plugin/artifactId configuration wtpversion1.0/wtpversion /configuration /plugin in your pom in the build section. Sylvain On 9/14/06, Charles Harvey III [EMAIL PROTECTED] wrote: Hello. I have a multiple module project with one of the modules being the war file, the rest being jar files. When I check the project out, I want to run mvn eclipse:clean eclipse:eclipse on the top-level project so it will run the command for each sub-project. So far, so good. Except, in the last sub-project, which builds into a war file. For that one I want to run: mvn -Dwtpversion=1.0 eclipse:clean eclipse:eclipse. How do I do that? As in, is there somewhere in the pom.xml that I can add wtpversion=1.0 so that it will get picked up for that sub-project only? Thanks a lot. Charlie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Company-wide Maven repo
Hi folks, Could anyone recommend software for implementing/installing a company-wide Maven repository? maven-proxy? proximity? Pros and contras? I'd be grateful for your opinions. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wagon providers and webdav
Is there a more recent version of the Wagon Providers site documentation than http://maven.apache.org/wagon/ ? That site appears to be very under-maintained, with the project team members curiously unavailable. Michal Maczka appears to no longer have the email address listed in the site docs. This could just be documentation oversight. I need to get the webdav wagon to implement NTLM authentication, and I have a scheme for doing that but I don't know who to contact for more information about how to implement it. Mykel
RE: Wagon providers and webdav
I assume you've tried emailing the wagon-dev list. There's very little traffic there, so no response there wouldn't be too surprising. I would suggest emailing the maven-dev list and discussing it there. In general, emailing individual contributors and committers won't get you very far. All design and development must be discussed via the dev lists, IRC and other public avenues. -Nathan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mykel Alvis Sent: Thursday, September 14, 2006 1:39 PM To: Maven Users List Subject: Wagon providers and webdav Is there a more recent version of the Wagon Providers site documentation than http://maven.apache.org/wagon/ ? That site appears to be very under-maintained, with the project team members curiously unavailable. Michal Maczka appears to no longer have the email address listed in the site docs. This could just be documentation oversight. I need to get the webdav wagon to implement NTLM authentication, and I have a scheme for doing that but I don't know who to contact for more information about how to implement it. Mykel - CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wagon providers and webdav
Actually, when I clicked the mailing lists, I got a broken page link and assumed it was actually broken, when it was probably just my internet connection hiccuping . That was my mistake, but you clearly don't think it's likely to get good results. I will try anyway, and at the risk of the wrath of the list members, I'll cross-post onto the dev lists. Thanks! On 9/14/06, Beyer,Nathan [EMAIL PROTECTED] wrote: I assume you've tried emailing the wagon-dev list. There's very little traffic there, so no response there wouldn't be too surprising. I would suggest emailing the maven-dev list and discussing it there. In general, emailing individual contributors and committers won't get you very far. All design and development must be discussed via the dev lists, IRC and other public avenues.
Re: Company-wide Maven repo
Hi, it depends on Your needs... Maven-proxy is a dead meat :) You left Archiva out from the list (http://maven.apache.org/archiva/) Proximity is mere a smart and simple proxy and tool to host reposes. It is extended to recognize Maven metadata (POMs, etc). It gives you useful funcs like exhaustive searching, browsing repo, browsing artifacts, sneak peak into a zip/jar/war/etc files, webdav deployment, tagging files, etc. Remember, Proximity is mere a Proxy/repo host and not a repo manager! It handles _files_ and not artifacts, but it is enough to maven to operate properly through it. Archiva is a fully blown repository manager (former Maven Repository Manager). It handles artifacts and not files. It have pluses: it is able to sync reposes -- Proximity is currently unable to do it. It have repo health reports, that Proximity will never have (unless I made some archiva-reports-adapter...). Latest stable of Proximity is RC4.2, while Archiva is still unstable. Have fun, ~t~ On 9/14/06, Aleksei Valikov [EMAIL PROTECTED] wrote: Hi folks, Could anyone recommend software for implementing/installing a company-wide Maven repository? maven-proxy? proximity? Pros and contras? I'd be grateful for your opinions. Bye. /lexi - 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: EJB Client JAR
One other concern would be that in general, the EJB client generation from the same EJB module violates Maven's principle of one artifact per project/module. As I understand it today, the only benefit of using it is that it will generate a separate JAR file in the repo that can be referenced by a client as an EJB client dependency and that you can selectively filter out classes (bean classes, etc.) from the client jar (but not dependencies carried over from the EJB or any of its transitive dependencies). -Daryl -Original Message- From: Markus KARG [mailto:[EMAIL PROTECTED] Sent: Thursday, September 14, 2006 11:51 AM To: Maven Users List Cc: [EMAIL PROTECTED] Subject: Re: EJB Client JAR Daryl, thanks a lot for your answer once again. Indeed we managed to let the ejb packager create the client jar and now understand why you have not been using it. Actually it is scary to see all the Class-Path entries in the client... Maybe we should file a feature request. Thanks again Markus [EMAIL PROTECTED] wrote: Not necessarily the maven-ejb-plugin way, but you can create a separate module for the EJB client and then add a compile dependency on the that project in your EJB project's pom. We did this to get around the fact that using the generateClient option on the maven-ejb-plugin generates a pom for the client with way too many dependencies (includes all of the EJBs dependencies) and so that we could compile the EJB in 1.5 but compile the client under 1.4. -Original Message- From: Markus KARG [mailto:[EMAIL PROTECTED] Sent: Thursday, September 14, 2006 4:23 AM To: Maven Users List Subject: EJB Client JAR Using Maven2's ejb package, I was able to create an ejb-jar from my sources. But not I want Maven to create an EJB Client JAR, that only contains the interfaces, and make another JAR dependent of that EJB Client JAR (by means of Class-Path: entry in MANIFEST.MF). How to do that? - 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: EJB Client JAR
Markus, No problem. I think because of transitive dependencies, the only way they could make it work would be to qualify the dependencies which would introduce problems elsewhere. Even if the plugin did provide this feature, unfortunately for me, I don't think it would be able to accommodate my team's requirement for compiling the client at a different JRE target level, though. -Daryl -Original Message- From: Markus KARG [mailto:[EMAIL PROTECTED] Sent: Thursday, September 14, 2006 11:51 AM To: Maven Users List Cc: [EMAIL PROTECTED] Subject: Re: EJB Client JAR Daryl, thanks a lot for your answer once again. Indeed we managed to let the ejb packager create the client jar and now understand why you have not been using it. Actually it is scary to see all the Class-Path entries in the client... Maybe we should file a feature request. Thanks again Markus [EMAIL PROTECTED] wrote: Not necessarily the maven-ejb-plugin way, but you can create a separate module for the EJB client and then add a compile dependency on the that project in your EJB project's pom. We did this to get around the fact that using the generateClient option on the maven-ejb-plugin generates a pom for the client with way too many dependencies (includes all of the EJBs dependencies) and so that we could compile the EJB in 1.5 but compile the client under 1.4. -Original Message- From: Markus KARG [mailto:[EMAIL PROTECTED] Sent: Thursday, September 14, 2006 4:23 AM To: Maven Users List Subject: EJB Client JAR Using Maven2's ejb package, I was able to create an ejb-jar from my sources. But not I want Maven to create an EJB Client JAR, that only contains the interfaces, and make another JAR dependent of that EJB Client JAR (by means of Class-Path: entry in MANIFEST.MF). How to do that? - 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: EJB Client JAR
And you can config this ejb client jar with |clientExcludes parameter in |maven-ejb-plugin as documented here: http://maven.apache.org/plugins/maven-ejb-plugin/ejb-mojo.html Regards, Markku Markus KARG wrote: Markku, thanks a lot for your kind help! We will try out tomorrow! Thanks a lot Markus Markku Saarela wrote: Configure you ejb plugin like this: build plugins plugin artifactIdmaven-ejb-plugin/artifactId inheritedtrue/inherited configuration archive manifest addClasspathtrue/addClasspath /manifest /archive generateClienttrue/generateClient /configuration /plugin /plugins /build then in you module where you have dependency of this ejb client jar : dependencies dependency groupIdyour_group_id/groupId artifactIddbserviceejb/artifactId version${version}/version typeejb-client/type /dependency /dependencies regards, Markku Markus KARG wrote: Actually I don't want to do that but I want to know and do the maven-ejb-plugin way. Nevertheless, thanks a lot! Markus [EMAIL PROTECTED] schrieb: Not necessarily the maven-ejb-plugin way, but you can create a separate module for the EJB client and then add a compile dependency on the that project in your EJB project's pom. We did this to get around the fact that using the generateClient option on the maven-ejb-plugin generates a pom for the client with way too many dependencies (includes all of the EJBs dependencies) and so that we could compile the EJB in 1.5 but compile the client under 1.4. -Original Message- From: Markus KARG [mailto:[EMAIL PROTECTED] Sent: Thursday, September 14, 2006 4:23 AM To: Maven Users List Subject: EJB Client JAR Using Maven2's ejb package, I was able to create an ejb-jar from my sources. But not I want Maven to create an EJB Client JAR, that only contains the interfaces, and make another JAR dependent of that EJB Client JAR (by means of Class-Path: entry in MANIFEST.MF). How to do that? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dependency-maven-plugin question
Hi all, I m currently migrating from Ant 1.6.5 to Maven 2.0.4 a project with multiple modules as follow : Project root path (pom.xml with each subdirectory as module) | |--- applet |--- sharedlib |--- ejbmodule-jar |--- webapp1-war |--- webapp2-war |--- finalpackage-ear |... With the help of Geoffrey (thanks [EMAIL PROTECTED] mailing-list) I used the plugin dependency-maven-plugin from Mojo to compile the applet and then copy it in a webapp. Here's a part of the pom.xml of webapp1: ... plugin groupIdorg.codehaus.mojo/groupId artifactIddependency-maven-plugin/artifactId executions execution idcopy-applet/id phaseprocess-resources/phase goals goalcopy/goal /goals configuration artifactItems artifactItem artifactIdappletplayer/artifactId groupIdcom.test/groupId version2.0/version typejar/type /artifactItem /artifactItems outputDirectory./target/webapp1/applet/outputDirectory stripVersiontrue/stripVersion /configuration /execution /executions /plugin ... To build the all, I always typed mvn package from the project root directory ... but since the dependency-maven-plugin, I must install the applet module with typing mvn install ... if not, Maven try to download the package from the repositories... Other issue, sharedlib.jar module is defined as a dependency for the webapp1-war module and then put in the WEB-INF/lib directory of the war package. But for this it's work without installing the sharedlib in the local repository... My questions are: With my comprehension of Maven, I don't have to install a module of my project in the local respository... isn't it? Or is my comprehension wrong? ... or perhaps I m using the plugin wrong? or... have you another solution to use the command mvn package and build my project to get a marvelous ear file and deploy it on my server? Thanks in advance for any helps! Regards, ML - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Macker plugin
Hello, Does anyone have an example on how to use Macker plugin? thanks in advance, Fabricio Lemos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Update over scm-local does not delete files removed from source dir
What Continuum does (with help of scm-local) is to copy all files from Z:\VOB\some\where to D:\continuum-work\99 before running the build. If someone removes an outdated class from ClearCase, it won't be on Z:\VOB\some\where any longer. Is there a reason you can't use a snapshot view? It deals with copying the files to your C: drive for you, _and_ it deletes the old ones too. Did you manage to let Continuum operate directly on a dynamic view, in my example on Z:\VOB\some\where, without copying to a working directory? Probably you are only talking about Maven stand-alone usage. Then, I agree, it is no problem, as long as you are running the clean goal. I've not tried. I've done a manual maven build on a dynamic view and it took 43 minutes, compared to 2 minutes on my snapshot view. Bit that's mainly because my clearcase server is in another country, and behind a firewall. Don't ask! I's a latency nightnare! David
Re: 2.0.5 release?
On 9/14/06, John Taylor [EMAIL PROTECTED] wrote: Hi all, Apologies for what is probably a FAQ, but can anyone give me an approx timescale for the 2.0.5 release? I haven't followed closely lately but I would say 'When it's done'. Just knowing whether it's imminent, weeks or months away would help me decide whether to invest in finding workarounds to some of the issues in 2.0.4. THere were about 180 issues targeted to it last time I checked. So probably not tomorrow nor in the next weeks. I'm really hoping that 2.0.5 will fix the problems with site deployment, particularly http://jira.codehaus.org/browse/MSITE-138 and http://jira.codehaus.org/browse/MSITE-25 (a real problem for windows users). You will probably have to find work-arounds. Such as - backport the plugin patches - or use maven 2.0.5-snapshot - or fix maven 2.0.5 issues to help fasten the release :) Cheers, Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2.0.5 release?
Plugin changes are rarely related to the base Maven version, so you'd be better tracking the progress of specific ones. Cheers, Brett On 15/09/06, jerome lacoste [EMAIL PROTECTED] wrote: On 9/14/06, John Taylor [EMAIL PROTECTED] wrote: Hi all, Apologies for what is probably a FAQ, but can anyone give me an approx timescale for the 2.0.5 release? I haven't followed closely lately but I would say 'When it's done'. Just knowing whether it's imminent, weeks or months away would help me decide whether to invest in finding workarounds to some of the issues in 2.0.4. THere were about 180 issues targeted to it last time I checked. So probably not tomorrow nor in the next weeks. I'm really hoping that 2.0.5 will fix the problems with site deployment, particularly http://jira.codehaus.org/browse/MSITE-138 and http://jira.codehaus.org/browse/MSITE-25 (a real problem for windows users). You will probably have to find work-arounds. Such as - backport the plugin patches - or use maven 2.0.5-snapshot - or fix maven 2.0.5 issues to help fasten the release :) Cheers, Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Apache Maven - http://maven.apache.org Better Builds with Maven book - http://library.mergere.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Overriding plugin's default phase/goal associations
I'm trying to figure out if it is even possible to override a plugin's default phase/goal associations. I'm basically working on a war project. What I'd ultimately like to do is change what maven-war-plugin's goals are called during the package lifecycle under different profiles. Without a profile specified, I want to do a war:inplace because we have tomcat installed locally. Under the env-qa profile, I'd like the package lifecycle to do a war:war (and then additionally call tomcat:redeploy, but it's beyond the scope of my current question). When I look inside the maven-war-plugin.jar's plugin.xml file I see that it binds both it's war:exploded and war:war goals to the package lifecycle. I'd like to turn that off. Is it possible? Also, for additional consideration, do I need to do something different if I put this into a parent pom shared by multiple projects? Thanks for any help or pointers you could provide. Greg Vaughn [EMAIL PROTECTED] == Confidentiality Notice: The information contained in and transmitted with this communication is strictly confidential, is intended only for the use of the intended recipient, and is the property of Countrywide Financial Corporation or its affiliates and subsidiaries. If you are not the intended recipient, you are hereby notified that any use of the information contained in or transmitted with the communication or dissemination, distribution, or copying of this communication is strictly prohibited by law. If you have received this communication in error, please immediately return this communication to the sender and delete the original message and any copy of it in your possession. ==
[m204] cobertura issue
I have a main project with several sub modules and my main project has no class files in it. I am now getting an error where c:\opt\npi\target\classes does not exists, and it will not exists either. How can I have cobertura run on just my sub modules that I describe? Here is my master pom.xml declarations: pluginManagement plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId version2.0/version configuration instrumentation ignores ignorecom.example.boringcode.*/ignore /ignores excludes excludecom/example/dullcode/**/*.class/exclude excludecom/**/*Test.class/exclude /excludes /instrumentation !--check branchrate=80 linerate=70 haltonerror=true totalbranchrate=80 totallinerate=70 regex pattern=com.* branchrate=80 linerate=90/ regex pattern=com.* branchrate=40 linerate=30/ /check-- /configuration executions execution goals goalclean/goal /goals /execution /executions /plugin ... /pluginManagement reporting plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId /plugin .. Here is the error I get: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Unable to prepare instrumentation directory. Embedded error: Source directory doesn't exists (c:\opt\npi\target\classes). [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Unable to prepare instrumentation directory. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle( DefaultLifecycleExecutor.java:891) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle (DefaultLifecycleExecutor.java:734) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:525) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal( DefaultLifecycleExecutor.java:488) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java :315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java :430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to prepare instrumentation directory. at org.codehaus.mojo.cobertura.CoberturaInstrumentMojo.execute( CoberturaInstrumentMojo.java:89) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:534) ... 20 more Caused by: java.io.IOException: Source directory doesn't exists (c:\opt\npi\target\classes). at org.codehaus.plexus.util.FileUtils.copyDirectoryStructure( FileUtils.java:1465) at
[m2] hsql plugin, integration testing
Hi all, I've been looking around and couldn't find anything relevant so here is my question: Is there a HSQLDB plugin for maven that would allow to start/stop the db, and maybe even more... I was thinking that if such a plugin exists I could manage to make the DB start before the unit tests and stop at the end of those. I believe this should be possible using some plugin configuration in m2, right? It would make life easier for integration testing, as I wouldn't have to start/stop my HSQLDB on the side... How are you guys dealing with this kind of issue? Thanks in advance, SaM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m204] cobertura issue
So how can I ignore the modules that do not have a classes dir??? Embedded error: Source directory doesn't exists (c:\opt\npi\common\target\classes). On 9/14/06, Mick Knutson [EMAIL PROTECTED] wrote: I have a main project with several sub modules and my main project has no class files in it. I am now getting an error where c:\opt\npi\target\classes does not exists, and it will not exists either. How can I have cobertura run on just my sub modules that I describe? Here is my master pom.xml declarations: pluginManagement plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId version2.0/version configuration instrumentation ignores ignore com.example.boringcode.*/ignore /ignores excludes excludecom/example/dullcode/**/*.class/exclude excludecom/**/*Test.class/exclude /excludes /instrumentation !--check branchrate=80 linerate=70 haltonerror=true totalbranchrate=80 totallinerate=70 regex pattern=com.* branchrate=80 linerate=90/ regex pattern=com.* branchrate=40 linerate=30/ /check-- /configuration executions execution goals goalclean/goal /goals /execution /executions /plugin ... /pluginManagement reporting plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId /plugin .. Here is the error I get: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Unable to prepare instrumentation directory. Embedded error: Source directory doesn't exists (c:\opt\npi\target\classes). [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException : Unable to prepare instrumentation directory. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle( DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle( DefaultLifecycleExecutor.java:891) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle ( DefaultLifecycleExecutor.java:734) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:525) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal( DefaultLifecycleExecutor.java:488) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal (DefaultLifecycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures( DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute ( DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main (MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke ( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java :315) at org.codehaus.classworlds.Launcher.launch (Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode( Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException : Unable to prepare instrumentation directory. at org.codehaus.mojo.cobertura.CoberturaInstrumentMojo.execute( CoberturaInstrumentMojo.java:89) at org.apache.maven.plugin.DefaultPluginManager.executeMojo ( DefaultPluginManager.java:412) at
Fwd: Repository not found
-- Forwarded message -- From: Riaz uddin [EMAIL PROTECTED] Date: Sep 14, 2006 11:52 AM Subject: Repository not found To: users@maven.apache.org I am totally new to Maven. I recently downloaded Maven and tried the installation. In the command prompt when I enter 'mvn --version', the maven version number is displayed but I dont find any repository in the user directory, what is happening? Please help. Joe
Re: Repository not found
No repository is created until you specify a goal that has dependencies that are unavailable in your (non-existant) repository. Do a mvn clean instead. Somethings should get downloaded into $HOME/.m2/repository at that point. On 9/14/06, Riaz uddin [EMAIL PROTECTED] wrote: I am totally new to Maven. I recently downloaded Maven and tried the installation. In the command prompt when I enter 'mvn --version', the maven version number is displayed but I dont find any repository in the user directory, what is happening? Please help. Joe -- I'm just an unfrozen caveman software developer. I don't understand your strange, modern ways.
[m204] How do I stage and deploy a site to a directory on my workstation?
mvn site:stage-deploy -DstagingDirectory=C:\fullsite \ -DstagingSiteURL=file://fullsite / -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson
Repository not found
I am totally new to Maven. I recently downloaded Maven and tried the installation. In the command prompt when I enter 'mvn --version', the maven version number is displayed but I dont find any repository in the user directory, what is happening? Please help. Joe
RE: Company-wide Maven repo
Maven-proxy may be dead, but version 0.2 does work fairly well as a simple central repository mirror. I've had a single instance of it running on Tomcat 5.5.17 and Sun JDK 5.0_7 for over 30 days with no maintenance. Additionally, I front Tomcat with Apache HTTPD 2.2.3 and use the proxy mod to pass all requests to Tomcat via AJP. What I would suggest though, whatever you do, make sure you setup a fixed URL to abstract everyone from the actual solution. For example, setup an HTTP server with a URL http://myserver/central/repo/ and redirect/proxy/forward requests to the actual proxy solution. If what you're looking for is more than just a central repository mirror, then I would suggest just using Apache HTTPD in combination with the webdav mod for deployments. There are a few quirks with wagon-webdav right now, but it workable and once a new version is released, much of this will be fixed. Also, in case you didn't get my intimation, a maven repository for your code should be separate and distinct from any proxy/mirror of the central repository. This will mean that your POMs must have specifically configured repositories, but that's a good thing as it will make your builds transparent and descriptive. -Nathan -Original Message- From: Tamás Cservenák [mailto:[EMAIL PROTECTED] Sent: Thursday, September 14, 2006 2:26 PM To: Maven Users List Subject: Re: Company-wide Maven repo Hi, it depends on Your needs... Maven-proxy is a dead meat :) You left Archiva out from the list (http://maven.apache.org/archiva/) Proximity is mere a smart and simple proxy and tool to host reposes. It is extended to recognize Maven metadata (POMs, etc). It gives you useful funcs like exhaustive searching, browsing repo, browsing artifacts, sneak peak into a zip/jar/war/etc files, webdav deployment, tagging files, etc. Remember, Proximity is mere a Proxy/repo host and not a repo manager! It handles _files_ and not artifacts, but it is enough to maven to operate properly through it. Archiva is a fully blown repository manager (former Maven Repository Manager). It handles artifacts and not files. It have pluses: it is able to sync reposes -- Proximity is currently unable to do it. It have repo health reports, that Proximity will never have (unless I made some archiva-reports-adapter...). Latest stable of Proximity is RC4.2, while Archiva is still unstable. Have fun, ~t~ On 9/14/06, Aleksei Valikov [EMAIL PROTECTED] wrote: Hi folks, Could anyone recommend software for implementing/installing a company-wide Maven repository? maven-proxy? proximity? Pros and contras? I'd be grateful for your opinions. Bye. /lexi - 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] - CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Company-wide Maven repo
On 9/15/06, Aleksei Valikov [EMAIL PROTECTED] wrote: Hi folks, Could anyone recommend software for implementing/installing a company-wide Maven repository? maven-proxy? proximity? Pros and contras? I'd be grateful for your opinions. As people have already said your choices at this stage are a little immature. However you can get stuff working in a good enough fashion for now. I wrote up the steps I took at http://docs.codehaus.org/display/MAVENUSER/Using+Maven+in+a+corporate+environment - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: where to set -D values in pom.xml
Charles Harvey III wrote: Hello. I have a multiple module project with one of the modules being the war file, the rest being jar files. When I check the project out, I want to run mvn eclipse:clean eclipse:eclipse on the top-level project so it will run the command for each sub-project. So far, so good. Except, in the last sub-project, which builds into a war file. For that one I want to run: mvn -Dwtpversion=1.0 eclipse:clean eclipse:eclipse. How do I do that? As in, is there somewhere in the pom.xml that I can add wtpversion=1.0 so that it will get picked up for that sub-project only? Thanks a lot. Charlie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Good day to you, Charles, Try putting in project [...] build [...] plugins [...] plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId configuration wtpversion1.0/wtpversion /configuration /plugin [...] /plugins [...] /build [...] /project in your pom.xml. And regarding your title: Those -D values (expressions) have corresponding parameter names. In your pom, these parameters are usually configured within build plugins plugin [...] configuration !-- parameters-- /configuration /plugin /plugins /build Not all maven plugins though are configured within the configuration tag (i.e. resources )...but nonetheless, most of them do ^_^ Btw, you may want to take a look at [1] for more information regarding maven-eclipse-plugin. It's an unreleased plugin documentation and it's still being reviewed. Please feel free to give your comments about it so that we can revise it. Thanks, Franz [1] http://people.apache.org/~epunzalan/maven-eclipse-plugin/eclipse-mojo.html#wtpversion -- View this message in context: http://www.nabble.com/where-to-set-%22-D%22-values-in-pom.xml-tf2272715.html#a6317015 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Regular Expressions using Awk
Hi, in a Mojo I am writing, I want to select all the directories which satisfy **/src, so that if there are 3 dircetories and only 2 of them have a src, then I should only select those two. a/resources b/src c/src Should only select b and c. I am using AwkFilenameFilter like this and I don't know what is wrong with the following regular expression p. May someone please help me? Thanks. String p = new String(^(.*)(.*)\\src$); FilenameFilter f = new AwkFilenameFilter(p); This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
Re: Building maven-plugins project
Matt Raible-3 wrote: On 9/14/06, Matt Raible [EMAIL PROTECTED] wrote: We've developed a warpath plugin[1] that allows you to read dependencies from a war dependency. It works great, but we're currently unable to hook into the eclipse or idea plugin for project file generation. There's two thoughts I have to solving this: 1. Modify any typewar/type dependencies to be typejar/type during the process-resources phase. This doesn't seem to work, and even if we got it to work with the IDE plugins, I'm guessing it might clobber the war-overlay feature. 2. Modify the eclipse/idea/netbeans plugins to detect if maven-warpath-plugin exists, and if it does, treat WARs as JARs. Obviously, #2 is more work, but #1 doesn't seem to work. Any suggestions? Thanks, Matt [1] http://www.nabble.com/Re%3A-Maven-2-issues-for-Appfuse-2-p6125909s2369.html Download source at http://static.appfuse.org/downloads/maven-warpath-plugin-20060905.zip Sorry, forgot to finish my message and make the subject match my e-mail. ;-) Since I couldn't get #1 to work, I'm going to take a (reluctant) stab at #2. I tried to checkout the maven-plugins project using: svn co http://svn.apache.org/repos/asf/maven/plugins/trunk maven-plugins This worked just fine - but when I tried to build it, I get the error below. Do I have to download a higher-level project to build maven-plugins? 226:~/dev/maven-plugins mraible$ mvn [INFO] Scanning for projects... Downloading: http://snapshots.repository.codehaus.org/org/apache/maven/plugins/maven-plugins/2-SNAPSHOT/maven-plugins-2-SNAPSHOT.pom [WARNING] Unable to get resource from repository codehaus.org (http://snapshots.repository.codehaus.org) [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.maven.plugins ArtifactId: maven-plugins Version: 2-SNAPSHOT Reason: Unable to download the artifact from any repository org.apache.maven.plugins:maven-plugins:pom:2-SNAPSHOT from the specified remote repositories: codehaus.org (http://snapshots.repository.codehaus.org), central (http://repo1.maven.org/maven2) [INFO] [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.apache.maven.plugins:maven-plugins for project: null:maven-assembly-plugin:maven-plugin:2.2-SNAPSHOT at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: org.apache.maven.plugins:maven-plugins for project: null:maven-assembly-plugin:maven-plugin:2.2-SNAPSHOT at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1161) at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:674) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:416) at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:192) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:515) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:447) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:491) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:351) ... 11 more Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.maven.plugins:maven-plugins' not found in repository: Unable to download the artifact from any repository org.apache.maven.plugins:maven-plugins:pom:2-SNAPSHOT from the specified remote repositories: codehaus.org (http://snapshots.repository.codehaus.org), central (http://repo1.maven.org/maven2) at
Re: filtering web.xml with profile properties
ertnutler wrote: I can't for the life of me figure out how to have the maven-war-plugin filter my web.xml with properties from my profiles. i've read this thread: http://www.nabble.com/War-plugin-and-filtering-webapp-files-t1617964.html and i've tried all the configuration options mentioned there--except providing the filter files. this thread seems to provide a solution if i want to have properties files as my filter source, but i want to have profiles, so i can take advantage of the inheritance of them to avoid having to redefine variables multiple times. this works fine for files in my webapp that aren't web.xml (i.e., those in src/main/resources). i was hoping that the solution to MWAR-41 would provide what i'm looking for, but it doesn't. does anybody have web.xml filtering with profile properties working? if so, can you post an example? thanks in advance... Good day to you, ertnutler, Try creating a property file and have your pom reference that. If the filtering suddenly works, then what you're experiencing is a bug (see [1]). Cheers, Franz [1] http://jira.codehaus.org/browse/MWAR-67 -- View this message in context: http://www.nabble.com/filtering-web.xml-with-profile-properties-tf2272626.html#a6317667 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Regular Expressions using Awk
Perhaps use a forward slash ('/') not \\? So String p = new String(^(.*)(.*)/src$); instead of String p = new String(^(.*)(.*)\\src$); Cheers, Hilco On 9/14/06, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED] wrote: Hi, in a Mojo I am writing, I want to select all the directories which satisfy **/src, so that if there are 3 dircetories and only 2 of them have a src, then I should only select those two. a/resources b/src c/src Should only select b and c. I am using AwkFilenameFilter like this and I don't know what is wrong with the following regular expression p. May someone please help me? Thanks. String p = new String(^(.*)(.*)\\src$); FilenameFilter f = new AwkFilenameFilter(p); This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fwd: Repository not found
Hi Riaz, The repository will be created when you perform bootstrap (if you've checked out maven source from svn), or when you start building a project (if you've just installed maven). That's when your local repo will be created. Hope this helps :) Thanks, Odea Riaz uddin wrote: -- Forwarded message -- From: Riaz uddin [EMAIL PROTECTED] Date: Sep 14, 2006 11:52 AM Subject: Repository not found To: users@maven.apache.org I am totally new to Maven. I recently downloaded Maven and tried the installation. In the command prompt when I enter 'mvn --version', the maven version number is displayed but I dont find any repository in the user directory, what is happening? Please help. Joe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: section
Markus KARG-2 wrote: Hendrik and Franz, thanks a lot for your kind help! I indeed will try out tomorrow. But please one more question: How is the relationship between javadocs and pom structure? I did not yet understand how I can guess from the javadocs to the pom structure actually. Thanks a lot! Markus Hendrik Busch wrote: Hi! Franz, are you joking? Do you see any section tags on the URLs you posted? Maybe I am blind, but I don't see any, actually. The text may not mention it, but the JavaDocs show it. You have got to abstract a little from the example and the docs. Just make your POM look like this: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive indextrue/index manifest addClasspathtrue/addClasspath /manifest manifestSections manifestSection nameS1/name manifestEntries N1V1/N1 /manifestEntries /manifestSection /manifestSections /archive /configuration /plugin This will result in a manifest like this: Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven Built-By: hb Build-Jdk: 1.5.0_06 Class-Path: commons-lang-2.1.jar Name: S1 N1: V1 Enjoy! Good day to you, Markus, I think what Hendrik meant to say is that [1] has a link to the MavenArchiveConfiguration javadoc ([2]). And if you analyze it, it has addManifestEntries and addManifestEntry for the manifestEntries and manifestEntry tags respecitvely. Thus, it is worth a try to see if addManifestSections, and addManifestSection corresponds to manifestSections and manifestSection. But point well taken :-) I've created now created an issue for that ([3]) :-) Thanks, Franz [1] http://people.apache.org/~dennisl/maven-jar-plugin/examples/manifest-customization.html [2] http://maven.apache.org/ref/current/maven-archiver/apidocs/org/apache/maven/archiver/MavenArchiveConfiguration.html [3] http://jira.codehaus.org/browse/MJAVADOC-91 -- View this message in context: http://www.nabble.com/%3Csection%3E-tf2271367.html#a6317869 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
building openpgp (from commons-sandbox)
Hi, I have the whole commons-sandbox checked out. I try to build openpgp and I see : [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.commons ArtifactId: commons Version: 1-SNAPSHOT Reason: Unable to download the artifact from any repository .. follows various stacktraces ... Any idea how to fix that ? Regards, Antoine - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-jetty-plugin PluginDescriptor
franz see wrote: Good day to you, Edwin, I tried getting the sources of 6.0.0rc0 to 4 from [1] and installed them all in my repo but the error remains the same. I've also tried downloading 6.0.0rc4 jar from [2] and install-file it but still the same error. Any idea what's causing the error, or where should i start looking? :-) Thanks a bunch, Franz [1] http://sourceforge.net/project/showfiles.php?group_id=7322package_id=106252 [2] http://www.ibiblio.org/maven2/org/mortbay/jetty/maven-jetty-plugin/ Edwin Punzalan wrote: Hi. I had the same problem and resolved it by using this instead: mvn org.mortbay.jetty:maven-jetty-plugin:6.0.0rc4:run Hope that helped. ^_^ franz see wrote: Good day, I have just checked out jetty from [1], and I built it using mvn clean install -DupdateReleaseInfo=true. And it builds successfully. However, everytime I try to use it, I get a The PluginDescriptor for the plugin Plugin [org.mortbay.jetty:jetty] was not found error. I've also checked the jar of that plugin, and indeed, it does contain META-INF/maven/plugin.xml. A sampe out build when I'm trying to use it in [2]. What could be wrong here and what coud be the solution? ^_^ Thanks a bunch, Franz [1] http://svn.codehaus.org/jetty/jetty/trunk [2] http://rafb.net/paste/results/s2hUpB26.html Good day, I actually stopped bothering to make this work and I simply launched jetty itself (after manually transferring the WAR to .../jetty/webapps). It was only recently that a friend of mine pointed out the solution. Simply execute mvn -cpu -U jetty:run I don't really know if this would have work back when i asked this here (though I do remember trying to use those arguements to make it work)..nonetheless, my maven jetty plugin now works (finally) ^_^ Cheers, Franz -- View this message in context: http://www.nabble.com/maven-jetty-plugin-PluginDescriptor-tf2225230.html#a6318047 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: building openpgp (from commons-sandbox)
I'm not sure where Hen put this when he set it up - best to ask on commons-dev. - Brett On 15/09/06, Antoine Levy-Lambert [EMAIL PROTECTED] wrote: Hi, I have the whole commons-sandbox checked out. I try to build openpgp and I see : [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.commons ArtifactId: commons Version: 1-SNAPSHOT Reason: Unable to download the artifact from any repository .. follows various stacktraces ... Any idea how to fix that ? Regards, Antoine - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Apache Maven - http://maven.apache.org Better Builds with Maven book - http://library.mergere.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
creating archetypes
The create archetypes document seems to have descripancies. Which is correct? testRecources or test-recources? Is allowPartial supported? The document also says that you cant create empty directories, is that still the case? D-
Re: Building maven-plugins project
This almost worked - in that I was able to checkout both projects and install them. Unfortunately, I still get the following error: 222:~/dev/maven-plugins mraible$ mvn [INFO] Scanning for projects... Downloading: http://snapshots.repository.codehaus.org/org/apache/maven/plugins/maven-plugins/2-SNAPSHOT/maven-plugins-2-SNAPSHOT.pom [WARNING] Unable to get resource from repository codehaus.org (http://snapshots.repository.codehaus.org) [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.maven.plugins ArtifactId: maven-plugins Version: 2-SNAPSHOT Reason: Unable to download the artifact from any repository org.apache.maven.plugins:maven-plugins:pom:2-SNAPSHOT from the specified remote repositories: codehaus.org (http://snapshots.repository.codehaus.org), central (http://repo1.maven.org/maven2) [INFO] [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.apache.maven.plugins:maven-plugins for project: null:maven-assembly-plugin:maven-plugin:2.2-SNAPSHOT at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: org.apache.maven.plugins:maven-plugins for project: null:maven-assembly-plugin:maven-plugin:2.2-SNAPSHOT at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1161) at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:674) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:416) at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:192) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:515) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:447) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:491) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:351) ... 11 more Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.maven.plugins:maven-plugins' not found in repository: Unable to download the artifact from any repository org.apache.maven.plugins:maven-plugins:pom:2-SNAPSHOT from the specified remote repositories: codehaus.org (http://snapshots.repository.codehaus.org), central (http://repo1.maven.org/maven2) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:513) at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1157) ... 18 more Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository org.apache.maven.plugins:maven-plugins:pom:2-SNAPSHOT from the specified remote repositories: codehaus.org (http://snapshots.repository.codehaus.org), central (http://repo1.maven.org/maven2) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:136) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:63) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:467) ... 19 more Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:260) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:124) ... 21 more [INFO] [INFO] Total time: 1 second [INFO] Finished at: Thu Sep 14 21:46:16 CDT 2006 [INFO] Final Memory:
RE: creating archetypes
Also, the archetype also seems to be creating a src/main/java/${groupId} directory. Anyway to keep this from happening? D- -Original Message- From: Douglas Ferguson Sent: Thursday, September 14, 2006 9:32 PM To: users Subject: creating archetypes The create archetypes document seems to have descripancies. Which is correct? testRecources or test-recources? Is allowPartial supported? The document also says that you cant create empty directories, is that still the case? D- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]