Re: Any plugins or tools that alert users to new versions of Jars?

2009-06-25 Thread Jörg Schaible
avixbaouxx wrote at Donnerstag, 25. Juni 2009 20:38:

> 
> Basically that...I'm curious if there's a way to email or otherwise alert
> users that new versions of their dependencies exist at build time?

Well, I could imagine such a behaviour quite annoying especially when you
know that you want to use not the latest version. However, the idea is
good, but it could be added as another dependency report.

- Jörg


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Newbie complience question

2009-06-25 Thread Dallas

You are absolutly right!
And the -X command was very helpful indeed, thanks!


justinedelson wrote:
> 
> It appears to me that your property name doesn't match how you have the
> compiler plugin configured. 
> 
> Property:
> 1.5
> 
> Plugin Config:
> ${maven.compiler.target}
> 
> Using the -X command line option or help:effective-pom is helpful in
> diagnosing this type of problem.
> 
> Justin
> 
> -Original Message-
> From: Dallas [mailto:dalla_man...@hotmail.com] 
> Sent: Thursday, June 25, 2009 8:20 AM
> To: users@maven.apache.org
> Subject: Newbie complience question
> 
> 
> Hi
> 
> I recently started using Maven, and I will hopefully be implementing in
> for every single project I start from now on :-)
> 
> However, I have some issues when building one of my gwt projects.
> 
> I get an error like this
> 
> [INFO] Compiling 1 source file to
> F:\Data\Workspace\testapp\target\classes
> [ERROR]
> Mojo: 
> org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
> FAILED for project: 
> maven-test:testapp:war:0.0.1-SNAPSHOT
> Reason:
> Failure executing javac, but could not parse the error:
> javac: source release 1.5 requires target release 1.5
> 
> 
> The Mojo plugin looks like this
> 
> 
> org.apache.maven.plugins
> maven-compiler-plugin
> 2.0.2
> 
> ${maven.compiler.source}
> ${maven.compiler.target}
> UTF-8
> 
> 
> javax/servlet/**
> 
> 
> 
> 
> and my properties looks like this
> 
> 
> 1.6.4
> 1.5
> 1.5
> ${basedir}/target/gwt
> Application
> 
> 
> Why does the comiplier think I want to use something else for target
> than
> 1.5 ?
> 
> Posting entire POM below
> 
> 
> 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
>   maven-test
>   testapp
>   war
>   0.0.1-SNAPSHOT
>   gwt-maven-archetype-project
>   
>   1.6.4
>   1.5
>   1.5
>   
> ${basedir}/target/gwt
>   Application
>   
>   
>   
>   
>   
>   junit
>   junit
>   3.8.1
>   test
>   
>   
>   
>   
>   com.google.gwt
>   gwt-user
>   ${gwt.version}
>   provided
>   
>   
>   com.google.gwt
>   gwt-servlet
>   ${gwt.version}
>   runtime
>   
>   
>   
>   
>   
>   org.codehaus.mojo
>   
> gwt-maven-plugin
>   1.1-SNAPSHOT
>   
>   
>   process-classes
>   
>  
> ${gwt.output.directory}
>   INFO
>   
>   
>   compile
>   
> 
>   
>   
>   
> 
>   
>   
> org.apache.maven.plugins
>   
> maven-compiler-plugin
>   2.0.2
>   
>   
> ${maven.compiler.source}
>   
> ${maven.compiler.target}
>   UTF-8
>   
>   
>   
>   
> javax/servlet/**
>   
>   
>   
> 
>   
>   
> org.apache.maven.plugins
>   
> maven-resources-plugin
>   2.3
>   
>   UTF-8
>   
>   
>   
>   
> org.apache.maven.plugins
> maven-antrun-plugin
> 1.2
> 
>   
>   war-folder-creation
>   process-resources
>   
>   run
>   
>   
>   
>todir="${gwt.output.directory}">
>dir="${basedir}/src/main/webapp" />
>   
>   
>   
>   
> 
>   
>   
>   
>   
> org.apache.maven.plugins
>   
> maven-war-plugin
>   
> 

Re: Order of Execution For Classes Included In A Surefire Plugin Execution

2009-06-25 Thread Stephen Connolly
A couple of points:

1. Have you considered using failsafe-maven-plugin to run your
integration tests? That way you can set up your integration test env
using pre-integration-test phase, tear it down in
post-integration-test phase and then check the results in the verify
phase... it might simplify your surefire plugin config as well.

2. I think the philosophy of surefire is that it will run test classes
in the order that it finds them.  If you need to run test classes in a
specific order, you need to create a test suite.

-Stephen

2009/6/25 Josephson, William (APG) :
> I am using Maven 2.1.0, and the surefire plugin to run integration tests.
>
> I have the following execution element within my pom:
>
>                    
>                        first
>                        integration-test
>                        
>                            test
>                        
>                        
>                            
>                                **\SAM.java
>                                **\QA3.java
>                                **\cleanupQA3.java
>                            
>                            false
>                        
>                    
>
> I would expect that the tests within class SAM would be executed first, 
> followed by the tests in class QA3 etc.
>
> But instead the tests in class QA3 are performed first.
>
> Shouldn't the tests be performed at least in the order that the classes are 
> declared?
>
> Thanks,
>
> Bill Josephson
> Cengage Learning
>
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven - Property files Question

2009-06-25 Thread David Hoffer
The resources is a standard maven folder and will be included in the
build/jar/war/etc.  Unfortunately there is no standard for the external
stuff, you can put those in a different folder and then use the assembly or
similar plugin to deal with them.

-Dave

On Thu, Jun 25, 2009 at 2:19 PM, sundar varadarajan
wrote:

> Hello,
>
> I m new to Maven and I m trying to place property and config.xml files
> outside the Jar files. Here is my current directory
>
> Src
>  main
>  java
>  resources
> test
>  java
>  resources
>
> under java, i have all the java class files and in resources folder i have
> the properties and springbatch xml files.
>
> when i package the application, the property files which are under
> src/main/resources is also getting included. I need to place this outside
> the jar file so that the application can pickup when ever i make any
> changes
> to the property. currently i need to package again whenever a small change
> is made.
>
> please help.
>
> Thanks,
> Sundar
>


Order of Execution For Classes Included In A Surefire Plugin Execution

2009-06-25 Thread Josephson, William (APG)
I am using Maven 2.1.0, and the surefire plugin to run integration tests.

I have the following execution element within my pom:


first
integration-test

test



**\SAM.java
**\QA3.java
**\cleanupQA3.java

false



I would expect that the tests within class SAM would be executed first, 
followed by the tests in class QA3 etc.

But instead the tests in class QA3 are performed first.

Shouldn't the tests be performed at least in the order that the classes are 
declared?

Thanks,

Bill Josephson
Cengage Learning



Maven - Property files Question

2009-06-25 Thread sundar varadarajan
Hello,

I m new to Maven and I m trying to place property and config.xml files
outside the Jar files. Here is my current directory

Src
 main
  java
  resources
test
 java
  resources

under java, i have all the java class files and in resources folder i have
the properties and springbatch xml files.

when i package the application, the property files which are under
src/main/resources is also getting included. I need to place this outside
the jar file so that the application can pickup when ever i make any changes
to the property. currently i need to package again whenever a small change
is made.

please help.

Thanks,
Sundar


RE: Logging Plugin Version Without Debug -X Mode

2009-06-25 Thread Mohan KR
Why don't you inject a parameter with expression ${plugin.version} in the
Mojo and 
use the info level to log it? Don't know if that's what you are asking...

/**
* @parameter expression=${plugin.version}
*/
private String pluginVersion; 
..

