Re: Very odd central maven repo problem

2007-07-31 Thread Paul Smith



It looks like your running a *nix, but can you tell us specifically
what OS, JDK version, Maven version, etc? We've had Windows users run
into similar problems who were having troubles due to overzealous
antivirus software, etc.

maven 2.0.6 running on both OSX and RedHat EL3 (happens across  
everything at the moment).


If I manually install that 2.0.6 pom from the one copy I have locally  
(I must have retrieved it successfully through maven at one point) it  
works fine, obviously because it doesn't have to download it.


Can someone please try moving aside their 2.0.6 maven plugin pom  
directory and seeing if they get the same thing?


Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Very odd central maven repo problem

2007-07-31 Thread Wayne Fay
Others have reported similar problems with wget. Without knowing this
for certain, I would assume that the repo1 owners simply do not like
people using wget to pull their entire repo down, so they might be
blocking it somehow. I believe the Maven website instructs people to
use rsync if they want to pull down their own copy of the repo (its
well over 10gb at this point, I'm sure).

It looks like your running a *nix, but can you tell us specifically
what OS, JDK version, Maven version, etc? We've had Windows users run
into similar problems who were having troubles due to overzealous
antivirus software, etc.

Wayne

On 8/1/07, Paul Smith <[EMAIL PROTECTED]> wrote:
> This has happened before, and then appeared to magically resolve
> itself, but it's quite sticky at the moment.
>
> It seems to stem from this weirdness. Given a URL on the central Repo:
>
> http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.6/
> maven-2.0.6.pom
>
> 1) I can browse using Firefox - OK
> 2) I can use command line 'curl' to view (curl http://repo1.maven.org/
> maven2/org/apache/maven/maven/2.0.6/maven-2.0.6.pom)
> 3) I CANNOT use 'wget' to retrieve it (wget http://repo1.maven.org/
> maven2/org/apache/maven/maven/2.0.6/maven-2.0.6.pom)
>
>
> wget reports 403 Forbidden:
>
> [EMAIL PROTECTED] tmp]$ wget http://repo1.maven.org/maven2/org/apache/
> maven/maven/2.0.4/maven-2.0.4.pom-2.0.4.pom
> --15:37:16--  http://repo1.maven.org/maven2/org/apache/maven/maven/
> 2.0.4/maven-2.0.4.pom
>=> `maven-2.0.4.pom'
> Resolving repo1.maven.org... 63.246.20.112
> Connecting to repo1.maven.org|63.246.20.112|:80... connected.
> HTTP request sent, awaiting response... 403 Forbidden
> 15:37:18 ERROR 403: Forbidden.
>
> [EMAIL PROTECTED] tmp]$ wget http://repo1.maven.org/maven2/org/apache/
> maven/maven/2.0.6/maven-2.0.6.pom
> --15:38:22--  http://repo1.maven.org/maven2/org/apache/maven/maven/
> 2.0.6/maven-2.0.6.pom
>=> `maven-2.0.6.pom'
> Resolving repo1.maven.org... 63.246.20.112
> Connecting to repo1.maven.org|63.246.20.112|:80... connected.
> HTTP request sent, awaiting response... 403 Forbidden
> 15:38:22 ERROR 403: Forbidden.
>
> [
>
> I think this is why our Archiva repo says this:
>
> 337271615 [SocketListener0-0] ERROR
> org.apache.maven.archiva.policies.PreDownloadPolicy:cache-failures -
> Unknown checksum policyCode [cache]
> 337271615 [SocketListener0-0] INFO
> org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default -
> Failed pre-download policies - /volume2/maven2/org/apache/maven/maven/
> 2.0.6/maven-2.0.6.pom
> 337273843 [SocketListener0-0] WARN
> org.apache.maven.archiva.policies.PostDownloadPolicy:checksum - SHA1
> is incorrect for /volume2/maven2/org/apache/maven/maven/2.0.6/
> maven-2.0.6.pom
> 337273843 [SocketListener0-0] WARN
> org.apache.maven.archiva.policies.PostDownloadPolicy:checksum - MD5
> is incorrect for /volume2/maven2/org/apache/maven/maven/2.0.6/
> maven-2.0.6.pom
> 337273843 [SocketListener0-0] INFO
> org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default -
> Failed post-download policies - /volume2/maven2/org/apache/maven/
> maven/2.0.6/maven-2.0.6.pom
>
>
> And why when I temporarily remove the mirror settings to archiva and
> manually move an originally downloaded 2.0.6 set of pom details, I
> still get this:
> 
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '1991be0ed3e1820e135201406d5acabf8c08d426'; remote =
> '218016709d90d14b64bfb1de3a86a2247e8873db' - RETRYING
> Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven/
> 2.0.6/maven-2.0.6.pom
> 8K downloaded
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '1991be0ed3e1820e135201406d5acabf8c08d426'; remote =
> '218016709d90d14b64bfb1de3a86a2247e8873db' - IGNORING
>
>
>
> Is there something wacky with the repository?  It seems to eventually
> go away.
>
> Paul Smith
> Core Engineering Manager
>
> Aconex
> The easy way to save time and money on your project
>
> 696 Bourke Street, Melbourne,
> VIC 3000, Australia
> Tel: +61 3 9240 0200  Fax: +61 3 9240 0299
> Email: [EMAIL PROTECTED]  www.aconex.com
>
> This email and any attachments are intended solely for the addressee.
> The contents may be privileged, confidential and/or subject to
> copyright or other applicable law. No confidentiality or privilege is
> lost by an erroneous transmission. If you have received this e-mail
> in error, please let us know by reply e-mail and delete or destroy
> this mail and all copies. If you are not the intended recipient of
> this message you must not disseminate, copy or take any action in
> reliance on it. The sender takes no responsibility for the effect of
> this message upon the recipient's computer system.
>
>
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Very odd central maven repo problem

2007-07-31 Thread Paul Smith


On 01/08/2007, at 4:01 PM, Milos Kleint wrote:

AFAIK that's intentional. To avoid people downloading the whole  
repo through wget. rsynch is the preferred method I think.




Then why is curl not rejected?  Why is Archiva failing?  Why is my  
local mvn retrieval also failing?


I'm happy to rsync, but I don't understand why I have to do this,  
given it should be one of the initial things that a fresh maven  
install would need to pull down?


cheers,

Paul


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Very odd central maven repo problem

2007-07-31 Thread Milos Kleint
AFAIK that's intentional. To avoid people downloading the whole repo 
through wget. rsynch is the preferred method I think.


Milos


Paul Smith wrote:
This has happened before, and then appeared to magically resolve 
itself, but it's quite sticky at the moment.


It seems to stem from this weirdness. Given a URL on the central Repo:

http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.6/maven-2.0.6.pom 



1) I can browse using Firefox - OK
2) I can use command line 'curl' to view (curl 
http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.6/maven-2.0.6.pom) 

3) I CANNOT use 'wget' to retrieve it (wget 
http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.6/maven-2.0.6.pom) 




wget reports 403 Forbidden:

[EMAIL PROTECTED] tmp]$ wget 
http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.4/maven-2.0.4.pom-2.0.4.pom 

--15:37:16--  
http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.4/maven-2.0.4.pom 


   => `maven-2.0.4.pom'
Resolving repo1.maven.org... 63.246.20.112
Connecting to repo1.maven.org|63.246.20.112|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
15:37:18 ERROR 403: Forbidden.

[EMAIL PROTECTED] tmp]$ wget 
http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.6/maven-2.0.6.pom 

--15:38:22--  
http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.6/maven-2.0.6.pom 


   => `maven-2.0.6.pom'
Resolving repo1.maven.org... 63.246.20.112
Connecting to repo1.maven.org|63.246.20.112|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
15:38:22 ERROR 403: Forbidden.

[

I think this is why our Archiva repo says this:

337271615 [SocketListener0-0] ERROR 
org.apache.maven.archiva.policies.PreDownloadPolicy:cache-failures - 
Unknown checksum policyCode [cache]
337271615 [SocketListener0-0] INFO 
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default - 
Failed pre-download policies - 
/volume2/maven2/org/apache/maven/maven/2.0.6/maven-2.0.6.pom
337273843 [SocketListener0-0] WARN 
org.apache.maven.archiva.policies.PostDownloadPolicy:checksum - SHA1 
is incorrect for 
/volume2/maven2/org/apache/maven/maven/2.0.6/maven-2.0.6.pom
337273843 [SocketListener0-0] WARN 
org.apache.maven.archiva.policies.PostDownloadPolicy:checksum - MD5 is 
incorrect for 
/volume2/maven2/org/apache/maven/maven/2.0.6/maven-2.0.6.pom
337273843 [SocketListener0-0] INFO 
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default - 
Failed post-download policies - 
/volume2/maven2/org/apache/maven/maven/2.0.6/maven-2.0.6.pom



And why when I temporarily remove the mirror settings to archiva and 
manually move an originally downloaded 2.0.6 set of pom details, I 
still get this:


[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 
'1991be0ed3e1820e135201406d5acabf8c08d426'; remote = 
'218016709d90d14b64bfb1de3a86a2247e8873db' - RETRYING
Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.6/maven-2.0.6.pom 


8K downloaded
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 
'1991be0ed3e1820e135201406d5acabf8c08d426'; remote = 
'218016709d90d14b64bfb1de3a86a2247e8873db' - IGNORING




Is there something wacky with the repository?  It seems to eventually 
go away.


Paul Smith
Core Engineering Manager

Aconex
The easy way to save time and money on your project

696 Bourke Street, Melbourne,
VIC 3000, Australia
Tel: +61 3 9240 0200  Fax: +61 3 9240 0299
Email: [EMAIL PROTECTED]  www.aconex.com

This email and any attachments are intended solely for the addressee. 
The contents may be privileged, confidential and/or subject to 
copyright or other applicable law. No confidentiality or privilege is 
lost by an erroneous transmission. If you have received this e-mail in 
error, please let us know by reply e-mail and delete or destroy this 
mail and all copies. If you are not the intended recipient of this 
message you must not disseminate, copy or take any action in reliance 
on it. The sender takes no responsibility for the effect of this 
message upon the recipient's computer system.








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Very odd central maven repo problem

2007-07-31 Thread Paul Smith
This has happened before, and then appeared to magically resolve  
itself, but it's quite sticky at the moment.


It seems to stem from this weirdness. Given a URL on the central Repo:

http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.6/ 
maven-2.0.6.pom


1) I can browse using Firefox - OK
2) I can use command line 'curl' to view (curl http://repo1.maven.org/ 
maven2/org/apache/maven/maven/2.0.6/maven-2.0.6.pom)
3) I CANNOT use 'wget' to retrieve it (wget http://repo1.maven.org/ 
maven2/org/apache/maven/maven/2.0.6/maven-2.0.6.pom)



wget reports 403 Forbidden:

[EMAIL PROTECTED] tmp]$ wget http://repo1.maven.org/maven2/org/apache/ 
maven/maven/2.0.4/maven-2.0.4.pom-2.0.4.pom
--15:37:16--  http://repo1.maven.org/maven2/org/apache/maven/maven/ 
2.0.4/maven-2.0.4.pom

   => `maven-2.0.4.pom'
Resolving repo1.maven.org... 63.246.20.112
Connecting to repo1.maven.org|63.246.20.112|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
15:37:18 ERROR 403: Forbidden.

[EMAIL PROTECTED] tmp]$ wget http://repo1.maven.org/maven2/org/apache/ 
maven/maven/2.0.6/maven-2.0.6.pom
--15:38:22--  http://repo1.maven.org/maven2/org/apache/maven/maven/ 
2.0.6/maven-2.0.6.pom

   => `maven-2.0.6.pom'
Resolving repo1.maven.org... 63.246.20.112
Connecting to repo1.maven.org|63.246.20.112|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
15:38:22 ERROR 403: Forbidden.

[

I think this is why our Archiva repo says this:

337271615 [SocketListener0-0] ERROR  
org.apache.maven.archiva.policies.PreDownloadPolicy:cache-failures -  
Unknown checksum policyCode [cache]
337271615 [SocketListener0-0] INFO  
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default -  
Failed pre-download policies - /volume2/maven2/org/apache/maven/maven/ 
2.0.6/maven-2.0.6.pom
337273843 [SocketListener0-0] WARN  
org.apache.maven.archiva.policies.PostDownloadPolicy:checksum - SHA1  
is incorrect for /volume2/maven2/org/apache/maven/maven/2.0.6/ 
maven-2.0.6.pom
337273843 [SocketListener0-0] WARN  
org.apache.maven.archiva.policies.PostDownloadPolicy:checksum - MD5  
is incorrect for /volume2/maven2/org/apache/maven/maven/2.0.6/ 
maven-2.0.6.pom
337273843 [SocketListener0-0] INFO  
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default -  
Failed post-download policies - /volume2/maven2/org/apache/maven/ 
maven/2.0.6/maven-2.0.6.pom



And why when I temporarily remove the mirror settings to archiva and  
manually move an originally downloaded 2.0.6 set of pom details, I  
still get this:


[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =  
'1991be0ed3e1820e135201406d5acabf8c08d426'; remote =  
'218016709d90d14b64bfb1de3a86a2247e8873db' - RETRYING
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven/ 
2.0.6/maven-2.0.6.pom

8K downloaded
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =  
'1991be0ed3e1820e135201406d5acabf8c08d426'; remote =  
'218016709d90d14b64bfb1de3a86a2247e8873db' - IGNORING




Is there something wacky with the repository?  It seems to eventually  
go away.


Paul Smith
Core Engineering Manager

Aconex
The easy way to save time and money on your project

696 Bourke Street, Melbourne,
VIC 3000, Australia
Tel: +61 3 9240 0200  Fax: +61 3 9240 0299
Email: [EMAIL PROTECTED]  www.aconex.com

This email and any attachments are intended solely for the addressee.  
The contents may be privileged, confidential and/or subject to  
copyright or other applicable law. No confidentiality or privilege is  
lost by an erroneous transmission. If you have received this e-mail  
in error, please let us know by reply e-mail and delete or destroy  
this mail and all copies. If you are not the intended recipient of  
this message you must not disseminate, copy or take any action in  
reliance on it. The sender takes no responsibility for the effect of  
this message upon the recipient's computer system.






Re: Where are instructions for eclipse plugin?

2007-07-31 Thread Wayne Fay
I know of at least 2 free e-books available which cover Maven2:
http://www.devzuz.com
http://www.sonatype.com

The "default" repository for M2 is http://repo1.maven.org/maven2

Wayne

On 8/1/07, siegfried <[EMAIL PROTECTED]> wrote:
> Oh -- sorry! I did not make myself clear. Yes, I did exactly that: I typed
> "commons". Nothing happened (except for the error below). I tried cglib
> which had previously worked and that did not work again either. Neither did
> antl.
>
> Hmmm... I just restarted eclipse and the problem is fixed -- sort of. I
> guess you are only allowed to and about 4 dependencies before you have to
> restart eclipse -- a feature no doubt!
>
> Apparently the author of
> http://www.mojavelinux.com/blog/archives/2007/05/putting_entities_to_rest_wi
> th_groovy_hibernate_and_jpa/ was using a different repository because I
> could not find everything he had found. Perhaps I should try something other
> than the default repository (or are all the repositories searched anyway)?
>
> Is there a list of repositories somewhere on the codehaus.org?
>
> What is the status of a book on m2? Have any been written yet?
>
> Thanks,
> Siegfried
>
> -Original Message-
> From: Wayne Fay [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 31, 2007 10:26 PM
> To: Maven Users List
> Subject: Re: Where are instructions for eclipse plugin?
>
> I don't use m2eclipse personally so I'm probably the wrong one to
> answer your question...
>
> Having said that, did you try just typing in "commons" and seeing what
> it came back with?
>
> Wayne
>
> On 7/31/07, siegfried <[EMAIL PROTECTED]> wrote:
> > I'm trying to download the dependencies given at
> >
> http://www.mojavelinux.com/blog/archives/2007/05/putting_entities_to_rest_wi
> > th_groovy_hibernate_and_jpa/
> > Using maven.
> >
> > Using the http://m2eclipse.codehaus.org/Maven_2.0_Plugin_for_Eclipse.html
> I
> > got the first two dependencies (antlr-2.7.6.jar and cglib-nodep-2.1_2.jar)
> > and maven worked great! But now I am trying to get
> > commons-collections-3.2.jar and it has stopped cooperating!
> >
> > I type in commons-collections and nothing happens! I see an error at the
> > bottom of the dialog box that says something about a file not found:
> > ... org.maven.ide.eclipse/Index/local/segments
> >
> > Was I supposed to create this file? Why cannot it find
> > commons-collections-3.2.jar? What made it suddenly stop working?
> >
> > Thanks,
> > Siegfried
> >
> >
> >
> > -
> > 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]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Where are instructions for eclipse plugin?

2007-07-31 Thread siegfried
Oh -- sorry! I did not make myself clear. Yes, I did exactly that: I typed
"commons". Nothing happened (except for the error below). I tried cglib
which had previously worked and that did not work again either. Neither did
antl.

Hmmm... I just restarted eclipse and the problem is fixed -- sort of. I
guess you are only allowed to and about 4 dependencies before you have to
restart eclipse -- a feature no doubt!

Apparently the author of
http://www.mojavelinux.com/blog/archives/2007/05/putting_entities_to_rest_wi
th_groovy_hibernate_and_jpa/ was using a different repository because I
could not find everything he had found. Perhaps I should try something other
than the default repository (or are all the repositories searched anyway)? 

Is there a list of repositories somewhere on the codehaus.org?

What is the status of a book on m2? Have any been written yet?

Thanks,
Siegfried

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 31, 2007 10:26 PM
To: Maven Users List
Subject: Re: Where are instructions for eclipse plugin?

I don't use m2eclipse personally so I'm probably the wrong one to
answer your question...

Having said that, did you try just typing in "commons" and seeing what
it came back with?

Wayne

On 7/31/07, siegfried <[EMAIL PROTECTED]> wrote:
> I'm trying to download the dependencies given at
>
http://www.mojavelinux.com/blog/archives/2007/05/putting_entities_to_rest_wi
> th_groovy_hibernate_and_jpa/
> Using maven.
>
> Using the http://m2eclipse.codehaus.org/Maven_2.0_Plugin_for_Eclipse.html
I
> got the first two dependencies (antlr-2.7.6.jar and cglib-nodep-2.1_2.jar)
> and maven worked great! But now I am trying to get
> commons-collections-3.2.jar and it has stopped cooperating!
>
> I type in commons-collections and nothing happens! I see an error at the
> bottom of the dialog box that says something about a file not found:
> ... org.maven.ide.eclipse/Index/local/segments
>
> Was I supposed to create this file? Why cannot it find
> commons-collections-3.2.jar? What made it suddenly stop working?
>
> Thanks,
> Siegfried
>
>
>
> -
> 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]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[m1] Anyone have JDiff working with Perforce?

2007-07-31 Thread Jeff Jensen
Not successful yet with my initial setup (not much to it!), and the error
message doesn't reveal much other than it happens on the scm:checkout:


jdiff:
[mkdir] Created dir:
C:\devroot\perforce\VANTAG~1\main\target\jdiff\vantage_3.0.15
[echo]  *** WARNING: Error ignored:
org.apache.commons.jelly.JellyTagException: file:/C:/Documents and
Settings/pwjjj69/.maven/cache/maven-jdiff-plugin-1.5.1/plugin.jelly:130:12:
 org/apache/regexp/RE


Before I dig in further, I was wondering if anyone has it working with
Perforce, or knows it won't?  The plugin.jelly has some variables named with
"svn" in them, which I don't know yet if that is an indication of
limitation, or just coincidence...

The  tag works with the changes plugin, so I assume it should
work with JDiff...




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Where are instructions for eclipse plugin?

2007-07-31 Thread Wayne Fay
I don't use m2eclipse personally so I'm probably the wrong one to
answer your question...

Having said that, did you try just typing in "commons" and seeing what
it came back with?

Wayne

On 7/31/07, siegfried <[EMAIL PROTECTED]> wrote:
> I'm trying to download the dependencies given at
> http://www.mojavelinux.com/blog/archives/2007/05/putting_entities_to_rest_wi
> th_groovy_hibernate_and_jpa/
> Using maven.
>
> Using the http://m2eclipse.codehaus.org/Maven_2.0_Plugin_for_Eclipse.html I
> got the first two dependencies (antlr-2.7.6.jar and cglib-nodep-2.1_2.jar)
> and maven worked great! But now I am trying to get
> commons-collections-3.2.jar and it has stopped cooperating!
>
> I type in commons-collections and nothing happens! I see an error at the
> bottom of the dialog box that says something about a file not found:
> ... org.maven.ide.eclipse/Index/local/segments
>
> Was I supposed to create this file? Why cannot it find
> commons-collections-3.2.jar? What made it suddenly stop working?
>
> Thanks,
> Siegfried
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Where are instructions for eclipse plugin?

2007-07-31 Thread siegfried
I'm trying to download the dependencies given at
http://www.mojavelinux.com/blog/archives/2007/05/putting_entities_to_rest_wi
th_groovy_hibernate_and_jpa/ 
Using maven.

Using the http://m2eclipse.codehaus.org/Maven_2.0_Plugin_for_Eclipse.html I
got the first two dependencies (antlr-2.7.6.jar and cglib-nodep-2.1_2.jar)
and maven worked great! But now I am trying to get
commons-collections-3.2.jar and it has stopped cooperating! 

I type in commons-collections and nothing happens! I see an error at the
bottom of the dialog box that says something about a file not found:
... org.maven.ide.eclipse/Index/local/segments

Was I supposed to create this file? Why cannot it find
commons-collections-3.2.jar? What made it suddenly stop working?

Thanks,
Siegfried



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Where are instructions for eclipse plugin?

2007-07-31 Thread Wayne Fay
That is a Maven1 plugin.

You are probably looking for:
http://m2eclipse.codehaus.org/

Wayne

On 7/31/07, siegfried <[EMAIL PROTECTED]> wrote:
> I did a google search and found
> http://mevenide.codehaus.org/maven-eclipse-plugin-plugin/ but it appears to
> be very old because it says "maven" instead of "m2" for the command.
>
> Is there an eclipse plug-in that implements a GUI that will allow me to
> browse the repository and drag and drop dependencies from the repository
> into the POM? Where are the directions to do this? Does it work with maven
> v2?
>
> I believe I have the maven plug-in installed in eclipse 3.2.2 and I tried to
> create a new maven project and indeed it created a new POM but I was
> disappointed to not see the vertical bar on the right side of the display
> listing the repositories and their contents.
>
> Thanks,
> Siegfried
>
>
> -
> 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: linux maven ant weblogic combination

2007-07-31 Thread Wayne Fay
What specifically do you mean by "non-deterministic"? Simply saying
"not always correct" is not sufficient -- we need details about what
you expect to occur vs what did occur, etc.

Wayne

On 7/31/07, Pawel Jasinski <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I got a very strange situation.
> I can observe intermittent problem which is triggered by the following
> combination:
>
> linux system (open suse, or ubuntu)
> maven driven build (2.0.5 or 2.0.7)
> ant (1.6.5 or 1.7.0) used to call weblogic tasks
> jwsc ant task of weblogic 9.2.1
>
> When used in the above combination results of jwsc task are non deterministic.
> Sometimes results are correct sometimes are not (i still can not believe it!)
>
> When i try the same build on XP, problem is gone
> When i get maven out of equation and use plain ant, problem is gone
> Changing java version (1.5.0 11/12 from sun or 1.5.0 06 jrockit) has no 
> impact.
>
> Any suggestions are welcome.
>
> Thanks
> -- Pawel
>
> -
> 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]



