Re: Basic Repository Proxying settings

2008-02-06 Thread Maria Odea Ching
Sorry, I forgot to include that you need to do either of these two:
1. Grant the repository observer role for your repo to user 'guest', OR
2. Create a user in Archiva and assign it with the repository observer role
for your repo, then set this in your settings.xml as well:
   server
  id[REPO_ID]/id
  username[USERNAME]/username
  password[PASSWORD]/password
/server

-Deng

On Feb 5, 2008 11:56 PM, Doug Knesek [EMAIL PROTECTED] wrote:


 I've essentially done all of the steps you listed.  But my builds fail
 immediately with:

 [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for
 updates from central
 [WARNING] repository metadata for: 'artifact
 org.apache.plugins:maven-clean-plugin' could not be retrieved from
 repository: central due to an error: Error transferring file
 [INFO] Repository 'central' will be blacklisted
 [INFO] 
 [ERROR] BUILD ERROR

 I am using Maven 2.0.8.  I there something special I have to do for
 plugins?


 Maria Odea Ching-5 wrote:
 
  Hi Doug,
 
  To force Maven to use only your Archiva managed repository (if you don't
  want to use the pre-configured 'internal' repository), you need to do
 the
  ff:
  1. Create a managed repository in Archiva
  2. By default, the central and java.net repos are already
 pre-configured.
  You can add another remote repository you want to proxy though.
  3. In the Proxy Connectors page, create a new proxy connector. Set the
  managed repo you've added to proxy a remote repository from the list.
  4. Set the following in your settings.xml file:
 
mirrors
  mirror
id[REPO_ID]/id
url[REPO_WEBDAV_URL]/url
mirrorOf*/mirrorOf
  /mirror
/mirrors
 
 
  Now, to set-up a deployment repository managed by Archiva..
  1. Create a new managed repo in Archiva
  2. Then set the webdav url of this managed repo in the
  distributionManagement section of your project's pom
 
  HTH,
  Deng
 
  On Feb 5, 2008 3:17 AM, Doug Knesek [EMAIL PROTECTED] wrote:
 
 
  I find the settings in the documentation about repository proxying to
 be
  unclear.  Here is what I'm trying to do:
 
  I want to force all my maven repository lookups to go through archiva -
  but
  I want it to behave just like a default maven installation except that
 I
  want my own deployments to be reside on my own repository managed by
  archiva.
 
  What maven/archiva settings would be required to make this happen?
 
  Thank you,
  - Doug
  --
  View this message in context:
 
 http://www.nabble.com/Basic-Repository-Proxying-settings-tp15275126p15275126.html
  Sent from the archiva-users mailing list archive at Nabble.com.
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Basic-Repository-Proxying-settings-tp15275126p15291547.html
 Sent from the archiva-users mailing list archive at Nabble.com.




Re: howto configure svn access with maven2 using ssh connection

2008-02-06 Thread Ulrich Metzger
Thanks for the quick reply,
but maybe this is not what i want.

as far as i know, the svn repository access is configured in the scm /
section.
I want to acces a subversion source repository not a maven artifact
repository.
So i configured something like the following to access the server's
subversion repository using ssh:

scm
connection
scm:svn:svn+ssh://[EMAIL 
PROTECTED]/path/to/repository/http://scm//[EMAIL 
PROTECTED]/path/to/repository/
/connection
developerConnection
scm:svn:svn+ssh://[EMAIL 
PROTECTED]/path/to/repository/http://scm//[EMAIL 
PROTECTED]/path/to/repository/
/developerConnection
tagHEAD/tag
/scm

Which does not work.
I wonder where the password for the ssh connection should be stored, and how
the correct subversion db path could be located (maybe throught the HEAD
tag)?

hope someone knows more about this type of scm configuration.

Uli

2008/2/5, Simon Kitching [EMAIL PROTECTED]:

  Ulrich Metzger [EMAIL PROTECTED] schrieb:
  Hi list,
  i tryed to configure the scm settings in a maven 2 pom.xml using ssh to
  access the remote svn repository.
  But i could not find any example or documentation how to manage this.
  Does anybody know if this is possible and if yes, how to set up this
 kind of
  repository access, when a username and password is required for ssh
 login on
  the remote machine.
  I would be interested in a solution which works with Windows and Linux
  client systems.

 I have this in ~/.m2/settings.xml:

 settings
   servers
 server
   idserver1/id
   usernameuser1/username
   passwordpwd1/password
 /server

 server
   idserver2/id
   usernameuser2/username
   passwordpwd2/password
   privateKey/home/user2/.ssh/somekey/privateKey
 /server
   /servers
 /settings

 where the ids match the id properties of the repository definitions in the
 pom.xml file.

 Regards,
 Simon



Browsing error - Unable to find project model

2008-02-06 Thread Brown, Carlton
I'm getting this error unable to find project model when I browse down
to a particular module, even though the POM and metadata are there, and
I've force the database to rescan.   What's going on and and how do I
need to fix it?

 

TIA,

Carlton




-

This message contains PRIVILEGED and CONFIDENTIAL
information that is intended only for use by the 
named recipient. If you are not the named recipient,
any disclosure, dissemination, or action based on 
the contents of this message is prohibited. In such
case please notify us and destroy and delete all 
copies of this transmission.  Thank you.


Archiva version missing from pages and logs

2008-02-06 Thread Ben Lidgey

I have just upgraded to Archiva 1.0.1 I think (deployed as a war file on 
tomcat), and wanted to confirm the upgrade had worked, but cannot find any 
references to the version in the logs or on the pages.

In the logs I get the alpaca ASCII art as shown:

