Re: Conditional plugin execution based on build time behavior - Maven profiles not sufficient?

2009-02-25 Thread Brett Porter
I can see a few options. The best solution is to find some way to get your CI server to detect the XSD changes as a trigger for the build instead. From a Maven point of a view, you might be looking at building a "conditional deploy" plugin. Extending the current one and providing limited

Re: maven-antrun-plugin

2009-02-25 Thread Sagara Gunathunga
Hi Ketan, you need to define your Build.xml file under the the configuration as follows. Hello World ANT

maven-antrun-plugin

2009-02-25 Thread Ketan Khairnar
Hi All, I am new to maven and some of the tasks are better written in ant compared to maven and hence I needed to use maven-antrun-plugin. Ant-run plugin shows following lines on command line [INFO] [antrun:run] [INFO] Executing tasks [INFO] Executed tasks But Its not executing tasks defined in

Two issues: goals do not bind, JUnit annotations seem not to work

2009-02-25 Thread Scott Maines
=== Two issues with Maven, perhaps pilot error I have two issues at the moment, * Goals do not seem to bind to phases as I expect * Annotations in JUnit do not seem to be executing at all The things which do not seem to work are so basic that I'm thinking the problems are local to me, and

[ANN] Maven Enforcer Plugin 1.0-beta-1

2009-02-25 Thread Brian Fox
The Maven team is pleased to announce the release of the Maven Enforcer Plugin, version 1.0-beta-1 The Enforcer plugin is used to fail a build if certain constraints are not met. There are too many standard rules to describe here, but check out the site for more details: http://maven.apache.org/p

Re: deploy: any way to check that an artifact has been already deployed ?

2009-02-25 Thread Merv Green
The only way I know is to configure your repository manager. For example, see the Nexus FAQ, https://docs.sonatype.com/display/NX/Nexus+FAQ houzecl wrote: Hi all, Maven allows us to release artifacts properly with the release plugin. However, nothing prevents to use the deploy plugin directly

Re: Where script resources belong

2009-02-25 Thread Rusty Wright
If he puts it there then won't it go into the war file, which I thought he didn't want? I suppose you could add an exclude to the resource section in the pom. In my parent project I have src/assemblies and src/main/scripts. I'm building a zip file that contains a jar file that includes a cl

Re: Profiles & Filters - sharing common config

2009-02-25 Thread Brett Porter
On 26/02/2009, at 11:33 AM, Les Hazlewood wrote: I have a webapp that can be deployed as one .war (development) or as two separate .war files (production w/ firewall in between the two). I have 3 web modules to reflect this. web-colocated web-front web-back The web.xml file for each .war

Profiles & Filters - sharing common config

2009-02-25 Thread Les Hazlewood
I have a webapp that can be deployed as one .war (development) or as two separate .war files (production w/ firewall in between the two). I have 3 web modules to reflect this. web-colocated web-front web-back The web.xml file for each .war is nearly identical, save the spring files listed to sta

Re: How to use snapshot libraries in our projects?