Where are instructions for eclipse plugin?

2007-07-31 Thread siegfried
I did a google search and found
http://mevenide.codehaus.org/maven-eclipse-plugin-plugin/ but it appears to
be very old because it says "maven" instead of "m2" for the command.

Is there an eclipse plug-in that implements a GUI that will allow me to
browse the repository and drag and drop dependencies from the repository
into the POM? Where are the directions to do this? Does it work with maven
v2?

I believe I have the maven plug-in installed in eclipse 3.2.2 and I tried to
create a new maven project and indeed it created a new POM but I was
disappointed to not see the vertical bar on the right side of the display
listing the repositories and their contents.

Thanks,
Siegfried


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] possible to have just a module archetype?

2007-07-31 Thread Wendy Smoak
On 7/31/07, Mick Knutson <[EMAIL PROTECTED]> wrote:

> I have a large project that has many modules. I want to explore creating an
> archetype for developers to add a module to the existing project. Is this
> possible?

IME, you just do the usual 'mvn archetype:create' in the right place,
and it will set up the  and  links appropriately.

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JAXP DocumentBuilderFactory not found by maven-antrun-plugin initiated Ant

2007-07-31 Thread Developer Abe
Hi Sahoo,

I had a similar problem.

There are the dependecies that I had to provide to get rid of those
exceptions:


xerces
xercesImpl
2.8.0


jdom
jdom
1.0


xml-apis
xml-apis
2.0.2


Also clean out your repository after adding these dependencies (delete the
xerces, xml-apis, and jdom directories in your .m2 repository).

Let me know if this works for you.

Regards,
Abe


On 7/30/07, Sahoo <[EMAIL PROTECTED]> wrote:
>
> (I have not subscribed to users alias, so please copy a reply directly
> to my email)
>
> Hi,
>
> I get /javax.xml.parsers.FactoryConfigurationError: Provider
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl could
> not be instantiated: java.lang.NullPointerException/ when I call an Ant
> script from maven using maven-antrun-plugin. I have tried using fork =
> true as well as false, but same result. Maven version is 2.0.7 and JDK
> version is 1.5.0_06. I don't understand why Ant is not finding this
> class, which is actually present in jre/lib/rt.jar. I get the following
> output while running with -X option:
>
> [INFO] [antrun:run {execution: default}]
> [INFO] Executing tasks
> [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
> [DEBUG] getProperty(ns=null, name=ant.executor.class , user=false)
> [DEBUG] getProperty(ns=null, name=ant.file, user=false)
> test:
> [echo] Generating Java classes from SDO Types
> 5  INFO   [main] openjpa.MetaData - Parsing XML Schema "META-INF/po.xsd"
> [java] javax.xml.parsers.FactoryConfigurationError: Provider
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl could
> not be instantiated: java.lang.NullPointerException
> [java] at
> javax.xml.parsers.DocumentBuilderFactory.newInstance (
> DocumentBuilderFactory.java:104)
> [java] at
> org.eclipse.xsd.util.DefaultJAXPConfiguration.createDocumentBuilder(
> DefaultJAXPConfiguration.java:94)
> [java] at
> org.eclipse.xsd.util.XSDResourceImpl.getDocument (XSDResourceImpl.java
> :334)
> [java] at
> org.eclipse.xsd.util.XSDResourceImpl.getDocument(XSDResourceImpl.java:372)
> [java] at
> org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl.java:680)
> [java] at
> org.eclipse.xsd.util.XSDResourceImpl.load(XSDResourceImpl.java:617)
> [java] at
> org.apache.tuscany.sdo.helper.XSDHelperImpl.define(XSDHelperImpl.java:197)
> [java] at
> org.apache.tuscany.sdo.helper.XSDHelperImpl.define (XSDHelperImpl.java
> :188)
> [java] at
> org.apache.openjpa.sdo.SDO2POJOGenerator.findTypes(SDO2POJOGenerator.java
> :126)
> [java] at
> org.apache.openjpa.sdo.SDO2POJOGenerator.run(SDO2POJOGenerator.java:246)
> [java] at
> org.apache.openjpa.sdo.SDO2POJOGenerator.main(SDO2POJOGenerator.java:282)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> [java] at
> sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java
> :39)
> [java] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:585)
> [java] at
> org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202)
> [java] at
> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)
> [java] at org.apache.tools.ant.taskdefs.Java.run (Java.java:710)
> [java] at
> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
> [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
> [java] at
> org.apache.tools.ant.UnknownElement.execute (UnknownElement.java:275)
> [java] at org.apache.tools.ant.Task.perform(Task.java:364)
> [java] at org.apache.tools.ant.Target.execute(Target.java:341)
> [java] at org.apache.tools.ant.Target.performTasks (Target.java
> :369)
> [java] at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> [java] at
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(
> SingleCheckExecutor.java :37)
> [java] at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> [java] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
> [java] at
> org.apache.tools.ant.UnknownElement.execute (UnknownElement.java:275)
> [java] at org.apache.tools.ant.Task.perform(Task.java:364)
> [java] at org.apache.tools.ant.Target.execute(Target.java:341)
> [java] at
> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks (
> AbstractAntMojo.java:108)
> [java] at
> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83)
> [java] at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> DefaultPluginManager.java :443)
> [java] at
> org.apache.maven.lifecycle.Defa

Julia Vilke/Moscow/Canon/FI is out of the office.

2007-07-31 Thread Julia . Vilke

I will be out of the office starting  16.05.2007 and will not return until
08.01.2008.

I'm on maternity leave till January 2008.
In case of Canon Consumable business, please contact Mikhail Popov, in case
of Paper business - Maria Bondarenko.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[m2] possible to have just a module archetype?

2007-07-31 Thread Mick Knutson
I have a large project that has many modules. I want to explore creating an
archetype for developers to add a module to the existing project. Is this
possible?

-- 

Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---


Re: creating a branch from a tag with release:branch

2007-07-31 Thread Emmanuel Venisse

It's a problem I fixed one week ago. It is actually in the new snapshot of the 
release plugin deployed

Emmanuel

shea a écrit :

Hello,

I am trying to create a branch based on a release tag.  The branch would be
used for maintenance purposes. (I am using an svn scm provider with the
standard layout)

The release plugin doco doesn't indicate where I should be running the
release:branch goal from...

If I run it from the trunk, it creates a branch from the current development
version, regardless of whether I give it -Dtag=.

If I run it from a tag folder, it complains that I don't have a SNAPSHOT
project in the reactor projects list.  


It makes sense to me that I should be able to do a release from a release
tag folder, or from the trunk, (by providing a value for -Dtag=...).

I ahve experiemented with -DupdateBranchVersions=true
-DupdateWorkingCopyVersions=false, but the situation is no better.

Does anyone have any thoughts on what I am doing wrong?

This is actually just a simplistic test project with one artifact at this
point before I try to apply this to my multi-module, JEE project.

Thanks,

Shea.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



creating a branch from a tag with release:branch

2007-07-31 Thread shea

Hello,

I am trying to create a branch based on a release tag.  The branch would be
used for maintenance purposes. (I am using an svn scm provider with the
standard layout)

The release plugin doco doesn't indicate where I should be running the
release:branch goal from...

If I run it from the trunk, it creates a branch from the current development
version, regardless of whether I give it -Dtag=.

If I run it from a tag folder, it complains that I don't have a SNAPSHOT
project in the reactor projects list.  

It makes sense to me that I should be able to do a release from a release
tag folder, or from the trunk, (by providing a value for -Dtag=...).

I ahve experiemented with -DupdateBranchVersions=true
-DupdateWorkingCopyVersions=false, but the situation is no better.

Does anyone have any thoughts on what I am doing wrong?

This is actually just a simplistic test project with one artifact at this
point before I try to apply this to my multi-module, JEE project.

Thanks,

Shea.
-- 
View this message in context: 
http://www.nabble.com/creating-a-branch-from-a-tag-with-release%3Abranch-tf4197145s177.html#a11937078
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: getting version number from subversion and adding to pom property