Thanks,
mohan kr

-Original Message-
From: Christiaan Veerman [mailto:christiaan.veerman.ma...@gmail.com] 
Sent: Thursday, June 25, 2009 3:44 PM
To: users@maven.apache.org
Subject: Logging Plugin Version Without Debug -X Mode

Hello:

I am trying to find how to log the plugin version when running my plugin.

The reason I ask is that my plugin version is not explicitly set so
maven will bring down a new version with the default daily interval
(hopefully).

The question I have is how can I get the plugin version currently
running inside the mvn reaction without running in debug mode -X.

Any help is greatly appreciated.

Cheers,

Christiaan

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



mvn site:stage loops?

2009-06-25 Thread Benson Margulies
In my multi-module project, at top-level, I run 'mvn site:stage
-DstagingDirectory=whatever"

It builds in each of the modules, over and over.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven assembly plug-in and deploy not happening?

2009-06-25 Thread lsacco

I see that the "attached" goal works, but for beta-4 it says that goal is
deprecated.  Is this a bug in the "single" goal that prevents it from being
published during the package phase?

Thanks,
Lou


Jörg Schaible-2 wrote:
> 
> Hi Andrew,
> 
> Andrew Robinson wrote:
> 
>> The maven assembly plug-in, specifically states that it will deploy
>> all the built assemblies on deploy:
>> 
>> http://maven.apache.org/plugins/maven-assembly-plugin/faq.html#deploy
>> 
>> So I have my assembly plugin executions tied to the package:
>> 
>>   
>> maven-assembly-plugin
>> 2.2-beta-2
>> 
>>   
>> make-jar
>> package
>> 
>>   assembly
> 
> 
> Use the attach goal instead.
> 
> 
>> 
>> 
>>  
> src/main/assembly/jar/
>>   
>> 
>>   mypackage.Launcher
>> 
>>   
>> 
>>   
>>   
>> make-assembly
>> package
>> 
>>   assembly
>> 
>> 
>>  
> src/main/assembly/package/
>> 
>>   
>> 
>>   
>> 
>> Now when I run mvn:deploy, it does not upload my assemblies, only my
>> project output (jar). Do I need a different version of a plugin or
>> maven or something, or is the assembly plugin FAQ wrong?
> 
> - Jörg
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Maven-assembly-plug-in-and-deploy-not-happening--tp18161292p24211944.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Logging Plugin Version Without Debug -X Mode

