Continuum using Clearcase

2007-07-20 Thread Roosendaal, Maarten
Hi,
 
We are using clearcase and on the (test)buildserver we already have a view 
present. We only want Continuum to:
* do an update
* check if there are changes (only for daily builds, a nightly build should 
always be build)
* do a build
 
But now it wants to create a view and check stuff out. Is there a configurable 
way to disable/change this?
 
We are in the progress of testing 1.0.3 and the latest alpha release and are 
using Maven 2. Here is the (untested) scm-part of the top-level pom.xml
scm
 connectionscm:clearcase:view_name:load /VOB/dir_to_project/connection
 /scm
 
Kind regards / Met vriendelijke groeten,
Maarten Roosendaal / Capgemini / Netherlands
Senior Consultant / Java Assembly Line / ADC Technologies
T. +31 30 68 970 77 / Mob. +31 6 248 216 12
www.nl.capgemini.com
Join the Collaborative Business Experience
This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


RE: Continuum file url to pom.xml

2007-07-20 Thread Roosendaal, Maarten
Thanks, we've got it working. Unfrotunatly since we are using clearcase we've 
encountered a new challenge (see the new posting).
 
Kind regards / Met vriendelijke groeten,
Maarten Roosendaal / Capgemini / Netherlands
Senior Consultant / Java Assembly Line / ADC Technologies
T. +31 30 68 970 77 / Mob. +31 6 248 216 12
www.nl.capgemini.com
Join the Collaborative Business Experience



From: Anshula [mailto:[EMAIL PROTECTED]
Sent: Thu 7/19/2007 15:54
To: continuum-users@maven.apache.org
Subject: Re: Continuum file url to pom.xml




Try this -
file:///C:/location_of_clearcase_view/project/pom.xml

The file protocol always starts with file:/// And in the file path, the
separator should be /

Regards,
Anshula




Roosendaal, Maarten wrote:


 Hi,

 We are trying to add a Maven 2(.0.7) project to Continuum (1.0.3). The
 pom.xml is part of a clearcase view so we have
 to fill in the M2 POM Url. Unfortunatly whatever we try it does not work:
 * file://localhost/c:/location_of_clearcase_view/project/pom.xml
 * file://c:/ file:///c:/ location_of_clearcase_view/project/pom.xml
 * file://localhost/c:\ file://localhost/c:/ 
 location_of_clearcase_view\project\pom.xml
 and then some.

 We've also tried following the instructions on:
 http://maven.apache.org/continuum/faqs.html#can-i-use-file-protocol-in-add-project-view

 but the specified folder is not there. I added it and changed all the
 application.xml's but with no luck

 We keep getting the message:[ You must provide a valid url (http, https,
 ftp and file protocols are allowed) ]

 Is this a bug or are we doing something wrong? There is a clearcase view
 already present there.

 Thanks,

 
 
 Kind regards / Met vriendelijke groeten,
 Maarten Roosendaal / Capgemini / Netherlands
 Senior Consultant / Java Assembly Line / ADC Technologies
 T. +31 30 68 970 77 / Mob. +31 6 248 216 12
 www.nl.capgemini.com
 Join the Collaborative Business Experience


 This message contains information that may be privileged or confidential
 and is the property of the Capgemini Group. It is intended only for the
 person to whom it is addressed. If you are not the intended recipient,
 you are not authorized to read, print, retain, copy, disseminate,
 distribute, or use this message or any part thereof. If you receive this
 message in error, please notify the sender immediately and delete all
 copies of this message.



--
View this message in context: 
http://www.nabble.com/Continuum-file-url-to-pom.xml-tf4110435.html#a11689819
Sent from the Continuum - Users mailing list archive at Nabble.com.



This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


Re: admin account locked

2007-07-20 Thread Jesse McConnell

should be able to just restart the instance it it will unlock all admin accounts

On 7/20/07, Anoop kumar V [EMAIL PROTECTED] wrote:

If you have not yet found it.. here it is: (one of the ways)

http://www.nabble.com/Change-a-user-role-to-build-admin-tf3136881.html#a8692812

Anoop

On 7/19/07, Wayne Fay [EMAIL PROTECTED] wrote:

 This has been asked (and answered) several times on this list. Search
 the list archives at Nabble.com -- you're bound to find a few hits.
 And I'd assume its probably documented in the Continuum wiki as well.

 Wayne

 On 7/19/07, BDM [EMAIL PROTECTED] wrote:
  hello,
  I locked my admin account by typing to many times the wrong password (I
  have checked later that it was the good one ... strange) !!! But now
  how can I unlock this main account 
 
 
  Thx !!
 





--
jesse mcconnell
[EMAIL PROTECTED]


Re: admin account locked

2007-07-20 Thread B. De Mezzo
I try the continuum-restart method (does not work) and try to access the 
user database and change the 'locked' attribut of sa.JDOUSER but it is 
already set to 'N' ...

but admin account stills locked :'(

perhaps by removing the 'admin' entry in the db ?

Jesse McConnell a écrit :
should be able to just restart the instance it it will unlock all 
admin accounts


On 7/20/07, Anoop kumar V [EMAIL PROTECTED] wrote:

If you have not yet found it.. here it is: (one of the ways)

http://www.nabble.com/Change-a-user-role-to-build-admin-tf3136881.html#a8692812 



Anoop

On 7/19/07, Wayne Fay [EMAIL PROTECTED] wrote:

 This has been asked (and answered) several times on this list. Search
 the list archives at Nabble.com -- you're bound to find a few hits.
 And I'd assume its probably documented in the Continuum wiki as well.

 Wayne

 On 7/19/07, BDM [EMAIL PROTECTED] wrote:
  hello,
  I locked my admin account by typing to many times the wrong 
password (I

  have checked later that it was the good one ... strange) !!! But now
  how can I unlock this main account 
 
 
  Thx !!
 









Re: URL Malformed

2007-07-20 Thread javijava

The URL's scm   tagbase are correct in each module pom.
anyone knows where is the problem?


project

parent
groupIdgroup/groupId
artifactIdartifactl/artifactId
version1.0-SNAPSHOT/version
relativePath../../all/relativePath
/parent
...
plugin
artifactIdmaven-release-plugin/artifactId
configuration
tagBasehttp://ip/project/release/tagBase
usernamexxx/username
passwordxxx/password
/configuration
/plugin
...
scm   

developerConnectionscm:svn:svn://ip/project/trunk/developerConnection
 connectionscm:svn:svn://ip/project/trunk/connection
/scm
/project


Maybe, the problem is the ../../ path on parent . I'm using continuum
1.1-alpha-2

Thanks to all for reply's

Javier


-- 
View this message in context: 
http://www.nabble.com/URL-Malformed-tf4109773.html#a11705518
Sent from the Continuum - Users mailing list archive at Nabble.com.



Re: admin account locked

2007-07-20 Thread B. De Mezzo
:( I try normal kill, killer-kill (-9) then start but still locked. I 
try to register a new user and then use the derby db to modify the 
permission/role for this new user but I was unable to find the table who 
make the link between user and permission/role ...


Here the table list I get :
ij show tables;
TABLE_SCHEM |TABLE_NAME|REMARKS

SYS |SYSALIASES|   
SYS |SYSCHECKS |   
SYS |SYSCOLUMNS|   
SYS |SYSCONGLOMERATES  |   
SYS |SYSCONSTRAINTS|   
SYS |SYSDEPENDS|   
SYS |SYSFILES  |   
SYS |SYSFOREIGNKEYS|   
SYS |SYSKEYS   |   
SYS |SYSSCHEMAS|   
SYS |SYSSTATEMENTS |   
SYS |SYSSTATISTICS |   
SYS |SYSTABLES |   
SYS |SYSTRIGGERS   |   
SYS |SYSVIEWS  |   
SYSIBM  |SYSDUMMY1 |   
SA  |JDOAUTHENTICATIONKEY  |   
SA  |JDOUSER   |   
SA  |JDOUSER_PREVIOUSENCODEDPASSWO|   
SA  |SECURITY_OPERATIONS   |   
SA  |SECURITY_PERMISSIONS  |   
SA  |SECURITY_RESOURCES|   
SA  |SECURITY_ROLES|   
SA  |SECURITY_ROLE_CHILDROLE_MAP   |   
SA  |SECURITY_ROLE_PERMISSION_MAP  |   
SA  |SECURITY_USERASSIGNMENT_ROLEN|   
SA  |SECURITY_USER_ASSIGNMENTS |   


which is the good one ?

I STILL need help !!!  :) but I thank you for your previous comments.

regards.


Anoop kumar V a écrit :
To restart why not just do a cold start. Use kill to stop (assuming 
you are

on [Li][U]nix) and start continuum.


On 7/20/07, B. De Mezzo [EMAIL PROTECTED] wrote:


I try the continuum-restart method (does not work) and try to access the
user database and change the 'locked' attribut of sa.JDOUSER but it is
already set to 'N' ...
but admin account stills locked :'(

perhaps by removing the 'admin' entry in the db ?

Jesse McConnell a écrit :
 should be able to just restart the instance it it will unlock all
 admin accounts

 On 7/20/07, Anoop kumar V [EMAIL PROTECTED] wrote:
 If you have not yet found it.. here it is: (one of the ways)


http://www.nabble.com/Change-a-user-role-to-build-admin-tf3136881.html#a8692812 




 Anoop

 On 7/19/07, Wayne Fay [EMAIL PROTECTED] wrote:
 
  This has been asked (and answered) several times on this list. 
Search

  the list archives at Nabble.com -- you're bound to find a few hits.
  And I'd assume its probably documented in the Continuum wiki as 
well.

 
  Wayne
 
  On 7/19/07, BDM [EMAIL PROTECTED] wrote:
   hello,
   I locked my admin account by typing to many times the wrong
 password (I
   have checked later that it was the good one ... strange) !!! But
now
   how can I unlock this main account 
  
  
   Thx !!
  
 











How can i create a repo search order?

2007-07-20 Thread Baz

All,

How can i write the pom so that it looks for local repo (local machine),
then development repo, then release repo, then public repo?

Thanks.

A.


RE: Beginning Maven

2007-07-20 Thread Robin Rigby
Personal Firewall (Norton Internet Security)

Just that.

I have not yet worked out why it allows: 

1. Firefox and IE to access the problem files but not Maven or wget.
2. Wget to access everything normally except these few files. 

Thanks for your help
 
Robin Rigby
[EMAIL PROTECTED]
http://www.gondolier.org.uk
07785 765017
 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: 20 July 2007 16:23
To: Maven Users List
Subject: Re: Beginning Maven

Excellent. Do you mind telling us what software (in particular) was
blocking your access, so we know for the future?

This is one of the reasons why Windows is the bane of many people's
existence...

Wayne

On 7/20/07, Robin Rigby [EMAIL PROTECTED] wrote:
 Spot on.  Hello World works fine.

 Many thanks

 Robin


 -Original Message-
 From: Wayne Fay [mailto:[EMAIL PROTECTED]
 Sent: 20 July 2007 15:12
 To: Maven Users List
 Subject: Re: Beginning Maven

 Your simple domestic firewall (or something else in your PC) is
 preventing your connection to the central repo.

 We have had several Windows users give strange reports like yours due
 to firewalls and antivirus software. Turn off/disable ALL of that
 stuff for now, and try again.

 Also, use mvn -X -U ... which will 1) turn on debug mode and 2) force
 updates of plugins.

 Wayne

 On 7/20/07, Robin Rigby [EMAIL PROTECTED] wrote:
  Thanks Dennis
 
  1.  Internet connection is good.
  2.  I destroyed the entire .m2 directory two hours ago and restarted
with
 a
  fresh download of Maven.
  3.  I am working from home.  There is no proxy that I know of and only a
  simple domestic firewall.
 

 -
 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: Building multiple modules/subdirectories with a single pom.xml?

2007-07-20 Thread Baz

Interesting tho, if you do what you mentioned in the email, then the modules
in the profiles will execute after the one in the declared after.

For example, project-domain will run before project-unittests.

Is it a normal behavior? What if i want project-unittests run before
project-domain (Yes i know it is bad example, I just want to follow whats in
the email), then what should i do? Can it be done?

Thanks.

A.


On 7/14/07, Manos Batsis [EMAIL PROTECTED] wrote:


Baz wrote:
 All,

 So i asked similar question before... How can i build multiple
 sub-directories with one pom.xml? The answer is using modules.

 What if, there are two sets of sub-directories, one for product A and
the
 other for product B, how can i do mvn product_a and mvn product_b?

 Using profile?

Yup, e.g.:


/profiles
profile
idtest/id
modules
moduleproject-unittests/module
/modules
/profile
/profiles

!-- ... --

modules
moduleproject-domain/module
moduleproject-ear/module
moduleproject-ejb/module
moduleproject-web/module
/modules

hth,

Manos

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




RE: Help! Maven weblogic plugin: NoClassDefFoundError with com/bea/xml/XmlException

2007-07-20 Thread Vaidya, Supriya A \(US - Chicago\)
Hi - could someone please point me in the right direction with this
error?
 



From: Vaidya, Supriya A (US - Chicago) 
Sent: Friday, July 20, 2007 10:36 AM
To: 'Maven Users List'
Subject: Maven weblogic plugin: NoClassDefFoundError with
com/bea/xml/XmlException


Hi:
 
I have installed the following jars:
 
mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\weblogic.jar -DgroupId=weblogic
-DartifactId=weblogic -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\webservices.jar -DgroupId=weblogic
-DartifactId=webservices -Dversion=9.0 -Dpackaging=jar
-DgeneratePom=true

 

mvn install:install-file -Dfile=C:\bea\weblogic92\server\lib\xbean.jar
-DgroupId=weblogic -DartifactId=xbean -Dversion=9.0 -Dpackaging=jar
-DgeneratePom=true

 

mvn install:install-file -Dfile=C:\bea\weblogic92\server\lib\wlxbean.jar
-DgroupId=weblogic -DartifactId=wlxbean -Dversion=9.0 -Dpackaging=jar
-DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\common\lib\wlw-util.jar -DgroupId=weblogic
-DartifactId=wlw-util -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\wlw-langx.jar -DgroupId=weblogic
-DartifactId=wlw-langx -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\javelin\lib\bcel-5.1.jar -DgroupId=weblogic
-DartifactId=bcel -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

mvn install:install-file
-Dfile=C:\bea\weblogic92\javelin\lib\javelinx.jar -DgroupId=weblogic
-DartifactId=javelinx -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\schema\weblogic-container-binding.ja
r -DgroupId=weblogic -DartifactId=weblogic-container-binding
-Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

When running the command mvn weblogic:appc - I get the following error:

 

Jul 20, 2007 10:26:23 AM CDT Error J2EE BEA-160187
weblogic.appc failed
 to compile your application. Recompile with the -verbose option for
more detail
s. Please see the error message(s) below.
[ERROR] Exception encountered during APPC processing
weblogic.utils.compiler.ToolFailureException: com/bea/xml/XmlException
at
weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain(CompilerTask.java:
299)
at weblogic.ant.taskdefs.j2ee.Appc.privateExecute(Appc.java:250)
at weblogic.ant.taskdefs.j2ee.Appc.execute(Appc.java:159)
at
org.codehaus.mojo.weblogic.AppcMojo.execute(AppcMojo.java:180)
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)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:463)
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(DefaultLi
fecycleExecutor.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(DelegatingMethodAcces
sorImpl.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: weblogic.utils.compiler.ToolFailureException:
com/bea/xml/XmlExceptio
n
at
weblogic.application.compiler.FlowDriver.handleStateChangeException(F
lowDriver.java:53)
at
weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:37
)
at
weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
at weblogic.application.compiler.Appc.runBody(Appc.java:163)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
at weblogic.application.compiler.Appc.main(Appc.java:174)
at weblogic.appc.main(appc.java:14)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at

RE: Help! Maven weblogic plugin: NoClassDefFoundError with com/bea/xml/XmlException

2007-07-20 Thread Terala, Satish \(IS Consultant\)
Do you have xbean.jar as a dependency in your project.

This class is part of xbean.jar distributed with weblogic.

-Satish

-Original Message-
From: Vaidya, Supriya A (US - Chicago)
[mailto:[EMAIL PROTECTED] 
Sent: Friday, July 20, 2007 1:34 PM
To: Maven Users List
Subject: RE: Help! Maven weblogic plugin: NoClassDefFoundError with
com/bea/xml/XmlException

Hi - could someone please point me in the right direction with this
error?
 



From: Vaidya, Supriya A (US - Chicago) 
Sent: Friday, July 20, 2007 10:36 AM
To: 'Maven Users List'
Subject: Maven weblogic plugin: NoClassDefFoundError with
com/bea/xml/XmlException


Hi:
 
I have installed the following jars:
 
mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\weblogic.jar -DgroupId=weblogic
-DartifactId=weblogic -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\webservices.jar -DgroupId=weblogic
-DartifactId=webservices -Dversion=9.0 -Dpackaging=jar
-DgeneratePom=true

 

mvn install:install-file -Dfile=C:\bea\weblogic92\server\lib\xbean.jar
-DgroupId=weblogic -DartifactId=xbean -Dversion=9.0 -Dpackaging=jar
-DgeneratePom=true

 

mvn install:install-file -Dfile=C:\bea\weblogic92\server\lib\wlxbean.jar
-DgroupId=weblogic -DartifactId=wlxbean -Dversion=9.0 -Dpackaging=jar
-DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\common\lib\wlw-util.jar -DgroupId=weblogic
-DartifactId=wlw-util -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\wlw-langx.jar -DgroupId=weblogic
-DartifactId=wlw-langx -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\javelin\lib\bcel-5.1.jar -DgroupId=weblogic
-DartifactId=bcel -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

mvn install:install-file
-Dfile=C:\bea\weblogic92\javelin\lib\javelinx.jar -DgroupId=weblogic
-DartifactId=javelinx -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\schema\weblogic-container-binding.ja
r -DgroupId=weblogic -DartifactId=weblogic-container-binding
-Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

When running the command mvn weblogic:appc - I get the following error:

 

Jul 20, 2007 10:26:23 AM CDT Error J2EE BEA-160187
weblogic.appc failed
 to compile your application. Recompile with the -verbose option for
more detail
s. Please see the error message(s) below.
[ERROR] Exception encountered during APPC processing
weblogic.utils.compiler.ToolFailureException: com/bea/xml/XmlException
at
weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain(CompilerTask.java:
299)
at weblogic.ant.taskdefs.j2ee.Appc.privateExecute(Appc.java:250)
at weblogic.ant.taskdefs.j2ee.Appc.execute(Appc.java:159)
at
org.codehaus.mojo.weblogic.AppcMojo.execute(AppcMojo.java:180)
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)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:463)
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(DefaultLi
fecycleExecutor.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(DelegatingMethodAcces
sorImpl.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: weblogic.utils.compiler.ToolFailureException:
com/bea/xml/XmlExceptio
n
at
weblogic.application.compiler.FlowDriver.handleStateChangeException(F
lowDriver.java:53)
at
weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:37
)
at
weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
at weblogic.application.compiler.Appc.runBody(Appc.java:163)
   

RE: Help! Maven weblogic plugin: NoClassDefFoundError with com/bea/xml/XmlException

2007-07-20 Thread Vaidya, Supriya A (US - Chicago)
Actually - I just found another post: The dependencies are to be
included as a part of the project AND plugin dependencies! That fixed
it... But thanks for getting back to me :) 


Supriya A Vaidya 
Technology Integration 
Deloitte Consulting LLP 
Tel: +1 312 486 4835 
Fax: +1 312 247 4835
Mobile: + 1 414 736 8157 
www.deloitte.com 