2007-07-31 Thread Arnaud HERITIER
I used it with success but with an incremental build number (the
project wasn't using SVN).
If it works for you I'll try to use it with my projects under SVN

thx

arnaud

On 31/07/07, Coarr, Matt <[EMAIL PROTECTED]> wrote:
> Awesome!  Thanks Arnaud!  That sounds exactly like what I was looking
> for!
>
> I'll give buildnumber-plugin a whirl and let you know how it works.
>
> Matt
>
> -Original Message-
> From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 31, 2007 17:22
> To: Maven Users List
> Subject: Re: getting version number from subversion and adding to pom
> property
>
> This is certainly what you are looking for :
> http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html
>
> Arnaud
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: getting version number from subversion and adding to pom property

2007-07-31 Thread Coarr, Matt
Awesome!  Thanks Arnaud!  That sounds exactly like what I was looking
for!

I'll give buildnumber-plugin a whirl and let you know how it works.

Matt 

-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 31, 2007 17:22
To: Maven Users List
Subject: Re: getting version number from subversion and adding to pom
property

This is certainly what you are looking for :
http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html

Arnaud

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First build errors

2007-07-31 Thread Jesse McConnell
olivier, do you get these errors as well?

are emm and I the only ones that don't have this behavior exhibited?

jesse

On 7/31/07, LAMY Olivier <[EMAIL PROTECTED]> wrote:
> Yes.
>
> http://jira.codehaus.org/browse/CONTINUUM-1356
>
> ;-)
>
> --
> Olivier
>
> -Message d'origine-
> De : Christian Gruber [mailto:[EMAIL PROTECTED]
> Envoyé : mardi 31 juillet 2007 22:51
> À : [EMAIL PROTECTED]
> Objet : Re: First build errors
>
> I'm having problems building 1.1-beta-1 (from tag).  The problem is during 
> surefire test execution - 3 assertions fail within 
> MavenTwoContinuumProjectBuilderTest.  The equality assertions on:
>
>testCreateProjectsWithModules (line 193)
>testCreateProjectsWithModuleswithParentPomIsntPomXml (line 287)
>testCreateProjectWithoutModules (line 377)
>
> respectively are all receove expectation+1.
>
> I'm really not sure why, and I will look into it later if I get a minute, but 
> I'm on a Macbook Pro (Mac OS 10.4.10) with Java 1.5.0_07 (Mac Runtime for 
> Java with Hotspot client VM)
>
> Anyone else encounter this specific issue?
>
> Christian.
>
>
> On Jul 31, 2007, at 4:27 PM, Jesse McConnell wrote:
>
> > I would recommend trying out the continuum 1.1-beta-1, there as been a
> > lot of work all across continuum since the version you are using.
> >
> > log file and configuration would help, if the log file is too big just
> > post a link to it and we can take a peek.
> >
> > I would recommend changing your mail configuration back and seeing if
> > the problem persists, just so we can isolate the issue a bit more :)
> >
> > cheers
> >
> > jesse
> >
> > On 7/30/07, Randall Fidler <[EMAIL PROTECTED]> wrote:
> >> Hello,
> >>
> >>
> >>
> >>I'm running Continuum v1.0.3 on Ubuntu Linux with
> >> Maven
> >> 2.0.7 and Java 1.5.0_011.   The web service comes up, I can login and
> >> upload a POM but when I run it, all I end up with is "Exception:
> >> Null" for the build status.  I've increased the logging to DEBUG for
> >> all the default categories in the config but nothing stands out in
> >> the log file.  It appears to be working with Derby fine and there
> >> isn't an error with a huge stack trace so I don't really see what's
> >> null.  Can somebody point me in the right direction?  Would the log
> >> file help?
> >>
> >> Regards,
> >>
> >> Randall
> >>
> >>
> >>
> >> p.s. Other than the log files, the only other configuration change I
> >> made was to the mail setup.
> >>
> >>
> >
> >
> > --
> > jesse mcconnell
> > [EMAIL PROTECTED]
> >
>
> christian gruber + [EMAIL PROTECTED] + mob 410.900.0796 + mob2
> 416.998.6023
> process coach and architect + ISRÁFÍL CONSULTING SERVICES
>
>
>
> This e-mail, any attachments and the information contained therein ("this 
> message") are confidential and intended solely for the use of the 
> addressee(s). If you have received this message in error please send it back 
> to the sender and delete it. Unauthorized publication, use, dissemination or 
> disclosure of this message, either in whole or in part is strictly prohibited.
> --
> Ce message électronique et tous les fichiers joints ainsi que  les 
> informations contenues dans ce message ( ci après "le message" ), sont 
> confidentiels et destinés exclusivement à l'usage de la  personne à laquelle 
> ils sont adressés. Si vous avez reçu ce message par erreur, merci  de le 
> renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, 
> totale ou partielle ou divulgation sous quelque forme que se soit non 
> expressément autorisées de ce message, sont interdites.
> -
>
>


-- 
jesse mcconnell
[EMAIL PROTECTED]


linux maven ant weblogic combination

2007-07-31 Thread Pawel Jasinski
Hi all,

I got a very strange situation.
I can observe intermittent problem which is triggered by the following
combination:

linux system (open suse, or ubuntu)
maven driven build (2.0.5 or 2.0.7)
ant (1.6.5 or 1.7.0) used to call weblogic tasks
jwsc ant task of weblogic 9.2.1

When used in the above combination results of jwsc task are non deterministic.
Sometimes results are correct sometimes are not (i still can not believe it!)

When i try the same build on XP, problem is gone
When i get maven out of equation and use plain ant, problem is gone
Changing java version (1.5.0 11/12 from sun or 1.5.0 06 jrockit) has no impact.

Any suggestions are welcome.

Thanks
-- Pawel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: getting version number from subversion and adding to pom property

2007-07-31 Thread Arnaud HERITIER
This is certainly what you are looking for :
http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html

Arnaud

On 31/07/07, Coarr, Matt <[EMAIL PROTECTED]> wrote:
> Good idea.  I thought about that too.
>
> But that version number would only get updated whenever that properties
> file gets updated, not whenever a commit is made to the subversion
> module.
>
> Matt
>
>
>
> -Original Message-
> From: Lalor, Brian [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 31, 2007 16:03
> To: Maven Users List
> Subject: RE: getting version number from subversion and adding to pom
> property
>
> What about using the $Revision$ keyword in a properties file?  You
> wouldn't have to involve Maven at all that way...
> version.prop = $Revision$
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: setting default location of settings.xml

2007-07-31 Thread Wayne Fay
Sounds reasonable to me, and should be easy enough to test that it
works etc before committing everyone to it, only to discover a
problem, etc.

Wayne

On 7/31/07, Baz <[EMAIL PROTECTED]> wrote:
> Dana, Wayne,
>
> What about this?
>
> 1. Change mvn.bat to do "-s $MVN_SETTING_FILE".
> 2. Define MVN_SETTING_FILE in the shell environment.
> 3. Point the MVN_SETTING_FILE to the default workspace location where your
> SCM tool will update the latest settings.xml (or any name in this case)
>
> This way, you can use default and customize if you want by changing the
> environment variable. This seems like a flexible solution. Comments?
>
>
>
> On 7/31/07, Lacoste, Dana <[EMAIL PROTECTED]> wrote:
> >
> > We checked into our project home a "settings.xml.sample" so that users
> > could customize their own environment.
> >
> > But if you added the "-s" flag to your maven command in cruise control
> > you could force it to use the checked in/perforce version at build time
> > (then just get the developers to use the shared one as well)
> >
> > Dana
> >
> > -Original Message-
> > From: Baz [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, July 31, 2007 12:20 PM
> > To: Maven Users List
> > Subject: setting default location of settings.xml
> >
> > Hi,
> >
> > Is there a way to setup default location of settings.xml? I understand
> > the default location is M2 repo.
> >
> > I am trying to have settings.xml stored in Perforce and add an
> > environment variable to point to a directory so developers can have a
> > consistent settings.xml file. Suggestion?
> >
> > Thanks.
> >
> > A.
> >
> > -
> > 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: Bundling a WsrModule in my EAR

2007-07-31 Thread Marc Chung
Stephane,

Thanks for the reply, I didn't know that the defaults were smart
enough.. I'll be able to erase half the pom.xml file :)

But I'm still unsure of a few things:

1. What does the pom.xml for a WSR project look like?  There is
neither a WSR packaging type nor a plugin, that I have found, that
manages it.  (I'm thinking of something similar to the jboss-sar type
that the jboss-packaging-plugin manages)

2. Right now, I'm under the impression that I need to add a dependency
to my "ear/pom.xml."  Something like this:

> > 
> >  com.company
> >  awesomeArtifact
> >  1.0-SUPER
> >  wsr  <-- Intuitively, I'd use this.
> > 's  section:

> > 
> >  com.company
> >  awesomeArtifact
> >  /
> > 

This doesn't work (obviously) since there's no WSR type.  In other
words how do I depend on an WSR-type project?

I've spent a bit of time thinking about this, and I'm leaning towards
the opinion that this simply can' t be done, but that doesn't make any
sense (why offer  if you can't depend on a wsr packaging
type?), so I'm probably missing something simple.

1. Do I even need to add the WSR type?  Is it another type?  Perhaps I
need to mess around with the ?

2. I'm currently generating a JBoss web-services.xml file in
"ejbs/pom.xml" using ejbdoclet.  Perhaps I could bundle the
web-services.xml file in that JAR instead.

Anyway, I'm basically trying out different ideas at this point, since
I'm personally new to Web Service aRchives.

Thanks for reading,

-Marc

On 7/31/07, Stephane Nicoll <[EMAIL PROTECTED]> wrote:
> Hey,
>
> wsrModule or any module configuration is *ONLY* necessary if you want
> to customize the way the artifact is bundled in the EAR. If you're
> happy with the defaults, you don't need any special configuration at
> all (except the dependencies).
>
> How is it doing with only the WSR dependency in your EAR project?
>
> Regards,
> Stéphane
>
>
> On 7/31/07, Marc Chung <[EMAIL PROTECTED]> wrote:
> > Hi folks,
> >
> > I'm trying to include a WSR (Web Service aRchive; JBoss) in my EAR.
> >
> > Has anybody ever used the WsrModule documented over at the
> > maven-ear-plugin?  I don't know how to do a few things:
> >
> > 1. Reference a dependency to a WSR module
> >
> > 
> >  com.company
> >  awesomeArtifact
> >  1.0-SUPER
> >  wsr  <-- Intuitively, I'd use this.
> >  >
> > 2. Bundle up the WSR module into the final EAR
> >
> > 
> >  com.company
> >  awesomeArtifact
> >  /
> > 
> >
> > I've searched the following:
> >
> > - Sonatype's website
> > - Google
> > - Google Code Search
> > - Krugle
> >
> > But believe it or not, I haven't see/found a single pomxml file that
> > uses wsrModule.
> >
> > I'd also be happy to consider alternative approaches to EAR file creation.
> >
> > Kind regards,
> >
> > --Marc Chung
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Large Systems Suck: This rule is 100% transitive. If you build one,
> you suck" -- S.Yegge
>
> -
> 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: getting version number from subversion and adding to pom property

2007-07-31 Thread Coarr, Matt
Good idea.  I thought about that too.

But that version number would only get updated whenever that properties
file gets updated, not whenever a commit is made to the subversion
module.

Matt 



-Original Message-
From: Lalor, Brian [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 31, 2007 16:03
To: Maven Users List
Subject: RE: getting version number from subversion and adding to pom
property

What about using the $Revision$ keyword in a properties file?  You
wouldn't have to involve Maven at all that way...
version.prop = $Revision$

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Question about ordering of dependencies

2007-07-31 Thread Ryan Moquin
I'm a little puzzled since I thought I understood a simple thing about how
Maven2 adds dependencies to the classpath.  If I have a dependency that is a
compile dependency and one that is a test dependency, won't the test
dependency be included in the classpath first in the test phase?  The reason
I ask, is because I'm trying to be fancy with my spring configurations.  I
have a Maven2 subproject that builds a jar including test resources and
classes.  I'm using that test jar to override a spring xml file in my
compile dependency at test time (basically two spring xml files, named the
same, but slightly different bean definitions, each in the resources
directory of the two projects).  It's odd though, because it picks up the
spring xml configuration in the compile dependency first when I use the
dependencies in a third project that attempts to use the spring xml.  If I
comment the compile dependency out, then it picks up the spring
configuration in the test jar.

Am I misunderstanding how spring does it's classloading?  Or is this a maven
oddity?  Am I even making sense?

Thanks.


Re: setting default location of settings.xml

2007-07-31 Thread Baz
Dana, Wayne,

What about this?

1. Change mvn.bat to do "-s $MVN_SETTING_FILE".
2. Define MVN_SETTING_FILE in the shell environment.
3. Point the MVN_SETTING_FILE to the default workspace location where your
SCM tool will update the latest settings.xml (or any name in this case)

This way, you can use default and customize if you want by changing the
environment variable. This seems like a flexible solution. Comments?



On 7/31/07, Lacoste, Dana <[EMAIL PROTECTED]> wrote:
>
> We checked into our project home a "settings.xml.sample" so that users
> could customize their own environment.
>
> But if you added the "-s" flag to your maven command in cruise control
> you could force it to use the checked in/perforce version at build time
> (then just get the developers to use the shared one as well)
>
> Dana
>
> -Original Message-
> From: Baz [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 31, 2007 12:20 PM
> To: Maven Users List
> Subject: setting default location of settings.xml
>
> Hi,
>
> Is there a way to setup default location of settings.xml? I understand
> the default location is M2 repo.
>
> I am trying to have settings.xml stored in Perforce and add an
> environment variable to point to a directory so developers can have a
> consistent settings.xml file. Suggestion?
>
> Thanks.
>
> A.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: getting version number from subversion and adding to pom property

2007-07-31 Thread Lalor, Brian
> -Original Message-
> From: Coarr, Matt [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, July 31, 2007 3:05 PM
>
> Is there  any way that I can extract the version of my working copy
> from subversion (or the scm plug-in) and save this in a system
> property? 
> 
> I would like to take this and stick this in a properties file so that
> it can be displayed on a "Help -> About" page. 

What about using the $Revision$ keyword in a properties file?  You wouldn't 
have to involve Maven at all that way...
version.prop = $Revision$



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: setting default location of settings.xml

2007-07-31 Thread Lacoste, Dana
We checked into our project home a "settings.xml.sample" so that users
could customize their own environment.

But if you added the "-s" flag to your maven command in cruise control
you could force it to use the checked in/perforce version at build time
(then just get the developers to use the shared one as well)

Dana 

-Original Message-
From: Baz [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 31, 2007 12:20 PM
To: Maven Users List
Subject: setting default location of settings.xml

Hi,

Is there a way to setup default location of settings.xml? I understand
the default location is M2 repo.

I am trying to have settings.xml stored in Perforce and add an
environment variable to point to a directory so developers can have a
consistent settings.xml file. Suggestion?

Thanks.

A.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: setting default location of settings.xml

2007-07-31 Thread Baz
Wayne,

Thanks for your reply. I forgot to say that I also checked the "-s" flag.

So, there is no environment variable to indicate the path or
exact_path/file_name right?

It is possible to edit mvn.bat but i want to make sure it is possible for
developers to use their personal copy also. I am sure there are many ways to
do it but i am not sure which one is the best.


On 7/31/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
>
> Looks like you want to use "mvn -s ".
>
> C:\cvs_root\xsltc-maven-plugin>mvn -h
> usage: mvn [options] [] []
> Options:
> -s,--settings Alternate path for the user settings file
>
> To make this work consistently, you could probably edit the mvn.bat
> file itself to provide the -s setting automatically with every
> execution of mvn.
>
> Also, refer to this webpage for more info on settings.xml files:
> http://maven.apache.org/guides/introduction/introduction-to-profiles.html
>
> Wayne
>
> On 7/31/07, Baz <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Is there a way to setup default location of settings.xml? I understand
> the
> > default location is M2 repo.
> >
> > I am trying to have settings.xml stored in Perforce and add an
> environment
> > variable to point to a directory so developers can have a consistent
> > settings.xml file. Suggestion?
> >
> > Thanks.
> >
> > A.
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: setting default location of settings.xml

2007-07-31 Thread Wayne Fay
Looks like you want to use "mvn -s ".

C:\cvs_root\xsltc-maven-plugin>mvn -h
usage: mvn [options] [] []
Options:
 -s,--settings Alternate path for the user settings file

To make this work consistently, you could probably edit the mvn.bat
file itself to provide the -s setting automatically with every
execution of mvn.

Also, refer to this webpage for more info on settings.xml files:
http://maven.apache.org/guides/introduction/introduction-to-profiles.html

Wayne

On 7/31/07, Baz <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Is there a way to setup default location of settings.xml? I understand the
> default location is M2 repo.
>
> I am trying to have settings.xml stored in Perforce and add an environment
> variable to point to a directory so developers can have a consistent
> settings.xml file. Suggestion?
>
> Thanks.
>
> A.
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Deploying EAR project to Weblogic

2007-07-31 Thread Vaidya, Supriya A (US - Chicago)
Does this latter error have anything to do withteh fact that I am using
JDK 1.6 Update 2?



From: Vaidya, Supriya A (US - Chicago) 
Sent: Tuesday, July 31, 2007 1:19 PM
To: 'Scott Ryan'
Subject: RE: Deploying EAR project to Weblogic


Hi Scott:
 
I have 4 directories that I deal with: 
 
1. The parent directory - containing the parent POM.xml: this is the
file that contains all the dependencies
2. The EAR directory - containign teh EAR POM.xml - references teh
Parent POM.
3. The EJB directory - containing the EJB POM.xml - references the
Parent POM
4. The WAR directory - containing teh WAR POM.xml - references teh
Parent POM.
 
In order to build my EAR (which contains the WAR, and the JAR) - I do a
mvn clean install in my parent directory.
 
The mvn weblogic:appc command fails at the same directory, with the
error mentioned below. From what you seem to be telling me, it appears
that weblogic:appc needs the EAR packaging type to initialize
successfully. So here is what I did.
1. Open the parent directory - run the mvn clean install command
2. cd-ed to the EAR directory
3. ran teh mvn weblogic:appc comand. 
 
Here is the eror that I now get - 
--- nested within: --
weblogic.utils.compiler.ToolFailureException: Provider
javax.xml.stream.XMLInputFactory could not be instantiated:
java.lang.InstantiationException - with nested exception:
[javax.xml.stream.FactoryConfigurationError: Provider
javax.xml.stream.XMLInputF
actory could not be instantiated: java.lang.InstantiationException]
at
weblogic.application.compiler.FlowDriver.handleStateChangeException(F
lowDriver.java:53)
at
weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:37
)
 
Did I fail to include the right dependencies in teh parent POM? Attached
here again for your referrence...
 
Thank you for taking the time to look into this!!
Regard,
Supriya
 



From: Scott Ryan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 31, 2007 1:04 PM
To: Vaidya, Supriya A (US - Chicago)
Subject: Re: Deploying EAR project to Weblogic


Not sure what you mean by that but if the ear is valid and the ear pom
has the other pom as its parent then all is fine.  I have hundreds of
projects set up this way and they all work fine.  Let me know more
details and I can walk you though the best practices. 

Scott Ryan

On Jul 31, 2007, at 11:58 AM, Vaidya, Supriya A (US - Chicago) wrote:


Hi:
 
But if I do try running the command from the EAR directory, then
all the dependencies would have to be transferred to the EAR POM.xml...
which would be rather inconvenient 



From: Scott Ryan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 31, 2007 12:57 PM
To: Maven Users List
Cc: Vaidya, Supriya A (US - Chicago)
Subject: Re: Deploying EAR project to Weblogic


Try running the deploy mojo from the ear directory.  It is
reading the project type to figure out what to deploy and it is confused
since your pom.xml seems to have project type of pom rather than ear.
You can also set the parameters manually and it will not try to guess
but it will need help in determining the project type and location of
the deployable. 

Scott

On Jul 31, 2007, at 10:21 AM, Vaidya, Supriya A ((US - Chicago))
wrote:



Sorry - wrong POMs were attached previously - here are
the right ones, that generate the error
 



From: Vaidya, Supriya A (US - Chicago) 
Sent: Tuesday, July 31, 2007 11:11 AM
To: 'Maven Users List'
Subject: Deploying EAR project to Weblogic


Hi:
 
I have a project structure such that an EAR is created
containing a WAR, and an EJB JAR. Thus, each module has its own
directory and its own pom. THe parent directory (say projectOverAll) has
a pom with packaging = pom.
 
Now, the project packages successfully - mvn clean
install works fine. I get my .ear file. I now want to deploy this to
weblogic. I understand that I have to use the maven-weblogic plugin. I
tried adding/installing all the dependencies into the parent POM as
required for teh plugin. and then did a mvn weblogic:appc on the parent
directory. However, this throws teh following error - 

 
Downloading:
http://repo1.maven.org/maven2/web-maven/web-maven/1.0/web-maven-1.0
.pom
[INFO] [weblogic:appc]
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO

setting default location of settings.xml

2007-07-31 Thread Baz
Hi,

Is there a way to setup default location of settings.xml? I understand the
default location is M2 repo.

I am trying to have settings.xml stored in Perforce and add an environment
variable to point to a directory so developers can have a consistent
settings.xml file. Suggestion?

Thanks.

A.


Re: [m2] Correct use of ejb/ejb3 dependency type and ejbModule/ejb3Module plugin configuration in ear project?

2007-07-31 Thread Stephane Nicoll
ejb3 module was deprecated a long time ago. You should use the ejb
plugin and configure it to use the ejb3 version with an ejb packaging.
Then you should use the "ejb" type in your dependencies and the
ejbModule in your custom EAR configuration.

HTH,
Stéphane


On 7/31/07, Roy Brokvam <[EMAIL PROTECTED]> wrote:
> I've spent some time trying to understand how to assemble EJB3s into EAR
> applications, reading the (very scarce...) plugin documentation and
> searching in the mailing archive, but I still don't get it. My understanding
> is that the first EAR POM should work, but it doesn't (I've stripped it to
> the bones -.no client, no WAR, no main POM project, no JUnit tests). The two
> troublesome sections are prefixed with asterisks:
>
>
>
> EAR project 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
>
> com.abeldrm.dbtest
>
> dbtest-ear
>
> ear
>
> 1.0-SNAPSHOT
>
> DB Test EAR
>
> http://maven.apache.org
>
> 
>
> 
>
> 
>
> org.apache.maven.plugins
>
> maven-ear-plugin
>
> 
>
> 5
>
> *
>
> *
>
> *com.abeldrm.dbtest
>
> *dbtest-ejb
>
> *
> dbtest-ejb.ejb3
>
> *
>
> *
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> com.abeldrm.dbtest
>
> dbtest-ejb
>
> 1.0-SNAPSHOT
>
> *ejb3
>
> compile
>
> 
>
> 
>
> 
>
>
>
> EJB3 project 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
>
> com.abeldrm.dbtest
>
> dbtest-ejb
>
> ejb
>
> 1.0-SNAPSHOT
>
> DB Test EJB
>
> http://maven.apache.org
>
> 
>
> 
>
> 
>
> org.apache.maven.plugins
>
> maven-compiler-plugin
>
> 2.0
>
> 
>
> 1.6
>
> 1.6
>
> 
>
> 
>
> 
>
> org.apache.maven.plugins
>
> maven-ejb-plugin
>
> 
>
> 3.0
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> javaee
>
> javaee-api
>
> 5
>
> provided
>
> 
>
> 
>
> 
>
>
>
>
>
> Whatever I do with the  section of the plugin configuration, Maven
> complains about missing artifact
> 'com.abeldrm.dbtest:dbtest-ejb:ejb3:1.0-SNAPSHOT'.
>
>
>
> The only 'solution' I have found to this problem, is to change the
> dependency ejb3 to ejb. But then Maven complains
> that 'Artifact[com.abeldrm.dbtest:dbtest-ejb:ejb3] is not a dependency of
> the project'.
>
>
>
> Finally, if I remove the  section altogether (or alternatively,
> rename  to  and remove the  section),
> it seems to work - at least it deploys on the appserver...
>
>
>
> So, what did I do wrong in the first place? Or, if my final attempt is the
> correct one (staying away from both ejb3 and ) -
> what's the point of ejb3 and ?
>
>
>
>
>
>
>
>
>
>
>
>
>
>


-- 
Large Systems Suck: This rule is 100% transitive. If you build one,
you suck" -- S.Yegge

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Bundling a WsrModule in my EAR

2007-07-31 Thread Stephane Nicoll
Hey,

wsrModule or any module configuration is *ONLY* necessary if you want
to customize the way the artifact is bundled in the EAR. If you're
happy with the defaults, you don't need any special configuration at
all (except the dependencies).

How is it doing with only the WSR dependency in your EAR project?

Regards,
Stéphane


On 7/31/07, Marc Chung <[EMAIL PROTECTED]> wrote:
> Hi folks,
>
> I'm trying to include a WSR (Web Service aRchive; JBoss) in my EAR.
>
> Has anybody ever used the WsrModule documented over at the
> maven-ear-plugin?  I don't know how to do a few things:
>
> 1. Reference a dependency to a WSR module
>
> 
>  com.company
>  awesomeArtifact
>  1.0-SUPER
>  wsr  <-- Intuitively, I'd use this.
> 
> 2. Bundle up the WSR module into the final EAR
>
> 
>  com.company
>  awesomeArtifact
>  /
> 
>
> I've searched the following:
>
> - Sonatype's website
> - Google
> - Google Code Search
> - Krugle
>
> But believe it or not, I haven't see/found a single pomxml file that
> uses wsrModule.
>
> I'd also be happy to consider alternative approaches to EAR file creation.
>
> Kind regards,
>
> --Marc Chung
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Large Systems Suck: This rule is 100% transitive. If you build one,
you suck" -- S.Yegge

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



getting version number from subversion and adding to pom property

2007-07-31 Thread Coarr, Matt
Hi, 

Is there  any way that I can extract the version of my working copy
from subversion (or the scm plug-in) and save this in a system
property? 

I would like to take this and stick this in a properties file so that
it can be displayed on a "Help -> About" page. 

Thanks for your help, 
Matt


PS  I already have the POM's version number being inserted into the
properties file by using "${pom.version}" in the properties file
itself.  I would just like to get the subversion version of my working
copy.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jetty plugin from Mavenide

2007-07-31 Thread Milos Kleint
http://jira.codehaus.org/browse/MEVENIDE

Milos

On 7/31/07, John Coleman <[EMAIL PROTECTED]> wrote:
> NetBeans 5.5 Mavenide 2.3
>
> Where do I file a bug pls?
>
> Thanks,
> John
>
> -Original Message-
> From: Milos Kleint [mailto:[EMAIL PROTECTED]
> Sent: 31 July 2007 14:28
> To: Maven Users List
> Subject: Re: jetty plugin from Mavenide
>
> exiting the IDE should help  I suppose. That's not a good solution
> though.
> Please file a bug against mevenide, I'll take a look what can be done.
> What version of netbeans/mevenide are you using?
>
> Milos
>
> On 7/31/07, John Coleman <[EMAIL PROTECTED]>
> wrote:
> > Hi,
> >
> >
> >
> > Does anyone know how to stop the jetty plugin after staring it using
> > Mavenide please? Hitting the orange X button doesn't seem to do
> > anything.
> >
> >
> >
> > TIA,
> >
> > John
> >
> >
> >
> >
> > Eurobase International Limited and its subsidiaries (Eurobase) are
> unable to exercise control over the content of information in E-Mails.
> Any views and opinions expressed may be personal to the sender and are
> not necessarily those of Eurobase. Eurobase will not enter into any
> contractual obligations in respect of any part of its business in any
> E-mail.
> >
> > Privileged / confidential information may be contained in this message
> and /or any attachments. This E-mail is intended for the use of the
> addressee(s) only and may contain confidential information. If you are
> not the / an intended recipient, you are hereby notified that any use or
> dissemination of this communication is strictly prohibited.  If you
> receive this transmission in error, please notify us immediately, and
> then delete this E-mail.
> >
> > Neither the sender nor Eurobase accepts any liability whatsoever for
> any defects of any kind either in or arising from this E-mail
> transmission. E-Mail transmission cannot be guaranteed to be secure or
> error-free, as messages can be intercepted, lost, corrupted, destroyed,
> contain viruses, or arrive late or incomplete. Eurobase does not accept
> any responsibility for viruses and it is your responsibility to scan any
> attachments.
> >
> > Eurobase Systems Limited is the main trading company in the Eurobase
> International Group; registered in England and Wales as company number
> 02251162; registered address: Essex House, 2 County Place, Chelmsford,
> Essex CM2 0RE, UK.
> >
> >
>
> -
> 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]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Assembly plugin includes directories

2007-07-31 Thread Petar Tahchiev
Eric hi,

thank you for your suggestions, but unfortunatelly it didn't help.
I want to clarify that I am calling the plugin from my pom.xml on the
install phase:



org.apache.maven.plugins
maven-assembly-plugin

src/assemble/main.xml



package

single







Any other suggestions?

Thanks to all that try to help.


2007/7/31, Eric Redmond <[EMAIL PROTECTED]>:
>
> I don't remember "includeBaseDirectory" being a valid element under
> "dependencytSet". Try removing it, and re-running the assembly by first
> running clean:
>
> mvn clean assembly:assembly
>
> --
> Eric Redmond
> http://blog.propellors.net
>
> On 7/30/07, Petar Tahchiev <[EMAIL PROTECTED]> wrote:
> >
> > Andrew hi,
> >
> > and thank you for the swift response. As I have listed I have set
> > false
> > so I don't think this is the problem. The A:B and A:C artifacts doesn't
> > have
> > the B.jar and C.jar directories in their archives.
> >
> >
> > Any other ideas?
> >
> > 2007/7/31, Andrew Boyer <[EMAIL PROTECTED]>:
> > >
> > > Check your assembly descriptor for A:B and A:C, make sure you've set
> the
> > > includeBaseDirectory property for them to false.
> > >
> > > Andrew
> > >
> > > > -Original Message-
> > > > From: Petar Tahchiev [mailto:[EMAIL PROTECTED]
> > > > Sent: Monday, July 30, 2007 5:43 PM
> > > > To: Maven Users List
> > > > Subject: Assembly plugin includes directories
> > > >
> > > > Hi guys,
> > > >
> > > > I have the following situation: I have configured the assembl plugin
> > > so
> > > > that
> > > > it produces an archive that contains
> > > > the content of another two archives. My assembly descriptor is this
> > > one:
> > > > 
> > > > 
> > > > jar
> > > > 
> > > > false
> > > > 
> > > > 
> > > > /
> > > > false
> > > > 
> > > > A:B:jar
> > > > A:C:jar
> > > > 
> > > >
> > > > true
> > > > test
> > > > 
> > > > 
> > > > 
> > > >
> > > > The problem is that the new archive that is created contains the
> > > original
> > > > folders, like:
> > > > Archive
> > > > |
> > > > | B.jar-/contentsOfB
> > > > | C.jar-/contentsOfC
> > > >
> > > > So basicaly in the example above I don't want the B.jar and
> > > > C.jardirectories in my archive.
> > > >
> > > > Have anyone seen this problem?
> > > >
> > > > Thank you.
> > > >
> > > >
> > > > --
> > > > Regards, Petar!
> > > > Karlovo, Bulgaria.
> > > >
> > > > Bulgarian medics in Libya are innocent!
> > > > http://www.nestesami.bg/main/index.php
> > > >
> > > > Public PGP Key at:
> > > >
> > >
> https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C311061
> > > 1
> > > > Key Fingerprint: A369 A7EE 61BC 93A3 CDFF  55A5 1965 8550 C311 0611
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Regards, Petar!
> > Karlovo, Bulgaria.
> >
> > Public PGP Key at:
> >
> https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611
> > Key Fingerprint: A369 A7EE 61BC 93A3 CDFF  55A5 1965 8550 C311 0611
> >
>



-- 
Regards, Petar!
Karlovo, Bulgaria.

Public PGP Key at:
https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611
Key Fingerprint: A369 A7EE 61BC 93A3 CDFF  55A5 1965 8550 C311 0611


getting version number from subversion and adding to pom property

2007-07-31 Thread mattcoarr

Hi,

Is there  any way that I can extract the version of my working copy from
subversion (or the scm plug-in) and save this in a system property?

I would like to take this and stick this in a properties file so that it can
be displayed on a "Help -> About" page.

Thanks,
Matt
-- 
View this message in context: 
http://www.nabble.com/getting-version-number-from-subversion-and-adding-to-pom-property-tf4194827s177.html#a11929878
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: Deploying EAR project to Weblogic

2007-07-31 Thread Vaidya, Supriya A (US - Chicago)
Hi:
 
But if I do try running the command from the EAR directory, then all the
dependencies would have to be transferred to the EAR POM.xml... which
would be rather inconvenient 



From: Scott Ryan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 31, 2007 12:57 PM
To: Maven Users List
Cc: Vaidya, Supriya A (US - Chicago)
Subject: Re: Deploying EAR project to Weblogic


Try running the deploy mojo from the ear directory.  It is reading the
project type to figure out what to deploy and it is confused since your
pom.xml seems to have project type of pom rather than ear.  You can also
set the parameters manually and it will not try to guess but it will
need help in determining the project type and location of the
deployable. 

Scott

On Jul 31, 2007, at 10:21 AM, Vaidya, Supriya A ((US - Chicago)) wrote:



Sorry - wrong POMs were attached previously - here are the right
ones, that generate the error
 



From: Vaidya, Supriya A (US - Chicago) 
Sent: Tuesday, July 31, 2007 11:11 AM
To: 'Maven Users List'
Subject: Deploying EAR project to Weblogic


Hi:
 
I have a project structure such that an EAR is created
containing a WAR, and an EJB JAR. Thus, each module has its own
directory and its own pom. THe parent directory (say projectOverAll) has
a pom with packaging = pom.
 
Now, the project packages successfully - mvn clean install works
fine. I get my .ear file. I now want to deploy this to weblogic. I
understand that I have to use the maven-weblogic plugin. I tried
adding/installing all the dependencies into the parent POM as required
for teh plugin. and then did a mvn weblogic:appc on the parent
directory. However, this throws teh following error - 

 
Downloading:
http://repo1.maven.org/maven2/web-maven/web-maven/1.0/web-maven-1.0
.pom
[INFO] [weblogic:appc]
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Unsupported project packaging pom
[INFO]

[INFO] Trace
java.lang.IllegalArgumentException: Unsupported project
packaging pom
at
org.codehaus.mojo.weblogic.util.WeblogicMojoUtilities.updateArtifactN
ame(WeblogicMojoUtilities.java:109)
at
org.codehaus.mojo.weblogic.AppcMojo.execute(AppcMojo.java:144)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:443)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:493) 
 
Is the expectation different for deployment? How do I deploy
this on my webogic 9.2 server? Attached for reference is the parent POM
and EAR pom with all the dependencies (modified to hide some details). 
 
Thanks and regards,
Supriya


This message (including any attachments) contains confidential
information intended for a specific individual and purpose, and is
protected by law.  If you are not the intended recipient, you should
delete this message. 


Any disclosure, copying, or distribution of this message, or the
taking of any action based on it, is strictly prohibited. [v.E.1]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Scott Ryan
CTO Soaring Eagle L.L.C.
Denver, Co. 80129
www.soaringeagleco.com
www.theryansplace.com
(303) 263-3044
[EMAIL PROTECTED]




[m2] Correct use of ejb/ejb3 dependency type and ejbModule/ejb3Module plugin configuration in ear project?

2007-07-31 Thread Roy Brokvam
I've spent some time trying to understand how to assemble EJB3s into EAR
applications, reading the (very scarce...) plugin documentation and
searching in the mailing archive, but I still don't get it. My understanding
is that the first EAR POM should work, but it doesn't (I've stripped it to
the bones -.no client, no WAR, no main POM project, no JUnit tests). The two
troublesome sections are prefixed with asterisks:

 

EAR project 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

com.abeldrm.dbtest

dbtest-ear

ear

1.0-SNAPSHOT

DB Test EAR

http://maven.apache.org







org.apache.maven.plugins

maven-ear-plugin



5

*

*

*com.abeldrm.dbtest

*dbtest-ejb

*
dbtest-ejb.ejb3

*

*













com.abeldrm.dbtest

dbtest-ejb

1.0-SNAPSHOT

*ejb3

compile







 

EJB3 project 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

com.abeldrm.dbtest

dbtest-ejb

ejb

1.0-SNAPSHOT

DB Test EJB

http://maven.apache.org







org.apache.maven.plugins

maven-compiler-plugin

2.0



1.6

1.6







org.apache.maven.plugins

maven-ejb-plugin



3.0













javaee

javaee-api

5

provided







 

 

Whatever I do with the  section of the plugin configuration, Maven
complains about missing artifact
'com.abeldrm.dbtest:dbtest-ejb:ejb3:1.0-SNAPSHOT'.

 

The only 'solution' I have found to this problem, is to change the
dependency ejb3 to ejb. But then Maven complains
that 'Artifact[com.abeldrm.dbtest:dbtest-ejb:ejb3] is not a dependency of
the project'.

 

Finally, if I remove the  section altogether (or alternatively,
rename  to  and remove the  section),
it seems to work - at least it deploys on the appserver...

 

So, what did I do wrong in the first place? Or, if my final attempt is the
correct one (staying away from both ejb3 and ) -
what's the point of ejb3 and ?

 

 

 

 

 

 



Re: Deploying EAR project to Weblogic

2007-07-31 Thread Scott Ryan
Try running the deploy mojo from the ear directory.  It is reading  
the project type to figure out what to deploy and it is confused  
since your pom.xml seems to have project type of pom rather than  
ear.  You can also set the parameters manually and it will not try to  
guess but it will need help in determining the project type and  
location of the deployable.


Scott
On Jul 31, 2007, at 10:21 AM, Vaidya, Supriya A ((US - Chicago)) wrote:

Sorry - wrong POMs were attached previously - here are the right  
ones, that generate the error



From: Vaidya, Supriya A (US - Chicago)
Sent: Tuesday, July 31, 2007 11:11 AM
To: 'Maven Users List'
Subject: Deploying EAR project to Weblogic

Hi:

I have a project structure such that an EAR is created containing a  
WAR, and an EJB JAR. Thus, each module has its own directory and  
its own pom. THe parent directory (say projectOverAll) has a pom  
with packaging = pom.


Now, the project packages successfully - mvn clean install works  
fine. I get my .ear file. I now want to deploy this to weblogic. I  
understand that I have to use the maven-weblogic plugin. I tried  
adding/installing all the dependencies into the parent POM as  
required for teh plugin. and then did a mvn weblogic:appc on the  
parent directory. However, this throws teh following error -


Downloading: http://repo1.maven.org/maven2/web-maven/web-maven/1.0/ 
web-maven-1.0

.pom
[INFO] [weblogic:appc]
[INFO]  
-- 
--

[ERROR] FATAL ERROR
[INFO]  
-- 
--

[INFO] Unsupported project packaging pom
[INFO]  
-- 
--

[INFO] Trace
java.lang.IllegalArgumentException: Unsupported project packaging pom
at  
org.codehaus.mojo.weblogic.util.WeblogicMojoUtilities.updateArtifactN

ame(WeblogicMojoUtilities.java:109)
at org.codehaus.mojo.weblogic.AppcMojo.execute 
(AppcMojo.java:144)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo 
(DefaultPlugi

nManager.java:443)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

ultLifecycleExecutor.java:539)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone

Goal(DefaultLifecycleExecutor.java:493)

Is the expectation different for deployment? How do I deploy this  
on my webogic 9.2 server? Attached for reference is the parent POM  
and EAR pom with all the dependencies (modified to hide some details).


Thanks and regards,
Supriya


This message (including any attachments) contains confidential  
information intended for a specific individual and purpose, and is  
protected by law.  If you are not the intended recipient, you  
should delete this message.


Any disclosure, copying, or distribution of this message, or the  
taking of any action based on it, is strictly prohibited. [v.E.1]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Scott Ryan
CTO Soaring Eagle L.L.C.
Denver, Co. 80129
www.soaringeagleco.com
www.theryansplace.com
(303) 263-3044
[EMAIL PROTECTED]




Re: Bundling a WsrModule in my EAR

2007-07-31 Thread Marc Chung
Hi folks,

I'm trying to include a WSR (Web Service aRchive; JBoss) in my EAR.

Has anybody ever used the WsrModule documented over at the
maven-ear-plugin?  I don't know how to do a few things:

1. Reference a dependency to a WSR module


 com.company
 awesomeArtifact
 1.0-SUPER
 wsr  <-- Intuitively, I'd use this.

 com.company
 awesomeArtifact
 /


I've searched the following:

- Sonatype's website
- Google
- Google Code Search
- Krugle

But believe it or not, I haven't see/found a single pomxml file that
uses wsrModule.

I'd also be happy to consider alternative approaches to EAR file creation.

Kind regards,

--Marc Chung

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Deploying EAR project to Weblogic

2007-07-31 Thread Vaidya, Supriya A \(US - Chicago\)
Sorry - wrong POMs were attached previously - here are the right ones,
that generate the error
 



From: Vaidya, Supriya A (US - Chicago) 
Sent: Tuesday, July 31, 2007 11:11 AM
To: 'Maven Users List'
Subject: Deploying EAR project to Weblogic


Hi:
 
I have a project structure such that an EAR is created containing a WAR,
and an EJB JAR. Thus, each module has its own directory and its own pom.
THe parent directory (say projectOverAll) has a pom with packaging =
pom.
 
Now, the project packages successfully - mvn clean install works fine. I
get my .ear file. I now want to deploy this to weblogic. I understand
that I have to use the maven-weblogic plugin. I tried adding/installing
all the dependencies into the parent POM as required for teh plugin. and
then did a mvn weblogic:appc on the parent directory. However, this
throws teh following error - 
 
Downloading: 
http://repo1.maven.org/maven2/web-maven/web-maven/1.0/web-maven-1.0
.pom
[INFO] [weblogic:appc]
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Unsupported project packaging pom
[INFO]

[INFO] Trace
java.lang.IllegalArgumentException: Unsupported project packaging pom
at
org.codehaus.mojo.weblogic.util.WeblogicMojoUtilities.updateArtifactN
ame(WeblogicMojoUtilities.java:109)
at
org.codehaus.mojo.weblogic.AppcMojo.execute(AppcMojo.java:144)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:443)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:493) 
 
