Re: [Maven2] - exluding some source files from a war

2008-07-11 Thread Jan Verstuyft
Thanks for the quick response. I've tried the following: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0/version configuration excludes

global exclusions?

2008-07-11 Thread Kristian Rink
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

RE: [Maven2] - exluding some source files from a war

2008-07-11 Thread Jörg Schaible
Jan Verstuyft wrote: Thanks for the quick response. I've tried the following: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0/version configuration excludes

RE: error !!!

2008-07-11 Thread MATHUS Baptiste
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

Re: Including non-standard named artifacts

2008-07-11 Thread Jan Fredrik Wedén
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

Re: global exclusions?

2008-07-11 Thread Jan Fredrik Wedén
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

Continuous integration build fails if tests fails

2008-07-11 Thread Carlos Alonso
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

Re: Continuous integration build fails if tests fails

2008-07-11 Thread Martin Höller
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

[Nexus] Unable to upload something : error 401]

2008-07-11 Thread Laurent Trillaud
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

Re: [Maven2] - exluding some source files from a war

2008-07-11 Thread Jan Verstuyft
Ok, so the exclude on configuration level, just excludes which .class files you want to add to the war? I even tried configuration excludes exclude**/*.class/exclude /excludes /configuration and still,

Re: Continuous integration build fails if tests fails

2008-07-11 Thread Carlos Alonso
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

Conditional target execution

2008-07-11 Thread Carlos Alonso
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

Re: Continuous integration build fails if tests fails

2008-07-11 Thread Martin Höller
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

Ampersand problem

2008-07-11 Thread Artur Śmiejowski
Halo! Maven don't work when In Windows user has ampersand in the name for example username=TomJerry. 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

Re: Continuous integration build fails if tests fails

2008-07-11 Thread Carlos Alonso
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

Re: How to configure a JBoss to link to the webapp folder of a WAR project

2008-07-11 Thread Pedro Viegas
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

Re: How to configure a JBoss to link to the webapp folder of a WAR project

2008-07-11 Thread Pedro Viegas
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

Re: Continuous integration build fails if tests fails

2008-07-11 Thread Martin Höller
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

Re: How to configure a JBoss to link to the webapp folder of a WAR project

2008-07-11 Thread Pedro Viegas
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

mvn eclipse:eclipse should use a different variable name than M2_REPO

2008-07-11 Thread Arand, Thomas (NSN - DE/Muenich)
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

Re: [Maven2] - exluding some source files from a war

2008-07-11 Thread Jan Verstuyft
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 configuration

Re: How to create a Mojo that controls an ANT task

2008-07-11 Thread Pedro Viegas
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...

Release plugin and versioning with Maven2

2008-07-11 Thread qnob
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

EJB Jar packaging

2008-07-11 Thread Drinkwater, GJ (Glen)
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

RE: Continuous integration build fails if tests fails

2008-07-11 Thread Yanko, Curtis
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

Re: Continuous integration build fails if tests fails

2008-07-11 Thread Carlos Alonso
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

Mvn archetype... with artifactory

2008-07-11 Thread Raffaele
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

Re: EJB Jar packaging

2008-07-11 Thread Kristian Rink
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 /

RE: Continuous integration build fails if tests fails

2008-07-11 Thread Yanko, Curtis
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

Re: mvn eclipse:eclipse should use a different variable name than M2_REPO

2008-07-11 Thread Heinrich Nirschl
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

Re: global exclusions?

2008-07-11 Thread Wendy Smoak
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

A Maven plugin for obfuscation

2008-07-11 Thread Néstor Boscán
Hi Has anybody worked with a Maven plugin for obfuscation? Regads, Néstor Boscán

Re: global exclusions?

2008-07-11 Thread Kristian Rink
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

RE: Re: EJB Jar packaging

2008-07-11 Thread Drinkwater, GJ (Glen)
Hi Oh right, I have it kind of working, seems that when I do unpackfalse/unpack it then leaves the jar out, whilst unpacktrue/unpack 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

Re: Post-process as part of archetype:create

2008-07-11 Thread Will Gomes
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

Archetype Properties and Packaging

2008-07-11 Thread Will Gomes
Is it possible to provide default value for only a portion of ${package} property? I would like to do the something like the following: requiredProperties requiredProperty key=myModule / requiredProperty key=myApp / requiredProperty key=package

Re: A Maven plugin for obfuscation

2008-07-11 Thread Wayne Fay
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

RE: [Nexus] Unable to upload something : error 401]

2008-07-11 Thread Brian E. Fox
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 server entry in

[ANNOUNCEMENT] - Alfresco AMP Plugin 2.0.0 released

2008-07-11 Thread Gabriele Columbro
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

[ANNOUNCEMENT] - Maven alfresco Extension archetype 1.1.0 released

2008-07-11 Thread Gabriele Columbro
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

[ANNOUNCEMENT] - Maven Alfresco Amp Archetype 1.0.0 released

2008-07-11 Thread Gabriele Columbro
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 ).

Re: Ampersand problem

2008-07-11 Thread Lee Meador
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 lt; 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

Re: Archetype sample for multi-projects

2008-07-11 Thread Raphaël Piéroni
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

Re: Archetype Properties and Packaging

2008-07-11 Thread Raphaël Piéroni
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

Expanding keywords?

2008-07-11 Thread Alejandro Escalante Medina
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

Re: Expanding keywords?

2008-07-11 Thread Wayne Fay
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

Re: Expanding keywords?

2008-07-11 Thread Alejandro Escalante Medina
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

Re: How to configure a JBoss to link to the webapp folder of a WAR project

2008-07-11 Thread Siarhei Dudzin
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

Re: EJB Jar packaging

2008-07-11 Thread Stephen Coy
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

Re: A Maven plugin for obfuscation

2008-07-11 Thread Dirk Olmes
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/