Re: A Maven plugin for obfuscation
Néstor Boscán wrote: Hi Has anybody worked with a Maven plugin for obfuscation? You might want to look at the proguard-maven-plugin [0] and search for the archives of this list for threads relating to it ... -dirk [0] http://pyx4me.com/pyx4me-maven-plugins/proguard-maven-plugin/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EJB Jar packaging
The usual way of doing this is to package the EJB jar together with its dependencies in an EAR file. In a JEE5 environment the deps can either go in a "lib" directory in the EAR or (and for J2EE 1.3/4) be at the root of the EAR and a manifest classpath entry added to the EJB jar. This stuff can all be managed with the maven EJB/EAR plugins. Is there any particular reason that you don't want to do it this way? Steve C On 11/07/2008, at 9:54 PM, Drinkwater, GJ (Glen) wrote: Hi I am using maven2 to package a EJB3 jar and I was wondering how I package the dependencies into the EJB3 jar file? Looks like you can do it with maven 1 with ejb.bundle but I cannot find any documentation for maven 2? Thanks Glen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to configure a JBoss to link to the webapp folder of a WAR project
Hi, It pretty much 'just works'. I have a multi module eclipse (Eclipse Europa version) projects with WTP 2 enabled in the maven-eclipse-plugin configuration. No m2eclipse plugin (tried it - but put it aside) - just maven-eclipse-plugin. Just download sources of maven-eclipse-plugin - it has several test projects that can give you an idea for configuring your projects. JBoss Tools is built on top of WTP 2 and does exploded deployment right to JBoss hot deploy directory. Regards, Siarhei On Fri, Jul 11, 2008 at 12:14 PM, Pedro Viegas <[EMAIL PROTECTED]> wrote: > Hi Siarhei, > > I too use JBoss tools and Eclipse Plugin. > How did you set this up? > > Thanks, > > On Thu, Jul 10, 2008 at 8:08 PM, Siarhei Dudzin <[EMAIL PROTECTED]> > wrote: > > > What's wrong with JBoss Tools? We use maven-eclipse-plugin + JBoss Tools, > > works well so far... > > > > Siarhei > > > > On Thu, Jul 10, 2008 at 7:37 PM, Pedro Viegas <[EMAIL PROTECTED]> > > wrote: > > > > > Hi all, > > > > > > I've been trying to build an environment for developing web > applications > > > that generate WAR files with a productive debug/development process. > > > I'm using JBoss as the application server. Tomcat is a no go and Jetty > > has > > > issues with some bytecode APIs I use. > > > > > > All is working fine in the traditional way. I package the WAR, deploy > it > > to > > > the server with the cargo plugin and test it. > > > Through JBoss Eclipse Plugin I have debug and hotcode replacement for > > java > > > classes, BUT not for JSPs! > > > How can I make JBoss aware of JSP/CSS/JS changes? > > > > > > I have seen a bunch of examples for Tomcat and Jetty to indicate a path > > to > > > the webapp folder. > > > For JBoss the only solution so far has always included building an > > exploded > > > WAR somewhere and point JBoss deploy URLs to it so it deploys them. > > > Even the solution of using the war:inplace is not functional since > JBoss > > > deployer only scans WAR/JAR/EAR/etc files. A directory like > > > "src/main/webapp" is simply ignored. > > > > > > All I wanted to do was deploy the application through Maven a Eclipse > > > lanched debug JBoss instance and be able to change my JSP files and > > refresh > > > them on the browser. > > > As anyone been able to do this? > > > > > > Thanks, > > > > > > -- > > > Pedro Viegas > > > > > > > > > Walking on water and developing software > > > from a specification are easy if both are > > > frozen. > > > - Edward V. Berard > > > > > > > > > -- > Pedro Viegas > > > Walking on water and developing software > from a specification are easy if both are > frozen. > - Edward V. Berard >
Re: Expanding keywords?
Never heard about this :D Let me see what I can find... thanks, Alex On Fri, Jul 11, 2008 at 12:28 PM, Wayne Fay <[EMAIL PROTECTED]> wrote: > Sounds similar to what filters are used for. Look at what filters can > do for you, and perhaps this will be sufficient. > > Wayne > > On 7/11/08, Alejandro Escalante Medina <[EMAIL PROTECTED]> wrote: >> Hello to everybody. I have this need and I am not sure how to solve it >> with maven... >> >> I want Maven to scan some arbitrary files, currently, some Javascript >> and HTML files, and insert/replace some given keywords (like cvs or >> svn) with some build data, like version, build date, etc. >> >> Any ideas on how to do this? >> >> -- >> Alejandro Escalante Medina >> Visita mi página personal en http://weblocked.blogsome.com/ >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > -- Alejandro Escalante Medina Visita mi página personal en http://weblocked.blogsome.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Expanding keywords?
Sounds similar to what filters are used for. Look at what filters can do for you, and perhaps this will be sufficient. Wayne On 7/11/08, Alejandro Escalante Medina <[EMAIL PROTECTED]> wrote: > Hello to everybody. I have this need and I am not sure how to solve it > with maven... > > I want Maven to scan some arbitrary files, currently, some Javascript > and HTML files, and insert/replace some given keywords (like cvs or > svn) with some build data, like version, build date, etc. > > Any ideas on how to do this? > > -- > Alejandro Escalante Medina > Visita mi página personal en http://weblocked.blogsome.com/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Expanding keywords?
Hello to everybody. I have this need and I am not sure how to solve it with maven... I want Maven to scan some arbitrary files, currently, some Javascript and HTML files, and insert/replace some given keywords (like cvs or svn) with some build data, like version, build date, etc. Any ideas on how to do this? -- Alejandro Escalante Medina Visita mi página personal en http://weblocked.blogsome.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Archetype Properties and Packaging
Hi, This is not possible for now. The archetype plugin does not do any property in propeties replacement. Regards, Raphaël 2008/7/11, Will Gomes <[EMAIL PROTECTED]>: > > Is it possible to provide default value for only a portion of ${package} > property? I would like to do the something like the following: > > > > > >org.foo.bar.${myModule}.${myApp} > > > > having resources > > src/main/java > dao/MyDao.java > Main.java > > to produce > > org.foo.bar.mymodule.myapp.dao.MyDao.java > org.foo.bar.mymodule.myapp.Main.java > > > -- > View this message in context: > http://www.nabble.com/Archetype-Properties-and-Packaging-tp18406312p18406312.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Archetype sample for multi-projects
2008/7/11, Wendy Smoak <[EMAIL PROTECTED]>: > On Thu, Jul 10, 2008 at 10:18 AM, s[e]th & h[o]lth <[EMAIL PROTECTED]> wrote: > > > Since monday i'm trying to build a multi-projects archetype without > > success... > > > The first version of the Archetype plugin didn't support creating > multi-module projects with a single command. I'm interested to know > whether the new version does. Last time I checked, the archetype > bundles hadn't been added back to trunk so the only examples I know of > are the old ones on the branch, and all of those are necessarily > single module. > > What happens if you try archetype:create-from-project on an existing > multi-module project? The archetype plugin has some unit test for this. one can also find a good example at http://platina.sourceforge.net http://sourceforge.net/projects/platina/ Raphaël > > > -- > Wendy > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Ampersand problem
If its in the xml, you might be able to use CDATA to get the ampersand in there. The XML parser probably is looking for an < sort of thingy. --Lee On Fri, Jul 11, 2008 at 4:29 AM, Artur Śmiejowski <[EMAIL PROTECTED]> wrote: > Halo! > > > > Maven don't work when In Windows user has ampersand in the name for example > username=Tom&Jerry. Windows allows usernames like this, but Maven treat > ampersand in the name of users main folder as a part of some url (?) or > something . and cannot get path properly. Windows do not allow to change > username with all user's foldernames. > > > > Is it Maven bug? Maybe there is some solution. > > > > Please help! > > > > I do not want to change my username to use Maven. > > > > Greetings. > > -- -- Lee Meador Sent from gmail. My real email address is lee AT leemeador.com
[ANNOUNCEMENT] - Maven Alfresco Amp Archetype 1.0.0 released
The Maven Alfresco Amp Archetype team is pleased to announce the maven-alfresco-amp-archetype-1.0.0 release! This archetype aims to provide a standardized approach to development, release and deployment of Alfresco AMPs (as opposed to Alfresco extensions, released as a different artifact ). Using standard m2 lifecycle commands (mvn compile package deploy) and generally available plugins (cargo, release, assembly) we are able to cover a very high percentage of Alfresco lifecycle common use cases. You are able within minutes to have a compatible AMP module built and its lifecycle supported by Maven, in a fully transparent way also with open source available AMPs. Changes in this version include: New features: o Added documentation at http://wiki.alfresco.com/wiki/Managing_Alfresco_Lifecyle_with_Maven o Added full AMP lifecycle management -- Gabriele Columbro Sourcesense - Making Sense of Opensource (+39) 3201612846 (+31) 627565103 Open Source Software Engineer (http://www.mindthegab.com) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANNOUNCEMENT] - Maven alfresco Extension archetype 1.1.0 released
The Maven alfresco Extension archetype team is pleased to announce the maven-alfresco-extension-archetype-1.1.0 release! This archetype developed aims to provide a standardized approach to development, release and deployment of Alfresco extensions (as opposed to AMP builds, to be released as a different artifact ). Using standard m2 lifecycle commands (mvn compile package deploy) and generally available plugins (cargo, release, assembly) we are able to cover a very high percentage of Alfresco lifecycle common use cases. It can be used both with Maven2 and Ant build systems, but it must be clear that *only* the Maven2 approach provides all the automation features we will describe in this website. In addition to that the m2 approach provides a zero-conf approach while ant requires (as usual) manual gathering and selection of required alfresco libraries and webapp (please refer to README-ant.txt for further info about the Ant build). Last but not the least, m2 build is more likely to be maintained and improved (especially in the likely case Alfresco moves to maven2). For more details on the m2 apprach please refer instead to README Section (or directly and to README-m2.txt of the generated project). Changes in this version include: New features: o Added documentation at http://wiki.alfresco.com/wiki/Managing_Alfresco_Lifecyle_with_Maven o Added full AMP lifecycle management. Have fun! -Maven alfresco Extension archetype team -- Gabriele Columbro Sourcesense - Making Sense of Opensource (+39) 3201612846 (+31) 627565103 Open Source Software Engineer (http://www.mindthegab.com) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANNOUNCEMENT] - Alfresco AMP Plugin 2.0.0 released
The Alfresco AMP Plugin team is pleased to announce the maven-amp-plugin-2.0.0 release! This plugin defines a lifecycle for Alfresco ECM Modules packaging (.amp), handles AMP transitive dependencies from AMP and WAR projects, providing a more enterprise oriented support alternative to the Alfresco MMT (module management tool) usage. It is used by maven-alfresco-amp-archetype in order to package and test run an AMP and by the maven-alfresco-extension-archetype to depend transitively upon AMPs and WARs. It is a modification of the org.apache.maven.plugins:maven-war-plugin of which it uses the whole core infrastructure. Changes in this version include: New features: o Added documentation at http://wiki.alfresco.com/wiki/Managing_Alfresco_Lifecyle_with_Maven o Now consistent maven plugin properties usage and support for AMP overlays and full AMP lifecycle o Added UnArchiver to mimic MMT behavior. Not needed anymore as AMPs gets properly unpacked into a WAR artifact. o Added plugin site documentation o Deployed on maven repository: http://repository.sourcesense.com/maven2/org/alfresco/maven/plugins -- Gabriele Columbro Sourcesense - Making Sense of Opensource (+39) 3201612846 (+31) 627565103 Open Source Software Engineer (http://www.mindthegab.com) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Nexus] Unable to upload something : error 401]
Hi Laurent, We also have a nexus-users list where we your question will probably find a faster answer ;-) http://nexus.sonatype.org/mailing-lists.html Your problem below seems to be that you've set a password on the repository but it's not in your settings. This is done with a entry in your settings and then the id will need to match the id specified on your command line (below you used thirdparty) However, in Nexus Beta-4+, you should never need to use deploy:deploy-file to load stuff into repositories. Simply login to the Nexus UI, open the browse repositories page and right click on the repository. You'll be able to directly upload the jar + pom (pom is optional, you can also specify the minimal info and Nexus will generate a pom for you). This should be much easier than messing with the CLI ;-) --Brian -Original Message- From: Laurent Trillaud [mailto:[EMAIL PROTECTED] Sent: Friday, July 11, 2008 4:55 AM To: users@maven.apache.org Subject: [Nexus] Unable to upload something : error 401] Hi I have installed Nexus and Maven2 I have followed step by step the book of Sonatype on Maven. All work fine except the upload. I'am not able to upload neither third parties artifact, snapshot or release on my Nexus repository. For example, if I try to deploy a mysql connector I got this error : [EMAIL PROTECTED] my-app]$ mvn deploy:deploy-file -DgroupId=com.mysql -DartifactId=mysql -Dversion=3.1.12 -Dpackaging=jar -Dfile=/usr/share/java/mysql-connector-java.jar -Durl=http://localhost:8081/nexus/content/repositories/thirdparty -DrepositoryId=thirdparty [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'deploy'. [INFO] [INFO] Building my-app [INFO]task-segment: [deploy:deploy-file] (aggregator-style) [INFO] [INFO] [deploy:deploy-file] Uploading: http://localhost:8081/nexus/content/repositories/thirdparty/com/mysql/my sql/3.1.12/mysql-3.1.12.jar 454K uploaded [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error deploying artifact: Failed to transfer file: http://localhost:8081/nexus/content/repositories/thirdparty/com/mysql/my sql/3.1.12/mysql-3.1.12.jar. Return code is: 401 [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Fri Jul 11 10:32:11 CEST 2008 [INFO] Final Memory: 2M/5M [INFO] My setting.xml is the same than in the book : nexus-public-snapshots public-snapshots http://localhost:8081/nexus/content/groups/public-snapshots nexus * http://localhost:8081/nexus/content/groups/public development central http://central true true central http://central true true public-snapshots public-snapshots http://public-snapshots false true public-snapshots http://public-snapshots false true development and I have put the "3rd party" repository in the group "public" with the Nexus back office I know that is a problem of authenfication/authorization by I don't know what it's going wrong. Thanks in advance Laurent - 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: A Maven plugin for obfuscation
What exactly do you want to obfuscate? There are various security tools that work on Java classes and jars available and at least one or two have been mentioned on this list recently. Wayne On 7/11/08, Néstor Boscán <[EMAIL PROTECTED]> wrote: > Hi > > Has anybody worked with a Maven plugin for obfuscation? > > Regads, > > Néstor Boscán >
Archetype Properties and Packaging
Is it possible to provide default value for only a portion of ${package} property? I would like to do the something like the following: org.foo.bar.${myModule}.${myApp} having resources src/main/java dao/MyDao.java Main.java to produce org.foo.bar.mymodule.myapp.dao.MyDao.java org.foo.bar.mymodule.myapp.Main.java -- View this message in context: http://www.nabble.com/Archetype-Properties-and-Packaging-tp18406312p18406312.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Post-process as part of archetype:create
I have the same questions as Tony, does anyone have an answer to this? Tony Gedge-3 wrote: > > Hi all, > > We have an archetype that we use for producing a shell project. Some of > the files in the generated shell project should have project-specific file > names (e.g. for the ABC project, a properties file might be called > abc.properties. Some of the files (e.g. Main.java) need to be placed in > the correct directory to achieve the proper packaging (e.g. in > com/company/abc) > > The archetype plugin doesn't appear to support the ability to specify the > target file name or path for a archetype resource. Have I missed > something? > > An alternative method would be to have a post-processing step which does > the renaming part. This could be another plugin executing (e.g. antrun). > Is there any way that we can cause this to happen from an > archetype:create? I can see that we could do it if we were using a phase, > but not how it could be done when directly invoking a plugin. Is this > behaviour possible? > > Thanks, > > Tony. > > > > Mr Tony Gedge > Snr Analyst Programmer > Applications Support > Business Solutions > WorkCover Queensland > www.workcoverqld.com.au ( http://www.workcoverqld.com.au/ ) > > *** > Messages included in this e-mail and any of its attachments are those > of the author unless specifically stated to represent WorkCover > Queensland. The contents of this message are to be used for the intended > purpose only and are to be kept confidential at all times. > This message may contain privileged information directed only to the > intended addressee/s. Accidental receipt of this information should be > deleted promptly and the sender notified. > This e-mail has been scanned by Sophos for known viruses. > However, no warranty nor liability is implied in this respect. > > > > -- View this message in context: http://www.nabble.com/Post-process-as-part-of-archetype%3Acreate-tp16929326p18406004.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: EJB Jar packaging
Hi Oh right, I have it kind of working, seems that when I do false it then leaves the jar out, whilst true unpacks and them adds it. I would like it not to unpack the jar whilst adding it. Is that possible? Glen -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Kristian Rink Sent: 11 July 2008 13:54 To: users@maven.apache.org Subject: Re: EJB Jar packaging Drinkwater, GJ (Glen) schrieb: > I am using maven2 to package a EJB3 jar and I was wondering how I > package the dependencies into the EJB3 jar file? Looks like you can > do it with maven 1 with ejb.bundle but I cannot find any documentation > for maven 2? So far I am using assembly:assembly / jar-with-dependencies to do this job. Compared to ant-based projects (using NetBeans...) it surely is different (as it explodes the dependencies right to the jar to be deployed rather than simply adding them), but it seems to do the job... Cheers, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 "One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality." (Hundertwasser) - 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: global exclusions?
Wendy Smoak schrieb: >> Asides from declaring >> dependencies which effectively state what is needed, is there a way to >> also declare "global exclusions" to, regardless of artifacts included, >> state what artifacts _not at all_ to include? > > I believe you'll still have to do the excludes, but the Enforcer > plugin can help you make sure things don't creep in: > http://maven.apache.org/plugins/maven-enforcer-plugin/rules/bannedDependencies.html Aaah I see. Gonna give this a try, thanks so far for pointing me there. :) As far as the metadata manipulation is concerned: Though we're running our internal archiva proxy, messing with metadata of "external" artifacts isn't really what I would come down to, so guess I'll just see how far the enforcer does get me and wait for this feature to maybe be in a future version otherwise. :) Thanks a bunch for your hints anyone. Cheers, Kristian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
A Maven plugin for obfuscation
Hi Has anybody worked with a Maven plugin for obfuscation? Regads, Néstor Boscán
Re: global exclusions?
On Fri, Jul 11, 2008 at 12:47 AM, Kristian Rink <[EMAIL PROTECTED]> wrote: > Asides from declaring > dependencies which effectively state what is needed, is there a way to > also declare "global exclusions" to, regardless of artifacts included, > state what artifacts _not at all_ to include? I believe you'll still have to do the excludes, but the Enforcer plugin can help you make sure things don't creep in: http://maven.apache.org/plugins/maven-enforcer-plugin/rules/bannedDependencies.html If you have your own internal managed repository (and you restrict access to central and other public repos) then you do have the option of fixing the metadata. This isn't something I do very often, but if you're going to have miles of xml for excludes vs. editing some poms in your internal repo, it might be something to consider. Make sure to keep track of what you've changed. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn eclipse:eclipse should use a different variable name than M2_REPO
On Fri, Jul 11, 2008 at 12:39 PM, Arand, Thomas (NSN - DE/Muenich) <[EMAIL PROTECTED]> wrote: > Hi all, > > I want to add two projects to eclipse. Unfortunately, they require the > use of two different local maven repositories. Unfortunately, mvn > eclipse:eclipse generates .classpath files where the repository is > referenced by the M2_REPO variable. In order to support different local > maven repositories it would be required to generate a user-supplied > variable name. > > Any ideas how to do that? However I do not want to replace the variable > name by hand... Just out of curiosity, why do you need two local repositories? To solve this, you could create a second eclipse workspace (the variables are local to the workspace). - Henry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Continuous integration build fails if tests fails
In AHP Builds are made up of a Workflow which can contain one or more Jobs each of which has multiple Steps. So, Our Maven Jobs tend to look like this: Populate Workspace Get Changelog (since last build) Create a Stamp (and AHP construct but I use for Tags in SVN too) Maven Builder (Effective POM & Settings) Maven Builder (Build!) Maven Builder (Site Generation) Junit Publisher Tag SVN Publish Site Reports Publish JAR Assign Success Assign Failure Each of these steps run based on a criteria like All Steps have passed Previous Step Passed Any Step Failed Always Never So, for the most part job steps are set to all steps passed but JUNit publisher is Always (and failure is any step failed) More to your point, is that for me to determine if the build or test have failed AHP uses post processing scripts. So we have a beanshell script that parses the build log and like this. return Fail.unless( Logic.and( Logic.and( Logic.not(Output.contains("BUILD FAILURE")), Logic.not(Output.contains("<<< FAILURE!")) <-- remove this to ignore test failures ), ExitCode.is(0) ) ) We're Maven 2.0.8 Between the two concepts of job steps and how AHP determines the success and failure of each step we can control the overall flow of the build job. When our test fail, we can fail the build, publish the Junit result and skip stuff like site, tagging or publishing things that might not even exist or be good. === -Curt W: 860.702.9059 M: 860.881.2050 -Original Message- From: Carlos Alonso [mailto:[EMAIL PROTECTED] Sent: Friday, July 11, 2008 8:11 AM To: Maven Users List Subject: Re: Continuous integration build fails if tests fails As I has understood, you create a duplicated job for every single project so as to execute those other things? I'm not sure of having got the idea. Could you please explain a bit deeper please? Thanks in advance Yanko, Curtis escribió: > I can't speak to Hudson but it seems to me in AnthillPro we have a job > step after the build step that always runs to ensure any test get > published. So, even though the build failed we can still do other > things. > > > === > -Curt > W: 860.702.9059 > M: 860.881.2050 > > -Original Message- > From: Carlos Alonso [mailto:[EMAIL PROTECTED] > Sent: Friday, July 11, 2008 4:41 AM > To: users@maven.apache.org > Subject: Continuous integration build fails if tests fails > > Hi All. > > I'm using Hudson integration environment and I've recently migrated my > scripts from ant to maven. Using ant, when some test cases failed, the > build was set to unstable and a test-results report was raised > indicating which tests failed and why. The problem is that using > maven, the build process is much simpler and maintainable, but, when > some test case fails, the whole build process fails. > > Any tip to solve the situation? > > Thanks. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > This e-mail, including attachments, may include confidential and/or > proprietary information, and may be used only by the person or entity > to which it is addressed. If the reader of this e-mail is not the > intended recipient or his or her authorized agent, the reader is > hereby notified that any dissemination, distribution or copying of > this e-mail is prohibited. If you have received this e-mail in error, > please notify the sender by replying to this message and delete this e-mail > immediately. > > > - > 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] This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EJB Jar packaging
Drinkwater, GJ (Glen) schrieb: > I am using maven2 to package a EJB3 jar and I was wondering how I > package the dependencies into the EJB3 jar file? Looks like you can do > it with maven 1 with ejb.bundle but I cannot find any documentation for > maven 2? So far I am using assembly:assembly / jar-with-dependencies to do this job. Compared to ant-based projects (using NetBeans...) it surely is different (as it explodes the dependencies right to the jar to be deployed rather than simply adding them), but it seems to do the job... Cheers, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 "One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality." (Hundertwasser) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mvn archetype... with artifactory
Hi all, trying the simplest command mvn:archetype to create a demo app in an empty local repository which looks for artifacts before in Artifactory then in ibilio, I have the following error, see log in attach http://www.nabble.com/file/p18403172/log.txt log.txt An interesting thing is that try to direclty go to ibiblio without passing from Artifactory, all works. Any hint? Thanks and best regards. Raffaele -- View this message in context: http://www.nabble.com/Mvn-archetype...-with-artifactory-tp18403172p18403172.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Continuous integration build fails if tests fails
As I has understood, you create a duplicated job for every single project so as to execute those other things? I'm not sure of having got the idea. Could you please explain a bit deeper please? Thanks in advance Yanko, Curtis escribió: I can't speak to Hudson but it seems to me in AnthillPro we have a job step after the build step that always runs to ensure any test get published. So, even though the build failed we can still do other things. === -Curt W: 860.702.9059 M: 860.881.2050 -Original Message- From: Carlos Alonso [mailto:[EMAIL PROTECTED] Sent: Friday, July 11, 2008 4:41 AM To: users@maven.apache.org Subject: Continuous integration build fails if tests fails Hi All. I'm using Hudson integration environment and I've recently migrated my scripts from ant to maven. Using ant, when some test cases failed, the build was set to unstable and a test-results report was raised indicating which tests failed and why. The problem is that using maven, the build process is much simpler and maintainable, but, when some test case fails, the whole build process fails. Any tip to solve the situation? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. - 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: Continuous integration build fails if tests fails
I can't speak to Hudson but it seems to me in AnthillPro we have a job step after the build step that always runs to ensure any test get published. So, even though the build failed we can still do other things. === -Curt W: 860.702.9059 M: 860.881.2050 -Original Message- From: Carlos Alonso [mailto:[EMAIL PROTECTED] Sent: Friday, July 11, 2008 4:41 AM To: users@maven.apache.org Subject: Continuous integration build fails if tests fails Hi All. I'm using Hudson integration environment and I've recently migrated my scripts from ant to maven. Using ant, when some test cases failed, the build was set to unstable and a test-results report was raised indicating which tests failed and why. The problem is that using maven, the build process is much simpler and maintainable, but, when some test case fails, the whole build process fails. Any tip to solve the situation? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
EJB Jar packaging
Hi I am using maven2 to package a EJB3 jar and I was wondering how I package the dependencies into the EJB3 jar file? Looks like you can do it with maven 1 with ejb.bundle but I cannot find any documentation for maven 2? Thanks Glen
Release plugin and versioning with Maven2
Hello! we have about 20 multiprojects composed of several java projects. Typically, a subsystem would be a J2EE application or a common component developed by one team. The build of the whole system is cascaded, approximately 5 levels. So we have dependencies between the multiproject. Does anybody have experience with defining a release process and versioning with m2 for such a usecase? Every multiproject is released and tested in 3 week iterations. E.g. for Release 2.3.x we would have 2.3-alpha-1, 2.3-alpha-2, 2.3-beta-1, 2.3-beta-2, 2.3-rc-1, 2.3 In practice, for each iteration several builds might be required, let's say artifact A has 2.3-beta-1.1, 2.3-beta-1.2. Typically, the development version would be 2.3-SNAPSHOT. Now, artifact B from an other subsystem depends on A 2.3-SNAPSHOT. On the release:prepare run, the plugin resolves the this snapshot with 2.3. But this isn't an existing version . How can I improve this release process with maven release plugin? Defining a snapshot version like 2.3-beta-1.x-SNAPSHOT doesn't work, since I can't predict the next version. It might be 2.3-beta-1.x+1 or 2.3-beta-2. Furthermore, it seams that this versioning scheme isn't supported by maven. An other way would be to renounce the qualifier and use build numbers instead, like 2.3-5532 , 2.3-5533 Though, I'd lose the information about the release quality. Any thoughts or ideas? Thanks a lot. Kuno -- View this message in context: http://www.nabble.com/Release-plugin-and-versioning-with-Maven2-tp18402101p18402101.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to create a Mojo that controls an ANT task
Sorry! I promised I'd post the results and forgot. Better late than never. The project that resulted from this is here: http://development.digitalis.pt/apache2-default/staging/ormgenerator/index.html Source can be browsed here... http://development.digitalis.pt/apache2-default/staging/ormgenerator/xref/index.html ...and downloaded here... http://development.digitalis.pt/apache2-default/staging/ormgenerator/downloads.html Regards, On Tue, Nov 13, 2007 at 1:03 AM, Pedro Viegas <[EMAIL PROTECTED]> wrote: > Yep, good ideia. > > Although I need to have this feature in multiple projects. So I could only > do this if I created a super POM that I would use as parent for all others. > I think it is best in this scenario to create a custom plugin to get the > job done with the minimal work to the users possible. > > I allready started the implementation and am working on it right now. > It will decend from the maven-anrrun-plugin AbstractAntMojo class and > provide the aditional features we need. > No need for a fork, a simple inheritance will sufice. > > Thanks again. > > Will post the end resut here for all who care. > > Regards, > > > On Nov 12, 2007 7:48 PM, Saloucious <[EMAIL PROTECTED] > wrote: > >> >> If you have multi-projects and a parent, a easier solution, should to add >> your maven-antrun-plugin to tag in parent pom.xml. >> >> As far as I know you can refer in your children pom to your >> maven-antrun-plugin without redefine tasks. >> >> >> >> >> >> Pedro Viegas-2 wrote: >> > >> > Hi there, >> > >> > Thanks a bunch for your responses. >> > You pointed me in the right direction. I was wishing I could use the >> > antrun >> > plugin resources but without having to copy-paste or in other way break >> > future updates of it. >> > I'm drilling into the plugin's source right now and will post my result >> as >> > soon as I have new information. >> > >> > This plugin we're working on at my company will be open-sourced so if >> > there >> > is any interest I can post here the link to the project when we finish >> it. >> > We have yet to crerate a Maven repository in our server, but even it >> that >> > is >> > not available the Maven Generated site will have all needed information >> > including the source and package, until we publish the repository. >> > >> > Regards, >> > >> > On Nov 12, 2007 5:53 PM, Saloucious <[EMAIL PROTECTED]> wrote: >> > >> >> >> >> Just an idea >> >> >> >> May be you can fork maven-antrun-plugin, and instead of let plexus bind >> >> tasks attribute, instanciate tasks attribute with an xml file embded in >> >> >> you >> >> plugin artifact >> >> >> >> I was just having a look in AntRunMojo class but i think you have to >> use >> >> AntTargetConverter >> >> >> >> This is just assumptions ... >> >> >> >> Please keep me in touch >> >> >> >> >> >> Pedro Viegas-2 wrote: >> >> > >> >> > Hi there guys, >> >> > >> >> > I am trying to create a Maven plugin that executes a given ANT task >> >> inside >> >> > it. >> >> > My real case is to call the Hibernate Tools task to generate a bunch >> of >> >> > ORM >> >> > classes and Hibernate mappings. >> >> > But I need to make some decisions and have to pass some parameters to >> >> >> the >> >> > several Hibernate Tools tasks I need to call depending on some >> >> conditions >> >> > that I need to analize in a Java Mojo. >> >> > >> >> > Basically I need to: >> >> > >> >> >1. Create a Mojo with some parameters and do some processing and >> >> file >> >> >generation of my own >> >> >2. Call the ANT Hibernate Tools tasks a bunch of times to generate >> >> >> all >> >> >my classes/mapings on several packages for several database >> schemas >> >> >3. Try to keep it as simple as possible to the end programmer >> user, >> >> >simply call a Maven plugin and state some configuration files and >> >> >destination package and let the conventioned behavior take charge. >> >> > >> >> > I have created the first part easily by creating a Java Maven Plugin. >> >> > The second part I have configured like a maven-ant-plugin addition to >> >> >> the >> >> > POM and got it working, but this has to be copied into each of the >> >> > projects >> >> > that need this goal and all the configuration I could pragmatically >> do >> >> > have >> >> > to be typed repeatedly. >> >> > So 1 and 2 are go, 3 is what I can't find any documentation or sample >> >> to >> >> > help me. >> >> > >> >> > I have seen the example from: >> >> > >> http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html >> >> > >> >> > But this is how to build a maven plugin with ANT. What I need is to >> >> build >> >> > a >> >> > maven plugin in Java that can call an ant task, like antrun plugin >> does >> >> > but >> >> > adding a few more java actions and decisions before and after. >> >> > >> >> > So, how can I use the already running maven java plugin to call the >> ANT >> >> > tasks? >> >> > Can I call a plugin inside another plugin? How? >> >> > Should I
Re: [Maven2] - exluding some source files from a war
Sorry, I've put the maven-compile plugin at the wrong place. Now it works. thanks Jan 2008/7/11 Jan Verstuyft <[EMAIL PROTECTED]>: > Ok, > > so the exclude on configuration level, just excludes which .class > files you want to add to the war? > > I even tried > > >**/*.class > > > > and still, all the classes are in my WEB-INF/classes directory. > > And is it also possible to exclude them from being build. I've read > something about the following configuration (it was for jars) > > > org.apache.maven.plugins > maven-compiler-plugin > > > **/NotNeeded*.java > > > > > > but that also not work. What do I do wrong? > > kind regards > > Jan > > 2008/7/11 Jörg Schaible <[EMAIL PROTECTED]>: >> Jan Verstuyft wrote: >>> Thanks for the quick response. >>> >>> I've tried the following: >>> >>> >>> org.apache.maven.plugins >>> maven-war-plugin >>> 2.0 >>> >>> >>> >>> **/com/ideal/**/*.java >>> >>> ... >>> >>> >>> >>> >>> And some other exclude masks like **/com/ideal/**, or **/com/ideal/* >>> but it seems that they still are compiled. >>> What is the mask I need to use? >> >> Well, I told you. Have a look yourself at target/classes and search for any >> *.java file ... ;-) >> >> - Jörg >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mvn eclipse:eclipse should use a different variable name than M2_REPO
Hi all, I want to add two projects to eclipse. Unfortunately, they require the use of two different local maven repositories. Unfortunately, mvn eclipse:eclipse generates .classpath files where the repository is referenced by the M2_REPO variable. In order to support different local maven repositories it would be required to generate a user-supplied variable name. Any ideas how to do that? However I do not want to replace the variable name by hand... Thank you Thomas
Re: How to configure a JBoss to link to the webapp folder of a WAR project
By the way... one more thing... There is also the option of using the: mvn war:inplace This should solve all my problems... except that I cannot change the webapp folder to webapp.war! And since the webapp folder does not terminate with a ".war" extension JBoss does not deploy it. Tries to but issues a "deployer: null" error message, since it does not have a deployer for null extension files. Am I barking at the wrong tree here? Thanks, On Fri, Jul 11, 2008 at 11:21 AM, Pedro Viegas <[EMAIL PROTECTED]> wrote: > Hi David, > > Sorry for to confusing post. > I'll try to explain better. > > I have hot deployment in place. It is working, just not in the best way. > What I have suceeded so far: > > I have setup JBoss deploy URLs to search my > ${maven.project}/target/{projectWAR} > I deploy using mvn war:exploded so I don't have to wait for the compression > phase. > For JBoss to accept a dir like a WAR (that does not end in .war - maven's > notation), I have configured the war plugin to create the exploded dir with > ".war" sufix. Like so... > > > > maven-war-plugin > > ${project.build.directory}/${project.build.finalName}.war > > > > And this is what I have. > All java classes get hot replaced by JBoss Eclipse plugin OK. > JSP's are not! > To refresh JSP after I change them I issue a mvn war:exploded each time I > want to. > > This is the best I got so far. It's not a bad solution. It takes only a few > seconds for the projecto to refresh the JSP. BUT this is a bit workarround > and having to set this up for each project... > > Anyone has a better aprouch? > > Thanks, > > > On Fri, Jul 11, 2008 at 12:35 AM, David Brown <[EMAIL PROTECTED]> > wrote: > >> Hello Pedro, I'm not sure by your statements if you are using a HOT deploy >> or not. In the case you are using a hot deploy try using an exploded war >> under server/default/deploy and see if you see any difference. The JSPs are >> compiled by the container once they are invoked at the browser. As an >> experiment: create a second virtual JBoss (4.2.1/4.2.2) server on a port >> like 8989 that deploys a single JSP and see if you can get it to recompile. >> There are instructions int the JBoss /examples directory on how to do this. >> HTH, David. >> Pedro Viegas wrote .. >> > Hi all, >> > >> > I've been trying to build an environment for developing web applications >> > that generate WAR files with a productive debug/development process. >> > I'm using JBoss as the application server. Tomcat is a no go and Jetty >> has >> > issues with some bytecode APIs I use. >> > >> > All is working fine in the traditional way. I package the WAR, deploy it >> to >> > the server with the cargo plugin and test it. >> > Through JBoss Eclipse Plugin I have debug and hotcode replacement for >> java >> > classes, BUT not for JSPs! >> > How can I make JBoss aware of JSP/CSS/JS changes? >> > >> > I have seen a bunch of examples for Tomcat and Jetty to indicate a path >> to >> > the webapp folder. >> > For JBoss the only solution so far has always included building an >> exploded >> > WAR somewhere and point JBoss deploy URLs to it so it deploys them. >> > Even the solution of using the war:inplace is not functional since JBoss >> > deployer only scans WAR/JAR/EAR/etc files. A directory like >> > "src/main/webapp" is simply ignored. >> > >> > All I wanted to do was deploy the application through Maven a Eclipse >> > lanched debug JBoss instance and be able to change my JSP files and >> refresh >> > them on the browser. >> > As anyone been able to do this? >> > >> > Thanks, >> > >> > -- >> > Pedro Viegas >> > >> > >> > Walking on water and developing software >> > from a specification are easy if both are >> > frozen. >> > - Edward V. Berard >> Yet some, not wise, go to the other side of the globe, to barbarous and >> unhealthy regions, and devote ten or twenty years, in that they may >> live,-that is, keep comfortably warm,- and die in New England at last. >> >> Henry David Thoreau - Walden - 1845 >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > Pedro Viegas > > > Walking on water and developing software > from a specification are easy if both are > frozen. > - Edward V. Berard > -- Pedro Viegas Walking on water and developing software from a specification are easy if both are frozen. - Edward V. Berard
Re: Continuous integration build fails if tests fails
On Friday 11 July 2008 Carlos Alonso wrote: > You're right Martin, but, as I explained in my first mail, the state > build succeeds has also two states, depending on the stability of the > product. But not for maven! > The stability of the product depends on the test cases, if every test > case passes, the product is stable, otherwise, unstable. But the build > process is successful in both cases because the code is successfully > compiled and packaged. > Imagine the following scenario: > > For some reason, the computer where the whole process is launched has > lost it's Internet connection and, a test that depends on XML fails > because the page where to retrieve the .xsd file cannot be reached. > There is also a second test that is really broken. Both tests will fail > but the build will succeed. When looking at the generated report, you'll > see that one of the tests where really broken while the other failed due > to the network problem. > If the whole build was considered as a failure, no test report could be > found, and, no information further than 2 Tests failed could be gathered. I got what you want, but maven doesn't support this. Maybe you can achieve your goal somehow with maven, but it would be an ugly hack. Use "mvn site" to creat reports, this will succeed even if the build itself is broken, so you get your reports. hth, - martin signature.asc Description: This is a digitally signed message part.
Re: How to configure a JBoss to link to the webapp folder of a WAR project
Hi David, Sorry for to confusing post. I'll try to explain better. I have hot deployment in place. It is working, just not in the best way. What I have suceeded so far: I have setup JBoss deploy URLs to search my ${maven.project}/target/{projectWAR} I deploy using mvn war:exploded so I don't have to wait for the compression phase. For JBoss to accept a dir like a WAR (that does not end in .war - maven's notation), I have configured the war plugin to create the exploded dir with ".war" sufix. Like so... maven-war-plugin ${project.build.directory}/${project.build.finalName}.war And this is what I have. All java classes get hot replaced by JBoss Eclipse plugin OK. JSP's are not! To refresh JSP after I change them I issue a mvn war:exploded each time I want to. This is the best I got so far. It's not a bad solution. It takes only a few seconds for the projecto to refresh the JSP. BUT this is a bit workarround and having to set this up for each project... Anyone has a better aprouch? Thanks, On Fri, Jul 11, 2008 at 12:35 AM, David Brown <[EMAIL PROTECTED]> wrote: > Hello Pedro, I'm not sure by your statements if you are using a HOT deploy > or not. In the case you are using a hot deploy try using an exploded war > under server/default/deploy and see if you see any difference. The JSPs are > compiled by the container once they are invoked at the browser. As an > experiment: create a second virtual JBoss (4.2.1/4.2.2) server on a port > like 8989 that deploys a single JSP and see if you can get it to recompile. > There are instructions int the JBoss /examples directory on how to do this. > HTH, David. > Pedro Viegas wrote .. > > Hi all, > > > > I've been trying to build an environment for developing web applications > > that generate WAR files with a productive debug/development process. > > I'm using JBoss as the application server. Tomcat is a no go and Jetty > has > > issues with some bytecode APIs I use. > > > > All is working fine in the traditional way. I package the WAR, deploy it > to > > the server with the cargo plugin and test it. > > Through JBoss Eclipse Plugin I have debug and hotcode replacement for > java > > classes, BUT not for JSPs! > > How can I make JBoss aware of JSP/CSS/JS changes? > > > > I have seen a bunch of examples for Tomcat and Jetty to indicate a path > to > > the webapp folder. > > For JBoss the only solution so far has always included building an > exploded > > WAR somewhere and point JBoss deploy URLs to it so it deploys them. > > Even the solution of using the war:inplace is not functional since JBoss > > deployer only scans WAR/JAR/EAR/etc files. A directory like > > "src/main/webapp" is simply ignored. > > > > All I wanted to do was deploy the application through Maven a Eclipse > > lanched debug JBoss instance and be able to change my JSP files and > refresh > > them on the browser. > > As anyone been able to do this? > > > > Thanks, > > > > -- > > Pedro Viegas > > > > > > Walking on water and developing software > > from a specification are easy if both are > > frozen. > > - Edward V. Berard > Yet some, not wise, go to the other side of the globe, to barbarous and > unhealthy regions, and devote ten or twenty years, in that they may > live,-that is, keep comfortably warm,- and die in New England at last. > > Henry David Thoreau - Walden - 1845 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Pedro Viegas Walking on water and developing software from a specification are easy if both are frozen. - Edward V. Berard
Re: How to configure a JBoss to link to the webapp folder of a WAR project
Hi Siarhei, I too use JBoss tools and Eclipse Plugin. How did you set this up? Thanks, On Thu, Jul 10, 2008 at 8:08 PM, Siarhei Dudzin <[EMAIL PROTECTED]> wrote: > What's wrong with JBoss Tools? We use maven-eclipse-plugin + JBoss Tools, > works well so far... > > Siarhei > > On Thu, Jul 10, 2008 at 7:37 PM, Pedro Viegas <[EMAIL PROTECTED]> > wrote: > > > Hi all, > > > > I've been trying to build an environment for developing web applications > > that generate WAR files with a productive debug/development process. > > I'm using JBoss as the application server. Tomcat is a no go and Jetty > has > > issues with some bytecode APIs I use. > > > > All is working fine in the traditional way. I package the WAR, deploy it > to > > the server with the cargo plugin and test it. > > Through JBoss Eclipse Plugin I have debug and hotcode replacement for > java > > classes, BUT not for JSPs! > > How can I make JBoss aware of JSP/CSS/JS changes? > > > > I have seen a bunch of examples for Tomcat and Jetty to indicate a path > to > > the webapp folder. > > For JBoss the only solution so far has always included building an > exploded > > WAR somewhere and point JBoss deploy URLs to it so it deploys them. > > Even the solution of using the war:inplace is not functional since JBoss > > deployer only scans WAR/JAR/EAR/etc files. A directory like > > "src/main/webapp" is simply ignored. > > > > All I wanted to do was deploy the application through Maven a Eclipse > > lanched debug JBoss instance and be able to change my JSP files and > refresh > > them on the browser. > > As anyone been able to do this? > > > > Thanks, > > > > -- > > Pedro Viegas > > > > > > Walking on water and developing software > > from a specification are easy if both are > > frozen. > > - Edward V. Berard > > > -- Pedro Viegas Walking on water and developing software from a specification are easy if both are frozen. - Edward V. Berard
Re: Continuous integration build fails if tests fails
You're right Martin, but, as I explained in my first mail, the state build succeeds has also two states, depending on the stability of the product. The stability of the product depends on the test cases, if every test case passes, the product is stable, otherwise, unstable. But the build process is successful in both cases because the code is successfully compiled and packaged. Imagine the following scenario: For some reason, the computer where the whole process is launched has lost it's Internet connection and, a test that depends on XML fails because the page where to retrieve the .xsd file cannot be reached. There is also a second test that is really broken. Both tests will fail but the build will succeed. When looking at the generated report, you'll see that one of the tests where really broken while the other failed due to the network problem. If the whole build was considered as a failure, no test report could be found, and, no information further than 2 Tests failed could be gathered. The JAR won't be used anyway, but, at least, you have information on what happened. Suppose now that, only the XML test fails, you know why and, you know that the JAR file is well done. Thanks. Martin Höller escribió: On Friday 11 July 2008 Carlos Alonso wrote: Now my problem is the following. I execute the install target, but, if any test fails, I wouldn't like my repository to store the generated artifact and, as you can imagine, the artifact is installed. How can I deal with this? I guess that's not easily possible, as there are only two states: "build succeeds" and "build fails". With the surefire parameter testFailureIgnore, you managed to have a successfull build even if some tests fail. But the install plugin doesn't know anything about the failed tests and just sees a succeeded build and thus, installes the JAR. The question is: why would you want the build to succeed if the tests fail? If it fails, there is no point in using the broken JAR, anyway. hth, - martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ampersand problem
Halo! Maven don't work when In Windows user has ampersand in the name for example username=Tom&Jerry. Windows allows usernames like this, but Maven treat ampersand in the name of users main folder as a part of some url (?) or something . and cannot get path properly. Windows do not allow to change username with all user's foldernames. Is it Maven bug? Maybe there is some solution. Please help! I do not want to change my username to use Maven. Greetings.
Re: Continuous integration build fails if tests fails
On Friday 11 July 2008 Carlos Alonso wrote: > Now my problem is the following. I execute the install target, but, if > any test fails, I wouldn't like my repository to store the generated > artifact and, as you can imagine, the artifact is installed. How can I > deal with this? I guess that's not easily possible, as there are only two states: "build succeeds" and "build fails". With the surefire parameter testFailureIgnore, you managed to have a successfull build even if some tests fail. But the install plugin doesn't know anything about the failed tests and just sees a succeeded build and thus, installes the JAR. The question is: why would you want the build to succeed if the tests fail? If it fails, there is no point in using the broken JAR, anyway. hth, - martin signature.asc Description: This is a digitally signed message part.
Conditional target execution
Hi all. Is it any way of executing one maven target or another depending, for example, on the test phase result? I mean, I use Hudson integration environment and I invoke the install target so that, after every build, the generated artifact is copied to the local repository. My problem is that when test cases fails, I wouldn't want the artifact to be installed on the repository. But, on the other hand, I don't want the whole build to fail if any of the test case fail. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Continuous integration build fails if tests fails
Thanks Martin, that was it. Now my problem is the following. I execute the install target, but, if any test fails, I wouldn't like my repository to store the generated artifact and, as you can imagine, the artifact is installed. How can I deal with this? Thanks again. Martin Höller escribió: On Friday 11 July 2008 Carlos Alonso wrote: Hi All. I'm using Hudson integration environment and I've recently migrated my scripts from ant to maven. Using ant, when some test cases failed, the build was set to unstable and a test-results report was raised indicating which tests failed and why. The problem is that using maven, the build process is much simpler and maintainable, but, when some test case fails, the whole build process fails. Any tip to solve the situation? I guess you are using the maven-surefire-plugin, are you? Try setting the parameter testFailureIgnore to true in your module configuration, as explained on [0]. hth, - martin [0] http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Maven2] - exluding some source files from a war
Ok, so the exclude on configuration level, just excludes which .class files you want to add to the war? I even tried **/*.class and still, all the classes are in my WEB-INF/classes directory. And is it also possible to exclude them from being build. I've read something about the following configuration (it was for jars) org.apache.maven.plugins maven-compiler-plugin **/NotNeeded*.java but that also not work. What do I do wrong? kind regards Jan 2008/7/11 Jörg Schaible <[EMAIL PROTECTED]>: > Jan Verstuyft wrote: >> Thanks for the quick response. >> >> I've tried the following: >> >> >> org.apache.maven.plugins >> maven-war-plugin >> 2.0 >> >> >> >> **/com/ideal/**/*.java >> >> ... >> >> >> >> >> And some other exclude masks like **/com/ideal/**, or **/com/ideal/* >> but it seems that they still are compiled. >> What is the mask I need to use? > > Well, I told you. Have a look yourself at target/classes and search for any > *.java file ... ;-) > > - Jörg > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Nexus] Unable to upload something : error 401]
Hi I have installed Nexus and Maven2 I have followed step by step the book of Sonatype on Maven. All work fine except the upload. I'am not able to upload neither third parties artifact, snapshot or release on my Nexus repository. For example, if I try to deploy a mysql connector I got this error : [EMAIL PROTECTED] my-app]$ mvn deploy:deploy-file -DgroupId=com.mysql -DartifactId=mysql -Dversion=3.1.12 -Dpackaging=jar -Dfile=/usr/share/java/mysql-connector-java.jar -Durl=http://localhost:8081/nexus/content/repositories/thirdparty -DrepositoryId=thirdparty [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'deploy'. [INFO] [INFO] Building my-app [INFO]task-segment: [deploy:deploy-file] (aggregator-style) [INFO] [INFO] [deploy:deploy-file] Uploading: http://localhost:8081/nexus/content/repositories/thirdparty/com/mysql/mysql/3.1.12/mysql-3.1.12.jar 454K uploaded [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error deploying artifact: Failed to transfer file: http://localhost:8081/nexus/content/repositories/thirdparty/com/mysql/mysql/3.1.12/mysql-3.1.12.jar. Return code is: 401 [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Fri Jul 11 10:32:11 CEST 2008 [INFO] Final Memory: 2M/5M [INFO] My setting.xml is the same than in the book : nexus-public-snapshots public-snapshots http://localhost:8081/nexus/content/groups/public-snapshots nexus * http://localhost:8081/nexus/content/groups/public development central http://central true true central http://central true true public-snapshots public-snapshots http://public-snapshots false true public-snapshots http://public-snapshots false true development and I have put the "3rd party" repository in the group "public" with the Nexus back office I know that is a problem of authenfication/authorization by I don't know what it's going wrong. Thanks in advance Laurent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Continuous integration build fails if tests fails
On Friday 11 July 2008 Carlos Alonso wrote: > Hi All. > > I'm using Hudson integration environment and I've recently migrated my > scripts from ant to maven. Using ant, when some test cases failed, the > build was set to unstable and a test-results report was raised > indicating which tests failed and why. The problem is that using maven, > the build process is much simpler and maintainable, but, when some test > case fails, the whole build process fails. > > Any tip to solve the situation? I guess you are using the maven-surefire-plugin, are you? Try setting the parameter testFailureIgnore to true in your module configuration, as explained on [0]. hth, - martin [0] http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html signature.asc Description: This is a digitally signed message part.
Continuous integration build fails if tests fails
Hi All. I'm using Hudson integration environment and I've recently migrated my scripts from ant to maven. Using ant, when some test cases failed, the build was set to unstable and a test-results report was raised indicating which tests failed and why. The problem is that using maven, the build process is much simpler and maintainable, but, when some test case fails, the whole build process fails. Any tip to solve the situation? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: global exclusions?
On Fri, Jul 11, 2008 at 9:47 AM, Kristian Rink <[EMAIL PROTECTED]> wrote: > Folks; > > in my environment, I do have a parent pom all my projects do inherit > from. This parent pom is used, among other things, to keep global > dependencies. My question on that, however: Asides from declaring > dependencies which effectively state what is needed, is there a way to > also declare "global exclusions" to, regardless of artifacts included, > state what artifacts _not at all_ to include? > > To outline what I want: We do use slf4j for logging, along with > jcl-over-slf4j (briding commons-logging output to slf4j) or > log4j-over-slf4j (bridging log4j output to slf4j) so no matter what > happens I don't want to, say, have any artifact (Spring likes to do > this, in example...) pull commons-logging as a transitive dependency > simply because this is already satisfied by jcl-over-slf4j and would > just cause trouble. So far however I have to manually define an > exclusion to that for every required project and every dependency > manually which doesn't seem that comfortable a thing to do. Can this be > done somehow smarter? > > Thanks in advance, best regards. > Kristian >From what I know this is not supported in Maven 2.0.x. You'll have to do the manual labour of specifying exclusions for every dependency which pulls in what you don't want. I think there's a jira for this somewhere which might be scheduled for 2.1. -- - Jan Fredrik Wedén - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Including non-standard named artifacts
On Fri, Jul 11, 2008 at 5:53 AM, Brian Albers <[EMAIL PROTECTED]> wrote: > Maven gurus- > > I'm running into a problem which seems like it should be simple, but > I've had no luck in solving it with various Maven plugins. > > In a nutshell, I'm trying to use the assembly plugin to produce a .zip > file for my project, and as part of this I wish to include a full, > expanded version of Apache ActiveMQ. In particular, I'm trying to > include the version assembled by the ActiveMQ Maven and located in the > central repository at: > http://repo1.maven.org/maven2/org/apache/activemq/apache-activemq/5.1.0/ > > The catch is that I'm trying to include the fully-contained Windows > ZIP file ( apache-activemq-5.1.0-bin.zip ), and I have not found a way > to declare a dependency on it since it has been assembled end in > "-bin.zip" rather than ".zip". I figured that if I could declare a > dependency on it, I could use a few different options to extract it > into my own assembly. However, I haven't been able to configure Maven > to locate the .zip I want because of its name. > > Is there a way to declare a dependency on that specific .zip? Or am I > going at this entirely the wrong way. > > Thanks in advance! Did you try to specify "bin" as the classifier? I think that should work, although I haven't tried using classifiers with the assembly plugin myself. -- - Jan Fredrik Wedén - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: error !!!
Very kind of you, Wendy, to try and answer to this type of request... No "Hi", no "thanks", and no real explanation of the problem and/or proof the guy tried a bit to find the cause by himself... Without speaking about the fact that this mail seem to have been sent twice... Cheers. -Message d'origine- De : Wendy Smoak [mailto:[EMAIL PROTECTED] Envoyé : vendredi 11 juillet 2008 07:51 À : Maven Users List Objet : Re: error !!! On Thu, Jul 10, 2008 at 10:43 PM, nikhil123 <[EMAIL PROTECTED]> wrote: > Downloading: > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean- > plugin/2.2/maven-clean-plugin-2.2.pom ... > [INFO] Failed to resolve artifact. Not a lot to go on here, but the usual problem is that you're behind an http proxy and haven't told Maven about it. Is that the case? -- Wendy - 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: [Maven2] - exluding some source files from a war
Jan Verstuyft wrote: > Thanks for the quick response. > > I've tried the following: > > > org.apache.maven.plugins > maven-war-plugin > 2.0 > > > > **/com/ideal/**/*.java > > ... > > > > > And some other exclude masks like **/com/ideal/**, or **/com/ideal/* > but it seems that they still are compiled. > What is the mask I need to use? Well, I told you. Have a look yourself at target/classes and search for any *.java file ... ;-) - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
global exclusions?
Folks; in my environment, I do have a parent pom all my projects do inherit from. This parent pom is used, among other things, to keep global dependencies. My question on that, however: Asides from declaring dependencies which effectively state what is needed, is there a way to also declare "global exclusions" to, regardless of artifacts included, state what artifacts _not at all_ to include? To outline what I want: We do use slf4j for logging, along with jcl-over-slf4j (briding commons-logging output to slf4j) or log4j-over-slf4j (bridging log4j output to slf4j) so no matter what happens I don't want to, say, have any artifact (Spring likes to do this, in example...) pull commons-logging as a transitive dependency simply because this is already satisfied by jcl-over-slf4j and would just cause trouble. So far however I have to manually define an exclusion to that for every required project and every dependency manually which doesn't seem that comfortable a thing to do. Can this be done somehow smarter? Thanks in advance, best regards. Kristian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Maven2] - exluding some source files from a war
Thanks for the quick response. I've tried the following: org.apache.maven.plugins maven-war-plugin 2.0 **/com/ideal/**/*.java ... And some other exclude masks like **/com/ideal/**, or **/com/ideal/* but it seems that they still are compiled. What is the mask I need to use? 2008/7/10 Geoffrey Wiseman <[EMAIL PROTECTED]>: > On Thu, Jul 10, 2008 at 10:51 AM, Jörg Schaible < > [EMAIL PROTECTED]> wrote: > >> You can do this in the same POM. Simply execute the jar plugin (also with >> includes), attach it to the package phase, but configure the resulting >> artifact with a classifier. >> > > Although it wouldn't hurt to note that this would typically be accomplished > using a multi-module buld in Maven. > > - Geoffrey > -- > Geoffrey Wiseman > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]