Is the expectation different for deployment? How do I deploy this on my
webogic 9.2 server? Attached for reference is the parent POM and EAR pom
with all the dependencies (modified to hide some details). 
 
Thanks and regards,
Supriya 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]
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
  
	  com.prj1.c
	  cDecision
	  2.0
	  ../pom.xml
  
  com.prj1.c.decision
  cDecisionEAR
  ear
  2.0
  cdecision
  http://localhost:7001/


	
  com.prj1.c.decision.application
  cDecisionPOJO
  ${version}
 jar

 

  com.prj1.c.decision.service
  cDecisionEJB
  ${version}
 ejb


	
  com.prj1.c.decision.web
  cDecisionWAR
  ${version}
 war

	


	
		
		  Codehaus Snapshots
		  http://snapshots.repository.codehaus.org/
		  
			true
		  
		  
			false
		  
		
	  
	  
		
		  Codehaus Snapshots
		  http://snapshots.repository.codehaus.org/
		  
			true
		  
		  
			false
		  
		
	  


  

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

  
org.apache.maven.plugins
maven-ear-plugin

			

	com.prj1.c.decision.web
	cDecisionWAR


	com.prj1.c.decision.service
	cDecisionEJB

			
			lib/
 
   

  





  4.0.0
  com.prj1.c
  cDecision
  2.0
  c Decision WEB project
  pom

  
  	cDecisionPOJO
cDecisionEJB
cDecisionWAR
cDecisionEAR
  

  
  
		
			com.sun
			tools
			1.6.0
			system
			C:\Program Files\Java\jdk1.6.0_02\lib\tools.jar
		
		
		
			log4j
			log4j
			1.2.13
			compile
		

prj1-shared-services
enterprise-infrastructure-tuxedo
0.2


prj1-shared-services
enterprise-cares-access
0.4-SNAPSHOT


prj1-shared-services
enterprise-infrastructure-commons
0.2

		
weblogic
weblogic
9.0
provided
		
	
		
		
		  weblogic
		  xbean
		  9.0
		  provided
		

		
		  weblogic
		  webservices
		  9.0
		  provided
		

		
		  weblogic
		  wlxbean
		  9.0
		  provided
		

		
		  weblogic
		  wlw-util
		  9.0
		  provided
		

		
		  weblogic
		  wlw-langx
		  9.0
		  provided
		

		
		  weblogic
		  weblogic-container-binding
		  9.0
		  provided
		

		
		  weblogic
		  bcel
		  9.0
		  provided
		

		
		  weblogic
		  javelinx
		  9.0
		  provided
		 
  
		
			web-maven
			web-maven
			1.0
			provided
		

  

	
		
		  Codehaus Snapshots
		  http://snapshots.repository.codeha

Deploying EAR project to Weblogic

2007-07-31 Thread Vaidya, Supriya A \(US - Chicago\)
Hi:
 
I have a project structure such that an EAR is created containing a WAR,
and an EJB JAR. Thus, each module has its own directory and its own pom.
THe parent directory (say projectOverAll) has a pom with packaging =
pom.
 
Now, the project packages successfully - mvn clean install works fine. I
get my .ear file. I now want to deploy this to weblogic. I understand
that I have to use the maven-weblogic plugin. I tried adding/installing
all the dependencies into the parent POM as required for teh plugin. and
then did a mvn weblogic:appc on the parent directory. However, this
throws teh following error - 
 
Downloading: 
http://repo1.maven.org/maven2/web-maven/web-maven/1.0/web-maven-1.0
.pom
[INFO] [weblogic:appc]
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Unsupported project packaging pom
[INFO]

[INFO] Trace
java.lang.IllegalArgumentException: Unsupported project packaging pom
at
org.codehaus.mojo.weblogic.util.WeblogicMojoUtilities.updateArtifactN
ame(WeblogicMojoUtilities.java:109)
at
org.codehaus.mojo.weblogic.AppcMojo.execute(AppcMojo.java:144)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:443)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:493) 
 
Is the expectation different for deployment? How do I deploy this on my
webogic 9.2 server? Attached for reference is the parent POM and EAR pom
with all the dependencies (modified to hide some details). 
 
Thanks and regards,
Supriya 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]
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
  
	  com..
	  Decision
	  2.0
	  ../pom.xml
  
  com...decision
  DecisionEAR
  ear
  2.0
  decision
  http://localhost:7001/


	
  com...decision.application
  DecisionPOJO
  ${version}
 jar

 

  com...decision.service
  DecisionEJB
  ${version}
 ejb


	
  com...decision.web
  DecisionWAR
  ${version}
 war




	
		
		  Codehaus Snapshots
		  http://snapshots.repository.codehaus.org/
		  
			true
		  
		  
			false
		  
		
	  
	  
		
		  Codehaus Snapshots
		  http://snapshots.repository.codehaus.org/
		  
			true
		  
		  
			false
		  
		
	  


  

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

  
org.apache.maven.plugins
maven-ear-plugin

			

	com...decision.web
	DecisionWAR


	com...decision.service
	DecisionEJB

			
			lib/
 
   

   
  





  4.0.0
  com..
  Decision
  2.0
   Decision WEB project
  pom

  
  	DecisionPOJO
DecisionEJB
DecisionWAR
DecisionEAR
  

  
  
		
			com.sun
			tools
			1.6.0
			system
			C:\Program Files\Java\jdk1.6.0_02\lib\tools.jar
		
		
		
			log4j
			log4j
			1.2.13
			compile
		

-shared-services
enterprise-infrastructure-tuxedo
0.2


-shared-services
enterprise-cares-access
0.4-SNAPSHOT


-shared-services
enterprise-infrastructure-commons
0.2

		
weblogic
weblogic
9.1
provided
		
	

  

  
	  
		
		
		maven-compiler-plugin
		
		  1.5
		  1.5
		
		
	  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Passing System Variables to Maven

2007-07-31 Thread Steven Rowe
Hi David,

I have used an antrun plugin execution to generate a timestamp
properties file in the "initialize" phase, like this:


  ...
  
target/generated-resources
  
  ...


  ...
  
...

  maven-antrun-plugin
  

  generate-timestamp-properties-file
  initialize
  run
  

  
  

  
  
  

  

...
  

...
  
  ...



Hope it helps,
Steve

David Williams wrote:
> Guys,
> 
> Thanks for your responses.  What I really want to do is pass the current
> system date and or time to a properties file.  I already know what I need to
> do to filter in maven but I'm trying to figure out the best way to get these
> variables in a build.properties file for example.  I'm currently using Maven
> 2.0.6.  Some projects are building with java 1.4 and some with java 1.5.
> 
> Thanks again for your responses,
> 
> David
> 
> On 7/31/07, Eric Redmond <[EMAIL PROTECTED]> wrote:
>> That's fine, then stick them in the settings.xml. But you missed my point:
>> "env" access via properties won't be around in the next version of Maven,
>> so
>> they aren't a good suggestion.
>>
>> Eric
>>
>> On 7/31/07, Graham Leggett <[EMAIL PROTECTED]> wrote:
>>> Eric Redmond wrote:
>>>
 I would stick to -D options. "env" variables are going away in Maven
>>> soon.
>>>
>>> -D options are simply command line options, they are not an environment.
>>>
>>> Trying to create a pretend environment using -D violates the principle
>>> of least astonishment in a big way, and is a major headache if you have
>>> system specific information that maven requires, such as the location of
>>> eclipse for the pde-maven-plugin.
>>>
>>> Regards,
>>> Graham
>>
>> --
>> Eric Redmond
>> http://blog.propellors.net


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven: cannot find symbol build error

2007-07-31 Thread Wayne Fay
You might want to check the junit 4.0 jar itself to make sure there
isn't some weird problem in the archive. I know some people have had
weird problems when they were using a mis-configured mirror, resulting
in some .jar and .pom files being HTML 404 error text rather than the
proper content. So it may be that the junit jar on this machine is
simply corrupt.

Just a thought...

Wayne