2009-06-25 Thread Todd Thiessen
Couldn't you use a SNAPSHOT version to do this?

> The reason I ask is that my plugin version is not explicitly 
> set so maven will bring down a new version with the default 
> daily interval (hopefully). 

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Any plugins or tools that alert users to new versions of Jars?

2009-06-25 Thread Todd Thiessen
Would this goal work?

http://maven.apache.org/plugins/maven-changes-plugin/announcement-mail-m
ojo.html

---
Todd Thiessen
 

> -Original Message-
> From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] 
> Sent: Thursday, June 25, 2009 4:40 PM
> To: Maven Users List
> Cc: users@maven.apache.org
> Subject: Re: Any plugins or tools that alert users to new 
> versions of Jars?
> 
> can you file an enhancement request agains versions-maven-plugin
> 
> Sent from my [rhymes with myPod] ;-)
> 
> On 25 Jun 2009, at 19:38, avixbaouxx 
>  wrote:
> 
> >
> > Basically that...I'm curious if there's a way to email or otherwise 
> > alert users that new versions of their dependencies exist at build 
> > time?
> >
> > Thanks!
> > --
> > View this message in context: 
> > 
> http://www.nabble.com/Any-plugins-or-tools-that-alert-users-to-new-ver
> > sions-of-Jars--tp24208843p24208843.html
> > Sent from the Maven - Users mailing list archive at Nabble.com.
> >
> >
> > 
> -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Logging Plugin Version Without Debug -X Mode

2009-06-25 Thread Christiaan Veerman
Hello:

I am trying to find how to log the plugin version when running my plugin.

The reason I ask is that my plugin version is not explicitly set so
maven will bring down a new version with the default daily interval
(hopefully).

The question I have is how can I get the plugin version currently
running inside the mvn reaction without running in debug mode -X.

Any help is greatly appreciated.

Cheers,

Christiaan

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Any plugins or tools that alert users to new versions of Jars?

2009-06-25 Thread Stephen Connolly

can you file an enhancement request agains versions-maven-plugin

Sent from my [rhymes with myPod] ;-)

On 25 Jun 2009, at 19:38, avixbaouxx  wrote:



Basically that...I'm curious if there's a way to email or otherwise  
alert

users that new versions of their dependencies exist at build time?

Thanks!
--
View this message in context: 
http://www.nabble.com/Any-plugins-or-tools-that-alert-users-to-new-versions-of-Jars--tp24208843p24208843.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Any plugins or tools that alert users to new versions of Jars?

2009-06-25 Thread avixbaouxx

To answer my own question:

http://mojo.codehaus.org/versions-maven-plugin/



avixbaouxx wrote:
> 
> Basically that...I'm curious if there's a way to email or otherwise alert
> users that new versions of their dependencies exist at build time?
> 
> Thanks!
> 

-- 
View this message in context: 
http://www.nabble.com/Any-plugins-or-tools-that-alert-users-to-new-versions-of-Jars--tp24208843p24210164.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: buildnumber-maven-plugin question

2009-06-25 Thread Wendy Smoak
On Thu, Jun 25, 2009 at 8:14 AM, David Hoffer wrote:

> I think this is because our build agents do an export instead of a checkout
> because its much faster.  How can I get this plugin to work with export?

I think the buld number plugin works off the result of 'svn info' and
as the error points out, an export is not a working copy.

You would have to get it to use the full url and do a remote svn command like
svn info http://svn.apache.org/repos/asf/continuum/trunk

-- 
Wendy

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: buildnumber-maven-plugin question

2009-06-25 Thread David Hoffer
Yeah, sorry I meant to re-post.  We did switch to checkout for release
plugin for this very reason...we did the same for this plugin and it works
great.

-Dave

On Thu, Jun 25, 2009 at 1:47 PM, Olivier Lamy  wrote:

> Afaik svn export doesn't store any svn metadata.So IMHO no way to get the
> rev number.
>
> --
> Olivier
>
> 2009/6/25 David Hoffer 
>
> > I'm trying to use buildnumber-maven-plugin to get the SVN revision so I
> can
> > put it in the manifest.  However I get the following error when this is
> run
> > on our build agents (TeamCity)
> >
> > *09:07:00]:* *[INFO] Cannot get the revision information from the scm
> > repository : * *[09:07:00]:* *Exception while executing SCM command.*
> > *[09:07:00]:* *svn: '/home/teamcity/buildAgent2/work/317fa80dac6b46ac' is
> > not a working copy*
> >
> > I think this is because our build agents do an export instead of a
> checkout
> > because its much faster.  How can I get this plugin to work with export?
> > BTW, the release plugin does work this way.
> >
> > -Dave
> >
>


Re: buildnumber-maven-plugin question