2008-02-06 14:36:32,742 [main] INFO  
org.apache.maven.archiva.web.startup.ArchivaStartup:default  - 
_
  __
   /\_   /  \
  /`/@),|  On behalf of all of the alpaca's  |
  |  (~'  __|  toiling away on the Apache Maven  |
  _,--.___/  |\ project teams, I would like to   |
,' , (   | \ welcome you to Maven Archiva|
|  (  \  /  | Unknown Version  |
 \  )\_/  ,_/   ||
 / /   ( |/ |  http://maven.apache.org/archiva/  |
( |( |  |  archiva-users@maven.apache.org|
 \| \|   \__/


Which says unknown version, and I cannot see the version number in the page 
footer or title etc anywhere. Am I missing something?

Ben Lidgey
Senior Software Engineer
e: [EMAIL PROTECTED]

Inuk Networks Limited
Enterprise House
Navigation Park
Abercynon
CF45 4SN
t: +44 (0)844 546 0100
f: +44 (0)844 546 0200
w: www.inuknetworks.com


This e-mail is confidential and intended solely for the use of the 
individual(s) to whom it is addressed. Any views or opinions expressed are 
those of the author. If you are not the intended recipient, please be advised 
that any use, dissemination, printing or copying of this email is strictly 
prohibited.



Re: Archiva version missing from pages and logs

2008-02-06 Thread Wendy Smoak
On Feb 6, 2008 7:44 AM, Ben Lidgey [EMAIL PROTECTED] wrote:

 I have just upgraded to Archiva 1.0.1 I think (deployed as a war file on 
 tomcat), and wanted to confirm the upgrade had worked, but
 cannot find any references to the version in the logs or on the pages.

 In the logs I get the alpaca ASCII art as shown:
...
 |  (  \  /  | Unknown Version  |

Please open an issue-- the version number should be in the footer and
in the logs.  (FWIW, it does work in the standalone version.)

To verify that you have 1.0.1, expand the .war file and look in
META-INF/maven/org.apache.maven.archiva/archiva-webapp/pom.properties.

-- 
Wendy


Re: How to contact Admin for http://vmbuild.apache.org/continuum/ ?

2008-02-06 Thread Brett Porter
what is the project?

On 07/02/2008, sebb [EMAIL PROTECTED] wrote:
 I just registered for an account with Continuum, and the welcome
 e-mail says to contact the administrator to get additional rights.

 However the mail does not explain how to contact the administrator -
 but it does mention using the mailing lists, so here I am ... how do I
 get additional rights so that I can set up a build?



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/


Re: How to contact Admin for http://vmbuild.apache.org/continuum/ ?

2008-02-06 Thread sebb
I'm looking into setting up a build for HttpComponents.

On 07/02/2008, Brett Porter [EMAIL PROTECTED] wrote:
 what is the project?

 On 07/02/2008, sebb [EMAIL PROTECTED] wrote:
  I just registered for an account with Continuum, and the welcome
  e-mail says to contact the administrator to get additional rights.
 
  However the mail does not explain how to contact the administrator -
  but it does mention using the mailing lists, so here I am ... how do I
  get additional rights so that I can set up a build?
 


 --
 Brett Porter
 Blog: http://blogs.exist.com/bporter/



Re: How to contact Admin for http://vmbuild.apache.org/continuum/ ?

2008-02-06 Thread Brett Porter
done

On 07/02/2008, sebb [EMAIL PROTECTED] wrote:
 I'm looking into setting up a build for HttpComponents.

 On 07/02/2008, Brett Porter [EMAIL PROTECTED] wrote:
  what is the project?
 
  On 07/02/2008, sebb [EMAIL PROTECTED] wrote:
   I just registered for an account with Continuum, and the welcome
   e-mail says to contact the administrator to get additional rights.
  
   However the mail does not explain how to contact the administrator -
   but it does mention using the mailing lists, so here I am ... how do I
   get additional rights so that I can set up a build?
  
 
 
  --
  Brett Porter
  Blog: http://blogs.exist.com/bporter/
 



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/


RE: No such logger 'com.opensymphony.xwork.Action:schedule?

2008-02-06 Thread Tawfik, Sameh E

Never mined, it was my mistake; I did not enter the time correctly.

It is working fine now.

  Sameh

-Original Message-
From: Tawfik, Sameh E [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 06, 2008 10:24 PM
To: continuum-users@maven.apache.org
Subject: No such logger 'com.opensymphony.xwork.Action:schedule?



I created two schedules for two projects with the following syntax:

1. Cron Expression: 0 14 20 * * ?   -- Schedule A

2. Cron Expression: 0 30 20 * * ?   -- Schedule B

I assigned each project one of the above schedules.

When the time comes to tart the build, nothing happens? And I see the
following output from the Apache Continuum window:

jvm 1| 2008-02-06 22:13:40,582 [SocketListener0-0] INFO
org.apache.maven.co
ntinuum.build.settings.SchedulesActivator:default  - MBC1 1.0 Schedule:
next
fire time -Thu Feb 07 20:14:00 PST 2008
jvm 1| There was no such logger
'com.opensymphony.xwork.Action:schedule' 125
6167.

Any thoughts?

  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.


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.



[ANN] Maven Surefire Plugin 2.4.1 for Maven 2 Released

2008-02-06 Thread Dan Fabulich


The Maven team is pleased to announce the release of the Maven Surefire 
Plugin, version 2.4.1


http://maven.apache.org/plugins/maven-surefire-plugin/

You can run mvn -up to get the latest version of the plugin, or specify
the version in your project's plugin configuration:

plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-surefire-plugin/artifactId
 version2.4.1/version
/plugin


Release Notes - Maven Surefire - Version 2.4.1


** Bug
* [SUREFIRE-121] - System properties set on the command line get 
clobbered
* [SUREFIRE-432] - Surefire swallows redirected test output if 
uncaught exceptions occur in forked SurefireBooter
* [SUREFIRE-433] - All tests run in a single execution are reported as 
coming from just one class
* [SUREFIRE-439] - Test listeners / reporters don't work with TestNG 
5.7

* [SUREFIRE-444] - NPE in PojoStackTraceWriter.writeTraceToString

** Improvement
* [SUREFIRE-425] - Add dedicated resource bundle for locale en.


** Task
* [SUREFIRE-428] - Add integration test to check class path order
* [SUREFIRE-436] - Add documentation section on debugging  tests


Enjoy,

-The Maven team


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



Re: DbUnit plugin

2008-02-06 Thread Julien FOROT

VUB Stefan Seidel a écrit :

Quote from http://maven-plugins.sourceforge.net/
 Maven Plugins is a collection of plugins for Apache Maven 1.x


Ok then I have to use plugin from codehaus, thanks..

What is your dbunit configuration in your pom.xml?

This is my config :

 plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIddbunit-maven-plugin/artifactId
   !-- jar file that has the jdbc driver--
   dependencies
 dependency
   groupIdpostgresql/groupId
   artifactIdpostgresql/artifactId
   version8.2-504.jdbc3/version
 /dependency
   /dependencies

   !-- common configurations --
   configuration
 driverorg.postgresql.Driver/driver
 urljdbc:postgresql://localhost:5432/gf_demo/url
 usernamepostgres/username
 passwordpostgres/password
   /configuration
   !
   executions
 execution
   phasetest/phase
   goals
 goaloperation/goal
   /goals
   !--specific configurations--
   configuration
 typeINSERT/type
 srcdbUnit/04_formulaire14000.xml/src
   /configuration
 /execution
   /executions
 /plugin

Greets

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



Re: DbUnit plugin

2008-02-06 Thread VUB Stefan Seidel

Quote from http://maven-plugins.sourceforge.net/
 Maven Plugins is a collection of plugins for Apache Maven 1.x

What is your dbunit configuration in your pom.xml?

Stefan

Julien FOROT wrote:

Hi !

I have a problem with DbUnit plugin. First, why there is a 
maven-dbunit-plugin on http://maven-plugins.sourceforge.net/ and why 
there is dbunit-maven-plugin on http://mojo.codehaus.org/ ? Is it the 
same ? If not which is the best (I want to ba able to inject data from 
dataset during test phase)..


Then I tried the 2 plugins :
- The plugin from codehaus don't make error when running. Here the only 
trace I get from it : [INFO] dbunit:operation. So I believe the data is 
inject in the db but I can't find it.. :s


- I can't install the plugin from sourceforge, I get this error message :
The PluginDescriptor for the plugin Plugin 
[maven-plugins:maven-dbunit-plugin] was not found.
That's strange because I specify version 1.6 and it check on 
http://repo1.maven.org/maven2/maven-plugins/ where there is a .plugin 
(so plugin descriptor right ?) on the 1.6 directory..


Thanks for helping me to solve my problem !

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



--
best regards,

Stefan Seidel
software developer

VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel.+49 (341) 9 60 50 07
fax.+49 (341) 9 60 50 92
mail.   [EMAIL PROTECTED]
web.www.vub.de

HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf

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



DbUnit plugin

2008-02-06 Thread Julien FOROT

Hi !

I have a problem with DbUnit plugin. First, why there is a 
maven-dbunit-plugin on http://maven-plugins.sourceforge.net/ and why 
there is dbunit-maven-plugin on http://mojo.codehaus.org/ ? Is it the 
same ? If not which is the best (I want to ba able to inject data from 
dataset during test phase)..


Then I tried the 2 plugins :
- The plugin from codehaus don't make error when running. Here the only 
trace I get from it : [INFO] dbunit:operation. So I believe the data is 
inject in the db but I can't find it.. :s


- I can't install the plugin from sourceforge, I get this error message :
The PluginDescriptor for the plugin Plugin 
[maven-plugins:maven-dbunit-plugin] was not found.
That's strange because I specify version 1.6 and it check on 
http://repo1.maven.org/maven2/maven-plugins/ where there is a .plugin 
(so plugin descriptor right ?) on the 1.6 directory..


Thanks for helping me to solve my problem !

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



Re: DbUnit plugin

2008-02-06 Thread Julien FOROT

VUB Stefan Seidel a écrit :

Ok, some hints:
we use
version1.0-beta-1/version

Well I already used this version..

and I do not see a format tag.

Stefan

I add it but it seems that it changes nothing..

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



Re: DbUnit plugin

2008-02-06 Thread VUB Stefan Seidel

Ok, some hints:
we use
version1.0-beta-1/version
and I do not see a format tag.

Stefan

Julien FOROT wrote:

VUB Stefan Seidel a écrit :

Quote from http://maven-plugins.sourceforge.net/
 Maven Plugins is a collection of plugins for Apache Maven 1.x


Ok then I have to use plugin from codehaus, thanks..

What is your dbunit configuration in your pom.xml?

This is my config :

 plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIddbunit-maven-plugin/artifactId
   !-- jar file that has the jdbc driver--
   dependencies
 dependency
   groupIdpostgresql/groupId
   artifactIdpostgresql/artifactId
   version8.2-504.jdbc3/version
 /dependency
   /dependencies

   !-- common configurations --
   configuration
 driverorg.postgresql.Driver/driver
 urljdbc:postgresql://localhost:5432/gf_demo/url
 usernamepostgres/username
 passwordpostgres/password
   /configuration
   !
   executions
 execution
   phasetest/phase
   goals
 goaloperation/goal
   /goals
   !--specific configurations--
   configuration
 typeINSERT/type
 srcdbUnit/04_formulaire14000.xml/src
   /configuration
 /execution
   /executions
 /plugin

Greets

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



--
best regards,

Stefan Seidel
software developer

VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel.+49 (341) 9 60 50 07
fax.+49 (341) 9 60 50 92
mail.   [EMAIL PROTECTED]
web.www.vub.de

HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf

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



Problem debugging classes compiled by plexus-compiler-plugin

2008-02-06 Thread Wichan Threamthrakanpon ext
Hi all,

as I cannot find any other mailing lists specific to maven plugin, so I guess, 
this is the right place.

I have a problem with plexus-compiler-eclipse maven plugin. After I compiled 
source code with plexus plugin, I cannot debug the
generated classes in eclipse debug perspective. The message source not found 
is always shown, eventhough the source was already
added.

After having a look into the generated classes, I found that the debug 
information is different from the one I compiled with eclipse
jdt. For example,

Debug information from eclipse jdt compiler
Source File Name:   MyClass.java

Debug information from plexus-compiler-eclipse maven plugin
Source File Name:   com.mydomain.myproject.MyClass

This probable causes the problem.

I think, plexus plugin also uses eclipse jdt to compile java source code, but 
how come the debug information is generated
differently? Do I need to set any plexus-specific arguments to fix this?

Thank you and regards,

Wichan


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



Maven properties resolution for surefire properties

2008-02-06 Thread Erez Nahir
Hi,

Using surefire 2.4 and 2.4.1, and maven 2.0.7 I have this configuration:
In parent pom.xml

...
properties
root.dir${project.build.directory}/test-classes/root.dir
/properteis

In my surefire configuration I do:
pluginManagement
  plugins
plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-surefire-plugin/artifactId
   version2.4.1/version
   configuration
 systemProperties
property
  namemy.property/name
  value${root.dir}/value
/property
...

in a child pom, I have only:
...
   plugin
artifactIdmaven-surefire-plugin/artifactId
   /plugin
  /plugins
 /build

But, when runnig the build, ${project.build.directory} is not resoved to
target.
Is that expected behavior?

Thanks,
Erez.


Re: DbUnit plugin

2008-02-06 Thread VUB Stefan Seidel

Ok, another thought:
we have src in pluginconfiguration, not in executionconfiguration
and the path to the file referenced in src is relative to the pom.xml.

Stefan

Julien FOROT wrote:

VUB Stefan Seidel a écrit :

Ok, some hints:
we use
version1.0-beta-1/version

Well I already used this version..

and I do not see a format tag.

Stefan

I add it but it seems that it changes nothing..

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



--
best regards,

Stefan Seidel
software developer

VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel.+49 (341) 9 60 50 07
fax.+49 (341) 9 60 50 92
mail.   [EMAIL PROTECTED]
web.www.vub.de

HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf

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



RE: Continuum 1.1 @ Tomcat 6

2008-02-06 Thread SlinnHawkins, Jon (ELS-CAM)
Hi Martin 

I successfully installed by following the instructions on :

http://docs.codehaus.org/display/MAVENUSER/Archiva+on+Tomcat

HTH

Jon 

-Original Message-
From: Ritz, Martin [mailto:[EMAIL PROTECTED] 
Sent: 06 February 2008 12:15
To: [EMAIL PROTECTED]
Subject: WG: Continuum 1.1 @ Tomcat 6


 Hi Continuum user group,
 
 I want to install continuum in my existing Tomcat 6 Server.
 I followed the instructions on Guide to Install Continuum on Tomcat
(http://maven.apache.org/continuum/docs/1.1/installation/tomcat.html).
 I created an context.xml and added the libraries.
 But I get still this error: 
 
 WARN  org.apache.commons.configuration.JNDIConfiguration  - Internal 
 error
 javax.naming.NameNotFoundException: Name java:comp is not bound in 
 this Context
 
 I can't get my continuum running at the tomcat due to this error.
 Can anybody help my with this issue?
 What I have to change/ add?
 
 
 ---
 rgds
 Martin Ritz
 
 BTC AG - Unit Softwaredevelopment
 mailto:[EMAIL PROTECTED]
 


This email is from Elsevier Limited, a company registered in England and Wales 
with company number 1982084,
whose registered office is The Boulevard, Langford Lane, Kidlington, Oxford, 
OX5 1GB, United Kingdom.



WG: Continuum 1.1 @ Tomcat 6

2008-02-06 Thread Ritz, Martin

 Hi Continuum user group,
 
 I want to install continuum in my existing Tomcat 6 Server.
 I followed the instructions on Guide to Install Continuum on Tomcat 
 (http://maven.apache.org/continuum/docs/1.1/installation/tomcat.html).
 I created an context.xml and added the libraries.
 But I get still this error: 
 
 WARN  org.apache.commons.configuration.JNDIConfiguration  - Internal error
 javax.naming.NameNotFoundException: Name java:comp is not bound in this 
 Context
 
 I can't get my continuum running at the tomcat due to this error.
 Can anybody help my with this issue?
 What I have to change/ add?
 
 
 ---
 rgds
 Martin Ritz
 
 BTC AG - Unit Softwaredevelopment
 mailto:[EMAIL PROTECTED]
 


AW: Continuum 1.1 @ Tomcat 6

2008-02-06 Thread Ritz, Martin
I followed exactly this instructions but it doesn't work.

Martin 

-Ursprüngliche Nachricht-
Von: SlinnHawkins, Jon (ELS-CAM) [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 6. Februar 2008 13:21
An: [EMAIL PROTECTED]
Betreff: RE: Continuum 1.1 @ Tomcat 6

Hi Martin 

I successfully installed by following the instructions on :

http://docs.codehaus.org/display/MAVENUSER/Archiva+on+Tomcat

HTH

Jon 

-Original Message-
From: Ritz, Martin [mailto:[EMAIL PROTECTED]
Sent: 06 February 2008 12:15
To: [EMAIL PROTECTED]
Subject: WG: Continuum 1.1 @ Tomcat 6


 Hi Continuum user group,
 
 I want to install continuum in my existing Tomcat 6 Server.
 I followed the instructions on Guide to Install Continuum on Tomcat
(http://maven.apache.org/continuum/docs/1.1/installation/tomcat.html).
 I created an context.xml and added the libraries.
 But I get still this error: 
 
 WARN  org.apache.commons.configuration.JNDIConfiguration  - Internal 
 error
 javax.naming.NameNotFoundException: Name java:comp is not bound in 
 this Context
 
 I can't get my continuum running at the tomcat due to this error.
 Can anybody help my with this issue?
 What I have to change/ add?
 
 
 ---
 rgds
 Martin Ritz
 
 BTC AG - Unit Softwaredevelopment
 mailto:[EMAIL PROTECTED]
 


This email is from Elsevier Limited, a company registered in England and Wales 
with company number 1982084,
whose registered office is The Boulevard, Langford Lane, Kidlington, Oxford, 
OX5 1GB, United Kingdom.




Re: DbUnit plugin

2008-02-06 Thread Julien FOROT

VUB Stefan Seidel a écrit :

Ok, another thought:
we have src in pluginconfiguration, not in 
executionconfiguration
I tried this, it don't work too.. I think that's correct to put this on 
execution.

and the path to the file referenced in src is relative to the pom.xml.

Yes I know, if the path is not correct, you get a fileNotFoundException.

Julien

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



Re: howto configure svn access with maven2 using ssh connection

2008-02-06 Thread Ulrich Metzger
Thanks for the quick reply,
but maybe this is not what i want.

as far as i know, the svn repository access is configured in the scm /
section.
I want to acces a subversion source repository not a maven artifact
repository.
So i configured something like the following to access the server's
subversion repository using ssh:

scm
connection
scm:svn:svn+ssh://[EMAIL 
PROTECTED]/path/to/repository/http://scm//[EMAIL 
PROTECTED]/path/to/repository/
/connection
developerConnection
scm:svn:svn+ssh://[EMAIL 
PROTECTED]/path/to/repository/http://scm//[EMAIL 
PROTECTED]/path/to/repository/
/developerConnection
tagHEAD/tag
/scm

Which does not work.
I wonder where the password for the ssh connection should be stored, and how
the correct subversion db path could be located (maybe throught the HEAD
tag)?

hope someone knows more about this type of scm configuration.

Uli

2008/2/5, Simon Kitching [EMAIL PROTECTED]:

  Ulrich Metzger [EMAIL PROTECTED] schrieb:
  Hi list,
  i tryed to configure the scm settings in a maven 2 pom.xml using ssh to
  access the remote svn repository.
  But i could not find any example or documentation how to manage this.
  Does anybody know if this is possible and if yes, how to set up this
 kind of
  repository access, when a username and password is required for ssh
 login on
  the remote machine.
  I would be interested in a solution which works with Windows and Linux
  client systems.

 I have this in ~/.m2/settings.xml:

 settings
   servers
 server
   idserver1/id
   usernameuser1/username
   passwordpwd1/password
 /server

 server
   idserver2/id
   usernameuser2/username
   passwordpwd2/password
   privateKey/home/user2/.ssh/somekey/privateKey
 /server
   /servers
 /settings

 where the ids match the id properties of the repository definitions in the
 pom.xml file.

 Regards,
 Simon



Conceptual Confusion about build and release process using maven.

2008-02-06 Thread amit kumar
Hi,
Please pardon me for such a long mail but couldn't cut it any shorter.

After 2 months of being assigned the task of mavenizing the whole
product at my workplace and build and release automation process with
Continuous Integration, I have been able to mavenize the product and
put continuum and mavenized CVS structure in sync.
But while pondering over how to go about with the build an release
strategy I got myself in deep confusion.

The product (as usual) has several submodules with separate developers
and with many intermodule dependencies. My understanding of the whole
process till now has been like below

Development environment, after intranet maven repository in place
would be something like this: owner of module A would deploy the A.jar
on maven repository from where the other module owners which depend on
a.jar would fetch it from. And as the development goes on for module
A, the owner of module will keep on changing the versions (with in an
iteration as well) and deploying it on to the maven repository and
dependent modules will keep on changing the version in their pom.xml
for a.jar.(unsure about whether this is how it happens)

All these developments in various modules keep on getting committed
into the CVS from where the Continuum keeps on checking out and
building ( Continuous Integration).

Now my confusion over my own understanding and assumption is:

1) During the development process within an iteration, how to make
sure that all the module owners dependent on a.jar keeps up to date
with the changing versions of a.jar as the development goes on until
Integration Testing.

2) If a module owner dependent on a.jar fails to update the version of
the a.jar in the pom.xml and/or miss to commit the updated pom.xml
with a contemporary version of a.jar. Continuous Integration at
Continuum would suffer( assuming that even with not up to date version
of a.jar the module still gets through build),

Pardon me for any wrong assumptions, I do not have much exposure to the process.

Regards,
Amit

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



[ANNOUNCE] Good news! Maven 2 talk accepted at JavaOne 2008

2008-02-06 Thread Jim Bethancourt
Hi everyone,
I found out last week that my presentation proposal, Migrating to Maven 2
Demystified, was accepted for presentation at this year's JavaOne.  In the
presentation, I will be showing how to Mavenize Google's Guice framework one
step at a time, while being minimally invasive to the codebase as possible.
It will be useful to folks curious about Maven 2 but on the fence because of
the migration process, or who want to learn about how to manage multi-module
builds that leverage the reactor.  I don't know the exact date and time yet,
but I will gladly post this information so it can be included on the Apache
Maven website.

If anyone has tips on how you have found explaining Maven 2 to be most
effective, I most definitely welcome them. :-)

Is anyone else presenting on Maven 2 this year at JavaOne?

Cheers,
Jim


Re: howto configure svn access with maven2 using ssh connection

2008-02-06 Thread Julien FOROT

Ulrich Metzger a écrit :

Thanks for the quick reply,
but maybe this is not what i want.

as far as i know, the svn repository access is configured in the scm /
section.
I want to acces a subversion source repository not a maven artifact
repository.
So i configured something like the following to access the server's
subversion repository using ssh:

scm
connection
scm:svn:svn+ssh://[EMAIL 
PROTECTED]/path/to/repository/http://scm//[EMAIL 
PROTECTED]/path/to/repository/
/connection
developerConnection
scm:svn:svn+ssh://[EMAIL 
PROTECTED]/path/to/repository/http://scm//[EMAIL 
PROTECTED]/path/to/repository/
/developerConnection
tagHEAD/tag
/scm

Which does not work.
I wonder where the password for the ssh connection should be stored, and how
the correct subversion db path could be located (maybe throught the HEAD
tag)?

hope someone knows more about this type of scm configuration.

Uli
Well I'm working on it atm, and have still soe problems for server 
password (I have prompt which ask me password for user..) In theory, in 
your settings.xml you have to add the server info as simon said..


For my scm conf, I have somthing like this, and despite the password 
prompt, it works :

 scm
   
connectionscm:svn:svn+ssh://[EMAIL PROTECTED]/${root_svn}/trunk/path/to/project//connection

   developerConnection
 
scm:svn:svn+ssh://[EMAIL PROTECTED]/${root_svn}/trunk/path/to/project/

   /developerConnection
 /scm

I hope it can help you..

Julien

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



RE: Conceptual Confusion about build and release process using maven.

2008-02-06 Thread Edelson, Justin
 1) During the development process within an iteration, how to make
 sure that all the module owners dependent on a.jar keeps up to date
 with the changing versions of a.jar as the development goes on until
 Integration Testing.
It sounds to me like you want to use a SNAPSHOT version within each iteration. 
That way dependent module owners don't need to constantly update their poms. 
Once  you hit your testing phase, do an alpha or beta release of all the 
modules and test against that.
 
Just my 2 cents.
 
Justin



From: amit kumar [mailto:[EMAIL PROTECTED]
Sent: Wed 2/6/2008 9:25 AM
To: users@maven.apache.org
Subject: Conceptual Confusion about build and release process using maven.



Hi,
Please pardon me for such a long mail but couldn't cut it any shorter.

After 2 months of being assigned the task of mavenizing the whole
product at my workplace and build and release automation process with
Continuous Integration, I have been able to mavenize the product and
put continuum and mavenized CVS structure in sync.
But while pondering over how to go about with the build an release
strategy I got myself in deep confusion.

The product (as usual) has several submodules with separate developers
and with many intermodule dependencies. My understanding of the whole
process till now has been like below

Development environment, after intranet maven repository in place
would be something like this: owner of module A would deploy the A.jar
on maven repository from where the other module owners which depend on
a.jar would fetch it from. And as the development goes on for module
A, the owner of module will keep on changing the versions (with in an
iteration as well) and deploying it on to the maven repository and
dependent modules will keep on changing the version in their pom.xml
for a.jar.(unsure about whether this is how it happens)

All these developments in various modules keep on getting committed
into the CVS from where the Continuum keeps on checking out and
building ( Continuous Integration).

Now my confusion over my own understanding and assumption is:

1) During the development process within an iteration, how to make
sure that all the module owners dependent on a.jar keeps up to date
with the changing versions of a.jar as the development goes on until
Integration Testing.

2) If a module owner dependent on a.jar fails to update the version of
the a.jar in the pom.xml and/or miss to commit the updated pom.xml
with a contemporary version of a.jar. Continuous Integration at
Continuum would suffer( assuming that even with not up to date version
of a.jar the module still gets through build),

Pardon me for any wrong assumptions, I do not have much exposure to the process.

Regards,
Amit

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




Re: DbUnit plugin

2008-02-06 Thread Jan Fredrik Wedén
I believe http://maven-plugins.sourceforge.net/ hosts Maven 1.x
plugins while http://mojo.codehaus.org/ hosts Maven 2.x plugins.

On Feb 6, 2008 12:48 PM, Julien FOROT [EMAIL PROTECTED] wrote:
 Hi !

 I have a problem with DbUnit plugin. First, why there is a
 maven-dbunit-plugin on http://maven-plugins.sourceforge.net/ and why
 there is dbunit-maven-plugin on http://mojo.codehaus.org/ ? Is it the
 same ? If not which is the best (I want to ba able to inject data from
 dataset during test phase)..

 Then I tried the 2 plugins :
 - The plugin from codehaus don't make error when running. Here the only
 trace I get from it : [INFO] dbunit:operation. So I believe the data is
 inject in the db but I can't find it.. :s

 - I can't install the plugin from sourceforge, I get this error message :
 The PluginDescriptor for the plugin Plugin
 [maven-plugins:maven-dbunit-plugin] was not found.
 That's strange because I specify version 1.6 and it check on
 http://repo1.maven.org/maven2/maven-plugins/ where there is a .plugin
 (so plugin descriptor right ?) on the 1.6 directory..

 Thanks for helping me to solve my problem !

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





-- 
- Jan Fredrik Wedén

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



Re: DbUnit plugin

2008-02-06 Thread Julien FOROT

Jan Fredrik Wedén a écrit :

I believe http://maven-plugins.sourceforge.net/ hosts Maven 1.x
plugins while http://mojo.codehaus.org/ hosts Maven 2.x plugins.

Thanks, Stefan already explain me that ! ;)

In fact it seems that it is a bug :
http://jira.codehaus.org/browse/MOJO-645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_98430

But it seems that there is no answer or fix version.. :s

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



users per project group

2008-02-06 Thread Artamonov, Juri
Hi Guys,

 

Could you please tell me if it's possible in 1.1 to have users per projects 
group, so they can't build any project that they not related with?

 

Another question, if it's possible to have username of the person who started 
the build if it's forced?

 

Thanks,

  Juri.



Re: users per project group

2008-02-06 Thread Jesse McConnell
2008/2/6 Artamonov, Juri [EMAIL PROTECTED]:

 Hi Guys,



 Could you please tell me if it's possible in 1.1 to have users per
 projects group, so they can't build any project that they not related with?

 yes, there is possible in the existing role management setup




 Another question, if it's possible to have username of the person who
 started the build if it's forced?

 nope, don't think do



jesse


-- 
jesse mcconnell
[EMAIL PROTECTED]


Attaching javadoc to a non-maven artefact

2008-02-06 Thread Richard Chamberlain
Hey all,

I've got a non maven artefact that i've added to my company repository
with mvn deploy:deploy-file. However i also have the javadoc and would
like to add it to the repo.

mvn deploy:deploy-file seems to only handle one file, so i'm at a loss
as to how to get the javadoc in the repo.

Thanks,

Rich

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



Re: Attaching javadoc to a non-maven artefact

2008-02-06 Thread Simon Kitching
 Richard Chamberlain [EMAIL PROTECTED] schrieb:
 Hey all,
 
 I've got a non maven artefact that i've added to my company repository
 with mvn deploy:deploy-file. However i also have the javadoc and would
 like to add it to the repo.
 
 mvn deploy:deploy-file seems to only handle one file, so i'm at a loss
 as to how to get the javadoc in the repo.

Just copy it there, using scp or whatever works for your system. 

Using deploy-file is important for the binary code jar, in order to create the 
right meta-data files. But AFAIK there is no additional meta-data needed for 
associated files like javadoc or source.

Regards,
Simon

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



RE: Archiva version missing from pages and logs

2008-02-06 Thread Ben Lidgey

Raised as http://jira.codehaus.org/browse/MRM-683

FWIW the version in the HTML is Unknown Version which means it is not 
displayed in the browser. That is documented in the issue too.

Ben

 -Original Message-
 From: Wendy Smoak [mailto:[EMAIL PROTECTED]
 Sent: 06 February 2008 15:42
 To: [EMAIL PROTECTED]
 Subject: Re: Archiva version missing from pages and logs

 On Feb 6, 2008 7:44 AM, Ben Lidgey
 [EMAIL PROTECTED] wrote:
 
  I have just upgraded to Archiva 1.0.1 I think (deployed as
 a war file
  on tomcat), and wanted to confirm the upgrade had worked,
 but cannot find any references to the version in the logs or
 on the pages.
 
  In the logs I get the alpaca ASCII art as shown:
 ...
  |  (  \  /  | Unknown Version  |

 Please open an issue-- the version number should be in the
 footer and in the logs.  (FWIW, it does work in the
 standalone version.)

 To verify that you have 1.0.1, expand the .war file and look
 in
 META-INF/maven/org.apache.maven.archiva/archiva-webapp/pom.properties.

 --
 Wendy



This e-mail is confidential and intended solely for the use of the 
individual(s) to whom it is addressed. Any views or opinions expressed are 
those of the author. If you are not the intended recipient, please be advised 
that any use, dissemination, printing or copying of this email is strictly 
prohibited.



RE: Attaching javadoc to a non-maven artefact

2008-02-06 Thread nicklist
Use the -Dclassifier option of deploy:deploy-file [1]. As far as I know it's 
just another classifier of the same artifact.

Hth,

Nick Stolwijk

[1] 
http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html#classifier

-Original Message-
From: Richard Chamberlain [mailto:[EMAIL PROTECTED]
Sent: Wed 2/6/2008 4:51 PM
To: Maven Users List
Subject: Attaching javadoc to a non-maven artefact
 
Hey all,

I've got a non maven artefact that i've added to my company repository
with mvn deploy:deploy-file. However i also have the javadoc and would
like to add it to the repo.

mvn deploy:deploy-file seems to only handle one file, so i'm at a loss
as to how to get the javadoc in the repo.

Thanks,

Rich

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




RE: building a assembly

2008-02-06 Thread nicklist
Hi,

Did you take a look at the Maven Application Assembler Plugin? [1] This will 
create the zip file you are asking for.

Hth,

Nick Stolwijk

[1] http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/


-Original Message-
From: Alexander Petri [mailto:[EMAIL PROTECTED]
Sent: Wed 2/6/2008 5:09 PM
To: users@maven.apache.org
Subject: building a assembly
 
Hi,

 

i want to create a zipfile after packaging (for fullinstall) using the
assembly plugin which should contain

some folders, the jars (dependencies),the main jar(with main.class) and

a batchfile to start the application. = it's a cli application

the problem is that the zipfile doesn't contain the main jar.

How can I put the main jarfile into the zip?

 

Here is my assembly xml for now:

 

?xml version=1.0 encoding=UTF-8?

assembly

  idmy-src/id

  formats

formatzip/format

  /formats

  fileSets

  fileSet

directoryreports/directory

  /fileSet

  fileSet

directoryoutput/directory

  /fileSet

  fileSet

directorylog/directory

/fileSet  

  /fileSets

  dependencySets

dependencySet

  scoperuntime/scope

outputDirectorylib/outputDirectory

  /dependencySet

  /dependencySets  

/assembly




Installing Native DLL's into local repository

2008-02-06 Thread Adamson, Eric (DIT)
I'm working with the JACOB (Java-COM Bridge) library, and would like to
install its artifacts -- JACOB.JAR and JACOB.DLL -- into my local
repository.  Installing the JAR was easy, but I'm unclear on how to
handle the native library.  How does one manage this correctly?

Also, how best to search the list archives?  I'm only finding posts
archived by month ( at
http://mail-archives.apache.org/mod_mbox/maven-users/ ) but no broad
search facility.

Thanks in advance,

  Eric Adamson
  State of Michigan


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



Re: DbUnit plugin

2008-02-06 Thread Jan Fredrik Wedén
On Feb 6, 2008 5:38 PM, Julien FOROT [EMAIL PROTECTED] wrote:
 Jan Fredrik Wedén a écrit :
  I believe http://maven-plugins.sourceforge.net/ hosts Maven 1.x
  plugins while http://mojo.codehaus.org/ hosts Maven 2.x plugins.
 Thanks, Stefan already explain me that ! ;)

Sorry, I didn't notice his quote with the '' prefix.

 In fact it seems that it is a bug :
 http://jira.codehaus.org/browse/MOJO-645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_98430

 But it seems that there is no answer or fix version.. :s

I don't use this plugin myself so I'm afraid I don't have any
suggestions other than what's already mentioned in the thread.

You could always download the plugin source and do some debugging to
see what it actually does - or in your case doesn't do :-)


-- 
- Jan Fredrik Wedén

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



building a assembly

2008-02-06 Thread Alexander Petri
Hi,

 

i want to create a zipfile after packaging (for fullinstall) using the
assembly plugin which should contain

some folders, the jars (dependencies),the main jar(with main.class) and

a batchfile to start the application. = it's a cli application

the problem is that the zipfile doesn't contain the main jar.

How can I put the main jarfile into the zip?

 

Here is my assembly xml for now:

 

?xml version=1.0 encoding=UTF-8?

assembly

  idmy-src/id

  formats

formatzip/format

  /formats

  fileSets

  fileSet

directoryreports/directory

  /fileSet

  fileSet

directoryoutput/directory

  /fileSet

  fileSet

directorylog/directory

/fileSet  

  /fileSets

  dependencySets

dependencySet

  scoperuntime/scope

outputDirectorylib/outputDirectory

  /dependencySet

  /dependencySets  

/assembly



Re: [ANNOUNCE] Good news! Maven 2 talk accepted at JavaOne 2008

2008-02-06 Thread Christian Edward Gruber
No, but I will be submitting a talk about build systems (using Maven2  
as the implementation) and their effect on architecture and process  
change efforts at Agile2008.


regards,
Christian.

On 6-Feb-08, at 09:30 , Jim Bethancourt wrote:


Hi everyone,
I found out last week that my presentation proposal, Migrating to  
Maven 2
Demystified, was accepted for presentation at this year's JavaOne.   
In the
presentation, I will be showing how to Mavenize Google's Guice  
framework one
step at a time, while being minimally invasive to the codebase as  
possible.
It will be useful to folks curious about Maven 2 but on the fence  
because of
the migration process, or who want to learn about how to manage  
multi-module
builds that leverage the reactor.  I don't know the exact date and  
time yet,
but I will gladly post this information so it can be included on the  
Apache

Maven website.

If anyone has tips on how you have found explaining Maven 2 to be most
effective, I most definitely welcome them. :-)

Is anyone else presenting on Maven 2 this year at JavaOne?

Cheers,
Jim



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



Re: Installing Native DLL's into local repository

2008-02-06 Thread Jeff MAURY
Look at the deploy plugin or the native plugin.

Jeff


On Feb 6, 2008 5:14 PM, Adamson, Eric (DIT) [EMAIL PROTECTED] wrote:

 I'm working with the JACOB (Java-COM Bridge) library, and would like to
 install its artifacts -- JACOB.JAR and JACOB.DLL -- into my local
 repository.  Installing the JAR was easy, but I'm unclear on how to
 handle the native library.  How does one manage this correctly?

 Also, how best to search the list archives?  I'm only finding posts
 archived by month ( at
 http://mail-archives.apache.org/mod_mbox/maven-users/ ) but no broad
 search facility.

 Thanks in advance,

  Eric Adamson
  State of Michigan


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




-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com


RE: Renaming resulting directory from war:exploded

2008-02-06 Thread Allen, Daniel
To answer my own question (for the archives and those searching them),
once I got into the source, it turned out that there were set/get
methods for a property called webappDirectory. I didn't see it in the
documentation, but all the other set/get methods corresponded to
parameters you could put in the POM's plugin config, so I tried it, and
it works!

So, adding
webappDirectory${project.build.directory}\desiredName/webappDirectory
 to the configuration will solve this problem. It will rename the
intermediary directory from which the WAR is created desiredName and
have it in the target directory with the rest of the results. (Omitting
${project\build\directory} has it default to the base directory where
your main POM is.) This applies to both war:war and war:exploded (for
the latter, the directory in question is just the final product instead
of an intermediary). It may apply to other goals in the plugin, but I
didn't try it.

~Dan Allen

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 05, 2008 6:05 PM
To: Maven Users List
Subject: Re: Renaming resulting directory from war:exploded

Not sure why your Ant script isn't working. Are you sure it works if
you execute it in Ant? I'm not sure when exploded is bound -- check -X
to make sure your Ant happens after exploded etc.

You could also patch the war plugin to support an additional parameter
(or just use warName) when war:exploded is executed.

Donate your patch back via JIRA and we can all benefit.

Wayne

On 2/5/08, Allen, Daniel [EMAIL PROTECTED] wrote:
 Hi all,

 I've been using the war plugin to package up a web app. However, to
save
 time, it would be great if the result had a consistent name so that we
 could copy it directly into the Tomcat/webapps directory and have it
 startup with the proper context path.

 In the call to the war plugin, I used the warName tag, and that
works
 just fine for my live build, which uses war:war. However, my dev build
 profile uses war:exploded instead, and the warName doesn't seem to
 have any effect. I tried using antrun, as below, but that doesn't seem
 to have any effect either. When I run mvn -P dev clean package, the
 output does claim to be executing this task (referred to by the ID
 element, so I know it's not another antrun I've used), but the result
is
 still just an exploded war that has the standard maven name scheme of
 artifactId-version.

   plugin
   artifactIdmaven-antrun-plugin/artifactId
   executions
   execution
   idRenameFinalDirectory/id
   phasepackage/phase
   goals
   goalrun/goal
   /goals
   configuration
   tasks
   mkdir
 dir=${project.build.directory}\${project.name}/
   move
 todir=${project.build.directory}\${project.name}
   fileset

dir=${project.build.directory}\${project.artifactId}-${project.version}
 /
   /move
   /tasks
   /configuration
   /execution
  /executions
   /plugin

 Any suggestions on why this doesn't work, or what I might use instead?

 --
 This message may contain confidential, proprietary, or legally
privileged
 information. No confidentiality or privilege is waived by any
transmission
 to an unintended recipient. If you are not an intended recipient,
please
 notify the sender and delete this message immediately. Any views
expressed
 in this message are those of the sender, not those of any entity
within the
 KBC Financial Products group of companies (together referred to as
KBC
 FP).

 This message does not create any obligation, contractual or otherwise,
on
 the part of KBC FP. It is not an offer (or solicitation of an offer)
of, or
 a recommendation to buy or sell, any financial product. Any prices or
other
 values included in this message are indicative only, and do not
necessarily
 represent current market prices, prices at which KBC FP would enter
into a
 transaction, or prices at which similar transactions may be carried on
KBC
 FP's own books. The information contained in this message is provided
as
 is, without representations or warranties, express or implied, of any
kind.
 Past performance is not indicative of future returns.


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


-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is 

Re: [ANN] Maven Surefire Plugin 2.4.1 for Maven 2 Released -- Ref #[1MFmI5QXPR0Vgmu]

2008-02-06 Thread announcement

Hello,

Thank you for contacting NetZero.

This is an automated reply and no further response will be sent.  Please do not 
reply to this email. 

If you are looking for help here are some useful links:

 * Online NetZero Help Center: http://www.netzero.com/support
 * Online Billing and Account Center: https://account.netzero.net
 * Reset/Retrieve your Password: http://my.netzero.com/s/resetpassword
 * Lookup Access Numbers in your area: http://my.netzero.com/s/numbers
 * Contact Us: http://www.netzero.net/support/support.html

Thank you for choosing NetZero.

Sincerely,

NetZero Customer Support





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



RE: building a assembly

2008-02-06 Thread Richard Chamberlain
You need to explicitly add the created jar, something like the following
works fine for me:

fileSet
  directorytarget/directory
  outputDirectory/outputDirectory
  includes
include*.jar/include
  /includes
/fileSet



-Original Message-
From: Alexander Petri [mailto:[EMAIL PROTECTED] 
Sent: 06 February 2008 16:10
To: users@maven.apache.org
Subject: building a assembly

Hi,

 

i want to create a zipfile after packaging (for fullinstall) using the
assembly plugin which should contain

some folders, the jars (dependencies),the main jar(with main.class) and

a batchfile to start the application. = it's a cli application

the problem is that the zipfile doesn't contain the main jar.

How can I put the main jarfile into the zip?

 

Here is my assembly xml for now:

 

?xml version=1.0 encoding=UTF-8?

assembly

  idmy-src/id

  formats

formatzip/format

  /formats

  fileSets

  fileSet

directoryreports/directory

  /fileSet

  fileSet

directoryoutput/directory

  /fileSet

  fileSet

directorylog/directory

/fileSet  

  /fileSets

  dependencySets

dependencySet

  scoperuntime/scope

outputDirectorylib/outputDirectory

  /dependencySet

  /dependencySets  

/assembly


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



Re: Renaming resulting directory from war:exploded

2008-02-06 Thread Wayne Fay
Good point, Daniel. I hadn't considered that parameter.

This parameter is covered in the docs, but it may be that an example
should be created for future people looking for this specific use
case, to make it more obvious:
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html

Wayne

On 2/6/08, Allen, Daniel [EMAIL PROTECTED] wrote:
 To answer my own question (for the archives and those searching them),
 once I got into the source, it turned out that there were set/get
 methods for a property called webappDirectory. I didn't see it in the
 documentation, but all the other set/get methods corresponded to
 parameters you could put in the POM's plugin config, so I tried it, and
 it works!

 So, adding
 webappDirectory${project.build.directory}\desiredName/webappDirectory
  to the configuration will solve this problem. It will rename the
 intermediary directory from which the WAR is created desiredName and
 have it in the target directory with the rest of the results. (Omitting
 ${project\build\directory} has it default to the base directory where
 your main POM is.) This applies to both war:war and war:exploded (for
 the latter, the directory in question is just the final product instead
 of an intermediary). It may apply to other goals in the plugin, but I
 didn't try it.

 ~Dan Allen

 -Original Message-
 From: Wayne Fay [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 05, 2008 6:05 PM
 To: Maven Users List
 Subject: Re: Renaming resulting directory from war:exploded

 Not sure why your Ant script isn't working. Are you sure it works if
 you execute it in Ant? I'm not sure when exploded is bound -- check -X
 to make sure your Ant happens after exploded etc.

 You could also patch the war plugin to support an additional parameter
 (or just use warName) when war:exploded is executed.

 Donate your patch back via JIRA and we can all benefit.

 Wayne

 On 2/5/08, Allen, Daniel [EMAIL PROTECTED] wrote:
  Hi all,
 
  I've been using the war plugin to package up a web app. However, to
 save
  time, it would be great if the result had a consistent name so that we
  could copy it directly into the Tomcat/webapps directory and have it
  startup with the proper context path.
 
  In the call to the war plugin, I used the warName tag, and that
 works
  just fine for my live build, which uses war:war. However, my dev build
  profile uses war:exploded instead, and the warName doesn't seem to
  have any effect. I tried using antrun, as below, but that doesn't seem
  to have any effect either. When I run mvn -P dev clean package, the
  output does claim to be executing this task (referred to by the ID
  element, so I know it's not another antrun I've used), but the result
 is
  still just an exploded war that has the standard maven name scheme of
  artifactId-version.
 
  plugin
  artifactIdmaven-antrun-plugin/artifactId
  executions
  execution
  idRenameFinalDirectory/id
  phasepackage/phase
  goals
  goalrun/goal
  /goals
  configuration
  tasks
  mkdir
  dir=${project.build.directory}\${project.name}/
  move
  todir=${project.build.directory}\${project.name}
  fileset
 
 dir=${project.build.directory}\${project.artifactId}-${project.version}
  /
  /move
  /tasks
  /configuration
  /execution
 /executions
  /plugin
 
  Any suggestions on why this doesn't work, or what I might use instead?
 
  --
  This message may contain confidential, proprietary, or legally
 privileged
  information. No confidentiality or privilege is waived by any
 transmission
  to an unintended recipient. If you are not an intended recipient,
 please
  notify the sender and delete this message immediately. Any views
 expressed
  in this message are those of the sender, not those of any entity
 within the
  KBC Financial Products group of companies (together referred to as
 KBC
  FP).
 
  This message does not create any obligation, contractual or otherwise,
 on
  the part of KBC FP. It is not an offer (or solicitation of an offer)
 of, or
  a recommendation to buy or sell, any financial product. Any prices or
 other
  values included in this message are indicative only, and do not
 necessarily
  represent current market prices, prices at which KBC FP would enter
 into a
  transaction, or prices at which similar transactions may be carried on
 KBC
  FP's own books. The information contained in this message is provided
 as
  is, without representations or warranties, express or implied, of any
 kind.
  Past performance is not indicative of future returns.
 
 
  

Archivia war link broken

2008-02-06 Thread Stefano Fornari
Hi,
I am not sure who I should point this out, but the link of the war
distribution of archivia is broken; it is:

http://mirror.nohup.it/apache/maven/binaries/apache-archiva-1.0.1war
instead of
http://mirror.nohup.it/apache/maven/binaries/apache-archiva-1.0.1.war

regards
Ste

-- 
Stefano Fornari - Funambol CTO
===
Home:
http://www.funambol.org

Documents:
http://www.funambol.org/documentation/documents.html

FAQ:
http://www.funambol.org/support/faq.html

WIKI:
https://wiki.objectweb.org/sync4j/

Mailinglist archives:
http://groups.yahoo.com/group/Sync4j (login required)
http://sourceforge.net/mailarchive/forum.php?forum_id=215 (sync4j-users)
http://sourceforge.net/mailarchive/forum.php?forum_id=48877
(funambol-dev)

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



Admin account locked

2008-02-06 Thread MATHUS Baptiste
Hi,

It seems I f#^$d up something with my archiva instance. I wasn't able to 
remember my admin password, so I asked for a reset.
I reset the account three or four times.

Now, I'm locked, each time I try to log in, I've got the 
http://mvnrepo:4000/archiva/index.action?infoMessage=Account+Locked url.

What can I do ? Even server-side operation to unlock me would help :-).

Thanks a lot.
Cheers

PS : Here's the full server stack I got : 
2008-02-06 19:17:59,723 [SocketListener0-1] WARN  
org.codehaus.plexus.redback.authentication.Authenticator:user-manager  - 
Password is Invalid for user admin.
2008-02-06 19:17:59,774 [SocketListener0-1] WARN  
com.opensymphony.xwork.util.OgnlUtil  - Caught OgnlException while setting 
property 'infoMessage' on type 
'com.opensymphony.webwork.dispatcher.ServletActionRedirectResult'.
ognl.NoSuchPropertyException: 
com.opensymphony.webwork.dispatcher.ServletActionRedirectResult.infoMessage
at 
ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:132)
at 
com.opensymphony.xwork.util.OgnlValueStack$ObjectAccessor.setProperty(OgnlValueStack.java:67)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)
at ognl.ASTProperty.setValueBody(ASTProperty.java:101)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
at ognl.SimpleNode.setValue(SimpleNode.java:246)
at ognl.Ognl.setValue(Ognl.java:476)
at com.opensymphony.xwork.util.OgnlUtil.setValue(OgnlUtil.java:188)
at 
com.opensymphony.xwork.util.OgnlUtil.internalSetProperty(OgnlUtil.java:362)
at com.opensymphony.xwork.util.OgnlUtil.setProperties(OgnlUtil.java:78)
at com.opensymphony.xwork.util.OgnlUtil.setProperties(OgnlUtil.java:51)
at 
com.opensymphony.xwork.ObjectFactory.buildResult(ObjectFactory.java:186)
at 
org.codehaus.plexus.xwork.PlexusObjectFactory.buildResult(PlexusObjectFactory.java:166)
at 
com.opensymphony.xwork.DefaultActionInvocation.createResult(DefaultActionInvocation.java:173)
at 
com.opensymphony.xwork.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:310)
at 
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:208)
at 
com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:175)
at 
com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
at 
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
at 
com.opensymphony.xwork.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:115)
at 
com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
at 
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
at 
org.apache.maven.archiva.web.interceptor.ConfigurationInterceptor.intercept(ConfigurationInterceptor.java:53)
at 
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
at 
org.codehaus.plexus.redback.xwork.interceptor.PolicyEnforcementInterceptor.intercept(PolicyEnforcementInterceptor.java:100)
at 
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
at 
org.codehaus.plexus.redback.xwork.interceptor.SecureActionInterceptor.intercept(SecureActionInterceptor.java:178)
at 
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
at 
com.opensymphony.xwork.interceptor.ParameterFilterInterceptor.intercept(ParameterFilterInterceptor.java:124)
at 
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
at 
com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:175)
at 
com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
at 
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
at 
com.opensymphony.xwork.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:115)
at 
com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
at 
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
at 
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
at 
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
at 
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
at 
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
at 
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
at 

Re: Admin account locked

2008-02-06 Thread Wendy Smoak
On Feb 6, 2008 11:19 AM, MATHUS Baptiste [EMAIL PROTECTED] wrote:
 It seems I f#^$d up something with my archiva instance. I wasn't able to 
 remember my admin password, so I asked for a reset.
 I reset the account three or four times.

 Now, I'm locked, each time I try to log in, I've got the 
 http://mvnrepo:4000/archiva/index.action?infoMessage=Account+Locked url.

 What can I do ? Even server-side operation to unlock me would help :-).

Stop Archiva, then re-start it.  The admin account should unlock.

If that doesn't work, you can connect to the users database directly
and modify it.

(You can safely ignore the NoSuchPropertyExceptions in the logs.)

-- 
Wendy


tests throw java.lang.NoClassDefFoundError for MVN, JUnit 4 but not eclipse

2008-02-06 Thread JavaGeek

Hello All,
I have a maven project with JUnit 4.0 unit tests.  Most of our unit tests
are failing in Surefire with the message pasted below.  However, all of the
unit tests work when launched from eclipse.  Does anyone have any ideas on
how to troubleshoot?

Thanks in Advance,
Steven


java.lang.NoClassDefFoundError
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at
org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)
 at
org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50)
 at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33)
 at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
 at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
 at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
 at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
 at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
 at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)

-- 
View this message in context: 
http://www.nabble.com/tests-throw-java.lang.NoClassDefFoundError-for-MVN%2C-JUnit-4-but-not-eclipse-tp15309895s177p15309895.html
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: tests throw java.lang.NoClassDefFoundError for MVN, JUnit 4 but not eclipse

2008-02-06 Thread Mark Eramo

Hi Steven,
My guess is there is a required jar in the eclipse classpath that is not 
in the Maven dependency section. You will just need to determine which 
jar this class is in. I'll bet that if you add this as a dependency 
inside the pom itself, these tests will work. You might need to compare 
the eclipse classpath to what you have in maven, there may be other jars 
missing as well.


Regards,
Mark


JavaGeek wrote:

Hello All,
I have a maven project with JUnit 4.0 unit tests.  Most of our unit tests
are failing in Surefire with the message pasted below.  However, all of the
unit tests work when launched from eclipse.  Does anyone have any ideas on
how to troubleshoot?

Thanks in Advance,
Steven


java.lang.NoClassDefFoundError
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at
org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)
 at
org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50)
 at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33)
 at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
 at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
 at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
 at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
 at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
 at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)

  


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



Re: Basic Repository Proxying settings

2008-02-06 Thread Doug Knesek

This has been done from the very beginning.  Actually, I created an archiva
user and assigned that user the role of repository manager and set up the
settings.xml like you have described. This has not worked. 

Do I need to make the user a repository observer also?  Are there logging
options that might help me determine if archiva is even getting the request
to proxy a request?


Maria Odea Ching-5 wrote:
 
 Sorry, I forgot to include that you need to do either of these two:
 1. Grant the repository observer role for your repo to user 'guest', OR
 2. Create a user in Archiva and assign it with the repository observer
 role
 for your repo, then set this in your settings.xml as well:
server
   id[REPO_ID]/id
   username[USERNAME]/username
   password[PASSWORD]/password
 /server
 
 -Deng
 
 On Feb 5, 2008 11:56 PM, Doug Knesek [EMAIL PROTECTED] wrote:
 

 I've essentially done all of the steps you listed.  But my builds fail
 immediately with:

 [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for
 updates from central
 [WARNING] repository metadata for: 'artifact
 org.apache.plugins:maven-clean-plugin' could not be retrieved from
 repository: central due to an error: Error transferring file
 [INFO] Repository 'central' will be blacklisted
 [INFO] 
 [ERROR] BUILD ERROR

 I am using Maven 2.0.8.  I there something special I have to do for
 plugins?


 Maria Odea Ching-5 wrote:
 
  Hi Doug,
 
  To force Maven to use only your Archiva managed repository (if you
 don't
  want to use the pre-configured 'internal' repository), you need to do
 the
  ff:
  1. Create a managed repository in Archiva
  2. By default, the central and java.net repos are already
 pre-configured.
  You can add another remote repository you want to proxy though.
  3. In the Proxy Connectors page, create a new proxy connector. Set the
  managed repo you've added to proxy a remote repository from the list.
  4. Set the following in your settings.xml file:
 
mirrors
  mirror
id[REPO_ID]/id
url[REPO_WEBDAV_URL]/url
mirrorOf*/mirrorOf
  /mirror
/mirrors
 
 
  Now, to set-up a deployment repository managed by Archiva..
  1. Create a new managed repo in Archiva
  2. Then set the webdav url of this managed repo in the
  distributionManagement section of your project's pom
 
  HTH,
  Deng
 
  On Feb 5, 2008 3:17 AM, Doug Knesek [EMAIL PROTECTED] wrote:
 
 
  I find the settings in the documentation about repository proxying to
 be
  unclear.  Here is what I'm trying to do:
 
  I want to force all my maven repository lookups to go through archiva
 -
  but
  I want it to behave just like a default maven installation except that
 I
  want my own deployments to be reside on my own repository managed by
  archiva.
 
  What maven/archiva settings would be required to make this happen?
 
  Thank you,
  - Doug
  --
  View this message in context:
 
 http://www.nabble.com/Basic-Repository-Proxying-settings-tp15275126p15275126.html
  Sent from the archiva-users mailing list archive at Nabble.com.
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Basic-Repository-Proxying-settings-tp15275126p15291547.html
 Sent from the archiva-users mailing list archive at Nabble.com.


 
 

-- 
View this message in context: 
http://www.nabble.com/Basic-Repository-Proxying-settings-tp15275126p15312074.html
Sent from the archiva-users mailing list archive at Nabble.com.



RE: Renaming resulting directory from war:exploded

2008-02-06 Thread Allen, Daniel
I think what I missed until I got into the source was that The
directory where the webapp is built, as the documentation refers to
webappDirectory, is actually the output for war:exploded, even though
it's just a working directory for war:war. So, I guess I didn't make the
connection between it and what I wanted without seeing that war:exploded
is implemented in the abstract superclass Mojo and actually called as a
precursor to the main war:war goal, using that string as an argument.

Is it a standard thing for plugins' goals to consitute their own little
mini-lifecycles this way?

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 06, 2008 12:38 PM
To: Maven Users List
Subject: Re: Renaming resulting directory from war:exploded

Good point, Daniel. I hadn't considered that parameter.

This parameter is covered in the docs, but it may be that an example
should be created for future people looking for this specific use
case, to make it more obvious:
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html

Wayne

On 2/6/08, Allen, Daniel [EMAIL PROTECTED] wrote:
 To answer my own question (for the archives and those searching them),
 once I got into the source, it turned out that there were set/get
 methods for a property called webappDirectory. I didn't see it in the
 documentation, but all the other set/get methods corresponded to
 parameters you could put in the POM's plugin config, so I tried it,
and
 it works!

 So, adding

webappDirectory${project.build.directory}\desiredName/webappDirectory
  to the configuration will solve this problem. It will rename the
 intermediary directory from which the WAR is created desiredName and
 have it in the target directory with the rest of the results.
(Omitting
 ${project\build\directory} has it default to the base directory
where
 your main POM is.) This applies to both war:war and war:exploded (for
 the latter, the directory in question is just the final product
instead
 of an intermediary). It may apply to other goals in the plugin, but I
 didn't try it.

 ~Dan Allen

 -Original Message-
 From: Wayne Fay [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 05, 2008 6:05 PM
 To: Maven Users List
 Subject: Re: Renaming resulting directory from war:exploded

 Not sure why your Ant script isn't working. Are you sure it works if
 you execute it in Ant? I'm not sure when exploded is bound -- check -X
 to make sure your Ant happens after exploded etc.

 You could also patch the war plugin to support an additional parameter
 (or just use warName) when war:exploded is executed.

 Donate your patch back via JIRA and we can all benefit.

 Wayne

 On 2/5/08, Allen, Daniel [EMAIL PROTECTED] wrote:
  Hi all,
 
  I've been using the war plugin to package up a web app. However, to
 save
  time, it would be great if the result had a consistent name so that
we
  could copy it directly into the Tomcat/webapps directory and have it
  startup with the proper context path.
 
  In the call to the war plugin, I used the warName tag, and that
 works
  just fine for my live build, which uses war:war. However, my dev
build
  profile uses war:exploded instead, and the warName doesn't seem to
  have any effect. I tried using antrun, as below, but that doesn't
seem
  to have any effect either. When I run mvn -P dev clean package, the
  output does claim to be executing this task (referred to by the ID
  element, so I know it's not another antrun I've used), but the
result
 is
  still just an exploded war that has the standard maven name scheme
of
  artifactId-version.
 
  plugin
  artifactIdmaven-antrun-plugin/artifactId
  executions
  execution
  idRenameFinalDirectory/id
  phasepackage/phase
  goals
  goalrun/goal
  /goals
  configuration
  tasks
  mkdir
  dir=${project.build.directory}\${project.name}/
  move
  todir=${project.build.directory}\${project.name}
  fileset
 

dir=${project.build.directory}\${project.artifactId}-${project.version}
  /
  /move
  /tasks
  /configuration
  /execution
 /executions
  /plugin
 
  Any suggestions on why this doesn't work, or what I might use
instead?
 
  --
  This message may contain confidential, proprietary, or legally
 privileged
  information. No confidentiality or privilege is waived by any
 transmission
  to an unintended recipient. If you are not an intended recipient,
 please
  notify the sender and delete this message immediately. Any views
 expressed
  in this message are those of the sender, not those of any entity
 within the
  KBC Financial Products group 

Upcoming rmic plugin release

2008-02-06 Thread Paul Gier

Hi Everyone,
I'm currently doing some work on the rmic maven plugin, and I plan to do a 
1.0-alpha-1 release in the upcoming weeks.  If you use this plugin or you are 
interested in it, please take a look at some of the jira issues 
(http://jira.codehaus.org/browse/MRMIC).  If there are issues that you agree or 
disagree with, please comment and/or vote on the issues, and create new issues 
for desired features, bugs, etc.


Thank!

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



Re: Configure SCM for both ClearCase LT and UCM?

2008-02-06 Thread janee

The solution appears to be to set up your clearcase-settings.xml with an
entry like:

clearcase-settings
clearcaseTypeUCM/clearcaseType
clearcaseLTtrue/clearcaseLT
viewstoreD:\aa/viewstore
/clearcase-settings

where viewstore indicates the path to the directory containing your snapshot
views.

The clearcaseLT tag isn't documented, but is mentioned in:
http://jira.codehaus.org/browse/SCM-135
http://jira.codehaus.org/browse/SCM-135 


janee wrote:
 
 The ClearCase SCM provider accepts a clearcaseType of either UCM or LT.
 How do I configure it for both ClearCase LT and UCM?
 

-- 
View this message in context: 
http://www.nabble.com/Configure-SCM-for-both-ClearCase-LT-and-UCM--tp15299898s177p15312674.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



ClearCase UCM baseline release before bumping version

2008-02-06 Thread janee

Is there a way to configure release:prepare to deliver and baseline the
release POMs after it commits and tags them and before it bumps the POMs to
the new development version and commits them? I am using ClearCase LT UCM on
Windows. 



-- 
View this message in context: 
http://www.nabble.com/ClearCase-UCM-baseline-release-before-bumping-version-tp15312730s177p15312730.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Maven Reporting

2008-02-06 Thread Nagesh, Srinivas (IS Consultant)
Hi All,

I have a multi-project setup in maven

-- Proj
-- pom.xml -- Reporting
-- Proj1
-- pom.xml
-- Proj2
-- pom.xml

When I specify reporting in the parent pom, the reports are generated in
the respective children projects. I would like to know if there is a
feature to create a consolidated report of the sub project (Proj1 
Proj2)?

Thanks

Srini


Re: Installing Native DLL's into local repository

2008-02-06 Thread mgainty
Unless I'm reading this wrong

the maven native-plugin is described
Use this plugin to compile c and c++ source under Maven 2 with compilers
such as gcc, msvc, etc ...

and maven deploy-plugin
The deploy plugin is primarily used during the deploy phase, to add your
artifact(s) to a remote repository for sharing with other developers and
projects. This is usually done in an integration or release environment. It
can also be used to deploy a particular artifact (e.g. a third party jar
like Sun's non redistributable reference implementations).

with regards to loading new binaries into a JVM:
If the Virtual Machine complains that it can't find the library,
you may need to add the directory containing the library into the
LD_LIBRARY_PATH environment variable (Unix), or the PATH environment
variable (Windows).

Comments?
M-
- Original Message -
Wrom: ZFSQHYUCDDJBLVLMHAALPTCXLYRWTQTIPWIGYO
To: Maven Users List users@maven.apache.org
Sent: Wednesday, February 06, 2008 12:12 PM
Subject: Re: Installing Native DLL's into local repository


Look at the deploy plugin or the native plugin.

Jeff


On Feb 6, 2008 5:14 PM, Adamson, Eric (DIT) [EMAIL PROTECTED] wrote:

 I'm working with the JACOB (Java-COM Bridge) library, and would like to
 install its artifacts -- JACOB.JAR and JACOB.DLL -- into my local
 repository.  Installing the JAR was easy, but I'm unclear on how to
 handle the native library.  How does one manage this correctly?

 Also, how best to search the list archives?  I'm only finding posts
 archived by month ( at
 http://mail-archives.apache.org/mod_mbox/maven-users/ ) but no broad
 search facility.

 Thanks in advance,

  Eric Adamson
  State of Michigan


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




--
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com


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



Re: SCM Username/Password

2008-02-06 Thread Edwin Punzalan
I believe there is a separate UI for the release, have you used that?

On Feb 5, 2008 11:30 AM, deckrider [EMAIL PROTECTED] wrote:

 Hello,

 I want to have the users who add builds to continuum to enter their
 SCM Username/Password.  However this isn't working during the commits
 needed to run the following targets:

 release:prepare release:perform

 We are using subversion, but when it comes time to commit it says
 invalid credentials.

 I don't want to simply check in or otherwise define in public clear
 text these usernames and passwords.

 Thanks in advance!



Re: [ANNOUNCE] Good news! Maven 2 talk accepted at JavaOne 2008

2008-02-06 Thread Jim Bethancourt
Hi Siarhei,
I imagine they will be posted on the JavaOne website after the conference,
and I'll be sure they are added to the Maven docs area.

Cheers,
Jim

On Feb 6, 2008 2:18 PM, Siarhei Dudzin [EMAIL PROTECTED] wrote:

 Any chance of publishing the slides when possible (PDF is fine too)?

 On Feb 6, 2008 5:28 PM, Christian Edward Gruber 
 [EMAIL PROTECTED] wrote:

  No, but I will be submitting a talk about build systems (using Maven2
  as the implementation) and their effect on architecture and process
  change efforts at Agile2008.
 
  regards,
  Christian.
 



surefire 2.4 + testng, changing TestSuite name

2008-02-06 Thread Erez Nahir
Hi,

I'm looking for a way to change the default suite name generated by surefire
from TestSuite to something else.
Using this configuration:
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
version2.4.1/version
configuration
groupsfast/groups
excludedgroupsbroken/excludedgroups
properties
property
namesuitename/name
value${groupId}-${artifactId}/value
/property
property
nametestname/name
value${artifactId}/value
/property
/properties
/configuration
/plugin

The suitename is changed in testng reports, but in the default
TEST-TestSuite.xml files, it is not.
Any way to do it?

Thanks,
Erez.


Re: Installing Native DLL's into local repository

2008-02-06 Thread Jeff MAURY
On Feb 6, 2008 10:15 PM, [EMAIL PROTECTED] wrote:

 Unless I'm reading this wrong

 the maven native-plugin is described
 Use this plugin to compile c and c++ source under Maven 2 with compilers
 such as gcc, msvc, etc ...

This is not what you need for DLL generation ?



 and maven deploy-plugin
 The deploy plugin is primarily used during the deploy phase, to add your
 artifact(s) to a remote repository for sharing with other developers and
 projects. This is usually done in an integration or release environment.
 It
 can also be used to deploy a particular artifact (e.g. a third party jar
 like Sun's non redistributable reference implementations).

Sorry, this is the install plugin.

Jeff




 with regards to loading new binaries into a JVM:
 If the Virtual Machine complains that it can't find the library,
 you may need to add the directory containing the library into the
 LD_LIBRARY_PATH environment variable (Unix), or the PATH environment
 variable (Windows).

 Comments?
 M-
 - Original Message -
 Wrom: ZFSQHYUCDDJBLVLMHAALPTCXLYRWTQTIPWIGYO
 To: Maven Users List users@maven.apache.org
 Sent: Wednesday, February 06, 2008 12:12 PM
 Subject: Re: Installing Native DLL's into local repository


 Look at the deploy plugin or the native plugin.

 Jeff


 On Feb 6, 2008 5:14 PM, Adamson, Eric (DIT) [EMAIL PROTECTED] wrote:

  I'm working with the JACOB (Java-COM Bridge) library, and would like to
  install its artifacts -- JACOB.JAR and JACOB.DLL -- into my local
  repository.  Installing the JAR was easy, but I'm unclear on how to
  handle the native library.  How does one manage this correctly?
 
  Also, how best to search the list archives?  I'm only finding posts
  archived by month ( at
  http://mail-archives.apache.org/mod_mbox/maven-users/ ) but no broad
  search facility.
 
  Thanks in advance,
 
   Eric Adamson
   State of Michigan
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 La mélancolie c'est communiste
 Tout le monde y a droit de temps en temps
 La mélancolie n'est pas capitaliste
 C'est même gratuit pour les perdants
 La mélancolie c'est pacifiste
 On ne lui rentre jamais dedans
 La mélancolie oh tu sais ça existe
 Elle se prend même avec des gants
 La mélancolie c'est pour les syndicalistes
 Il faut juste sa carte de permanent

 Miossec (2006)

 http://www.jeffmaury.com
 http://riadiscuss.jeffmaury.com


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




-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com


Re: conditional dependencies

2008-02-06 Thread Joerg Hohwiller
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 Hi Jorg
Hi Jon,
 
 Yeah just set up profiles for Java5 and java6 each specifying the unique 
 dependencies for the jdk.
So what you are saying is that it really works to declare a dependency within a
profile section? I have NOT tried this again since maven 2.0.4. but it did not
work properly then.
And shouldn't there be POMs with packaging pom in central repo to do this for
stax, jsr250, etc., so it is a centralized feature?
Then everybody could just add a dependency on stax-profile (or however one
would call it) with type pom and that is all.
 
 Jon 
Thanks so far...
  Jörg
 
 -Original Message-
 From: Joerg Hohwiller [mailto:[EMAIL PROTECTED] 
 Sent: 04 February 2008 21:13
 To: Maven Users List
 Subject: conditional dependencies
 
 Hi there,
 
 I am using conditional dependencies in the form that I use variables in the 
 dependencies and profiles to set these variables.
 
 Now I currently wonder what to do if a dependency is only required under 
 specific situations. E.g. stax or jsr250 is included in java6 while you need 
 dependencies on external artifacts for java5.
 Has someone experience with that?
 Is it best to use a variable for the scope and set it to provided for java6?
 Or is it possible to add a dependency into the profile section?
 
 Thanks
Jörg
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 This email is from Elsevier Limited, a company registered in England and 
 Wales with company number 1982084,
 whose registered office is The Boulevard, Langford Lane, Kidlington, Oxford, 
 OX5 1GB, United Kingdom.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHqi63mPuec2Dcv/8RAqbhAJ0XS6VBZWDHiW7YcRwhF3jZ8c+uygCfcuj+
KyKGgIxxrLJR2zeEVOdRFTw=
=Glsg
-END PGP SIGNATURE-

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



mvn clean site-deploy doesnt clean the remote site

2008-02-06 Thread Savita_p_m

Hi

mvn clean site-deploy doesn't delete the site on the remote machine before
deploying the latest one. 

Is there anyway I can do this? Any setting or property would help me to
clean the target folder at remote machine before deploying the new site?

I want to delete the folder before deploying the new one. 

Regards
Savita
-- 
View this message in context: 
http://www.nabble.com/mvn-clean-site-deploy-doesnt-clean-the-remote-site-tp15325579s177p15325579.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



How to disable Test during build

2008-02-06 Thread Arun P Johny

Hi,

Can anybody tell me how to disable execution of test phase during maven2 
build. I'm using maven 2.0.7


I don't want the test phase to execute when I gaves mvn release:prepare 
and mvn release:perform


Thank You,
Arun

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



Re: How to disable Test during build

2008-02-06 Thread Rahul Thakur
pass property 
-Dmaven.test.skip=true


Rahul

Arun P Johny wrote:

Hi,

Can anybody tell me how to disable execution of test phase during 
maven2 build. I'm using maven 2.0.7


I don't want the test phase to execute when I gaves mvn 
release:prepare and mvn release:perform


Thank You,
Arun

-
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: mvn clean site-deploy doesnt clean the remote site

2008-02-06 Thread Rahul Thakur
I don't think Maven can do this. You will need to delete the site 
manually from the remote machine.


I think this is a common use-case and might be an idea opening a JIRA 
issue for this feature.


Rahul

Savita_p_m wrote:

Hi

mvn clean site-deploy doesn't delete the site on the remote machine before
deploying the latest one. 


Is there anyway I can do this? Any setting or property would help me to
clean the target folder at remote machine before deploying the new site?

I want to delete the folder before deploying the new one. 


Regards
Savita
  


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



Re: Conceptual Confusion about build and release process using maven.

2008-02-06 Thread Rahul Thakur

Now my confusion over my own understanding and assumption is:

1) During the development process within an iteration, how to make
sure that all the module owners dependent on a.jar keeps up to date
with the changing versions of a.jar as the development goes on until
Integration Testing.
  
In my opinion there is also some bit of discipline involved here. Your 
CI server does scheduled builds for all project modules. Developers 
should ensure they update their projects regularly. For me the first 
thing in the morning when I get to work are:

 svn up
 mvn clean eclipse:clean eclipse:eclipse -DdownloadSources=true
(assuming there were not build failure notifications from CI server ;-) 
). Also keep in the mind to use SNAPSHOTS (as suggested in the other 
email).



2) If a module owner dependent on a.jar fails to update the version of
the a.jar in the pom.xml and/or miss to commit the updated pom.xml
with a contemporary version of a.jar. Continuous Integration at
Continuum would suffer( assuming that even with not up to date version
of a.jar the module still gets through build),
  
Continuous integration would show red flags if there were incompatible 
changes checked in. To a good extent this also depends on the tests that 
the developers have in place for each module.

Pardon me for any wrong assumptions, I do not have much exposure to the process.

Regards,
Amit

  

HTH,
Rahul

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



RE: Conceptual Confusion about build and release process using maven.

2008-02-06 Thread simon

On Wed, 2008-02-06 at 09:47 -0500, Edelson, Justin wrote:
  1) During the development process within an iteration, how to make
  sure that all the module owners dependent on a.jar keeps up to date
  with the changing versions of a.jar as the development goes on until
  Integration Testing.
 It sounds to me like you want to use a SNAPSHOT version within each 
 iteration. That way dependent module owners don't need to constantly update 
 their poms. Once  you hit your testing phase, do an alpha or beta release 
 of all the modules and test against that.

Yes, this is probably what you are looking for.

(1) deploying

When a module with a version of form 1.2.3-SNAPSHOT is deployed, then
there are two choices: with or without datestamp.

Without datestamp, the 1.2.3-SNAPSHOT file will just overwrite the
previous one in the repository.

With datestamp, a new 1.2.3-SNAPSHOT-mmddn file file be created.

Whether deploy applies datestamps or not is configured in the repository
block. Using datestamps clutters the repository, but does mean that
other projects can decide to depend on the snapshot for a particular
date if they want.

(2)
When a project has a dependency on a 1.2.3-SNAPSHOT module, then it
checks the repository for a 1.2.3-SNAPSHOT-mmddn or 1.2.3-SNAPSHOT
file, and downloads it if it is newer.

Exactly when the check is done is configurable: every time maven is run,
once per day, once per week (I think those are the options). I cannot
remember offhand where that is configured.

Regards,
Simon


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



Re: release from a specific tag

2008-02-06 Thread Nicole Lacoste
Hi Benoit,

Yes I think so.  Well I know you can release from a tag made with the
release prepare.  The command is

mvn release:perform -DconnectionUrl=scm:svn:file://your-url-here/tag-name

Look at page 224 of better builds with maven for more details

Nicole

On 06/02/2008, Benoit Decherf [EMAIL PROTECTED] wrote:

 Hi,

 I think that we should be able to perform a release from an old nightly
 tag rather than do it always from the trunk :

 Every night functional tests run on a project A. On day d everything
 works, but after, I decide to add a feature and I broke the trunk. I'd
 like to be able to release the project in it's state of day d without
 losing the work I done. This could be useful in some cases.
 Is there already a way to do it ?

 Benoit

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




Re: tests throw java.lang.NoClassDefFoundError for MVN, JUnit 4 but not eclipse

2008-02-06 Thread Nicole Lacoste
Hi Steven,

I had a sort of similar problem.  Maven expects certain things from the unit
tests, that eclipse doesn't, the reason being that surefire uses reflection
to lance the unit tests. One thing is that all classes are required to have
public constructors with either no-arg or String name. There are probably
also requirements on public methods. Try making any method that is not a
test method private and check your ctors.  I am not sure if this is
documented anywhere...

Nicole

On 06/02/2008, JavaGeek [EMAIL PROTECTED] wrote:


 Hello All,
 I have a maven project with JUnit 4.0 unit tests.  Most of our unit tests
 are failing in Surefire with the message pasted below.  However, all of
 the
 unit tests work when launched from eclipse.  Does anyone have any ideas on
 how to troubleshoot?

 Thanks in Advance,
 Steven


 java.lang.NoClassDefFoundError
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
 :39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at
 org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(
 BeforeAndAfterRunner.java:74)
 at
 org.junit.internal.runners.BeforeAndAfterRunner.runBefores(
 BeforeAndAfterRunner.java:50)
 at
 org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
 BeforeAndAfterRunner.java:33)
 at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
 at
 org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java
 :62)
 at
 org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(
 AbstractDirectoryTestSuite.java:138)
 at
 org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(
 AbstractDirectoryTestSuite.java:125)
 at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
 :39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at
 org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
 SurefireBooter.java:290)
 at
 org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java
 :818)

 --
 View this message in context:
 http://www.nabble.com/tests-throw-java.lang.NoClassDefFoundError-for-MVN%2C-JUnit-4-but-not-eclipse-tp15309895s177p15309895.html
 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: Conceptual Confusion about build and release process using maven.

2008-02-06 Thread Nicole Lacoste
Hi,

I recommend reading chapter 7, Team Collaboration with Maven, from Better
Builds with Maven.

Nicole

On 07/02/2008, simon [EMAIL PROTECTED] wrote:


 On Wed, 2008-02-06 at 09:47 -0500, Edelson, Justin wrote:
   1) During the development process within an iteration, how to make
   sure that all the module owners dependent on a.jar keeps up to date
   with the changing versions of a.jar as the development goes on until
   Integration Testing.
  It sounds to me like you want to use a SNAPSHOT version within each
 iteration. That way dependent module owners don't need to constantly update
 their poms. Once  you hit your testing phase, do an alpha or beta
 release of all the modules and test against that.

 Yes, this is probably what you are looking for.

 (1) deploying

 When a module with a version of form 1.2.3-SNAPSHOT is deployed, then
 there are two choices: with or without datestamp.

 Without datestamp, the 1.2.3-SNAPSHOT file will just overwrite the
 previous one in the repository.

 With datestamp, a new 1.2.3-SNAPSHOT-mmddn file file be created.

 Whether deploy applies datestamps or not is configured in the repository
 block. Using datestamps clutters the repository, but does mean that
 other projects can decide to depend on the snapshot for a particular
 date if they want.

 (2)
 When a project has a dependency on a 1.2.3-SNAPSHOT module, then it
 checks the repository for a 1.2.3-SNAPSHOT-mmddn or 1.2.3-SNAPSHOT
 file, and downloads it if it is newer.

 Exactly when the check is done is configurable: every time maven is run,
 once per day, once per week (I think those are the options). I cannot
 remember offhand where that is configured.

 Regards,
 Simon


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




Re: DbUnit plugin

2008-02-06 Thread VUB Stefan Seidel

Hi Julien,

I remember we too had problems getting it to work and debugging is hard 
because the plugin doesn't seem to like telling about what it's doing. 
All I can say is that here with MySQL, Hypersonic and SAPDB/MaxDB it 
works. Last difference I see is that we use flat format for the dbunit 
files.


regards,

Stefan

Julien FOROT wrote:

Jan Fredrik Wedén a écrit :

I believe http://maven-plugins.sourceforge.net/ hosts Maven 1.x
plugins while http://mojo.codehaus.org/ hosts Maven 2.x plugins.

Thanks, Stefan already explain me that ! ;)

In fact it seems that it is a bug :
http://jira.codehaus.org/browse/MOJO-645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_98430 



But it seems that there is no answer or fix version.. :s

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



--
best regards,

Stefan Seidel
software developer

VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel.+49 (341) 9 60 50 07
fax.+49 (341) 9 60 50 92
mail.   [EMAIL PROTECTED]
web.www.vub.de

HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf

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



Re: problem with custom check in checkstyle plugin

2008-02-06 Thread Barrie Treloar
On Feb 6, 2008 8:37 AM, Dennis Lundberg [EMAIL PROTECTED] wrote:
 Funny how things in the universe sometimes occur at the exact same time...

 Yesterday I completely rewrote the example about using custom checks for
 the Checkstyle plugin. It is now a complete example with all code
 necessary. It's not published yet, but you can (sort of) read it
 directly from svn [1] or you can check out the Checkstyle plugin and run
 'mvn site' to build the docs yourself.

 [1]
 https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-checkstyle-plugin/src/site/apt/examples/custom-developed-checkstyle.apt

Please update the packagenames.xml to be the same as the one from
within the checkstyle jar.  I got stung with a problem because the
Header check is not listed on the checkstyle web page but is listed
within the jar file.  Including a note on verifying the contents of
the checkstyle's package.xml would also be a good idea.

But otherwise looks good.

Thanks.

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



Re: How to disable Test during build

2008-02-06 Thread VUB Stefan Seidel
It might be better to use -Dmaven.test.skip.exec=true because otherwise 
the test-jar is not being built.


regards,

Stefan

Rahul Thakur wrote:

pass property -Dmaven.test.skip=true

Rahul

Arun P Johny wrote:

Hi,

Can anybody tell me how to disable execution of test phase during 
maven2 build. I'm using maven 2.0.7


I don't want the test phase to execute when I gaves mvn 
release:prepare and mvn release:perform


Thank You,
Arun

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



--
best regards,

Stefan Seidel
software developer

VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel.+49 (341) 9 60 50 07
fax.+49 (341) 9 60 50 92
mail.   [EMAIL PROTECTED]
web.www.vub.de

HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf

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



Re: How to disable Test during build

2008-02-06 Thread Mark Struberg
It is imho _not_ a good idea to pass tests when releasing!

If you really are concerned about the time it takes, it might be a better idea 
to define a profile
which contains all extra large tests manually (usually this is done e.g. for 
TCK), but run the
basic tests in any situation.

LieGrü,
strub

--- VUB Stefan Seidel [EMAIL PROTECTED] schrieb:
 It might be better to use -Dmaven.test.skip.exec=true because otherwise 
 the test-jar is not being built.
 
 regards,
 
 Stefan
 
 Rahul Thakur wrote:
  pass property -Dmaven.test.skip=true
  
  Rahul
  
  Arun P Johny wrote:
  Hi,
 
  Can anybody tell me how to disable execution of test phase during 
  maven2 build. I'm using maven 2.0.7
 
  I don't want the test phase to execute when I gaves mvn 
  release:prepare and mvn release:perform
 


  Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s 
mit dem neuen Yahoo! Mail. www.yahoo.de/mail

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



Re: Conceptual Confusion about build and release process using maven.

2008-02-06 Thread VUB Stefan Seidel

amit kumar wrote:

Hi,

1) During the development process within an iteration, how to make
sure that all the module owners dependent on a.jar keeps up to date
with the changing versions of a.jar as the development goes on until
Integration Testing.

Use version ranges. Developers can update versions in their modules and 
other developers can pick up the latest version automatically by 
declaring version[1,)/version. As others have recommended, Better 
builds with Maven is an excellent book about this and other topics.



2) If a module owner dependent on a.jar fails to update the version of
the a.jar in the pom.xml and/or miss to commit the updated pom.xml
with a contemporary version of a.jar. Continuous Integration at
Continuum would suffer( assuming that even with not up to date version
of a.jar the module still gets through build),
Again, version ranges help. You developers may update the lower boundary 
for the version range from time to time just to make sure that the 
features they need in their modules are present in the modules they 
depend on.


You should also use the release feature of continuum or the maven 
release plugin to make sure that the module versions are updated and the 
jars are being properly deployed to the repository.


--
best regards,

Stefan Seidel
software developer

VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel.+49 (341) 9 60 50 07
fax.+49 (341) 9 60 50 92
mail.   [EMAIL PROTECTED]
web.www.vub.de

HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf

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



Re: Maven Reporting

2008-02-06 Thread VUB Stefan Seidel

Hi,

you may consolidate single reports for all modules (like Javadoc, JXR, 
...) using the aggregate feature of these reports. The question is, 
what do you really want to do? Your modules have different names for 
example, how do you consolidate that?


If you are looking for a common report on JUnit tests, Checkstyle, 
Findbugs etc. have a look at the dashboard-maven-plugin.


regards,

Stefan

Nagesh, Srinivas (IS Consultant) wrote:

Hi All,

I have a multi-project setup in maven

-- Proj
-- pom.xml -- Reporting
-- Proj1
-- pom.xml
-- Proj2
-- pom.xml

When I specify reporting in the parent pom, the reports are generated in
the respective children projects. I would like to know if there is a
feature to create a consolidated report of the sub project (Proj1 
Proj2)?

Thanks

Srini



--
best regards,

Stefan Seidel
software developer

VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel.+49 (341) 9 60 50 07
fax.+49 (341) 9 60 50 92
mail.   [EMAIL PROTECTED]
web.www.vub.de

HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf

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