On 7/31/07, Ian Dunlop <[EMAIL PROTECTED]> wrote:
> Hello,
>
> In the repository are junit 3.8.1, 3.8.2, 4.0 & 4.1. I believe it is
> 4.0 that is being used.
>
> Ian
>
> On 31 Jul 2007, at 15:04, Eric Redmond wrote:
>
> > That's curious - makes me think a transative dep of junit is not
> > found?
> > Natrually skipping the test will work, since maven.test.skip also
> > skips test
> > compilation, however, what version of junit are you using?
> >
> > --
> > Eric Redmond
> > http://blog.propellors.net
> >
> > On 7/31/07, Ian Dunlop <[EMAIL PROTECTED]> wrote:
> >>
> >> Hello,
> >>
> >> Here is some more info, with the stack trace:
> >>
> >> [INFO] Compiling 5 source files to /Users/Ian/scratch/taverna1.0/
> >> taverna-bootstrap/target/test-classes
> >> [INFO]
> >> -
> >> ---
> >> [ERROR] BUILD FAILURE
> >> [INFO]
> >> -
> >> ---
> >> [INFO] Compilation failure
> >>
> >> /Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
> >> taverna/tools/RepositoriesTest.java:[9,7] cannot find symbol
> >> symbol  : constructor TestCase()
> >> location: class junit.framework.TestCase
> >>
> >> /Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
> >> taverna/tools/ProfileSelectorTest.java:[14,7] cannot find symbol
> >> symbol  : constructor TestCase()
> >> location: class junit.framework.TestCase
> >>
> >> /Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
> >> taverna/tools/BootstrapTest.java:[9,7] cannot find symbol
> >> symbol  : constructor TestCase()
> >> location: class junit.framework.TestCase
> >>
> >> /Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
> >> taverna/tools/RavenPropertiesTest.java:[40,7] cannot find symbol
> >> symbol  : constructor TestCase()
> >> location: class junit.framework.TestCase
> >>
> >> /Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
> >> taverna/tools/RavenPropertiesTest.java:[96,16] cannot find symbol
> >> symbol  : method assertFalse(java.lang.String,boolean)
> >> location: class net.sf.taverna.tools.RavenPropertiesTest
> >>
> >> /Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
> >> taverna/tools/ProfileListSelectorTest.java:[9,7] cannot find symbol
> >> symbol  : constructor TestCase()
> >> location: class junit.framework.TestCase
> >>
> >>
> >> [INFO]
> >> -
> >> ---
> >> [INFO] Trace
> >> org.apache.maven.BuildFailureException: Compilation failure
> >>  at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
> >> (DefaultLifecycleExecutor.java:560)
> >>  at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> >> fec
> >> ycle(DefaultLifecycleExecutor.java:480)
> >>  at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> >> (DefaultLifecycleExecutor.java:459)
> >>  at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> >> dle
> >> Failures(DefaultLifecycleExecutor.java:311)
> >>  at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> >> ts(
> >> DefaultLifecycleExecutor.java:278)
> >>  at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
> >> (DefaultLifecycleExecutor.java:143)
> >>  at org.apache.maven.DefaultMaven.doExecute
> >> (DefaultMaven.java:
> >> 334)
> >>  at org.apache.maven.DefaultMaven.execute
> >> (DefaultMaven.java:125)
> >>  at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> >>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >> Method)
> >>  at sun.reflect.NativeMethodAccessorImpl.invoke
> >> (NativeMethodAccessorImpl.java:39)
> >>  at sun.reflect.DelegatingMethodAccessorImpl.invoke
> >> (DelegatingMethodAccessorImpl.java:25)
> >>  at java.lang.reflect.Method.invoke(Method.java:585)
> >>  at org.codehaus.classworlds.Launcher.launchEnhanced
> >> (Launcher.java:315)
> >>  at org.codehaus.classworlds.Launcher.launch(Launcher.java:
> >> 255)
> >>  at org.codehaus.classworlds.Launcher.mainWithExitCode
> >> (Launcher.java:430)
> >>  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >> Caused by: org.apache.maven.plugin.CompilationFailureException:
> >> Compilation failure
> >>  at org.apache.maven.plugin.AbstractCompilerMojo.execute
> >> (AbstractCompilerMojo.java:516)
> >>  at o

Re: Maven: cannot find symbol build error

2007-07-31 Thread Eric Redmond
Are your tests actually using the 4.0 annotations, or the old
reflection-based execution (methods prefixed w/ test*). If the latter, try
using junit 3.8.2 - which has always worked for me on Mac.

-- 
Eric Redmond
http://blog.propellors.net

On 7/31/07, Ian Dunlop <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> In the repository are junit 3.8.1, 3.8.2, 4.0 & 4.1. I believe it is
> 4.0 that is being used.
>
> Ian
>
> On 31 Jul 2007, at 15:04, Eric Redmond wrote:
>
> > That's curious - makes me think a transative dep of junit is not
> > found?
> > Natrually skipping the test will work, since maven.test.skip also
> > skips test
> > compilation, however, what version of junit are you using?
> >
> > --
> > Eric Redmond
> > http://blog.propellors.net
> >
> > On 7/31/07, Ian Dunlop <[EMAIL PROTECTED]> wrote:
> >>
> >> Hello,
> >>
> >> Here is some more info, with the stack trace:
> >>
> >> [INFO] Compiling 5 source files to /Users/Ian/scratch/taverna1.0/
> >> taverna-bootstrap/target/test-classes
> >> [INFO]
> >> -
> >> ---
> >> [ERROR] BUILD FAILURE
> >> [INFO]
> >> -
> >> ---
> >> [INFO] Compilation failure
> >>
> >> /Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
> >> taverna/tools/RepositoriesTest.java:[9,7] cannot find symbol
> >> symbol  : constructor TestCase()
> >> location: class junit.framework.TestCase
> >>
> >> /Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
> >> taverna/tools/ProfileSelectorTest.java:[14,7] cannot find symbol
> >> symbol  : constructor TestCase()
> >> location: class junit.framework.TestCase
> >>
> >> /Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
> >> taverna/tools/BootstrapTest.java:[9,7] cannot find symbol
> >> symbol  : constructor TestCase()
> >> location: class junit.framework.TestCase
> >>
> >> /Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
> >> taverna/tools/RavenPropertiesTest.java:[40,7] cannot find symbol
> >> symbol  : constructor TestCase()
> >> location: class junit.framework.TestCase
> >>
> >> /Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
> >> taverna/tools/RavenPropertiesTest.java:[96,16] cannot find symbol
> >> symbol  : method assertFalse(java.lang.String,boolean)
> >> location: class net.sf.taverna.tools.RavenPropertiesTest
> >>
> >> /Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
> >> taverna/tools/ProfileListSelectorTest.java:[9,7] cannot find symbol
> >> symbol  : constructor TestCase()
> >> location: class junit.framework.TestCase
> >>
> >>
> >> [INFO]
> >> -
> >> ---
> >> [INFO] Trace
> >> org.apache.maven.BuildFailureException: Compilation failure
> >>  at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
> >> (DefaultLifecycleExecutor.java:560)
> >>  at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> >> fec
> >> ycle(DefaultLifecycleExecutor.java:480)
> >>  at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> >> (DefaultLifecycleExecutor.java:459)
> >>  at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> >> dle
> >> Failures(DefaultLifecycleExecutor.java:311)
> >>  at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> >> ts(
> >> DefaultLifecycleExecutor.java:278)
> >>  at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
> >> (DefaultLifecycleExecutor.java:143)
> >>  at org.apache.maven.DefaultMaven.doExecute
> >> (DefaultMaven.java:
> >> 334)
> >>  at org.apache.maven.DefaultMaven.execute
> >> (DefaultMaven.java:125)
> >>  at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> >>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >> Method)
> >>  at sun.reflect.NativeMethodAccessorImpl.invoke
> >> (NativeMethodAccessorImpl.java:39)
> >>  at sun.reflect.DelegatingMethodAccessorImpl.invoke
> >> (DelegatingMethodAccessorImpl.java:25)
> >>  at java.lang.reflect.Method.invoke(Method.java:585)
> >>  at org.codehaus.classworlds.Launcher.launchEnhanced
> >> (Launcher.java:315)
> >>  at org.codehaus.classworlds.Launcher.launch(Launcher.java:
> >> 255)
> >>  at org.codehaus.classworlds.Launcher.mainWithExitCode
> >> (Launcher.java:430)
> >>  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >> Caused by: org.apache.maven.plugin.CompilationFailureException:
> >> Compilation failure
> >>  at org.apache.maven.plugin.AbstractCompilerMojo.execute
> >> (AbstractCompilerMojo.java:516)
> >>  at org.apache.maven.plugin.TestCompilerMojo.execute
> >> (TestCompilerMojo.java:102)
> >>  at org.apache.maven.plugin.DefaultPluginManager.e

Re: assembly issue with an ear

2007-07-31 Thread Eric Redmond
That's unfortunate... looks like you'll have to wait until 2.1 for a better
solution :(

-- 
Eric Redmond
http://blog.propellors.net

On 7/31/07, nicolas de loof <[EMAIL PROTECTED]> wrote:
>
> Doesn't work in any way (assembly:*) when the assembly plugin is
> configured
> to run during package phase. The only way to make it work is to run "mvn
> package assembly:*"
>
> 2007/7/31, Eric Redmond <[EMAIL PROTECTED]>:
> >
> > Have you tried binding assembly:attached to the packaging phase? I don't
> > know which would execute first (std package or assembly), but it might
> be
> > worth a short. In 2.1 the pre-package phase will be added, so things
> like
> > this should be easier to deal with in a consistent way.
> >
> > --
> > Eric Redmond
> > http://blog.propellors.net
> >
> > On 7/31/07, nicolas de loof <[EMAIL PROTECTED]> wrote:
> > >
> > > Found the answer myself :
> > >
> > >
> > >
> >
> http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html
> > > "*NOTE:* Because of a quirk in Maven 2.0's execution model relating to
> > > aggregator mojos and the inheritance hierarchy, we need to explicitly
> > > execute the package phase ahead of the assembly invocation, to ensure
> > all
> > > modules have been built."
> > >
> > >
> > >
> > > 2007/7/31, nicolas de loof <[EMAIL PROTECTED]>:
> > > >
> > > > My project has multiple modules, one of them packages my webapp as
> > ear.
> > > > My parent project has an assembly descriptor to build a tar from
> > > artifacts
> > > > + some script files
> > > >
> > > > If I run "mvn assembly:assembly" I get a strange error about my ear
> > > having
> > > > no file attached :
> > > >
> > > > [INFO] Failed to create assembly: Artifact:
> > > > com.capgemini.vpc:vpc-application:ear:2.17.00 (included by module)
> > does
> > > > not
> > > > have an artifact with a file. Please ensure the package phase is run
> > > > before the assembly is generated.
> > > >
> > > > if I run "mvn package assembly:assembly" the assembly is build as
> > > > expected, but packaging occurs twice as assembly:assembly allready
> > force
> > > > one...
> > > >
> > > > What's wrong ?
> > > > Nico.
> > > >
> > >
> >
>


Re: Assembly plugin includes directories

2007-07-31 Thread Eric Redmond
I don't remember "includeBaseDirectory" being a valid element under
"dependencytSet". Try removing it, and re-running the assembly by first
running clean:

mvn clean assembly:assembly

-- 
Eric Redmond
http://blog.propellors.net

On 7/30/07, Petar Tahchiev <[EMAIL PROTECTED]> wrote:
>
> Andrew hi,
>
> and thank you for the swift response. As I have listed I have set
> false
> so I don't think this is the problem. The A:B and A:C artifacts doesn't
> have
> the B.jar and C.jar directories in their archives.
>
>
> Any other ideas?
>
> 2007/7/31, Andrew Boyer <[EMAIL PROTECTED]>:
> >
> > Check your assembly descriptor for A:B and A:C, make sure you've set the
> > includeBaseDirectory property for them to false.
> >
> > Andrew
> >
> > > -Original Message-
> > > From: Petar Tahchiev [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, July 30, 2007 5:43 PM
> > > To: Maven Users List
> > > Subject: Assembly plugin includes directories
> > >
> > > Hi guys,
> > >
> > > I have the following situation: I have configured the assembl plugin
> > so
> > > that
> > > it produces an archive that contains
> > > the content of another two archives. My assembly descriptor is this
> > one:
> > > 
> > > 
> > > jar
> > > 
> > > false
> > > 
> > > 
> > > /
> > > false
> > > 
> > > A:B:jar
> > > A:C:jar
> > > 
> > >
> > > true
> > > test
> > > 
> > > 
> > > 
> > >
> > > The problem is that the new archive that is created contains the
> > original
> > > folders, like:
> > > Archive
> > > |
> > > | B.jar-/contentsOfB
> > > | C.jar-/contentsOfC
> > >
> > > So basicaly in the example above I don't want the B.jar and
> > > C.jardirectories in my archive.
> > >
> > > Have anyone seen this problem?
> > >
> > > Thank you.
> > >
> > >
> > > --
> > > Regards, Petar!
> > > Karlovo, Bulgaria.
> > >
> > > Bulgarian medics in Libya are innocent!
> > > http://www.nestesami.bg/main/index.php
> > >
> > > Public PGP Key at:
> > >
> > https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C311061
> > 1
> > > Key Fingerprint: A369 A7EE 61BC 93A3 CDFF  55A5 1965 8550 C311 0611
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Regards, Petar!
> Karlovo, Bulgaria.
>
> Public PGP Key at:
> https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611
> Key Fingerprint: A369 A7EE 61BC 93A3 CDFF  55A5 1965 8550 C311 0611
>


Re: Maven: cannot find symbol build error

2007-07-31 Thread Ian Dunlop

Hello,

In the repository are junit 3.8.1, 3.8.2, 4.0 & 4.1. I believe it is  
4.0 that is being used.


Ian

On 31 Jul 2007, at 15:04, Eric Redmond wrote:

That's curious - makes me think a transative dep of junit is not  
found?
Natrually skipping the test will work, since maven.test.skip also  
skips test

compilation, however, what version of junit are you using?

--
Eric Redmond
http://blog.propellors.net

On 7/31/07, Ian Dunlop <[EMAIL PROTECTED]> wrote:


Hello,

Here is some more info, with the stack trace:

[INFO] Compiling 5 source files to /Users/Ian/scratch/taverna1.0/
taverna-bootstrap/target/test-classes
[INFO]
- 
---

[ERROR] BUILD FAILURE
[INFO]
- 
---

[INFO] Compilation failure

/Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
taverna/tools/RepositoriesTest.java:[9,7] cannot find symbol
symbol  : constructor TestCase()
location: class junit.framework.TestCase

/Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
taverna/tools/ProfileSelectorTest.java:[14,7] cannot find symbol
symbol  : constructor TestCase()
location: class junit.framework.TestCase

/Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
taverna/tools/BootstrapTest.java:[9,7] cannot find symbol
symbol  : constructor TestCase()
location: class junit.framework.TestCase

/Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
taverna/tools/RavenPropertiesTest.java:[40,7] cannot find symbol
symbol  : constructor TestCase()
location: class junit.framework.TestCase

/Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
taverna/tools/RavenPropertiesTest.java:[96,16] cannot find symbol
symbol  : method assertFalse(java.lang.String,boolean)
location: class net.sf.taverna.tools.RavenPropertiesTest

/Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
taverna/tools/ProfileListSelectorTest.java:[9,7] cannot find symbol
symbol  : constructor TestCase()
location: class junit.framework.TestCase


[INFO]
- 
---

[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(DefaultLifecycleExecutor.java:560)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi 
fec

ycle(DefaultLifecycleExecutor.java:480)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(DefaultLifecycleExecutor.java:459)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan 
dle

Failures(DefaultLifecycleExecutor.java:311)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen 
ts(

DefaultLifecycleExecutor.java:278)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLifecycleExecutor.java:143)
 at org.apache.maven.DefaultMaven.doExecute 
(DefaultMaven.java:

334)
 at org.apache.maven.DefaultMaven.execute 
(DefaultMaven.java:125)

 at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native  
Method)

 at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at org.codehaus.classworlds.Launcher.launchEnhanced
(Launcher.java:315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java: 
255)

 at org.codehaus.classworlds.Launcher.mainWithExitCode
(Launcher.java:430)
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.CompilationFailureException:
Compilation failure
 at org.apache.maven.plugin.AbstractCompilerMojo.execute
(AbstractCompilerMojo.java:516)
 at org.apache.maven.plugin.TestCompilerMojo.execute
(TestCompilerMojo.java:102)
 at org.apache.maven.plugin.DefaultPluginManager.executeMojo
(DefaultPluginManager.java:443)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(DefaultLifecycleExecutor.java:539)
 ... 16 more

On 31 Jul 2007, at 12:24, Ian Dunlop wrote:


Hello,

I am trying to use Maven (2.0.7) to build an application on an
Intel Mac (OSX 10.4.10).  It keeps failing with 'cannot find
symbol' related to a Junit class.  The app builds perfectly on
Linux.   Building with the -Dmaven.test.skip=true flag on the Mac
is successful.  I have looked on the web and the only related post
was to do with using Maven with Java6 (http://mail-
archives.apache.org/mod_mbox/maven-users/200612.mbox/%
[EMAIL PROTECTED]).   I am using Java5 but have the
Java6 developer preview on my Mac - could this be the issue.  If
not then do you have any ideas.

Re: assembly issue with an ear

2007-07-31 Thread nicolas de loof
Doesn't work in any way (assembly:*) when the assembly plugin is configured
to run during package phase. The only way to make it work is to run "mvn
package assembly:*"

2007/7/31, Eric Redmond <[EMAIL PROTECTED]>:
>
> Have you tried binding assembly:attached to the packaging phase? I don't
> know which would execute first (std package or assembly), but it might be
> worth a short. In 2.1 the pre-package phase will be added, so things like
> this should be easier to deal with in a consistent way.
>
> --
> Eric Redmond
> http://blog.propellors.net
>
> On 7/31/07, nicolas de loof <[EMAIL PROTECTED]> wrote:
> >
> > Found the answer myself :
> >
> >
> >
> http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html
> > "*NOTE:* Because of a quirk in Maven 2.0's execution model relating to
> > aggregator mojos and the inheritance hierarchy, we need to explicitly
> > execute the package phase ahead of the assembly invocation, to ensure
> all
> > modules have been built."
> >
> >
> >
> > 2007/7/31, nicolas de loof <[EMAIL PROTECTED]>:
> > >
> > > My project has multiple modules, one of them packages my webapp as
> ear.
> > > My parent project has an assembly descriptor to build a tar from
> > artifacts
> > > + some script files
> > >
> > > If I run "mvn assembly:assembly" I get a strange error about my ear
> > having
> > > no file attached :
> > >
> > > [INFO] Failed to create assembly: Artifact:
> > > com.capgemini.vpc:vpc-application:ear:2.17.00 (included by module)
> does
> > > not
> > > have an artifact with a file. Please ensure the package phase is run
> > > before the assembly is generated.
> > >
> > > if I run "mvn package assembly:assembly" the assembly is build as
> > > expected, but packaging occurs twice as assembly:assembly allready
> force
> > > one...
> > >
> > > What's wrong ?
> > > Nico.
> > >
> >
>


Re: QAR question - generate JAR from classes and include into WEB-INF/lib

2007-07-31 Thread Eric Redmond
Yeah, it was added in 2.0.1, iirc. So he could specify version 2.0.1 if he
wants to stick to a defined version (which I like to do).

-- 
Eric Redmond
http://blog.propellors.net

On 7/31/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
>
> No, in all likelihood, version 2.0 of the war plugin did not have this
> feature. It must have been added in a version greater than 2.0.
>
> Wayne
>
> On 7/31/07, Eugeny N Dzhurinsky <[EMAIL PROTECTED]> wrote:
> > On Tue, Jul 31, 2007 at 05:38:53PM +0300, Eugeny N Dzhurinsky wrote:
> > > On Tue, Jul 31, 2007 at 08:40:14AM -0400, Ian Springer wrote:
> > > > Eugeny N Dzhurinsky wrote:
> > > >> Hello!
> > > >>
> > > >> Could somebody please explain how is it possible to create WAR file
> from
> > > >> WEB
> > > >> application, but instead of having Java sources compiled and placed
> into
> > > >> WEB-INF/classes - package those classes as a JAR file and place it
> into
> > > >> WEB-INF/lib/?
> > > >>
> > > > true in the plugin config.
> > >
> > > For some reason it doesn't work:
> > >
> > >
> > > 
> > >   
> > >   
> > >   org.apache.maven.plugins
> > >   maven-compiler-plugin
> > >   
> > >   1.5
> > >   1.5
> > >   
> > >   
> > >   
> > >   org.apache.maven.plugins
> > >   maven-war-plugin
> > >   2.0
> > >   
> > >   true
> > >   
> > >   
> > >   
> > > 
> >
> > I just implemented this:
> >
> >
> > 
> >
> >
> >org.apache.maven.plugins
> >maven-compiler-plugin
> >
> >1.5
> >1.5
> >
> >
> >
> >org.apache.maven.plugins
> >maven-war-plugin
> >
> >true
> >
> >
> >
> > 
> >
> > and it worked! Is version 2.0 is broken?
> >
> > --
> > Eugene N Dzhurinsky
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


Re: Maven: cannot find symbol build error

2007-07-31 Thread Ian Dunlop

Hello,

I think this is where it is declared.  The system has built on other  
Macs, so if it is just my system maybe I will have to reload OSX (but  
that is the last resort). This is my first time using maven (mainly  
used Ant before) so I have haven't got a great idea about what is  
going on.



  
junit
junit
4.0
test


On 31 Jul 2007, at 14:57, Michael Meyer wrote:


Hi,
how did you define the junit dependency in the pom? You're not  
using system or something like that, are you?


Cheers, michael

Ian Dunlop wrote:

Hello,
Here is some more info, with the stack trace:
[INFO] Compiling 5 source files to /Users/Ian/scratch/taverna1.0/ 
taverna-bootstrap/target/test-classes
[INFO]  
- 
---

[ERROR] BUILD FAILURE
[INFO]  
- 
---

[INFO] Compilation failure
/Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/ 
sf/taverna/tools/RepositoriesTest.java:[9,7] cannot find symbol

symbol  : constructor TestCase()
location: class junit.framework.TestCase
/Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/ 
sf/taverna/tools/ProfileSelectorTest.java:[14,7] cannot find symbol

symbol  : constructor TestCase()
location: class junit.framework.TestCase
/Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/ 
sf/taverna/tools/BootstrapTest.java:[9,7] cannot find symbol

symbol  : constructor TestCase()
location: class junit.framework.TestCase
/Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/ 
sf/taverna/tools/RavenPropertiesTest.java:[40,7] cannot find symbol

symbol  : constructor TestCase()
location: class junit.framework.TestCase
/Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/ 
sf/taverna/tools/RavenPropertiesTest.java:[96,16] cannot find symbol

symbol  : method assertFalse(java.lang.String,boolean)
location: class net.sf.taverna.tools.RavenPropertiesTest
/Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/ 
sf/taverna/tools/ProfileListSelectorTest.java:[9,7] cannot find  
symbol

symbol  : constructor TestCase()
location: class junit.framework.TestCase
[INFO]  
- 
---

[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals 
(DefaultLifecycleExecutor.java:560) at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi 
fecycle(DefaultLifecycleExecutor.java:480) at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal 
(DefaultLifecycleExecutor.java:459) at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan 
dleFailures(DefaultLifecycleExecutor.java:311) at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen 
ts(DefaultLifecycleExecutor.java:278) at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute 
(DefaultLifecycleExecutor.java:143) at  
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java: 
125)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native  
Method)
at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:39) at  
sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25) at  
java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced 
(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java: 
255)
at org.codehaus.classworlds.Launcher.mainWithExitCode 
(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.CompilationFailureException:  
Compilation failure
at org.apache.maven.plugin.AbstractCompilerMojo.execute 
(AbstractCompilerMojo.java:516) at  
org.apache.maven.plugin.TestCompilerMojo.execute 
(TestCompilerMojo.java:102)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo 
(DefaultPluginManager.java:443) at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals 
(DefaultLifecycleExecutor.java:539) ... 16 more

On 31 Jul 2007, at 12:24, Ian Dunlop wrote:

Hello,

I am trying to use Maven (2.0.7) to build an application on an  
Intel Mac (OSX 10.4.10).  It keeps failing with 'cannot find  
symbol' related to a Junit class.  The app builds perfectly on  
Linux.   Building with the -Dmaven.test.skip=true flag on the Mac  
is successful.  I have looked on the web and the only related  
post was to do with using Maven with Java6 (http://mail- 
archives.apache.org/mod_mbox/maven-users/200612.mbox/% 
[EMAIL PROTECTED]).   

Re: How to add dependencies in the POM.xml?

2007-07-31 Thread Wayne Fay
You simply need to provide the archetypeVersion number as well.

This exact error/issue is mentioned on the "guide creating archetypes" page:
http://maven.apache.org/guides/mini/guide-creating-archetypes.html

"Don't forget to include the version of your archetype (if you don't
include the version, you archetype creation may fail with a message
that version:RELEASE was not found) "