-Original Message-
From: Terala, Satish (IS Consultant)
[mailto:[EMAIL PROTECTED] 
Sent: Friday, July 20, 2007 1:18 PM
To: Maven Users List
Subject: RE: Help! Maven weblogic plugin: NoClassDefFoundError with
com/bea/xml/XmlException

Do you have xbean.jar as a dependency in your project.

This class is part of xbean.jar distributed with weblogic.

-Satish

-Original Message-
From: Vaidya, Supriya A (US - Chicago)
[mailto:[EMAIL PROTECTED] 
Sent: Friday, July 20, 2007 1:34 PM
To: Maven Users List
Subject: RE: Help! Maven weblogic plugin: NoClassDefFoundError with
com/bea/xml/XmlException

Hi - could someone please point me in the right direction with this
error?
 



From: Vaidya, Supriya A (US - Chicago) 
Sent: Friday, July 20, 2007 10:36 AM
To: 'Maven Users List'
Subject: Maven weblogic plugin: NoClassDefFoundError with
com/bea/xml/XmlException


Hi:
 
I have installed the following jars:
 
mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\weblogic.jar -DgroupId=weblogic
-DartifactId=weblogic -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\webservices.jar -DgroupId=weblogic
-DartifactId=webservices -Dversion=9.0 -Dpackaging=jar
-DgeneratePom=true

 

mvn install:install-file -Dfile=C:\bea\weblogic92\server\lib\xbean.jar
-DgroupId=weblogic -DartifactId=xbean -Dversion=9.0 -Dpackaging=jar
-DgeneratePom=true

 

mvn install:install-file -Dfile=C:\bea\weblogic92\server\lib\wlxbean.jar
-DgroupId=weblogic -DartifactId=wlxbean -Dversion=9.0 -Dpackaging=jar
-DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\common\lib\wlw-util.jar -DgroupId=weblogic
-DartifactId=wlw-util -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\wlw-langx.jar -DgroupId=weblogic
-DartifactId=wlw-langx -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\javelin\lib\bcel-5.1.jar -DgroupId=weblogic
-DartifactId=bcel -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

mvn install:install-file
-Dfile=C:\bea\weblogic92\javelin\lib\javelinx.jar -DgroupId=weblogic
-DartifactId=javelinx -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\schema\weblogic-container-binding.ja
r -DgroupId=weblogic -DartifactId=weblogic-container-binding
-Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

When running the command mvn weblogic:appc - I get the following error:

 

Jul 20, 2007 10:26:23 AM CDT Error J2EE BEA-160187
weblogic.appc failed
 to compile your application. Recompile with the -verbose option for
more detail
s. Please see the error message(s) below.
[ERROR] Exception encountered during APPC processing
weblogic.utils.compiler.ToolFailureException: com/bea/xml/XmlException
at
weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain(CompilerTask.java:
299)
at weblogic.ant.taskdefs.j2ee.Appc.privateExecute(Appc.java:250)
at weblogic.ant.taskdefs.j2ee.Appc.execute(Appc.java:159)
at
org.codehaus.mojo.weblogic.AppcMojo.execute(AppcMojo.java:180)
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)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:463)
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(DefaultLi
fecycleExecutor.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(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at 

Running Maven commands with CRON

2007-07-20 Thread Chris Russell

Hello,

I'm trying to run the following script with CRON:
# set up some environment vars to make things more readable
. /home/maven/metalink3/setupVars.sh

/u02/webapps/orihttp/apache/maven-2.0.4/bin/mvn site:site

This runs fine when I run it from the command line. But when CRON runs 
it I get:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'site'.
[INFO] 


[INFO] Building Maven Default Project
[INFO]task-segment: [site:site]
[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] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] Cannot execute mojo: site. It requires a project with an existing 
pom.xml, but the build is not using one.


It seems when running from CRON Maven can't find the pom file.

Is there a way to specify the location of the top level pom via that 
command line?


Thanks in advance,
Chris


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



Re: Help

2007-07-20 Thread Dennis Lundberg
I'm sorry, but I have little experience with Continuum, perhaps someone 
else can help you.


Sujit Samantaray wrote:

Thanks Dennis,
I am really very sorry about mailing you.I had 
mailed to userlist earlier .But i didnt got any reply.I found continuum 
really interesting ,but i am completely new to it and i am struck at one 
point since 15 days and getting no idea how to procede.

please spare a little time in helping me.
 
till now i have installed continuum.i am using vss and an ant project.so 
through add an ant project i have given vss foldername which i want to 
get.i have used the scm url which is given in internet.

scm:vss:path to repository:\foldername
 
after thati am trying to build it.but it is showing update  checkout 
command not found. i dont have much idea about scm configuration.
 
plz help me   .again i am really sorry for taking ur valuable time .
 
thanks in advance
sujit 

 
On 7/20/07, *Dennis Lundberg* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


First off - do not send questions directly to the developers. This is
what the users mailing list is for.

Now to your problem.

Have you verified that the scm configuration for your project is
working, before trying to run it through Continuum? If not, you can do
this by using the maven-scm-plugin:
   http://maven.apache.org/scm/plugins/index.html

You should also be using version 1.0 of maven-scm-* - not the beta-3
version.

Sujit Samantaray wrote:
 
  Hi,
 
  I am trying to use continuum .i am using visual source safe with ant
  projects.First the vss SCM url showed invalid . i didnt found
  *maven-scm-provider-vss:jar:1.0-beta-3 *
  file in lib folder.So i searched in net and found this jar file.after
  putting this jar file SCM url is validated but now  it is showing
  CHECKOUT COMMAND not found and UPDATE command not found while
building
  it.I saw the jar file and saw that it is not having checkout class or
  update class.
  plz help me what to do regarding this. I am not sure whether
Continuum
  supports VSS fully or not .
 
  If u have the correct jar file plz send it to me soon.If i am doing
  wrong somewhere else plz tell me.
 
  Or please send me some links by which i will be able to work in
VSS,Ant
  project and continuum .
 
  thanks in advance.
 
  sujit


--
Dennis Lundberg





--
Dennis Lundberg

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



Re: Maven-weblogic plugin: Unable to understand error

2007-07-20 Thread Dennis Lundberg

Vaidya, Supriya A (US - Chicago) wrote:

Thank you very much :) This works great... In trying to understand this
however - why weblogic:webservices?


Your error message led me to it:

No versions are present in the repository for the artifact with a range 
[9.0,)

weblogic:webservices:jar:null

The [9.0,) part is Maven's syntax of a version range. This one means:
  get me version 9.0 or higher

Secondly weblogic:webservices:jar:null is the full artifact syntax 
used in Maven. It is divided into parts separated by colons:

  groupId:artifactId:packaging:version

In your case it is saying:
  get me the webservices jar from the weblogic project


Could you point me to some
documentation (to save your time!) on what the implications of
group/artifact IDs are? 


The getting started guide has some good info on this topic:
  http://maven.apache.org/guides/getting-started/index.html




Supriya A Vaidya 
Technology Integration 
Deloitte Consulting LLP 
Tel: +1 312 486 4835 
Fax: +1 312 247 4835
Mobile: + 1 414 736 8157 
www.deloitte.com 



-Original Message-
From: Dennis Lundberg [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 20, 2007 9:19 AM

To: Maven Users List
Subject: Re: Maven-weblogic plugin: Unable to understand error

Judging by the error message you should run this:

mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\webservices.jar
-DgroupId=weblogic -DartifactId=webservices -Dversion=9.0
-Dpackaging=jar -DgeneratePom=true

Notice that I changed the groupId to weblogic.

Vaidya, Supriya A (US - Chicago) wrote:

Hi:

I ran the following commands, after cleaning up my repository - 


mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\weblogic.jar -DgroupId=weblogic
-DartifactId=weblogic -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\webservices.jar
-DgroupId=webservices -DartifactId=webservices -Dversion=9.0
-Dpackaging=jar -DgeneratePom=true

Then compiled (successfully) and then ran the mvn weblogic:deploy
command - I still get the same error:

[INFO] Failed to resolve artifact.

No versions are present in the repository for the artifact with a

range

[9.0,)
  weblogic:webservices:jar:null

from the specified remote repositories:
  codehaus.org (http://repository.codehaus.org),
  central (http://repo1.maven.org/maven2),
  snapshots (http://snapshots.repository.codehaus.org)

 


-Original Message-
From: Dennis Lundberg [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 20, 2007 7:57 AM

To: Maven Users List
Subject: Re: Maven-weblogic plugin: Unable to understand error

There doesn't seem to be be any pom for weblogic available in the 
central repository (or your local repository). You probably need to 
install that yourself, when you install the weblogic.jar. Intructions

on

how to do this can be found here:



http://maven.apache.org/plugins/maven-install-plugin/examples/generic-po

m-generation.html


Vaidya, Supriya A (US - Chicago) wrote:

Hi:
 
I am trying to use the weblogic-maven plugin to deploy my application
to 

weblogic. Here are the steps that I followed:
 
1. I installed the external jars that my application uses.

2. installed the weblogic jars
 
mvn install:install-file 
-Dfile=C:\bea\weblogic92\server\lib\weblogic.jar -DgroupId=weblogic 
-DartifactId=weblogic -Dversion=9.0 -Dpackaging=jar
 
mvn install:install-file 
-Dfile=C:\bea\weblogic92\server\lib\webservices.jar 
-DgroupId=webservices -DartifactId=webservices -Dversion=9.0

-Dpackaging=jar
 
3. installed the weblogic-maven jar
mvn install:install-file -Dfile=maven-weblogic-plugin-1.0.0.jar 
-DgroupId=web-maven -DartifactId=web-maven -Dversion=1.0

-Dpackaging=jar
 
4. ran the clean and compile commands: mvn clean, mvn compile - these



ran without any errors
 
5. then ran the mvn weblogic:deploy command, but get teh following

error -
 
[INFO] Scanning for projects...

[INFO] Searching repository for plugin with prefix: 'weblogic'.
[INFO] 




-

---
[INFO] Building creditdecision
[INFO]task-segment: [weblogic:deploy]
[INFO] 




-

---
Downloading: 
http://repository.codehaus.org/weblogic/weblogic/9.0/weblogic-9.0.p

om
Downloading: 
http://repo1.maven.org/maven2/weblogic/weblogic/9.0/weblogic-9.0.po

m
Downloading: 
http://repo1.maven.org/maven2/weblogic/weblogic/9.0/weblogic-9.0.po

m
[INFO] 




[ERROR] BUILD ERROR
[INFO] 




[INFO] Failed to resolve artifact.
 
No versions are present in the repository for the artifact with a
range 

[9.0,)
  weblogic:webservices:jar:null
 
from the specified remote repositories:
  codehaus.org (http://repository.codehaus.org 
http://repository.codehaus.org/),

  central (http://repo1.maven.org/maven2),
  

RE: Running Maven commands with CRON

2007-07-20 Thread Sommers, Elizabeth
You might do better using a good CI tool like Vulcan.  I am not saying you 
can't do this with cron, but there are tools around that do just this.
http://code.google.com/p/vulcan/

Liz Sommers
[EMAIL PROTECTED]


-Original Message-
From: Chris Russell [mailto:[EMAIL PROTECTED]
Sent: Friday, July 20, 2007 2:30 PM
To: Maven Users List
Subject: Running Maven commands with CRON


Hello,

I'm trying to run the following script with CRON:
# set up some environment vars to make things more readable
. /home/maven/metalink3/setupVars.sh

/u02/webapps/orihttp/apache/maven-2.0.4/bin/mvn site:site

This runs fine when I run it from the command line. But when CRON runs 
it I get:
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'site'.
[INFO] 

[INFO] Building Maven Default Project
[INFO]task-segment: [site:site]
[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] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] Cannot execute mojo: site. It requires a project with an existing 
pom.xml, but the build is not using one.

It seems when running from CRON Maven can't find the pom file.

Is there a way to specify the location of the top level pom via that 
command line?

Thanks in advance,
Chris


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



Re: List of all dependencies as text on console?

2007-07-20 Thread Patrick Forhan

I don't mean to co-opt this thread for my own purpose, but I have a
similar question:  How do I get a list of depenencies in a maven
plugin?  Is there better documentation on this?  I tried to read the
assembly and dependency plugin source, but things are not very clear.

I've tried something like the following in my Mojo... everything comes
back as a basically empty instance.

   /**
* One dependency.
*
* @parameter expression=${project.dependency}
*/
   private Dependency   dependency;

   /**
* Dependency array?.
*
* @parameter expression=${project.dependency}
*/
   private Dependency[] dependencies;

   /**
* Dep mgr.
*
* @parameter expression=${project.dependencyManagement}
*/
   private DependencyManagement dependencyMgmt;

   /**
* resources?.
*
* @parameter expression=${project.resources}
*/
   private ListResource res;


--
Defy mediocrity.

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



Re: List of all dependencies as text on console?

2007-07-20 Thread Dmitry
hey, there is a book for maven usage , try to find the link on 
maven.apache.org

thanks
Dmitry
www.ejinz.com

- Original Message - 
From: Patrick Forhan [EMAIL PROTECTED]

To: Maven Users List users@maven.apache.org
Sent: Friday, July 20, 2007 2:10 PM
Subject: Re: List of all dependencies as text on console?



I don't mean to co-opt this thread for my own purpose, but I have a
similar question:  How do I get a list of depenencies in a maven
plugin?  Is there better documentation on this?  I tried to read the
assembly and dependency plugin source, but things are not very clear.

I've tried something like the following in my Mojo... everything comes
back as a basically empty instance.

   /**
* One dependency.
*
* @parameter expression=${project.dependency}
*/
   private Dependency   dependency;

   /**
* Dependency array?.
*
* @parameter expression=${project.dependency}
*/
   private Dependency[] dependencies;

   /**
* Dep mgr.
*
* @parameter expression=${project.dependencyManagement}
*/
   private DependencyManagement dependencyMgmt;

   /**
* resources?.
*
* @parameter expression=${project.resources}
*/
   private ListResource res;


--
Defy mediocrity.

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



Missing bundle for site-plugin?

2007-07-20 Thread Jim Crossley
Hi all,

With the latest released versions of Maven, Eclipse, and the
corresponding plugins for each, I get this when I attempt to run the
install goal from within Eclipse.  I can run the same goal fine from
the command line, outside of Eclipse.

site:attach-descriptor
[ERROR] reactor-execute : C:\EclipseWorkspace\distributor_Maven
Diagnosis: Can't find bundle for base name site-plugin, locale en
FATAL ERROR: Error executing Maven for a project
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Can't find bundle for base name site-plugin, locale en
[INFO] 
[DEBUG] Trace Can't find bundle for base name site-plugin, locale en

Any ideas?  

Thanks,
Jim


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



google-testar with Maven

2007-07-20 Thread Martin Alejandro Villalobos

Hello.
Somebody knows if is possible integrate google-testar with Maven?

Thanks.

MArtin.



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



Re: google-testar with Maven

2007-07-20 Thread Dmitry
hey, never used before testart. what the purposes of it? 
thanks,

DM
www.ejinz.com
- Original Message - 
From: Martin Alejandro Villalobos [EMAIL PROTECTED]

To: users@maven.apache.org
Sent: Friday, July 20, 2007 2:31 PM
Subject: google-testar with Maven



Hello.
Somebody knows if is possible integrate google-testar with Maven?

Thanks.

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]



Re: List of all dependencies as text on console?

2007-07-20 Thread Michael Meyer

Hi
if I remember rightly it should be something like this:

/**
 * @requiresDependencyResolution test
 */
public class CopyDependenciesMojo extends AbstractMojo {

/**
 * @parameter expression=${project.artifacts}
 * @required
 */
private Set artifacts;
}

The @requiresDependencyResolution is the important part.
Hope this helps.
Cheers, michael

Patrick Forhan schrieb:

I don't mean to co-opt this thread for my own purpose, but I have a
similar question:  How do I get a list of depenencies in a maven
plugin?  Is there better documentation on this?  I tried to read the
assembly and dependency plugin source, but things are not very clear.

I've tried something like the following in my Mojo... everything comes
back as a basically empty instance.

   /**
* One dependency.
*
* @parameter expression=${project.dependency}
*/
   private Dependency   dependency;

   /**
* Dependency array?.
*
* @parameter expression=${project.dependency}
*/
   private Dependency[] dependencies;

   /**
* Dep mgr.
*
* @parameter expression=${project.dependencyManagement}
*/
   private DependencyManagement dependencyMgmt;

   /**
* resources?.
*
* @parameter expression=${project.resources}
*/
   private ListResource res;





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



Re: Maven proxy

2007-07-20 Thread Dmitry
I have succesfuly installed codehaus eclipse plugin and i have downloaded 
dependencys for my projects (connection to internet works fine).


The next step was to create a network repository so that co-workers and I 
could share the jars that we download from the internet and have less lag 
when in need of a jar.


I THINK I have configured maven-proxy ok but I DONT think its working 
correctly. This is what I did: 1) Downloaded maven-proxy and the config file 
2) Adjust config file to my needs. 3) Start maven-proxy.


After that I started to try to configure the eclipse plugin so that it uses 
my repository. To do that I had to copy the conf.xml file from maven folder 
to the root of my local repository and I added the following lines:


mirror idmaven-proxy/id nameMaven-Proxy Mirror/name 
urlhttp://j2eedesar3:/repository/url mirrorOfcentral/mirrorOf 
/mirror mirror idmaven-proxy/id nameMaven-Proxy Mirror/name 
urlhttp://j2eedesar3:/repository/url mirrorOfsnapshots/mirrorOf 
/mirror where j2eedesar3 is the name of the machine where maven-proxy is 
running.When I view maven-proxy's log I see the requests made from my 
machine to maven-proxy but I in the filesystem I don't see any downloaded 
jars

thanks,
DM
www.ejinz.com - Search Biz

- Original Message - 
From: Dennis Lundberg [EMAIL PROTECTED]
To: Sujit Samantaray [EMAIL PROTECTED]; Maven Users List 
users@maven.apache.org

Sent: Friday, July 20, 2007 1:33 PM
Subject: Re: Help


I'm sorry, but I have little experience with Continuum, perhaps someone 
else can help you.


Sujit Samantaray wrote:

Thanks Dennis,
I am really very sorry about mailing you.I had mailed 
to userlist earlier .But i didnt got any reply.I found continuum really 
interesting ,but i am completely new to it and i am struck at one point 
since 15 days and getting no idea how to procede.

please spare a little time in helping me.
 till now i have installed continuum.i am using vss and an ant project.so 
through add an ant project i have given vss foldername which i want to 
get.i have used the scm url which is given in internet.

scm:vss:path to repository:\foldername
 after thati am trying to build it.but it is showing update  checkout 
command not found. i dont have much idea about scm configuration.

 plz help me   .again i am really sorry for taking ur valuable time .
 thanks in advance
sujit On 7/20/07, *Dennis Lundberg* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


First off - do not send questions directly to the developers. This is
what the users mailing list is for.

Now to your problem.

Have you verified that the scm configuration for your project is
working, before trying to run it through Continuum? If not, you can 
do

this by using the maven-scm-plugin:
   http://maven.apache.org/scm/plugins/index.html

You should also be using version 1.0 of maven-scm-* - not the beta-3
version.

Sujit Samantaray wrote:
 
  Hi,
 
  I am trying to use continuum .i am using visual source safe with 
ant

  projects.First the vss SCM url showed invalid . i didnt found
  *maven-scm-provider-vss:jar:1.0-beta-3 *
  file in lib folder.So i searched in net and found this jar 
file.after

  putting this jar file SCM url is validated but now  it is showing
  CHECKOUT COMMAND not found and UPDATE command not found while
building
  it.I saw the jar file and saw that it is not having checkout class 
or

  update class.
  plz help me what to do regarding this. I am not sure whether
Continuum
  supports VSS fully or not .
 
  If u have the correct jar file plz send it to me soon.If i am 
doing

  wrong somewhere else plz tell me.
 
  Or please send me some links by which i will be able to work in
VSS,Ant
  project and continuum .
 
  thanks in advance.
 
  sujit


--
Dennis Lundberg





--
Dennis Lundberg

-
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: List of all dependencies as text on console?

2007-07-20 Thread Patrick Forhan

Cool!  That gets me one big step closer.  Thanks!

Pat.

On 7/20/07, Michael Meyer [EMAIL PROTECTED] wrote:

Hi
if I remember rightly it should be something like this:

/**
  * @requiresDependencyResolution test
  */
public class CopyDependenciesMojo extends AbstractMojo {

 /**
  * @parameter expression=${project.artifacts}
  * @required
  */
 private Set artifacts;
}

The @requiresDependencyResolution is the important part.
Hope this helps.
Cheers, michael

Patrick Forhan schrieb:
 I don't mean to co-opt this thread for my own purpose, but I have a
 similar question:  How do I get a list of depenencies in a maven
 plugin?  Is there better documentation on this?  I tried to read the
 assembly and dependency plugin source, but things are not very clear.

 I've tried something like the following in my Mojo... everything comes
 back as a basically empty instance.

/**
 * One dependency.
 *
 * @parameter expression=${project.dependency}
 */
private Dependency   dependency;

/**
 * Dependency array?.
 *
 * @parameter expression=${project.dependency}
 */
private Dependency[] dependencies;

/**
 * Dep mgr.
 *
 * @parameter expression=${project.dependencyManagement}
 */
private DependencyManagement dependencyMgmt;

/**
 * resources?.
 *
 * @parameter expression=${project.resources}
 */
private ListResource res;




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





--
Defy mediocrity.

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



Loading property from specific file

2007-07-20 Thread Dmitry
I need loading my property build.number from my file data.txt to Maven. And 
I need using this property in scm:tag for set tag name


thanks,
Dmtiry
www.ejinz.com - search biz
- Original Message - 
From: Jim Crossley [EMAIL PROTECTED]

To: Maven Users List users@maven.apache.org
Sent: Friday, July 20, 2007 2:23 PM
Subject: Missing bundle for site-plugin?



Hi all,

With the latest released versions of Maven, Eclipse, and the
corresponding plugins for each, I get this when I attempt to run the
install goal from within Eclipse.  I can run the same goal fine from
the command line, outside of Eclipse.

site:attach-descriptor
[ERROR] reactor-execute : C:\EclipseWorkspace\distributor_Maven
Diagnosis: Can't find bundle for base name site-plugin, locale en
FATAL ERROR: Error executing Maven for a project
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Can't find bundle for base name site-plugin, locale en
[INFO] 
[DEBUG] Trace Can't find bundle for base name site-plugin, locale en

Any ideas?

Thanks,
Jim


-
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: How can i create a repo search order?

2007-07-20 Thread Denis Cabasson

Maven is always searching first for the local repo.

Searching for dev or release or public repo is not, to my knowledge,
possible. A given artifact should be the same on all repos, so maven will
look for it wherever it can.

Denis.


Baz-6 wrote:
 
 All,
 
 How can i write the pom so that it looks for local repo (local machine),
 then development repo, then release repo, then public repo?
 
 Thanks.
 
 A.
 
 

-- 
View this message in context: 
http://www.nabble.com/How-can-i-create-a-repo-search-order--tf4118179s177.html#a11715961
Sent from the Maven - Users mailing list archive at Nabble.com.


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



issues maven- hibernate- spring

2007-07-20 Thread Dmitry
hey, I'm building a project that uses Spring and Hibernate with Maven. So 
far I've been able to get a jar of just my project or a jar of everything 
with dependencies (using assembly:assembly). Unfortunately, when I do the 
with dependencies build, I'm getting errors from Spring trying to find the 
Hibernate mapping files inside the jar. They are in the same location inside 
the jar as in the non-dependency jar (and the same as the manually built 
jars from the pre-Maven builds). I'm using the standard Maven directory 
structure for my project.


Is there something special about the with dependency jars? Is there a 
special way I need to specify the classpath? Previously I was able to just 
specify the jar as part of the classpath, but that doesn't seem to be 
working for the Maven-built jar.


Also, the assembly:assembly build is placing my Spring xml configuration and 
properties files inside the jar. I'm having a bit of trouble figuring out 
how to configure my pom to achieve that, since the documentation is a bit 
sparse. Does someone have an example of how to do that?


thnaks,

Dmtiry Tkach

www.ejinz.com search biz





- Original Message - 
From: Dennis Lundberg [EMAIL PROTECTED]
To: Sujit Samantaray [EMAIL PROTECTED]; Maven Users List 
users@maven.apache.org

Sent: Friday, July 20, 2007 1:33 PM
Subject: Re: Help


I'm sorry, but I have little experience with Continuum, perhaps someone 
else can help you.


Sujit Samantaray wrote:

Thanks Dennis,
I am really very sorry about mailing you.I had mailed 
to userlist earlier .But i didnt got any reply.I found continuum really 
interesting ,but i am completely new to it and i am struck at one point 
since 15 days and getting no idea how to procede.

please spare a little time in helping me.
 till now i have installed continuum.i am using vss and an ant project.so 
through add an ant project i have given vss foldername which i want to 
get.i have used the scm url which is given in internet.

scm:vss:path to repository:\foldername
 after thati am trying to build it.but it is showing update  checkout 
command not found. i dont have much idea about scm configuration.

 plz help me   .again i am really sorry for taking ur valuable time .
 thanks in advance
sujit On 7/20/07, *Dennis Lundberg* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


First off - do not send questions directly to the developers. This is
what the users mailing list is for.

Now to your problem.

Have you verified that the scm configuration for your project is
working, before trying to run it through Continuum? If not, you can 
do

this by using the maven-scm-plugin:
   http://maven.apache.org/scm/plugins/index.html

You should also be using version 1.0 of maven-scm-* - not the beta-3
version.

Sujit Samantaray wrote:
 
  Hi,
 
  I am trying to use continuum .i am using visual source safe with 
ant

  projects.First the vss SCM url showed invalid . i didnt found
  *maven-scm-provider-vss:jar:1.0-beta-3 *
  file in lib folder.So i searched in net and found this jar 
file.after

  putting this jar file SCM url is validated but now  it is showing
  CHECKOUT COMMAND not found and UPDATE command not found while
building
  it.I saw the jar file and saw that it is not having checkout class 
or

  update class.
  plz help me what to do regarding this. I am not sure whether
Continuum
  supports VSS fully or not .
 
  If u have the correct jar file plz send it to me soon.If i am 
doing

  wrong somewhere else plz tell me.
 
  Or please send me some links by which i will be able to work in
VSS,Ant
  project and continuum .
 
  thanks in advance.
 
  sujit


--
Dennis Lundberg





--
Dennis Lundberg

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



Maven repository metadata

2007-07-20 Thread Dmitry
I've got a quick question about repository metadata. If you take a look at 
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml 
it has all of the versioning information, which makes sense, but it also has 
a version tag with a version that's neither the oldest nor the most recent. 
How does this tag get populated and what is it used for? It seems like this 
tag shouldn't even be there... Are there metadata files that are only 
associated with a particular version?

thanks,
Dmitry
www.ejinz.com search biz
- Original Message - 
From: Chris Russell [EMAIL PROTECTED]

To: Maven Users List users@maven.apache.org
Sent: Friday, July 20, 2007 1:29 PM
Subject: Running Maven commands with CRON



Hello,

I'm trying to run the following script with CRON:
# set up some environment vars to make things more readable
. /home/maven/metalink3/setupVars.sh

/u02/webapps/orihttp/apache/maven-2.0.4/bin/mvn site:site

This runs fine when I run it from the command line. But when CRON runs it 
I get:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'site'.
[INFO] 

[INFO] Building Maven Default Project
[INFO]task-segment: [site:site]
[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] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Cannot execute mojo: site. It requires a project with an existing 
pom.xml, but the build is not using one.


It seems when running from CRON Maven can't find the pom file.

Is there a way to specify the location of the top level pom via that 
command line?


Thanks in advance,
Chris


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



pom inheritence and multi-module pom do not complement

2007-07-20 Thread kapilanand

I am new to maven. I am using maven 2.0.7.
I have a multi-module project A which defines the dependencyManagement
entries for the contained modules, say A1, A2, A3.
But as suggested in books and sites I also have inheritance relation between
the poms of the modules to the parent module, that is A's pom is parent of
A1's, A2's and A3's poms.
This works fine, but then it is not much of use since this grouping helps me
only in building them together.

I have another project B that depends on this multi-module project A and I
have declared a dependency of B on A with type=pom. Now this dependency is
of no use since it is not adding the child modules to the classpath of this
other project B. Neither does it allow me to add module-project dependencies
without specifying their version. (That means i have to specify the version
for each module, but then what's point of building them together as one
project)

I tried to fix this by adding child modules as dependencies of the top pom
A, but this results in cyclic dependency problem because of inheritance
relation.

Am I missing something here or is it really a win-loss situation to mix
these two features? 

-- 
View this message in context: 
http://www.nabble.com/pom-inheritence-and-multi-module-pom-do-not-complement-tf4119628s177.html#a11716184
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Generate DB Schema using annotated JPA classes ??

2007-07-20 Thread Dan Tran

Do we have an example howto configure hibernate2-maven-plugin to generate DB
schema using
the annotated JPA classes?

Any suggestion is greatly appreciated.

Thanks

-Dan


Re: How can i create a repo search order?

2007-07-20 Thread Baz

Denis, thanks. How can i configure the searching behaviour? Is there a file?
Syntax?

On 7/20/07, Denis Cabasson [EMAIL PROTECTED] wrote:



Maven is always searching first for the local repo.

Searching for dev or release or public repo is not, to my knowledge,
possible. A given artifact should be the same on all repos, so maven will
look for it wherever it can.

Denis.


Baz-6 wrote:

 All,

 How can i write the pom so that it looks for local repo (local machine),
 then development repo, then release repo, then public repo?

 Thanks.

 A.



--
View this message in context:
http://www.nabble.com/How-can-i-create-a-repo-search-order--tf4118179s177.html#a11715961
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: Running Maven commands with CRON

2007-07-20 Thread Mike Ward

Chris: I just had the same problem earlier today outside of CRON.
Try executing the command from within the directory that contains the POM.

# set up some environment vars to make things more readable
. /home/maven/metalink3/setupVars.sh

HERE=`pwd`
cd  /Location/of/the/POM
${M2_HOME}/bin/mvn site:site
cd $HERE
#

/Shud werk.

Mike
/
Sommers, Elizabeth wrote:

You might do better using a good CI tool like Vulcan.  I am not saying you 
can't do this with cron, but there are tools around that do just this.
http://code.google.com/p/vulcan/

Liz Sommers
[EMAIL PROTECTED]


-Original Message-
From: Chris Russell [mailto:[EMAIL PROTECTED]
Sent: Friday, July 20, 2007 2:30 PM
To: Maven Users List
Subject: Running Maven commands with CRON


Hello,

I'm trying to run the following script with CRON:
# set up some environment vars to make things more readable
. /home/maven/metalink3/setupVars.sh

/u02/webapps/orihttp/apache/maven-2.0.4/bin/mvn site:site

This runs fine when I run it from the command line. But when CRON runs 
it I get:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'site'.
[INFO] 


[INFO] Building Maven Default Project
[INFO]task-segment: [site:site]
[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] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] Cannot execute mojo: site. It requires a project with an existing 
pom.xml, but the build is not using one.


It seems when running from CRON Maven can't find the pom file.

Is there a way to specify the location of the top level pom via that 
command line?


Thanks in advance,
Chris


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

  




maven https

2007-07-20 Thread Dmitry
Can someone tell me how do i get Maven to connect to a windows https: remote 
server. Can I pass the username and password?

thanks,
Dmitry Tkach
www.ejinz.com - search biz
- Original Message - 
From: Baz [EMAIL PROTECTED]

To: Maven Users List users@maven.apache.org
Sent: Friday, July 20, 2007 4:39 PM
Subject: Re: How can i create a repo search order?


Denis, thanks. How can i configure the searching behaviour? Is there a 
file?

Syntax?

On 7/20/07, Denis Cabasson [EMAIL PROTECTED] wrote:



Maven is always searching first for the local repo.

Searching for dev or release or public repo is not, to my knowledge,
possible. A given artifact should be the same on all repos, so maven will
look for it wherever it can.

Denis.


Baz-6 wrote:

 All,

 How can i write the pom so that it looks for local repo (local 
 machine),

 then development repo, then release repo, then public repo?

 Thanks.

 A.



--
View this message in context:
http://www.nabble.com/How-can-i-create-a-repo-search-order--tf4118179s177.html#a11715961
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]



How to configure the repository to be used for downloading dependencies in a plugin WITHOUT changing my POM ?

2007-07-20 Thread Dmitry
I'd like to configure a dependency to the compiler plugin (the **.jar java 
1.3) as I use it for bootclasspath :


artifactIdmaven-compiler-plugin/artifactId configuration 
compilerArguments bootclasspath 
${settings.localRepository}/com/sun/rt/${ 
maven.compile.runtime}/rt-${maven.compile.runtime}.jar /bootclasspath 
/compilerArguments /configuration dependencies dependency 
groupIdcom.sun/groupId artifactIdrt/artifactId 
version${maven.compile.runtime}/version /dependency /dependencies


To resolve this non-free dependency, I need to set a custom repository in my 
settings.xml to point to my corporate repo.


When I run maven, it complain for dependency . It searched in central and 
apache.snapshot repositories. I myself have NOT declared apache.snapshots as 
a repository. It is declared in the apache-3 parent POM that the plugin 
extends


I then have two questions :

1. How to configure the repository to be used for downloading dependencies 
in a plugin WITHOUT changing my POM ?


2. Is this exepected for a released POM to make reference to a snapshot 
repository ?


thanks,

Dmitry Tk

www.ejinz.com search biz

- Original Message - 
From: Baz [EMAIL PROTECTED]

To: Maven Users List users@maven.apache.org
Sent: Friday, July 20, 2007 4:39 PM
Subject: Re: How can i create a repo search order?


Denis, thanks. How can i configure the searching behaviour? Is there a 
file?

Syntax?

On 7/20/07, Denis Cabasson [EMAIL PROTECTED] wrote:



Maven is always searching first for the local repo.

Searching for dev or release or public repo is not, to my knowledge,
possible. A given artifact should be the same on all repos, so maven will
look for it wherever it can.

Denis.


Baz-6 wrote:

 All,

 How can i write the pom so that it looks for local repo (local 
 machine),

 then development repo, then release repo, then public repo?

 Thanks.

 A.



--
View this message in context:
http://www.nabble.com/How-can-i-create-a-repo-search-order--tf4118179s177.html#a11715961
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]