2009-02-25 Thread Brett Porter
Sorry, I meant earlier, when it attempts it (Downloading: ) and the few lines surrounding that (particularly helpful might be -X on the cmd line if it doesn't show anything else around that line) - Brett On 26/02/2009, at 2:49 AM, Thai Dang Vu wrote: When maven attempts to download it,

Conditional plugin execution based on build time behavior - Maven profiles not sufficient?

2009-02-25 Thread Les Hazlewood
Hi folks, Here's what I'm trying to achieve: I have a build that must run every 5 minutes or so in a Continuous Integration server. It must do this because it downloads information that exists outside of a Maven artifact repository or any build environment and must regularly check to see if info

Re: JavaFX compiler?

2009-02-25 Thread Mark Derricutt
Cheers, Was more a general inquiry following the actual release of JavaFX as the plugin didn't seem to have been updated. Will hopefully get a chance to play with it soon. On 18/02/09 01:27, Andrew Hughes wrote: "Plexus Compiler Component for javafxc (OpenJFX Compiler) / Updated 2009-01-17"

Re: Probable bug with maven-war-plugin-2.1-alpha-2

2009-02-25 Thread Dennis Lundberg
It's on my medium term todo list. I'll probably release it after I finish Site Plugin 2.0 et al. Todd Thiessen wrote: > Thanks. > > Any word on when there will be a new release of the plugin? > > --- > Todd Thiessen > > >> -Original Message- >> From: Dennis Lundberg [mailto:denn...@ap

Re: Where script resources belong

2009-02-25 Thread Mick Knutson
I would use ./src/main/resources/scripts --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring & Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://linkedin.com/in/mickknutson Twitter:

Re: Where script resources belong

2009-02-25 Thread Kalle Korhonen
Two typical solutions to deal with it, the right depends on your use case. I've done it both ways. If your use case is a full "product", you could create an assembly that would package everything, including the tomcat and the startup scripts into a single archive such as zip or tar. Or, if you can

Where script resources belong

2009-02-25 Thread Steve Cohen
What is the general Maven view on where resources like launcher shell scripts and properties files belong vis-a-vis Maven and Eclipse? Our application is structurally a web app although it is not primarily served over the Web. It runs under Tomcat, so that a minor use case, implemented in ter

Dale Chapman is out of the office.

2009-02-25 Thread Dale . Chapman
I will be out of the office starting 25/02/2009 and will not return until 09/03/2009. I will be out of the office, on vacation, from February 26th returning on March 9th. Please contact Darren Swansburg for all matters related to the SOA Pilots. Please contact Marc Arsenault for all matters

RE: Using the option within an assembly descriptor

2009-02-25 Thread EJ Ciramella
So upgrading the version of the plugin we're using solves the issues we were having with the tokens NOT expanded. But now I'm seeing something else weird. With the older version of the assembly plugin (2.2-beta-1), if I did an "assembly:directory", I'd get a directory like this: appName-1.0-SNAP

Re: Mavenizing Existing Project Part Deux

2009-02-25 Thread Steve Cohen
Hmm, I don't usually click the build button. I typically live with "build automatically" turned on. I live with the fact that this will bomb out the WTP Tomcat if I'm not careful. But that's another can of worms no? If we're not sure what build does, it's even scarier for automatic build.

Re: missing dependency with aggregator and modular builds in maven-release-plugin in maven 2

2009-02-25 Thread James Bowkett
(I have updated my super pom accordingly, thanks, I’ve not re-run the release since, but I can do if you think this is the root cause of the problem) My reactor output is as follows: [INFO] Reactor build order: [INFO] Main ß Main super pom [INFO] commons [INFO] sql

Re: .Net Application Build using Maven

2009-02-25 Thread Wendy Smoak
On Wed, Feb 25, 2009 at 9:00 AM, SRINIVASA RAO wrote: > I need to build the .Net application(dll file) by using Maven script. > If any body having idea on that, please give me sample examples on both .Net > and Maven. It will be great help to me. Check the links on the old NMaven incubator page

.Net Application Build using Maven

2009-02-25 Thread SRINIVASA RAO
Hi All,   I need to build the .Net application(dll file) by using Maven script. If any body having idea on that, please give me sample examples on both .Net and Maven. It will be great help to me.   Regards, Nivas

Re: How to use snapshot libraries in our projects?

2009-02-25 Thread Thai Dang Vu
When maven attempts to download it, maven shows this: [ERROR] Failed to resolve artifact, possibly due to a repository list that is not appropriately equipped for this artifact's metadata. org.richfaces.ui:richfaces-ui:jar:3.3.1-SNAPSHOT from the specified remote repositories: central (http:

Re: issues with profile and activeByDefault

2009-02-25 Thread Mick Knutson
I got it partially in settings.xml: * !PRD * But I actually have about 5 profiles that are NOT LOC (in my settings.xml). How can I say: * **!PRD && !QA && !INT* --- Thank You… Mick Knutson, President BASE Lo

Re: Mavenizing Existing Project Part Deux

2009-02-25 Thread Rusty Wright
Also remember that in eclipse you'll need to right click on the project and select Properties; there are some important maven things in there. Steve Cohen wrote: Thanks, Rusty. I am thinking about this very carefully, and the option of not using Maven at all is still in play. So is the opti

Re: issues with profile and activeByDefault

2009-02-25 Thread Mick Knutson
How do I set the activation in the for that? --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring & Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://linkedin.com/in/mickknutson Twit

Re: Mavenizing Existing Project Part Deux

2009-02-25 Thread Rusty Wright
I'm pretty sure you'll be able to continue doing all of the usual eclipse stuff everyone is used to doing. I also use WTP and have a tomcat server running under/in eclipse that I fire up to test my jsps and whatnot. What bothers me about the m2eclipse plugin is that it's not obvious, to me at

Re: missing dependency with aggregator and modular builds in maven-release-plugin in maven 2

2009-02-25 Thread Brett Porter
On 26/02/2009, at 2:09 AM, James Bowkett wrote: I have tried adding clean install deploy you should only need "clean install" here, firstly deploy runs install as well so this doubles up, and secondly you don't want to deploy on preparation, just on perform. I have recently done quite

Re: issues with profile and activeByDefault

2009-02-25 Thread Brett Porter
This may be a bug - I'd need to test it to confirm. An alternative way to achieve this is to use two activations on system property, eg: !PRD and PRD and then use -DPRD instead. Please note that you might not get the results you are hoping for with this set up since the local repository r

missing dependency with aggregator and modular builds in maven-release-plugin in maven 2

2009-02-25 Thread James Bowkett
Hi, I have seen similar problems elsewhere on the web, but the solutions don't seem to work for me. I have the following: A super pom.xml project that specifies javac version etc A number of modules that inherit from the super pom with interdependancies between them When I run mvn ins

Re: How to use snapshot libraries in our projects?

2009-02-25 Thread Brett Porter
This looks correct. What happens in your output when it attempts to download it? - Brett On 26/02/2009, at 1:52 AM, Thai Dang Vu wrote: Thank you. I did as you said but received an error. This is my pom.xml http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLS

issues with profile and activeByDefault

2009-02-25 Thread Mick Knutson
I want to, by default, use a dev REPO in my settings.xml, or an LOC profile that has true Then if I choose to build with a specific PRD profile (-PPRD), then I want to use a PRD REPO instead of the DEV repo. In my pom, by default I have: * mvnprd

Re: How to use snapshot libraries in our projects?

2009-02-25 Thread Thai Dang Vu
Thank you. I did as you said but received an error. This is my pom.xml 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";> 4.0.0 org

Re: Mavenizing Existing Project Part Deux

2009-02-25 Thread Steve Cohen
Thanks, Rusty. I am thinking about this very carefully, and the option of not using Maven at all is still in play. So is the option of using Maven ONLY to grab third-party dependencies into a local repository. Another option is to use Eclipse's build functionality "headlessly", from the comm

RE: Probable bug with maven-war-plugin-2.1-alpha-2

2009-02-25 Thread Todd Thiessen
Thanks. Any word on when there will be a new release of the plugin? --- Todd Thiessen > -Original Message- > From: Dennis Lundberg [mailto:denn...@apache.org] > Sent: Tuesday, February 24, 2009 5:19 PM > To: Maven Users List > Subject: Re: Probable bug with maven-war-plugin-2.1-alpha-

Re: How to use snapshot libraries in our projects?

2009-02-25 Thread Brett Porter
Something like 1.0-SNAPSHOT (which corresponds to 1.0-20090226.123456-1). However, it is not recommended that you use these once you have found a stable version - certainly for your own releases/deployments you should have something that is reproducible in the future. - Brett On 25/02/20

[ANNOUNCEMENT] - NBM Maven Plugin 3.0 released

2009-02-25 Thread Milos Kleint
I'm proud to announce new release of nbm-maven-plugin. The plugin helps with creation and building of NetBeans module projects and NetBeans platform based applications. = New in this release = o Support for full lifecycle of the NetBeans platform based applications. o Improved runtime dependency

issues with UPPER-CASE, lower-case table names

2009-02-25 Thread Mick Knutson
On my local XP workstation, when I have the hibernate plugin create my ddl, it is in lowere-case. When dbunit runs locally, it has no issue trying to insert into these lowercase tables. However, when I move to Linux, the tables are created as lower-case, but dbunit throws an error as it cannot find

Maik Ebert is out of the office. (returning 03.03.2009)

2009-02-25 Thread maik . ebert
I am out of the office until 03.03.2009. In urgent cases please contact Dirk Dinger, phone: +49 (0) 6227 385 144, e-mail: dirk.din...@icw-global.com. Ich bin vom 25.02.2009 00:00 bis 03.03.2009 00:00 außer Haus. In dringenden Fällen wenden Sie sich bitte an Dirk Dinger, Tel.: +49 (0) 6227 38

RE: How to execute Java task within a Archetype

2009-02-25 Thread Adam Leggett
If you do implement it as a plug-in then I'd suggest you create a plug-in that does not require a pom so you can do mvn archetype:create customplugin:goal -DartifactId= ... You'll need '@requiresProject false' declared in your mojo impl javadoc. I think the 'create' mojo is deprecated also. Maybe

How to use snapshot libraries in our projects?

2009-02-25 Thread Thai Dang Vu
To use GA libraries, I write this in my pom.xml repository.jboss.org JBoss Repository http://repository.jboss.org/maven2 snapshots.jboss.org JBoss Snapshots http://snapshots.jboss.org/maven2 org.richfaces.ui richfaces-ui 3.3.0.GA For JBoss snapshots, the

[ANN] OpenJPA Maven Plugin 1.0 Released

2009-02-25 Thread Mark Struberg
The Maven team is pleased to announce the release of the openjpa-maven-plugin-1.0 The plugin documentation can be found here: http://mojo.codehaus.org/openjpa-maven-plugin/ The following issues have been resolved: http://jira.codehaus.org/browse/MOJO-1132 http://jira.codehaus.org/browse/MOJ

Re: How to execute Java task within a Archetype

2009-02-25 Thread Sagara Gunathunga
Hi Adam, Thanks again , I want to run a HTTP server within the generate goal and then genarate some HTTPClient codes , these client codes depend on the running HTTP server ,and not possible to package within the archetype as templates. I don't think hack the source code is a good choice here , b

Re: How to execute Java task within a Archetype

2009-02-25 Thread Adam Leggett
> how can enforce Maven to execute custom task with " "mvn > archetype:generate "..? > generate is a goal of the archetype plug-in; AFAIK, you will need to either hack the source code of the archetype plug-in itself to execute some additional steps as part of the goal execution or post process t

Re: How to execute Java task within a Archetype

2009-02-25 Thread Sagara Gunathunga
HI all, Adam , thanks for your comments , it seems like maven-antrun-plugin could use for this , but still I don't have exact idea how can I use it with my scenario, here I describe what I have done and what I expect to do in details I create a Maven project to create a archetype called "myqui

Re: Maven-Eclipse-Hibernate: Missing indirectly referenced artifact

2009-02-25 Thread Don Hosek
Thanks, it turns out that there's also a bit of magic that needs to happen with m2eclipse, so adding the dependency via the add dependency menu item (and not via the add dependency button in the pom editor) did the trick. Now, I just have to figure out why my attempts at adding a package in