2009-06-25 Thread Olivier Lamy
Afaik svn export doesn't store any svn metadata.So IMHO no way to get the
rev number.

--
Olivier

2009/6/25 David Hoffer 

> I'm trying to use buildnumber-maven-plugin to get the SVN revision so I can
> put it in the manifest.  However I get the following error when this is run
> on our build agents (TeamCity)
>
> *09:07:00]:* *[INFO] Cannot get the revision information from the scm
> repository : * *[09:07:00]:* *Exception while executing SCM command.*
> *[09:07:00]:* *svn: '/home/teamcity/buildAgent2/work/317fa80dac6b46ac' is
> not a working copy*
>
> I think this is because our build agents do an export instead of a checkout
> because its much faster.  How can I get this plugin to work with export?
> BTW, the release plugin does work this way.
>
> -Dave
>


Any plugins or tools that alert users to new versions of Jars?

2009-06-25 Thread avixbaouxx

Basically that...I'm curious if there's a way to email or otherwise alert
users that new versions of their dependencies exist at build time?

Thanks!
-- 
View this message in context: 
http://www.nabble.com/Any-plugins-or-tools-that-alert-users-to-new-versions-of-Jars--tp24208843p24208843.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Overriding values with blank values

2009-06-25 Thread Benson Margulies
In the base configuration of my parent POM, I configured some
excludePackageNames to the javadoc plugin.

Then I tried to create a profile that said  to
ask for uncensored javadoc.

This didn't appear to work. Should it have?

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Grails Maven plugin

2009-06-25 Thread Marouane Amraoui
Hi,
I use grails maven plugin.
I have Multi project :

Parent
  -àchild1 (jar)
  -àchild2 (jar)
  -àchild3 (war : grails web application)


I launch mvn clean install on parent pom. So I need to exclude packaging phase 
for project child3 (grails web application) ???
For child3 I don't want to generate war.

Any idea
thx



Re: Corrupt downloads on Windows

2009-06-25 Thread Benson Margulies
No. These are core Maven plugins.

Could it be to do with long pathnames with spaces in the
localRepository pathname?

On Thu, Jun 25, 2009 at 12:28 PM, Wayne Fay wrote:
>> Using either JDK 1.5 or JDK 1.6, Windows users here are experiencing a
>> lot of corrupted files when running maven. I've seen checksum errors.
>
> Are you pulling those corrupted artifacts from the java.net repo (via
> Nexus of course)? If so, several people are talking about problems
> with that repo in another thread -- "artifacts not downloading".
>
> Wayne
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Very weird jetty-plugin behaviour (excluding plugin dependency when run from parent module)

2009-06-25 Thread aldana

aaargh, the real cause was different.

Inside the parent-pom I mistakenly added the plugin-definition to 
instead of . So in the end i  section
resolved to an empty set. 

Though I find it a bit weird that when doing a multimodule build a
parent-module can override the  setting of a plugin of a child
module. I would expect the opposite.


aldana wrote:
> 
> I checked out a newer version of jetty plugin
> (http://repo1.maven.org/maven2/org/mortbay/jetty/jetty-maven-plugin/7.0.0.1beta2/).
> The problem is gone there.
> 
> It seems that my problem is a bug of jetty plugin 6.1.18.
> 
> 
> aldana wrote:
>> 
>> hi,
>> 
>> my setting is as follows:
>> 
>> rootModule
>>   -webapp
>> 
>> In pre-integration-test I start webapp with jetty plugin
>> (webapp/pom.xml):
>> 
>>  
>>
>>maven-jetty-plugin
>>6.1.18
>>   
>>   
>>   
>> org.hsqldb
>> hsqldb
>> 1.8.0.10
>>  
>>   
>> 
>> 
>> --
>> 
>> When running 'mvn pre-integration-test' inside webapp/ jetty starts up
>> fine with the hsqdlb.
>> 
>> But it fails when running the same command inside rootModule/ with
>> ClassNotFoundError hsql.jdbcDriver.
>> 
>> Why the heck is the  section ignored for jetty plugin when
>> running it from the parent module? It is a real miracle because the
>> reactor itself should do nothing as also descending to the webapp/ folder
>> and run the maven command.
>> 
>> thanks.
>> 
>> 
>> 
>> 
> 
> 


-
manuel aldana
aldana((at))gmx.de
software-engineering blog: http://www.aldana-online.de
-- 
View this message in context: 
http://www.nabble.com/Very-weird-jetty-plugin-behaviour-%28excluding-plugin-dependency-when-run-from-parent-module%29-tp24205952p24207485.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Adding Dependency of other Child Project

2009-06-25 Thread Wendy Smoak
On Thu, Jun 25, 2009 at 7:51 AM, n000b wrote:

> How can I
> let the Child B to know that the Child A has been build & the jar is added
> to the class path while building the Child B project.

I think you answered it in your subject line. :)  Add a dependency in B's pom:


  my.group
  A
  ${project.version}