How can i add or replace project specific variables locally?

2007-07-20 Thread Dmitry

How can i add or replace project specific variables locally?

Specific case: How can i read a file and replace a variable in the pom.xml 
so i dont need to produce SNAPSHOT but using a variable $VERSION that 
control by build system?


What is the recommended approach to this? So that I can produce 
package-SNAPSHOT.jar by default, and package-nightlybuild-041007.jar if 
reading variables?


thanks,

Dmitry

www.ejinz.com - search biz

- Original Message - 
From: Jim Crossley [EMAIL PROTECTED]

To: Maven Users List users@maven.apache.org
Sent: Friday, July 20, 2007 2:23 PM
Subject: Missing bundle for site-plugin?



Hi all,

With the latest released versions of Maven, Eclipse, and the
corresponding plugins for each, I get this when I attempt to run the
install goal from within Eclipse.  I can run the same goal fine from
the command line, outside of Eclipse.

site:attach-descriptor
[ERROR] reactor-execute : C:\EclipseWorkspace\distributor_Maven
Diagnosis: Can't find bundle for base name site-plugin, locale en
FATAL ERROR: Error executing Maven for a project
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Can't find bundle for base name site-plugin, locale en
[INFO] 
[DEBUG] Trace Can't find bundle for base name site-plugin, locale en

Any ideas?

Thanks,
Jim


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

2007-07-20 Thread Arnaud HERITIER

You certainly have to register in your jvm/jdk the public key of your
server using the keytool.

Arnaud

On 20/07/07, Dmitry [EMAIL PROTECTED] wrote:

Can someone tell me how do i get Maven to connect to a windows https: remote
server. Can I pass the username and password?
thanks,
Dmitry Tkach
www.ejinz.com - search biz
- Original Message -
From: Baz [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Friday, July 20, 2007 4:39 PM
Subject: Re: How can i create a repo search order?


 Denis, thanks. How can i configure the searching behaviour? Is there a
 file?
 Syntax?

 On 7/20/07, Denis Cabasson [EMAIL PROTECTED] wrote:


 Maven is always searching first for the local repo.

 Searching for dev or release or public repo is not, to my knowledge,
 possible. A given artifact should be the same on all repos, so maven will
 look for it wherever it can.

 Denis.


 Baz-6 wrote:
 
  All,
 
  How can i write the pom so that it looks for local repo (local
  machine),
  then development repo, then release repo, then public repo?
 
  Thanks.
 
  A.
 
 

 --
 View this message in context:
 
http://www.nabble.com/How-can-i-create-a-repo-search-order--tf4118179s177.html#a11715961
 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]





--
..
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: Maven proxy

2007-07-20 Thread Dennis Lundberg
Please do not hijack other people's threads and change the subject for 
them. Create your own message by sending an e-mail to users@maven.apache.org


Dmitry wrote:
I have succesfuly installed codehaus eclipse plugin and i have 
downloaded dependencys for my projects (connection to internet works fine).


The next step was to create a network repository so that co-workers and 
I could share the jars that we download from the internet and have less 
lag when in need of a jar.


I THINK I have configured maven-proxy ok but I DONT think its working 
correctly. This is what I did: 1) Downloaded maven-proxy and the config 
file 2) Adjust config file to my needs. 3) Start maven-proxy.


After that I started to try to configure the eclipse plugin so that it 
uses my repository. To do that I had to copy the conf.xml file from 
maven folder to the root of my local repository and I added the 
following lines:


mirror idmaven-proxy/id nameMaven-Proxy Mirror/name 
urlhttp://j2eedesar3:/repository/url 
mirrorOfcentral/mirrorOf /mirror mirror idmaven-proxy/id 
nameMaven-Proxy Mirror/name 
urlhttp://j2eedesar3:/repository/url 
mirrorOfsnapshots/mirrorOf /mirror where j2eedesar3 is the name of 
the machine where maven-proxy is running.When I view maven-proxy's log I 
see the requests made from my machine to maven-proxy but I in the 
filesystem I don't see any downloaded jars

thanks,
DM
www.ejinz.com - Search Biz

- Original Message - From: Dennis Lundberg [EMAIL PROTECTED]
To: Sujit Samantaray [EMAIL PROTECTED]; Maven Users List 
users@maven.apache.org

Sent: Friday, July 20, 2007 1:33 PM
Subject: Re: Help


I'm sorry, but I have little experience with Continuum, perhaps 
someone else can help you.


Sujit Samantaray wrote:

Thanks Dennis,
I am really very sorry about mailing you.I had 
mailed to userlist earlier .But i didnt got any reply.I found 
continuum really interesting ,but i am completely new to it and i am 
struck at one point since 15 days and getting no idea how to procede.

please spare a little time in helping me.
 till now i have installed continuum.i am using vss and an ant 
project.so through add an ant project i have given vss foldername 
which i want to get.i have used the scm url which is given in internet.

scm:vss:path to repository:\foldername
 after thati am trying to build it.but it is showing update  
checkout command not found. i dont have much idea about scm 
configuration.

 plz help me   .again i am really sorry for taking ur valuable time .
 thanks in advance
sujit On 7/20/07, *Dennis Lundberg* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


First off - do not send questions directly to the developers. 
This is

what the users mailing list is for.

Now to your problem.

Have you verified that the scm configuration for your project is
working, before trying to run it through Continuum? If not, you 
can do

this by using the maven-scm-plugin:
   http://maven.apache.org/scm/plugins/index.html

You should also be using version 1.0 of maven-scm-* - not the beta-3
version.

Sujit Samantaray wrote:
 
  Hi,
 
  I am trying to use continuum .i am using visual source safe 
with ant

  projects.First the vss SCM url showed invalid . i didnt found
  *maven-scm-provider-vss:jar:1.0-beta-3 *
  file in lib folder.So i searched in net and found this jar 
file.after

  putting this jar file SCM url is validated but now  it is showing
  CHECKOUT COMMAND not found and UPDATE command not found while
building
  it.I saw the jar file and saw that it is not having checkout 
class or

  update class.
  plz help me what to do regarding this. I am not sure whether
Continuum
  supports VSS fully or not .
 
  If u have the correct jar file plz send it to me soon.If i am 
doing

  wrong somewhere else plz tell me.
 
  Or please send me some links by which i will be able to work in
VSS,Ant
  project and continuum .
 
  thanks in advance.
 
  sujit


--
Dennis Lundberg





--
Dennis Lundberg

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




--
Dennis Lundberg

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



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

2007-07-20 Thread Tawfik, Sameh E
Hi,

I'm using the following code:

dependency
  groupIdconnector/groupId
  artifactIdconnector/artifactId
  version1_0/version
  scopesystem/scope
 
systemPath${Build_base}/ma-jdm-tck/lib/connector_1_0.jar/systemPath
/dependency

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?  

For example, can I use something like ${project.build.directory}? 

I've a parent folder Project where all the build modules are under it
as sub projects, so it would be nice to be able to reference the parent
folder, and then point to  any needed third party jar file in any one of
the subfolders.

I know I can also use mvn install:install-file -DgroupId=connector
-DartifactId=connector  -Dversion=1_0 -Dpackaging=jar
-Dfile=/path/to/file

But, it would be nice to just reference specific files by pointing at
them using their path, so does Maven support this feature?

Thanks,

Sameh

This email and any files transmitted with it are confidential, proprietary
and intended solely for the individual or entity to whom they are addressed.
If you have received this email in error please delete it immediately.


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



Re: Generate DB Schema using annotated JPA classes ??

2007-07-20 Thread Jim Crossley
Hi Dan...

Dan Tran [EMAIL PROTECTED] writes:

 Do we have an example howto configure hibernate2-maven-plugin to
 generate DB schema using the annotated JPA classes?

I set up a profile in my pom to build pretty pictures of our schema
using the 'hbm2doc' component of the hibernate3-maven-plugin.  I think
generating the schema instead amounts to choosing another component,
but I'm not sure off the top of my head what that is.  Either the docs
for the plugin or google will tell you.  If you can't find it, ping
me, and I'll snarf it out for you.  Here's my profile:

  profile
iddb.doc/id
dependencies
  dependency
groupIdhsqldb/groupId
artifactIdhsqldb/artifactId
version1.8.0.7/version
  /dependency
/dependencies
build
  plugins
plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdhibernate3-maven-plugin/artifactId
  configuration
dotExecutable/usr/bin/dot/dotExecutable
components
  component
namehbm2doc/name
implementationjpaconfiguration/implementation
  /component
/components
componentProperties
  persistenceunithibernate-hsqldb/persistenceunit
/componentProperties
  /configuration
/plugin
  /plugins
/build
  /profile

Jim


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



Access information in parent pom.xml in archetype

2007-07-20 Thread Gert Vanthienen

L.S.,

Is it possible to access information in the parent pom.xml while creating a
new project with an Maven archetype?  We often have a directory with a
parent pom.xml which already contains the name, groupId, url, ...  If I
execute mvn archetype:create in this directory, some properties are copied
automatically (e.g. if you do not specify a groupId on the command line, it
will inherit the one from the parent if you add ${groupId} to the pom.xml in
the archetype), but for others this doesn't seem to work (e.g. ${url} does
nothing). Is there a way to do the same thing for the other information in
the parent pom.xml, using some other expression?


Thanks,

Gert



-- 
View this message in context: 
http://www.nabble.com/Access-information-in-parent-pom.xml-in-archetype-tf4120471s177.html#a11718603
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: Generate DB Schema using annotated JPA classes ??

2007-07-20 Thread Dan Tran

Jim,

you are my hero,

Here is my working config, just incase it may benefit other.


plugin

groupIdorg.codehaus.mojo/groupId

artifactIdhibernate3-maven-plugin/artifactId

version2.0-alpha-1/version

configuration

componentProperties

implementationjpaconfiguration/implementation

outputfilenameiplocks-schema-hsqldb.sql/outputfilename

persistenceunitiplocks/persistenceunit

exportfalse/export

/componentProperties

components

component

namehbm2ddl/name

/component

/components

/configuration

executions

execution

phaseprocess-classes/phase

goals

goalhbm2ddl/goal

/goals

/execution

/executions

/plugin

thanks

-D






On 7/20/07, Jim Crossley [EMAIL PROTECTED] wrote:


Hi Dan...

Dan Tran [EMAIL PROTECTED] writes:

 Do we have an example howto configure hibernate2-maven-plugin to
 generate DB schema using the annotated JPA classes?

I set up a profile in my pom to build pretty pictures of our schema
using the 'hbm2doc' component of the hibernate3-maven-plugin.  I think
generating the schema instead amounts to choosing another component,
but I'm not sure off the top of my head what that is.  Either the docs
for the plugin or google will tell you.  If you can't find it, ping
me, and I'll snarf it out for you.  Here's my profile:

profile
   iddb.doc/id
   dependencies
 dependency
   groupIdhsqldb/groupId
   artifactIdhsqldb/artifactId
   version1.8.0.7/version
 /dependency
   /dependencies
   build
 plugins
   plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdhibernate3-maven-plugin/artifactId
 configuration
   dotExecutable/usr/bin/dot/dotExecutable
   components
 component
   namehbm2doc/name
   implementationjpaconfiguration/implementation
 /component
   /components
   componentProperties
 persistenceunithibernate-hsqldb/persistenceunit
   /componentProperties
 /configuration
   /plugin
 /plugins
   /build
/profile

Jim


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




Re: From a lessons-learned...

2007-07-20 Thread Raphaël Piéroni

Hi Brian,

I would be very insterested to an example
to enforce the test=skip and maven.test.skip=true are banned
from a parent pom and used in childrens.


Regards,

Raphaël

2007/7/20, Brian E. Fox [EMAIL PROTECTED]:


Use the enforcer to detect maven.test.skip and fail the build on them
;-)

