Re: How to change SMTP server for mail notification?

2006-06-05 Thread Emmanuel Venisse
You don't need to modify system properties but only the component configuration in 
apps/continuum/conf/application.xml.


This file is loaded at startup so if you modify it, you must restart Continuum.

Emmanuel

[EMAIL PROTECTED] a écrit :

Hi,

I stumbled upon Continuum yesterday, and I really appreciate its 
simplicity and features.  I've setup cruisecontrol and looked at anthill 
before, and those took a lot of work to get those setup.  The 
quick-start web interface in Continuum is great.


I'm running into a problem in configuring an SMTP server for mail 
notification.  Has anyone successfully changed the SMTP server to 
something other than the default localhost?  I've tried two things, 
neither has worked.  The error log is attached, showing that Continuum 
is still looking to send mail through the localhost.


First, I tried setting system properties for JavaMail in wrapper.conf, 
as follows:

# Java Additional Parameters
wrapper.java.additional.1=-Dclassworlds.conf=../../conf/classworlds.conf
wrapper.java.additional.2=-Djava.io.temp=../../temp
wrapper.java.additional.3=-Dplexus.core=../../core
wrapper.java.additional.4=-Dplexus.home=../..
[EMAIL PROTECTED]
wrapper.java.additional.6=-Dmail.host=my.smtp.host.edu
wrapper.java.additional.7=-Dmail.debug=true
wrapper.java.additional.8=-Dmail.smtp.host=my.smtp.host.edu
wrapper.java.additional.9=-Dplexus.system.path=%PATH%
wrapper.java.additional.9.stripquotes=TRUE

Second, I tried modifying apps/continuum/conf/application.xml and 
changing the smtp-host element from localhost to my SMTP host, as 
shown below:

   component
 roleorg.codehaus.plexus.mailsender.MailSender/role
 
implementationorg.codehaus.plexus.mailsender.javamail.JavamailMailSender/implementation 


 configuration
   smtp-hostmy.smtp.host.edu/smtp-host
   smtp-port25/smtp-port
   sslProvidercom.sun.net.ssl.internal.ssl.Provider/sslProvider
   !--
   usernamemylogin/username
   passwordmypassword/password
   sslModetrue/sslMode
   --
 /configuration
   /component

See the attached wrapper.log for the error message.

Any help would be appreciated.  Once this is fixed, I intend to advocate 
the use of Continuum on a very large open source project.  We haven't 
used a continuous-build system on our project so far simply because the 
ones we've tried so far were too complicated and frustrating to 
configure and use.  But Continuum might be the one...


Thanks,

-Jon Andersen
University of Michigan






INFO   | jvm 1| 2006/06/02 13:09:16 | 2006-06-02 13:09:16,002 [Thread-2] INFO  
Notifier:mail  - Sending message: From '[EMAIL PROTECTED] 
[EMAIL PROTECTED]'.
INFO   | jvm 1| 2006/06/02 13:09:16 | 2006-06-02 13:09:16,002 [Thread-2] INFO  
Notifier:mail  - Recipient: To '[EMAIL PROTECTED]'.
INFO   | jvm 1| 2006/06/02 13:09:16 | DEBUG: JavaMail version 1.3.2
INFO   | jvm 1| 2006/06/02 13:09:16 | DEBUG: java.io.FileNotFoundException: 
/home/janderse/j2sdk1.4.2_10/jre/lib/javamail.providers (No such file or 
directory)
INFO   | jvm 1| 2006/06/02 13:09:16 | DEBUG: !anyLoaded
INFO   | jvm 1| 2006/06/02 13:09:16 | DEBUG: not loading resource: 
/META-INF/javamail.providers
INFO   | jvm 1| 2006/06/02 13:09:16 | DEBUG: successfully loaded resource: 
/META-INF/javamail.default.providers
INFO   | jvm 1| 2006/06/02 13:09:16 | DEBUG: Tables of loaded providers
INFO   | jvm 1| 2006/06/02 13:09:16 | DEBUG: Providers Listed By Class 
Name: 
{com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
 Microsystems, Inc], 
com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
 Microsystems, Inc], 
com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun
 Microsystems, Inc], 
com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
 Microsystems, Inc], 
com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
 Microsystems, Inc], 
com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
 Microsystems, Inc]}
INFO   | jvm 1| 2006/06/02 13:09:16 | DEBUG: Providers Listed By Protocol: 
{imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun 
Microsystems, Inc], 
imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun 
Microsystems, Inc], 
smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
 Microsystems, Inc], 
pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun 
Microsystems, Inc], 
pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun 
Microsystems, Inc], 
smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun 
Microsystems, Inc]}
INFO   | jvm 1| 2006/06/02 

Re: Help, accidentally destroyed the maven app logs dir

2006-06-05 Thread Emmanuel Venisse

Are you sure that build-output-directory is the only thing deleted?
You can try to recreate this directory.

Send us the full content of your exception.

Emmanuel

Sufyan Arif a écrit :

Hi,

 


I'm in need of some major help. We were running continuum on a machine
with only 8gb and to recover some disk space one of our developers
deleted the contents of
/continuum-1.0.3/apps/continuum/build-output-directory. Now when we try
to restart the continuum server we get a dirty big exception in the
logs.

 


3734 [WrapperSimpleAppMain] ERROR JPOX.RDBMS.SCHEMA  - Failed
initialising database. Please check that your database JDBC driver is
accessible, and the database URL and username/password are correct.
Exception : Failed to start database
'D:\java\continuum-1.0.3\bin\win32\..\..\apps\continuum/database', see
the next exception for details.

SQL Exception: Failed to start database
'D:\java\continuum-1.0.3\bin\win32\..\..\apps\continuum/database', see
the next exception for details.

 


Recovery failed unexpected problem log record is Not first but
transaction is not in transaction table : 803445.

ERROR XSLAO: Recovery failed unexpected problem log record is Not first
but transaction is not in transaction table : 803445.

 

 

 


Is their any way I can recover from this? I really don't want to go
through installing it from scratch. I have looked in the mailing list
and can't find anything appropriate. If anyone can point me in the right
direction then I would be very grateful.

 


Thanks

 

 


Sufyan

 

 


PS - The dirty big exception in full

 

 


242542 [Thread-0] ERROR JPOX.RDBMS.SCHEMA  - Failed initialising
database. Please check that your database JDBC driver is accessible, and
the database URL and username/password are correct. Exception : Failed
to start database
'D:\java\continuum-1.0.3\bin\win32\..\..\apps\continuum/database', see
the next exception for details.

SQL Exception: Failed to start database
'D:\java\continuum-1.0.3\bin\win32\..\..\apps\continuum/database', see
the next exception for details.

at
org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)

at
org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)

at
org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)

at
org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(Unknown
Source)

at
org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)

at org.apache.derby.impl.jdbc.EmbedConnection.init(Unknown
Source)

at
org.apache.derby.impl.jdbc.EmbedConnection30.init(Unknown Source)

at
org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)

at org.apache.derby.jdbc.InternalDriver.connect(Unknown
Source)

at
java.sql.DriverManager.getConnection(DriverManager.java:525)

at
java.sql.DriverManager.getConnection(DriverManager.java:171)

at
org.jpox.DriverManagerDataSource.getConnection(DriverManagerDataSource.j
ava:82)

at
org.jpox.util.FailoverUtils.getConnection(FailoverUtils.java:62)

at
org.jpox.store.rdbms.RDBMSManager.init(RDBMSManager.java:214)

at
org.jpox.store.rdbms.RDBMSManagerFactory.getStoreManager(RDBMSManagerFac
tory.java:59)

at
org.jpox.AbstractPersistenceManager.init(AbstractPersistenceManager.ja
va:222)

at
org.jpox.PersistenceManagerImpl.init(PersistenceManagerImpl.java:34)

at
org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(Persistence
ManagerFactoryImpl.java:916)

at
org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(Persistence
ManagerFactoryImpl.java:891)

at
org.apache.maven.continuum.store.JdoContinuumStore.getPersistenceManager
(JdoContinuumStore.java:1295)

at
org.apache.maven.continuum.store.JdoContinuumStore.updateObject(JdoConti
nuumStore.java:598)

at
org.apache.maven.continuum.store.JdoContinuumStore.updateSystemConfigura
tion(JdoContinuumStore.java:1045)

at
org.apache.maven.continuum.configuration.DefaultConfigurationService.sto
re(DefaultConfigurationService.java:272)

at
org.apache.maven.continuum.DefaultContinuum.stopContinuum(DefaultContinu
um.java:2047)

at
org.apache.maven.continuum.DefaultContinuum$1.run(DefaultContinuum.java:
167)

 


Recovery failed unexpected problem log record is Not first but
transaction is not in transaction table : 803445.

ERROR XSLAO: Recovery failed unexpected problem log record is Not first
but transaction is not in transaction table : 803445.

at
org.apache.derby.iapi.error.StandardException.newException(Unknown
Source)

at
org.apache.derby.impl.store.raw.log.FileLogger.redo(Unknown Source)

at
org.apache.derby.impl.store.raw.log.LogToFile.recover(Unknown Source)

at org.apache.derby.impl.store.raw.RawStore.boot(Unknown

Re: Problem with filtering of property files

2006-06-05 Thread Claus Myglegaard Vagner

The files are under the same subdirectory:

resource
 directory*${basedir}/src/conf*/directory
 filteringtrue/filtering
 includes
   includecontext.xml/include
   includeversion.properties/include
 /includes
/resource

**/version.properties... doesn't seem to do the trick.

Claus



Bravo, Kris wrote:


Are the files underneath subdirectories? You may need to go from this:
   includecontext.xml/include
   includeversion.properties/include
To this:
   includecontext.xml/include
   include**/version.properties/include


kris bravo * Clarify Development * office: 678.893.1288 * mobile:
678.296.8723 



-Original Message-
From: Claus Myglegaard Vagner [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 02, 2006 9:59 AM

To: Maven Users List
Subject: Problem with filtering of property files

Hi,

I have a problem filtering property files (using maven 2.0.4):

Setup:
 ...
build
   finalNameplanb/finalName
   sourceDirectorysrc/java/sourceDirectory
   testSourceDirectorysrc/test/testSourceDirectory
   filters
   filter${basedir}/context.properties/filter
   /filters
   resources
   resource
   directory${basedir}/src/conf/directory
   filteringtrue/filtering
   includes
   includecontext.xml/include
   includeversion.properties/include
   /includes
   /resource
   ...
   /resources
   ...
/build
 ...

Filtering of the above context.xml works fine, but filtering of
version.properties dosn't seem to work?

If I create a version.xml file instead an replaces it with
version.properties again it works... (any difference for *.xml contra
*.properties filtering?)

Ideally I would like to use settings.xml as filter instead of
context.properties but it only seems to work with context.properties...

Can anybody please help me with

1. why isn't version.properties being filtered?
2. why can't I use settings.xml as a filter?

Best Regards,
Claus

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

 



Re: Problem with filtering of property files

2006-06-05 Thread Claus Myglegaard Vagner
I'm using ${} tokens and the specified properties are either from 
settings.xml or a pom property from pom.xml.


(I will make sure to double check for typos)

Claus


Max Cooper wrote:

I am not precisely sure what the difference is, but from looking at 
the filtering code in the maven-resources-plugin in the past, I know 
that it does treat *.properties files differently than other files.


These things might make a difference, too:

1. What delimiters are you using for the tokens? ${} is probably more 
likely to work than @@.


2. How are the properties specified? There is an issue with replacing 
system properties (specified on the command line with -Dname=value). 
Are you are using system properties in your token replacements?


3. Watch out for typos that might mess up the token replacement 
engine. For example, an unmatched }, {, or @ character can mess up 
replacement.



As a real-world example of #3, the jboss-service.xml file that ships 
with JBoss 4.0.3SP1 has a typo in it, and my token replacements 
weren't working properly until I resolved it. This was the offending 
line (note the paren instead of curly brace after jboss.server.home):


  scans ${jboss.server.home)/deploy, which is always local

-Max

Claus Myglegaard Vagner wrote:


Hi,

I have a problem filtering property files (using maven 2.0.4):

Setup:
 ...
build
   finalNameplanb/finalName
   sourceDirectorysrc/java/sourceDirectory
   testSourceDirectorysrc/test/testSourceDirectory
   filters
   filter${basedir}/context.properties/filter
   /filters
   resources
   resource
   directory${basedir}/src/conf/directory
   filteringtrue/filtering
   includes
   includecontext.xml/include
   includeversion.properties/include
   /includes
   /resource
   ...
   /resources
   ...
/build
 ...

Filtering of the above context.xml works fine, but filtering of 
version.properties dosn't seem to work?


If I create a version.xml file instead an replaces it with 
version.properties again it works... (any difference for *.xml contra 
*.properties filtering?)


Ideally I would like to use settings.xml as filter instead of 
context.properties but it only seems to work with context.properties...


Can anybody please help me with

1. why isn't version.properties being filtered?
2. why can't I use settings.xml as a filter?

Best Regards,
Claus

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



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



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



[M2} Possible to pull in a pre built war as the EAR webModule?

2006-06-05 Thread ben short

Hi,

Is it possible to use a allready built webapp as a ear webModule,
rather than having the webapp as a module of the ear project itself?

Ben

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



Help, accidentally destroyed the maven app logs dir

2006-06-05 Thread Sufyan Arif
Hi,

 

I'm in need of some major help. We were running continuum on a machine
with only 8gb and to recover some disk space one of our developers
deleted the contents of
/continuum-1.0.3/apps/continuum/build-output-directory. Now when we try
to restart the continuum server we get a dirty big exception in the
logs.

 

3734 [WrapperSimpleAppMain] ERROR JPOX.RDBMS.SCHEMA  - Failed
initialising database. Please check that your database JDBC driver is
accessible, and the database URL and username/password are correct.
Exception : Failed to start database
'D:\java\continuum-1.0.3\bin\win32\..\..\apps\continuum/database', see
the next exception for details.

SQL Exception: Failed to start database
'D:\java\continuum-1.0.3\bin\win32\..\..\apps\continuum/database', see
the next exception for details.

 

Recovery failed unexpected problem log record is Not first but
transaction is not in transaction table : 803445.

ERROR XSLAO: Recovery failed unexpected problem log record is Not first
but transaction is not in transaction table : 803445.

 

 

 

Is their any way I can recover from this? I really don't want to go
through installing it from scratch. I have looked in the mailing list
and can't find anything appropriate. If anyone can point me in the right
direction then I would be very grateful.

 

Thanks

 

 

Sufyan

 

 

PS - The dirty big exception in full

 

 

242542 [Thread-0] ERROR JPOX.RDBMS.SCHEMA  - Failed initialising
database. Please check that your database JDBC driver is accessible, and
the database URL and username/password are correct. Exception : Failed
to start database
'D:\java\continuum-1.0.3\bin\win32\..\..\apps\continuum/database', see
the next exception for details.

SQL Exception: Failed to start database
'D:\java\continuum-1.0.3\bin\win32\..\..\apps\continuum/database', see
the next exception for details.

at
org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)

at
org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)

at
org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)

at
org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(Unknown
Source)

at
org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)

at org.apache.derby.impl.jdbc.EmbedConnection.init(Unknown
Source)

at
org.apache.derby.impl.jdbc.EmbedConnection30.init(Unknown Source)

at
org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)

at org.apache.derby.jdbc.InternalDriver.connect(Unknown
Source)

at
java.sql.DriverManager.getConnection(DriverManager.java:525)

at
java.sql.DriverManager.getConnection(DriverManager.java:171)

at
org.jpox.DriverManagerDataSource.getConnection(DriverManagerDataSource.j
ava:82)

at
org.jpox.util.FailoverUtils.getConnection(FailoverUtils.java:62)

at
org.jpox.store.rdbms.RDBMSManager.init(RDBMSManager.java:214)

at
org.jpox.store.rdbms.RDBMSManagerFactory.getStoreManager(RDBMSManagerFac
tory.java:59)

at
org.jpox.AbstractPersistenceManager.init(AbstractPersistenceManager.ja
va:222)

at
org.jpox.PersistenceManagerImpl.init(PersistenceManagerImpl.java:34)

at
org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(Persistence
ManagerFactoryImpl.java:916)

at
org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(Persistence
ManagerFactoryImpl.java:891)

at
org.apache.maven.continuum.store.JdoContinuumStore.getPersistenceManager
(JdoContinuumStore.java:1295)

at
org.apache.maven.continuum.store.JdoContinuumStore.updateObject(JdoConti
nuumStore.java:598)

at
org.apache.maven.continuum.store.JdoContinuumStore.updateSystemConfigura
tion(JdoContinuumStore.java:1045)

at
org.apache.maven.continuum.configuration.DefaultConfigurationService.sto
re(DefaultConfigurationService.java:272)

at
org.apache.maven.continuum.DefaultContinuum.stopContinuum(DefaultContinu
um.java:2047)

at
org.apache.maven.continuum.DefaultContinuum$1.run(DefaultContinuum.java:
167)

 

Recovery failed unexpected problem log record is Not first but
transaction is not in transaction table : 803445.

ERROR XSLAO: Recovery failed unexpected problem log record is Not first
but transaction is not in transaction table : 803445.

at
org.apache.derby.iapi.error.StandardException.newException(Unknown
Source)