-- 
Wendy

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: how to generally skip pre and post-integration test phase

2009-06-25 Thread Wayne Fay
>>> unfortunately jetty plugin does not offer a skip parameter itself.

You could also work with the Jetty plugin people to add a skip parameter...

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Corrupt downloads on Windows

2009-06-25 Thread Wayne Fay
> Using either JDK 1.5 or JDK 1.6, Windows users here are experiencing a
> lot of corrupted files when running maven. I've seen checksum errors.

Are you pulling those corrupted artifacts from the java.net repo (via
Nexus of course)? If so, several people are talking about problems
with that repo in another thread -- "artifacts not downloading".

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Disable host key checking in wagon-ssh provider

2009-06-25 Thread Claudio Di Vita

I need to disable host key checking for wagon-ssh providerhow I can
disable it ??

I notice that the provider get the value (ask, yes or no) from method
AbstractKnownHostsProvider# getHostKeyChecking(), but I cannot understand
how to set this property.

Thank you for the help,

Claudio


-
.not everything that counts can be counted
-- 
View this message in context: 
http://www.nabble.com/Disable-host-key-checking-in-wagon-ssh-provider-tp24206541p24206541.html
Sent from the Wagon - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: wagon-users-unsubscr...@maven.apache.org
For additional commands, e-mail: wagon-users-h...@maven.apache.org



Re: Very weird jetty-plugin behaviour (excluding plugin dependency when run from parent module)

2009-06-25 Thread aldana