mvn archetype:create\
  -DarchetypeGroupId=\
  -DarchetypeArtifactId=  \
  -DarchetypeVersion=\
  -DgroupId=\
  -DartifactId=

Wayne

On 7/31/07, Shilpac <[EMAIL PROTECTED]> wrote:
>
> Hi,
>  I am getting the following error
>
>
>
> C:\Maven\Demo>mvn archetype:create
> -DarchetypeGroupId=org.apache.maven.archet
> es -DarchetypeArtifactId=maven-archetype-site -DgroupId=com.cognizant
> -Dartifa
> Id=Demo
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO]
> ---
> ---
> [INFO] Building Demo
> [INFO]task-segment: [archetype:create] (aggregator-style)
> [INFO]
> ---
> ---
> [INFO] Setting property: classpath.resource.loader.class =>
> 'org.codehaus.plex
> .velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] **
> [INFO] Starting Jakarta Velocity v1.4
> [INFO] RuntimeInstance initializing.
> [INFO] Default Properties File:
> org\apache\velocity\runtime\defaults\velocity.
> operties
> [INFO] Default ResourceManager initializing. (class
> org.apache.velocity.runtim
> resource.ResourceManagerImpl)
> [INFO] Resource Loader Instantiated:
> org.codehaus.plexus.velocity.ContextClass
> aderResourceLoader
> [INFO] ClasspathResourceLoader : initialization starting.
> [INFO] ClasspathResourceLoader : initialization complete.
> [INFO] ResourceCache : initialized. (class
> org.apache.velocity.runtime.resourc
> ResourceCacheImpl)
> [INFO] Default ResourceManager initialization complete.
> [INFO] Loaded System Directive:
> org.apache.velocity.runtime.directive.Literal
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
> [INFO] Loaded System Directive:
> org.apache.velocity.runtime.directive.Include
> [INFO] Loaded System Directive:
> org.apache.velocity.runtime.directive.Foreach
> [INFO] Created: 20 parsers.
> [INFO] Velocimacro : initialization starting.
> [INFO] Velocimacro : adding VMs from VM library template :
> VM_global_library.v
> [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in
> an
> resource loader.
> [INFO] Velocimacro : error using  VM library template VM_global_library.vm :
> o
> .apache.velocity.exception.ResourceNotFoundException: Unable to find
> resource
> M_global_library.vm'
> [INFO] Velocimacro :  VM library template macro registration complete.
> [INFO] Velocimacro : allowInline = true : VMs can be defined inline in
> templat
>
> [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may
> NO
> replace previous VM definitions
> [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be
> gl
> al in scope if allowed.
> [INFO] Velocimacro : initialization complete.
> [INFO] Velocity successfully started.
> [INFO] [archetype:create]
> [INFO] Defaulting package to group ID: com.cognizant
> [INFO] artifact org.apache.maven.archetypes:maven-archetype-site: checking
> for
> pdates from central
> [WARNING] repository metadata for: 'artifact
> org.apache.maven.archetypes:maven
> rchetype-site' could not be retrieved from repository: central due to an
> error
> Error transferring file
> [INFO] Repository 'central' will be blacklisted
> [INFO]
> ---
> [ERROR] BUILD ERROR
> [INFO]
> ---
> [INFO] Failed to resolve artifact.
>
> GroupId: org.apache.maven.archetypes
> ArtifactId: maven-archetype-site
> Version: RELEASE
>
> Reason: Unable to determine the release version
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
>mvn install:install-file -DgroupId=org.apache.maven.archetypes
> -DartifactI
> maven-archetype-site \
>-Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file
> Alternatively, if you host your own repository you can deploy the file
> there:
>  mvn deploy:deploy-file -DgroupId=org.apache.maven.archetypes
> -DartifactId=ma
> n-archetype-site \
>-Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file \
> -Dur

Re: QAR question - generate JAR from classes and include into WEB-INF/lib

2007-07-31 Thread Wayne Fay
No, in all likelihood, version 2.0 of the war plugin did not have this
feature. It must have been added in a version greater than 2.0.

Wayne

On 7/31/07, Eugeny N Dzhurinsky <[EMAIL PROTECTED]> wrote:
> On Tue, Jul 31, 2007 at 05:38:53PM +0300, Eugeny N Dzhurinsky wrote:
> > On Tue, Jul 31, 2007 at 08:40:14AM -0400, Ian Springer wrote:
> > > Eugeny N Dzhurinsky wrote:
> > >> Hello!
> > >>
> > >> Could somebody please explain how is it possible to create WAR file from
> > >> WEB
> > >> application, but instead of having Java sources compiled and placed into
> > >> WEB-INF/classes - package those classes as a JAR file and place it into
> > >> WEB-INF/lib/?
> > >>
> > > true in the plugin config.
> >
> > For some reason it doesn't work:
> >
> >
> > 
> >   
> >   
> >   org.apache.maven.plugins
> >   maven-compiler-plugin
> >   
> >   1.5
> >   1.5
> >   
> >   
> >   
> >   org.apache.maven.plugins
> >   maven-war-plugin
> >   2.0
> >   
> >   true
> >   
> >   
> >   
> > 
>
> I just implemented this:
>
>
> 
>
>
>org.apache.maven.plugins
>maven-compiler-plugin
>
>1.5
>1.5
>
>
>
>org.apache.maven.plugins
>maven-war-plugin
>
>true
>
>
>
> 
>
> and it worked! Is version 2.0 is broken?
>
> --
> Eugene N Dzhurinsky
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: QAR question - generate JAR from classes and include into WEB-INF/lib

2007-07-31 Thread Wayne Fay
Did you run "mvn clean package" to delete the *.class files, or simply
"mvn package"?

Wayne

On 7/31/07, Eugeny N Dzhurinsky <[EMAIL PROTECTED]> wrote:
> On Tue, Jul 31, 2007 at 08:40:14AM -0400, Ian Springer wrote:
> > Eugeny N Dzhurinsky wrote:
> >> Hello!
> >>
> >> Could somebody please explain how is it possible to create WAR file from
> >> WEB
> >> application, but instead of having Java sources compiled and placed into
> >> WEB-INF/classes - package those classes as a JAR file and place it into
> >> WEB-INF/lib/?
> >>
> > true in the plugin config.
>
> For some reason it doesn't work:
>
>
>
>
>
>org.apache.maven.plugins
>maven-compiler-plugin
>
>1.5
>1.5
>
>
>
>org.apache.maven.plugins
>maven-war-plugin
>2.0
>
>true
>
>
>
>
>
> the WAR file still contains WEB-INF/classes directory with set of *.class
> files, and no application JAR file is generated in WEB-INF/lib
>
> --
> Eugene N Dzhurinsky
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: QAR question - generate JAR from classes and include into WEB-INF/lib

2007-07-31 Thread Eugeny N Dzhurinsky
On Tue, Jul 31, 2007 at 05:38:53PM +0300, Eugeny N Dzhurinsky wrote:
> On Tue, Jul 31, 2007 at 08:40:14AM -0400, Ian Springer wrote:
> > Eugeny N Dzhurinsky wrote:
> >> Hello!
> >> 
> >> Could somebody please explain how is it possible to create WAR file from 
> >> WEB
> >> application, but instead of having Java sources compiled and placed into
> >> WEB-INF/classes - package those classes as a JAR file and place it into
> >> WEB-INF/lib/?
> >>   
> > true in the plugin config.
> 
> For some reason it doesn't work:
> 
> 
>
>  
>   
>   org.apache.maven.plugins
>   maven-compiler-plugin
>   
>   1.5
>   1.5
>   
>  
>   
>   org.apache.maven.plugins
>   maven-war-plugin
>   2.0
>   
>   true
>   
>   
>   
> 

I just implemented this:


   
   

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

1.5
1.5

   

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

true 

 



and it worked! Is version 2.0 is broken?

-- 
Eugene N Dzhurinsky


pgpAnUyp9q1pM.pgp
Description: PGP signature


Re: Passing System Variables to Maven

2007-07-31 Thread David Williams
Guys,

Thanks for your responses.  What I really want to do is pass the current
system date and or time to a properties file.  I already know what I need to
do to filter in maven but I'm trying to figure out the best way to get these
variables in a build.properties file for example.  I'm currently using Maven
2.0.6.  Some projects are building with java 1.4 and some with java 1.5.

Thanks again for your responses,

David

On 7/31/07, Eric Redmond <[EMAIL PROTECTED]> wrote:
>
> That's fine, then stick them in the settings.xml. But you missed my point:
> "env" access via properties won't be around in the next version of Maven,
> so
> they aren't a good suggestion.
>
> Eric
>
> On 7/31/07, Graham Leggett <[EMAIL PROTECTED]> wrote:
> >
> > Eric Redmond wrote:
> >
> > > I would stick to -D options. "env" variables are going away in Maven
> > soon.
> >
> > -D options are simply command line options, they are not an environment.
> >
> > Trying to create a pretend environment using -D violates the principle
> > of least astonishment in a big way, and is a major headache if you have
> > system specific information that maven requires, such as the location of
> > eclipse for the pde-maven-plugin.
> >
> > Regards,
> > Graham
> > --
> >
> >
>
>
> --
> Eric Redmond
> http://blog.propellors.net
>


Re: Maven file creation

2007-07-31 Thread Wayne Fay
Shilpac,

Please do not post the same question twice (!!). It just clutters the
list and confuses people.

I've solved your problem in the other thread. Please refer to it.

Wayne

On 7/31/07, Maria Odea Ching <[EMAIL PROTECTED]> wrote:
> Could you try deleting the maven-archetype-plugin and
> maven-archetype-site (including the poms and metadata files) from you
> local repository, then build again?
>
> -Deng
>
> Shilpac wrote:
> > Hi,
> >   Following is the error when I tried to create a file using maven
> >
> >
> > C:\Maven>mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes
> > -Da
> > rchetypeArtifactId=maven-archetype-site -DgroupId=com.mycompany.app
> > -DartifactI
> > d=my-app-site
> > [INFO] Scanning for projects...
> > [INFO] Searching repository for plugin with prefix: 'archetype'.
> > [INFO]
> > -
> > ---
> > [INFO] Building Maven Default Project
> > [INFO]task-segment: [archetype:create] (aggregator-style)
> > [INFO]
> > -
> > ---
> > [INFO] Setting property: classpath.resource.loader.class =>
> > 'org.codehaus.plexus
> > .velocity.ContextClassLoaderResourceLoader'.
> > [INFO] Setting property: velocimacro.messages.on => 'false'.
> > [INFO] Setting property: resource.loader => 'classpath'.
> > [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> > [INFO] **
> > [INFO] Starting Jakarta Velocity v1.4
> > [INFO] RuntimeInstance initializing.
> > [INFO] Default Properties File:
> > org\apache\velocity\runtime\defaults\velocity.pr
> > operties
> > [INFO] Default ResourceManager initializing. (class
> > org.apache.velocity.runtime.
> > resource.ResourceManagerImpl)
> > [INFO] Resource Loader Instantiated:
> > org.codehaus.plexus.velocity.ContextClassLo
> > aderResourceLoader
> > [INFO] ClasspathResourceLoader : initialization starting.
> > [INFO] ClasspathResourceLoader : initialization complete.
> > [INFO] ResourceCache : initialized. (class
> > org.apache.velocity.runtime.resource.
> > ResourceCacheImpl)
> > [INFO] Default ResourceManager initialization complete.
> > [INFO] Loaded System Directive:
> > org.apache.velocity.runtime.directive.Literal
> > [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
> > [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
> > [INFO] Loaded System Directive:
> > org.apache.velocity.runtime.directive.Include
> > [INFO] Loaded System Directive:
> > org.apache.velocity.runtime.directive.Foreach
> > [INFO] Created: 20 parsers.
> > [INFO] Velocimacro : initialization starting.
> > [INFO] Velocimacro : adding VMs from VM library template :
> > VM_global_library.vm
> > [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in
> > any
> > resource loader.
> > [INFO] Velocimacro : error using  VM library template VM_global_library.vm :
> > org
> > .apache.velocity.exception.ResourceNotFoundException: Unable to find
> > resource 'V
> > M_global_library.vm'
> > [INFO] Velocimacro :  VM library template macro registration complete.
> > [INFO] Velocimacro : allowInline = true : VMs can be defined inline in
> > templates
> >
> > [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may
> > NOT
> > replace previous VM definitions
> > [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be
> > glob
> > al in scope if allowed.
> > [INFO] Velocimacro : initialization complete.
> > [INFO] Velocity successfully started.
> > [INFO] [archetype:create]
> > [INFO] Defaulting package to group ID: com.mycompany.app
> > [INFO] artifact org.apache.maven.archetypes:maven-archetype-site: checking
> > for u
> > pdates from central
> > [WARNING] repository metadata for: 'artifact
> > org.apache.maven.archetypes:maven-a
> > rchetype-site' could not be retrieved from repository: central due to an
> > error:
> > Error transferring file
> > [INFO] Repository 'central' will be blacklisted
> > [INFO]
> > 
> > [ERROR] BUILD ERROR
> > [INFO]
> > 
> > [INFO] Failed to resolve artifact.
> >
> > GroupId: org.apache.maven.archetypes
> > ArtifactId: maven-archetype-site
> > Version: RELEASE
> >
> > Reason: Unable to determine the release version
> >
> > Try downloading the file manually from the project website.
> >
> > Then, install it using the command:
> > mvn install:install-file -DgroupId=org.apache.maven.archetypes
> > -DartifactId=
> > maven-archetype-site \
> > -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file
> > Alternatively, if you host your own repository you can deploy the file
> > there:
> >   mvn deploy:deploy-file -DgroupId=org.apache.maven.archetypes
> > -DartifactId=mave
> > n-archetype-site \
>

Re: QAR question - generate JAR from classes and include into WEB-INF/lib

2007-07-31 Thread Eugeny N Dzhurinsky
On Tue, Jul 31, 2007 at 08:40:14AM -0400, Ian Springer wrote:
> Eugeny N Dzhurinsky wrote:
>> Hello!
>> 
>> Could somebody please explain how is it possible to create WAR file from 
>> WEB
>> application, but instead of having Java sources compiled and placed into
>> WEB-INF/classes - package those classes as a JAR file and place it into
>> WEB-INF/lib/?
>>   
> true in the plugin config.

For some reason it doesn't work:


   
   

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

1.5
1.5

   

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

true





the WAR file still contains WEB-INF/classes directory with set of *.class
files, and no application JAR file is generated in WEB-INF/lib

-- 
Eugene N Dzhurinsky


pgpgCxF5pTSX2.pgp
Description: PGP signature


RE: jetty plugin from Mavenide

2007-07-31 Thread John Coleman
NetBeans 5.5 Mavenide 2.3

Where do I file a bug pls?

Thanks,
John

-Original Message-
From: Milos Kleint [mailto:[EMAIL PROTECTED] 
Sent: 31 July 2007 14:28
To: Maven Users List
Subject: Re: jetty plugin from Mavenide

exiting the IDE should help  I suppose. That's not a good solution
though.
Please file a bug against mevenide, I'll take a look what can be done.
What version of netbeans/mevenide are you using?

Milos

On 7/31/07, John Coleman <[EMAIL PROTECTED]>
wrote:
> Hi,
>
>
>
> Does anyone know how to stop the jetty plugin after staring it using
> Mavenide please? Hitting the orange X button doesn't seem to do
> anything.
>
>
>
> TIA,
>
> John
>
>
>
>
> Eurobase International Limited and its subsidiaries (Eurobase) are
unable to exercise control over the content of information in E-Mails.
Any views and opinions expressed may be personal to the sender and are
not necessarily those of Eurobase. Eurobase will not enter into any
contractual obligations in respect of any part of its business in any
E-mail.
>
> Privileged / confidential information may be contained in this message
and /or any attachments. This E-mail is intended for the use of the
addressee(s) only and may contain confidential information. If you are
not the / an intended recipient, you are hereby notified that any use or
dissemination of this communication is strictly prohibited.  If you
receive this transmission in error, please notify us immediately, and
then delete this E-mail.
>
> Neither the sender nor Eurobase accepts any liability whatsoever for
any defects of any kind either in or arising from this E-mail
transmission. E-Mail transmission cannot be guaranteed to be secure or
error-free, as messages can be intercepted, lost, corrupted, destroyed,
contain viruses, or arrive late or incomplete. Eurobase does not accept
any responsibility for viruses and it is your responsibility to scan any
attachments.
>
> Eurobase Systems Limited is the main trading company in the Eurobase
International Group; registered in England and Wales as company number
02251162; registered address: Essex House, 2 County Place, Chelmsford,
Essex CM2 0RE, UK.
>
>

-
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]



continuum 1.0.3 build errors but mvn fine

2007-07-31 Thread John Coleman
My continuum builds continue to spew this message out...

 

[INFO] artifact com.eurobase.maven.plugins:web-flavour: checking for
updates from central [WARNING] repository metadata for: 'artifact
com.eurobase.maven.plugins:web-flavour' could not be retrieved from
repository: central due to an error: Error transferring file [INFO]
Repository 'central' will be blacklisted [INFO]


[ERROR] BUILD ERROR

[INFO]


[INFO] The plugin 'com.eurobase.maven.plugins:web-flavour' does not
exist or no valid version could be found [INFO]

 

However, if I go into the continuum working-dir and type mvn package off
the command line, the build is fine. So what goes? Some kind of
environment configuration difference perhaps?

 

TIA

John


Eurobase International Limited and its subsidiaries (Eurobase) are unable to 
exercise control over the content of information in E-Mails. Any views and 
opinions expressed may be personal to the sender and are not necessarily those 
of Eurobase. Eurobase will not enter into any contractual obligations in 
respect of any part of its business in any E-mail. 

Privileged / confidential information may be contained in this message and /or 
any attachments. This E-mail is intended for the use of the addressee(s) only 
and may contain confidential information. If you are not the / an intended 
recipient, you are hereby notified that any use or dissemination of this 
communication is strictly prohibited.  If you receive this transmission in 
error, please notify us immediately, and then delete this E-mail. 

Neither the sender nor Eurobase accepts any liability whatsoever for any 
defects of any kind either in or arising from this E-mail transmission. E-Mail 
transmission cannot be guaranteed to be secure or error-free, as messages can 
be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or 
incomplete. Eurobase does not accept any responsibility for viruses and it is 
your responsibility to scan any attachments.

Eurobase Systems Limited is the main trading company in the Eurobase 
International Group; registered in England and Wales as company number 
02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex 
CM2 0RE, UK.



Re: How to use ${project.build.directory}?

2007-07-31 Thread Eric Redmond
I second Wendy's or Michael's suggestions - avoid system scope at all costs.
Moreover, it may be removed in future versions of Maven, so don't depend on
it being there forever. May as well make preperations now :)

-- 
Eric Redmond
http://blog.propellors.net

On 7/30/07, Wendy Smoak <[EMAIL PROTECTED]> wrote:
>
> On 7/20/07, Tawfik, Sameh E <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I'm using the following code:
> >
> > 
> >   connector
> >   connector >   1_0
> >   system
> >
> > ${Build_base}/ma-jdm-tck/lib/connector_1_0.jar
> > 
> >
> > This code is working fine, but it requires everyone to define the
> > "Build_base" system variable, so is there is another way, where I can
> > reference the folder where this jar is located without using a system
> > variable?
>
> I would have the developers use 'mvn install:install-file' to add the
> jar to their local repository, and then you can declare it as a normal
> dependency.
>
> --
> Wendy
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Maven: cannot find symbol build error

2007-07-31 Thread Eric Redmond
That's curious - makes me think a transative dep of junit is not found?
Natrually skipping the test will work, since maven.test.skip also skips test
compilation, however, what version of junit are you using?

-- 
Eric Redmond
http://blog.propellors.net

On 7/31/07, Ian Dunlop <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> Here is some more info, with the stack trace:
>
> [INFO] Compiling 5 source files to /Users/Ian/scratch/taverna1.0/
> taverna-bootstrap/target/test-classes
> [INFO]
> 
> [ERROR] BUILD FAILURE
> [INFO]
> 
> [INFO] Compilation failure
>
> /Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
> taverna/tools/RepositoriesTest.java:[9,7] cannot find symbol
> symbol  : constructor TestCase()
> location: class junit.framework.TestCase
>
> /Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
> taverna/tools/ProfileSelectorTest.java:[14,7] cannot find symbol
> symbol  : constructor TestCase()
> location: class junit.framework.TestCase
>
> /Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
> taverna/tools/BootstrapTest.java:[9,7] cannot find symbol
> symbol  : constructor TestCase()
> location: class junit.framework.TestCase
>
> /Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
> taverna/tools/RavenPropertiesTest.java:[40,7] cannot find symbol
> symbol  : constructor TestCase()
> location: class junit.framework.TestCase
>
> /Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
> taverna/tools/RavenPropertiesTest.java:[96,16] cannot find symbol
> symbol  : method assertFalse(java.lang.String,boolean)
> location: class net.sf.taverna.tools.RavenPropertiesTest
>
> /Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
> taverna/tools/ProfileListSelectorTest.java:[9,7] cannot find symbol
> symbol  : constructor TestCase()
> location: class junit.framework.TestCase
>
>
> [INFO]
> 
> [INFO] Trace
> org.apache.maven.BuildFailureException: Compilation failure
>  at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
> (DefaultLifecycleExecutor.java:560)
>  at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
> ycle(DefaultLifecycleExecutor.java:480)
>  at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> (DefaultLifecycleExecutor.java:459)
>  at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
> Failures(DefaultLifecycleExecutor.java:311)
>  at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:278)
>  at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
> (DefaultLifecycleExecutor.java:143)
>  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
> 334)
>  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>  at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
>  at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:585)
>  at org.codehaus.classworlds.Launcher.launchEnhanced
> (Launcher.java:315)
>  at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>  at org.codehaus.classworlds.Launcher.mainWithExitCode
> (Launcher.java:430)
>  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.CompilationFailureException:
> Compilation failure
>  at org.apache.maven.plugin.AbstractCompilerMojo.execute
> (AbstractCompilerMojo.java:516)
>  at org.apache.maven.plugin.TestCompilerMojo.execute
> (TestCompilerMojo.java:102)
>  at org.apache.maven.plugin.DefaultPluginManager.executeMojo
> (DefaultPluginManager.java:443)
>  at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
> (DefaultLifecycleExecutor.java:539)
>  ... 16 more
>
> On 31 Jul 2007, at 12:24, Ian Dunlop wrote:
>
> > Hello,
> >
> > I am trying to use Maven (2.0.7) to build an application on an
> > Intel Mac (OSX 10.4.10).  It keeps failing with 'cannot find
> > symbol' related to a Junit class.  The app builds perfectly on
> > Linux.   Building with the -Dmaven.test.skip=true flag on the Mac
> > is successful.  I have looked on the web and the only related post
> > was to do with using Maven with Java6 (http://mail-
> > archives.apache.org/mod_mbox/maven-users/200612.mbox/%
> > [EMAIL PROTECTED]).   I am using Java5 but have the
> > Java6 developer preview on my Mac - could this be the issue.  If

Re: assembly issue with an ear

2007-07-31 Thread Eric Redmond
Have you tried binding assembly:attached to the packaging phase? I don't
know which would execute first (std package or assembly), but it might be
worth a short. In 2.1 the pre-package phase will be added, so things like
this should be easier to deal with in a consistent way.

-- 
Eric Redmond
http://blog.propellors.net

On 7/31/07, nicolas de loof <[EMAIL PROTECTED]> wrote:
>
> Found the answer myself :
>
>
> http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html
> "*NOTE:* Because of a quirk in Maven 2.0's execution model relating to
> aggregator mojos and the inheritance hierarchy, we need to explicitly
> execute the package phase ahead of the assembly invocation, to ensure all
> modules have been built."
>
>
>
> 2007/7/31, nicolas de loof <[EMAIL PROTECTED]>:
> >
> > My project has multiple modules, one of them packages my webapp as ear.
> > My parent project has an assembly descriptor to build a tar from
> artifacts
> > + some script files
> >
> > If I run "mvn assembly:assembly" I get a strange error about my ear
> having
> > no file attached :
> >
> > [INFO] Failed to create assembly: Artifact:
> > com.capgemini.vpc:vpc-application:ear:2.17.00 (included by module) does
> > not
> > have an artifact with a file. Please ensure the package phase is run
> > before the assembly is generated.
> >
> > if I run "mvn package assembly:assembly" the assembly is build as
> > expected, but packaging occurs twice as assembly:assembly allready force
> > one...
> >
> > What's wrong ?
> > Nico.
> >
>


Re: Maven: cannot find symbol build error

2007-07-31 Thread Michael Meyer

Hi,
how did you define the junit dependency in the pom? You're not using 
system or something like that, are you?


Cheers, michael

Ian Dunlop wrote:

Hello,

Here is some more info, with the stack trace:

[INFO] Compiling 5 source files to 
/Users/Ian/scratch/taverna1.0/taverna-bootstrap/target/test-classes
[INFO] 


[ERROR] BUILD FAILURE
[INFO] 


[INFO] Compilation failure

/Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/taverna/tools/RepositoriesTest.java:[9,7] 
cannot find symbol

symbol  : constructor TestCase()
location: class junit.framework.TestCase

/Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/taverna/tools/ProfileSelectorTest.java:[14,7] 
cannot find symbol

symbol  : constructor TestCase()
location: class junit.framework.TestCase

/Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/taverna/tools/BootstrapTest.java:[9,7] 
cannot find symbol

symbol  : constructor TestCase()
location: class junit.framework.TestCase

/Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/taverna/tools/RavenPropertiesTest.java:[40,7] 
cannot find symbol

symbol  : constructor TestCase()
location: class junit.framework.TestCase

/Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/taverna/tools/RavenPropertiesTest.java:[96,16] 
cannot find symbol

symbol  : method assertFalse(java.lang.String,boolean)
location: class net.sf.taverna.tools.RavenPropertiesTest

/Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/taverna/tools/ProfileListSelectorTest.java:[9,7] 
cannot find symbol

symbol  : constructor TestCase()
location: class junit.framework.TestCase


[INFO] 


[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:560) 

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) 

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) 

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) 

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) 

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) 