at
org.apache.derby.impl.store.raw.log.FileLogger.redo(Unknown Source)

at
org.apache.derby.impl.store.raw.log.LogToFile.recover(Unknown Source)

at org.apache.derby.impl.store.raw.RawStore.boot(Unknown
Source)

at
org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)

at
org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown
Source)

   

[M2] Snapshots deployed to server not being found

2006-06-05 Thread ben short

Hi,

I am trying to include a snapshot that has been deployed to our
internal repository. When I do mvn compile, maven complains that it
couldn't resolve the dependency.

Is this a bug with maven 2.0.4?

Ben

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



Re: specifying plugin parameters in POM

2006-06-05 Thread Eugeny N Dzhurinsky
On Fri, Jun 02, 2006 at 07:45:53PM +0300, Eugeny N Dzhurinsky wrote:
 But still wandering how I can specify different directory for placing JAR file
 produced with package goal?

Is it not possible at all with maven?

-- 
Eugene N Dzhurinsky

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



RE : [M2] Snapshots deployed to server not being found

2006-06-05 Thread Olivier Lamy
Hi,
Try -U (sometimes saved troubles)
You can change updatePolicy in your settings for this repo (during a
furious dev phase you set always ;-) or interval:xxx in minutes)

--
Olivier

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de
ben short
Envoyé : lundi 5 juin 2006 12:13
À : Maven Users List
Objet : [M2] Snapshots deployed to server not being found


Hi,

I am trying to include a snapshot that has been deployed to our internal
repository. When I do mvn compile, maven complains that it couldn't
resolve the dependency.

Is this a bug with maven 2.0.4?

Ben

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



This e-mail, any attachments and the information contained therein (this 
message) are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
--
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après le message ), sont confidentiels et 
destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. 
Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur 
et de le détruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressément autorisées de ce 
message, sont interdites.
-


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



Re: RE : [M2] Snapshots deployed to server not being found

2006-06-05 Thread ben short

Oliver,

I have tried the -U. But i dont have any version of the artifact in my
local repo. So i would of assumed that it would download it.

Ben

On 6/5/06, Olivier Lamy [EMAIL PROTECTED] wrote:

Hi,
Try -U (sometimes saved troubles)
You can change updatePolicy in your settings for this repo (during a
furious dev phase you set always ;-) or interval:xxx in minutes)

--
Olivier

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de
ben short
Envoyé : lundi 5 juin 2006 12:13
À : Maven Users List
Objet : [M2] Snapshots deployed to server not being found


Hi,

I am trying to include a snapshot that has been deployed to our internal
repository. When I do mvn compile, maven complains that it couldn't
resolve the dependency.

Is this a bug with maven 2.0.4?

Ben

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



This e-mail, any attachments and the information contained therein (this 
message) are confidential and intended solely for the use of the addressee(s). If 
you have received this message in error please send it back to the sender and delete it. 
Unauthorized publication, use, dissemination or disclosure of this message, either in 
whole or in part is strictly prohibited.
--
Ce message électronique et tous les fichiers joints ainsi que  les informations contenues 
dans ce message ( ci après le message ), sont confidentiels et destinés 
exclusivement à l'usage de la  personne à laquelle ils sont adressés. Si vous avez reçu 
ce message par erreur, merci  de le renvoyer à son émetteur et de le détruire. Toutes 
diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit 
non expressément autorisées de ce message, sont interdites.
-


-
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 : RE : [M2] Snapshots deployed to server not being found

2006-06-05 Thread Olivier Lamy
Strange,
Because for me it works well.
How your company repositories are declared ?

In my case, we have two company repo declared in developpers
settings.xml :

Release one :
repository
releases

updatePolicynever/updatePolicy
/releases
snapshots

updatePolicynever/updatePolicy
/snapshots
idid/id
nameid-maven2/name
urlhttp://ip/maven2/url
/repository

Snapshot one :
repository
releases

updatePolicynever/updatePolicy
enabledfalse/enabled
/releases
snapshots

updatePolicyinterval:30/updatePolicy
/snapshots
idid-snapshots/id
nameid-maven2-snapshots/name
urlhttp://ip/snapshots/url
/repository

This works like a charm.
I have just tryed with a rm -rf $HOME/.m2/repository/com
And all artifacts downloaded without trouble.

--
Olivier

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de
ben short
Envoyé : lundi 5 juin 2006 12:29
À : Maven Users List
Objet : Re: RE : [M2] Snapshots deployed to server not being found


Oliver,

I have tried the -U. But i dont have any version of the artifact in my
local repo. So i would of assumed that it would download it.

Ben

On 6/5/06, Olivier Lamy [EMAIL PROTECTED] wrote:
 Hi,
 Try -U (sometimes saved troubles)
 You can change updatePolicy in your settings for this repo (during a 
 furious dev phase you set always ;-) or interval:xxx in minutes)

 --
 Olivier

 -Message d'origine-
 De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part 
 de ben short Envoyé : lundi 5 juin 2006 12:13
 À : Maven Users List
 Objet : [M2] Snapshots deployed to server not being found


 Hi,

 I am trying to include a snapshot that has been deployed to our 
 internal repository. When I do mvn compile, maven complains that it 
 couldn't resolve the dependency.

 Is this a bug with maven 2.0.4?

 Ben

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



 This e-mail, any attachments and the information contained therein 
 (this message) are confidential and intended solely for the use of
the addressee(s). If you have received this message in error please send
it back to the sender and delete it. Unauthorized publication, use,
dissemination or disclosure of this message, either in whole or in part
is strictly prohibited.


--
 Ce message électronique et tous les fichiers joints ainsi que  les
informations contenues dans ce message ( ci après le message ), sont
confidentiels et destinés exclusivement à l'usage de la  personne à
laquelle ils sont adressés. Si vous avez reçu ce message par erreur,
merci  de le renvoyer à son émetteur et de le détruire. Toutes
diffusion, publication, totale ou partielle ou divulgation sous quelque
forme que se soit non expressément autorisées de ce message, sont
interdites.


-


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



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


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



RE: Help, accidentally destroyed the maven app logs dir

2006-06-05 Thread Jonathan Tilley

Hi, 
I work with Sufyan. The full content of the exception is included below.

Cheers

Jonathan


0[WrapperSimpleAppMain] DEBUG org.codehaus.plexus.PlexusContainer  - Found 
3 components to load on start
0[WrapperSimpleAppMain] INFO  org.codehaus.plexus.PlexusContainer  - 
Loading on start [role]: [org.apache.maven.continuum.Continuum]
203  [WrapperSimpleAppMain] INFO  org.codehaus.plexus.jdo.JdoFactory  - 
Initializing JDO.
1453 [WrapperSimpleAppMain] INFO  JPOX.JDO  - PersistenceManagerFactory - 
Vendor: JPOX  Version: Unknown
1453 [WrapperSimpleAppMain] INFO  JPOX.JDO  - PersistenceManagerFactory 
initialised for datastore 
URL=jdbc:derby:D:\java\continuum-1.0.3\bin\win32\..\..\apps\continuum/database;create=true
 driver=org.apache.derby.jdbc.EmbeddedDriver userName=sa
1922 [WrapperSimpleAppMain] WARN  
org.apache.maven.continuum.execution.ContinuumBuildExecutor:ant  - Could not 
find the executable 'ant' in the path '[D:\java\Maven\maven-2.0\bin, 
C:\WINDOWS\system32, C:\WINDOWS, C:\WINDOWS\System32\Wbem, 
D:\java\jdk1.5.0_06\bin, C:\Program Files\Subversion\bin, C:\Program 
Files\MySQL\MySQL Server 5.0\bin, C:\Program Files\CVSNT\]'.
1938 [WrapperSimpleAppMain] WARN  
org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven-1  - Could 
not find the executable 'maven' in the path '[D:\java\Maven\maven-2.0\bin, 
C:\WINDOWS\system32, C:\WINDOWS, C:\WINDOWS\System32\Wbem, 
D:\java\jdk1.5.0_06\bin, C:\Program Files\Subversion\bin, C:\Program 
Files\MySQL\MySQL Server 5.0\bin, C:\Program Files\CVSNT\]'.
2484 [WrapperSimpleAppMain] DEBUG 
org.apache.maven.settings.MavenSettingsBuilder  - Building Maven global-level 
settings from: 'D:\java\continuum-1.0.3\bin\win32\conf\settings.xml'
2484 [WrapperSimpleAppMain] DEBUG 
org.apache.maven.settings.MavenSettingsBuilder  - Building Maven user-level 
settings from: 'C:\Documents and Settings\rdfdevuser\.m2\settings.xml'
2516 [WrapperSimpleAppMain] INFO  
org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2  - Resolved 
the executable 'mvn' to 'D:\java\Maven\maven-2.0\bin\mvn'.
2516 [WrapperSimpleAppMain] INFO  
org.apache.maven.continuum.execution.manager.BuildExecutorManager  - Build 
executors:
2516 [WrapperSimpleAppMain] INFO  
org.apache.maven.continuum.execution.manager.BuildExecutorManager  -   maven-1
2516 [WrapperSimpleAppMain] INFO  
org.apache.maven.continuum.execution.manager.BuildExecutorManager  -   ant
2516 [WrapperSimpleAppMain] INFO  
org.apache.maven.continuum.execution.manager.BuildExecutorManager  -   maven2
2516 [WrapperSimpleAppMain] INFO  
org.apache.maven.continuum.execution.manager.BuildExecutorManager  -   shell
2562 [WrapperSimpleAppMain] INFO  org.apache.maven.continuum.Continuum  - 
Initializing Continuum.
2562 [WrapperSimpleAppMain] INFO  org.apache.maven.continuum.Continuum  - 
Showing all projects: 
3344 [WrapperSimpleAppMain] ERROR JPOX.RDBMS.SCHEMA  - Failed initialising 
database. Please check that your database JDBC driver is accessible, and the 
database URL and username/password are correct. Exception : Failed to start 
database 'D:\java\continuum-1.0.3\bin\win32\..\..\apps\continuum/database', see 
the next exception for details.
SQL Exception: Failed to start database 
'D:\java\continuum-1.0.3\bin\win32\..\..\apps\continuum/database', see the next 
exception for details.
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown 
Source)
at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(Unknown 
Source)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown 
Source)
at org.apache.derby.impl.jdbc.EmbedConnection.init(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection30.init(Unknown Source)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at 
org.jpox.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:82)
at org.jpox.util.FailoverUtils.getConnection(FailoverUtils.java:62)
at org.jpox.store.rdbms.RDBMSManager.init(RDBMSManager.java:214)
at 
org.jpox.store.rdbms.RDBMSManagerFactory.getStoreManager(RDBMSManagerFactory.java:59)
at 
org.jpox.AbstractPersistenceManager.init(AbstractPersistenceManager.java:222)
at 
org.jpox.PersistenceManagerImpl.init(PersistenceManagerImpl.java:34)
at 
org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:916)
at 
org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:891)
at 

Re: RE : RE : [M2] Snapshots deployed to server not being found

2006-06-05 Thread ben short

Olivier,

Ah, I have proximity
(https://is-micro.myip.hu/projects/ismicro-commons/proximity/) setup
as a mirror of central.

Will try setting up the settings.xml as you have, and then get ontp
the proximity guys.

Thanks

Ben


On 6/5/06, Olivier Lamy [EMAIL PROTECTED] wrote:

Strange,
Because for me it works well.
How your company repositories are declared ?

In my case, we have two company repo declared in developpers
settings.xml :

Release one :
repository
releases

updatePolicynever/updatePolicy
/releases
snapshots

updatePolicynever/updatePolicy
/snapshots
idid/id
nameid-maven2/name
urlhttp://ip/maven2/url
/repository

Snapshot one :
repository
releases

updatePolicynever/updatePolicy
enabledfalse/enabled
/releases
snapshots

updatePolicyinterval:30/updatePolicy
/snapshots
idid-snapshots/id
nameid-maven2-snapshots/name
urlhttp://ip/snapshots/url
/repository

This works like a charm.
I have just tryed with a rm -rf $HOME/.m2/repository/com
And all artifacts downloaded without trouble.

--
Olivier

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de
ben short
Envoyé : lundi 5 juin 2006 12:29
À : Maven Users List
Objet : Re: RE : [M2] Snapshots deployed to server not being found


Oliver,

I have tried the -U. But i dont have any version of the artifact in my
local repo. So i would of assumed that it would download it.

Ben

On 6/5/06, Olivier Lamy [EMAIL PROTECTED] wrote:
 Hi,
 Try -U (sometimes saved troubles)
 You can change updatePolicy in your settings for this repo (during a
 furious dev phase you set always ;-) or interval:xxx in minutes)

 --
 Olivier

 -Message d'origine-
 De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part
 de ben short Envoyé : lundi 5 juin 2006 12:13
 À : Maven Users List
 Objet : [M2] Snapshots deployed to server not being found


 Hi,

 I am trying to include a snapshot that has been deployed to our
 internal repository. When I do mvn compile, maven complains that it
 couldn't resolve the dependency.

 Is this a bug with maven 2.0.4?

 Ben

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



 This e-mail, any attachments and the information contained therein
 (this message) are confidential and intended solely for the use of
the addressee(s). If you have received this message in error please send
it back to the sender and delete it. Unauthorized publication, use,
dissemination or disclosure of this message, either in whole or in part
is strictly prohibited.


--
 Ce message électronique et tous les fichiers joints ainsi que  les
informations contenues dans ce message ( ci après le message ), sont
confidentiels et destinés exclusivement à l'usage de la  personne à
laquelle ils sont adressés. Si vous avez reçu ce message par erreur,
merci  de le renvoyer à son émetteur et de le détruire. Toutes
diffusion, publication, totale ou partielle ou divulgation sous quelque
forme que se soit non expressément autorisées de ce message, sont
interdites.


-


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



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


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




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



[m2] Profile activation with property non-existance

2006-06-05 Thread Veyret Stephane
Hi,
 
It is possible to automatically activate a profile testing a property existance 
(tag profile/activation/property).
But is it possible to automatically activate another profile when this same 
property does
not exist ? This would be very usefull.
For exemple :
profiles
  !-- Delivery mode --
  profile
activation
  property
namedelivery-version/name
  /property
/activation
  /profile
  !-- Developpement mode --
  profile
activation
  noproperty
namedelivery-version/name
  /noproperty
/activation
  /profile
/profiles
 
Thank you.

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



[m2] Single Eclipse project for muti-module

2006-06-05 Thread Veyret Stephane
Hi,
 
That would be cool to have a setting that make the eclipse plugin make a single 
eclipse project that holds the modules of a Maven 2 multi-module project. That 
would make a better integration with Subversion plugins for Eclipse...
 
What do you think of this ?
 
Thank you for your answer.

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



Re: [m2] Profile activation with property non-existance

2006-06-05 Thread Kieran Brady
It is possible - th link below should help and its the ! operator which is 
important (is this documented anywhere???) :


http://marc.theaimsgroup.com/?l=turbine-maven-userm=114834785006237w=2

I have used it such that if a certain property is not passed in, __or is 
false__ (note the ! on the value), then I activate that profile:


activation
property
 name!skip.something/name
 value!true/value
/property
/activation

- Original Message - 
From: Veyret Stephane [EMAIL PROTECTED]

To: users@maven.apache.org
Sent: Monday, June 05, 2006 12:23 PM
Subject: [m2] Profile activation with property non-existance


Hi,

It is possible to automatically activate a profile testing a property 
existance (tag profile/activation/property).
But is it possible to automatically activate another profile when this same 
property does

not exist ? This would be very usefull.
For exemple :
profiles
 !-- Delivery mode --
 profile
   activation
 property
   namedelivery-version/name
 /property
   /activation
 /profile
 !-- Developpement mode --
 profile
   activation
 noproperty
   namedelivery-version/name
 /noproperty
   /activation
 /profile
/profiles

Thank you.

-
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: [m2] Single Eclipse project for muti-module

2006-06-05 Thread Kieran Brady
Apparently Eclipse 3.2 supports nested projects so it looks like we'll have 
to wait:


http://marc.theaimsgroup.com/?l=turbine-maven-userm=114774821906161w=2

- Original Message - 
From: Veyret Stephane [EMAIL PROTECTED]

To: users@maven.apache.org
Sent: Monday, June 05, 2006 12:25 PM
Subject: [m2] Single Eclipse project for muti-module


Hi,

That would be cool to have a setting that make the eclipse plugin make a 
single eclipse project that holds the modules of a Maven 2 multi-module 
project. That would make a better integration with Subversion plugins for 
Eclipse...


What do you think of this ?

Thank you for your answer.

-
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: specifying plugin parameters in POM

2006-06-05 Thread Charlie Groves

Jars are created with maven-jar-plugin, so you'd change the output
directory by setting its basedir in your plugin configuration in
build.  You can see the jar plugin docs at
http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html and
about configuring plugins from pom.xml at
http://maven.apache.org/guides/mini/guide-configuring-plugins.html

Charlie

On 6/5/06, Eugeny N Dzhurinsky [EMAIL PROTECTED] wrote:

On Fri, Jun 02, 2006 at 07:45:53PM +0300, Eugeny N Dzhurinsky wrote:
 But still wandering how I can specify different directory for placing JAR file
 produced with package goal?

Is it not possible at all with maven?

--
Eugene N Dzhurinsky

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