-Original Message-
From: Christian Gruber [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 19, 2007 8:24 AM
To: Maven Developers List
Subject: From a lessons-learned...

Thought the devs might appreciate this.

On my current project, I regrettably had to inform some users of the -
fae and -Dmaven.test.skip=true options, which ultimately resulted in
a near total abandonment of project discipline, and ultimately a lot
of error discovery through finding out when we deployed to the
appserver.  One of the project members, when asked to post some
lessons learned for a retrospective session, posted all of his as
Haiku.  He included the following gem:

   Maven F A E
   Maven test skip equals true
   Rob, it won't deploy!

Cheers,
Christian.


-
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: plugin dependancy

2007-07-20 Thread John Coleman
Sorry about this Wayne - it is appended by the mail server to all our
emails, so it is beyond my control. I shall raise this issue, and see if
anything can be done.

John

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: 19 July 2007 17:35
To: Maven Users List
Subject: Re: plugin dependancy

John, that is the LARGEST company sig/disclaimer I've ever seen in my
life.

The only way it could be larger is if they had it translated in a few
languages as well as the English...

Wayne

On 7/19/07, John Coleman [EMAIL PROTECTED]
wrote:
 Ok... changed the plugins deps scope seems to of fixed this

 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]



Problem by [surefire:test]

2007-07-20 Thread Wei Chen
Hi all,

I run mvn install or mvn test. But I got error as follow. Could someone tell me 
why? 

Best regards


***

[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: C:\Wei\MyProjects\timetracker-completed\core\t
arget\surefire-reports
WARNING: couldn't find in classpath http://testng.org/testng-1.0.dtd
Fetching it from the Web site.
org.apache.maven.surefire.booter.SurefireExecutionException: Error reading test
suite; nested exception is java.net.ConnectException: Connection timed out: conn
ect; nested exception is org.apache.maven.surefire.testset.TestSetFailedExceptio
n: Error reading test suite; nested exception is java.net.ConnectException: Conn
ection timed out: connect
org.apache.maven.surefire.testset.TestSetFailedException: Error reading test sui
te; nested exception is java.net.ConnectException: Connection timed out: connect

java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:516)
at java.net.Socket.connect(Socket.java:466)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
at sun.net.www.http.HttpClient.init(HttpClient.java:214)
at sun.net.www.http.HttpClient.New(HttpClient.java:287)
at sun.net.www.http.HttpClient.New(HttpClient.java:299)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC
onnection.java:796)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
ction.java:748)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
.java:673)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:917)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent
Entity(XMLEntityManager.java:973)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(
XMLEntityManager.java:905)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEnti
ty(XMLEntityManager.java:872)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSou
rce(XMLDTDScannerImpl.java:282)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDis
patcher.dispatch(XMLDocumentScannerImpl.java:1021)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
java:148)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab
stractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
at org.testng.xml.Parser.parse(Parser.java:139)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.locateTestSets(Te
stNGXmlTestSuite.java:129)
at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire
.java:147)
at org.apache.maven.surefire.Surefire.run(Surefire.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
refireBooter.java:225)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
ava:747)
[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] There are test failures.
[INFO] 
[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:560)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:480)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:459)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen

Maven 2 site/reporting with mutliple projects

2007-07-20 Thread Aaron Zeckoski

I have a configuration issue with maven 2.0.7 that I am not sure how
to get around and I have not been able to find my answers in the maven
2 docs here:
http://maven.apache.org/pom.html

I want to define a set of reports in a base pom file. Then I want to
run the reports on the entire set of modules for that POM at once. As
an alternative, we just want to run the reports on the modules only
but do not want to have to put the same reports tag in every module
pom.

Here is an example of the structure
base/pom.xml (no code, refers to 5 modules)
 api/pom.xml (module)
 impl/pom.xml (module)
 tool/pom.xml (module)
 whatever/pom.xml (module)
 other stuff/pom.xml (module)

Unfortunately, I am having a problem with this approach. The base
project (the one with no code in it) tends to cause the reports to
fail to run and therefore cause the maven site to fail to build. If
we are building the site along with the rest of
the code (mvn clean install site) then this means that we get an
overall build failure. (Again, the idea here being that we put the report
generating tags in the base pom file.)

Ideally I am hoping there is some way to run a report on the
completely build base projects. If not then maybe something like a
no-reports tag or maybe some way to keep the reports from running
for the base project but no stop the tags from being inherited from
the base by the related projects.

I appreciate any suggestions and help
:-)
-AZ


--
Aaron Zeckoski ([EMAIL PROTECTED])
Senior Research Engineer - CARET - Cambridge University
[http://bugs.sakaiproject.org/confluence/display/~aaronz/]
Sakai Fellow - [http://aaronz-sakai.blogspot.com/]

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



Re: Problem by [surefire:test]

2007-07-20 Thread Teody Cue Jr.

Hi,

Do you still have the same code base as yesterday? I've tested it just 
now and it seems fine. Could it be just an internet connection problem? 
Or testng.org being down?


Hope this helps. :)

Teody



Wei Chen wrote:

Hi all,

I run mvn install or mvn test. But I got error as follow. Could someone tell me why? 


Best regards


***

[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: C:\Wei\MyProjects\timetracker-completed\core\t
arget\surefire-reports
WARNING: couldn't find in classpath http://testng.org/testng-1.0.dtd
Fetching it from the Web site.
org.apache.maven.surefire.booter.SurefireExecutionException: Error reading test
suite; nested exception is java.net.ConnectException: Connection timed out: conn
ect; nested exception is org.apache.maven.surefire.testset.TestSetFailedExceptio
n: Error reading test suite; nested exception is java.net.ConnectException: Conn
ection timed out: connect
org.apache.maven.surefire.testset.TestSetFailedException: Error reading test sui
te; nested exception is java.net.ConnectException: Connection timed out: connect

java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:516)
at java.net.Socket.connect(Socket.java:466)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
at sun.net.www.http.HttpClient.init(HttpClient.java:214)
at sun.net.www.http.HttpClient.New(HttpClient.java:287)
at sun.net.www.http.HttpClient.New(HttpClient.java:299)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC
onnection.java:796)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
ction.java:748)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
.java:673)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:917)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent
Entity(XMLEntityManager.java:973)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(
XMLEntityManager.java:905)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEnti
ty(XMLEntityManager.java:872)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSou
rce(XMLDTDScannerImpl.java:282)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDis
patcher.dispatch(XMLDocumentScannerImpl.java:1021)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
java:148)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab
stractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
at org.testng.xml.Parser.parse(Parser.java:139)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.locateTestSets(Te
stNGXmlTestSuite.java:129)
at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire
.java:147)
at org.apache.maven.surefire.Surefire.run(Surefire.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
refireBooter.java:225)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
ava:747)
[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] There are test failures.
[INFO] 
[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:560)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:480)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau

Re: Problem by [surefire:test]

2007-07-20 Thread Wei Chen
Yes. I have the same code base as yesterday. If I test my project at home, it 
is OK. Now I test it in office. I am not sure if it is the internet connection 
problem since I've set the proxy correctly as you recommended in your email. 
Otherwise it couldn't go further. :-)

I can downlaod the testng-1.0.dtd from http://testng.org/. So it seems the 
testng.org should be ok.

Any idea else ? :-)

Best regards


 Original-Nachricht 
Datum: Fri, 20 Jul 2007 16:35:20 +0800
Von: Teody Cue Jr. [EMAIL PROTECTED]
An: Maven Users List users@maven.apache.org
Betreff: Re: Problem by  [surefire:test]

 Hi,
 
 Do you still have the same code base as yesterday? I've tested it just 
 now and it seems fine. Could it be just an internet connection problem? 
 Or testng.org being down?
 
 Hope this helps. :)
 
 Teody
 
 
 
 Wei Chen wrote:
  Hi all,
 
  I run mvn install or mvn test. But I got error as follow. Could someone
 tell me why? 
 
  Best regards
 
 
  ***
 
  [INFO] [resources:testResources]
  [INFO] Using default encoding to copy filtered resources.
  [INFO] [compiler:testCompile]
  [INFO] Nothing to compile - all classes are up to date
  [INFO] [surefire:test]
  [INFO] Surefire report directory:
 C:\Wei\MyProjects\timetracker-completed\core\t
  arget\surefire-reports
  WARNING: couldn't find in classpath http://testng.org/testng-1.0.dtd
  Fetching it from the Web site.
  org.apache.maven.surefire.booter.SurefireExecutionException: Error
 reading test
  suite; nested exception is java.net.ConnectException: Connection timed
 out: conn
  ect; nested exception is
 org.apache.maven.surefire.testset.TestSetFailedExceptio
  n: Error reading test suite; nested exception is
 java.net.ConnectException: Conn
  ection timed out: connect
  org.apache.maven.surefire.testset.TestSetFailedException: Error reading
 test sui
  te; nested exception is java.net.ConnectException: Connection timed out:
 connect
 
  java.net.ConnectException: Connection timed out: connect
  at java.net.PlainSocketImpl.socketConnect(Native Method)
  at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
  at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
  at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
  at java.net.Socket.connect(Socket.java:516)
  at java.net.Socket.connect(Socket.java:466)
  at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
  at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
  at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
  at sun.net.www.http.HttpClient.init(HttpClient.java:214)
  at sun.net.www.http.HttpClient.New(HttpClient.java:287)
  at sun.net.www.http.HttpClient.New(HttpClient.java:299)
  at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC
  onnection.java:796)
  at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
  ction.java:748)
  at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
  .java:673)
  at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
  nection.java:917)
  at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent
  Entity(XMLEntityManager.java:973)
  at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(
  XMLEntityManager.java:905)
  at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEnti
  ty(XMLEntityManager.java:872)
  at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSou
  rce(XMLDTDScannerImpl.java:282)
  at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDis
  patcher.dispatch(XMLDocumentScannerImpl.java:1021)
  at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
  l.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
  at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
  ML11Configuration.java:834)
  at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
  ML11Configuration.java:764)
  at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
  java:148)
  at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab
  stractSAXParser.java:1242)
  at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
  at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
  at org.testng.xml.Parser.parse(Parser.java:139)
  at org.apache.maven.surefire.testng.TestNGXmlTestSuite.locateTestSets(Te
  stNGXmlTestSuite.java:129)
  at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire
  .java:147)
  at org.apache.maven.surefire.Surefire.run(Surefire.java:108)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
  

[ANN] groovy-maven-plugin 1.0-beta-1

2007-07-20 Thread Jason Dillon

Hello, me again :-)

I am once again pleased to announce the release of the Groovy Maven  
Plugin version 1.0-beta-1.


 * * *

This release includes a few significants bits...

 * Uses Groovy 1.1-beta-2 (and Ant 1.7)
 * New goal to invoke GroovyDoc and site report support

Some other minor bits, like improved support for mojo implementations  
and a few bugs fixed too.


Site is still here:

 http://mojo.codehaus.org/groovy/

See the change log for the full list of stuff that was changed:

http://jira.codehaus.org/secure/IssueNavigator.jspa? 
reset=truepid=11532fixfor=13497


Please use, enjoy and report any issues or spontaneous happiness you  
run into while using it.


Cheers,

--jason


Re: Maven hibernate, dependencies not working,plz help :)

2007-07-20 Thread pinky88

Hi everyone,

Whups looks like my reading skills aren't up to scratch writing spl instead
of sp1 .. ;) 

Thanks everyone, I'll give all that a go and see how i get on =)

Pinks

Teody Cue Jr. wrote:
 
 Hi Pinky,
 
 You need to install hibernate and hsqldb artifacts in your local 
 repository. Install the jars that you have downloaded using the commands 
 provided by maven when you run mvn eclipse:eclipse.
 
 mvn install:install-file -DgroupId=hibernate -DartifactId=hibernate
 -Dversion=3.2.4.spl -Dpackaging=jar -Dfile=/path/to/file
 mvn install:install-file -DgroupId=hsqldb -DartifactId=hsqldb
 -Dversion=1.8.0.6 -Dpackaging=jar -Dfile=/path/to/file
 
 
 Where /path/to/file points to the jar files you've downloaded and 
 unzipped. :)
 You need this because maven looks for the jars(or artifacts in maven 
 world) in your local repository(/home/karon/.m2/repository). Issuing the 
 commands will insure that those jars are placed in your local repository 
 and in the right directories(groupId/artifactId/version).
 
 Hope this helps!
 
 Teody
 
 
 
 pinky88 wrote:
 Hi everyone,

 I'm a beginner to maven and hibernate, and i'm trying to build up a small
 project as a tutorial using maven.
 I'm using hibernate and hsqldb also.
 Using examples I've found on the net, I've added dependencies for both
 hibernate and hsqldb, so my pom.xml looks like this:

 project xmlns=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;
   modelVersion4.0.0/modelVersion
   groupIdde.groegl.road2hibernate/groupId
   artifactIdHibernateTutorial/artifactId
   packagingjar/packaging
   version1.0-SNAPSHOT/version
   nameHibernateTutorial/name
   urlhttp://maven.apache.org/url
   dependencies
 dependency
   groupIdjunit/groupId
   artifactIdjunit/artifactId
   version3.8.1/version
   scopetest/scope
 /dependency
 dependency
   groupIdhsqldb/groupId
   artifactIdhsqldb/artifactId
   version1.8.0.6/version
 /dependency
 dependency
   groupIdhibernate/groupId
   artifactIdhibernate/artifactId
   version3.2.4.spl/version
   scopecompile/scope
 /dependency 
   /dependencies
 /project

 The versions are correct and i have both hibernate and hsqldb downloaded
 and
 unzipped..

  When i run mvn eclipse:eclipse i get the following :

 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'eclipse'.
 [INFO]
 
 [INFO] Building HibernateTutorial
 [INFO]task-segment: [eclipse:eclipse]
 [INFO]
 
 [INFO] Preparing eclipse:eclipse
 [INFO] No goals needed for project - skipping
 [INFO] [eclipse:eclipse]
 Downloading:
 http://repo1.maven.org/maven2/hibernate/hibernate/3.2.4.spl/hibernate-3.2.4.spl.pom
 Downloading:
 http://repo1.maven.org/maven2/hsqldb/hsqldb/1.8.0.6/hsqldb-1.8.0.6.pom
 Downloading:
 http://repo1.maven.org/maven2/hibernate/hibernate/3.2.4.spl/hibernate-3.2.4.spl.jar
 [WARNING] An error occurred during dependency resolution.
 Failed to retrieve hibernate:hibernate-3.2.4.spl
 Caused by: Unable to download the artifact from any repository

 Try downloading the file manually from the project website.

 Then, install it using the command: 
 mvn install:install-file -DgroupId=hibernate -DartifactId=hibernate \
 -Dversion=3.2.4.spl -Dpackaging=jar -Dfile=/path/to/file
 Alternatively, if you host your own repository you can deploy the file
 there: mvn deploy:deploy-file -DgroupId=hibernate
 -DartifactId=hibernate
 \
 -Dversion=3.2.4.spl -Dpackaging=jar -Dfile=/path/to/file \
  -Durl=[url] -DrepositoryId=[id]

 Path to dependency: 
 1) de.groegl.road2hibernate:HibernateTutorial:jar:1.0-SNAPSHOT
 2) hibernate:hibernate:jar:3.2.4.spl


   hibernate:hibernate:jar:3.2.4.spl

 from the specified remote repositories:
   central (http://repo1.maven.org/maven2)

 [INFO] Unable to read jar manifest from
 /home/karen/.m2/repository/hibernate/hibernate/3.2.4.spl/hibernate-3.2.4.spl.jar
 Downloading:
 http://repo1.maven.org/maven2/hsqldb/hsqldb/1.8.0.6/hsqldb-1.8.0.6.jar
 [WARNING] An error occurred during dependency resolution.
 Failed to retrieve hsqldb:hsqldb-1.8.0.6
 Caused by: Unable to download the artifact from any repository

 Try downloading the file manually from the project website.

 Then, install it using the command: 
 mvn install:install-file -DgroupId=hsqldb -DartifactId=hsqldb \
 -Dversion=1.8.0.6 -Dpackaging=jar -Dfile=/path/to/file
 Alternatively, if you host your own repository you can deploy the file
 there: mvn deploy:deploy-file -DgroupId=hsqldb -DartifactId=hsqldb \
 -Dversion=1.8.0.6 -Dpackaging=jar -Dfile=/path/to/file \
  -Durl=[url] -DrepositoryId=[id]

 Path to 

Re: Manage batch projects, assembly plugin

2007-07-20 Thread Rodolphe Beck

Ok it works now...

I slightly modified the descriptor and it now does exactly what I wanted.

Thanks a lot !

2007/7/19, John Casey [EMAIL PROTECTED]:


Looks like it got snagged by the spam filters...trying again with a tgz...

-john

'


On Jul 19, 2007, at 3:48 PM, John Casey wrote:

Hmm, I've put together a test project hierarchy to try and replicate the
descriptor-not-found problem, and can't...no matter whether I put the
configuration in the plugin element or the execution element, and no
matter whether I call the build from the parent pom or the child (where the
assembly is bound)...I'm attaching the test I put together, so you can check
it out and maybe tell me what's different. BTW, I checked this with JDK
1.4 and Maven 2.0.7.
Thanks,

-john



On Jul 19, 2007, at 3:25 AM, Rodolphe Beck wrote:

Here is the situation:

If I put the assembly descriptor into
Sample_batch/src/assembly/batch.xml
And the plugin definition in
Sample_batch/pom.xml like:
http://paste2.org/p/4936

Wether I put : 'src/assembly/batch.xml' or '/src/assembly/batch.xml' or
'../Sample_batch/src/assembly/batch.xml', the error is still:
http://paste2.org/p/4938

If I let the descriptor into
Sample_batch/src/assembly/batch.xml
And if I put the definition into
Sample_pom/pom.xml using this path:
'../Sample_batch/src/assembly/batch.xml'
it finds the descriptor but the error is then: Failed to create assembly:
Error creating assembly archive: You must set at least one file.
Probabely because the assembly zip file would be empty.

2007/7/19, John Casey [EMAIL PROTECTED]:


You put the plugin configuration in your batch POM, and the
descriptor is in src/assembly/batch.xml within the batch
project...and it cannot find the descriptor?

Can you paste the relevant portion of that batch POM, along with the
error stacktrace? You can get the stacktrace using the -e flag on the
maven build (to output errors).

I use this all the time, without problem...so there must be some
miscommunication.

-john


On Jul 18, 2007, at 11:29 AM, Rodolphe Beck wrote:

 It still doesn't work when I include the plugin/plugin in my
 batch's POM
 (it can't find the descriptor)

 If I include it in my super POM, the error message is :

 Failed to create assembly: Error creating assembly archive: You
 must set at
 least one file.

 2007/7/18, John Casey [EMAIL PROTECTED]:

 I think you might be better off using a dependencySet in your
 assembly descriptor, and specifying the plugin configuration from the
 sample_batch module, not in the sample_pom level.

 The assembly descriptor would probably look something like this:

 assembly
idbatch/id
formats
  formatzip/format
/formats

includeBaseDirectoryfalse/includeBaseDirectory

dependencySets
  dependencySet
outputDirectorylib/outputDirectory
  /dependencySet
/dependencySets

fileSets
  fileSet
directorysrc/main/resources/directory
outputDirectory//outputDirectory
  /fileSet
/fileSets
 /assembly

 Now, if you put this in the sample_batch POM using something like the
 following, you should be able to build the zip archive along with any
 normal build:

 project
[...]

build
  plugins
[...]

plugin
  artifactIdmaven-assembly-plugin/artifactId
  !-- It's good practice to be very explicit about the plugin
 version you want. --
  version2.2-beta-1/version

  executions
execution
  idbatch-assembly/id
  phasepackage/phase
  goals
goalsingle/goal
  /goals
  configuration
descriptors
  descriptorsrc/assembly/batch.xml/descriptor
/descriptors
  /configuration
/execution
  /executions
/plugin
  /plugins
/build
 /project

 Hope that helps,

 --john

 On Jul 18, 2007, at 4:48 AM, Rodolphe Beck wrote:

  Hello,
 
  I'm trying to manage a bunch of modules with maven. I currently
  have ear
  projects, simple java projects, web projects and batch projects.
  For the
  first ones, I have no problem, but for the batch ones i'm having
 some
  issues.
 
  Here is what I want :
 
  I have one batch project that will be used to launch operations on
  databases, basically, the .sh will be placed on crontab ant
  periodically
  launch a jar file that contains the code to run.
 
  Here is how I created my projects:
  Sample_pom : contains the superpom (in order to edit it easily with
  eclipse)
  Sample_batch : contains the batch in src/main/resources
  Sample_java : contains one java class
 
  Sample_java is in Sample_batch's dependencies.
 
  My packaging is simple : I want a zip file containing the .sh file
  at the
  root and the jar(s) in a 'lib' folder.
 
  I managed to create such a file, but it is not perfect, here are my
  two main
  issues:
 
  First I couldn't put the plugin/plugin to invoke assembly
  plugin in the
 

Re: [groovy-user] [ANN] groovy-maven-plugin 1.0-beta-1

2007-07-20 Thread Jason Dillon
FYI, I've started to add a list of Maven plugins which have been  
implemented in Groovy here:


http://mojo.codehaus.org/groovy/groovy-plugins.html

I am interested to know if there are any more plugins that I can add  
up here.  I think its helpful to list them so that folks can get an  
idea how others are using it, maybe even see some reference code for  
how simply it is.  If you have a plugin thats using this integration  
or know of one, can you please ping back the list  
( [EMAIL PROTECTED] ) with a URL?


I've listed the major ones I've converted as well as the 2 new  
example plugins that I created to show how simple it is.  The  
examples are stripped down version of the standard maven-clean-plugin  
and maven-install-plugin.  I didn't add all of the goals, but they  
are just examples anyways ;-)


I may soon add a brief comparison of the source-code size between a  
groovy plugin and its java version just for kicks too ;-)


Cheers,

--jason


On Jul 20, 2007, at 2:02 AM, Guillaume Laforge wrote:


Congratulations Jason!

Minor remark: There are perhaps some modifications to be done on the
site wrt version numbers in the poms.

On 7/20/07, Jason Dillon [EMAIL PROTECTED] wrote:

Hello, me again :-)