at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 


at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.CompilationFailureException: 
Compilation failure
at 
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516) 

at 
org.apache.maven.plugin.TestCompilerMojo.execute(TestCompilerMojo.java:102)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) 

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) 


... 16 more

On 31 Jul 2007, at 12:24, Ian Dunlop wrote:


Hello,

I am trying to use Maven (2.0.7) to build an application on an Intel 
Mac (OSX 10.4.10).  It keeps failing with 'cannot find symbol' related 
to a Junit class.  The app builds perfectly on Linux.   Building with 
the -Dmaven.test.skip=true flag on the Mac is successful.  I have 
looked on the web and the only related post was to do with using Maven 
with Java6 
(http://mail-archives.apache.org/mod_mbox/maven-users/200612.mbox/[EMAIL PROTECTED]).   
I am using Java5 but have the Java6 developer preview on my Mac - 
could this be the issue.  If not then do you have any ideas.


Cheers,

Ian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-ma

Re: Parent POM, properties and scm problem

2007-07-31 Thread Eric Redmond
Maven does this so that child module's scm can be defined once in the
parent.


  scm:svn:https://url/project/trunk



  Child

Then the Child module's scm url is automatically set as:


  scm:svn:https://url/project/trunk/Child


Which is the convention for a multi-module project.

If your "Child" project has to be seperate, with it's own trunk, etc. I
would suggest (if svn) using svn:externals to access the child under the
parent project. Since it ownly appends the name on a multi-module project,
I'm trying to figure out how you locally check out your project... perhaps
create a "trunks"-style setup in your version control would be best?

Eric

On 7/30/07, Oscar Picasso <[EMAIL PROTECTED]> wrote:
>
> I have also noticed the same behavior with the project url, the sit url
> and
> the scm url even if in the effective the corresponding properties are
> correct (without the artifactId appended).
>
> On 7/30/07, Oscar Picasso <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > In the parent POM I have the following:
> > [...]
> >   
> > 
> http://localhost/repos/repo/${groupId}/${artifactId}/trunk
> > 
> > 
> >   
> >
> >
> >   
> > ${scmConnection}
> > ${scmConnection}
> >   
> > [...]
> >
> > The child POM has nothing expect mandatory elements and the reference to
> > the parent POM. Both the child and the parent are snapshots. The parent
> POM
> > has been deployed to the remote repository.
> >
> > When I run mvn help:effective-pom on the child project, I get:
> > [...]
> >   
> > 
> http://localhost/repos/repo/com.opicasso/Child/trunk/Child
> > 
> > 
> > http://localhost/repos/repo/com.opicasso/Child/trunk/Child
> > 
> >   
> > [..]
> >
> > I would have expected:
> > [...]
> >   
> > http://localhost/repos/repo/com.opicasso/Child/trunk
> > 
> > 
> > http://localhost/repos/repo/com.opicasso/Child/trunk
> 
> >   
> > [..]
> >
> > Why does maven happen the child artifactId to the connections? Does
> maven
> > merge the parent scm connections with the children ones ? But in the
> current
> > case the child has no scm connections defined in its pom.
> >
> > How to get rid of this extra artifactId?
> >
> > Thanks
> >
> > Oscar
> >
> >
> >
>



-- 
Eric Redmond
http://blog.propellors.net


Re: assembly issue with an ear

2007-07-31 Thread nicolas de loof
Found the answer myself :

http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html
"*NOTE:* Because of a quirk in Maven 2.0's execution model relating to
aggregator mojos and the inheritance hierarchy, we need to explicitly
execute the package phase ahead of the assembly invocation, to ensure all
modules have been built."



2007/7/31, nicolas de loof <[EMAIL PROTECTED]>:
>
> My project has multiple modules, one of them packages my webapp as ear.
> My parent project has an assembly descriptor to build a tar from artifacts
> + some script files
>
> If I run "mvn assembly:assembly" I get a strange error about my ear having
> no file attached :
>
> [INFO] Failed to create assembly: Artifact:
> com.capgemini.vpc:vpc-application:ear:2.17.00 (included by module) does
> not
> have an artifact with a file. Please ensure the package phase is run
> before the assembly is generated.
>
> if I run "mvn package assembly:assembly" the assembly is build as
> expected, but packaging occurs twice as assembly:assembly allready force
> one...
>
> What's wrong ?
> Nico.
>


Re: Passing System Variables to Maven

2007-07-31 Thread Eric Redmond
That's fine, then stick them in the settings.xml. But you missed my point:
"env" access via properties won't be around in the next version of Maven, so
they aren't a good suggestion.

Eric

On 7/31/07, Graham Leggett <[EMAIL PROTECTED]> wrote:
>
> Eric Redmond wrote:
>
> > I would stick to -D options. "env" variables are going away in Maven
> soon.
>
> -D options are simply command line options, they are not an environment.
>
> Trying to create a pretend environment using -D violates the principle
> of least astonishment in a big way, and is a major headache if you have
> system specific information that maven requires, such as the location of
> eclipse for the pde-maven-plugin.
>
> Regards,
> Graham
> --
>
>


-- 
Eric Redmond
http://blog.propellors.net


Re: Deployment of runtime configurations? / Deployment of assemblies?

2007-07-31 Thread Stephen Coy

I think that what you need is profiles + classifiers.

I've done it this way in the past.

My preferred option is to push as much deployment target specific  
configuration (such as datasources, mail sessions, etc) in to the  
application server configuration, but this is not always possible,  
often for simple historical reasons.


Therefore, what you can do is define a separate build profile for  
each target, and differentiate them by specifying a classifier for  
the built artifacts.


You can find more information on this at .



Cheers,

Steve Coy

On 30/07/2007, at 9:42 PM, Georg Öttl wrote:


Hi

I have a different configurations (spring, Text files and so on). I  
really
tried hard to figure out how I should handle those runtime  
configurations

with maven. Has anybody done such a thing so far?

My problem is: If I put the configuration into the src/main/resources
directory and therefore directly into the distributed jar it will  
be hard
(but possible) to override the default configuration. If I put the  
resources

outside the resources directory I couldn't figure out how deploy it.
Depended projects won't get the configuration if I can't deploy it  
to a

remote repo :-(.

The remote-resources plug-in looks somehow like what I need -  but the
documentation is not that good. Couldn't really use it by now. If  
I'm right

this plug-in should allow to deploy "remote-resources".

I'd find it cool to be able to specify

"Project-X.jar depends on Project-A-resources-1.0.SNAPSHOT.jar"
"Project-X1.jar depends on Project-B-resources-1.0.SNAPSHOT.jar"
"Project-X2.jar depends on Project-A-resources-1.0.SNAPSHOT.jar"

Is this a feature I have to wait for or did I overlook a really simple
solution?


PS: Does anybody know how to deploy an assembly with the deploy  
plug-in? Or

is this a thing "not to do".

Best regards,
Georg


-
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: jetty plugin from Mavenide

2007-07-31 Thread Milos Kleint
exiting the IDE should help  I suppose. That's not a good solution though.
Please file a bug against mevenide, I'll take a look what can be done.
What version of netbeans/mevenide are you using?

Milos

On 7/31/07, John Coleman <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
>
> Does anyone know how to stop the jetty plugin after staring it using
> Mavenide please? Hitting the orange X button doesn't seem to do
> anything.
>
>
>
> TIA,
>
> John
>
>
>
>
> Eurobase International Limited and its subsidiaries (Eurobase) are unable to 
> exercise control over the content of information in E-Mails. Any views and 
> opinions expressed may be personal to the sender and are not necessarily 
> those of Eurobase. Eurobase will not enter into any contractual obligations 
> in respect of any part of its business in any E-mail.
>
> Privileged / confidential information may be contained in this message and 
> /or any attachments. This E-mail is intended for the use of the addressee(s) 
> only and may contain confidential information. If you are not the / an 
> intended recipient, you are hereby notified that any use or dissemination of 
> this communication is strictly prohibited.  If you receive this transmission 
> in error, please notify us immediately, and then delete this E-mail.
>
> Neither the sender nor Eurobase accepts any liability whatsoever for any 
> defects of any kind either in or arising from this E-mail transmission. 
> E-Mail transmission cannot be guaranteed to be secure or error-free, as 
> messages can be intercepted, lost, corrupted, destroyed, contain viruses, or 
> arrive late or incomplete. Eurobase does not accept any responsibility for 
> viruses and it is your responsibility to scan any attachments.
>
> Eurobase Systems Limited is the main trading company in the Eurobase 
> International Group; registered in England and Wales as company number 
> 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex 
> CM2 0RE, UK.
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



jetty plugin from Mavenide

2007-07-31 Thread John Coleman
Hi,

 

Does anyone know how to stop the jetty plugin after staring it using
Mavenide please? Hitting the orange X button doesn't seem to do
anything.

 

TIA,

John

 


Eurobase International Limited and its subsidiaries (Eurobase) are unable to 
exercise control over the content of information in E-Mails. Any views and 
opinions expressed may be personal to the sender and are not necessarily those 
of Eurobase. Eurobase will not enter into any contractual obligations in 
respect of any part of its business in any E-mail. 

Privileged / confidential information may be contained in this message and /or 
any attachments. This E-mail is intended for the use of the addressee(s) only 
and may contain confidential information. If you are not the / an intended 
recipient, you are hereby notified that any use or dissemination of this 
communication is strictly prohibited.  If you receive this transmission in 
error, please notify us immediately, and then delete this E-mail. 

Neither the sender nor Eurobase accepts any liability whatsoever for any 
defects of any kind either in or arising from this E-mail transmission. E-Mail 
transmission cannot be guaranteed to be secure or error-free, as messages can 
be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or 
incomplete. Eurobase does not accept any responsibility for viruses and it is 
your responsibility to scan any attachments.

Eurobase Systems Limited is the main trading company in the Eurobase 
International Group; registered in England and Wales as company number 
02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex 
CM2 0RE, UK.



Re: Maven: cannot find symbol build error

2007-07-31 Thread Ian Dunlop

Hello,

Here is some more info, with the stack trace:

[INFO] Compiling 5 source files to /Users/Ian/scratch/taverna1.0/ 
taverna-bootstrap/target/test-classes
[INFO]  


[ERROR] BUILD FAILURE
[INFO]  


[INFO] Compilation failure

/Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/ 
taverna/tools/RepositoriesTest.java:[9,7] cannot find symbol

symbol  : constructor TestCase()
location: class junit.framework.TestCase

/Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/ 
taverna/tools/ProfileSelectorTest.java:[14,7] cannot find symbol

symbol  : constructor TestCase()
location: class junit.framework.TestCase

/Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/ 
taverna/tools/BootstrapTest.java:[9,7] cannot find symbol

symbol  : constructor TestCase()
location: class junit.framework.TestCase

/Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/ 
taverna/tools/RavenPropertiesTest.java:[40,7] cannot find symbol

symbol  : constructor TestCase()
location: class junit.framework.TestCase

/Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/ 
taverna/tools/RavenPropertiesTest.java:[96,16] cannot find symbol

symbol  : method assertFalse(java.lang.String,boolean)
location: class net.sf.taverna.tools.RavenPropertiesTest

/Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/ 
taverna/tools/ProfileListSelectorTest.java:[9,7] cannot find symbol

symbol  : constructor TestCase()
location: class junit.framework.TestCase


[INFO]  


[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals 
(DefaultLifecycleExecutor.java:560)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec 
ycle(DefaultLifecycleExecutor.java:480)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal 
(DefaultLifecycleExecutor.java:459)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle 
Failures(DefaultLifecycleExecutor.java:311)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( 
DefaultLifecycleExecutor.java:278)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute 
(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 
334)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced 
(Launcher.java:315)

at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode 
(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.CompilationFailureException:  
Compilation failure
at org.apache.maven.plugin.AbstractCompilerMojo.execute 
(AbstractCompilerMojo.java:516)
at org.apache.maven.plugin.TestCompilerMojo.execute 
(TestCompilerMojo.java:102)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo 
(DefaultPluginManager.java:443)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals 
(DefaultLifecycleExecutor.java:539)

... 16 more

On 31 Jul 2007, at 12:24, Ian Dunlop wrote:


Hello,

I am trying to use Maven (2.0.7) to build an application on an  
Intel Mac (OSX 10.4.10).  It keeps failing with 'cannot find  
symbol' related to a Junit class.  The app builds perfectly on  
Linux.   Building with the -Dmaven.test.skip=true flag on the Mac  
is successful.  I have looked on the web and the only related post  
was to do with using Maven with Java6 (http://mail- 
archives.apache.org/mod_mbox/maven-users/200612.mbox/% 
[EMAIL PROTECTED]).   I am using Java5 but have the  
Java6 developer preview on my Mac - could this be the issue.  If  
not then do you have any ideas.


Cheers,

Ian
-
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]



assembly issue with an ear

2007-07-31 Thread nicolas de loof
My project has multiple modules, one of them packages my webapp as ear.
My parent project has an assembly descriptor to build a tar from artifacts +
some script files

If I run "mvn assembly:assembly" I get a strange error about my ear having
no file attached :

[INFO] Failed to create assembly: Artifact:
com.capgemini.vpc:vpc-application:ear:2.17.00 (included by module) does not
have an artifact with a file. Please ensure the package phase is run before
the assembly is generated.

if I run "mvn package assembly:assembly" the assembly is build as expected,
but packaging occurs twice as assembly:assembly allready force one...

What's wrong ?
Nico.


Re: QAR question - generate JAR from classes and include into WEB-INF/lib

2007-07-31 Thread Ian Springer

Eugeny N Dzhurinsky wrote:

Hello!

Could somebody please explain how is it possible to create WAR file from WEB
application, but instead of having Java sources compiled and placed into
WEB-INF/classes - package those classes as a JAR file and place it into
WEB-INF/lib/?

  

true in the plugin config.

http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#archiveClasses

Also I need to include some external resources (properties, XML configuration
files etc) into WEB-INF/classes, how would I do that?
  

Put them either in src/main/resources/ or src/main/webapp/WEB-INF/classes/.

Thank you in advance!
  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Hibernate and 2.0.7

2007-07-31 Thread Annies, Sebastian
Some more information about what happens would be helpful.

> -Original Message-
> From: jallen [mailto:[EMAIL PROTECTED]
> Sent: Sunday, July 29, 2007 10:00 PM
> To: users@maven.apache.org
> Subject: Hibernate and 2.0.7
> 
> 
> Has anyone else experienced issues with 2.0.7 and hibernate 3.2.4.ga?
> It's
> not my project code but I've upgraded the common build system and some
> unit
> tests for a hibernate project now fail? Searched the web and not come
> up
> with a lot.
> --
> View this message in context: http://www.nabble.com/Hibernate-and-
> 2.0.7-tf4166646s177.html#a11854518
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



smime.p7s
Description: S/MIME cryptographic signature


RE: QAR question - generate JAR from classes and include intoWEB-INF/lib

2007-07-31 Thread Annies, Sebastian
I used two projects: 

<1.> a base project with packaging=jar
<2.> a web project with packaging=war depending on <1.> 

If anybody finds a better solution please tell me. 

Regards,
Sebastian 

> -Original Message-
> From: Eugeny N Dzhurinsky [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 31, 2007 11:22 AM
> To: users@maven.apache.org
> Subject: QAR question - generate JAR from classes and include intoWEB-
> INF/lib
> 
> Hello!
> 
> Could somebody please explain how is it possible to create WAR file
> from WEB application, but instead of having Java sources compiled and
> placed into WEB-INF/classes - package those classes as a JAR file and
> place it into WEB-INF/lib/?
> 
> Also I need to include some external resources (properties, XML
> configuration files etc) into WEB-INF/classes, how would I do that?
> 
> Thank you in advance!
> --
> Eugene N Dzhurinsky


smime.p7s
Description: S/MIME cryptographic signature


Maven: cannot find symbol build error

2007-07-31 Thread Ian Dunlop

Hello,

I am trying to use Maven (2.0.7) to build an application on an Intel  
Mac (OSX 10.4.10).  It keeps failing with 'cannot find symbol'  
related to a Junit class.  The app builds perfectly on Linux.
Building with the -Dmaven.test.skip=true flag on the Mac is  
successful.  I have looked on the web and the only related post was  
to do with using Maven with Java6 (http://mail-archives.apache.org/ 
mod_mbox/maven-users/200612.mbox/[EMAIL PROTECTED] 
3E).   I am using Java5 but have the Java6 developer preview on my  
Mac - could this be the issue.  If not then do you have any ideas.


Cheers,

Ian 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven file creation

2007-07-31 Thread Maria Odea Ching
Could you try deleting the maven-archetype-plugin and 
maven-archetype-site (including the poms and metadata files) from you 
local repository, then build again?


-Deng

Shilpac wrote:

Hi,
  Following is the error when I tried to create a file using maven


C:\Maven>mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes
-Da
rchetypeArtifactId=maven-archetype-site -DgroupId=com.mycompany.app 
-DartifactI

d=my-app-site
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
-
---
[INFO] Building Maven Default Project
[INFO]task-segment: [archetype:create] (aggregator-style)
[INFO]
-
---
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] **
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File:
org\apache\velocity\runtime\defaults\velocity.pr
operties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.
resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated:
org.codehaus.plexus.velocity.ContextClassLo
aderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.
ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in
any
resource loader.
[INFO] Velocimacro : error using  VM library template VM_global_library.vm :
org
.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'V
M_global_library.vm'
[INFO] Velocimacro :  VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templates

[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may
NOT
replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be 
glob

al in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: com.mycompany.app
[INFO] artifact org.apache.maven.archetypes:maven-archetype-site: checking
for u
pdates from central
[WARNING] repository metadata for: 'artifact
org.apache.maven.archetypes:maven-a
rchetype-site' could not be retrieved from repository: central due to an
error:
Error transferring file
[INFO] Repository 'central' will be blacklisted
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.archetypes
ArtifactId: maven-archetype-site
Version: RELEASE

Reason: Unable to determine the release version

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.maven.archetypes
-DartifactId=
maven-archetype-site \
-Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
  mvn deploy:deploy-file -DgroupId=org.apache.maven.archetypes
-DartifactId=mave
n-archetype-site \
-Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file \
 -Durl=[url] -DrepositoryId=[id]


  org.apache.maven.archetypes:maven-archetype-site:jar:RELEASE



[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 4 seconds
[INFO] Finished at: Tue Jul 31 16:20:54 GMT+05:30 2007
[INFO] Final Memory: 4M/8M
[INFO]


Can you please tell me the cause of this error? or Do I need to do changes
in the settings.xml?

Re: Maven file creation

2007-07-31 Thread Shilpac

Hi,
  Following is the error when I tried to create a file using maven


C:\Maven>mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes
-Da
rchetypeArtifactId=maven-archetype-site -DgroupId=com.mycompany.app 
-DartifactI
d=my-app-site
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
-
---
[INFO] Building Maven Default Project
[INFO]task-segment: [archetype:create] (aggregator-style)
[INFO]
-
---
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] **
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File:
org\apache\velocity\runtime\defaults\velocity.pr
operties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.
resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated:
org.codehaus.plexus.velocity.ContextClassLo
aderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.
ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in
any
resource loader.
[INFO] Velocimacro : error using  VM library template VM_global_library.vm :
org
.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'V
M_global_library.vm'
[INFO] Velocimacro :  VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templates

[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may
NOT
replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be 
glob
al in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: com.mycompany.app
[INFO] artifact org.apache.maven.archetypes:maven-archetype-site: checking
for u
pdates from central
[WARNING] repository metadata for: 'artifact
org.apache.maven.archetypes:maven-a
rchetype-site' could not be retrieved from repository: central due to an
error:
Error transferring file
[INFO] Repository 'central' will be blacklisted
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.archetypes
ArtifactId: maven-archetype-site
Version: RELEASE

Reason: Unable to determine the release version

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.maven.archetypes
-DartifactId=
maven-archetype-site \
-Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
  mvn deploy:deploy-file -DgroupId=org.apache.maven.archetypes
-DartifactId=mave
n-archetype-site \
-Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file \
 -Durl=[url] -DrepositoryId=[id]


  org.apache.maven.archetypes:maven-archetype-site:jar:RELEASE



[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 4 seconds
[INFO] Finished at: Tue Jul 31 16:20:54 GMT+05:30 2007
[INFO] Final Memory: 4M/8M
[INFO]


Can you please tell me the cause of this error? or Do I need to do changes
in the settings.xml?

Maria Odea Ching-2 wrote:
> 
> Hi,
> 
> It would be more helpful if you could post your build stack trace..
> 
> Thanks,
> Deng
> 
> Shilpac wrote:
>> How to create a file under maven pr

Re: Exit codes on Windows

2007-07-31 Thread Martin Gilday
Changing back to 2.0.6 fixes the issue for me. 
I have created the following jira entry
http://jira.codehaus.org/browse/MNG-3126


- Original message -
From: "Martin Gilday" <[EMAIL PROTECTED]>
To: "Maven Users List" 
Date: Tue, 31 Jul 2007 11:03:53 +0100
Subject: Re: Exit codes on Windows

It seems to not work on XP SP2 for me.  I have set
MAVEN_TERMINATE_CMD=on whichever command I use %ERRORLEVEL% is always 0
from cmd.
When I set the terminate command then my prompt correctly closes
afterwards.  When you use cmd /c mvn then %ERRORLVEL% remains at 0.
Can anyone else confirm this?


- Original message -
From: "Martin Gilday" <[EMAIL PROTECTED]>
To: "Maven Users List" 
Date: Mon, 30 Jul 2007 21:33:23 +0100
Subject: Re: Exit codes on Windows

Seems I posted a bit prematurely.   It works in a standard command
prompt just not in powershell.  It seems it's not picking up the
environmental variable MAVEN_TERMINATE_CMD.  If you define it again in
your powershell script in the env namespace
($ENV:MAVEN_TERMINATE_CMD="on") it starts working.


- Original message -
From: "Martin Gilday" <[EMAIL PROTECTED]>
To: users@maven.apache.org
Date: Mon, 30 Jul 2007 21:15:15 +0100
Subject: Exit codes on Windows

I am currently writing a Windows Powershell script which calls the maven
bat file to trigger a build as part of its functionality.  It seems that
regardless of sucess or failure an exit code of 0 is returned.  I have
found this closed JIRA issue (http://jira.codehaus.org/browse/MNG-2127)
which offers some suggestions, including setting MAVEN_TERMINATE_CMD=on.
 I have tried these but have not had any luck.  Is this an ongoing issue
with Maven on Windows?   Should this be working with 2.0.7.

Thanks for any advice.
Martin.

-
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]


-
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: QAR question - generate JAR from classes and include into WEB-INF/lib

2007-07-31 Thread Richard Kirby
Put your java classes into a separate Maven project, and include it as a 
dependency in your WAR project.


Cheers

Richard

Eugeny N Dzhurinsky wrote:

Hello!

Could somebody please explain how is it possible to create WAR file from WEB
application, but instead of having Java sources compiled and placed into
WEB-INF/classes - package those classes as a JAR file and place it into
WEB-INF/lib/?

Also I need to include some external resources (properties, XML configuration
files etc) into WEB-INF/classes, how would I do that?

Thank you in advance!
  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Exit codes on Windows

2007-07-31 Thread Martin Gilday
It seems to not work on XP SP2 for me.  I have set
MAVEN_TERMINATE_CMD=on whichever command I use %ERRORLEVEL% is always 0
from cmd.
When I set the terminate command then my prompt correctly closes
afterwards.  When you use cmd /c mvn then %ERRORLVEL% remains at 0.
Can anyone else confirm this?


- Original message -
From: "Martin Gilday" <[EMAIL PROTECTED]>
To: "Maven Users List" 
Date: Mon, 30 Jul 2007 21:33:23 +0100
Subject: Re: Exit codes on Windows

Seems I posted a bit prematurely.   It works in a standard command
prompt just not in powershell.  It seems it's not picking up the
environmental variable MAVEN_TERMINATE_CMD.  If you define it again in
your powershell script in the env namespace
($ENV:MAVEN_TERMINATE_CMD="on") it starts working.


- Original message -
From: "Martin Gilday" <[EMAIL PROTECTED]>
To: users@maven.apache.org
Date: Mon, 30 Jul 2007 21:15:15 +0100
Subject: Exit codes on Windows

I am currently writing a Windows Powershell script which calls the maven
bat file to trigger a build as part of its functionality.  It seems that
regardless of sucess or failure an exit code of 0 is returned.  I have
found this closed JIRA issue (http://jira.codehaus.org/browse/MNG-2127)
which offers some suggestions, including setting MAVEN_TERMINATE_CMD=on.
 I have tried these but have not had any luck.  Is this an ongoing issue
with Maven on Windows?   Should this be working with 2.0.7.

Thanks for any advice.
Martin.

-
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]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven file creation

2007-07-31 Thread Maria Odea Ching

Hi,

It would be more helpful if you could post your build stack trace..

Thanks,
Deng

Shilpac wrote:

How to create a file under maven project?
I have created folder using the following command

mvn archetype:create  -DarchetypeGroupId=org.apache.maven.archetypes -
DgroupId=com.cognizant -DartifactId=MavenDemo
getting build successful.
But tried creating file using the following command

mvn archetype:create  -DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-site -DgroupId=com.cognizant
-DartifactId=MavenDemo

after executing this command I am getting build failure message because of
which I am unable to create a file. Can anybody suggest solution for this?
  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to add dependencies in the POM.xml?

2007-07-31 Thread Shilpac

Hi,
  I am getting the following error



C:\Maven\Demo>mvn archetype:create 
-DarchetypeGroupId=org.apache.maven.archet
es -DarchetypeArtifactId=maven-archetype-site -DgroupId=com.cognizant
-Dartifa
Id=Demo
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
---
---
[INFO] Building Demo
[INFO]task-segment: [archetype:create] (aggregator-style)
[INFO]
---
---
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plex
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] **
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File:
org\apache\velocity\runtime\defaults\velocity.
operties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtim
resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated:
org.codehaus.plexus.velocity.ContextClass
aderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class
org.apache.velocity.runtime.resourc
ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.v
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in
an
resource loader.
[INFO] Velocimacro : error using  VM library template VM_global_library.vm :
o
.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource
M_global_library.vm'
[INFO] Velocimacro :  VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templat

[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may
NO
replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be 
gl
al in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: com.cognizant
[INFO] artifact org.apache.maven.archetypes:maven-archetype-site: checking
for
pdates from central
[WARNING] repository metadata for: 'artifact
org.apache.maven.archetypes:maven
rchetype-site' could not be retrieved from repository: central due to an
error
Error transferring file
[INFO] Repository 'central' will be blacklisted
[INFO]
---
[ERROR] BUILD ERROR
[INFO]
---
[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.archetypes
ArtifactId: maven-archetype-site
Version: RELEASE

Reason: Unable to determine the release version

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.maven.archetypes
-DartifactI
maven-archetype-site \
-Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
  mvn deploy:deploy-file -DgroupId=org.apache.maven.archetypes
-DartifactId=ma
n-archetype-site \
-Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file \
 -Durl=[url] -DrepositoryId=[id]


  org.apache.maven.archetypes:maven-archetype-site:jar:RELEASE



[INFO]
---
[INFO] For more information, run Maven with the -e switch
[INFO]
---
[INFO] Total time: 4 seconds
[INFO] Finished at: Tue Jul 31 15:02:26 GMT+05:30 2007
[INFO] Final Memory: 4M/7M
[INFO]
---

As I am new to Maven I am unable to resolve such kind of errors. Eveytime I
am getting these errors but could not find the cause of it.
Can you please tell me what is the cause of this errors?

maarten roosendaal wrote:
> 
> what is the error?
> 
> - Original Message 
> From: Shilpac <[EMAIL PROTECTED]>
> To: users@maven.apache.org
> Sent: Tuesday, July 31, 2007 10:08:32 AM

QAR question - generate JAR from classes and include into WEB-INF/lib

2007-07-31 Thread Eugeny N Dzhurinsky
Hello!

Could somebody please explain how is it possible to create WAR file from WEB
application, but instead of having Java sources compiled and placed into
WEB-INF/classes - package those classes as a JAR file and place it into
WEB-INF/lib/?

Also I need to include some external resources (properties, XML configuration
files etc) into WEB-INF/classes, how would I do that?

Thank you in advance!
-- 
Eugene N Dzhurinsky


pgpPUg94Ta2EZ.pgp
Description: PGP signature


Re: How to add dependencies in the POM.xml?

2007-07-31 Thread maarten roosendaal
what is the error?

- Original Message 
From: Shilpac <[EMAIL PROTECTED]>
To: users@maven.apache.org
Sent: Tuesday, July 31, 2007 10:08:32 AM
Subject: How to add dependencies in the POM.xml?


After creating a project automatically one POM.xml is getting created. 
There  I tried to add some new dependencies  but I am getting error while
running the command
mvn install.

Do I need to do any changes in the settings.xml as well to avoid this error?
-- 
View this message in context: 
http://www.nabble.com/How-to-add-dependencies-in-the-POM.xml--tf4191523s177.html#a11919925
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








   

Building a website is a piece of cake. Yahoo! Small Business gives you all the 
tools to get online.
http://smallbusiness.yahoo.com/webhosting 

Re: Emmanuel Venisse said: "actually, it isn't possible to use a pom with modules from a repository"

2007-07-31 Thread javijava

Maybe the is a problem with the build of the SCM URL


Which is the correct URL in SCM?? :

 http://server/repositorysvn/project/trunk ?? 


I read something about continuum have an special way to build url's
-- 
View this message in context: 
http://www.nabble.com/Emmanuel-Venisse-said%3A-%22actually%2C-it-isn%27t-possible-to-use-a-pom-with-modules-from-a-repository%22-tf4191317.html#a11919931
Sent from the Continuum - Users mailing list archive at Nabble.com.



How to add dependencies in the POM.xml?

2007-07-31 Thread Shilpac

After creating a project automatically one POM.xml is getting created. 
There  I tried to add some new dependencies  but I am getting error while
running the command
mvn install.

Do I need to do any changes in the settings.xml as well to avoid this error?
-- 
View this message in context: 
http://www.nabble.com/How-to-add-dependencies-in-the-POM.xml--tf4191523s177.html#a11919925
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Maven file creation

2007-07-31 Thread Shilpac

How to create a file under maven project?
I have created folder using the following command

mvn archetype:create  -DarchetypeGroupId=org.apache.maven.archetypes -
DgroupId=com.cognizant -DartifactId=MavenDemo
getting build successful.
But tried creating file using the following command

mvn archetype:create  -DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-site -DgroupId=com.cognizant
-DartifactId=MavenDemo

after executing this command I am getting build failure message because of
which I am unable to create a file. Can anybody suggest solution for this?
-- 
View this message in context: 
http://www.nabble.com/Maven-file-creation-tf4191508s177.html#a11919877
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: Passing System Variables to Maven

2007-07-31 Thread Graham Leggett

Eric Redmond wrote:


I would stick to -D options. "env" variables are going away in Maven soon.


-D options are simply command line options, they are not an environment.

Trying to create a pretend environment using -D violates the principle 
of least astonishment in a big way, and is a major headache if you have 
system specific information that maven requires, such as the location of 
eclipse for the pde-maven-plugin.


Regards,
Graham
--


smime.p7s
Description: S/MIME Cryptographic Signature


Re: deploying war automatically to tomcat

2007-07-31 Thread maarten roosendaal
http://mojo.codehaus.org/tomcat-maven-plugin

When you have a question like this do a search like this:
Maven 2 tomcat plugin

Most of the time the result will point you in the right direction.

- Original Message 
From: maven2 <[EMAIL PROTECTED]>
To: users@maven.apache.org
Sent: Tuesday, July 31, 2007 8:24:43 AM
Subject: deploying war automatically to  tomcat


hi

i want to deploy war file to webapps folder under tomcat automatically after
running mvn install like in ant .can u please help
-- 
View this message in context: 
http://www.nabble.com/deploying-war-automatically-to--tomcat-tf4191146s177.html#a11918830
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








   

Sick sense of humor? Visit Yahoo! TV's 
Comedy with an Edge to see what's on, when. 
http://tv.yahoo.com/collections/222

Re: deploying war automatically to tomcat

2007-07-31 Thread James Abley
On 31/07/07, maven2 <[EMAIL PROTECTED]> wrote:
>
> hi
>
> i want to deploy war file to webapps folder under tomcat automatically after
> running mvn install like in ant .can u please help

Sure. What have you tried already?

Google gave me lots of suggestions [1]. Maybe one of them would work for you?
Cargo [2] is another option that lets you various things to
containers, including deploying webapps.

Cheers,

James

[1] http://www.google.co.uk/search?hl=en&q=maven+tomcat+deploy&btnG=Search
[2] http://cargo.codehaus.org/
> --
> View this message in context: 
> http://www.nabble.com/deploying-war-automatically-to--tomcat-tf4191146s177.html#a11918830
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]