howto constrain available repositories for specific artifacts?

2006-06-05 Thread Bram de Kruijff
Hi,

is it possible to prevent mvn from checking all (active) repositories
for specific artifacts? For example when I build Apache Felix there is
an aditional repository (apache.snapshots) defined by the project. When
I build it mvn will hit central for each felix artifact (and visa versa)
allthough it will obviously never find anything. Seems like a lot of
senseless trafic/load/time wasting :S Any tips?

best regards,
Bram

ps. Same goes for maven-proxy. It seems to always check all upstream
repositories?

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



Re: RE : RE : [M2] Snapshots deployed to server not being found

2006-06-05 Thread Alexandre Poitras

Same problem here, snapshots are not resolved anymore but they used to
be in the past. Now, if I release a version of the same dependency and
depends upon it instead of the snapshot version, everything works.
Looks like a bug to me.

On 6/5/06, ben short [EMAIL PROTECTED] wrote:

Olivier,

Ah, I have proximity
(https://is-micro.myip.hu/projects/ismicro-commons/proximity/) setup
as a mirror of central.

Will try setting up the settings.xml as you have, and then get ontp
the proximity guys.

Thanks

Ben


On 6/5/06, Olivier Lamy [EMAIL PROTECTED] wrote:
 Strange,
 Because for me it works well.
 How your company repositories are declared ?

 In my case, we have two company repo declared in developpers
 settings.xml :

 Release one :
 repository
 releases

 updatePolicynever/updatePolicy
 /releases
 snapshots

 updatePolicynever/updatePolicy
 /snapshots
 idid/id
 nameid-maven2/name
 urlhttp://ip/maven2/url
 /repository

 Snapshot one :
 repository
 releases

 updatePolicynever/updatePolicy
 enabledfalse/enabled
 /releases
 snapshots

 updatePolicyinterval:30/updatePolicy
 /snapshots
 idid-snapshots/id
 nameid-maven2-snapshots/name
 urlhttp://ip/snapshots/url
 /repository

 This works like a charm.
 I have just tryed with a rm -rf $HOME/.m2/repository/com
 And all artifacts downloaded without trouble.

 --
 Olivier

 -Message d'origine-
 De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de
 ben short
 Envoyé : lundi 5 juin 2006 12:29
 À : Maven Users List
 Objet : Re: RE : [M2] Snapshots deployed to server not being found


 Oliver,

 I have tried the -U. But i dont have any version of the artifact in my
 local repo. So i would of assumed that it would download it.

 Ben

 On 6/5/06, Olivier Lamy [EMAIL PROTECTED] wrote:
  Hi,
  Try -U (sometimes saved troubles)
  You can change updatePolicy in your settings for this repo (during a
  furious dev phase you set always ;-) or interval:xxx in minutes)
 
  --
  Olivier
 
  -Message d'origine-
  De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part
  de ben short Envoyé : lundi 5 juin 2006 12:13
  À : Maven Users List
  Objet : [M2] Snapshots deployed to server not being found
 
 
  Hi,
 
  I am trying to include a snapshot that has been deployed to our
  internal repository. When I do mvn compile, maven complains that it
  couldn't resolve the dependency.
 
  Is this a bug with maven 2.0.4?
 
  Ben
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  This e-mail, any attachments and the information contained therein
  (this message) are confidential and intended solely for the use of
 the addressee(s). If you have received this message in error please send
 it back to the sender and delete it. Unauthorized publication, use,
 dissemination or disclosure of this message, either in whole or in part
 is strictly prohibited.
 
 
 --
  Ce message électronique et tous les fichiers joints ainsi que  les
 informations contenues dans ce message ( ci après le message ), sont
 confidentiels et destinés exclusivement à l'usage de la  personne à
 laquelle ils sont adressés. Si vous avez reçu ce message par erreur,
 merci  de le renvoyer à son émetteur et de le détruire. Toutes
 diffusion, publication, totale ou partielle ou divulgation sous quelque
 forme que se soit non expressément autorisées de ce message, sont
 interdites.
 
 
 -
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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


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




Re: RE : RE : [M2] Snapshots deployed to server not being found

2006-06-05 Thread ben short

Alexandre,

Your using Proximity?

I have email the Proximity guy, but wasnt able to give him much info
as the log contained nothing.

Ben

On 6/5/06, Alexandre Poitras [EMAIL PROTECTED] wrote:

Same problem here, snapshots are not resolved anymore but they used to
be in the past. Now, if I release a version of the same dependency and
depends upon it instead of the snapshot version, everything works.
Looks like a bug to me.

On 6/5/06, ben short [EMAIL PROTECTED] wrote:
 Olivier,

 Ah, I have proximity
 (https://is-micro.myip.hu/projects/ismicro-commons/proximity/) setup
 as a mirror of central.

 Will try setting up the settings.xml as you have, and then get ontp
 the proximity guys.

 Thanks

 Ben


 On 6/5/06, Olivier Lamy [EMAIL PROTECTED] wrote:
  Strange,
  Because for me it works well.
  How your company repositories are declared ?
 
  In my case, we have two company repo declared in developpers
  settings.xml :
 
  Release one :
  repository
  releases
 
  updatePolicynever/updatePolicy
  /releases
  snapshots
 
  updatePolicynever/updatePolicy
  /snapshots
  idid/id
  nameid-maven2/name
  urlhttp://ip/maven2/url
  /repository
 
  Snapshot one :
  repository
  releases
 
  updatePolicynever/updatePolicy
  enabledfalse/enabled
  /releases
  snapshots
 
  updatePolicyinterval:30/updatePolicy
  /snapshots
  idid-snapshots/id
  nameid-maven2-snapshots/name
  urlhttp://ip/snapshots/url
  /repository
 
  This works like a charm.
  I have just tryed with a rm -rf $HOME/.m2/repository/com
  And all artifacts downloaded without trouble.
 
  --
  Olivier
 
  -Message d'origine-
  De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de
  ben short
  Envoyé : lundi 5 juin 2006 12:29
  À : Maven Users List
  Objet : Re: RE : [M2] Snapshots deployed to server not being found
 
 
  Oliver,
 
  I have tried the -U. But i dont have any version of the artifact in my
  local repo. So i would of assumed that it would download it.
 
  Ben
 
  On 6/5/06, Olivier Lamy [EMAIL PROTECTED] wrote:
   Hi,
   Try -U (sometimes saved troubles)
   You can change updatePolicy in your settings for this repo (during a
   furious dev phase you set always ;-) or interval:xxx in minutes)
  
   --
   Olivier
  
   -Message d'origine-
   De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part
   de ben short Envoyé : lundi 5 juin 2006 12:13
   À : Maven Users List
   Objet : [M2] Snapshots deployed to server not being found
  
  
   Hi,
  
   I am trying to include a snapshot that has been deployed to our
   internal repository. When I do mvn compile, maven complains that it
   couldn't resolve the dependency.
  
   Is this a bug with maven 2.0.4?
  
   Ben
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
   This e-mail, any attachments and the information contained therein
   (this message) are confidential and intended solely for the use of
  the addressee(s). If you have received this message in error please send
  it back to the sender and delete it. Unauthorized publication, use,
  dissemination or disclosure of this message, either in whole or in part
  is strictly prohibited.
  
  
  --
   Ce message électronique et tous les fichiers joints ainsi que  les
  informations contenues dans ce message ( ci après le message ), sont
  confidentiels et destinés exclusivement à l'usage de la  personne à
  laquelle ils sont adressés. Si vous avez reçu ce message par erreur,
  merci  de le renvoyer à son émetteur et de le détruire. Toutes
  diffusion, publication, totale ou partielle ou divulgation sous quelque
  forme que se soit non expressément autorisées de ce message, sont
  interdites.
  
  
  -
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
  

Question on how users code/test their war applications

2006-06-05 Thread William Kinney
Hello,

I was just curious how other maven 2 users currently go through coding/testing 
war applications on i.e. tomcat or jboss. Do you just code, package, deploy to 
local and UI test? Do you usually do exploded war? Or do you heavily rely on 
JUnit? Or do you have a remote test box you remote deploy to every time? Or do 
you manually mv/copy paste? Trying to get an idea of how best to normalize war 
application testing for a project...

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ben short
Sent: Monday, June 05, 2006 9:26 AM
To: Maven Users List
Subject: Re: RE : RE : [M2] Snapshots deployed to server not being found

Alexandre,

Your using Proximity?

I have email the Proximity guy, but wasnt able to give him much info as the log 
contained nothing.

Ben

On 6/5/06, Alexandre Poitras [EMAIL PROTECTED] wrote:
 Same problem here, snapshots are not resolved anymore but they used to 
 be in the past. Now, if I release a version of the same dependency and 
 depends upon it instead of the snapshot version, everything works.
 Looks like a bug to me.

 On 6/5/06, ben short [EMAIL PROTECTED] wrote:
  Olivier,
 
  Ah, I have proximity
  (https://is-micro.myip.hu/projects/ismicro-commons/proximity/) setup 
  as a mirror of central.
 
  Will try setting up the settings.xml as you have, and then get ontp 
  the proximity guys.
 
  Thanks
 
  Ben
 
 
  On 6/5/06, Olivier Lamy [EMAIL PROTECTED] wrote:
   Strange,
   Because for me it works well.
   How your company repositories are declared ?
  
   In my case, we have two company repo declared in developpers 
   settings.xml :
  
   Release one :
   repository
   releases
  
   updatePolicynever/updatePolicy
   /releases
   snapshots
  
   updatePolicynever/updatePolicy
   /snapshots
   idid/id
   nameid-maven2/name
   urlhttp://ip/maven2/url
   /repository
  
   Snapshot one :
   repository
   releases
  
   updatePolicynever/updatePolicy
   enabledfalse/enabled
   /releases
   snapshots
  
   updatePolicyinterval:30/updatePolicy
   /snapshots
   idid-snapshots/id
   nameid-maven2-snapshots/name
   urlhttp://ip/snapshots/url
   /repository
  
   This works like a charm.
   I have just tryed with a rm -rf $HOME/.m2/repository/com And all 
   artifacts downloaded without trouble.
  
   --
   Olivier
  
   -Message d'origine-
   De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la 
   part de ben short Envoyé : lundi 5 juin 2006 12:29 À : Maven Users 
   List Objet : Re: RE : [M2] Snapshots deployed to server not being 
   found
  
  
   Oliver,
  
   I have tried the -U. But i dont have any version of the artifact 
   in my local repo. So i would of assumed that it would download it.
  
   Ben
  
   On 6/5/06, Olivier Lamy [EMAIL PROTECTED] wrote:
Hi,
Try -U (sometimes saved troubles) You can change updatePolicy in 
your settings for this repo (during a furious dev phase you set 
always ;-) or interval:xxx in minutes)
   
--
Olivier
   
-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la 
part de ben short Envoyé : lundi 5 juin 2006 12:13 À : Maven 
Users List Objet : [M2] Snapshots deployed to server not being 
found
   
   
Hi,
   
I am trying to include a snapshot that has been deployed to our 
internal repository. When I do mvn compile, maven complains that 
it couldn't resolve the dependency.
   
Is this a bug with maven 2.0.4?
   
Ben
   

- To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
This e-mail, any attachments and the information contained 
therein (this message) are confidential and intended solely 
for the use of
   the addressee(s). If you have received this message in error 
   please send it back to the sender and delete it. Unauthorized 
   publication, use, dissemination or disclosure of this message, 
   either in whole or in part is strictly prohibited.
   
   --
   --
   --
Ce message électronique et tous les fichiers 

Re: specifying plugin parameters in POM

2006-06-05 Thread Eugeny N Dzhurinsky
On Mon, Jun 05, 2006 at 08:30:50AM -0400, Charlie Groves wrote:
 Jars are created with maven-jar-plugin, so you'd change the output
 directory by setting its basedir in your plugin configuration in
 build.  You can see the jar plugin docs at
 http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html and
 about configuring plugins from pom.xml at
 http://maven.apache.org/guides/mini/guide-configuring-plugins.html

You mean I can alter configuration for jar:jar somehow in a POM file for
project, so when jar:jar target will be executed in a lifecycle for 'package'
- JAR file will be placed in a directory I specify in plugin configuration?

plugin
groupIdorg.codehaus.mojo/groupId

artifactIdmaven-jar-plugin/artifactId

executions
execution
idjar/id

phasepackage/phase

goals
goaljar/goal
/goals

configuration
outputDirectoryWEB-INF/lib/outputDirectory
/configuration
/execution
/executions
/plugin

Something like this? And what about valid group ID for the plugin?


-- 
Eugene N Dzhurinsky

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



Re: specifying plugin parameters in POM

2006-06-05 Thread Eugeny N Dzhurinsky
plugin
groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-jar-plugin/artifactId

executions
execution
idjar/id

phasepackage/phase

goals
goaljar/goal
/goals
 
configuration
outputDirectoryWEB-INF/lib/outputDirectory
/configuration
/execution
/executions
/plugin

For some reason that configuration does not force maven to store JAR in
WEB-INF/lib directory.

-- 
Eugene N Dzhurinsky

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



Re: specifying plugin parameters in POM

2006-06-05 Thread Charlie Groves

Hmm, I actually assumed you'd be able to set the basedir property on
the jar plugin, but I just tried it and apparently basedir is read
only.  It's the one that controls what directory the jar goes.  Since
its value comes from ${project.build.directory} that means you could
add
   build
   directoryWEB-INF/lib/directory
   /build
to your pom, but that would put the classes directory and everything
else into there.  I'm going to have to defer to a more expert user of
maven on this one.

Charlie

On 6/5/06, Eugeny N Dzhurinsky [EMAIL PROTECTED] wrote:

plugin
groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-jar-plugin/artifactId

executions
execution
idjar/id

phasepackage/phase

goals
goaljar/goal
/goals

configuration
outputDirectoryWEB-INF/lib/outputDirectory
/configuration
/execution
/executions
/plugin

For some reason that configuration does not force maven to store JAR in
WEB-INF/lib directory.

--
Eugene N Dzhurinsky

-
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 Practice Question about the Maven Surefire Plugin +

2006-06-05 Thread Serge Emmanuel Pagop

Hi all Maven Gurus,

I have situation with maven 2, surefire plugin and JBoss Embedded EJB3
Alpha-8 :

I like to set some configuration files and resource files in the
testClasspath before I run my test oder testcase class. It seem like, wenn I
make this configuration in my pom.xml


   testResources
   testResource
   directorysrc/test/resources/directory
   includes
   includeMETA-INF/persistence.xml/include
   /includes
   /testResource
   /testResources

I know that man kann also copy all resource files für java classes in the
src/main/resources (Default) directory without have to set /resources and
also for the test classes in the src/test/resources (Default) directory
without have to set /testResources

But I do not understand why the resources kann not be fund in the classpath.

If some one have any Ideas or may be already runs a sample example like
Maven 2 and JBoss Embedded with a Unit Test, then it will helpful to send me
some suppositions maybe the full the sample examples as a zip file.

Cheers...

--
--
Serge Emmanuel Pagop
Java EE Consultant and Trainer
E-Mail: [EMAIL PROTECTED]
Skype-Name: sisepago
Cell : +49-172-8552687


dependency-maven-plugin issue?

2006-06-05 Thread Eugeny N Dzhurinsky
I have a project which consists of several modules (m1,m2 and m3)

m2 depends of m1, m3 depends of m1 and m2

In m3/pom.xml I have definition for dependency plugin like this

build
plugins
plugin
groupIdorg.codehaus.mojo/groupId

artifactIddependency-maven-plugin/artifactId

executions
execution
idcopy-dependencies/id

phasepackage/phase

goals
goalcopy-dependencies/goal
/goals

configuration
outputDirectoryWEB-INF/lib/outputDirectory
/configuration
/execution
/executions
/plugin
/plugins
/build