I am once again pleased to announce the release of the Groovy  
Maven Plugin

version 1.0-beta-1.

 * * *

This release includes a few significants bits...

 * Uses Groovy 1.1-beta-2 (and Ant 1.7)
 * New goal to invoke GroovyDoc and site report support

Some other minor bits, like improved support for mojo  
implementations and a

few bugs fixed too.

Site is still here:

 http://mojo.codehaus.org/groovy/

See the change log for the full list of stuff that was changed:


http://jira.codehaus.org/secure/IssueNavigator.jspa? 
reset=truepid=11532fixfor=13497


Please use, enjoy and report any issues or spontaneous happiness  
you run

into while using it.

Cheers,

--jason



--
Guillaume Laforge
Groovy Project Manager
http://glaforge.free.fr/blog/groovy

-
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email




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



maven-surefire-plugin 2.0 and 2.3 - init phase problem

2007-07-20 Thread vetalok

Hello experts!
My tests passed ok with maven-surefire-plugin 2.0
***
---
 T E S T S
---
MyInitializationTest
***
With maven-surefire-plugin 2.3 I have another behavior:
***
MyInitializationTest
---
 T E S T S
---
***
That is why I have many problems.
Why MyInitializationTest executes before  T E S T S with 2.3 plugin
version?
How can I configure this plugin to have the behaviour I showed above
(MyInitializationTest must be executed after  T E S T S)?
Thanks.
-- 
View this message in context: 
http://www.nabble.com/maven-surefire-plugin-2.0-and-2.3---init-phase-problem-tf4116244s177.html#a11705635
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: maven-surefire-plugin 2.0 and 2.3 - init phase problem

2007-07-20 Thread vetalok

Hello experts!
With 2.1 version it works, with 2.2 it does not
My tests passed ok with maven-surefire-plugin 2.1
***
---
 T E S T S
---
MyInitializationTest
***
With maven-surefire-plugin 2.2 I have another behavior:
***
MyInitializationTest
---
 T E S T S
---
***
That is why I have many problems.
Why MyInitializationTest executes before  T E S T S with 2.2 plugin
version?
How can I configure this plugin to have the behaviour I showed above
(MyInitializationTest must be executed after  T E S T S)?
Thanks.


-- 
View this message in context: 
http://www.nabble.com/maven-surefire-plugin-2.0-and-2.3---init-phase-problem-tf4116244s177.html#a11705913
Sent from the Maven - Users mailing list archive at Nabble.com.


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



List of all dependencies as text on console?

2007-07-20 Thread Gisbert Amm

Hi list,