I checked out a newer version of jetty plugin
(http://repo1.maven.org/maven2/org/mortbay/jetty/jetty-maven-plugin/7.0.0.1beta2/).
The problem is gone there.

It seems that my problem is a bug of jetty plugin 6.1.18.


aldana wrote:
> 
> hi,
> 
> my setting is as follows:
> 
> rootModule
>   -webapp
> 
> In pre-integration-test I start webapp with jetty plugin (webapp/pom.xml):
> 
>  
>
>maven-jetty-plugin
>6.1.18
>   
>   
>   
> org.hsqldb
> hsqldb
> 1.8.0.10
>  
>   
> 
> 
> --
> 
> When running 'mvn pre-integration-test' inside webapp/ jetty starts up
> fine with the hsqdlb.
> 
> But it fails when running the same command inside rootModule/ with
> ClassNotFoundError hsql.jdbcDriver.
> 
> Why the heck is the  section ignored for jetty plugin when
> running it from the parent module? It is a real miracle because the
> reactor itself should do nothing as also descending to the webapp/ folder
> and run the maven command.
> 
> thanks.
> 
> 
> 
> 


-
manuel aldana
aldana((at))gmx.de
software-engineering blog: http://www.aldana-online.de
-- 
View this message in context: 
http://www.nabble.com/Very-weird-jetty-plugin-behaviour-%28excluding-plugin-dependency-when-run-from-parent-module%29-tp24205952p24206510.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Very weird jetty-plugin behaviour (excluding plugin dependency when run from parent module)

2009-06-25 Thread aldana

hi,

my setting is as follows:

rootModule
  -webapp

In pre-integration-test I start webapp with jetty plugin (webapp/pom.xml):

 
   
   maven-jetty-plugin
   6.1.18
  
  
  
org.hsqldb
hsqldb
1.8.0.10
 
  


--

When running 'mvn pre-integration-test' inside webapp/ jetty starts up fine
with the hsqdlb.

But it fails when running the same command inside rootModule/ with
ClassNotFoundError hsql.jdbcDriver.

Why the heck is the  section ignored for jetty plugin when
running it from the parent module? It is a real miracle because the reactor
itself should do nothing as also descending to the webapp/ folder and run
the maven command.

thanks.




-
manuel aldana
aldana((at))gmx.de
software-engineering blog: http://www.aldana-online.de
-- 
View this message in context: 
http://www.nabble.com/Very-weird-jetty-plugin-behaviour-%28excluding-plugin-dependency-when-run-from-parent-module%29-tp24205952p24205952.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org




Corrupt downloads on Windows

2009-06-25 Thread Benson Margulies
Using either JDK 1.5 or JDK 1.6, Windows users here are experiencing a
lot of corrupted files when running maven. I've seen checksum errors.
I've seem POMs get 'downloaded' containing the hex content of a
checksum. I've seen 'missing class' errors that disappeared by
deleting the jar from the local repo and letting it re-download.

The local configuration is Maven 2.1.0 using a mirror configuration
pointing to nexus. Since I've never seen any problems on linux or
Macos machines, it's hard to see how this can be blamed on nexus, but
what do I know?

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: how to generally skip pre and post-integration test phase

2009-06-25 Thread aldana



Wendy Smoak-3 wrote:
> 
> On Thu, Jun 25, 2009 at 7:41 AM, aldana wrote:
> 
>> I am controlling running integration-tests by setting a property
>> skip.integration.test (easier as setting up an integration test profile).
>>
>> problem is that I also want to skip the pre-integration and
>> post-integration
>> phase for that (jetty start/stop plugin runs under this phases).
>> unfortunately jetty plugin does not offer a skip parameter itself.
>>
> 
> You can't skip phases, but you can put the Jetty plugin executions
> into a profile, and activate that with a property.
> 
> -- 
> Wendy
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 
> 

I know that profiles would work for that, but I wanted to avoid all these
extra verbose profile definitions for this little skip distinction But I
guess I have to go this path :(

-
manuel aldana
aldana((at))gmx.de
software-engineering blog: http://www.aldana-online.de
-- 
View this message in context: 
http://www.nabble.com/how-to-generally-skip-pre-and-post-integration-test-phase-tp24204569p24205758.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: how to generally skip pre and post-integration test phase

2009-06-25 Thread Wendy Smoak
On Thu, Jun 25, 2009 at 7:41 AM, aldana wrote:

> I am controlling running integration-tests by setting a property
> skip.integration.test (easier as setting up an integration test profile).
>
> problem is that I also want to skip the pre-integration and post-integration
> phase for that (jetty start/stop plugin runs under this phases).
> unfortunately jetty plugin does not offer a skip parameter itself.
>

You can't skip phases, but you can put the Jetty plugin executions
into a profile, and activate that with a property.

-- 
Wendy

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven with Hibernate/Multiple POM files

2009-06-25 Thread David Weintraub
> 1/ A POM is not a programming language, but a project description. It is
> pointless to define the properties section in the top of the file in the
> hope that Maven sees the values first before you use them. You can
> call "mvn help:effective-pom" to see what Maven actually uses for the
> project description in the end.

It could be that I simply don't understand how to do something. We
have a continuous build system, and label each of our builds with a
build number. We like that build number to part of the maven artifact
itself. For example, aim-2.1.2-D-32-bin.tar.gz where 2.1.2-D-32 is our
build number.

However, there is no need to put these builds into our Maven
repository since our continuous build system makes them available and
manages them. Otherwise, I would have to do a constant purge our our
Maven repository since we can do 10 to 20 builds each day.

This is why I have the product's version as a property. I can pass it
into the pom when a build is done. At the same time, I need to allow
developers to run the builds themselves, and not have
aim-${aim.version}-bin.tar.gz as the name of the maven artifact. In
order to avoid this, I put the property inside of the POM. I could put
this anywhere directly under the , but putting it at top
allows the developers to easily find it when they do want to change
the default (such as when we start work on version 2.1.3).

So, what is the correct way to set my projects in order to be able to
have a default version number, yet allow me to override it on the
command line?

That also doesn't cover my other problem: I am using
net.sf.maven-har:maven-har-plugin which requires me to have my service
file called jboss-service.xml living in the resource's META-INF
directory. Unfortunately, our service file is called
hibernate-service.xml.

Is it possible to somehow redefine the name of this file in your
pom.xml? If I was writing this code from scratch, I would simply use
the default name. But, I have to make sure that the structure of my
Maven artifact matches the output of our current build artifact.

Where can I at least find documentation on this plugin? I got the
basic POM structure by doing a mvn archetype:generate and requesting a
har project.

-- 
David Weintraub
qazw...@gmail.com

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Packaging and artifact extension.

2009-06-25 Thread Erick Dovale
Folks,
How could I have the artifact of a project use an extension different that
the packaging name?
I am writing a plugin that creates a zip file with content relevant to a
particular application. I created a new packaging type called 'mypackaging'
and it turns out that maven is installing a file called
artifact-version.mypackaging.
I need to have maven installed this file as a zip. Any ideas?

Thanks.

Erick.


Re: Maven Assembly Question

2009-06-25 Thread virtualshock

BumpAnybody have some suggestions?
-- 
View this message in context: 
http://www.nabble.com/Maven-Assembly-Question-tp23833852p24205262.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



buildnumber-maven-plugin question

2009-06-25 Thread David Hoffer
I'm trying to use buildnumber-maven-plugin to get the SVN revision so I can
put it in the manifest.  However I get the following error when this is run
on our build agents (TeamCity)

*09:07:00]:* *[INFO] Cannot get the revision information from the scm
repository : * *[09:07:00]:* *Exception while executing SCM command.*
*[09:07:00]:* *svn: '/home/teamcity/buildAgent2/work/317fa80dac6b46ac' is
not a working copy*

I think this is because our build agents do an export instead of a checkout
because its much faster.  How can I get this plugin to work with export?
BTW, the release plugin does work this way.

-Dave


Adding Dependency of other Child Project

2009-06-25 Thread n000b

Hi*!

I am moving my project from ant to maven2. My project consists of multiple
modules (ejbs/wars). I have created a base/parent project and added modules
to it, so far so good. 

Now, some of my projects depend upon some other child projects of the same
parent to be built i.e. Child B depend upon Child A. I can build the Child A
project (going to Child A dir and executing the "mvn package" command. This
generates a jar file (which is needed for the Child B project). How can I
let the Child B to know that the Child A has been build & the jar is added
to the class path while building the Child B project.

Thanks in advance for your time!
-- 
View this message in context: 
http://www.nabble.com/Adding-Dependency-of-other-Child-Project-tp24204718p24204718.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



how to generally skip pre and post-integration test phase

2009-06-25 Thread aldana

I am controlling running integration-tests by setting a property
skip.integration.test (easier as setting up an integration test profile).

problem is that I also want to skip the pre-integration and post-integration
phase for that (jetty start/stop plugin runs under this phases).
unfortunately jetty plugin does not offer a skip parameter itself.

is there a way to tell maven to skip a certain execution phase by a
parameter?

thanks

-
manuel aldana
aldana((at))gmx.de
software-engineering blog: http://www.aldana-online.de
-- 
View this message in context: 
http://www.nabble.com/how-to-generally-skip-pre-and-post-integration-test-phase-tp24204569p24204569.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Newbie complience question

2009-06-25 Thread Edelson, Justin
It appears to me that your property name doesn't match how you have the
compiler plugin configured. 

Property:
1.5

Plugin Config:
${maven.compiler.target}

Using the -X command line option or help:effective-pom is helpful in
diagnosing this type of problem.

Justin

-Original Message-
From: Dallas [mailto:dalla_man...@hotmail.com] 
Sent: Thursday, June 25, 2009 8:20 AM
To: users@maven.apache.org
Subject: Newbie complience question


Hi

I recently started using Maven, and I will hopefully be implementing in
for every single project I start from now on :-)

However, I have some issues when building one of my gwt projects.

I get an error like this

[INFO] Compiling 1 source file to
F:\Data\Workspace\testapp\target\classes
[ERROR]
Mojo: 
org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
FAILED for project: 
maven-test:testapp:war:0.0.1-SNAPSHOT
Reason:
Failure executing javac, but could not parse the error:
javac: source release 1.5 requires target release 1.5


The Mojo plugin looks like this


org.apache.maven.plugins
maven-compiler-plugin
2.0.2

${maven.compiler.source}
${maven.compiler.target}
UTF-8


javax/servlet/**




and my properties looks like this


1.6.4
1.5
1.5
${basedir}/target/gwt
Application


Why does the comiplier think I want to use something else for target
than
1.5 ?

Posting entire POM below


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
maven-test
testapp
war
0.0.1-SNAPSHOT
gwt-maven-archetype-project

1.6.4
1.5
1.5

${basedir}/target/gwt
Application





junit
junit
3.8.1
test




com.google.gwt
gwt-user
${gwt.version}
provided


com.google.gwt
gwt-servlet
${gwt.version}
runtime





org.codehaus.mojo

gwt-maven-plugin
1.1-SNAPSHOT


process-classes

 
${gwt.output.directory}
INFO


compile








org.apache.maven.plugins

maven-compiler-plugin
2.0.2


${maven.compiler.source}

${maven.compiler.target}
UTF-8




javax/servlet/**






org.apache.maven.plugins

maven-resources-plugin
2.3

UTF-8




org.apache.maven.plugins
maven-antrun-plugin
1.2


war-folder-creation
process-resources

run










  



org.apache.maven.plugins

maven-war-plugin




${basedir}/target/${project.artifactId}-${project.version}/${
gwt.module.alias}

${gwt.module.alias}






 

Re: How include DLLs in manifest class path?

2009-06-25 Thread Sahoo
I don't think dlls are looked up in classpath. JVM locates them using 
java.library.path value. IIRC, this property includes PATH value in 
Windows and LD_LIBRARY_PATH on Unix. You can add your own directory path 
to either the property or to appropriate environment property.


Thanks,
Sahoo

marc2020 wrote:

I've just mavenised a project which contained several 3rd party DLLs

I've included the DLLs in the POM as dependancies, with the type = dll

When the project is built, the lib folder correctly contains all the DLLs -
however, at the point my project attempts to call functions in a DLL,
classes in that DLL cannot be found.

I believe the problem is, when the jar is built, the manifest doesn't
reference any of the DLLs in the class-path section. It only contains JARs,
despite them being dependancies in the POM


How can I alter the POM, such Maven references the DLLs in the manifest's
class-path?

Thanks for any help !!


  


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: artifacts not downloading

2009-06-25 Thread Todd Thiessen
We have also been having some trouble with java.net. We are using Nexus
as our repo manager and it will sometimes take an extremely long time to
download an artifact to the local repository that Nexus already has
cached. This only seems to happen with java.net artifact. It also
doesn't seem to be consistent as to which artifact it has trouble
downloading. It seems to be random.

We have been doing some in depth analysis of the problem and don't as of
yet have a solution.

---
Todd Thiessen
 

> -Original Message-
> From: Wayne Fay [mailto:wayne...@gmail.com] 
> Sent: Thursday, June 25, 2009 2:20 AM
> To: Maven Users List
> Subject: Re: artifacts not downloading
> 
> > (which it did). I'll check the effective poms because I'm 
> sure that if 
> > it were one of the commonly used mirrors, I wouldn't be the 
> only one 
> > having the problem.
> 
> I've seen this specific problem reported just recently by 
> another user here on Maven Users. I consider this a 
> bad/broken mirror at dev.java.net but feel that Maven should 
> perform some minimal validation of what it downloaded before 
> saving to the local repo cache (eg the Jar is really a Jar, 
> and the pom is not an HTML file, etc).
> 
> Wayne
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Newbie complience question

2009-06-25 Thread Dallas

Hi

I recently started using Maven, and I will hopefully be implementing in for
every single project I start from now on :-)

However, I have some issues when building one of my gwt projects.

I get an error like this

[INFO] Compiling 1 source file to F:\Data\Workspace\testapp\target\classes
[ERROR] 
Mojo: 
org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
FAILED for project: 
maven-test:testapp:war:0.0.1-SNAPSHOT
Reason:
Failure executing javac, but could not parse the error:
javac: source release 1.5 requires target release 1.5


The Mojo plugin looks like this


org.apache.maven.plugins
maven-compiler-plugin
2.0.2

${maven.compiler.source}
${maven.compiler.target}
UTF-8


javax/servlet/**




and my properties looks like this


1.6.4
1.5
1.5
${basedir}/target/gwt
Application


Why does the comiplier think I want to use something else for target than
1.5 ?

Posting entire POM below


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
maven-test
testapp
war
0.0.1-SNAPSHOT
gwt-maven-archetype-project

1.6.4
1.5
1.5

${basedir}/target/gwt
Application





junit
junit
3.8.1
test




com.google.gwt
gwt-user
${gwt.version}
provided


com.google.gwt
gwt-servlet
${gwt.version}
runtime





org.codehaus.mojo
gwt-maven-plugin
1.1-SNAPSHOT


process-classes

${gwt.output.directory}
INFO


compile







org.apache.maven.plugins
maven-compiler-plugin
2.0.2


${maven.compiler.source}

${maven.compiler.target}
UTF-8




javax/servlet/**





org.apache.maven.plugins
maven-resources-plugin
2.3

UTF-8




org.apache.maven.plugins
maven-antrun-plugin
1.2


war-folder-creation
process-resources

run










  


org.apache.maven.plugins
maven-war-plugin




${basedir}/target/${project.artifactId}-${project.version}/${gwt.module.alias}

${gwt.module.alias}









-- 
View this message in context: 
http://www.nabble.com/Newbie-complience-qu

How include DLLs in manifest class path?

2009-06-25 Thread marc2020

I've just mavenised a project which contained several 3rd party DLLs

I've included the DLLs in the POM as dependancies, with the type = dll

When the project is built, the lib folder correctly contains all the DLLs -
however, at the point my project attempts to call functions in a DLL,
classes in that DLL cannot be found.

I believe the problem is, when the jar is built, the manifest doesn't
reference any of the DLLs in the class-path section. It only contains JARs,
despite them being dependancies in the POM


How can I alter the POM, such Maven references the DLLs in the manifest's
class-path?

Thanks for any help !!


-- 
View this message in context: 
http://www.nabble.com/How-include-DLLs-in-manifest-class-path--tp24201480p24201480.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Dependency Management

2009-06-25 Thread Martin Höller
Hi!

On Thursday 25 June 2009 Peter Horlock wrote:
> Hi,
>
> I've got a question regarding dependency management -
> I've got a project with a default "tree layout" - it uses subprojects,
> which again are using subprojects which again...
>
> Now, one of these subprojects defined a dependency scope as "compile".
> It's "grand-grand-parent project" or the "root project" defined the same
> dependency as scope "test". Now the dependency was set to test and as a
> result
> was not added to the war when deployed. The error how ever was only found
> on runtime and the entire project failed on production! :-(
>
> Why is that so? Shouldn't dependency, if it is needed, stay there?

This problem was discussed just about a month ago. Here is the link to the 
thread: 
http://www.nabble.com/Transitive-and-inherited-dependencies---potential-bug,-or-my--misunderstanding-of-the-mechanism-to23403092.html#a23436523

hth,
- martin


signature.asc
Description: This is a digitally signed message part.


Dependency Management

2009-06-25 Thread Peter Horlock
Hi,

I've got a question regarding dependency management -
I've got a project with a default "tree layout" - it uses subprojects,
which again are using subprojects which again...

Now, one of these subprojects defined a dependency scope as "compile".
It's "grand-grand-parent project" or the "root project" defined the same
dependency as scope "test". Now the dependency was set to test and as a
result
was not added to the war when deployed. The error how ever was only found on
runtime and the entire project failed on production! :-(

Why is that so? Shouldn't dependency, if it is needed, stay there?

Thanks in advance,

Peter