when I invoke `mvn package' in the project directory, only dependencies for
m3, m2 and m1 are copied into m3/WEB-INF/lib/, but not m1-1.0.jar and
m2-1.0.jar. If I invoke the same command in the m3 directory, all
dependencies, including JAR files are copied.

What I am doing in a wrong way?
-- 
Eugene N Dzhurinsky

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



Re: [M2] Snapshots deployed to server not being found

2006-06-05 Thread Paul Spencer

Ben,
I have seen the same behavior.  Although I have not had time to determine what 
is
the root cause, I think it may the IDE, Eclipse in my case, locking the 
dependency
in the local repository and Maven not complaining when it can not replace the 
file.  Again
I have not had time to verify this, it is just a hunch.

Paul Spencer

ben short wrote:

Hi,

I am trying to include a snapshot that has been deployed to our
internal repository. When I do mvn compile, maven complains that it
couldn't resolve the dependency.

Is this a bug with maven 2.0.4?

Ben

-
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: + Best Practice Question about the Maven Surefire Plugin +

2006-06-05 Thread Piéroni Raphaël

Hi Serge-Emmanuel,

IIRC, the test resources (by default located in src/test/resources) are
copied into target/test-classes just before the test-compile phase.
therefore they should be accessible in the test classpath...

Hope this helps.

Raphaël

2006/6/5, Serge Emmanuel Pagop [EMAIL PROTECTED]:


Hi all Maven Gurus,

I have situation with maven 2, surefire plugin and JBoss Embedded EJB3
Alpha-8 :

I like to set some configuration files and resource files in the
testClasspath before I run my test oder testcase class. It seem like, wenn
I
make this configuration in my pom.xml


testResources
testResource
directorysrc/test/resources/directory
includes
includeMETA-INF/persistence.xml/include
/includes
/testResource
/testResources

I know that man kann also copy all resource files für java classes in the
src/main/resources (Default) directory without have to set /resources
and
also for the test classes in the src/test/resources (Default) directory
without have to set /testResources

But I do not understand why the resources kann not be fund in the
classpath.

If some one have any Ideas or may be already runs a sample example like
Maven 2 and JBoss Embedded with a Unit Test, then it will helpful to send
me
some suppositions maybe the full the sample examples as a zip file.

Cheers...

--
--
Serge Emmanuel Pagop
Java EE Consultant and Trainer
E-Mail: [EMAIL PROTECTED]
Skype-Name: sisepago
Cell : +49-172-8552687




Re: m2: filtering archetype artifacts

2006-06-05 Thread Willie Vu

I use ${esc.dollar} but it doesn't work and causes the following error:

[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [
line 102,column 18] : ${esc.dollor} is not a valid reference.


--
Willie Vu

On 3/15/06, Kathryn Huxtable [EMAIL PROTECTED] wrote:

Wendy Smoak says this is done through Velocity. I haven't had time to look
through the macros. I'm trying to figure out how to escape a dollar sign in
the artifact resources.

-K


On 3/15/06 8:01 AM, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:

 Anyone know how to prevent or turn off filtering of artifacts within an
 archetype?



 This communication is for informational purposes only. It is not intended
 as an offer or solicitation for the purchase or sale of any financial
 instrument or as an official confirmation of any transaction. All market
 prices,
 data and other information are not warranted as to completeness or accuracy
 and
 are subject to change without notice. Any comments or statements made herein
 do not necessarily reflect those of JPMorgan Chase  Co., its subsidiaries
 and affiliates.

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


--
Kathryn Huxtable
Middleware Architect
Core Middleware
Information Technology, a division of Information Services
The University of Kansas


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




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



POM file in Repository

2006-06-05 Thread cristal

We have a few 3rd-party jar files that are not in central repository, e.g.
ibiblio.org. So we had to manually install them to our local repository
using the following command.

mvn install:install-file -Dfile=path-to-file -DgroupId=group-id \
-DartifactId=artifact-id -Dversion=version -Dpackaging=packaging

However, this command only installs the jar file into the local repository.
So what happens is - whenever I started my maven build, it always tries to
retrieve the corresponding pom file for each of the 3rd-party jar files from
central repository, which of course are not there. So the warning message
always displayed like this:

[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)

It's quite annoying. It's annoying not because of the message itself, it's
because it slows down my build process. I don't want it to go to central
repository to retrieve something that I know is not there. I only need the
jar file and it's already in my local repository. why it always tries to
retrieve the pom file from central? Is there a way to disable this???

Please advise. Thanks.


--
View this message in context: 
http://www.nabble.com/POM-file-in-Repository-t1735732.html#a4716428
Sent from the Maven - Users forum at Nabble.com.


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



Re: dependency-maven-plugin issue?

2006-06-05 Thread Eugeny N Dzhurinsky
There was an issue in the plugin, thjanks to kenney from
[EMAIL PROTECTED]

svn co https://svn.codehaus.org/mojo/trunk/mojo/dependency-maven-plugin and
then `mvn install' did the trick.
-- 
Eugene N Dzhurinsky

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



[Release plugin] Dependency versions not updated in rewrite-for-development phase

2006-06-05 Thread LECAN Damien
Hello,

I'm working with Maven 2.0.4 and maven-release-plugin 2.0-beta4.

When I try to release a multi-module project, the rewrite-for-development phase 
forgets to migrate dependency versions.

For example :
## Before
project
  parent
artifactIdvsi/artifactId
groupIdvsi/groupId
version0.0.2-SNAPSHOT/version
  /parent
  modelVersion4.0.0/modelVersion
  groupIdvsi/groupId
  artifactIdplugin-generator/artifactId
  namePlugin generator/name
  version0.0.2-SNAPSHOT/version
  dependencies
dependency
  groupIdvsi/groupId
  artifactIdcanprovider-generator/artifactId
  version0.0.2-SNAPSHOT/version
  scopeprovided/scope
/dependency
  /dependencies
/project

## Rewrite for release phase : OK
All 0.0.2-SNAPSHOT references are converted to 0.0.2, even for dependencies

## Rewrite for development
Errors appear, since the plugin forget to convert again dependency versions !!
Here is the result :

project
  parent
artifactIdvsi/artifactId
groupIdvsi/groupId
version0.0.3-SNAPSHOT/version
  /parent
  modelVersion4.0.0/modelVersion
  groupIdvsi/groupId
  artifactIdplugin-generator/artifactId
  namePlugin generator/name
  version0.0.3-SNAPSHOT/version
  dependencies
dependency
  groupIdvsi/groupId
  artifactIdcanprovider-generator/artifactId
  version0.0.2/version
  scopeprovided/scope
/dependency
  /dependencies
/project

Is it a bug, or something is wrong in my multi-module configuration ?

Thanks


Damien Lecan

--
Telematic Systems
B2i - Viveris Group France

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



Re: POM file in Repository

2006-06-05 Thread Guillaume Bilodeau
Add the -DgeneratePom=true to your command and a local POM will be generated.  
This should stop the systematic lookup on new builds.

Cheers,
GB
 
  Guillaume Bilodeau
 [EMAIL PROTECTED]
  Only two things are infinite, the universe and human stupidity, and I'm not 
sure about the former.
  - Albert Einstein



- Original Message 
From: cristal [EMAIL PROTECTED]
To: users@maven.apache.org
Sent: Monday, June 5, 2006 7:11:54 PM
Subject: POM file in Repository


We have a few 3rd-party jar files that are not in central repository, e.g.
ibiblio.org. So we had to manually install them to our local repository
using the following command.

mvn install:install-file -Dfile=path-to-file -DgroupId=group-id \
-DartifactId=artifact-id -Dversion=version -Dpackaging=packaging

However, this command only installs the jar file into the local repository.
So what happens is - whenever I started my maven build, it always tries to
retrieve the corresponding pom file for each of the 3rd-party jar files from
central repository, which of course are not there. So the warning message
always displayed like this:

[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)

It's quite annoying. It's annoying not because of the message itself, it's
because it slows down my build process. I don't want it to go to central
repository to retrieve something that I know is not there. I only need the
jar file and it's already in my local repository. why it always tries to
retrieve the pom file from central? Is there a way to disable this???

Please advise. Thanks.


--
View this message in context: 
http://www.nabble.com/POM-file-in-Repository-t1735732.html#a4716428
Sent from the Maven - Users forum at Nabble.com.


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






Re: [M2] Snapshots deployed to server not being found

2006-06-05 Thread Tamás Cservenák

Hi all,

as for Proximity, it WILL surely log something, at least the frontent
servlet that it got request. Alpha1 went out with DEBUG loglevel, but alpha2
is in INFO level. But even then, the servlet spits messages at INFO level.

If you have NO PROXIMITY logs, it's simply because Px have not got any
request

I just got back from weekend, will see tonite about this...

~t~

On 6/5/06, Paul Spencer [EMAIL PROTECTED] wrote:


Ben,
I have seen the same behavior.  Although I have not had time to determine
what is
the root cause, I think it may the IDE, Eclipse in my case, locking the
dependency
in the local repository and Maven not complaining when it can not replace
the file.  Again
I have not had time to verify this, it is just a hunch.

Paul Spencer

ben short wrote:
 Hi,

 I am trying to include a snapshot that has been deployed to our
 internal repository. When I do mvn compile, maven complains that it
 couldn't resolve the dependency.

 Is this a bug with maven 2.0.4?

 Ben

 -
 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: [M2] Snapshots deployed to server not being found

2006-06-05 Thread rudy.bistrovich
Same here...one thing I think I did that seemed to work was to throw the
-U cmd on the compile, ie. mvn -U compile.  Try that and let us know
if it works.

--Rudy

-Original Message-
From: Paul Spencer [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 05, 2006 10:29 AM
To: Maven Users List
Subject: Re: [M2] Snapshots deployed to server not being found

Ben,
I have seen the same behavior.  Although I have not had time to
determine what is
the root cause, I think it may the IDE, Eclipse in my case, locking the
dependency
in the local repository and Maven not complaining when it can not
replace the file.  Again
I have not had time to verify this, it is just a hunch.

Paul Spencer

ben short wrote:
 Hi,
 
 I am trying to include a snapshot that has been deployed to our
 internal repository. When I do mvn compile, maven complains that it
 couldn't resolve the dependency.
 
 Is this a bug with maven 2.0.4?
 
 Ben
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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


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



building assemblies from the top level project directory

2006-06-05 Thread EJ Ciramella
If I have a structure like this:
 
C:\work\projectname
 
And have three modules:
 
C:\work\projectname\utils
C:\work\projectname\someproj
C:\work\projectname\application
 
The only item that has an assembly is the actual application.  Is there
some way to build that assembly from the projectname directory, or do I
have to run assembly:assembly from the application directory every time?


RE : [Release plugin] Dependency versions not updated in rewrite-for-development phase

2006-06-05 Thread Olivier Lamy
Hi,
Is artifact vis:canprovider-generator in reactors of the parent pom ?

If yes, there is an issue in jira [1] concerning this trouble. 
If not, you need to put it in parent reactors then you will in the issue
case ;-).

I suggest you using dependencyManagement to manage dependencies beetwen
reactors in a multi modules build.
Because in this case you just need to change only one pom. (actually a
by hand change is needed)

--
Olivier


[1] http://jira.codehaus.org/browse/MRELEASE-91

-Message d'origine-
De : LECAN Damien [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 5 juin 2006 17:53
À : users@maven.apache.org
Objet : [Release plugin] Dependency versions not updated in
rewrite-for-development phase


Hello,

I'm working with Maven 2.0.4 and maven-release-plugin 2.0-beta4.

When I try to release a multi-module project, the
rewrite-for-development phase forgets to migrate dependency versions.

For example :
## Before
project
  parent
artifactIdvsi/artifactId
groupIdvsi/groupId
version0.0.2-SNAPSHOT/version
  /parent
  modelVersion4.0.0/modelVersion
  groupIdvsi/groupId
  artifactIdplugin-generator/artifactId
  namePlugin generator/name
  version0.0.2-SNAPSHOT/version
  dependencies
dependency
  groupIdvsi/groupId
  artifactIdcanprovider-generator/artifactId
  version0.0.2-SNAPSHOT/version
  scopeprovided/scope
/dependency
  /dependencies
/project

## Rewrite for release phase : OK
All 0.0.2-SNAPSHOT references are converted to 0.0.2, even for
dependencies

## Rewrite for development
Errors appear, since the plugin forget to convert again dependency
versions !! Here is the result :

project
  parent
artifactIdvsi/artifactId
groupIdvsi/groupId
version0.0.3-SNAPSHOT/version
  /parent
  modelVersion4.0.0/modelVersion
  groupIdvsi/groupId
  artifactIdplugin-generator/artifactId
  namePlugin generator/name
  version0.0.3-SNAPSHOT/version
  dependencies
dependency
  groupIdvsi/groupId
  artifactIdcanprovider-generator/artifactId
  version0.0.2/version
  scopeprovided/scope
/dependency
  /dependencies
/project

Is it a bug, or something is wrong in my multi-module configuration ?

Thanks


Damien Lecan

--
Telematic Systems
B2i - Viveris Group France

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



This e-mail, any attachments and the information contained therein (this 
message) are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
--
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après le message ), sont confidentiels et 
destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. 
Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur 
et de le détruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressément autorisées de ce 
message, sont interdites.
-


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



RE: [Release plugin] Dependency versions not updated in rewrite-for-development phase

2006-06-05 Thread Mike Perham
This has been a point of debate.  On one hand, it makes releasing a set
of modules together easier.  On the other hand, it forces a new version
on your module even though you have no reason to require the new version
yet.