I found that I can generate a report listing all the project's 
dependencies with mvn project-info-reports:dependencies 
(http://maven.apache.org/plugins/maven-project-info-reports-plugin/plugin-info.html)


Is there a possibility to have this dependency list wirtten to the 
console instead of generating a HTML file?


-Gisbert

--
Gisbert Amm
Softwareentwickler Infrastruktur
Telefon: (0721) 91374 - 4224
Telefax: (0721) 91374 - 2740
E-Mail: [EMAIL PROTECTED]
Internet: www.1und1.de

11 Internet AG
Elgendorfer Strasse 57
56410 Montabaur

Amtsgericht Montabaur HRB 6484

Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger 
(Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim 
Weiss, Robert Hoffmann,

Aufsichtsratsvorsitzender: Michael Scheeren

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



Re: List of all dependencies as text on console?

2007-07-20 Thread Michael Meyer

Hi
you can try: mvn 
org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-5-SNAPSHOT:tree


Cheers, michael

http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html

Gisbert Amm wrote:

Hi list,

I found that I can generate a report listing all the project's 
dependencies with mvn project-info-reports:dependencies 
(http://maven.apache.org/plugins/maven-project-info-reports-plugin/plugin-info.html) 



Is there a possibility to have this dependency list wirtten to the 
console instead of generating a HTML file?


-Gisbert



--
Michael Meyer | [EMAIL PROTECTED]
phone +41-44-247 79 12 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch


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



Re: List of all dependencies as text on console?

2007-07-20 Thread Gisbert Amm

Thanks. However, it doesn't work. Am I doing something wrong?

[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-dependency-plugin
Version: 2.0-alpha-5-SNAPSHOT

Reason: Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-dependency-plugin:pom:2.0-alpha-5-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

-Gisbert

Michael Meyer wrote:

Hi
you can try: mvn 
org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-5-SNAPSHOT:tree


Cheers, michael

http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html

Gisbert Amm wrote:


Hi list,

I found that I can generate a report listing all the project's 
dependencies with mvn project-info-reports:dependencies 
(http://maven.apache.org/plugins/maven-project-info-reports-plugin/plugin-info.html) 



Is there a possibility to have this dependency list wirtten to the 
console instead of generating a HTML file?


-Gisbert





--
Gisbert Amm
Softwareentwickler Infrastruktur
Telefon: (0721) 91374 - 4224
Telefax: (0721) 91374 - 2740
E-Mail: [EMAIL PROTECTED]
Internet: www.1und1.de

11 Internet AG
Elgendorfer Strasse 57
56410 Montabaur

Amtsgericht Montabaur HRB 6484

Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger 
(Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim 
Weiss, Robert Hoffmann,

Aufsichtsratsvorsitzender: Michael Scheeren

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



Re: migrating to Maven2, but some issues.

2007-07-20 Thread martin_CY

Hi everyone, this is for those that might be struggling with a similar
situation.

I did come up with a solution, though don't know if its the best, but for
now it works for us.

and to me the the solution is called maven-ant-tasks!

we decided that for now we will only use maven for handling external jars
(for which maven is very good) and continue to build with ant our multiple
jars and then over time we will try to slowly break out modules that only
have one way dependencies.

In the end this first move was not all that bad for us.

to give you some examples what i did with our build.xml

added:

target name=initTaskDefs
path id=maven.classpath
pathelement location=lib/maven-ant-tasks-2.0.7.jar /
/path

typedef resource=org/apache/maven/artifact/ant/antlib.xml
uri=urn:maven-artifact-ant
classpath refid=maven.classpath /
/typedef
artifact:pom file=pom.xml id=maven.project /
artifact:remoteRepository id=deploy.repository
url=scp://maven.intern.albourne.com/secure/maven /
/target

which basically sources in the maven-ant.task-2.0.7.jar and make all the
maven stuff available from ant! and most important the artifact:pom
file=pom.xml id=maven.project / which source in your main POM that has
all your dependencies as well as your repository links etc.

then I copy out all the external jars from my dependencies to a nice
location to be used with the deployment:
target name=copyLibs depends=initTaskDefs
!--copy the external jars to target/lib from maven repository 
into a flat
un-versioned structure--
artifact:dependencies filesetId=my.compile.dependency.fileset
versionsId=lates.version.to.use useScope=compile
pom refid=maven.project /
/artifact:dependencies
copy todir=target/lib
fileset refid=my.compile.dependency.fileset /
mapper classpathref=maven.classpath
classname=org.apache.maven.artifact.ant.VersionMapper
from=${lates.version.to.use} to=flatten /
/copy
!-- Definition of all the libraries --
fileset dir=target/lib id=libraries
include name=*.jar /
/fileset
/target


then of course use these libraries when you compile, and then generate your
multiple jars as before with ant.

I took it one step further as well, as i wanted all of our company jars to
be available on our internal maven repository 

so first i created another ant target that generates pom.xml files on the
fly (calling a shell script to generate it) for the separate jars that ant
builds (based on version properties in ant script)

then i deploy the  with a new target:
target name=deploy depends=initTaskDefs,generatePoms,export
!--deploy jars to the maven repository using scp and the 
repositary
setting 
that are defined the scripts/generatePom.sh and 
username/password as
defined in 
the settings.xml --
artifact:install-provider artifactId=wagon-ssh 
version=1.0-alpha-7 /
artifact:deploy file=${software}/jar1.jar
pom file=target/jar1.pom /
/artifact:deploy
artifact:deploy file=${software}/jar2.jar
pom file=target/jar2.pom /
/artifact:deploy
/target

and that will deploy my jars to the repository! 

and thats basically how we are handling it now. We have started to break out
code into their own modules but we dont expect to be fully broken out for
another 12-18 months and until then I will keep modifying the ant script to
continue to build this way, and eventually we will only use Maven to deploy
and ant will be a thing of the past.

but it is possible to use Maven for unit test purposes as well! which we are
doing currently to run our tests nightly, since tests run before building
jars I've setup in the main POM to basically include EVERYTHING and have a
single jar output (but i never build the jar) and that way i can run all
tests on a nightly basis, and if that works correctly i call the ant script
to build and deploy the jars both to be used for webstart and to the
internal repository to be used in other projects as dependencies.



good luck!
-- 
View this message in context: 
http://www.nabble.com/migrating-to-Maven2%2C-but-some-issues.-tf3994413s177.html#a11706792
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: List of all dependencies as text on console?

2007-07-20 Thread Michael Meyer

Hi,
try adding the following repository to your pom: 
http://people.apache.org/maven-snapshot-repository/


I just checked. It's not on repo1.maven.org

Cheers, michael

Gisbert Amm wrote:

Thanks. However, it doesn't work. Am I doing something wrong?

[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-dependency-plugin
Version: 2.0-alpha-5-SNAPSHOT

Reason: Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-dependency-plugin:pom:2.0-alpha-5-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

-Gisbert

Michael Meyer wrote:

Hi
you can try: mvn 
org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-5-SNAPSHOT:tree 



Cheers, michael

http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html

Gisbert Amm wrote:


Hi list,

I found that I can generate a report listing all the project's 
dependencies with mvn project-info-reports:dependencies 
(http://maven.apache.org/plugins/maven-project-info-reports-plugin/plugin-info.html) 



Is there a possibility to have this dependency list wirtten to the 
console instead of generating a HTML file?


-Gisbert







--
Michael Meyer | [EMAIL PROTECTED]
phone +41-44-247 79 12 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch


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



RE: may not be this project's POM [ from cocoon-users ]

2007-07-20 Thread Robin Rigby
Thanks for your help.  No, mvn -U ... has the same problem.  So does mvn
clean.  Only mvn --version is OK.

I don't think this is a transitory problem.  It has been 36 hours now. 

- Summary ---

Maven seems to fail when looking for

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

The file is there -  I can read it with Firefox or Internet Explorer but
wget fails with a 403 error.

However, wget has no problem reading other files such as

http://maven.apache.org/guides/getting-started/index.html

- End summary -

Baffled.  Something on the server?

I am going back to a fresh installation of Maven.

Thanks for your help.

Robin
 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: 19 July 2007 21:14
To: Maven Users List
Subject: Re: may not be this project's POM [ from cocoon-users ]

No, Maven does not expect calls over the internet from a remote server
into this machine. It works basically like wget.

I really don't know why you're having troubles. I'd assume a transient
network failure. Try mvn -U ... and see if things are working now.

Wayne

On 7/19/07, Robin Rigby [EMAIL PROTECTED] wrote:
 No proxy.  I am working at home.  I have a firewall built into the
wireless
 modem ...

 I looked through 'Configuring Maven' and 'Configuring a HTTP Proxy'.

 Maven has successfully written a number of files to C:\Documents and
 Settings\username\.m2\repository\.

 Does Maven expect calls over the internet from a remote server into this
 machine?  Or on special ports?  It looks like straight HTTP on port 80,
 which is not a problem with wget and other servers.

 Robin


 -Original Message-
 From: Wayne Fay [mailto:[EMAIL PROTECTED]
 Sent: 19 July 2007 18:18
 To: Maven Users List
 Subject: Re: may not be this project's POM [ from cocoon-users ]

 I was not suggesting that you change the pom to include packaging in
 the parent, simply cut and paste some text from the pom file you were
 getting a 403 on.

 It sounds like you are behind a corporate web proxy or something, as
 IE and Mozilla work but wget and mvn fail. Can you confirm this? If
 so, you will need to configure your proxy before proceeding
 successfully with Maven.

 http://maven.apache.org/guides/mini/guide-proxies.html

 Wayne




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



Beginning Maven

2007-07-20 Thread Robin Rigby
Starting again.  (Carrying on from thread may not be this project's POM [
from cocoon-users ])

I have destroyed the maven-2.07 and .m2 directories.  Downloaded a fresh
maven-2.0.7-bin.zip.  Start again with Maven in 5 minutes.

I expect failures while plugins are downloaded.  The first four of these are
different, then they repeat.

There are three files in the .m2 directory (see below).  Two are effectively
empty.

No my-app directory has been created.

There is an enigmatic statement Don't worry, there are ways to fix that
but no suggestion of what they are.  Nor link.

am worried ... 

Thanks
 
Robin

===
here is what happens
===

C:\Tempmvn --version
Maven version: 2.0.7
Java version: 1.6.0
OS name: windows xp version: 5.1 arch: x86

C:\Tempmvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be
retrieved from repository: central due to an error: Error tr
ansferring file
[INFO] Repository 'central' will be blacklisted
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
exist or no valid version could be found
[INFO]

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

[INFO] Total time: 3 seconds
[INFO] Finished at: Fri Jul 20 12:40:42 BST 2007
[INFO] Final Memory: 1M/4M
[INFO]


C:\Tempmvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.codehaus.mojo: checking for updates from central
[WARNING] repository metadata for: 'org.codehaus.mojo' could not be
retrieved from repository: central due to an error: Error transferr
ing file
[INFO] Repository 'central' will be blacklisted
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
exist or no valid version could be found
[INFO]

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

[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Jul 20 12:42:12 BST 2007
[INFO] Final Memory: 1M/4M
[INFO]


C:\Tempmvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking
for updates from central
[WARNING] repository metadata for: 'artifact
org.apache.maven.plugins:maven-archetype-plugin' could not be retrieved from
repository: c
entral due to an error: Error transferring file
[INFO] Repository 'central' will be blacklisted
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
exist or no valid version could be found
[INFO]

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

[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Jul 20 12:49:41 BST 2007
[INFO] Final Memory: 1M/4M
[INFO]


C:\Tempmvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
exist or no valid version could be found
[INFO]

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


Rép. : RE: may not be this proje ct's POM [ from cocoon-users ]

2007-07-20 Thread Eric LECOCQ

It looks like you have a SSO for your browsers but not for the wget.

You have to provide your proxy and the authentication.



 Robin Rigby [EMAIL PROTECTED] 07/20/07 2:30  
Thanks for your help.  No, mvn -U ... has the same problem.  So does mvn
clean.  Only mvn --version is OK.

I don't think this is a transitory problem.  It has been 36 hours now. 

- Summary ---

Maven seems to fail when looking for

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

The file is there -  I can read it with Firefox or Internet Explorer but
wget fails with a 403 error.

However, wget has no problem reading other files such as

http://maven.apache.org/guides/getting-started/index.html 

- End summary -

Baffled.  Something on the server?

I am going back to a fresh installation of Maven.

Thanks for your help.

Robin
 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: 19 July 2007 21:14
To: Maven Users List
Subject: Re: may not be this project's POM [ from cocoon-users ]

No, Maven does not expect calls over the internet from a remote server
into this machine. It works basically like wget.

I really don't know why you're having troubles. I'd assume a transient
network failure. Try mvn -U ... and see if things are working now.

Wayne

On 7/19/07, Robin Rigby [EMAIL PROTECTED] wrote:
 No proxy.  I am working at home.  I have a firewall built into the
wireless
 modem ...

 I looked through 'Configuring Maven' and 'Configuring a HTTP Proxy'.

 Maven has successfully written a number of files to C:\Documents and
 Settings\username\.m2\repository\.

 Does Maven expect calls over the internet from a remote server into this
 machine?  Or on special ports?  It looks like straight HTTP on port 80,
 which is not a problem with wget and other servers.

 Robin


 -Original Message-
 From: Wayne Fay [mailto:[EMAIL PROTECTED] 
 Sent: 19 July 2007 18:18
 To: Maven Users List
 Subject: Re: may not be this project's POM [ from cocoon-users ]

 I was not suggesting that you change the pom to include packaging in
 the parent, simply cut and paste some text from the pom file you were
 getting a 403 on.

 It sounds like you are behind a corporate web proxy or something, as
 IE and Mozilla work but wget and mvn fail. Can you confirm this? If
 so, you will need to configure your proxy before proceeding
 successfully with Maven.

 http://maven.apache.org/guides/mini/guide-proxies.html 

 Wayne




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



***
Ce message et toutes les pieces jointes sont confidentiels.

Toute utilisation ou diffusion non autorisee est interdite.

Sanef decline toute responsabilite si ce message est altere, deforme ou 
falsifie.
***-***


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



Re: List of all dependencies as text on console?

2007-07-20 Thread Mark Hobson

On 20/07/07, Michael Meyer [EMAIL PROTECTED] wrote:

Hi,
try adding the following repository to your pom:
http://people.apache.org/maven-snapshot-repository/

I just checked. It's not on repo1.maven.org


Yep, 2.0-alpha-5 is not released yet, but should be shortly.  In the
meantime, you can use dependency:resolve to output the list of
dependencies for a project.  See:

http://maven.apache.org/plugins/maven-dependency-plugin/resolve-mojo.html

Mark

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



Re: List of all dependencies as text on console?

2007-07-20 Thread Gisbert Amm

Great, thank you!!!

-Gisbert

Mark Hobson wrote:

On 20/07/07, Michael Meyer [EMAIL PROTECTED] wrote:


Hi,
try adding the following repository to your pom:
http://people.apache.org/maven-snapshot-repository/

I just checked. It's not on repo1.maven.org



Yep, 2.0-alpha-5 is not released yet, but should be shortly.  In the
meantime, you can use dependency:resolve to output the list of
dependencies for a project.  See:

http://maven.apache.org/plugins/maven-dependency-plugin/resolve-mojo.html

Mark

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



--
Gisbert Amm
Softwareentwickler Infrastruktur
Telefon: (0721) 91374 - 4224
Telefax: (0721) 91374 - 2740
E-Mail: [EMAIL PROTECTED]
Internet: www.1und1.de

11 Internet AG
Elgendorfer Strasse 57
56410 Montabaur

Amtsgericht Montabaur HRB 6484

Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger 
(Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim 
Weiss, Robert Hoffmann,

Aufsichtsratsvorsitzender: Michael Scheeren

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



Re: maven-surefire-plugin 2.0 and 2.3 - init phase problem

2007-07-20 Thread vetalok

It seems since version 2.2 maven-surefire-plugin do not care about order of
tests:
(3)include**/init/*Data*/include
(2)include**/api/*1Test.java/include
(1)include**/api/*2Test.java/include
How can I tell to maven to keep the order I writed?
(executions mechanism is unsuitable)
Someone can help me?


vetalok wrote:
 
 Hello experts!
 My tests passed ok with maven-surefire-plugin 2.0
 ***
 ---
  T E S T S
 ---
 MyInitializationTest
 ***
 With maven-surefire-plugin 2.3 I have another behavior:
 ***
 MyInitializationTest
 ---
  T E S T S
 ---
 ***
 That is why I have many problems.
 Why MyInitializationTest executes before  T E S T S with 2.3 plugin
 version?
 How can I configure this plugin to have the behaviour I showed above
 (MyInitializationTest must be executed after  T E S T S)?
 Thanks.
 

-- 
View this message in context: 
http://www.nabble.com/maven-surefire-plugin-2.0-and-2.3---init-phase-problem-tf4116244s177.html#a11707502
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: Beginning Maven

2007-07-20 Thread Dennis Lundberg

The problem is that Maven is unable to download the artifact-plugin for you.

[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does 
not exist or no valid version could be found


The most common reasons for this message are (in no particular order):

- You don't have a connection to the internet
+ Solution: connect to the internet

- The meta-data for the plugin in question has been corrupted in your 
local repository
+ Solution: Remove the entire directory for that plugin in your local 
repository


- You are behind a proxy or firewall that prevents Maven from accessing 
the central repository

+ Solution: configure Maven to handle this, see
  http://maven.apache.org/guides/mini/guide-proxies.html

If none of the about helps you, please run Maven like this to give us 
more to go on. It will enable debug mode. Please post the results here.


mvn -X archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app

Robin Rigby wrote:

Starting again.  (Carrying on from thread may not be this project's POM [
from cocoon-users ])

I have destroyed the maven-2.07 and .m2 directories.  Downloaded a fresh
maven-2.0.7-bin.zip.  Start again with Maven in 5 minutes.

I expect failures while plugins are downloaded.  The first four of these are
different, then they repeat.

There are three files in the .m2 directory (see below).  Two are effectively
empty.

No my-app directory has been created.

There is an enigmatic statement Don't worry, there are ways to fix that
but no suggestion of what they are.  Nor link.

am worried ... 


Thanks
 
Robin


===
here is what happens
===

C:\Tempmvn --version
Maven version: 2.0.7
Java version: 1.6.0
OS name: windows xp version: 5.1 arch: x86

C:\Tempmvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be
retrieved from repository: central due to an error: Error tr
ansferring file
[INFO] Repository 'central' will be blacklisted
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
exist or no valid version could be found
[INFO]

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

[INFO] Total time: 3 seconds
[INFO] Finished at: Fri Jul 20 12:40:42 BST 2007
[INFO] Final Memory: 1M/4M
[INFO]


C:\Tempmvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.codehaus.mojo: checking for updates from central
[WARNING] repository metadata for: 'org.codehaus.mojo' could not be
retrieved from repository: central due to an error: Error transferr
ing file
[INFO] Repository 'central' will be blacklisted
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
exist or no valid version could be found
[INFO]

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

[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Jul 20 12:42:12 BST 2007
[INFO] Final Memory: 1M/4M
[INFO]


C:\Tempmvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking
for updates from central
[WARNING] repository metadata for: 'artifact
org.apache.maven.plugins:maven-archetype-plugin' could not be retrieved from
repository: c
entral due to an error: Error transferring file
[INFO] Repository 'central' will be blacklisted
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
exist or no valid version could be found
[INFO]

[INFO] For more information, run Maven with the 

RE: maven-surefire-plugin 2.0 and 2.3 - init phase problem

2007-07-20 Thread Jörg Schaible
vetalok wrote on Friday, July 20, 2007 2:49 PM:

 It seems since version 2.2 maven-surefire-plugin do not care about
 order of tests:
 (3)include**/init/*Data*/include
 (2)include**/api/*1Test.java/include
 (1)include**/api/*2Test.java/include
 How can I tell to maven to keep the order I writed?
 (executions mechanism is unsuitable)
 Someone can help me?

You should not write tests that rely on a special execution sequence. No 
environment running unit tests will ever assure this.

- Jörg

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



Re: Maven-weblogic plugin: Unable to understand error

2007-07-20 Thread Dennis Lundberg
There doesn't seem to be be any pom for weblogic available in the 
central repository (or your local repository). You probably need to 
install that yourself, when you install the weblogic.jar. Intructions on 
how to do this can be found here:


http://maven.apache.org/plugins/maven-install-plugin/examples/generic-pom-generation.html


Vaidya, Supriya A (US - Chicago) wrote:

Hi:
 
I am trying to use the weblogic-maven plugin to deploy my application to 
weblogic. Here are the steps that I followed:
 
1. I installed the external jars that my application uses.

2. installed the weblogic jars
 
mvn install:install-file 
-Dfile=C:\bea\weblogic92\server\lib\weblogic.jar -DgroupId=weblogic 
-DartifactId=weblogic -Dversion=9.0 -Dpackaging=jar
 
mvn install:install-file 
-Dfile=C:\bea\weblogic92\server\lib\webservices.jar 
-DgroupId=webservices -DartifactId=webservices -Dversion=9.0 -Dpackaging=jar
 
3. installed the weblogic-maven jar
mvn install:install-file -Dfile=maven-weblogic-plugin-1.0.0.jar 
-DgroupId=web-maven -DartifactId=web-maven -Dversion=1.0 -Dpackaging=jar
 
4. ran the clean and compile commands: mvn clean, mvn compile - these 
ran without any errors
 
5. then ran the mvn weblogic:deploy command, but get teh following error -
 
[INFO] Scanning for projects...

[INFO] Searching repository for plugin with prefix: 'weblogic'.
[INFO] 
-

---
[INFO] Building creditdecision
[INFO]task-segment: [weblogic:deploy]
[INFO] 
-

---
Downloading: 
http://repository.codehaus.org/weblogic/weblogic/9.0/weblogic-9.0.p

om
Downloading: 
http://repo1.maven.org/maven2/weblogic/weblogic/9.0/weblogic-9.0.po

m
Downloading: 
http://repo1.maven.org/maven2/weblogic/weblogic/9.0/weblogic-9.0.po

m
[INFO] 


[ERROR] BUILD ERROR
[INFO] 


[INFO] Failed to resolve artifact.
 
No versions are present in the repository for the artifact with a range 
[9.0,)

  weblogic:webservices:jar:null
 
from the specified remote repositories:
  codehaus.org (http://repository.codehaus.org 
http://repository.codehaus.org/),

  central (http://repo1.maven.org/maven2),
  snapshots (http://snapshots.repository.codehaus.org 
http://snapshots.repository.codehaus.org/)
 

[INFO] 


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


[INFO] Total time: 1 second
[INFO] Finished at: Thu Jul 19 13:59:46 CDT 2007
[INFO] Final Memory: 2M/4M
[INFO] 

 
I tried with 9.1, 9.2... what am I doing wrong?
 
I even tried adding the following in my pom.xml -

repositories
repository
  idCodehaus Snapshots/id
  urlhttp://snapshots.repository.codehaus.org//url
  snapshots
enabledtrue/enabled
  /snapshots
  releases
enabledfalse/enabled
  /releases
/repository
  /repositories
  pluginRepositories
pluginRepository
  idCodehaus Snapshots/id
  urlhttp://snapshots.repository.codehaus.org//url
  snapshots
enabledtrue/enabled
  /snapshots
  releases
enabledfalse/enabled
  /releases
/pluginRepository
  /pluginRepositories
 
 
the error persists however...
 
Attached is the POM that I am using, modified to remove certain 
sensitive information... could someone please help?!



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]



--
Dennis Lundberg

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



Re: Using two 'central' repository mirrors?

2007-07-20 Thread Tamás Cservenák

Hello,

Proximity is able to fulfill this request right out of the box. But a
new faeture, the group mapping will allow more fine grained
control which repos in group may (inclusion) or may not contain
(exclusion) some paths (more precisely, regexp matchers on a request
path).

Just set up a proxy, include your private repo in the public group
and set its rank higher (lower integer) than central rank.

~t~

On 7/19/07, Kai Hackemesser [EMAIL PROTECTED] wrote:

Hi, Wayne,

Yes, there is: I'm not in position to suggest that. They seem to want
having it isolated. They only mirror the open source packages they
require for their product, as example FOP and some apache commons. They
don't want the developers to add uncontrolled software. I'm just an
external, and I'm just trying to get around that because I have a
problem after upgrading to Maven 2.0.7 (see earlier post today '(2.0.7)
LinkageError: Class org/xml/sax/XMLReader violates loader constraints')

Ciao!
Kai

Wayne Fay schrieb:
 This is an unnecessarily complex setup. I would suggest consolidating
 things to a single mirror, ideally by simply setting up the existing
 local central repo mirror to proxy to the real Central.

 Is there a reason you can't set this up?

 Wayne

 On 7/19/07, Kai Hackemesser [EMAIL PROTECTED] wrote:
 Hi there,

 The company I'm currently working at has its own local 'central'
 repository mirror, which doesn't proxy to any outer repository. They
 have deployed their local code there. How should I set up my settings to
 access a real outer mirror for update first and if this fails lookup
 (because it's a private jar) the private 'mirror'?

 Ciao!
 Kai

 -
 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: Rép. : RE: may not be this project's POM [ from co coon-users ]

2007-07-20 Thread Robin Rigby
What SSO could there be?  I don't have to sign on for anything, at least,
not for any component of this problem.  Only Windows Login.

I am at home. I have one machine, a simple wireless box and a phone socket.
All normal domestic security.  There is no proxy here.  I would know,
wouldn't I? 

 
Robin
 

-Original Message-
From: Eric LECOCQ [mailto:[EMAIL PROTECTED] 
Sent: 20 July 2007 13:35
To: Maven Users List
Subject: Rép. : RE: may not be this project's POM [ from cocoon-users ]


It looks like you have a SSO for your browsers but not for the wget.

You have to provide your proxy and the authentication.



 Robin Rigby [EMAIL PROTECTED] 07/20/07 2:30  
Thanks for your help.  No, mvn -U ... has the same problem.  So does mvn
clean.  Only mvn --version is OK.

I don't think this is a transitory problem.  It has been 36 hours now. 

- Summary ---

Maven seems to fail when looking for

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

The file is there -  I can read it with Firefox or Internet Explorer but
wget fails with a 403 error.

However, wget has no problem reading other files such as

http://maven.apache.org/guides/getting-started/index.html 

- End summary -

Baffled.  Something on the server?

I am going back to a fresh installation of Maven.

Thanks for your help.

Robin
 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: 19 July 2007 21:14
To: Maven Users List
Subject: Re: may not be this project's POM [ from cocoon-users ]

No, Maven does not expect calls over the internet from a remote server
into this machine. It works basically like wget.

I really don't know why you're having troubles. I'd assume a transient
network failure. Try mvn -U ... and see if things are working now.

Wayne

On 7/19/07, Robin Rigby [EMAIL PROTECTED] wrote:
 No proxy.  I am working at home.  I have a firewall built into the
wireless
 modem ...

 I looked through 'Configuring Maven' and 'Configuring a HTTP Proxy'.

 Maven has successfully written a number of files to C:\Documents and
 Settings\username\.m2\repository\.

 Does Maven expect calls over the internet from a remote server into this
 machine?  Or on special ports?  It looks like straight HTTP on port 80,
 which is not a problem with wget and other servers.

 Robin


 -Original Message-
 From: Wayne Fay [mailto:[EMAIL PROTECTED] 
 Sent: 19 July 2007 18:18
 To: Maven Users List
 Subject: Re: may not be this project's POM [ from cocoon-users ]

 I was not suggesting that you change the pom to include packaging in
 the parent, simply cut and paste some text from the pom file you were
 getting a 403 on.

 It sounds like you are behind a corporate web proxy or something, as
 IE and Mozilla work but wget and mvn fail. Can you confirm this? If
 so, you will need to configure your proxy before proceeding
 successfully with Maven.

 http://maven.apache.org/guides/mini/guide-proxies.html 

 Wayne




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



***
Ce message et toutes les pieces jointes sont confidentiels.

Toute utilisation ou diffusion non autorisee est interdite.

Sanef decline toute responsabilite si ce message est altere, deforme ou
falsifie.
***-***


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



configuring separate filter for testResources

2007-07-20 Thread Lalor, Brian
Good morning, all.  I've been Googling for a while this morning and I'm not 
having any luck finding a solution to this problem...

I'm trying to set up property filtering for resources under src/test/resources. 
 I want the properties defined in src/test/filters/whatever.properties to only 
be applied to my test resources.  Unfortunately, the pom.xml only allows a 
single filters / element which applies to all filtered resources, whether or 
not they're specified in resources / or testResources /.  Looking at the 
plugin.xml for the maven-resources-plugin, it would appear that I can get 
around the pom limitation by defining a List of filters specifically for the 
testResources goal.  Unfortunately, I don't know how to go about doing that.  
After some discussion on the list yesterday, I'm afraid this may be broken, but 
I'm hoping that's not the case. :-)

Can someone shed some light?

Thanks,
Brian

--
Brian Lalor
Fidelity Life Insurance Company (FILI) - Systems  Technology
Merrimack, NH
603-791-8612
[EMAIL PROTECTED]



Large number of dependencies

2007-07-20 Thread robert . egan
I've just begun implementing maven into our build process. I have some 
artifacts with a large number of dependencies.

ibm\websphere\j2ee\6.0.2\j2ee-6.0.2.jar
ibm\websphere\runtime\6.0.2\runtime-6.0.2.jar
ibm\websphere\rsadaptercci\6.0.2\rsadaptercci-6.0.2.jar
ibm\websphere\rsadapterspi\6.0.2\rsadapterspi-6.0.2.jar
ibm\websphere\rsaexternal\6.0.2\rsaexternal-6.0.2.jar
ibm\websphere\sas\6.0.2\sas-6.0.2.jar
ibm\websphere\ras\6.0.2\ras-6.0.2.jar
ibm\websphere\bootstrap\6.0.2\bootstrap-6.0.2.jar
ibm\websphere\emf\6.0.2\emf-6.0.2.jar
ibm\websphere\iwsorb6.0.2\iwsorb-6.0.2.jar
ibm\websphere\utils6.0.2\utils-6.0.2.jar
ibm\websphere\wssec\6.0.2\wssec-6.0.2.jar
ibm\websphere\admin\6.0.2\admin-6.0.2.jar
ibm\websphere\management\6.0.2\management-6.0.2.jar
ibm\websphere\wasjmx\6.0.2\wasjmx-6.0.2.jar
ibm\websphere\wsexception\6.0.2\wsexception-6.0.2.jar
ibm\websphere\jsf-api\6.0.2\jsf-api-6.0.2.jar
ibm\websphere\ws-jsf\6.0.2\ws-jsf-6.0.2.jar
ibm\websphere\webservices\6.0.2\webservices-6.0.2.jar

I'd like to bundle them into a sort of dependency group that would then 
take only one entry in my POMs. Suggestions?





This email message and any attachments may contain confidential, 
proprietary or non-public information.  The information is intended solely 
for the designated recipient(s).  If an addressing or transmission error 
has misdirected this email, please notify the sender immediately and 
destroy this email.  Any review, dissemination, use or reliance upon this 
information by unintended recipients is prohibited.  Any opinions 
expressed in this email are those of the author personally.

RE: Beginning Maven

2007-07-20 Thread Robin Rigby
Thanks Dennis 

1.  Internet connection is good.
2.  I destroyed the entire .m2 directory two hours ago and restarted with a
fresh download of Maven.
3.  I am working from home.  There is no proxy that I know of and only a
simple domestic firewall.

==

C:\Tempmvn -X archetype:create -DgroupId=com.mycompany.app
-DartifactId=my-app
+ Error stacktraces are turned on.
Maven version: 2.0.7
Java version: 1.6.0
OS name: windows xp version: 5.1 arch: x86
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and
Settings\robinr\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'C:\Java\maven-2.0.7\bin\..\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
[DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
[DEBUG] maven-archetype-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the
latest version

  org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST


[DEBUG] Using defaults for missing POM
org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST
[DEBUG] maven-archetype-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the
release version

  org.apache.maven.plugins:maven-archetype-plugin:pom:RELEASE


[DEBUG] Using defaults for missing POM
org.apache.maven.plugins:maven-archetype-plugin:pom:RELEASE
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
exist or no valid version could be found
[INFO]

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.maven.plugins:maven-archetype-plugin' does not exist or
no valid version could be found
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLife
cycleExecutor.java:1286)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(Defaul
tLifecycleExecutor.java:1522)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggrega
tionNeeds(DefaultLifecycleExecutor.java:386)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.java:138)
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:597)
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.version.PluginVersionNotFoundException:
The plugin 'org.apache.maven.plugins:maven-archetype-plugin'
 does not exist or no valid version could be found
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVer
sion(DefaultPluginVersionManager.java:228)
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVer
sion(DefaultPluginVersionManager.java:90)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManag
er.java:166)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLife
cycleExecutor.java:1257)
... 14 more
[INFO]

[INFO] Total time:  1 second
[INFO] Finished at: Fri Jul 20 14:12:54 BST 2007
[INFO] Final Memory: 1M/4M
[INFO]


C:\Temp

==
 
Robin


-Original Message-
From: Dennis Lundberg [mailto:[EMAIL PROTECTED] 
Sent: 20 July 2007 13:51
To: Maven Users List
Subject: Re: Beginning Maven

The problem is that Maven is unable to download the artifact-plugin for you.

[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does 
not exist or no valid version could be found

The most common reasons for this message are (in no particular order):

- You don't have a connection to the internet
+ Solution: connect to the internet

- The meta-data for the plugin 

RE: Large number of dependencies

2007-07-20 Thread Lalor, Brian
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 20, 2007 9:20 AM
 To: users@maven.apache.org
 Subject: Large number of dependencies
 
 I'd like to bundle them into a sort of dependency group 
 that would then 
 take only one entry in my POMs. Suggestions?

Dunno if this would work, but could you just create a .pom file in your 
repository without an associated JAR and declare the dependencies in there?  
Then you'd declare each project's dependency on that single entity.

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



Maven WAR project - how to bundle jars

2007-07-20 Thread John Coleman
Hi,

How do I get a runtime dependency JAR file to be placed into the target
WEB-INF/lib directory please?

It would be nice if the provided and test scope dependencies were
not copied but the rest to be put into WEB-INF/lib automatically.

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



RE: Maven-weblogic plugin: Unable to understand error

2007-07-20 Thread Vaidya, Supriya A (US - Chicago)
Hi:

I ran the following commands, after cleaning up my repository - 

mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\weblogic.jar -DgroupId=weblogic
-DartifactId=weblogic -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\webservices.jar
-DgroupId=webservices -DartifactId=webservices -Dversion=9.0
-Dpackaging=jar -DgeneratePom=true

Then compiled (successfully) and then ran the mvn weblogic:deploy
command - I still get the same error:

[INFO] Failed to resolve artifact.

No versions are present in the repository for the artifact with a range
[9.0,)
  weblogic:webservices:jar:null

from the specified remote repositories:
  codehaus.org (http://repository.codehaus.org),
  central (http://repo1.maven.org/maven2),
  snapshots (http://snapshots.repository.codehaus.org)

 

-Original Message-
From: Dennis Lundberg [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 20, 2007 7:57 AM
To: Maven Users List
Subject: Re: Maven-weblogic plugin: Unable to understand error

There doesn't seem to be be any pom for weblogic available in the 
central repository (or your local repository). You probably need to 
install that yourself, when you install the weblogic.jar. Intructions on

how to do this can be found here:

http://maven.apache.org/plugins/maven-install-plugin/examples/generic-po
m-generation.html


Vaidya, Supriya A (US - Chicago) wrote:
 Hi:
  
 I am trying to use the weblogic-maven plugin to deploy my application
to 
 weblogic. Here are the steps that I followed:
  
 1. I installed the external jars that my application uses.
 2. installed the weblogic jars
  
 mvn install:install-file 
 -Dfile=C:\bea\weblogic92\server\lib\weblogic.jar -DgroupId=weblogic 
 -DartifactId=weblogic -Dversion=9.0 -Dpackaging=jar
  
 mvn install:install-file 
 -Dfile=C:\bea\weblogic92\server\lib\webservices.jar 
 -DgroupId=webservices -DartifactId=webservices -Dversion=9.0
-Dpackaging=jar
  
 3. installed the weblogic-maven jar
 mvn install:install-file -Dfile=maven-weblogic-plugin-1.0.0.jar 
 -DgroupId=web-maven -DartifactId=web-maven -Dversion=1.0
-Dpackaging=jar
  
 4. ran the clean and compile commands: mvn clean, mvn compile - these 
 ran without any errors
  
 5. then ran the mvn weblogic:deploy command, but get teh following
error -
  
 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'weblogic'.
 [INFO] 


-
 ---
 [INFO] Building creditdecision
 [INFO]task-segment: [weblogic:deploy]
 [INFO] 


-
 ---
 Downloading: 
 http://repository.codehaus.org/weblogic/weblogic/9.0/weblogic-9.0.p
 om
 Downloading: 
 http://repo1.maven.org/maven2/weblogic/weblogic/9.0/weblogic-9.0.po
 m
 Downloading: 
 http://repo1.maven.org/maven2/weblogic/weblogic/9.0/weblogic-9.0.po
 m
 [INFO] 


 [ERROR] BUILD ERROR
 [INFO] 


 [INFO] Failed to resolve artifact.
  
 No versions are present in the repository for the artifact with a
range 
 [9.0,)
   weblogic:webservices:jar:null
  
 from the specified remote repositories:
   codehaus.org (http://repository.codehaus.org 
 http://repository.codehaus.org/),
   central (http://repo1.maven.org/maven2),
   snapshots (http://snapshots.repository.codehaus.org 
 http://snapshots.repository.codehaus.org/)
  
 
 [INFO] 


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


 [INFO] Total time: 1 second
 [INFO] Finished at: Thu Jul 19 13:59:46 CDT 2007
 [INFO] Final Memory: 2M/4M
 [INFO] 


  
 I tried with 9.1, 9.2... what am I doing wrong?
  
 I even tried adding the following in my pom.xml -
 repositories
 repository
   idCodehaus Snapshots/id
   urlhttp://snapshots.repository.codehaus.org//url
   snapshots
 enabledtrue/enabled
   /snapshots
   releases
 enabledfalse/enabled
   /releases
 /repository
   /repositories
   pluginRepositories
 pluginRepository
   idCodehaus Snapshots/id
   urlhttp://snapshots.repository.codehaus.org//url
   snapshots
 enabledtrue/enabled
   /snapshots
   releases
 enabledfalse/enabled
   /releases
 /pluginRepository
   /pluginRepositories
  
  
 the error persists however...
  
 Attached is the POM that I am using, modified to remove certain 
 sensitive information... could someone please help?!
 
 
 This message (including any attachments) contains confidential 
 information intended for a specific individual and purpose, and is 
 protected by law.  If you are not 

Re: Beginning Maven

2007-07-20 Thread Wayne Fay

Your simple domestic firewall (or something else in your PC) is
preventing your connection to the central repo.

We have had several Windows users give strange reports like yours due
to firewalls and antivirus software. Turn off/disable ALL of that
stuff for now, and try again.

Also, use mvn -X -U ... which will 1) turn on debug mode and 2) force
updates of plugins.

Wayne

On 7/20/07, Robin Rigby [EMAIL PROTECTED] wrote:

Thanks Dennis

1.  Internet connection is good.
2.  I destroyed the entire .m2 directory two hours ago and restarted with a
fresh download of Maven.
3.  I am working from home.  There is no proxy that I know of and only a
simple domestic firewall.



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



Re: How to build sub-directories recursively without knowing the exact names for sub-directories?

2007-07-20 Thread Wayne Fay

I understand the situation, but you simply need to realize that (at
least at this point) Maven does not support your use case.

Considering the work to maintain product/pom.xml is extremely
trivial (add one line in modules when a new module is added), I
don't see the payoff all that large for doing things automatically.

File an RFE in Jira if you'd like, but I just don't see this being
something that very many people will care about, so if you really want
to see this feature added, you'll need to hack it in yourself IMHO.

Wayne

On 7/19/07, Baz [EMAIL PROTECTED] wrote:

Say I have a the following directory structure:

product/
  module_1/
  module_2/
  ...

Can i have a pom.xml at product directory level, and it will go into module
directories and run their pom files?

The number of module subdirectories can increase but i do not want to
maintain the product/pom.xml. Does it make sense?

A.

On 7/19/07, Wayne Fay [EMAIL PROTECTED] wrote:

 What's your use case? How could you possibly not know the names of the
 modules when you're building a project? Are you trying to build a
 super master pom that builds all your company's projects, or
 something along those lines?

 Wayne

 On 7/19/07, Baz [EMAIL PROTECTED] wrote:
  All,
 
  I know we can use modules to specify which sub-directories that we
 would
  like to build. What if i dont know the name of the sub-directories? Can
 i do
  wildcards?
 
  Thanks.
 

 -
 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 WAR project - how to bundle jars

2007-07-20 Thread Cabasson Denis
 Hi,

It should definitly be the case. Have you declared your packaging as war?

Are you using the mvn package command to get you war?

Cheers!

Denis.

 -Message d'origine-
 De : John Coleman [mailto:[EMAIL PROTECTED] 
 Envoyé : vendredi 20 juillet 2007 15:58
 À : Maven Users List
 Objet : Maven WAR project - how to bundle jars
 
 Hi,
 
 How do I get a runtime dependency JAR file to be placed into 
 the target WEB-INF/lib directory please?
 
 It would be nice if the provided and test scope 
 dependencies were not copied but the rest to be put into 
 WEB-INF/lib automatically.
 
 Regards,
 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]



Re: Maven-weblogic plugin: Unable to understand error

2007-07-20 Thread Dennis Lundberg

Judging by the error message you should run this:

mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\webservices.jar
-DgroupId=weblogic -DartifactId=webservices -Dversion=9.0
-Dpackaging=jar -DgeneratePom=true

Notice that I changed the groupId to weblogic.

Vaidya, Supriya A (US - Chicago) wrote:

Hi:

I ran the following commands, after cleaning up my repository - 


mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\weblogic.jar -DgroupId=weblogic
-DartifactId=weblogic -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\webservices.jar
-DgroupId=webservices -DartifactId=webservices -Dversion=9.0
-Dpackaging=jar -DgeneratePom=true

Then compiled (successfully) and then ran the mvn weblogic:deploy
command - I still get the same error:

[INFO] Failed to resolve artifact.

No versions are present in the repository for the artifact with a range
[9.0,)
  weblogic:webservices:jar:null

from the specified remote repositories:
  codehaus.org (http://repository.codehaus.org),
  central (http://repo1.maven.org/maven2),
  snapshots (http://snapshots.repository.codehaus.org)

 


-Original Message-
From: Dennis Lundberg [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 20, 2007 7:57 AM

To: Maven Users List
Subject: Re: Maven-weblogic plugin: Unable to understand error

There doesn't seem to be be any pom for weblogic available in the 
central repository (or your local repository). You probably need to 
install that yourself, when you install the weblogic.jar. Intructions on


how to do this can be found here:

http://maven.apache.org/plugins/maven-install-plugin/examples/generic-po
m-generation.html


Vaidya, Supriya A (US - Chicago) wrote:

Hi:
 
I am trying to use the weblogic-maven plugin to deploy my application
to 

weblogic. Here are the steps that I followed:
 
1. I installed the external jars that my application uses.

2. installed the weblogic jars
 
mvn install:install-file 
-Dfile=C:\bea\weblogic92\server\lib\weblogic.jar -DgroupId=weblogic 
-DartifactId=weblogic -Dversion=9.0 -Dpackaging=jar
 
mvn install:install-file 
-Dfile=C:\bea\weblogic92\server\lib\webservices.jar 
-DgroupId=webservices -DartifactId=webservices -Dversion=9.0

-Dpackaging=jar
 
3. installed the weblogic-maven jar
mvn install:install-file -Dfile=maven-weblogic-plugin-1.0.0.jar 
-DgroupId=web-maven -DartifactId=web-maven -Dversion=1.0

-Dpackaging=jar
 
4. ran the clean and compile commands: mvn clean, mvn compile - these 
ran without any errors
 
5. then ran the mvn weblogic:deploy command, but get teh following

error -
 
[INFO] Scanning for projects...

[INFO] Searching repository for plugin with prefix: 'weblogic'.
[INFO] 



-

---
[INFO] Building creditdecision
[INFO]task-segment: [weblogic:deploy]
[INFO] 



-

---
Downloading: 
http://repository.codehaus.org/weblogic/weblogic/9.0/weblogic-9.0.p

om
Downloading: 
http://repo1.maven.org/maven2/weblogic/weblogic/9.0/weblogic-9.0.po

m
Downloading: 
http://repo1.maven.org/maven2/weblogic/weblogic/9.0/weblogic-9.0.po

m
[INFO] 




[ERROR] BUILD ERROR
[INFO] 




[INFO] Failed to resolve artifact.
 
No versions are present in the repository for the artifact with a
range 

[9.0,)
  weblogic:webservices:jar:null
 
from the specified remote repositories:
  codehaus.org (http://repository.codehaus.org 
http://repository.codehaus.org/),

  central (http://repo1.maven.org/maven2),
  snapshots (http://snapshots.repository.codehaus.org 
http://snapshots.repository.codehaus.org/)
 

[INFO] 




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




[INFO] Total time: 1 second
[INFO] Finished at: Thu Jul 19 13:59:46 CDT 2007
[INFO] Final Memory: 2M/4M
[INFO] 



 
I tried with 9.1, 9.2... what am I doing wrong?
 
I even tried adding the following in my pom.xml -

repositories
repository
  idCodehaus Snapshots/id
  urlhttp://snapshots.repository.codehaus.org//url
  snapshots
enabledtrue/enabled
  /snapshots
  releases
enabledfalse/enabled
  /releases
/repository
  /repositories
  pluginRepositories
pluginRepository
  idCodehaus Snapshots/id
  urlhttp://snapshots.repository.codehaus.org//url
  snapshots
enabledtrue/enabled
  /snapshots
  releases
enabledfalse/enabled
  /releases
/pluginRepository
  /pluginRepositories
 
 
the error persists however...
 
Attached is the POM that I am using, modified to 

RE: maven-surefire-plugin 2.0 and 2.3 - init phase problem

2007-07-20 Thread vetalok

Thank you Jörg, I have decided to use executions mechanism, but there is
another problems :)
How can I use the same classloader during few executions phases
(surefire)?
I have experimented with 
forkMode and other tags,
but maven-surefire-plugin 2.3 is still use different classloaders.

Jörg Schaible wrote:
 
 vetalok wrote on Friday, July 20, 2007 2:49 PM:
 
 It seems since version 2.2 maven-surefire-plugin do not care about
 order of tests:
 (3)include**/init/*Data*/include
 (2)include**/api/*1Test.java/include
 (1)include**/api/*2Test.java/include
 How can I tell to maven to keep the order I writed?
 (executions mechanism is unsuitable)
 Someone can help me?
 
 You should not write tests that rely on a special execution sequence. No
 environment running unit tests will ever assure this.
 
 - Jörg
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/maven-surefire-plugin-2.0-and-2.3---init-phase-problem-tf4116244s177.html#a11709094
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: Maven hibernate, dependencies not working,plz help :)

2007-07-20 Thread Wayne Fay

I don't care if its spl, sp1, or sp10, none of those versions are in Central.

Additionally, groupIdhibernate has moved to groupIdorg.hibernate.
This is probably part of your problems, as I can see 3.2.4.sp1 is
available under org.hibernate.hibernate:
http://repo1.maven.org/maven2/org/hibernate/hibernate/

So update the groupId, and change the version to sp1 (not spl) and it
should work.

Wayne

On 7/20/07, pinky88 [EMAIL PROTECTED] wrote:


Hi everyone,

Whups looks like my reading skills aren't up to scratch writing spl instead
of sp1 .. ;)

Thanks everyone, I'll give all that a go and see how i get on =)

Pinks

Teody Cue Jr. wrote:

 Hi Pinky,

 You need to install hibernate and hsqldb artifacts in your local
 repository. Install the jars that you have downloaded using the commands
 provided by maven when you run mvn eclipse:eclipse.

 mvn install:install-file -DgroupId=hibernate -DartifactId=hibernate
 -Dversion=3.2.4.spl -Dpackaging=jar -Dfile=/path/to/file
 mvn install:install-file -DgroupId=hsqldb -DartifactId=hsqldb
 -Dversion=1.8.0.6 -Dpackaging=jar -Dfile=/path/to/file


 Where /path/to/file points to the jar files you've downloaded and
 unzipped. :)
 You need this because maven looks for the jars(or artifacts in maven
 world) in your local repository(/home/karon/.m2/repository). Issuing the
 commands will insure that those jars are placed in your local repository
 and in the right directories(groupId/artifactId/version).

 Hope this helps!

 Teody



 pinky88 wrote:
 Hi everyone,

 I'm a beginner to maven and hibernate, and i'm trying to build up a small
 project as a tutorial using maven.
 I'm using hibernate and hsqldb also.
 Using examples I've found on the net, I've added dependencies for both
 hibernate and hsqldb, so my pom.xml looks like this:

 project xmlns=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;
   modelVersion4.0.0/modelVersion
   groupIdde.groegl.road2hibernate/groupId
   artifactIdHibernateTutorial/artifactId
   packagingjar/packaging
   version1.0-SNAPSHOT/version
   nameHibernateTutorial/name
   urlhttp://maven.apache.org/url
   dependencies
 dependency
   groupIdjunit/groupId
   artifactIdjunit/artifactId
   version3.8.1/version
   scopetest/scope
 /dependency
 dependency
   groupIdhsqldb/groupId
   artifactIdhsqldb/artifactId
   version1.8.0.6/version
 /dependency
 dependency
   groupIdhibernate/groupId
   artifactIdhibernate/artifactId
   version3.2.4.spl/version
   scopecompile/scope
 /dependency
   /dependencies
 /project

 The versions are correct and i have both hibernate and hsqldb downloaded
 and
 unzipped..

  When i run mvn eclipse:eclipse i get the following :

 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'eclipse'.
 [INFO]
 
 [INFO] Building HibernateTutorial
 [INFO]task-segment: [eclipse:eclipse]
 [INFO]
 
 [INFO] Preparing eclipse:eclipse
 [INFO] No goals needed for project - skipping
 [INFO] [eclipse:eclipse]
 Downloading:
 
http://repo1.maven.org/maven2/hibernate/hibernate/3.2.4.spl/hibernate-3.2.4.spl.pom
 Downloading:
 http://repo1.maven.org/maven2/hsqldb/hsqldb/1.8.0.6/hsqldb-1.8.0.6.pom
 Downloading:
 
http://repo1.maven.org/maven2/hibernate/hibernate/3.2.4.spl/hibernate-3.2.4.spl.jar
 [WARNING] An error occurred during dependency resolution.
 Failed to retrieve hibernate:hibernate-3.2.4.spl
 Caused by: Unable to download the artifact from any repository

 Try downloading the file manually from the project website.

 Then, install it using the command:
 mvn install:install-file -DgroupId=hibernate -DartifactId=hibernate \
 -Dversion=3.2.4.spl -Dpackaging=jar -Dfile=/path/to/file
 Alternatively, if you host your own repository you can deploy the file
 there: mvn deploy:deploy-file -DgroupId=hibernate
 -DartifactId=hibernate
 \
 -Dversion=3.2.4.spl -Dpackaging=jar -Dfile=/path/to/file \
  -Durl=[url] -DrepositoryId=[id]

 Path to dependency:
 1) de.groegl.road2hibernate:HibernateTutorial:jar:1.0-SNAPSHOT
 2) hibernate:hibernate:jar:3.2.4.spl


   hibernate:hibernate:jar:3.2.4.spl

 from the specified remote repositories:
   central (http://repo1.maven.org/maven2)

 [INFO] Unable to read jar manifest from
 
/home/karen/.m2/repository/hibernate/hibernate/3.2.4.spl/hibernate-3.2.4.spl.jar
 Downloading:
 http://repo1.maven.org/maven2/hsqldb/hsqldb/1.8.0.6/hsqldb-1.8.0.6.jar
 [WARNING] An error occurred during dependency resolution.
 Failed to retrieve hsqldb:hsqldb-1.8.0.6
 Caused by: Unable to download the artifact from any repository

 Try downloading the file manually from the project website.

 

RE: Maven WAR project - how to bundle jars

2007-07-20 Thread John Coleman
Thanks, yes it works like that, there was a mistake!

John

-Original Message-
From: Cabasson Denis [mailto:[EMAIL PROTECTED] 
Sent: 20 July 2007 15:15
To: Maven Users List
Subject: RE: Maven WAR project - how to bundle jars

 Hi,

It should definitly be the case. Have you declared your packaging as war?

Are you using the mvn package command to get you war?

Cheers!

Denis.

 -Message d'origine-
 De : John Coleman [mailto:[EMAIL PROTECTED] 
 Envoyé : vendredi 20 juillet 2007 15:58
 À : Maven Users List
 Objet : Maven WAR project - how to bundle jars
 
 Hi,
 
 How do I get a runtime dependency JAR file to be placed into 
 the target WEB-INF/lib directory please?
 
 It would be nice if the provided and test scope 
 dependencies were not copied but the rest to be put into 
 WEB-INF/lib automatically.
 
 Regards,
 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]



Re: Rép. : RE: may not be this project's POM [ from cocoon-users ]

2007-07-20 Thread Wayne Fay

Does your ISP perhaps block wget for some reason (mine blocks outgoing
mail unless it goes thru their server)? Are you running Trend Micro
Antivirus which seems to block java.exe? Or a McAfee/Norton/WinXP
firewall which is blocking java.exe from connecting to the Internet?

If you're running any of those things, make sure you go into the
settings and either grant Internet access to java.exe, or change so it
prompts you when a program wants to access the Internet rather than
auto-denying, etc.

Unfortunately, this is probably one of those problems where we really
can't help you. You've done everything right, and yet you still can't
connect. Do you have a Linux or Mac box available you could try, or
perhaps a Linux livecd you could boot into and try wget from there?

Wayne

On 7/20/07, Robin Rigby [EMAIL PROTECTED] wrote:

What SSO could there be?  I don't have to sign on for anything, at least,
not for any component of this problem.  Only Windows Login.

I am at home. I have one machine, a simple wireless box and a phone socket.
All normal domestic security.  There is no proxy here.  I would know,
wouldn't I?


Robin


-Original Message-
From: Eric LECOCQ [mailto:[EMAIL PROTECTED]
Sent: 20 July 2007 13:35
To: Maven Users List
Subject: Rép. : RE: may not be this project's POM [ from cocoon-users ]


It looks like you have a SSO for your browsers but not for the wget.

You have to provide your proxy and the authentication.



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



Re: List of all dependencies as text on console?

2007-07-20 Thread Wayne Fay

If you don't mind a bit of an ugly text tree, you can also just use
mvn -X... which will provide, among other things, an ugly text tree
of your dependencies and their relationships. ;-)

But the tree provided by m-d-p is much nicer.

Wayne

On 7/20/07, Gisbert Amm [EMAIL PROTECTED] wrote:

Great, thank you!!!

-Gisbert

Mark Hobson wrote:
 On 20/07/07, Michael Meyer [EMAIL PROTECTED] wrote:

 Hi,
 try adding the following repository to your pom:
 http://people.apache.org/maven-snapshot-repository/

 I just checked. It's not on repo1.maven.org


 Yep, 2.0-alpha-5 is not released yet, but should be shortly.  In the
 meantime, you can use dependency:resolve to output the list of
 dependencies for a project.  See:

 http://maven.apache.org/plugins/maven-dependency-plugin/resolve-mojo.html

 Mark

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


--
Gisbert Amm
Softwareentwickler Infrastruktur
Telefon: (0721) 91374 - 4224
Telefax: (0721) 91374 - 2740
E-Mail: [EMAIL PROTECTED]
Internet: www.1und1.de

11 Internet AG
Elgendorfer Strasse 57
56410 Montabaur

Amtsgericht Montabaur HRB 6484

Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger
(Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim
Weiss, Robert Hoffmann,
Aufsichtsratsvorsitzender: Michael Scheeren

-
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: Large number of dependencies

2007-07-20 Thread Wayne Fay

Yes, that works. Create a pom with no code, packaging pom, and then
depend on that pom in your real code project. It should bring all
the dependencies along with it.

Wayne

On 7/20/07, Lalor, Brian [EMAIL PROTECTED] wrote:

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 20, 2007 9:20 AM
 To: users@maven.apache.org
 Subject: Large number of dependencies

 I'd like to bundle them into a sort of dependency group
 that would then
 take only one entry in my POMs. Suggestions?

Dunno if this would work, but could you just create a .pom file in your 
repository without an associated JAR and declare the dependencies in there?  
Then you'd declare each project's dependency on that single entity.

-
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: Large number of dependencies

2007-07-20 Thread robert . egan
It did not work, but pehaps I'm doing something wrong, because it still 
wants a jar. I added an appropriately named empty jar (manifest only) 
and even tried putting the pom in the jar.

For now, I must put it on the back burner and deal with production issues 
(this counts as RD).

Thanks anyway for taking the time to answer.


Robert Egan

This email message and any attachments may contain confidential, 
proprietary or non-public information.  The information is intended solely 
for the designated recipient(s).  If an addressing or transmission error 
has misdirected this email, please notify the sender immediately and 
destroy this email.  Any review, dissemination, use or reliance upon this 
information by unintended recipients is prohibited.  Any opinions 
expressed in this email are those of the author personally.

Wayne Fay [EMAIL PROTECTED] wrote on 07/20/2007 10:09:01 AM:

 Yes, that works. Create a pom with no code, packaging pom, and then
 depend on that pom in your real code project. It should bring all
 the dependencies along with it.
 
 Wayne
 
 On 7/20/07, Lalor, Brian [EMAIL PROTECTED] wrote:
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]
   Sent: Friday, July 20, 2007 9:20 AM
   To: users@maven.apache.org
   Subject: Large number of dependencies
  
   I'd like to bundle them into a sort of dependency group
   that would then
   take only one entry in my POMs. Suggestions?
 
  Dunno if this would work, but could you just create a .pom file in
 your repository without an associated JAR and declare the 
 dependencies in there?  Then you'd declare each project's dependency
 on that single entity.
 
  -
  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: How to build sub-directories recursively without knowing the exact names for sub-directories?

2007-07-20 Thread Baz

Wayne, got it. Thanks.

On 7/20/07, Wayne Fay [EMAIL PROTECTED] wrote:


I understand the situation, but you simply need to realize that (at
least at this point) Maven does not support your use case.

Considering the work to maintain product/pom.xml is extremely
trivial (add one line in modules when a new module is added), I
don't see the payoff all that large for doing things automatically.

File an RFE in Jira if you'd like, but I just don't see this being
something that very many people will care about, so if you really want
to see this feature added, you'll need to hack it in yourself IMHO.

Wayne

On 7/19/07, Baz [EMAIL PROTECTED] wrote:
 Say I have a the following directory structure:

 product/
   module_1/
   module_2/
   ...

 Can i have a pom.xml at product directory level, and it will go into
module
 directories and run their pom files?

 The number of module subdirectories can increase but i do not want to
 maintain the product/pom.xml. Does it make sense?

 A.

 On 7/19/07, Wayne Fay [EMAIL PROTECTED] wrote:
 
  What's your use case? How could you possibly not know the names of the
  modules when you're building a project? Are you trying to build a
  super master pom that builds all your company's projects, or
  something along those lines?
 
  Wayne
 
  On 7/19/07, Baz [EMAIL PROTECTED] wrote:
   All,
  
   I know we can use modules to specify which sub-directories that we
  would
   like to build. What if i dont know the name of the sub-directories?
Can
  i do
   wildcards?
  
   Thanks.
  
 
  -
  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: Rép. : RE: may not be this project's POM [ from co coon-users ]

2007-07-20 Thread Robin Rigby
 
Ok. Thanks for all your time and effort.  Bye
 
Robin
 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: 20 July 2007 15:28
To: Maven Users List
Subject: Re: Rép. : RE: may not be this project's POM [ from cocoon-users ]

Does your ISP perhaps block wget for some reason (mine blocks outgoing
mail unless it goes thru their server)? Are you running Trend Micro
Antivirus which seems to block java.exe? Or a McAfee/Norton/WinXP
firewall which is blocking java.exe from connecting to the Internet?

If you're running any of those things, make sure you go into the
settings and either grant Internet access to java.exe, or change so it
prompts you when a program wants to access the Internet rather than
auto-denying, etc.

Unfortunately, this is probably one of those problems where we really
can't help you. You've done everything right, and yet you still can't
connect. Do you have a Linux or Mac box available you could try, or
perhaps a Linux livecd you could boot into and try wget from there?

Wayne

On 7/20/07, Robin Rigby [EMAIL PROTECTED] wrote:
 What SSO could there be?  I don't have to sign on for anything, at least,
 not for any component of this problem.  Only Windows Login.

 I am at home. I have one machine, a simple wireless box and a phone
socket.
 All normal domestic security.  There is no proxy here.  I would know,
 wouldn't I?


 Robin


 -Original Message-
 From: Eric LECOCQ [mailto:[EMAIL PROTECTED]
 Sent: 20 July 2007 13:35
 To: Maven Users List
 Subject: Rép. : RE: may not be this project's POM [ from cocoon-users ]


 It looks like you have a SSO for your browsers but not for the wget.

 You have to provide your proxy and the authentication.


-
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: Large number of dependencies

2007-07-20 Thread Lalor, Brian
Wayne gave me more credit than I deserved, but we weren't quite talking about 
the same thing.  Forget putting anything directly into the repository.  
Instead, assuming you're using a multi-module project, create a new sub-module 
and define your dependencies there.

So, your tree would look something like this:
. top-level dir (/; groupId: com.foo, artifactId: top-level)
|- pom.xml
|- big-ass-dependency (groupId: com.foo, artifactId: big-ass-dependency)
|  `- pom.xml
|- web-proj
   `- pom.xml

In /big-ass-dependency/pom.xml, you'd specify your dependencies.  In 
/web-proj/pom.xml, you'd declare your dependency on big-ass-dependency:
dependency
groupIdcom.foo/groupId
artifactIdbig-ass-dependency/artifactId
/dependency

I'd like to model this in maven just for my own edification, but I don't have 
time right now. :-(


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 20, 2007 10:35 AM
 To: Maven Users List
 Subject: Re: Large number of dependencies
 
 It did not work, but pehaps I'm doing something wrong, 
 because it still 
 wants a jar. I added an appropriately named empty jar 
 (manifest only) 
 and even tried putting the pom in the jar.
 
 For now, I must put it on the back burner and deal with 
 production issues 
 (this counts as RD).
 
 Thanks anyway for taking the time to answer.

 Wayne Fay [EMAIL PROTECTED] wrote on 07/20/2007 10:09:01 AM:
 
  Yes, that works. Create a pom with no code, packaging pom, and then
  depend on that pom in your real code project. It should bring all
  the dependencies along with it.
  
  Wayne
  
  On 7/20/07, Lalor, Brian [EMAIL PROTECTED] wrote:
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, July 20, 2007 9:20 AM
To: users@maven.apache.org
Subject: Large number of dependencies
   
I'd like to bundle them into a sort of dependency group
that would then
take only one entry in my POMs. Suggestions?
  
   Dunno if this would work, but could you just create a .pom file in
  your repository without an associated JAR and declare the 
  dependencies in there?  Then you'd declare each project's dependency
  on that single entity.
  
   
 -
   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: Beginning Maven

2007-07-20 Thread Robin Rigby
Spot on.  Hello World works fine.

Many thanks 
 
Robin
 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: 20 July 2007 15:12
To: Maven Users List
Subject: Re: Beginning Maven

Your simple domestic firewall (or something else in your PC) is
preventing your connection to the central repo.

We have had several Windows users give strange reports like yours due
to firewalls and antivirus software. Turn off/disable ALL of that
stuff for now, and try again.

Also, use mvn -X -U ... which will 1) turn on debug mode and 2) force
updates of plugins.

Wayne

On 7/20/07, Robin Rigby [EMAIL PROTECTED] wrote:
 Thanks Dennis

 1.  Internet connection is good.
 2.  I destroyed the entire .m2 directory two hours ago and restarted with
a
 fresh download of Maven.
 3.  I am working from home.  There is no proxy that I know of and only a
 simple domestic firewall.


-
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: configuring separate filter for testResources

2007-07-20 Thread Lalor, Brian
 -Original Message-
 From: Michael Meyer [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 20, 2007 10:43 AM
 To: Maven Users List
 Subject: Re: configuring separate filter for testResources
 
 Hi Brian,
 Do I understand you right that you want to define two property files. 
 One for src/test/resources and one for src/main/resources? If 
 so I would 
 try using the maven-antrun-plugin and the ant replace task.

That's correct, Michael.  The antrun plugin would work, but it seems to me that 
since src/test/resources and src/test/filters are part of the standard Maven 
project directory structure, and since the testResources goal has a separate 
filters list, I should be able to do this in Maven without having to drop out 
to Ant.  

I think a testFilters / element at the same level as filters / in pom.xml 
would be appropriate here, but that doesn't currently exist.  Plan B is to 
specifically configure the testResources goal, but I can't figure out how to do 
that, either.

Thanks for the fall-back solution, however. :-)




Re: Large number of dependencies

2007-07-20 Thread Wayne Fay

Hmmm I'm not quite sure what you are/were doing, but basically you
need to create a pom, say ibm/pom.xml, and inside set the packaging
as pom, add the dependencies for your various ibm jars in there,
then add this ibm artifactId to your other project(s).

This of course requires that you: 1. install the ibm/pom.xml file into
your repo and 2. have all the ibm jars installed/available in your
repo as well.

Wayne

On 7/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

It did not work, but pehaps I'm doing something wrong, because it still
wants a jar. I added an appropriately named empty jar (manifest only)
and even tried putting the pom in the jar.

For now, I must put it on the back burner and deal with production issues
(this counts as RD).

Thanks anyway for taking the time to answer.


Robert Egan

This email message and any attachments may contain confidential,
proprietary or non-public information.  The information is intended solely
for the designated recipient(s).  If an addressing or transmission error
has misdirected this email, please notify the sender immediately and
destroy this email.  Any review, dissemination, use or reliance upon this
information by unintended recipients is prohibited.  Any opinions
expressed in this email are those of the author personally.

Wayne Fay [EMAIL PROTECTED] wrote on 07/20/2007 10:09:01 AM:

 Yes, that works. Create a pom with no code, packaging pom, and then
 depend on that pom in your real code project. It should bring all
 the dependencies along with it.

 Wayne

 On 7/20/07, Lalor, Brian [EMAIL PROTECTED] wrote:
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]
   Sent: Friday, July 20, 2007 9:20 AM
   To: users@maven.apache.org
   Subject: Large number of dependencies
  
   I'd like to bundle them into a sort of dependency group
   that would then
   take only one entry in my POMs. Suggestions?
 
  Dunno if this would work, but could you just create a .pom file in
 your repository without an associated JAR and declare the
 dependencies in there?  Then you'd declare each project's dependency
 on that single entity.
 
  -
  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: List of all dependencies as text on console?

2007-07-20 Thread Gisbert Amm
That's very true and there are tools like grep, sed, awk and the like to 
make ugly text beautiful ,)


However, for the moment I won't re-implement the tree view of the 
maven-dependency-plugin as a shell script and rather use the plugin 
itself to get it ;)


Thanks!
-Gisbert

Wayne Fay wrote:

If you don't mind a bit of an ugly text tree, you can also just use
mvn -X... which will provide, among other things, an ugly text tree
of your dependencies and their relationships. ;-)

But the tree provided by m-d-p is much nicer.

Wayne

On 7/20/07, Gisbert Amm [EMAIL PROTECTED] wrote:


Great, thank you!!!

-Gisbert

Mark Hobson wrote:
 On 20/07/07, Michael Meyer [EMAIL PROTECTED] wrote:

 Hi,
 try adding the following repository to your pom:
 http://people.apache.org/maven-snapshot-repository/

 I just checked. It's not on repo1.maven.org


 Yep, 2.0-alpha-5 is not released yet, but should be shortly.  In the
 meantime, you can use dependency:resolve to output the list of
 dependencies for a project.  See:

 
http://maven.apache.org/plugins/maven-dependency-plugin/resolve-mojo.html


 Mark

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


--
Gisbert Amm
Softwareentwickler Infrastruktur
Telefon: (0721) 91374 - 4224
Telefax: (0721) 91374 - 2740
E-Mail: [EMAIL PROTECTED]
Internet: www.1und1.de

11 Internet AG
Elgendorfer Strasse 57
56410 Montabaur

Amtsgericht Montabaur HRB 6484

Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger
(Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim
Weiss, Robert Hoffmann,
Aufsichtsratsvorsitzender: Michael Scheeren

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



--
Gisbert Amm
Softwareentwickler Infrastruktur
Telefon: (0721) 91374 - 4224
Telefax: (0721) 91374 - 2740
E-Mail: [EMAIL PROTECTED]
Internet: www.1und1.de

11 Internet AG
Elgendorfer Strasse 57
56410 Montabaur

Amtsgericht Montabaur HRB 6484

Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger 
(Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim 
Weiss, Robert Hoffmann,

Aufsichtsratsvorsitzender: Michael Scheeren

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



Re: configuring separate filter for testResources

2007-07-20 Thread Michael Meyer

Hi Brian,
Do I understand you right that you want to define two property files. 
One for src/test/resources and one for src/main/resources? If so I would 
try using the maven-antrun-plugin and the ant replace task.


Cheers, michael

Lalor, Brian wrote:

Good morning, all.  I've been Googling for a while this morning and I'm not 
having any luck finding a solution to this problem...

I'm trying to set up property filtering for resources under src/test/resources.  I want the 
properties defined in src/test/filters/whatever.properties to only be applied to my test 
resources.  Unfortunately, the pom.xml only allows a single filters / element which 
applies to all filtered resources, whether or not they're specified in resources / or 
testResources /.  Looking at the plugin.xml for the maven-resources-plugin, it would 
appear that I can get around the pom limitation by defining a List of filters specifically for 
the testResources goal.  Unfortunately, I don't know how to go about doing that.  After some 
discussion on the list yesterday, I'm afraid this may be broken, but I'm hoping that's not the 
case. :-)

Can someone shed some light?

Thanks,
Brian

--
Brian Lalor
Fidelity Life Insurance Company (FILI) - Systems  Technology
Merrimack, NH
603-791-8612
[EMAIL PROTECTED]



--
Michael Meyer | [EMAIL PROTECTED]
phone +41-44-247 79 12 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch


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



Re: Large number of dependencies

2007-07-20 Thread Wayne Fay

Brian, that works too. But most of the time, you've got several
projects that all need the same collection of jars, so you end up
installing this pom by itself and then you can add it to any project
at any time.

Wayne

On 7/20/07, Lalor, Brian [EMAIL PROTECTED] wrote:

Wayne gave me more credit than I deserved, but we weren't quite talking about 
the same thing.  Forget putting anything directly into the repository.  
Instead, assuming you're using a multi-module project, create a new sub-module 
and define your dependencies there.

So, your tree would look something like this:
. top-level dir (/; groupId: com.foo, artifactId: top-level)
|- pom.xml
|- big-ass-dependency (groupId: com.foo, artifactId: big-ass-dependency)
|  `- pom.xml
|- web-proj
  `- pom.xml

In /big-ass-dependency/pom.xml, you'd specify your dependencies.  In 
/web-proj/pom.xml, you'd declare your dependency on big-ass-dependency:
   dependency
   groupIdcom.foo/groupId
   artifactIdbig-ass-dependency/artifactId
   /dependency

I'd like to model this in maven just for my own edification, but I don't have 
time right now. :-(


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 20, 2007 10:35 AM
 To: Maven Users List
 Subject: Re: Large number of dependencies

 It did not work, but pehaps I'm doing something wrong,
 because it still
 wants a jar. I added an appropriately named empty jar
 (manifest only)
 and even tried putting the pom in the jar.

 For now, I must put it on the back burner and deal with
 production issues
 (this counts as RD).

 Thanks anyway for taking the time to answer.

 Wayne Fay [EMAIL PROTECTED] wrote on 07/20/2007 10:09:01 AM:

  Yes, that works. Create a pom with no code, packaging pom, and then
  depend on that pom in your real code project. It should bring all
  the dependencies along with it.
 
  Wayne
 
  On 7/20/07, Lalor, Brian [EMAIL PROTECTED] wrote:
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, July 20, 2007 9:20 AM
To: users@maven.apache.org
Subject: Large number of dependencies
   
I'd like to bundle them into a sort of dependency group
that would then
take only one entry in my POMs. Suggestions?
  
   Dunno if this would work, but could you just create a .pom file in
  your repository without an associated JAR and declare the
  dependencies in there?  Then you'd declare each project's dependency
  on that single entity.
  
  
 -
   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: Beginning Maven

2007-07-20 Thread Wayne Fay

Excellent. Do you mind telling us what software (in particular) was
blocking your access, so we know for the future?

This is one of the reasons why Windows is the bane of many people's existence...

Wayne

On 7/20/07, Robin Rigby [EMAIL PROTECTED] wrote:

Spot on.  Hello World works fine.

Many thanks

Robin


-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED]
Sent: 20 July 2007 15:12
To: Maven Users List
Subject: Re: Beginning Maven

Your simple domestic firewall (or something else in your PC) is
preventing your connection to the central repo.

We have had several Windows users give strange reports like yours due
to firewalls and antivirus software. Turn off/disable ALL of that
stuff for now, and try again.

Also, use mvn -X -U ... which will 1) turn on debug mode and 2) force
updates of plugins.

Wayne

On 7/20/07, Robin Rigby [EMAIL PROTECTED] wrote:
 Thanks Dennis

 1.  Internet connection is good.
 2.  I destroyed the entire .m2 directory two hours ago and restarted with
a
 fresh download of Maven.
 3.  I am working from home.  There is no proxy that I know of and only a
 simple domestic firewall.


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



Maven weblogic plugin: NoClassDefFoundError with com/bea/xml/XmlException

2007-07-20 Thread Vaidya, Supriya A \(US - Chicago\)
Hi:
 
I have installed the following jars:
 
mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\weblogic.jar -DgroupId=weblogic
-DartifactId=weblogic -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\webservices.jar -DgroupId=weblogic
-DartifactId=webservices -Dversion=9.0 -Dpackaging=jar
-DgeneratePom=true

 

mvn install:install-file -Dfile=C:\bea\weblogic92\server\lib\xbean.jar
-DgroupId=weblogic -DartifactId=xbean -Dversion=9.0 -Dpackaging=jar
-DgeneratePom=true

 

mvn install:install-file -Dfile=C:\bea\weblogic92\server\lib\wlxbean.jar
-DgroupId=weblogic -DartifactId=wlxbean -Dversion=9.0 -Dpackaging=jar
-DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\common\lib\wlw-util.jar -DgroupId=weblogic
-DartifactId=wlw-util -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\wlw-langx.jar -DgroupId=weblogic
-DartifactId=wlw-langx -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\javelin\lib\bcel-5.1.jar -DgroupId=weblogic
-DartifactId=bcel -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

mvn install:install-file
-Dfile=C:\bea\weblogic92\javelin\lib\javelinx.jar -DgroupId=weblogic
-DartifactId=javelinx -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\schema\weblogic-container-binding.ja
r -DgroupId=weblogic -DartifactId=weblogic-container-binding
-Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

When running the command mvn weblogic:appc - I get the following error:

 

Jul 20, 2007 10:26:23 AM CDT Error J2EE BEA-160187
weblogic.appc failed
 to compile your application. Recompile with the -verbose option for
more detail
s. Please see the error message(s) below.
[ERROR] Exception encountered during APPC processing
weblogic.utils.compiler.ToolFailureException: com/bea/xml/XmlException
at
weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain(CompilerTask.java:
299)
at weblogic.ant.taskdefs.j2ee.Appc.privateExecute(Appc.java:250)
at weblogic.ant.taskdefs.j2ee.Appc.execute(Appc.java:159)
at
org.codehaus.mojo.weblogic.AppcMojo.execute(AppcMojo.java:180)
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)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:463)
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(DefaultLi
fecycleExecutor.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(DelegatingMethodAcces
sorImpl.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: weblogic.utils.compiler.ToolFailureException:
com/bea/xml/XmlExceptio
n
at
weblogic.application.compiler.FlowDriver.handleStateChangeException(F
lowDriver.java:53)
at
weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:37
)
at
weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
at weblogic.application.compiler.Appc.runBody(Appc.java:163)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
at weblogic.application.compiler.Appc.main(Appc.java:174)
at weblogic.appc.main(appc.java:14)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain(CompilerTask.java:
290)
... 21 more
Caused by: 

Issue tracking integration

2007-07-20 Thread Martin Alejandro Villalobos

Hello.
Somebody knows that if there is a way for make a integration between 
Continuum and  some issue tracking system.
I want that when I inspect the changeset, I 'll can see links  pointing 
to the bugs resolved and commited and when I do click in this link , it 
opened in some issue tracking system.


Thanks for all.

Martin.



Re: Large number of dependencies

2007-07-20 Thread robert . egan
Yes, that's done it.

I prefer this approach because it brings the handling of third party jars 
in line with the ones we've created ourselves, instead of being a special 
case.


Thanks again!
Robert Egan


This email message and any attachments may contain confidential, 
proprietary or non-public information.  The information is intended solely 
for the designated recipient(s).  If an addressing or transmission error 
has misdirected this email, please notify the sender immediately and 
destroy this email.  Any review, dissemination, use or reliance upon this 
information by unintended recipients is prohibited.  Any opinions 
expressed in this email are those of the author personally.

Wayne Fay [EMAIL PROTECTED] wrote on 07/20/2007 11:22:11 AM:

 Brian, that works too. But most of the time, you've got several
 projects that all need the same collection of jars, so you end up
 installing this pom by itself and then you can add it to any project
 at any time.
 
 Wayne
 
 On 7/20/07, Lalor, Brian [EMAIL PROTECTED] wrote:
  Wayne gave me more credit than I deserved, but we weren't quite 
 talking about the same thing.  Forget putting anything directly into
 the repository.  Instead, assuming you're using a multi-module 
 project, create a new sub-module and define your dependencies there.
 
  So, your tree would look something like this:
  . top-level dir (/; groupId: com.foo, artifactId: top-level)
  |- pom.xml
  |- big-ass-dependency (groupId: com.foo, artifactId: 
big-ass-dependency)
  |  `- pom.xml
  |- web-proj
`- pom.xml
 
  In /big-ass-dependency/pom.xml, you'd specify your dependencies. 
 In /web-proj/pom.xml, you'd declare your dependency on 
big-ass-dependency:
 dependency
 groupIdcom.foo/groupId
 artifactIdbig-ass-dependency/artifactId
 /dependency
 
  I'd like to model this in maven just for my own edification, but I
 don't have time right now. :-(
 
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]
   Sent: Friday, July 20, 2007 10:35 AM
   To: Maven Users List
   Subject: Re: Large number of dependencies
  
   It did not work, but pehaps I'm doing something wrong,
   because it still
   wants a jar. I added an appropriately named empty jar
   (manifest only)
   and even tried putting the pom in the jar.
  
   For now, I must put it on the back burner and deal with
   production issues
   (this counts as RD).
  
   Thanks anyway for taking the time to answer.
 
   Wayne Fay [EMAIL PROTECTED] wrote on 07/20/2007 10:09:01 AM:
  
Yes, that works. Create a pom with no code, packaging pom, and 
then
depend on that pom in your real code project. It should bring 
all
the dependencies along with it.
   
Wayne
   
On 7/20/07, Lalor, Brian [EMAIL PROTECTED] wrote:
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]
  Sent: Friday, July 20, 2007 9:20 AM
  To: users@maven.apache.org
  Subject: Large number of dependencies
 
  I'd like to bundle them into a sort of dependency group
  that would then
  take only one entry in my POMs. Suggestions?

 Dunno if this would work, but could you just create a .pom file 
in
your repository without an associated JAR and declare the
dependencies in there?  Then you'd declare each project's 
dependency
on that single entity.


   
-
 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: Maven-weblogic plugin: Unable to understand error

2007-07-20 Thread Vaidya, Supriya A (US - Chicago)
Thank you very much :) This works great... In trying to understand this
however - why weblogic:webservices? Could you point me to some
documentation (to save your time!) on what the implications of
group/artifact IDs are? 


Supriya A Vaidya 
Technology Integration 
Deloitte Consulting LLP 
Tel: +1 312 486 4835 
Fax: +1 312 247 4835
Mobile: + 1 414 736 8157 
www.deloitte.com 


-Original Message-
From: Dennis Lundberg [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 20, 2007 9:19 AM
To: Maven Users List
Subject: Re: Maven-weblogic plugin: Unable to understand error

Judging by the error message you should run this:

mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\webservices.jar
-DgroupId=weblogic -DartifactId=webservices -Dversion=9.0
-Dpackaging=jar -DgeneratePom=true

Notice that I changed the groupId to weblogic.

Vaidya, Supriya A (US - Chicago) wrote:
 Hi:
 
 I ran the following commands, after cleaning up my repository - 
 
 mvn install:install-file
 -Dfile=C:\bea\weblogic92\server\lib\weblogic.jar -DgroupId=weblogic
 -DartifactId=weblogic -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true
 
 mvn install:install-file
 -Dfile=C:\bea\weblogic92\server\lib\webservices.jar
 -DgroupId=webservices -DartifactId=webservices -Dversion=9.0
 -Dpackaging=jar -DgeneratePom=true
 
 Then compiled (successfully) and then ran the mvn weblogic:deploy
 command - I still get the same error:
 
 [INFO] Failed to resolve artifact.
 
 No versions are present in the repository for the artifact with a
range
 [9.0,)
   weblogic:webservices:jar:null
 
 from the specified remote repositories:
   codehaus.org (http://repository.codehaus.org),
   central (http://repo1.maven.org/maven2),
   snapshots (http://snapshots.repository.codehaus.org)
 
  
 
 -Original Message-
 From: Dennis Lundberg [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 20, 2007 7:57 AM
 To: Maven Users List
 Subject: Re: Maven-weblogic plugin: Unable to understand error
 
 There doesn't seem to be be any pom for weblogic available in the 
 central repository (or your local repository). You probably need to 
 install that yourself, when you install the weblogic.jar. Intructions
on
 
 how to do this can be found here:
 

http://maven.apache.org/plugins/maven-install-plugin/examples/generic-po
 m-generation.html
 
 
 Vaidya, Supriya A (US - Chicago) wrote:
 Hi:
  
 I am trying to use the weblogic-maven plugin to deploy my application
 to 
 weblogic. Here are the steps that I followed:
  
 1. I installed the external jars that my application uses.
 2. installed the weblogic jars
  
 mvn install:install-file 
 -Dfile=C:\bea\weblogic92\server\lib\weblogic.jar -DgroupId=weblogic 
 -DartifactId=weblogic -Dversion=9.0 -Dpackaging=jar
  
 mvn install:install-file 
 -Dfile=C:\bea\weblogic92\server\lib\webservices.jar 
 -DgroupId=webservices -DartifactId=webservices -Dversion=9.0
 -Dpackaging=jar
  
 3. installed the weblogic-maven jar
 mvn install:install-file -Dfile=maven-weblogic-plugin-1.0.0.jar 
 -DgroupId=web-maven -DartifactId=web-maven -Dversion=1.0
 -Dpackaging=jar
  
 4. ran the clean and compile commands: mvn clean, mvn compile - these

 ran without any errors
  
 5. then ran the mvn weblogic:deploy command, but get teh following
 error -
  
 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'weblogic'.
 [INFO] 



 -
 ---
 [INFO] Building creditdecision
 [INFO]task-segment: [weblogic:deploy]
 [INFO] 



 -
 ---
 Downloading: 
 http://repository.codehaus.org/weblogic/weblogic/9.0/weblogic-9.0.p
 om
 Downloading: 
 http://repo1.maven.org/maven2/weblogic/weblogic/9.0/weblogic-9.0.po
 m
 Downloading: 
 http://repo1.maven.org/maven2/weblogic/weblogic/9.0/weblogic-9.0.po
 m
 [INFO] 



 [ERROR] BUILD ERROR
 [INFO] 



 [INFO] Failed to resolve artifact.
  
 No versions are present in the repository for the artifact with a
 range 
 [9.0,)
   weblogic:webservices:jar:null
  
 from the specified remote repositories:
   codehaus.org (http://repository.codehaus.org 
 http://repository.codehaus.org/),
   central (http://repo1.maven.org/maven2),
   snapshots (http://snapshots.repository.codehaus.org 
 http://snapshots.repository.codehaus.org/)
  

 [INFO] 



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



 [INFO] Total time: 1 second
 [INFO] Finished at: Thu Jul 19 13:59:46 CDT 2007
 [INFO] Final Memory: 2M/4M
 [INFO] 



  
 I tried with 9.1, 9.2... what am I doing wrong?
  
 I even tried 

  1   2   >