-Original Message-
From: LECAN Damien [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 05, 2006 10:53 AM
To: users@maven.apache.org
Subject: [Release plugin] Dependency versions not updated in
rewrite-for-development phase

Hello,

I'm working with Maven 2.0.4 and maven-release-plugin 2.0-beta4.

When I try to release a multi-module project, the
rewrite-for-development phase forgets to migrate dependency versions.

For example :
## Before
project
  parent
artifactIdvsi/artifactId
groupIdvsi/groupId
version0.0.2-SNAPSHOT/version
  /parent
  modelVersion4.0.0/modelVersion
  groupIdvsi/groupId
  artifactIdplugin-generator/artifactId
  namePlugin generator/name
  version0.0.2-SNAPSHOT/version
  dependencies
dependency
  groupIdvsi/groupId
  artifactIdcanprovider-generator/artifactId
  version0.0.2-SNAPSHOT/version
  scopeprovided/scope
/dependency
  /dependencies
/project

## Rewrite for release phase : OK
All 0.0.2-SNAPSHOT references are converted to 0.0.2, even for
dependencies

## Rewrite for development
Errors appear, since the plugin forget to convert again dependency
versions !!
Here is the result :

project
  parent
artifactIdvsi/artifactId
groupIdvsi/groupId
version0.0.3-SNAPSHOT/version
  /parent
  modelVersion4.0.0/modelVersion
  groupIdvsi/groupId
  artifactIdplugin-generator/artifactId
  namePlugin generator/name
  version0.0.3-SNAPSHOT/version
  dependencies
dependency
  groupIdvsi/groupId
  artifactIdcanprovider-generator/artifactId
  version0.0.2/version
  scopeprovided/scope
/dependency
  /dependencies
/project

Is it a bug, or something is wrong in my multi-module configuration ?

Thanks


Damien Lecan

--
Telematic Systems
B2i - Viveris Group France

-
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: dependency-maven-plugin issue?

2006-06-05 Thread dan tran

I would like to suggest that we stop using depend-maven-plugin and move
forward with maven-dependency-plugin at Apache

http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-dependency-plugin


We definitely dont want to have concurrent development of
dependency-maven-plugin ( at mojo)  and maven-dependency-plugin.

I have committed bunch of enhancements only at apache since the migragration
of mojo to apache

-Dan



On 6/5/06, Eugeny N Dzhurinsky [EMAIL PROTECTED] wrote:


There was an issue in the plugin, thjanks to kenney from
[EMAIL PROTECTED]

svn co https://svn.codehaus.org/mojo/trunk/mojo/dependency-maven-pluginand
then `mvn install' did the trick.
--
Eugene N Dzhurinsky

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




RE: building assemblies from the top level project directory - binding to lifecycle stages...

2006-06-05 Thread EJ Ciramella
Shouldn't this work?

plugins
  plugin
   artifactIdmaven-assembly-plugin/artifactId
configuration
  descriptorsrc/main/assembly/dep.xml/descriptor
/configuration
   executions
execution
  phasepackage/phase
/execution
   /executions
  /plugin 




It doesn't, but is there a way to do something like this?  Packaging
this particular module should mean build a tarball in addition to the
jar with all the classes.

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 05, 2006 11:56 AM
To: Maven Users List
Subject: building assemblies from the top level project directory

If I have a structure like this:
 
C:\work\projectname
 
And have three modules:
 
C:\work\projectname\utils
C:\work\projectname\someproj
C:\work\projectname\application
 
The only item that has an assembly is the actual application.  Is there
some way to build that assembly from the projectname directory, or do I
have to run assembly:assembly from the application directory every time?

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



javadoc won't work

2006-06-05 Thread Brown, Charles

Follwed th javadoc plugin instructions, and had a couple co-workers double 
check, but all I get is this;

[INFO] Preparing javadoc:javadoc
[INFO] No goals needed for project - skipping

what does thqat mean?

--CB


Re: [M2] Snapshots deployed to server not being found

2006-06-05 Thread Alexandre Poitras

I'm not using proximity but Maven proxy at the moment.

On 6/5/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Same here...one thing I think I did that seemed to work was to throw the
-U cmd on the compile, ie. mvn -U compile.  Try that and let us know
if it works.

--Rudy

-Original Message-
From: Paul Spencer [mailto:[EMAIL PROTECTED]
Sent: Monday, June 05, 2006 10:29 AM
To: Maven Users List
Subject: Re: [M2] Snapshots deployed to server not being found

Ben,
I have seen the same behavior.  Although I have not had time to
determine what is
the root cause, I think it may the IDE, Eclipse in my case, locking the
dependency
in the local repository and Maven not complaining when it can not
replace the file.  Again
I have not had time to verify this, it is just a hunch.

Paul Spencer

ben short wrote:
 Hi,

 I am trying to include a snapshot that has been deployed to our
 internal repository. When I do mvn compile, maven complains that it
 couldn't resolve the dependency.

 Is this a bug with maven 2.0.4?

 Ben

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




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


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




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



M2: SCM properties being replaced during release:perform

2006-06-05 Thread CDickson
Hi,

The scm section of a pom in CVS for a pom archetype project looks like 
this prior to executing release:prepare :

scm
connection${base.cvs.url}:commons-maven/uber-pom/connection
 
developerConnection${base.cvs.url}:commons-maven/uber-pom/developerConnection
url${base.viewcvs.url}/commons-maven/uber-pom/url
/scm

Then after executing release:prepare, the pom in CVS looks like this (new 
tag tag is only difference):

scm
connection${base.cvs.url}:commons-maven/uber-pom/connection
 
developerConnection${base.cvs.url}:commons-maven/uber-pom/developerConnection
url${base.viewcvs.url}/commons-maven/uber-pom/url
tagR-1_7/tag
/scm

Then after executing release:perform, the pom looks like this in CVS:

scm
 
connectionscm:cvs:pserver:behrcvs.masco-coatings.com:/usr/cvsroot:commons-maven/uber-pom/connection
 
developerConnectionscm:cvs:pserver:behrcvs.masco-coatings.com:/usr/cvsroot:commons-maven/uber-pom/developerConnection
url
http://behrcvs.masco-coatings.com/cgi-bin/viewcvs.cgi/commons-maven/uber-pom
/url
/scm


Notice that the properties that were there for the base URLs for CVS and 
ViewCVS have been replaced with literal values.

Is this a bug or is this functioning as designed?

No other properties in the POM are being treated this way.

Thanks.





--- 
The information contained in this e-mail message may be proprietary, 
privileged, confidential or protected from disclosure. If you are not the 
intended recipient, any dissemination, distribution or copying is strictly 
prohibited. If you think that you have received this e-mail message in 
error, please e-mail the sender. 

--- 
The information contained in this e-mail message may be proprietary, 
privileged, confidential or protected from disclosure. If you are not the 
intended recipient, any dissemination, distribution or copying is strictly 
prohibited. If you think that you have received this e-mail message in 
error, please e-mail the sender. 

RE: RE : [Release plugin] Dependency versions not updated in rewrite-for-development phase

2006-06-05 Thread LECAN Damien
 Is artifact vis:canprovider-generator in reactors of the parent pom ?
Yes, thanks to module declaration in pom parent.

 I suggest you using dependencyManagement to manage 
 dependencies beetwen
 reactors in a multi modules build.
 Because in this case you just need to change only one pom. (actually a
 by hand change is needed)
Ok, release:prepare and perform works with that. I used ${pom.version} instead 
of version label in pom parent for dependencyManagement, and I worked perfectly 
(nothing to change by hand after release).

Thanks

Damien

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



Re: M2: SCM properties being replaced during release:perform

2006-06-05 Thread Emmanuel Venisse

File an issue.

Emmanuel

[EMAIL PROTECTED] a écrit :

Hi,

The scm section of a pom in CVS for a pom archetype project looks like 
this prior to executing release:prepare :


scm
connection${base.cvs.url}:commons-maven/uber-pom/connection
 
developerConnection${base.cvs.url}:commons-maven/uber-pom/developerConnection

url${base.viewcvs.url}/commons-maven/uber-pom/url
/scm

Then after executing release:prepare, the pom in CVS looks like this (new 
tag tag is only difference):


scm
connection${base.cvs.url}:commons-maven/uber-pom/connection
 
developerConnection${base.cvs.url}:commons-maven/uber-pom/developerConnection

url${base.viewcvs.url}/commons-maven/uber-pom/url
tagR-1_7/tag
/scm

Then after executing release:perform, the pom looks like this in CVS:

scm
 
connectionscm:cvs:pserver:behrcvs.masco-coatings.com:/usr/cvsroot:commons-maven/uber-pom/connection
 
developerConnectionscm:cvs:pserver:behrcvs.masco-coatings.com:/usr/cvsroot:commons-maven/uber-pom/developerConnection

url
http://behrcvs.masco-coatings.com/cgi-bin/viewcvs.cgi/commons-maven/uber-pom
/url
/scm


Notice that the properties that were there for the base URLs for CVS and 
ViewCVS have been replaced with literal values.


Is this a bug or is this functioning as designed?

No other properties in the POM are being treated this way.

Thanks.





--- 
The information contained in this e-mail message may be proprietary, 
privileged, confidential or protected from disclosure. If you are not the 
intended recipient, any dissemination, distribution or copying is strictly 
prohibited. If you think that you have received this e-mail message in 
error, please e-mail the sender. 

--- 
The information contained in this e-mail message may be proprietary, 
privileged, confidential or protected from disclosure. If you are not the 
intended recipient, any dissemination, distribution or copying is strictly 
prohibited. If you think that you have received this e-mail message in 
error, please e-mail the sender. 



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



Re: + Best Practice Question about the Maven Surefire Plugin +

2006-06-05 Thread Raphaël Piéroni
It seems in screenshot that the included config files are inserted in 
your test-classpath when building the ipodstore-jpa project.


It also seems that the persistence.xml is not in your classpath.

There are some reasons that cause this :
- the persistence.xml files is not located in src/main/resources
- that file belongs to the ipodstore project and maybe is the parent 
project and therefore can not be set a dependency of the -jpa project.


Some solutions :
- move the persistence.xml file in the proper directory and move that 
directory in the -jpa project
- create a shared project on which -jpa depends (if the persistence.xml 
file is shared between projects)


Hope this helps.

To the community : if i'm wrong please feel free to correct.

Raphaël


Serge Emmanuel Pagop a écrit :


Thank u Raphael,

yes you are right the all the test resources are in 
target/test-classes. But my problem is that, I want that the the 
directory and the file in main/resources META-INF/persistence.xml 
and also all the configuration files in test/resources   
embedded-jboss-beans.xml, ...  to be set in class path and also 
available  during the running of test class or testcase in the proper 
format of setting. Let take a look of the screenshot of an example for 
setting this configs with the Java Build Path in Eclipse.


Thanks
--
--
Serge Emmanuel Pagop
Java EE Consultant and Trainer
E-Mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Skype-Name: sisepago
Cell : +49-172-8552687





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



Perforce and Client Specs

2006-06-05 Thread Bob Arnott

Is there anyway to force Continuum to use a particular client spec
when the SCM is Peforce...? I've got a project that relies on stuff
in different parts of the repository, it's a tool that requires data
files that are used to build some other stuff.

If I specify the project location in the SCM URL then Continuum
doesn't check out all the necessary files. If specify a more generic
SCM URL then Continuum checks out too much stuff.

scm:perforce://depot/stuff/project/... - not enough stuff
scm:perforce://depot/stuff/... - too much stuff

I have a client spec that has the correct paths for the necessary
files, i.e.

//depot/stuff/project/... //p4/stuff/project/...
//depot/stuff/servers/...dat //p4/stuff/servers/...dat

Is there anyway to get Continuum to use this client spec, or another
way to tell it to check out more of the repository...?

Cheers,

--
Bob Arnott



[m2] mvn deploy:deploy-file

2006-06-05 Thread Adam Hardy
I have a question about mvn deploy:deploy-file. I would like to be able
to specify the repository URL on its own, because I am using maven-proxy
as a method of serving our company repository to the team. Therefore I
don't need an entry in the settings.xml. 

If I don't specify the repository in my settings.xml though, maven
complains and demands that I give the id from the settings.xml.


 mvn deploy:deploy-file -DgroupId=com.mycompany.cortex 
  -DartifactId=soa-services 
  -Dfile=target/soa_services.jar 
  -DgeneratePom=true 
  -Dpackaging=jar 
  -Durl=file:///ctxtools/jar-repository/company-repo/ 
  -DrepositoryId=company 
  -Dversion=1.0


Thanks
Adam


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



Re: [m2] mvn deploy:deploy-file

2006-06-05 Thread Kathryn Huxtable
So can't you add the internal repository anyway for deployment purposes? -K


On 6/5/06 12:38 PM, Adam Hardy [EMAIL PROTECTED] wrote:

 I have a question about mvn deploy:deploy-file. I would like to be able
 to specify the repository URL on its own, because I am using maven-proxy
 as a method of serving our company repository to the team. Therefore I
 don't need an entry in the settings.xml.
 
 If I don't specify the repository in my settings.xml though, maven
 complains and demands that I give the id from the settings.xml.
 
 
  mvn deploy:deploy-file -DgroupId=com.mycompany.cortex
   -DartifactId=soa-services
   -Dfile=target/soa_services.jar
   -DgeneratePom=true
   -Dpackaging=jar
   -Durl=file:///ctxtools/jar-repository/company-repo/
   -DrepositoryId=company
   -Dversion=1.0
 
 
 Thanks
 Adam
 
 
 -
 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]



[m2] how to add comment to 'svn commit' when using release plugin

2006-06-05 Thread Dario Luis Coneglian Oliveros

Hi all,
Does anybody know how to customize the svn commit command used by 
release plugin so I can add a comment on it ?

Thanks,
Dário

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



RE: building assemblies from the top level project directory - binding to lifecycle stages...

2006-06-05 Thread EJ Ciramella
I'm really wedged on this issue - how are people building up tarballs
for a particular module that has it's artifact set to jar (I want to
build up a jar of the classes but would ALSO like to build up a tar of
that jar, some dependency jars and all the scripts)? 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 05, 2006 12:28 PM
To: Maven Users List
Subject: RE: building assemblies from the top level project directory -
binding to lifecycle stages...

Shouldn't this work?

plugins
  plugin
   artifactIdmaven-assembly-plugin/artifactId
configuration
  descriptorsrc/main/assembly/dep.xml/descriptor
/configuration
   executions
execution
  phasepackage/phase
/execution
   /executions
  /plugin 




It doesn't, but is there a way to do something like this?  Packaging
this particular module should mean build a tarball in addition to the
jar with all the classes.

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 05, 2006 11:56 AM
To: Maven Users List
Subject: building assemblies from the top level project directory

If I have a structure like this:
 
C:\work\projectname
 
And have three modules:
 
C:\work\projectname\utils
C:\work\projectname\someproj
C:\work\projectname\application
 
The only item that has an assembly is the actual application.  Is there
some way to build that assembly from the projectname directory, or do I
have to run assembly:assembly from the application directory every time?

-
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: Perforce and Client Specs

2006-06-05 Thread Mike Perham
-Dmaven.scm.perforce.clientspec.name=yourspec

This property will override the Perforce SCM driver's generated
clientspec name.

-Original Message-
From: Bob Arnott [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 05, 2006 12:07 PM
To: continuum-users@maven.apache.org
Subject: Perforce and Client Specs

Is there anyway to force Continuum to use a particular client spec when
the SCM is Peforce...? I've got a project that relies on stuff in
different parts of the repository, it's a tool that requires data files
that are used to build some other stuff.

If I specify the project location in the SCM URL then Continuum doesn't
check out all the necessary files. If specify a more generic SCM URL
then Continuum checks out too much stuff.

scm:perforce://depot/stuff/project/... - not enough stuff
scm:perforce://depot/stuff/... - too much stuff

I have a client spec that has the correct paths for the necessary files,
i.e.

//depot/stuff/project/... //p4/stuff/project/...
//depot/stuff/servers/...dat //p4/stuff/servers/...dat

Is there anyway to get Continuum to use this client spec, or another way
to tell it to check out more of the repository...?

Cheers,

--
Bob Arnott



[ERROR] ResourceManager ???

2006-06-05 Thread EJ Ciramella
Can anyone explain what maven is attempting to do?
 
 
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
in any resource loader.
[INFO] Velocimacro : error using  VM library template
VM_global_library.vm :
org.apache.velocity.exception.ResourceNotFoundException: Unable to f
ind resource 'VM_global_library.vm'


[M2] can we use 'mvn assembly' instead assembly:assembly

2006-06-05 Thread hamdard

Like we can do 'mvn install' instead install:install

If possible, what needs be configured and where?

Thanks
-H
--
View this message in context: 
http://www.nabble.com/-M2--can-we-use-%27mvn-assembly%27-instead-assembly%3Aassembly-t1737143.html#a4720482
Sent from the Maven - Users forum at Nabble.com.


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



Referencing Files from a Unit Test

2006-06-05 Thread Lyndon Washington

Hi,

I have a unit test that was setup in the old ANT build to load resources
using a relative path.  I have put the resource that is being retrieved in
the projects 'test/resources/conf' folder.  How would I reference the file,
where previously I used 'conf/foo.xml'?

I guess I was assuming that there would be a system propery that I could
use.  Another snippet of info is that this project is part of a large pom
heirarchy, so the test could be run from the parent or from the actual
project location.

Thanks for any help someone can provide.

Cheers,
-Lyndon-

--

-
Lyndon Washington
-


RE: [M2] can we use 'mvn assembly' instead assembly:assembly

2006-06-05 Thread Beyer,Nathan
Based on my limited understanding, no. One is requesting a plugin goal,
the other is requesting execution of a build phase. In other words
'install' != 'install:install'.

'mvn install' == execute the default build lifecycle up to and including
the install phase, which should execute all plugin goals that are
attached to the phases up to and including the install phase.

'mvn install:install' == execute the 'install' plugin in the maven
namespace and the 'install' goal on that plugin. The first 'install'
indicates the plugin, the second 'install' indicates the goal.

'mvn assembly' == error as there is no 'assembly' phase in any life
cycle.

'mvn 'assembly:assembly' == execute the 'assembly' plugin in the maven
namespace and the 'assembly' goal on that plugin.

-Nathan

-Original Message-
From: hamdard [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 05, 2006 2:14 PM
To: users@maven.apache.org
Subject: [M2] can we use 'mvn assembly' instead assembly:assembly


Like we can do 'mvn install' instead install:install

If possible, what needs be configured and where?

Thanks
-H
--
View this message in context:
http://www.nabble.com/-M2--can-we-use-%27mvn-assembly%27-instead-assembl
y%3Aassembly-t1737143.html#a4720482
Sent from the Maven - Users forum at Nabble.com.


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


-
CONFIDENTIALITY NOTICE This message and any included attachments
are from Cerner Corporation and are intended only for the
addressee. The information contained in this message is
confidential and may constitute inside or non-public information
under international, federal, or state securities laws.
Unauthorized forwarding, printing, copying, distribution, or use of
such information is strictly prohibited and may be unlawful. If you
are not the addressee, please promptly delete this message and
notify the sender of the delivery error by e-mail or you may call
Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1)
(816)221-1024. ---


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



Re: eclipse, wtp, maven and web apps

2006-06-05 Thread kvpetrov

I can't believe I am the only one who encountered this problem. Guys, help!
--
View this message in context: 
http://www.nabble.com/eclipse%2C-wtp%2C-maven-and-web-apps-t1725424.html#a4720818
Sent from the Maven - Users forum at Nabble.com.


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



RE: [M2] can we use 'mvn assembly' instead assembly:assembly

2006-06-05 Thread Mike Perham
You would use 'mvn package' and bind the assembly:assembly mojo to the
'package' build lifecycle phase in your pom.  I could swear I've seen an
example on the list before but I don't have an convienent example.

-Original Message-
From: hamdard [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 05, 2006 2:14 PM
To: users@maven.apache.org
Subject: [M2] can we use 'mvn assembly' instead assembly:assembly


Like we can do 'mvn install' instead install:install

If possible, what needs be configured and where?

Thanks
-H
--
View this message in context:
http://www.nabble.com/-M2--can-we-use-%27mvn-assembly%27-instead-assembl
y%3Aassembly-t1737143.html#a4720482
Sent from the Maven - Users forum at Nabble.com.


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


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



RE: [M2] can we use 'mvn assembly' instead assembly:assembly

2006-06-05 Thread EJ Ciramella
So if this is the case, if you're sitting at the parent pom level, any
module poms break during packaging (because all their paths are relative
to their respective poms).

Example 

C:\work\projectname\pom.xml  -- parent
C:\work\projectname\module1\pom.xml  -- module

Calling mvn assembly:assembly in C:\work\projectname breaks because
C:\work\projectname\target doesn't exist (but
C:\work\projectname\module1\target does).  How do you resolve this? 

-Original Message-
From: Beyer,Nathan [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 05, 2006 3:35 PM
To: Maven Users List
Subject: RE: [M2] can we use 'mvn assembly' instead assembly:assembly

Based on my limited understanding, no. One is requesting a plugin goal,
the other is requesting execution of a build phase. In other words
'install' != 'install:install'.

'mvn install' == execute the default build lifecycle up to and including
the install phase, which should execute all plugin goals that are
attached to the phases up to and including the install phase.

'mvn install:install' == execute the 'install' plugin in the maven
namespace and the 'install' goal on that plugin. The first 'install'
indicates the plugin, the second 'install' indicates the goal.

'mvn assembly' == error as there is no 'assembly' phase in any life
cycle.

'mvn 'assembly:assembly' == execute the 'assembly' plugin in the maven
namespace and the 'assembly' goal on that plugin.

-Nathan

-Original Message-
From: hamdard [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 05, 2006 2:14 PM
To: users@maven.apache.org
Subject: [M2] can we use 'mvn assembly' instead assembly:assembly


Like we can do 'mvn install' instead install:install

If possible, what needs be configured and where?

Thanks
-H
--
View this message in context:
http://www.nabble.com/-M2--can-we-use-%27mvn-assembly%27-instead-assembl
y%3Aassembly-t1737143.html#a4720482
Sent from the Maven - Users forum at Nabble.com.


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


-
CONFIDENTIALITY NOTICE This message and any included attachments
are from Cerner Corporation and are intended only for the
addressee. The information contained in this message is
confidential and may constitute inside or non-public information
under international, federal, or state securities laws.
Unauthorized forwarding, printing, copying, distribution, or use of
such information is strictly prohibited and may be unlawful. If you
are not the addressee, please promptly delete this message and
notify the sender of the delivery error by e-mail or you may call
Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1)
(816)221-1024. ---


-
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: [M2] Snapshots deployed to server not being found

2006-06-05 Thread Paul Spencer

Ruby,
I had a change to test my hunch.  That was not it :(

The -U start the download process, but only the metadata files are downloaded.  
In
my case the snapshots are not timestamped.  The snapshot repository in the POM 
is defined a
follows:
snapshotRepository
  uniqueVersionfalse/uniqueVersion
  idmy-snapshot/id
  nameSnapshot Repository/name
  urlscp://foo.com/Maven2-repository/snapshot-repository/url
/snapshotRepository

Paul Spencer

[EMAIL PROTECTED] wrote:

Same here...one thing I think I did that seemed to work was to throw the
-U cmd on the compile, ie. mvn -U compile.  Try that and let us know
if it works.

--Rudy

-Original Message-
From: Paul Spencer [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 05, 2006 10:29 AM

To: Maven Users List
Subject: Re: [M2] Snapshots deployed to server not being found

Ben,
I have seen the same behavior.  Although I have not had time to
determine what is
the root cause, I think it may the IDE, Eclipse in my case, locking the
dependency
in the local repository and Maven not complaining when it can not
replace the file.  Again
I have not had time to verify this, it is just a hunch.

Paul Spencer

ben short wrote:

Hi,

I am trying to include a snapshot that has been deployed to our
internal repository. When I do mvn compile, maven complains that it
couldn't resolve the dependency.

Is this a bug with maven 2.0.4?

Ben

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





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


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





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



Re: eclipse, wtp, maven and web apps

2006-06-05 Thread Srepfler Srgjan

kvpetrov wrote:

I can't believe I am the only one who encountered this problem. Guys, help!
--
View this message in context: 
http://www.nabble.com/eclipse%2C-wtp%2C-maven-and-web-apps-t1725424.html#a4720818
Sent from the Maven - Users forum at Nabble.com.


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


  

I didn't understand exactly what do you mean. Can you make an example?
Srgjan

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



RE: [M2] can we use 'mvn assembly' instead assembly:assembly

2006-06-05 Thread EJ Ciramella
All the mvn2 documentation I've seen said you need to explicitly call
package THEN assembly, bind it to something later like verify (and use
that). 

http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodu
le/module-binary-inclusion-simple.html

NOTE: Because of a quirk in Maven 2.0's execution model relating to
aggregator mojos and the inheritance hierarchy, we need to explicitly
execute the package phase ahead of the assembly invocation, to ensure
all modules have been built.

-Original Message-
From: Mike Perham [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 05, 2006 3:45 PM
To: Maven Users List
Subject: RE: [M2] can we use 'mvn assembly' instead assembly:assembly

You would use 'mvn package' and bind the assembly:assembly mojo to the
'package' build lifecycle phase in your pom.  I could swear I've seen an
example on the list before but I don't have an convienent example.

-Original Message-
From: hamdard [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 05, 2006 2:14 PM
To: users@maven.apache.org
Subject: [M2] can we use 'mvn assembly' instead assembly:assembly


Like we can do 'mvn install' instead install:install

If possible, what needs be configured and where?

Thanks
-H
--
View this message in context:
http://www.nabble.com/-M2--can-we-use-%27mvn-assembly%27-instead-assembl
y%3Aassembly-t1737143.html#a4720482
Sent from the Maven - Users forum at Nabble.com.


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


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


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



Re: [M2] Snapshots deployed to server not being found

2006-06-05 Thread ben short

Tamás,

There are logs, and I can see requests for the released version of the
artifact im after, but nothing for the snapshot requests.

I have tried the -U flag also.

I havent tried what Olivier suggested yet, will try it tomorrow.

Ben

On 6/5/06, Alexandre Poitras [EMAIL PROTECTED] wrote:

I'm not using proximity but Maven proxy at the moment.

On 6/5/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Same here...one thing I think I did that seemed to work was to throw the
 -U cmd on the compile, ie. mvn -U compile.  Try that and let us know
 if it works.

 --Rudy

 -Original Message-
 From: Paul Spencer [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 05, 2006 10:29 AM
 To: Maven Users List
 Subject: Re: [M2] Snapshots deployed to server not being found

 Ben,
 I have seen the same behavior.  Although I have not had time to
 determine what is
 the root cause, I think it may the IDE, Eclipse in my case, locking the
 dependency
 in the local repository and Maven not complaining when it can not
 replace the file.  Again
 I have not had time to verify this, it is just a hunch.

 Paul Spencer

 ben short wrote:
  Hi,
 
  I am trying to include a snapshot that has been deployed to our
  internal repository. When I do mvn compile, maven complains that it
  couldn't resolve the dependency.
 
  Is this a bug with maven 2.0.4?
 
  Ben
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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


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



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




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



RE: Stand-alone app -- Update

2006-06-05 Thread Midtskogen, Erik
Hi Tim, Lee, Wayne, and Jean-Laurent,

I've gotten the packaging of a stand-alone app working correctly now!
Thank you all so very much.

The reason I was getting the extra copies of dependency jars rolled into
the executable one was that, in my earlier thrashings about I had put
copies of the jar files down in /src/main/resources/lib, and then forgot
that they were there.  The reason I was getting an extra copy of the
executable zipped into the /lib directory in the distributable was that
I didn't have the exclude for ${groupId}:${artifactId} configured into
the assembly descriptor.

Thanks again.  Now I'll go to the Wiki to share what I've learned about
building stand-alone apps.

Thanks,
--Erik

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Lee Meador
Sent: Friday, June 02, 2006 4:32 PM
To: Maven Users List
Subject: Re: Stand-alone app


Thank you.

My setup, so similar to yours, generates things organized as you want.
That's what I want as well. I don't know why yours doesn't. Sometimes
knowing that someone else is doing something similar to what you are
doing and they get the right results is useful.

So the real question is what are you doing (or not doing) that causes
the dependency jars to get put into your executable jar?

On 6/2/06, Tim Kettler [EMAIL PROTECTED] wrote:

 Erik,

 I have sent you the project in a private mail too. Have you received 
 that?

 However, I misunderstood you until now. I thought your only problem 
 was the dependencies in the executable jar and not the duplicate 
 executable jar in the created assembly. I get
 this as well. I will send you another test project per private mail.
Can
 you run that and
 tell if it produces everything as expected.

 -Tim


 Midtskogen, Erik schrieb:
  Hi Tim,
 
  I'm sorry, but I didn't receive the attachment.  It only came 
  through as what looked like the end of a text message.  I suspect 
  that some firewall must have intervened and deleted the bulk of the 
  attachment.
 
  Also, I was wrong about getting exactly what I wanted in the root 
  directory from the existing assembly configuration.  That zip file 
  that I got that I said was perfect was just a copy of my hand-edited

  file left-over from earlier.
 
  Yes, the ./target/pairfinder-0.9-stand-alone-app.zip file does work,

  and I could use it just the way it is.  But it is much larger than 
  it needs to be.  If you unzip it and then examine the contents, 
  you'll find that it contains two duplicate copies of 
  pairfinder-0.9.jar.  One is located at 
  pairfinder-0.9/pairfinder-0.9.jar, and the other is located at 
  pairfinder-0.9/lib/pairfinder-0.9.jar.
 
  Not only that, but each of those duplicate copies of 
  pairfinder-0.9.jar contain all the dependency jar libraries rolled 
  up inside themselves where they do nothing other than take up space.

  The net result is that the zip file generated by the 
  assembly:assembly mvn command is 14.1MB in size, while the result 
  after I have edited out all the unwanted copy of pairfinder-0.9.jar 
  and the unwanted dependency jars from the other copy of 
  pairfinder-0.9.jar and then zip everything back up, the resulting 
  zip file is 3.4MB.  And the larger this project gets, the larger 
  that distributable will get--multiplied by three.
 
  That's why I'm still looking into writing a goal.  Even if it turns 
  out to be possible to get what I want, it should be easier than 
  spending days messing with it.
 
  Thanks,
  --Erik
 
 
 
  -Original Message-
  From: Tim Kettler [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 02, 2006 2:08 PM
  To: Maven Users List
  Subject: Re: Stand-alone app
 
 
  Midtskogen, Erik schrieb:
  Hi Tim,
 
  Ohhh!  I think I see what's happening.  I was expecting the final 
  result zip file to appear under the ./target directory instead of 
  right in the root directory.  After running assembly:assembly there

  is
 
  a zip file under the ./target directory with a somewhat longer name

  pairfinder-0.9-stand-alone-app.zip, and this zip file is quite 
  large
 
  because it has the redundant copies of the jar files.  I thought 
  this was the final artifact of the assembly:assembly goal.  I 
  didn't notice
 
  the pairfinder-0.9.zip file sitting right in the root, and this 
  file is the correct file to distribute the app.  It's exactly what 
  I wanted.
 
  This isn't the result I am getting.
 
  There are two files generated in the target directory: 
  pairfinder-0.9.jar and pairfinder-0.9-stand-alone-app.zip. There is 
  no third file generated in the root directory
  of the project.
 
  The jar just contains the compiled classes and the manifest with the

  Class-Path entry. And the zip contains the build artifact and its 
  dependencies... Exactly as wanted.
 
  I have attached the test project I created. Can you try to run 'mvn 
  assembly:assambly' on that and see what it produces for you.
 
  Well, thank you so much!
 
  Even though 

Re: Binding a plugin execution to a lifecycle phase JUST for one packaging type

2006-06-05 Thread Akbarr

Ok, thanks for your reply!


On 6/3/06, Kenney Westerhof [EMAIL PROTECTED] wrote:


On Sat, 3 Jun 2006, Akbarr wrote:

Hi,

that's not possible, unless you make your own packaging which I'd
recommend against.

You can specify the binding in pluginManagement in the root pom,
and then you only have to specify the plugin in the children
(you can leave out the executions, just specify
plugingroupId/artifactId//plugin in the pom's you want to run it
on.

you could also just specify it in the build section of the root pom, but
then it'll be executed in all modules (except those with packaging 'pom').
This should be harmless, though.

On a side note, if you generate sources or resources, you better link the
xdoclet plugin to the generate-sources or generate-resources phase, so
sources
get compiled. Plus, it documents better what it's for.

-- Kenney

 Hi,

 First of all, let me say I think Maven 2 is great. The major problem was
the
 lack of documentation, but I think it's been ove with the upcoming of
the
 book Better builds with Maven.

 I'd like to do something, but I'm not sure it's possible. I know how to
bind
 a plugin execution to a lifecycle phase, but I wonder if it'd be
possible to
 make this bind only for some determined packaging types. Of course, this
 binding would be done in a parent POM.

 For instance, execution of Hibernate doclet:

  plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdxdoclet-maven-plugin/artifactId
 executions
 execution
 phasecompile/phase
 goals
 goalxdoclet/goal
 /goals

 configuration
 tasks
 mkdir dir=${
project.build.sourceDirectory}
 /
 hibernatedoclet

excludedtags=@version,@author,@todo
 mergeDir=${project.build.outputDirectory}
 destDir=${project.build.outputDirectory}
 fileset dir=${
 project.build.sourceDirectory}
 include name=**/*.java /
 /fileset
 hibernate version=2.0
   mergeDir=${project.build.outputDirectory}
   destDir=${project.build.outputDirectory} /
 /hibernatedoclet
 /tasks
 /configuration
 /execution
 /executions
 /plugin

 I like this to be executed in every child project with jar packaging.

 Thanks in advance,

 Akbarr


--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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




Re: [m2] mvn deploy:deploy-file

2006-06-05 Thread Adam Hardy
It's not on an ftp server because I'm serving it using maven-proxy. People have to scp to the linux box and add it all manually. 




Kathryn Huxtable on 05/06/06 18:47, wrote:

So can't you add the internal repository anyway for deployment purposes? -K


On 6/5/06 12:38 PM, Adam Hardy [EMAIL PROTECTED] wrote:


I have a question about mvn deploy:deploy-file. I would like to be able
to specify the repository URL on its own, because I am using maven-proxy
as a method of serving our company repository to the team. Therefore I
don't need an entry in the settings.xml.

If I don't specify the repository in my settings.xml though, maven
complains and demands that I give the id from the settings.xml.


 mvn deploy:deploy-file -DgroupId=com.mycompany.cortex
  -DartifactId=soa-services
  -Dfile=target/soa_services.jar
  -DgeneratePom=true
  -Dpackaging=jar
  -Durl=file:///ctxtools/jar-repository/company-repo/
  -DrepositoryId=company
  -Dversion=1.0



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



depencency version required

2006-06-05 Thread Lee Meador

I have a parent project/pom and several children using the form ../child1.

I put the versions for all the children projects in the parent pom (in
dependencyManagement). They are all 1.0-SNAPSHOT.

In all the child projects, when one depends on another, I don't put a
version tag in the dependency section.

In the child project for my ear, if I leave the version tag out, it
complains dependencies.dependency.version is missing but the version is
supplied in the parent's dependencyManagement section just like in all the
other children.

The other children have no problem.

mvn help:effective-pom gives the same error about missing the dependency
version.

This only happens in the one child and only as relates to the other children
(of the same parent pom) upon which it is dependent. (For example, the ear
is dependent on one war project and two ejb jar projects.)

The only change I have to make to build successfully is to add the version
tags into the ear child project's pom.

Does anyone have any ideas of where to look for this problem?

-- Lee Meador
Sent from gmail. My real email address is [EMAIL PROTECTED]


Re: Referencing Files from a Unit Test

2006-06-05 Thread Kieran Brady

I think this is what you're looking for:

this.getClass().getClassLoader().getResourceAsStream(...

http://marc.theaimsgroup.com/?l=turbine-maven-userm=114917325827653w=2


- Original Message - 
From: Lyndon Washington [EMAIL PROTECTED]

To: users@maven.apache.org
Sent: Monday, June 05, 2006 8:24 PM
Subject: Referencing Files from a Unit Test



Hi,

I have a unit test that was setup in the old ANT build to load resources
using a relative path.  I have put the resource that is being retrieved in
the projects 'test/resources/conf' folder.  How would I reference the 
file,

where previously I used 'conf/foo.xml'?

I guess I was assuming that there would be a system propery that I could
use.  Another snippet of info is that this project is part of a large pom
heirarchy, so the test could be run from the parent or from the actual
project location.

Thanks for any help someone can provide.

Cheers,
-Lyndon-

--

-
Lyndon Washington
-




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



Re: [M2] Snapshots deployed to server not being found

2006-06-05 Thread Tamás Cservenák

Hi all,

as for Proximity, i can only repeat my previous statement: Px currently logs
every request (done by Px-webapp frontent servlet).

My huntch is that you did not configure maven properly to use proximity as
snapshot repos. Per default, maven does not have snapshot repo (as far as i
know...).

It could be a little awkward, but you should direct maven to proximity
twice:
once as central mirror and once as snapshot repo for your inhouse snapshots.

There is no contradiction in this little trick, since your
px-published-inhouse repo contains your own snapshots (px will not find them
on any remote peer) -- these repos ARE disjunct, no?

~t~

On 6/5/06, ben short [EMAIL PROTECTED] wrote:


Tamás,

There are logs, and I can see requests for the released version of the
artifact im after, but nothing for the snapshot requests.

I have tried the -U flag also.

I havent tried what Olivier suggested yet, will try it tomorrow.

Ben

On 6/5/06, Alexandre Poitras [EMAIL PROTECTED] wrote:
 I'm not using proximity but Maven proxy at the moment.

 On 6/5/06, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
  Same here...one thing I think I did that seemed to work was to throw
the
  -U cmd on the compile, ie. mvn -U compile.  Try that and let us know
  if it works.
 
  --Rudy
 
  -Original Message-
  From: Paul Spencer [mailto:[EMAIL PROTECTED]
  Sent: Monday, June 05, 2006 10:29 AM
  To: Maven Users List
  Subject: Re: [M2] Snapshots deployed to server not being found
 
  Ben,
  I have seen the same behavior.  Although I have not had time to
  determine what is
  the root cause, I think it may the IDE, Eclipse in my case, locking
the
  dependency
  in the local repository and Maven not complaining when it can not
  replace the file.  Again
  I have not had time to verify this, it is just a hunch.
 
  Paul Spencer
 
  ben short wrote:
   Hi,
  
   I am trying to include a snapshot that has been deployed to our
   internal repository. When I do mvn compile, maven complains that it
   couldn't resolve the dependency.
  
   Is this a bug with maven 2.0.4?
  
   Ben
  
  
-
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



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




RE: [M2] can we use 'mvn assembly' instead assembly:assembly

2006-06-05 Thread Mike Perham
Yeah, that makes sense I guess.  I've always done a module as a separate
child module that is built last rather than trying to tie the assembly
to the parent module itself. 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 05, 2006 2:57 PM
To: Maven Users List
Subject: RE: [M2] can we use 'mvn assembly' instead assembly:assembly

All the mvn2 documentation I've seen said you need to explicitly call
package THEN assembly, bind it to something later like verify (and use
that). 

http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodu
le/module-binary-inclusion-simple.html

NOTE: Because of a quirk in Maven 2.0's execution model relating to
aggregator mojos and the inheritance hierarchy, we need to explicitly
execute the package phase ahead of the assembly invocation, to ensure
all modules have been built.

-Original Message-
From: Mike Perham [mailto:[EMAIL PROTECTED]
Sent: Monday, June 05, 2006 3:45 PM
To: Maven Users List
Subject: RE: [M2] can we use 'mvn assembly' instead assembly:assembly

You would use 'mvn package' and bind the assembly:assembly mojo to the
'package' build lifecycle phase in your pom.  I could swear I've seen an
example on the list before but I don't have an convienent example.

-Original Message-
From: hamdard [mailto:[EMAIL PROTECTED]
Sent: Monday, June 05, 2006 2:14 PM
To: users@maven.apache.org
Subject: [M2] can we use 'mvn assembly' instead assembly:assembly


Like we can do 'mvn install' instead install:install

If possible, what needs be configured and where?

Thanks
-H
--
View this message in context:
http://www.nabble.com/-M2--can-we-use-%27mvn-assembly%27-instead-assembl
y%3Aassembly-t1737143.html#a4720482
Sent from the Maven - Users forum at Nabble.com.


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


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


-
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: Referencing Files from a Unit Test

2006-06-05 Thread Wendy Smoak

On 6/5/06, Lyndon Washington [EMAIL PROTECTED] wrote:


I have a unit test that was setup in the old ANT build to load resources
using a relative path.  I have put the resource that is being retrieved in
the projects 'test/resources/conf' folder.  How would I reference the file,
where previously I used 'conf/foo.xml'?

I guess I was assuming that there would be a system propery that I could
use.  Another snippet of info is that this project is part of a large pom
heirarchy, so the test could be run from the parent or from the actual
project location.


http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html

Surefire sets a 'basedir' system property, which you can retrieve with:
  System.getProperty(basedir)

It also sets 'localRepository', which can be useful for locating
artifacts (such as war files to deploy with Cargo.)

In addition, you can pass in your own system properties in the
plugin/configuration section.

--
Wendy

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



Using a custom template in a skin?

2006-06-05 Thread Borut Bolčina

Hello,

I want to have some custom HTML below the left navigation bar in  my 
maven project site. I guess I have to make my own skin for that. Here's 
what I've done so far:


  1. Created a maven project based on maven-default-skin.
  2. Copied all the resources (css and images) to reflect the structure
 of maven-default-skin
  3. Copied default-site.vm from doxia-site-renderer to
 src/main/resources/META-INF/maven/site.vm (notice different name)
  4. Added one meta tag in template to see if the template will be
 picked up.
  5. Changed one value in css to see if change will be picked up.
  6. Created a jar
  7. Installed in my local repo
  8. In my project's site.xml I included this skin with skin tag

No luck. No documentation. Please don't redirect me to official site 
(http://maven.apache.org/plugins/maven-site-plugin/). I don't want to go 
there any more, it's scary.


Can someone please explain the procedure?

Regards,
Borut

the documentation is really bad, this list gives some clues, but still 
got me nowhere.


Vance Karimi pravi:

Why not have {Project}/src/main/resources/META-INF/maven/site.vm.
When you package it, it will add the template correctly.

  

-Original Message-
From: Roland Bali [mailto:[EMAIL PROTECTED]
Sent: Thursday, 25 May 2006 6:45 PM
To: Maven Users List
Subject: Re: [m2] Using a custom template in a skin?

Ah, thanks Vance. I tried that before but my page still looked messed up.
But I found out what caused the whole thing.

The documentation only says to copy a existing skin and the
default-site.vmto make custom pages. It does not how-ever mention that
to create a working
page you also have to copy the CSS and image files inside the same doxia-
jar
that contained the default-site.vm.

Now a follow-up question, is it possible to add the template file to the
JAR
using a setting in the POM or do I have to create a Ant script for that?

Kind regards,
Roland

On 5/25/06, Vance Karimi [EMAIL PROTECTED] wrote:


Managed to get this to work by putting the template within the skin jar
directory structure META-INF/maven and call it site.vm.

  

-Original Message-
From: Roland Bali [mailto:[EMAIL PROTECTED]
Sent: Thursday, 25 May 2006 5:54 PM
To: Maven Users List
Subject: [m2] Using a custom template in a skin?

Hi,

I use a custom Velocity template to generate my site. Up until


yesterday


I
  

did it the old fashioned way by configuring the site plugin with
templateFile. Since this stopped working a while ago I tried to


create


my
own skin. Creating a skin worked fine, exactly as advertised at
http://maven.apache.org/plugins/maven-site-plugin/creating-a-
skin.htmlexcept
for the template thingy.

Where do I put my custom Velocity template and what do I call it so


Maven
  

can use it together with my bright and shiny new skin? If I use the


old


way
the page gets all screwed up (which by the way is documented on the


site


plugin page).

How come the default template is in the Doxia plugin, shouldn't it be
located inside a skin?

Kind regards,
Roland


Send instant messages to your online friends
  

http://au.messenger.yahoo.com


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


  


Send instant messages to your online friends http://au.messenger.yahoo.com 


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

  



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



Re: [m2] mvn deploy:deploy-file

2006-06-05 Thread ben short

Adam,

You can use the deploy:deploy-file to deploy via scp. use url scp://url.to.repo

Then in your settings.xml you specify a server element that has the
usrname and password to use. eg:

server
idinternal/id
usernamemvn/username
passwordmvn/password
   /server

Ben


On 6/5/06, Adam Hardy [EMAIL PROTECTED] wrote:

It's not on an ftp server because I'm serving it using maven-proxy. People have 
to scp to the linux box and add it all manually.



Kathryn Huxtable on 05/06/06 18:47, wrote:
 So can't you add the internal repository anyway for deployment purposes? -K


 On 6/5/06 12:38 PM, Adam Hardy [EMAIL PROTECTED] wrote:

 I have a question about mvn deploy:deploy-file. I would like to be able
 to specify the repository URL on its own, because I am using maven-proxy
 as a method of serving our company repository to the team. Therefore I
 don't need an entry in the settings.xml.

 If I don't specify the repository in my settings.xml though, maven
 complains and demands that I give the id from the settings.xml.


  mvn deploy:deploy-file -DgroupId=com.mycompany.cortex
   -DartifactId=soa-services
   -Dfile=target/soa_services.jar
   -DgeneratePom=true
   -Dpackaging=jar
   -Durl=file:///ctxtools/jar-repository/company-repo/
   -DrepositoryId=company
   -Dversion=1.0


-
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: Question on how users code/test their war applications

2006-06-05 Thread Wendy Smoak

On 6/5/06, William Kinney [EMAIL PROTECTED] wrote:


I was just curious how other maven 2 users currently go through coding/testing 
war applications on i.e. tomcat or jboss. Do you just code, package, deploy to 
local and UI test? Do you usually do exploded war? Or do you heavily rely on 
JUnit? Or do you have a remote test box you remote deploy to every time? Or do 
you manually mv/copy paste? Trying to get an idea of how best to normalize war 
application testing for a project...


If you just want to start the app and click through to make sure it
works, you can configure either the Cargo (which can start many
different containers) or Jetty plugin.

For in-container testing, one option is a combination of Cargo's Java
API and HtmlUnit (or HttpUnit) tests.  The JUnit TestSetup class uses
Cargo to start the container, then the tests are run, then the
container is stopped.  We're doing this to make sure the Struts
example apps deploy and start.  An extension of this might be using
Canoo WebTest so you don't have to write the tests in Java.

Another option is Selenium, which allows you to record tests and run
them later.  I haven't had a chance to try this yet, but it's here:
http://www.openqa.org/selenium-ide/

This is obviously not an exhaustive list, just some things I've either
used or have on my list to take a look at. :)

--
Wendy

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



[m2] Is there a way to turn off downloading of poms?

2006-06-05 Thread Jason Chaffee
My builds are constantly failing even when I build offline because maven
is attempting to download pom files for dependencies.  However, most of
these dependencies do not have poms in the remote repo because they are
coming from legacy repos.  This is an extremely annoying feature that
can cause me not to build for an entire day.

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



How do I manage versions of artifacts in a large project in Maven 2.0?

2006-06-05 Thread Watson, Gordon
To start the discussion we utilize properties files in maven 1.0.2 to
set global properties (so we don't have to use multiple
-Dproperty.value=x with each call to maven) to provide total project
properties to everyone working on subprojects.  But since maven 2.0 does
not read properties files any more I am trying to solve the problem
below.

We are currently using Maven 1.0.2 for a large project.  It has a
hierarchy similar to the following:

   base project/
  subproject 1/
  service
  subproject 2/
  service
  model
  subproject 3/
  service
  subproject 4/
  service
  model
  web
  ear
  subproject 5/
  service
  model
  web
  ear

With in the system we have generic scripts that build individual
subprojects using multiproject goals.  Note not all subprojects are
built at the same time.  But many refer to artifacts of other projects.
Additionally we utilize the scm plugin to tag the latest version of code
automatically.  Build on a central server are done in the form:
 maven multiproject:install
 if successful loop on subdirectories service, model, web, ear, etc
maven scm:prepare-release   # to set new version of all
artifacts
update base project/project.properties file with new version
of this artifact
 maven multiproject:deploy


Individual service/project.xml files extend two levels up and have
entries that refer to generic current.version properties to be sure they
utilize the most current version of these artifacts.

?xml version=1.0 encoding=UTF-8?

project
  extend${basedir}/../../project.xml/extend
  pomVersion1/pomVersion
  nameAssembly Service/name
  idAssembly-services/id
  groupIdAssembly/groupId
  artifactIdAssembly-services/artifactId
  currentVersion1.22/currentVersion
  dependencies
dependency
  groupIdjboss/groupId
  artifactIdjboss-j2ee/artifactId
  version3.2.3/version
  typejar/type
/dependency

dependency
  groupIdLocalUtilities/groupId
  artifactIdutilities/artifactId
  version${OurProject.utilities.service.current.version}/version
/dependency
/project

Any ideas on how to set a global project level file to set these values
for multiple subprojects such that each individual subproject
project.xml does not need to be hand modified when a centralized build
is performed?


Gordon Watson
System Architect
RLPTechnologies
248 991 1021
www.rlpt.com



*
This message has originated from RLPTechnologies,
26955 Northwestern Highway, Southfield, MI 48034.

RLPTechnologies sends various types of email
communications.  If this email message concerns the
potential licensing of an RLPT product or service, and
you do not wish to receive further emails regarding Polk
products, forward this email to [EMAIL PROTECTED]
with the word remove in the subject line.

The email and any files transmitted with it are confidential
and intended solely for the individual or entity to whom they
are addressed.

If you have received this email in error, please delete this
message and notify the Polk System Administrator at
[EMAIL PROTECTED]
*



Re: [M2] Snapshots deployed to server not being found

2006-06-05 Thread Alexandre Poitras

In my case, snapshots are configured correctly. In fact, it was
working like a charm before. I have tried on several desktops just to
be sure. I also seem to have problems with the Apache snapshot
repository.

On 6/5/06, Tamás Cservenák [EMAIL PROTECTED] wrote:

Hi all,

as for Proximity, i can only repeat my previous statement: Px currently logs
every request (done by Px-webapp frontent servlet).

My huntch is that you did not configure maven properly to use proximity as
snapshot repos. Per default, maven does not have snapshot repo (as far as i
know...).

It could be a little awkward, but you should direct maven to proximity
twice:
once as central mirror and once as snapshot repo for your inhouse snapshots.

There is no contradiction in this little trick, since your
px-published-inhouse repo contains your own snapshots (px will not find them
on any remote peer) -- these repos ARE disjunct, no?

~t~

On 6/5/06, ben short [EMAIL PROTECTED] wrote:

 Tamás,

 There are logs, and I can see requests for the released version of the
 artifact im after, but nothing for the snapshot requests.

 I have tried the -U flag also.

 I havent tried what Olivier suggested yet, will try it tomorrow.

 Ben

 On 6/5/06, Alexandre Poitras [EMAIL PROTECTED] wrote:
  I'm not using proximity but Maven proxy at the moment.
 
  On 6/5/06, [EMAIL PROTECTED] [EMAIL PROTECTED]
 wrote:
   Same here...one thing I think I did that seemed to work was to throw
 the
   -U cmd on the compile, ie. mvn -U compile.  Try that and let us know
   if it works.
  
   --Rudy
  
   -Original Message-
   From: Paul Spencer [mailto:[EMAIL PROTECTED]
   Sent: Monday, June 05, 2006 10:29 AM
   To: Maven Users List
   Subject: Re: [M2] Snapshots deployed to server not being found
  
   Ben,
   I have seen the same behavior.  Although I have not had time to
   determine what is
   the root cause, I think it may the IDE, Eclipse in my case, locking
 the
   dependency
   in the local repository and Maven not complaining when it can not
   replace the file.  Again
   I have not had time to verify this, it is just a hunch.
  
   Paul Spencer
  
   ben short wrote:
Hi,
   
I am trying to include a snapshot that has been deployed to our
internal repository. When I do mvn compile, maven complains that it
couldn't resolve the dependency.
   
Is this a bug with maven 2.0.4?
   
Ben
   
   
 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 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 : [Release plugin] Dependency versions not updated in rewrite-for-development phase

2006-06-05 Thread Olivier Lamy
Have a look http://jira.codehaus.org/browse/MRELEASE-91.

--
Olivier

-Message d'origine-
De : LECAN Damien [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 5 juin 2006 17:53
À : users@maven.apache.org
Objet : [Release plugin] Dependency versions not updated in
rewrite-for-development phase


Hello,

I'm working with Maven 2.0.4 and maven-release-plugin 2.0-beta4.

When I try to release a multi-module project, the
rewrite-for-development phase forgets to migrate dependency versions.

For example :
## Before
project
  parent
artifactIdvsi/artifactId
groupIdvsi/groupId
version0.0.2-SNAPSHOT/version
  /parent
  modelVersion4.0.0/modelVersion
  groupIdvsi/groupId
  artifactIdplugin-generator/artifactId
  namePlugin generator/name
  version0.0.2-SNAPSHOT/version
  dependencies
dependency
  groupIdvsi/groupId
  artifactIdcanprovider-generator/artifactId
  version0.0.2-SNAPSHOT/version
  scopeprovided/scope
/dependency
  /dependencies
/project

## Rewrite for release phase : OK
All 0.0.2-SNAPSHOT references are converted to 0.0.2, even for
dependencies

## Rewrite for development
Errors appear, since the plugin forget to convert again dependency
versions !! Here is the result :

project
  parent
artifactIdvsi/artifactId
groupIdvsi/groupId
version0.0.3-SNAPSHOT/version
  /parent
  modelVersion4.0.0/modelVersion
  groupIdvsi/groupId
  artifactIdplugin-generator/artifactId
  namePlugin generator/name
  version0.0.3-SNAPSHOT/version
  dependencies
dependency
  groupIdvsi/groupId
  artifactIdcanprovider-generator/artifactId
  version0.0.2/version
  scopeprovided/scope
/dependency
  /dependencies
/project

Is it a bug, or something is wrong in my multi-module configuration ?

Thanks


Damien Lecan

--
Telematic Systems
B2i - Viveris Group France

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



This e-mail, any attachments and the information contained therein (this 
message) are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
--
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après le message ), sont confidentiels et 
destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. 
Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur 
et de le détruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressément autorisées de ce 
message, sont interdites.
-


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



Re: Using a custom template in a skin?

2006-06-05 Thread Alexandre Poitras

What is your skin packaging type? It should be maven-plugin.

On 6/5/06, Borut Bolčina [EMAIL PROTECTED] wrote:

Hello,

I want to have some custom HTML below the left navigation bar in  my
maven project site. I guess I have to make my own skin for that. Here's
what I've done so far:

   1. Created a maven project based on maven-default-skin.
   2. Copied all the resources (css and images) to reflect the structure
  of maven-default-skin
   3. Copied default-site.vm from doxia-site-renderer to
  src/main/resources/META-INF/maven/site.vm (notice different name)
   4. Added one meta tag in template to see if the template will be
  picked up.
   5. Changed one value in css to see if change will be picked up.
   6. Created a jar
   7. Installed in my local repo
   8. In my project's site.xml I included this skin with skin tag

No luck. No documentation. Please don't redirect me to official site
(http://maven.apache.org/plugins/maven-site-plugin/). I don't want to go
there any more, it's scary.

Can someone please explain the procedure?

Regards,
Borut

the documentation is really bad, this list gives some clues, but still
got me nowhere.

Vance Karimi pravi:
 Why not have {Project}/src/main/resources/META-INF/maven/site.vm.
 When you package it, it will add the template correctly.


 -Original Message-
 From: Roland Bali [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 25 May 2006 6:45 PM
 To: Maven Users List
 Subject: Re: [m2] Using a custom template in a skin?

 Ah, thanks Vance. I tried that before but my page still looked messed up.
 But I found out what caused the whole thing.

 The documentation only says to copy a existing skin and the
 default-site.vmto make custom pages. It does not how-ever mention that
 to create a working
 page you also have to copy the CSS and image files inside the same doxia-
 jar
 that contained the default-site.vm.

 Now a follow-up question, is it possible to add the template file to the
 JAR
 using a setting in the POM or do I have to create a Ant script for that?

 Kind regards,
 Roland

 On 5/25/06, Vance Karimi [EMAIL PROTECTED] wrote:

 Managed to get this to work by putting the template within the skin jar
 directory structure META-INF/maven and call it site.vm.


 -Original Message-
 From: Roland Bali [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 25 May 2006 5:54 PM
 To: Maven Users List
 Subject: [m2] Using a custom template in a skin?

 Hi,

 I use a custom Velocity template to generate my site. Up until

 yesterday

 I

 did it the old fashioned way by configuring the site plugin with
 templateFile. Since this stopped working a while ago I tried to

 create

 my
 own skin. Creating a skin worked fine, exactly as advertised at
 http://maven.apache.org/plugins/maven-site-plugin/creating-a-
 skin.htmlexcept
 for the template thingy.

 Where do I put my custom Velocity template and what do I call it so

 Maven

 can use it together with my bright and shiny new skin? If I use the

 old

 way
 the page gets all screwed up (which by the way is documented on the

 site

 plugin page).

 How come the default template is in the Doxia plugin, shouldn't it be
 located inside a skin?

 Kind regards,
 Roland

 Send instant messages to your online friends

 http://au.messenger.yahoo.com

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




 Send instant messages to your online friends http://au.messenger.yahoo.com

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




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




Re: [m2] Is there a way to turn off downloading of poms?

2006-06-05 Thread Alexandre Poitras

Change your repository declaration order. It should do the trick but a
better option would be to use Maven Proxy or Proximity. This way,
Maven would only go to one place to get what is needed to build your
projet.

On 6/5/06, Jason Chaffee [EMAIL PROTECTED] wrote:

My builds are constantly failing even when I build offline because maven
is attempting to download pom files for dependencies.  However, most of
these dependencies do not have poms in the remote repo because they are
coming from legacy repos.  This is an extremely annoying feature that
can cause me not to build for an entire day.

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




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



Re: How do I manage versions of artifacts in a large project in Maven 2.0?

2006-06-05 Thread Alexandre Poitras

You should take a look at the dependencyManagement section. I think
this is what you are looking for.

On 6/5/06, Watson, Gordon [EMAIL PROTECTED] wrote:

To start the discussion we utilize properties files in maven 1.0.2 to
set global properties (so we don't have to use multiple
-Dproperty.value=x with each call to maven) to provide total project
properties to everyone working on subprojects.  But since maven 2.0 does
not read properties files any more I am trying to solve the problem
below.

We are currently using Maven 1.0.2 for a large project.  It has a
hierarchy similar to the following:

   base project/
  subproject 1/
  service
  subproject 2/
  service
  model
  subproject 3/
  service
  subproject 4/
  service
  model
  web
  ear
  subproject 5/
  service
  model
  web
  ear

With in the system we have generic scripts that build individual
subprojects using multiproject goals.  Note not all subprojects are
built at the same time.  But many refer to artifacts of other projects.
Additionally we utilize the scm plugin to tag the latest version of code
automatically.  Build on a central server are done in the form:
 maven multiproject:install
 if successful loop on subdirectories service, model, web, ear, etc
maven scm:prepare-release   # to set new version of all
artifacts
update base project/project.properties file with new version
of this artifact
 maven multiproject:deploy


Individual service/project.xml files extend two levels up and have
entries that refer to generic current.version properties to be sure they
utilize the most current version of these artifacts.

?xml version=1.0 encoding=UTF-8?

project
  extend${basedir}/../../project.xml/extend
  pomVersion1/pomVersion
  nameAssembly Service/name
  idAssembly-services/id
  groupIdAssembly/groupId
  artifactIdAssembly-services/artifactId
  currentVersion1.22/currentVersion
  dependencies
dependency
  groupIdjboss/groupId
  artifactIdjboss-j2ee/artifactId
  version3.2.3/version
  typejar/type
/dependency

dependency
  groupIdLocalUtilities/groupId
  artifactIdutilities/artifactId
  version${OurProject.utilities.service.current.version}/version
/dependency
/project

Any ideas on how to set a global project level file to set these values
for multiple subprojects such that each individual subproject
project.xml does not need to be hand modified when a centralized build
is performed?


Gordon Watson
System Architect
RLPTechnologies
248 991 1021
www.rlpt.com



*
This message has originated from RLPTechnologies,
26955 Northwestern Highway, Southfield, MI 48034.

RLPTechnologies sends various types of email
communications.  If this email message concerns the
potential licensing of an RLPT product or service, and
you do not wish to receive further emails regarding Polk
products, forward this email to [EMAIL PROTECTED]
with the word remove in the subject line.

The email and any files transmitted with it are confidential
and intended solely for the individual or entity to whom they
are addressed.

If you have received this email in error, please delete this
message and notify the Polk System Administrator at
[EMAIL PROTECTED]
*




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



Re: depencency version required

2006-06-05 Thread Alexandre Poitras

Look like there is a mistake in your ear pom. My guess : you probably
forgot to add the parent section or you made a mistake in the ids you
supplied in the parent pom dependencyManagement section.

On 6/5/06, Lee Meador [EMAIL PROTECTED] wrote:

I have a parent project/pom and several children using the form ../child1.

I put the versions for all the children projects in the parent pom (in
dependencyManagement). They are all 1.0-SNAPSHOT.

In all the child projects, when one depends on another, I don't put a
version tag in the dependency section.

In the child project for my ear, if I leave the version tag out, it
complains dependencies.dependency.version is missing but the version is
supplied in the parent's dependencyManagement section just like in all the
other children.

The other children have no problem.

mvn help:effective-pom gives the same error about missing the dependency
version.

This only happens in the one child and only as relates to the other children
(of the same parent pom) upon which it is dependent. (For example, the ear
is dependent on one war project and two ejb jar projects.)

The only change I have to make to build successfully is to add the version
tags into the ear child project's pom.

Does anyone have any ideas of where to look for this problem?

-- Lee Meador
Sent from gmail. My real email address is [EMAIL PROTECTED]




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



Re: [M2} Possible to pull in a pre built war as the EAR webModule?

2006-06-05 Thread Alexandre Poitras

Just make sure it is installed in your local or internal repository
when you build and it should work.

On 6/5/06, ben short [EMAIL PROTECTED] wrote:

Hi,

Is it possible to use a allready built webapp as a ear webModule,
rather than having the webapp as a module of the ear project itself?

Ben

-
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: [ERROR] ResourceManager ???

2006-06-05 Thread Allan Ramirez

Hi there,

Just ignore that stuff. Its not with maven its with the velocity. Its no 
big deal.


Cheers,
-allan

EJ Ciramella wrote:

Can anyone explain what maven is attempting to do?
 
 
[INFO] Velocimacro : adding VMs from VM library template :

VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
in any resource loader.
[INFO] Velocimacro : error using  VM library template
VM_global_library.vm :
org.apache.velocity.exception.ResourceNotFoundException: Unable to f
ind resource 'VM_global_library.vm'

  


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

RE: [m2] Is there a way to turn off downloading of poms?

2006-06-05 Thread Jason Chaffee
Neither one of these solutions seems to work.  It appears that maven
always attempts to download poms that do not exist in any remote
repositories and sometimes it will fail because of a download error.
Sometimes, I can run it again right away and it will work...sometimes it
will take the entire day before it works.

-Original Message-
From: Alexandre Poitras [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 05, 2006 4:37 PM
To: Maven Users List
Subject: Re: [m2] Is there a way to turn off downloading of poms?

Change your repository declaration order. It should do the trick but a
better option would be to use Maven Proxy or Proximity. This way,
Maven would only go to one place to get what is needed to build your
projet.

On 6/5/06, Jason Chaffee [EMAIL PROTECTED] wrote:
 My builds are constantly failing even when I build offline because
maven
 is attempting to download pom files for dependencies.  However, most
of
 these dependencies do not have poms in the remote repo because they
are
 coming from legacy repos.  This is an extremely annoying feature that
 can cause me not to build for an entire day.

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



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


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



Re: [m2] Is there a way to turn off downloading of poms?

2006-06-05 Thread Max Cooper
Using a proxy (like maven-proxy or proximity) can be employed to reduce 
the frequency of download errors.


You could put fake/generated POMs in your local repo, or in a shared 
repo, such as a maven-proxy instance. Then maven would find the POMs and 
stop trying to download them.


I grant that setting this up can be a PITA, but you need to do what you 
need to do to get your project running smoothly -- There is no royal 
road, but there is a road.


-Max

Jason Chaffee wrote:

Neither one of these solutions seems to work.  It appears that maven
always attempts to download poms that do not exist in any remote
repositories and sometimes it will fail because of a download error.
Sometimes, I can run it again right away and it will work...sometimes it
will take the entire day before it works.

-Original Message-
From: Alexandre Poitras [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 05, 2006 4:37 PM

To: Maven Users List
Subject: Re: [m2] Is there a way to turn off downloading of poms?

Change your repository declaration order. It should do the trick but a
better option would be to use Maven Proxy or Proximity. This way,
Maven would only go to one place to get what is needed to build your
projet.

On 6/5/06, Jason Chaffee [EMAIL PROTECTED] wrote:

My builds are constantly failing even when I build offline because

maven

is attempting to download pom files for dependencies.  However, most

of

these dependencies do not have poms in the remote repo because they

are

coming from legacy repos.  This is an extremely annoying feature that
can cause me not to build for an entire day.

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




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


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



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



Re: [m2] Is there a way to turn off downloading of poms?

2006-06-05 Thread Charlie Groves

Maybe this was what you meant by building offline in your first email,
but just in case it wasn't, have you tried building in offline mode
with mvn -o?

On 6/5/06, Jason Chaffee [EMAIL PROTECTED] wrote:

Neither one of these solutions seems to work.  It appears that maven
always attempts to download poms that do not exist in any remote
repositories and sometimes it will fail because of a download error.
Sometimes, I can run it again right away and it will work...sometimes it
will take the entire day before it works.

-Original Message-
From: Alexandre Poitras [mailto:[EMAIL PROTECTED]
Sent: Monday, June 05, 2006 4:37 PM
To: Maven Users List
Subject: Re: [m2] Is there a way to turn off downloading of poms?

Change your repository declaration order. It should do the trick but a
better option would be to use Maven Proxy or Proximity. This way,
Maven would only go to one place to get what is needed to build your
projet.

On 6/5/06, Jason Chaffee [EMAIL PROTECTED] wrote:
 My builds are constantly failing even when I build offline because
maven
 is attempting to download pom files for dependencies.  However, most
of
 these dependencies do not have poms in the remote repo because they
are
 coming from legacy repos.  This is an extremely annoying feature that
 can cause me not to build for an entire day.

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



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


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




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



Re: building assemblies from the top level project directory

2006-06-05 Thread Edwin Punzalan


You can put the goal assembly:attached inside the application directory 
so that it always generates the assembly whenever it is built (either 
from the projectname dir or from the application dir).  Or you can even 
put it inside a profile so you can just activate the profile when you 
can to create the assembly.


or if you want... use the -f operator in mvn and point to your 
application pom.



Hope that helps.


^_^



EJ Ciramella wrote:

If I have a structure like this:
 
C:\work\projectname
 
And have three modules:
 
C:\work\projectname\utils

C:\work\projectname\someproj
C:\work\projectname\application
 
The only item that has an assembly is the actual application.  Is there

some way to build that assembly from the projectname directory, or do I
have to run assembly:assembly from the application directory every time?

  


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



Re: building assemblies from the top level project directory - binding to lifecycle stages...

2006-06-05 Thread Edwin Punzalan


Shouldn't there be a goalsgoal//goals inside the executions ?


EJ Ciramella wrote:

Shouldn't this work?

plugins
  plugin
   artifactIdmaven-assembly-plugin/artifactId
configuration
  descriptorsrc/main/assembly/dep.xml/descriptor
/configuration
   executions
execution
  phasepackage/phase
/execution
   /executions
  /plugin 





It doesn't, but is there a way to do something like this?  Packaging
this particular module should mean build a tarball in addition to the
jar with all the classes.

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 05, 2006 11:56 AM

To: Maven Users List
Subject: building assemblies from the top level project directory

If I have a structure like this:
 
C:\work\projectname
 
And have three modules:
 
C:\work\projectname\utils

C:\work\projectname\someproj
C:\work\projectname\application
 
The only item that has an assembly is the actual application.  Is there

some way to build that assembly from the projectname directory, or do I
have to run assembly:assembly from the application directory every time?

-
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: javadoc won't work

2006-06-05 Thread Edwin Punzalan


you maybe running javadoc on a pom packaging project without modules.


Brown, Charles wrote:

Follwed th javadoc plugin instructions, and had a couple co-workers double 
check, but all I get is this;

[INFO] Preparing javadoc:javadoc
[INFO] No goals needed for project - skipping

what does thqat mean?

--CB

  


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



Re: [ANN] Maven Archetype Plugin 1.0-alpha-4 Released

2006-06-05 Thread Willie Vu

Can someone explain when creating a new module inside a directory
with a pom that has modules, update modules?  Does it mean
archetype supports modules?

On 5/8/06, Brett Porter [EMAIL PROTECTED] wrote:

The Maven team is pleased to announce the release of the Maven Archetype
Plugin, version 1.0-alpha-4.

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

The Maven Archetype Plugin produces a project skeleton based on a template.

You can run mvn -U to get the latest version of the plugin.

Changes:
http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11095styleName=Textversion=12410

* [ARCHETYPE-19] - archetype creation broken
* [ARCHETYPE-14] - Archtype:create does not
* [ARCHETYPE-28] - when creating a new module inside a directory with a
pom that has modules, update modules
* [ARCHETYPE-31] - Create a tool that will generate an archetype from an
existing project
* [ARCHETYPE-13] - testArchetype update
* [ARCHETYPE-22] - Always generates groupId directories

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





--
Willie Vu

HKJUG - http://hkjug.dev.java.net

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



Re: [ANN] Maven Archetype Plugin 1.0-alpha-4 Released

2006-06-05 Thread Brett Porter

Sort of. If you have a multi-module project, and you run archetype
from the parent pom location, the subproject is created, added to the
modules list of the parent, and the parent added to the created
suproject.

- Brett

On 06/06/06, Willie Vu [EMAIL PROTECTED] wrote:

Can someone explain when creating a new module inside a directory
with a pom that has modules, update modules?  Does it mean
archetype supports modules?

On 5/8/06, Brett Porter [EMAIL PROTECTED] wrote:
 The Maven team is pleased to announce the release of the Maven Archetype
 Plugin, version 1.0-alpha-4.

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

 The Maven Archetype Plugin produces a project skeleton based on a template.

 You can run mvn -U to get the latest version of the plugin.

 Changes:
 
http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11095styleName=Textversion=12410

 * [ARCHETYPE-19] - archetype creation broken
 * [ARCHETYPE-14] - Archtype:create does not
 * [ARCHETYPE-28] - when creating a new module inside a directory with a
 pom that has modules, update modules
 * [ARCHETYPE-31] - Create a tool that will generate an archetype from an
 existing project
 * [ARCHETYPE-13] - testArchetype update
 * [ARCHETYPE-22] - Always generates groupId directories

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




--
Willie Vu

HKJUG - http://hkjug.dev.java.net

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





--
Apache Maven - http://maven.apache.org
Better Builds with Maven book - http://library.mergere.com/

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



Maven2 SCM plugin

2006-06-05 Thread Karthik Manimaran

Hi,

Is it possible to checkout using maven2 scm plugin based on a label? I am
using StarTeam as the SCM.

Thanks and regards,
Karthik.


Re: Maven2 SCM plugin

2006-06-05 Thread dan tran

maven scm:checkout -DconnectionUrl=xuy -Dtag=yourtag

-D


On 6/5/06, Karthik Manimaran [EMAIL PROTECTED] wrote:


Hi,

Is it possible to checkout using maven2 scm plugin based on a label? I am
using StarTeam as the SCM.

Thanks and regards,
Karthik.




RE: How to get jaxb2-maven-plugin to generate equals method

2006-06-05 Thread Jonathan Johnson
Your question appears to be purely a jaxb question and has nothing to do
with Maven or the Maven 2 jaxb plugin.  Please join the jaxb users mailing
list here. https://jaxb.dev.java.net/ and post your detailed question there.
The more you detail your question with precise and relevant information the
more likely you will get a helpful response.


-Original Message-
From: dan tran [mailto:[EMAIL PROTECTED]
Sent: Monday, June 05, 2006 12:02 AM
To: Maven Users List
Subject: Re: How to get jaxb2-maven-plugin to generate equals method

Jonhathan,

It is jaxb2-maven-plugin at mojo.codehaus.org.

I successfully got that plugin to generate java classes from my xsd file.
but The classes do not have equals methods.

-Dan


On 6/4/06, Jonathan Johnson [EMAIL PROTECTED] wrote:

 Dan,

 Are you referring to the maven 2 plugin for jaxb found here
 https://jaxb.dev.java.net/jaxb-maven2-plugin/?

 Your question is terribly vague and confusing.  Perhaps you have a
 question
 that should be placed on the JAXB users list instead of the maven users
 list.

 -Original Message-
 From: dan tran [mailto:[EMAIL PROTECTED]
 Sent: Sunday, June 04, 2006 12:48 AM
 To: Maven Users List
 Subject: How to get jaxb2-maven-plugin to generate equals method

 From the i dont find any clue on how to do this.

 Suggestions are greatly appreciated.

 -D


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