Re: surefire-report-plugin running tests of all dependent modules again?

2008-01-29 Thread VUB Stefan Seidel

Hi Jörg,

this is also what I see here (see my post about M2 multi-project site 
build is broken).
All tests are run for each project in the reactor. I think we could file 
an issue for each of the affected plugins, but this seems more like a 
maven generic issue. Something was fixed with devastating effects for 
a lot of plugins. What maven version are you using?


Stefan

Joerg Hohwiller wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,
| Try
|
| export MAVEN_OPTS=-Xmx1024M -XX:MaxPermSize=512m
oh, stupid me!

The build runs now, but still it is true what I described:
It seems to cycle. It is not an infinity loop but the same modules
are build and tested again and again.
Might be a bug introduced in maven-surefire-report-plugin 2.4.

I build with 2.4.
[INFO] BUILD SUCCESSFUL
[INFO] 


[INFO] Total time: 27 minutes 57 seconds
[INFO] Finished at: Mon Jan 28 23:16:26 GMT+01:00 2008
[INFO] Final Memory: 92M/164M
[INFO] 



Then I ran a clean build again with maven-surefire-report-plugin 2.3 
and got:

[INFO] BUILD SUCCESSFUL
[INFO] 


[INFO] Total time: 9 minutes 38 seconds
[INFO] Finished at: Mon Jan 28 23:29:44 GMT+01:00 2008
[INFO] Final Memory: 46M/86M
[INFO] 



The log (maven-output) is multiple times larger with 2.4.

Any ideas?
Shall I file a jira issue?
|
| instead.
|
| As far as I can see, MVN_OPTS is not used by Maven.
Thanks for this hint.

Take care
~  Jörg
|
|
| On 27/01/2008, Joerg Hohwiller [EMAIL PROTECTED] wrote:
| Hi there,
|
| the build of my projects site does not work anymore.
|
| I do this:
|
| export MVN_OPTS=-Xmx1024M -XX:MaxPermSize=512m
| mvn install -Dmaven.test.skip=true
| mvn -npu -fae -Pcodehaus site:stage -DstagingDirectory=${STAGE_DIR}
|
| The problem occured since I hat to purge my local repository.
| I currently guess that it has to do something with a bug in a new
| released plugin (maybe related to surefire - see below).
|
| Can anybody help me to track this down?
|
| After an extra-ordinary long build I got this error:
|
| [INFO] Generate Source Xref report.
| [INFO] 


| [ERROR] FATAL ERROR
| [INFO] 


| [INFO] Java heap space
| [INFO] 


| [INFO] Trace
| java.lang.OutOfMemoryError: Java heap space
| ~at
|
org.apache.velocity.runtime.parser.VelocityCharStream.init(VelocityCharStream.java:260) 


| ~at
|
org.apache.velocity.runtime.parser.VelocityCharStream.init(VelocityCharStream.java:296) 


| ~at
|
org.apache.velocity.runtime.parser.VelocityCharStream.init(VelocityCharStream.java:302) 

| ~at 
org.apache.velocity.runtime.parser.Parser.init(Parser.java:61)

| ~at
|
org.apache.velocity.runtime.RuntimeInstance.createNewParser(RuntimeInstance.java:694) 


| ~at
|
org.apache.velocity.runtime.RuntimeInstance.initializeParserPool(RuntimeInstance.java:681) 


| ~at
| 
org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:229) 

| ~at 
org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:80)

| ~at
org.apache.maven.jxr.DirectoryIndexer.process(DirectoryIndexer.java:220)
| ~at org.apache.maven.jxr.JXR.xref(JXR.java:281)
| ~at
|
org.apache.maven.plugin.jxr.AbstractJxrReport.createXref(AbstractJxrReport.java:261) 


|
|
| The build also seems to cycle because it does the same things again 
and again.

| During that it logs sections like this:
| Tests run: 8, Failures: 0, Errors: 0, Skipped: 1
|
| [INFO] Preparing surefire-report:report-only
| [INFO] 


| [INFO] Building mmm
| [INFO] 


| [INFO] No goals needed for project - skipping
| [INFO] 


| [INFO] Building util
| [INFO] 


| [INFO] No goals needed for project - skipping
| [INFO] 


| [INFO] Building util-core
| [INFO] 


| [INFO] No goals needed for project - skipping
| [INFO] 


| [INFO] Building util-reflect
| [INFO] 


| [INFO] No goals needed for project - skipping
| [INFO] 

Maven with Eclipse

2008-01-29 Thread amit kumar
Hi,
I am using maven plug-in with myeclipse 6.0. But while coding even if
I add rubbish to the code, I can not see any error line(the usual red
line at the point of syntactic error).
Could anyone help with that?

I am using the org.maven.ide.eclipse_0.0.11.20070603-1200 plug in.
Regards,
Amit

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



Re: M2 multi-project site build is broken

2008-01-29 Thread VUB Stefan Seidel
Ok, but what about the Surefire tests being run way too often? Is this 
not a more general error?


Stefan

Dennis Lundberg wrote:

This sounds like something to report in JIRA for the xmlbeans plugin.

http://jira.codehaus.org/browse/MXMLBEANS

VUB Stefan Seidel wrote:

Hi,

I don't know if anyone else noticed this, but the mvn site keeps on
getting worse. It first started out with the following phenomenon:
during site build, for each project _all_ the projects were iterated,
usually saying
[INFO] No goals needed for project - skipping
Then, we started using xmlbeans and it started doing xmlbeans:xmlbeans
for each project. And now, it executes _all_ the tests of _all_ project
for _each_ project. Well, you can imagine that this is pretty much
undoable for a project like ours with 150+ modules.

Here some sample outputs from the attached project (1 parent, 2 modules,
1 test per module)
   mvn clean site | grep Running | wc -l
6
--- this means the two tests are executed 3 times each!!

   mvn clean site | grep xmlbeans | wc -l
29
--- this means, xmlbeans is being executed 26 times, 9 times per 
project!!!


Hello? Is anyone _using_ maven 2  site generation? This situation is
that it is becoming totally unusable. The problem is, I don't even know
where to report the bug, because it seems to be a combination of bugs.


regards,

Stefan Seidel

P.S.: I have removed the attached project, to see whether this is 
causing the apache mail server to reject my mail. You can find it at

http://stefanseidel.info/mvnexec.zip






--
best regards, Stefan Seidel software developer  
VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel. +49 
(341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web. 
www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss 
Neudorf, Dr. Christian Preuss Neudorf


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



RE: Maven Report --- more than one output document?

2008-01-29 Thread nicklist
Hi Howard,

If you are talking about the org.apache.maven.reporting:maven-reporting-api 
artifact. It is up on central from version 2.0 to 2.0.8 with POM, sources and 
javadocs. [1]

In the org.apache.maven.reporting:maven-reporting-impl I see an 
AbstractMavenMultiPageReport, but I doubt it works correctly [2]. In that 
thread there is also a solution to start with xdoc documents. In Maven 2.0.5 
there is a bug closed (won't fix) regarding the AbstractMavenMultiPageReport 
[3], because it has been deleted. There are also a few pointers to how it 
should work.

I don't have any experience with it, but I hope this will help you a bit.

With regards,

Nick Stolwijk

[1] 
http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-reporting-api/
[2] http://archives.devshed.com/forums/java-118/multi-page-reports-1632428.html
[3] http://jira.codehaus.org/browse/MNG-2056


-Original Message-
From: Howard Lewis Ship [mailto:[EMAIL PROTECTED]
Sent: Tue 1/29/2008 12:23 AM
To: Maven Users List
Subject: Maven Report --- more than one output document?
 
I would like to create a Maven Report that generates a set of documents.

I've succeeded in the past with a Maven Report that generates a single
document.  However, that document is getting very large.

I would like to split this document (it is a Tapestry component
report) into one document per class, and add a kind of index to the
individual pages.  Further, I would like the index to be integrated
into the site menu.

It's very hard to work with the Maven report apis, since The Cobbler's
Children Have No Shoes: The JARs are not packaged with source, The
correct version numbers and dependencies are anyone's guess, and
JavaDoc links are missing or broken.

Is there a pointer to a similar report I can work from?

Thanks!

-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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




Re: A Hello World in ejb3

2008-01-29 Thread Jacek Laskowski
On Jan 28, 2008 4:12 PM, Angelo Chen [EMAIL PROTECTED] wrote:

 http://svn.apache.org/repos/asf/geronimo/samples/trunk/samples/calculator-stateless-pojo/

 I checked out the above project too, the layout is a little different from
 the zip file, but it does not compile, this is the only maven project for
 ejb3 I found in the net so far, two days spent and I can not even produce a
 'hello world' in maven, managed to make a 'hello world' in command line, but
 not for real code.

Hi,

Could you describe the steps you took until it hit the state 'does not
compile'? I'd be glad to help you out with the sample. You could take
a look at the article (in Polish) about Geronimo, Maven and JSF -
http://www.jaceklaskowski.pl/wiki/Tworzenie_aplikacji_z_JavaServer_Faces%2C_Apache_Maven_i_Apache_Geronimo.
There're a couple of samples in Apache OpenEJB project -
http://openejb.apache.org/examples.html.

Jacek
(Geronimo and OpenEJB committer)

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

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



Re: Checking out and building on remote machine using continuum

2008-01-29 Thread Buvana Jayaraman

Hi,

I am new to Continuum and trying to set up a shell project.

Continuum is installed on the same machine as the SVN repositories. But 
I would like to use another machine for the build. Is there a way to 
check out and build the code on a remote machine using Continuum?


I browsed through the users forum for answers and also tried Google. No 
luck so far. Can some one help please?


Thanks,
-Buvana


Re: eclipse plugin snapshot setup

2008-01-29 Thread Zemian Deng

Thank you all for helping. All are useful!
-Zemian

On Jan 26, 2008, at Sat Jan 26 - 3:39 PM, Arnaud HERITIER wrote:


What you are searching is :
   profile
 idsnapshots/id
 repositories
   repository
 releases
   enabledfalse/enabled
 /releases
 snapshots/
 idapache.snapshots/id
 nameMaven Snapshots/name
 urlhttp://people.apache.org/maven-snapshot-repository/url
   /repository
   repository
 releases
   enabledfalse/enabled
 /releases
 snapshots/
 idcodehaus.snapshots/id
 urlhttp://snapshots.repository.codehaus.org//url
   /repository
 /repositories
 pluginRepositories
   pluginRepository
 releases
   enabledfalse/enabled
 /releases
 snapshots/
 idapache.plugin.snapshots/id
 nameMaven Plugin Snapshots/name
 urlhttp://people.apache.org/maven-snapshot-repository/url
   /pluginRepository
   pluginRepository
 releases
   enabledfalse/enabled
 /releases
 snapshots/
 idcodehaus.plugin.snapshots/id
 nameCodeHaus Plugin Snapshots/name
 urlhttp://snapshots.repository.codehaus.org//url
   /pluginRepository
 /pluginRepositories
   /profile

Arnaud
On Jan 26, 2008 1:20 AM, Zemian Deng [EMAIL PROTECTED] wrote:


Hello list,
Is there a standard repository URL for maven's plugin snapshot? I am
interested in using the  maven-eclipse-plugin with version2.5-
SNAPSHOT/version

Thanks,
Zemian Deng





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



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



Make META-INF optional

2008-01-29 Thread John Coleman
Hi,

Is it possible to make a jar with no META-INF entry - I just want to
create a jar to unpack with some files I need.

TIA,
John

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

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

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

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


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



Re: Another jar plugin qu

2008-01-29 Thread nicolas de loof
You should declare the /data/common folder as a resource folder in your
POM

Nico.

2008/1/29, John Coleman [EMAIL PROTECTED]:

 I want to add some directories not under target/classes to my jar during
 the package phase, but the below doesn't seem to work? It looks valid to
 me.

 TIA,
 John

   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-jar-plugin/artifactId
 configuration
   includes
 include${basedir}/data/common/**/include
   /includes
 /configuration
   /plugin
 /plugins

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

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

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

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


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




Re: Make META-INF optional

2008-01-29 Thread Simon Kitching
Yes, I would recommend this too.

A jarfile is not just a compressed bundle of files; it is an application or a 
library. Yes, the sun jar specification says that META-INF is optional, but why 
would you ever want to leave it out for an app or a library?

IMO, a compressed bundle of files without any metadata should be a .zip, not a 
.jar.

Regards, Simon

 VUB Stefan Seidel [EMAIL PROTECTED] schrieb:
 Would it help to create a ZIP file with the maven assembly plugin[1]?
 
 regards,
 
 Stefan
 P.S.: I just saw, the assembly plugin can also create JARs - so it's 
 probably just what you need.
 
 [1] http://maven.apache.org/plugins/maven-assembly-plugin/
 
 John Coleman wrote:
  Hi,
 
  Is it possible to make a jar with no META-INF entry - I just want to
  create a jar to unpack with some files I need.
 
  TIA,
  John
 

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



Re: Make META-INF optional

2008-01-29 Thread VUB Stefan Seidel

Would it help to create a ZIP file with the maven assembly plugin[1]?

regards,

Stefan
P.S.: I just saw, the assembly plugin can also create JARs - so it's 
probably just what you need.


[1] http://maven.apache.org/plugins/maven-assembly-plugin/

John Coleman wrote:

Hi,

Is it possible to make a jar with no META-INF entry - I just want to
create a jar to unpack with some files I need.

TIA,
John

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

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


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

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


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

  


--
best regards, Stefan Seidel software developer  
VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel. +49 
(341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web. 
www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss 
Neudorf, Dr. Christian Preuss Neudorf


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



RE: Maven with Eclipse

2008-01-29 Thread Ben Lidgey

There is a newer version of the M2Eclipse plugin (0.0.12) which might make a 
difference. Also, there are settings in Eclipse to control the highlighting 
(see Windows-Preferences-Java-Editor and see if the Report problems as you 
type box is checked).

Ben

 -Original Message-
 From: amit kumar [mailto:[EMAIL PROTECTED]
 Sent: 29 January 2008 08:07
 To: Maven Users List
 Subject: Maven with Eclipse

 Hi,
 I am using maven plug-in with myeclipse 6.0. But while coding
 even if I add rubbish to the code, I can not see any error
 line(the usual red line at the point of syntactic error).
 Could anyone help with that?

 I am using the org.maven.ide.eclipse_0.0.11.20070603-1200 plug in.
 Regards,
 Amit

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




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


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



Another jar plugin qu

2008-01-29 Thread John Coleman
I want to add some directories not under target/classes to my jar during
the package phase, but the below doesn't seem to work? It looks valid to
me.

TIA,
John

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
configuration
  includes
include${basedir}/data/common/**/include
  /includes
/configuration
  /plugin
/plugins

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

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

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

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


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



Re: surefire-report-plugin running tests of all dependent modules again?

2008-01-29 Thread Erez Nahir
Hi Stefan,

For me, it happens on 2.0.7 and 2.0.8 with java 1.5.0_14

Erez.

On Jan 29, 2008 10:07 AM, VUB Stefan Seidel [EMAIL PROTECTED] wrote:

 Hi Jörg,

 this is also what I see here (see my post about M2 multi-project site
 build is broken).
 All tests are run for each project in the reactor. I think we could file
 an issue for each of the affected plugins, but this seems more like a
 maven generic issue. Something was fixed with devastating effects for
 a lot of plugins. What maven version are you using?

 Stefan

 Joerg Hohwiller wrote:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  Hi,
  | Try
  |
  | export MAVEN_OPTS=-Xmx1024M -XX:MaxPermSize=512m
  oh, stupid me!
 
  The build runs now, but still it is true what I described:
  It seems to cycle. It is not an infinity loop but the same modules
  are build and tested again and again.
  Might be a bug introduced in maven-surefire-report-plugin 2.4.
 
  I build with 2.4.
  [INFO] BUILD SUCCESSFUL
  [INFO]
  
  [INFO] Total time: 27 minutes 57 seconds
  [INFO] Finished at: Mon Jan 28 23:16:26 GMT+01:00 2008
  [INFO] Final Memory: 92M/164M
  [INFO]
  
 
  Then I ran a clean build again with maven-surefire-report-plugin 2.3
  and got:
  [INFO] BUILD SUCCESSFUL
  [INFO]
  
  [INFO] Total time: 9 minutes 38 seconds
  [INFO] Finished at: Mon Jan 28 23:29:44 GMT+01:00 2008
  [INFO] Final Memory: 46M/86M
  [INFO]
  
 
  The log (maven-output) is multiple times larger with 2.4.
 
  Any ideas?
  Shall I file a jira issue?
  |
  | instead.
  |
  | As far as I can see, MVN_OPTS is not used by Maven.
  Thanks for this hint.
 
  Take care
  ~  Jörg
  |
  |
  | On 27/01/2008, Joerg Hohwiller [EMAIL PROTECTED] wrote:
  | Hi there,
  |
  | the build of my projects site does not work anymore.
  |
  | I do this:
  |
  | export MVN_OPTS=-Xmx1024M -XX:MaxPermSize=512m
  | mvn install -Dmaven.test.skip=true
  | mvn -npu -fae -Pcodehaus site:stage -DstagingDirectory=${STAGE_DIR}
  |
  | The problem occured since I hat to purge my local repository.
  | I currently guess that it has to do something with a bug in a new
  | released plugin (maybe related to surefire - see below).
  |
  | Can anybody help me to track this down?
  |
  | After an extra-ordinary long build I got this error:
  |
  | [INFO] Generate Source Xref report.
  | [INFO]
  
  | [ERROR] FATAL ERROR
  | [INFO]
  
  | [INFO] Java heap space
  | [INFO]
  
  | [INFO] Trace
  | java.lang.OutOfMemoryError: Java heap space
  | ~at
  |
  org.apache.velocity.runtime.parser.VelocityCharStream.init(
 VelocityCharStream.java:260)
 
  | ~at
  |
  org.apache.velocity.runtime.parser.VelocityCharStream.init(
 VelocityCharStream.java:296)
 
  | ~at
  |
  org.apache.velocity.runtime.parser.VelocityCharStream.init(
 VelocityCharStream.java:302)
 
  | ~at
  org.apache.velocity.runtime.parser.Parser.init(Parser.java:61)
  | ~at
  |
  org.apache.velocity.runtime.RuntimeInstance.createNewParser(
 RuntimeInstance.java:694)
 
  | ~at
  |
  org.apache.velocity.runtime.RuntimeInstance.initializeParserPool(
 RuntimeInstance.java:681)
 
  | ~at
  |
  org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java
 :229)
 
  | ~at
  org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:80)
  | ~at
  org.apache.maven.jxr.DirectoryIndexer.process(DirectoryIndexer.java:220)
  | ~at org.apache.maven.jxr.JXR.xref(JXR.java:281)
  | ~at
  |
  org.apache.maven.plugin.jxr.AbstractJxrReport.createXref(
 AbstractJxrReport.java:261)
 
  |
  |
  | The build also seems to cycle because it does the same things again
  and again.
  | During that it logs sections like this:
  | Tests run: 8, Failures: 0, Errors: 0, Skipped: 1
  |
  | [INFO] Preparing surefire-report:report-only
  | [INFO]
  
  | [INFO] Building mmm
  | [INFO]
  
  | [INFO] No goals needed for project - skipping
  | [INFO]
  
  | [INFO] Building util
  | [INFO]
  
  | [INFO] No goals needed for project - skipping
  | [INFO]
  
  | [INFO] Building util-core
  | [INFO]
  

Re: Maven with Eclipse

2008-01-29 Thread amit kumar
I was not able to locale 0.12 version of m2eclipse plug at
http://m2eclipse.codehaus.org/update-dev/plugins/
Ben I would definitely try the plug in you had mentioned because my
experience with m2eclipse plug in for eclipse is not so cool in
terms of reliability while working from Eclipse console ( in case of
downloading artifacts, searching the repository and compiling results
etc. ).
The problem is resolved for 0.11 version as well, there was some
problem with Linking of sources in eclipse, which is tackled now.
Thanks a ton.

Regards,
Amit

On Jan 29, 2008 3:43 PM, Thomas Lutz [EMAIL PROTECTED] wrote:
 You could try

 http://code.google.com/p/q4e/

 Other maven plugin, not as well known as mevenide or M2Eclipse plugin,
 but for me it works a lot better...

 Tom

 Ben Lidgey schrieb:

  There is a newer version of the M2Eclipse plugin (0.0.12) which might make 
  a difference. Also, there are settings in Eclipse to control the 
  highlighting (see Windows-Preferences-Java-Editor and see if the Report 
  problems as you type box is checked).
 
  Ben
 
 
  -Original Message-
  From: amit kumar [mailto:[EMAIL PROTECTED]
  Sent: 29 January 2008 08:07
  To: Maven Users List
  Subject: Maven with Eclipse
 
  Hi,
  I am using maven plug-in with myeclipse 6.0. But while coding
  even if I add rubbish to the code, I can not see any error
  line(the usual red line at the point of syntactic error).
  Could anyone help with that?
 
  I am using the org.maven.ide.eclipse_0.0.11.20070603-1200 plug in.
  Regards,
  Amit
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
  This e-mail is confidential and intended solely for the use of the 
  individual(s) to whom it is addressed. Any views or opinions expressed are 
  those of the author. If you are not the intended recipient, please be 
  advised that any use, dissemination, printing or copying of this email is 
  strictly prohibited.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



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



Re: Maven with Eclipse

2008-01-29 Thread Thomas Lutz

You could try

http://code.google.com/p/q4e/

Other maven plugin, not as well known as mevenide or M2Eclipse plugin, 
but for me it works a lot better...


Tom

Ben Lidgey schrieb:

There is a newer version of the M2Eclipse plugin (0.0.12) which might make a difference. 
Also, there are settings in Eclipse to control the highlighting (see 
Windows-Preferences-Java-Editor and see if the Report problems as you type 
box is checked).

Ben

  

-Original Message-
From: amit kumar [mailto:[EMAIL PROTECTED]
Sent: 29 January 2008 08:07
To: Maven Users List
Subject: Maven with Eclipse

Hi,
I am using maven plug-in with myeclipse 6.0. But while coding
even if I add rubbish to the code, I can not see any error
line(the usual red line at the point of syntactic error).
Could anyone help with that?

I am using the org.maven.ide.eclipse_0.0.11.20070603-1200 plug in.
Regards,
Amit

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






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


-
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: SNAPSHOT timestamp ?

2008-01-29 Thread nicklist
Take a look at the buildnumber plugin[1]. However, this will not be the 
timestamp it will have in your remote repository. Just the timestamp (or 
revision) of the moment you build.

Hth,

Nick Stolwijk

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


-Original Message-
From: news on behalf of Jon SlinnHawkins
Sent: Tue 1/29/2008 11:04 AM
To: users@maven.apache.org
Subject:  SNAPSHOT timestamp ?
 
Hi All,

I am trying to write the SNAPSHOT version number (with timestamp) to the 
manifest.mf file of a WebApp.

I can successfully use the maven-war-plugin to add the version - however 
this simply adds 1.0.0-SNAPSHOT to the manifest.

Whast i would like to achieve is adding the timestamped snapshot version 
number : 1.0.0-20080125.120545-3

Is this possible ?

Is there any way i can retrieve this timestamped version by any other 
means, i can then figure out how to get it into the manifest.

Many Thanks

Jon


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




SNAPSHOT timestamp ?

2008-01-29 Thread Jon SlinnHawkins

Hi All,

I am trying to write the SNAPSHOT version number (with timestamp) to the 
manifest.mf file of a WebApp.


I can successfully use the maven-war-plugin to add the version - however 
this simply adds 1.0.0-SNAPSHOT to the manifest.


Whast i would like to achieve is adding the timestamped snapshot version 
number : 1.0.0-20080125.120545-3


Is this possible ?

Is there any way i can retrieve this timestamped version by any other 
means, i can then figure out how to get it into the manifest.


Many Thanks

Jon


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



Daniel J. Bernstein is out of the office.

2008-01-29 Thread DJBernstein

I will be out of the office starting  01/29/2008 and will not return until
01/30/2008.

I am (maybe) reachable by cell for urgent issues. Otherwise, please contact
Gary Swimeley.


-
This e-mail and any attachments are intended only for the
individual or company to which it is addressed and may contain
information which is privileged, confidential and prohibited from
disclosure or unauthorized use under applicable law.  If you are
not the intended recipient of this e-mail, you are hereby notified
that any use, dissemination, or copying of this e-mail or the
information contained in this e-mail is strictly prohibited by the
sender.  If you have received this transmission in error, please
return the material received to the sender and delete all copies
from your system.


Need help on using maven scm with Subversion

2008-01-29 Thread Stamer, Jan
___

Cellent Finance Solutions AG

Firmensitz: Calwer Straße 33, 70173 Stuttgart
Registergericht: Amtsgericht Stuttgart, HRB 720743
Vorstand: Thomas Wild
Vorsitzender des Aufsichtsrats: Rudolf Zipf---BeginMessage---
Hi,
 
I would like to use maven-scm with maven2 with subversion for tagging.
However I can't get it working and need support.
 
The problem:
Updating from Subversion works fine but tagging does not work at all.
 
Here's whats in my pom.xml:
 scm
 connectionscm:svn:svn://PATH_TO_REP/connection
 
developerConnectionscm:svn:svn://PATH_TO_REP/developerConnection
 tagTest-Tag/tag 
 urlscm:svn:svn://PATH_TO_REPurl  
 /scm
 
I tried tagging with mvn scm:tag which results in the following error:
[INFO] Cannot run tag command :
Embedded error: Can't load the scm provider.
 
Thanks for your help!

Jan Stamer

---End Message---


Re: SNAPSHOT timestamp ?

2008-01-29 Thread Jon SlinnHawkins

Thanks Nick,

Ideally i need to be able to get hold of the version number that will be 
used, and deployed to the repository otherwise we cannot trace a build 
number to a snapshot version in the repo.


Thanks

Jon

[EMAIL PROTECTED] wrote:

Take a look at the buildnumber plugin[1]. However, this will not be the 
timestamp it will have in your remote repository. Just the timestamp (or 
revision) of the moment you build.

Hth,

Nick Stolwijk

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


-Original Message-
From: news on behalf of Jon SlinnHawkins
Sent: Tue 1/29/2008 11:04 AM
To: users@maven.apache.org
Subject:  SNAPSHOT timestamp ?
 
Hi All,


I am trying to write the SNAPSHOT version number (with timestamp) to the 
manifest.mf file of a WebApp.


I can successfully use the maven-war-plugin to add the version - however 
this simply adds 1.0.0-SNAPSHOT to the manifest.


Whast i would like to achieve is adding the timestamped snapshot version 
number : 1.0.0-20080125.120545-3


Is this possible ?

Is there any way i can retrieve this timestamped version by any other 
means, i can then figure out how to get it into the manifest.


Many Thanks

Jon


-
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: Make META-INF optional

2008-01-29 Thread John Coleman
Thanks, I was hoping to avoid assembly plugin because it seems to be added to a 
jar project. A direct zip plugin would make more sense, but that's not a maven 
standard.

John
 

 -Original Message-
 From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED] 
 Sent: 29 January 2008 09:44
 To: Maven Users List
 Subject: Re: Make META-INF optional
 
 Would it help to create a ZIP file with the maven assembly plugin[1]?
 
 regards,
 
 Stefan
 P.S.: I just saw, the assembly plugin can also create JARs - 
 so it's probably just what you need.
 
 [1] http://maven.apache.org/plugins/maven-assembly-plugin/
 
 John Coleman wrote:
  Hi,
 
  Is it possible to make a jar with no META-INF entry - I 
 just want to 
  create a jar to unpack with some files I need.
 
  TIA,
  John
 
  Eurobase International Limited and its subsidiaries 
 (Eurobase) are unable to exercise control over the content of 
 information in E-Mails. Any views and opinions expressed may 
 be personal to the sender and are not necessarily those of 
 Eurobase. Eurobase will not enter into any contractual 
 obligations in respect of any part of its business in any E-mail. 
 
  Privileged / confidential information may be contained in 
 this message and /or any attachments. This E-mail is intended 
 for the use of the addressee(s) only and may contain 
 confidential information. If you are not the / an intended 
 recipient, you are hereby notified that any use or 
 dissemination of this communication is strictly prohibited.  
 If you receive this transmission in error, please notify us 
 immediately, and then delete this E-mail. 
 
  Neither the sender nor Eurobase accepts any liability 
 whatsoever for any defects of any kind either in or arising 
 from this E-mail transmission. E-Mail transmission cannot be 
 guaranteed to be secure or error-free, as messages can be 
 intercepted, lost, corrupted, destroyed, contain viruses, or 
 arrive late or incomplete. Eurobase does not accept any 
 responsibility for viruses and it is your responsibility to 
 scan any attachments.
 
  Eurobase Systems Limited is the main trading company in the 
 Eurobase International Group; registered in England and Wales 
 as company number 02251162; registered address: Essex House, 
 2 County Place, Chelmsford, Essex CM2 0RE, UK.
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

 
 --
 best regards, Stefan Seidel software developer 
  VUB Printmedia GmbH Chopinstraße 4 
 D-04103 Leipzig Germany tel. +49
 (341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web. 
 www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim 
 Preuss Neudorf, Dr. Christian Preuss Neudorf
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



how to detect version conflicts?

2008-01-29 Thread torsten . reinhard
Hi, 

I´ve read about dependencyManagement, versions, version ranges and so on.
But still I have some questions:

Following example:

A1.0 references B1.0 
A1.0 references C1.0
B1.0 references C2.0

which version of C will be used (packed in a war for example) in this 
scenario, if A is a module of type war, ear or zip ?
how can I fail the build or trace at least a warning that there´s the same 
artifact, but in different versions?

thanx for any advice, 

torsten


Re: Make META-INF optional

2008-01-29 Thread VUB Stefan Seidel

Hi John,

no, the assembly plugin can also generate just one single zip file.
I use packaging _pom_ and this plugin def:
  plugin
   artifactIdmaven-assembly-plugin/artifactId
   executions
 execution
   phasepackage/phase
   goals
 goalsingle/goal
   /goals
 /execution
   /executions
   configuration
 descriptors
   descriptorsrc/main/assembly/upload.xml/descriptor
 /descriptors
   /configuration
 /plugin

On the other hand, there is an older maven zip plugin.

Stefan

John Coleman wrote:

Thanks, I was hoping to avoid assembly plugin because it seems to be added to a 
jar project. A direct zip plugin would make more sense, but that's not a maven 
standard.

John
 

  

-Original Message-
From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED] 
Sent: 29 January 2008 09:44

To: Maven Users List
Subject: Re: Make META-INF optional

Would it help to create a ZIP file with the maven assembly plugin[1]?

regards,

Stefan
P.S.: I just saw, the assembly plugin can also create JARs - 
so it's probably just what you need.


[1] http://maven.apache.org/plugins/maven-assembly-plugin/

John Coleman wrote:


Hi,

Is it possible to make a jar with no META-INF entry - I 
  
just want to 


create a jar to unpack with some files I need.

TIA,
John

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

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

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

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



  

-


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

  
  

--
best regards, Stefan Seidel software developer 
 VUB Printmedia GmbH Chopinstraße 4 
D-04103 Leipzig Germany tel. +49
(341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web. 
www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim 
Preuss Neudorf, Dr. Christian Preuss Neudorf


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





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

  


--
best regards, Stefan Seidel software developer  
VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel. +49 
(341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web. 
www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss 
Neudorf, Dr. Christian Preuss Neudorf


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



Dependency Order, src/test/resources not overriding src/main/resources

2008-01-29 Thread Andrew Seales
Hi,

I recently updated maven using mvn -U command and since yesterday
projects which have properties files of the same name in
src/test/resources and src/main/resources now no longer have the version
in src/test/resources taking precedence over the ones in
src/main/resources when running mvn test(for example database properties
files).

Is this an intentional change or is there a bug in a recent plugin version?

Thank you,
-- 
Andrew Seales

EDINA   tel: +44 (0) 131 650 3022
Edinburgh Universityfax: +44 (0) 131 650 3308
Causewayside House  url: http://edina.ac.uk
160 Causewaysideemail: [EMAIL PROTECTED]
Edinburgh EH9 1PR

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



How to specify local jars as dependencies?

2008-01-29 Thread Andy Grove

Hi,

I'm currently updating a code generator product to generate maven build
scripts as an alternative to Ant build scripts. Most of the dependencies in
the generated java code are open source jars and I can use the maven
dependency tags for those. However, the generated code also has
dependencies on commercial jars (such as Oracle JDBC drivers) that can not
go into a public maven repository and that I cannot distribute with my
product. The user will already have these jars locally.

How can I tell maven to put these local jars on the classpath when compiling
java code without using the dependency mechanism? I don't want to force
users to set up their own local repositories or to have to run maven
commands to install the jars in a local repository.

Thanks,

Andy.
-- 
View this message in context: 
http://www.nabble.com/How-to-specify-local-jars-as-dependencies--tp15157776s177p15157776.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: How to specify local jars as dependencies?

2008-01-29 Thread Jeff MAURY
Try something like:

dependency
  groupIdcom.sun/groupId
  artifactIdtools/artifactId
  version${java.version}/version
  scopesystem/scope
  systemPath${java.home}/../lib/tools.jar/systemPath
/dependency

Jeff

On Jan 29, 2008 1:13 PM, Simon Kitching [EMAIL PROTECTED] wrote:

  Andy Grove [EMAIL PROTECTED] schrieb:
 
  Hi,
 
  I'm currently updating a code generator product to generate maven build
  scripts as an alternative to Ant build scripts. Most of the dependencies
 in
  the generated java code are open source jars and I can use the maven
  dependency tags for those. However, the generated code also has
  dependencies on commercial jars (such as Oracle JDBC drivers) that can
 not
  go into a public maven repository and that I cannot distribute with my
  product. The user will already have these jars locally.
 
  How can I tell maven to put these local jars on the classpath when
 compiling
  java code without using the dependency mechanism? I don't want to force
  users to set up their own local repositories or to have to run maven
  commands to install the jars in a local repository.

 Sounds like a job for
  scopesystem/scope

 Regards, Simon

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




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

Miossec (2006)

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


RE: Make META-INF optional

2008-01-29 Thread Simon Kitching
That can be fixed by using the maven-buildhelper-plugin, which can attach any 
file to maven's list-of-deployable-files.

http://mojo.codehaus.org/build-helper-maven-plugin/index.html

 John Coleman [EMAIL PROTECTED] schrieb:
 Ah, this does not work, since the zip will not deploy to the m2 repo in the 
 deploy phase.
  
 
  -Original Message-
  From: John Coleman [mailto:[EMAIL PROTECTED] 
  Sent: 29 January 2008 11:16
  To: Maven Users List
  Subject: RE: Make META-INF optional
  
  Specifying pom packaging seems like an abuse, but if it 
  works, then great!
  
  Thanks,
  John
   
  
   -Original Message-
   From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED]
   Sent: 29 January 2008 11:05
   To: Maven Users List
   Subject: Re: Make META-INF optional
   
   Hi John,
   
   no, the assembly plugin can also generate just one single zip file.
   I use packaging _pom_ and this plugin def:
  plugin
   artifactIdmaven-assembly-plugin/artifactId
   executions
 execution
   phasepackage/phase
   goals
 goalsingle/goal
   /goals
 /execution
   /executions
   configuration
 descriptors
   descriptorsrc/main/assembly/upload.xml/descriptor
 /descriptors
   /configuration
 /plugin
   
   On the other hand, there is an older maven zip plugin.
   
   Stefan
   
   John Coleman wrote:
Thanks, I was hoping to avoid assembly plugin because it
   seems to be added to a jar project. A direct zip plugin would make 
   more sense, but that's not a maven standard.
   
John
 
   
  
-Original Message-
From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED]
Sent: 29 January 2008 09:44
To: Maven Users List
Subject: Re: Make META-INF optional
   
Would it help to create a ZIP file with the maven assembly
   plugin[1]?
   
regards,
   
Stefan
P.S.: I just saw, the assembly plugin can also create JARs
   - so it's
probably just what you need.
   
[1] http://maven.apache.org/plugins/maven-assembly-plugin/
   
John Coleman wrote:

Hi,
   
Is it possible to make a jar with no META-INF entry - I
  
just want to

create a jar to unpack with some files I need.
   
TIA,
John
   
Eurobase International Limited and its subsidiaries
  
(Eurobase) are unable to exercise control over the content of 
information in E-Mails. Any views and opinions expressed may be 
personal to the sender and are not necessarily those of Eurobase.
Eurobase will not enter into any contractual obligations
   in respect
of any part of its business in any E-mail.

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

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

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

   
  

   
  -

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
  
  
--
best regards, Stefan Seidel software developer 
 VUB Printmedia GmbH Chopinstraße 4
D-04103 Leipzig Germany tel. +49
(341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. 
   [EMAIL PROTECTED] web. 
www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. 
  Achim Preuss 
Neudorf, Dr. Christian Preuss Neudorf
   

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

   

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

RE: Make META-INF optional

2008-01-29 Thread John Coleman
Ah, this does not work, since the zip will not deploy to the m2 repo in the 
deploy phase.
 

 -Original Message-
 From: John Coleman [mailto:[EMAIL PROTECTED] 
 Sent: 29 January 2008 11:16
 To: Maven Users List
 Subject: RE: Make META-INF optional
 
 Specifying pom packaging seems like an abuse, but if it 
 works, then great!
 
 Thanks,
 John
  
 
  -Original Message-
  From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED]
  Sent: 29 January 2008 11:05
  To: Maven Users List
  Subject: Re: Make META-INF optional
  
  Hi John,
  
  no, the assembly plugin can also generate just one single zip file.
  I use packaging _pom_ and this plugin def:
 plugin
  artifactIdmaven-assembly-plugin/artifactId
  executions
execution
  phasepackage/phase
  goals
goalsingle/goal
  /goals
/execution
  /executions
  configuration
descriptors
  descriptorsrc/main/assembly/upload.xml/descriptor
/descriptors
  /configuration
/plugin
  
  On the other hand, there is an older maven zip plugin.
  
  Stefan
  
  John Coleman wrote:
   Thanks, I was hoping to avoid assembly plugin because it
  seems to be added to a jar project. A direct zip plugin would make 
  more sense, but that's not a maven standard.
  
   John

  
 
   -Original Message-
   From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED]
   Sent: 29 January 2008 09:44
   To: Maven Users List
   Subject: Re: Make META-INF optional
  
   Would it help to create a ZIP file with the maven assembly
  plugin[1]?
  
   regards,
  
   Stefan
   P.S.: I just saw, the assembly plugin can also create JARs
  - so it's
   probably just what you need.
  
   [1] http://maven.apache.org/plugins/maven-assembly-plugin/
  
   John Coleman wrote:
   
   Hi,
  
   Is it possible to make a jar with no META-INF entry - I
 
   just want to
   
   create a jar to unpack with some files I need.
  
   TIA,
   John
  
   Eurobase International Limited and its subsidiaries
 
   (Eurobase) are unable to exercise control over the content of 
   information in E-Mails. Any views and opinions expressed may be 
   personal to the sender and are not necessarily those of Eurobase.
   Eurobase will not enter into any contractual obligations
  in respect
   of any part of its business in any E-mail.
   
   Privileged / confidential information may be contained in
 
   this message and /or any attachments. This E-mail is
  intended for the
   use of the addressee(s) only and may contain confidential 
   information. If you are not the / an intended recipient, you are 
   hereby notified that any use or dissemination of this
  communication
   is strictly prohibited.
   If you receive this transmission in error, please notify us 
   immediately, and then delete this E-mail.
   
   Neither the sender nor Eurobase accepts any liability
 
   whatsoever for any defects of any kind either in or
  arising from this
   E-mail transmission. E-Mail transmission cannot be
  guaranteed to be
   secure or error-free, as messages can be intercepted, lost, 
   corrupted, destroyed, contain viruses, or arrive late or
  incomplete. 
   Eurobase does not accept any responsibility for viruses 
 and it is 
   your responsibility to scan any attachments.
   
   Eurobase Systems Limited is the main trading company in the
 
   Eurobase International Group; registered in England and Wales as 
   company number 02251162; registered address: Essex House,
   2 County Place, Chelmsford, Essex CM2 0RE, UK.
   
  
 
   
  
 -
   
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
   --
   best regards, Stefan Seidel software developer 
    VUB Printmedia GmbH Chopinstraße 4
   D-04103 Leipzig Germany tel. +49
   (341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. 
  [EMAIL PROTECTED] web. 
   www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. 
 Achim Preuss 
   Neudorf, Dr. Christian Preuss Neudorf
  
   
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
   
  
   
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
  
  --
  best regards, Stefan Seidel software developer 
   VUB Printmedia GmbH Chopinstraße 4
  D-04103 Leipzig Germany tel. +49
  (341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. 
 [EMAIL PROTECTED] web. 
  www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss 
  Neudorf, Dr. Christian Preuss Neudorf
  
  
 

double build

2008-01-29 Thread supareno

hello,

i need to do a double compilation
- one for java 6
- one for java 5 (with specifics jars)

for the moment, i have two projects with differents POMs.
is it possible to do this with  single POM file?
can i merge them with two 'build' tag??
is anybody has ever done this?


regards
supareno

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



Re: Managing WebSphere with Maven

2008-01-29 Thread Michael Meyer

Hi,
for our websphere 6 project we wrote a maven plugin that performs the 
following steps:


a) creates a jacl scripts from a template[1]
b) copies jacl script + ear file to a temporary folder on the websphere 
server
c) executes the following command on the server: ./wsadmin.sh -f 
was.deploy.jacl


For this to work you need ssh access to the server. This works quite 
well. But I still hope that at one point the cargo-maven2-plugin will 
officialy support websphere.

michael

[1] was.deploy.jacl template:

proc deploy { } {

#-
# Globals
#-
  global AdminConfig
  global AdminControl
  global AdminApp

#-
# Deploy ear

#-
  $AdminApp install $binaryPath {-cell $cellName -node $nodeName 
-server $serverName -update -appname $appName  }

  $AdminConfig save

}

#---
# Main
#---
deploy

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



RE: Make META-INF optional

2008-01-29 Thread John Coleman
Specifying pom packaging seems like an abuse, but if it works, then great!

Thanks,
John
 

 -Original Message-
 From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED] 
 Sent: 29 January 2008 11:05
 To: Maven Users List
 Subject: Re: Make META-INF optional
 
 Hi John,
 
 no, the assembly plugin can also generate just one single zip file.
 I use packaging _pom_ and this plugin def:
plugin
 artifactIdmaven-assembly-plugin/artifactId
 executions
   execution
 phasepackage/phase
 goals
   goalsingle/goal
 /goals
   /execution
 /executions
 configuration
   descriptors
 descriptorsrc/main/assembly/upload.xml/descriptor
   /descriptors
 /configuration
   /plugin
 
 On the other hand, there is an older maven zip plugin.
 
 Stefan
 
 John Coleman wrote:
  Thanks, I was hoping to avoid assembly plugin because it 
 seems to be added to a jar project. A direct zip plugin would 
 make more sense, but that's not a maven standard.
 
  John
   
 

  -Original Message-
  From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED]
  Sent: 29 January 2008 09:44
  To: Maven Users List
  Subject: Re: Make META-INF optional
 
  Would it help to create a ZIP file with the maven assembly 
 plugin[1]?
 
  regards,
 
  Stefan
  P.S.: I just saw, the assembly plugin can also create JARs 
 - so it's 
  probably just what you need.
 
  [1] http://maven.apache.org/plugins/maven-assembly-plugin/
 
  John Coleman wrote:
  
  Hi,
 
  Is it possible to make a jar with no META-INF entry - I

  just want to
  
  create a jar to unpack with some files I need.
 
  TIA,
  John
 
  Eurobase International Limited and its subsidiaries

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

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

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

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

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


  --
  best regards, Stefan Seidel software developer 
   VUB Printmedia GmbH Chopinstraße 4
  D-04103 Leipzig Germany tel. +49
  (341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. 
 [EMAIL PROTECTED] web. 
  www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss 
  Neudorf, Dr. Christian Preuss Neudorf
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

 
 --
 best regards, Stefan Seidel software developer 
  VUB Printmedia GmbH Chopinstraße 4 
 D-04103 Leipzig Germany tel. +49
 (341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web. 
 www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim 
 Preuss Neudorf, Dr. Christian Preuss Neudorf
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



Re: How to specify local jars as dependencies?

2008-01-29 Thread Angel Sotirov

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andy Grove wrote:
| Hi,
|
| I'm currently updating a code generator product to generate maven build
| scripts as an alternative to Ant build scripts. Most of the 
dependencies in

| the generated java code are open source jars and I can use the maven
| dependency tags for those. However, the generated code also has
| dependencies on commercial jars (such as Oracle JDBC drivers) that can not
| go into a public maven repository and that I cannot distribute with my
| product. The user will already have these jars locally.
|
| How can I tell maven to put these local jars on the classpath when 
compiling

| java code without using the dependency mechanism? I don't want to force
| users to set up their own local repositories or to have to run maven
| commands to install the jars in a local repository.
|
| Thanks,
|
| Andy.
Greetings,


~We are doing almost the same thing using the dependency mechanism 
system that way the artifact is not looked up in the repository, instead 
it needs to be included in the runtime class path:


dependencies
~groupIdorg.package/groupId
~artifactIdcomercial-jar/artifactId
~version9.0/version   
~scopesystem/scope

/dependencies

here is a complete reference for the dependency mechanism:
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html


Hope this helps,

Angel.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.8 (GNU/Linux)

iEYEARECAAYFAkefGdgACgkQhgSIDFxSFd3TfwCgrCO5xCXitAhQ9IynbUMjp419
B4AAn0HIYWFmdbPHCSKmiocFAf6bH4TT
=rcJe
-END PGP SIGNATURE-


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



Re: Good program, imperfect documentation

2008-01-29 Thread Lukas Theussl

Relax, lean back and quietly read point #1 again:

Extract the distribution archive to the directory you wish to install 
Maven 2.0.8. These instructions assume you chose 
/usr/local/apache-maven-2.0.8. The directory apache-maven-2.0.8 will be 
created from the archive.


This means you should extract the tar/zip into /usr/local/ (pretty 
standard for linux people...), I guess you extracted it into 
/usr/local/apache-maven-2.0.8/ ?


-Lukas


Johnny wrote:

http://maven.apache.org/download.html
says at the page bottom
Unix-based Operating Systems (Linux, Solaris and Mac OS X)

   1. Extract the distribution archive to the directory you wish to install
Maven 2.0.8. These instructions assume you chose /usr/local/apache-maven-2.0.8
. The directory apache-maven-2.0.8 will be created from the archive.
   2. Add the bin directory to your path, eg. export
PATH=/usr/local/apache-maven-2.0.8/bin:$PATH
   3. Make sure that JAVA_HOME is set to the location of your JDK, eg. export
JAVA_HOME=/usr/java/jdk1.5.0_02
   4. Run mvn --version to verify that it is correctly installed.
#4.  Did not work.  It took me hours to see why.
#2.  Had to be changed to this 2. Add the bin directory to your path, eg.
export PATH=/usr/local/apache-maven-2.0.8/apache-maven-2.0.8/bin:$PATH
I never cease to be amazed that Linux people will work for months to get
software right then will not spend a few minutes to make sure the documentation
is right.  However I commend you for at least giving 4 lines with some cut and
paste commands.  This is so much better than prose.  At least the person who is
trying to use it for the first can see what was trying to be accomplished and
how instead of guessing at English intrepretations.

Thanks for the program.  I hope the rest of the using it is easier.
Johnny Stovall



Objective Oriented Unification Commitment.  We all have gifts and limitations.  
I'm using my gifts to help others overcome limitations.  Will you do the same 
for me?

-
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: double build

2008-01-29 Thread Erez Nahir
Hi supareno,

Maven profile is your friend in this case, see
http://maven.apache.org/guides/introduction/introduction-to-profiles.html
search
for jdk to see how you can activate a profile based on JDK version.

Erez.

On Jan 29, 2008 1:50 PM, supareno [EMAIL PROTECTED] wrote:

 hello,

 i need to do a double compilation
 - one for java 6
 - one for java 5 (with specifics jars)

 for the moment, i have two projects with differents POMs.
 is it possible to do this with  single POM file?
 can i merge them with two 'build' tag??
 is anybody has ever done this?


 regards
 supareno

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




Apache Directory Studio migration to Maven

2008-01-29 Thread Pierre-Arnaud Marcelot
Hi,

We (the Apache Directory Studio Team) are currently working on switching our
build system from Ant+Ivy to Maven to unify the whole build system of the
Directory project (as we were the only subproject to use Ant+Ivy, while the
others were using Maven for a while now).

We've faced a few issues that we're starting to fix, one by one... We have a
few questions for the Maven Gurus on how to handle things well.

Apache Directory Studio is an Eclipse based LDAP Browser and Directory
client application that works as a standalone Eclipse RCP application and/or
can be integrated into a existing Eclipse installation.

This is nearly our last issue: the Eclipse dependencies. In our Ant+Ivy
build system we are using an internal repository (stored in SVN) with our
Eclipse (and other) dependencies in it. With Maven we wanted to get rid of
this internal repository, which increase dramatically the time when doing a
checkout of the source...

So we created our own Directory Studio Maven repository with all the
dependencies that are not already in the standard repositories in use at
the ASF. We're currently hosting this repository on a private space at
people.apache.org
(http://people.apache.org/~felixk/studio-eclipse-m2/http://people.apache.org/%7Efelixk/studio-eclipse-m2/
).
We fear this is not an ideal situation. The people.apache.org server is not
the most appropriate server for this kind of need.
Do you have a recommendation on where to store this repository ?

We recently saw that some Eclipse packages got synced in Maven repositories,
but they're unfortunately not the version we use.
Is it possible to have the version we use synced, and, if yes, how ?
Having our Eclipse dependencies stored in the standard repositories would
allow us to lighten the weight of our own repository, and could also be a
benefit to other projects which depend on the same Eclipse jars as our
project.

Thanks,
Pierre-Arnaud Marcelot

PS: I CC'ed this mail to our Directory dev list.


Re: how to detect version conflicts?

2008-01-29 Thread Simon Kitching
 [EMAIL PROTECTED] schrieb:
 Hi, 
 
 I´ve read about dependencyManagement, versions, version ranges and so on.
 But still I have some questions:
 
 Following example:
 
 A1.0 references B1.0 
 A1.0 references C1.0
 B1.0 references C2.0
 
 which version of C will be used (packed in a war for example) in this 
 scenario, if A is a module of type war, ear or zip ?
 how can I fail the build or trace at least a warning that there´s the same 
 artifact, but in different versions?

A version declaration like
  version1.1/version
effectively says I don't really care what version of this dependency is used, 
but I have a mild preference for version 1.1.

When building module A, if all references to a library use this form, then 
Maven will use the declaration closest to pom A to select the actual version 
used.

So in your example, if all the declarations are of the above form, then when 
compiling module A, C1.0 will be used because it is referenced directly from 
the pom for module A.

However the form [x.y] can be used to specify that only that version is 
acceptable. So if B declares its dependency on C as
  version[2.0]/version
then I *believe* that when compiling A, C2.0 will be used (because A has used 
the form that says it doesn't really care).

If A declares
  version[1.0]/version
but B declares
  version[2.0]/version
then an error is reported and the build fails, because there is no version that 
can satisfy them both.

In general, version dependencies should be specified in the least-constrained 
form possible. Certainly *libraries* should avoid [x.y] type constraints if 
possible, as it makes it very difficult to combine that lib with anything else.

In your case, if A is actually an application (not a library) then specifying 
dependencies with [x.y] seems to be what you want; you will get exactly that 
version, or the build will fail if a dependency declares that it is not 
compatible with that version.

But if A is a library, then don't even try; libraries have no right to force 
specific versions on users of that library. The most they should do is declare 
minimum supported versions, with something like:
  version[1.3,]/version

You may find the commands
   mvn dependency:list
   mvn dependency:tree
useful in tracking what depends on what.

NB: I'm no great expert on this area; double check before trusting my comments 
on this :-)

Regards, Simon

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



Re: How to specify local jars as dependencies?

2008-01-29 Thread Wendy Smoak
On Jan 29, 2008 6:53 AM, Martin Gainty [EMAIL PROTECTED] wrote:

 I've been looking for a way to specify a location that is guaranteed to
 contain
 PUBLICLY ACCESSIBLE LOCATION for ALL MAVEN2 PLUGINS

 Failing that.. is there a way to gain access to the plugins individually so
 we can d/l them to local drives ?

Might want to start a new thread, this seems unrelated to the OP's
need to refer to dependencies w/o installing them in the local repo.

The publicly accessible location is the central repo:
http://repo1.maven.org/maven2, but I'm sure you knew that already.
You can't guarantee ALL -- people are free to set up their own
repos.  OpenSymphony comes to mind, I don't think all of their stuff
is in central.

What is the problem you're trying to solve?

-- 
Wendy

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



RE: pom.xml jar scope

2008-01-29 Thread faisalloe


NOp it didn't worked out




nicklist wrote:
 
 Try with scope 'provided'.
 
 See [1] for a explanation of the different scopes.
 
 Hth,
 
 Nick Stolwijk
 
 [1]
 http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
 
 
 -Original Message-
 From: faisalloe [mailto:[EMAIL PROTECTED]
 Sent: Mon 1/28/2008 10:08 AM
 To: users@maven.apache.org
 Subject: pom.xml jar scope
  
 
 i have a problem with pom file.
 
 i have servlet.jar which is already available in tomcat lib folder, i want
 to use this jar only to compile and produce class files but not in
 project's
 lib folder.
 
 i think there is tag named
 scopecompile/scope
 but it didn't worked it still copy jar file into lib folder.
 can any one i prevent copying jar file into lib folder and only to use for
 compilation!
 -- 
 View this message in context:
 http://www.nabble.com/pom.xml-jar-scope-tp15131075s177p15131075.html
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/pom.xml-jar-scope-tp15131075s177p15159796.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: probelm with installation of jpa-maven-archetype

2008-01-29 Thread Wayne Fay
Also, this is very explicitly mentioned on the webpage:
Don't forget to include the version of your archetype (if you don't
include the version, you archetype creation may fail with a message
that version:RELEASE was not found)

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

You might want to ask the provider of the jpa-maven-plugin to update
his documentation, to include the artifactVersion element in the call
to mvn.

Wayne

On 1/29/08, Wayne Fay [EMAIL PROTECTED] wrote:
 You failed to include:
 -DarchetypeVersion=archetype-version

 Try again, adding that parameter, and it will probably work.

 Wayne

 On 1/29/08, Vikas Hazrati [EMAIL PROTECTED] wrote:
  Hi,
 
  I am using the jpa-maven-archetype for generating my project structure.
 
  If I use the following command the execution is fine and I get my projet
  structure
 
  mvn archetype:create \
   -DgroupId=com.my-company.my-project \
   -DartifactId=my-project-domain \
   -DpackageName=com.company.project.domain \
   -DarchetypeGroupId=com.rfc.maven.archetypes \
   -DarchetypeArtifactId=jpa-maven-archetype  \
   -DremoteRepositories=http://maven.rodcoffin.com/repo
 
 
  However if I try to install the jpa-maven-archetype in my local repository 
  using the command
 
  mvn install:install-file -DgroupId=com.rfc.maven.archetypes 
  -DartifactId=jpa-maven-archetype -Dversion=1.0.0 -Dpackaging=jar 
  -Dfile=/home/vhazrati/downloads/jpa-maven-archetype-1.0.0.jar
 
  and then try to create the project structure with
 
  mvn archetype:create \
   -DgroupId=com.my-company.my-project \
   -DartifactId=my-project-domain \
   -DpackageName=com.company.project.domain \
   -DarchetypeGroupId=com.rfc.maven.archetypes \
   -DarchetypeArtifactId=jpa-maven-archetype
 
  I get
 
  [INFO] 
  
  [ERROR] BUILD ERROR
  [INFO] 
  
  [INFO] Error creating from archetype
 
  Embedded error: Archetype does not exist.
  Unable to determine the release version
 
  Try downloading the file manually from the project website.
 
  Then, install it using the command:
 mvn install:install-file -DgroupId=com.rfc.maven.archetypes 
  -DartifactId=jpa-maven-archetype \
 -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file
  Alternatively, if you host your own repository you can deploy the file 
  there: mvn deploy:deploy-file -DgroupId=com.rfc.maven.archetypes 
  -DartifactId=jpa-maven-archetype \
 -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file \
  -Durl=[url] -DrepositoryId=[id]
 
  What am I doing wrong?
 
  Regards | Vikas
 
 
 
  -
  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]



can maven run java program using dependence artifact information as classpath?

2008-01-29 Thread Rex Huang
I just give mainclass and parameters information,
then maven runs the mainclass and use dependence artifact information as
classpath.

Can this work?

BR//Rex


Re: probelm with installation of jpa-maven-archetype

2008-01-29 Thread Wayne Fay
You failed to include:
-DarchetypeVersion=archetype-version

Try again, adding that parameter, and it will probably work.

Wayne

On 1/29/08, Vikas Hazrati [EMAIL PROTECTED] wrote:
 Hi,

 I am using the jpa-maven-archetype for generating my project structure.

 If I use the following command the execution is fine and I get my projet
 structure

 mvn archetype:create \
  -DgroupId=com.my-company.my-project \
  -DartifactId=my-project-domain \
  -DpackageName=com.company.project.domain \
  -DarchetypeGroupId=com.rfc.maven.archetypes \
  -DarchetypeArtifactId=jpa-maven-archetype  \
  -DremoteRepositories=http://maven.rodcoffin.com/repo


 However if I try to install the jpa-maven-archetype in my local repository 
 using the command

 mvn install:install-file -DgroupId=com.rfc.maven.archetypes 
 -DartifactId=jpa-maven-archetype -Dversion=1.0.0 -Dpackaging=jar 
 -Dfile=/home/vhazrati/downloads/jpa-maven-archetype-1.0.0.jar

 and then try to create the project structure with

 mvn archetype:create \
  -DgroupId=com.my-company.my-project \
  -DartifactId=my-project-domain \
  -DpackageName=com.company.project.domain \
  -DarchetypeGroupId=com.rfc.maven.archetypes \
  -DarchetypeArtifactId=jpa-maven-archetype

 I get

 [INFO] 
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] Error creating from archetype

 Embedded error: Archetype does not exist.
 Unable to determine the release version

 Try downloading the file manually from the project website.

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

 What am I doing wrong?

 Regards | Vikas



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



Conflicting Jar Names

2008-01-29 Thread Steve Found

Hi all,

I have two  separate systems that I build using maven.

One has groupId:com.volantis.synergetics artifactId:repository-api  
version:5.0-SNAPSHOT.  This system consists of around 50 artifacts.


The second has groupId:com.volantis.mcs  artifactId:repository-api  
version:5.0-SNAPSHOT. This system consists of around 150 artifacts.


When I come to build an installer, the jar files are all copied into a 
packaging directory, but as you can probably see, both jar files will be 
called repository-api-5.0-SNAPSHOT.jar. Consequently, the second jar 
will overwrite the first.


Now I could go and change all the artifactId's for this, but given that 
there are many more than just 2 systems in the project this would be 
very time consuming and prone to error.


What I want to do therefore is either :

1. Be able to set the name of the jar file when 'mvn install' installs 
the generated jar the repository so that the jar files do not conflict 
when the installer resolves it's dependancies. I tried setting the name 
of the generated jar from each subsystem pom, but this was lost when the 
jar was installed.


2. Be able to change the name of the jar when the dependancy is resolved 
but without adding each and every dependancy to the installer POM. For 
example... can I prepend volantis-synergetics- to every jar file that 
has a groupId of com.volantis.synergetics ? In the above example then I 
would get volantis-synergetics-repository-api.5.0-SNAPSHOT.jar and 
volantis-mcs-repository-api.5.0-SNAPSHOT.jar.


Is there any way I can achieve these things through the install or 
dependancy plugins ?


Regards,

  Steve.

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



Re: update/creation of maven-metadata.xml file

2008-01-29 Thread Tom Huybrechts
On Jan 29, 2008 5:32 PM, Wendy Smoak [EMAIL PROTECTED] wrote:

 On Jan 26, 2008 4:20 PM, nadias [EMAIL PROTECTED] wrote:
 
  Will this work deploy-file or just deploy?  I am working with
 deploy-file but
  it is not updating the metadata even if I specify this parameter.

 The updateReleaseInfo parameter is not listed for the deploy-file goal.
  *
 http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html

 Vote for it!  http://jira.codehaus.org/browse/MDEPLOY-52 :)

 This seems to make it impossible to deploy a working plugin with
 deploy:deploy-file.  The 'latest' and 'release' elements seem to be
 required, or Maven complains that it can't find the plugin at all. :(


If you specify an explicit version in your POM, I would think that Maven
always finds it ?

Tom



 --
 Wendy

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




Re: update/creation of maven-metadata.xml file

2008-01-29 Thread Tom Huybrechts
On Jan 29, 2008 5:52 PM, Wendy Smoak [EMAIL PROTECTED] wrote:

 On Jan 29, 2008 9:44 AM, Tom Huybrechts [EMAIL PROTECTED] wrote:

  If you specify an explicit version in your POM, I would think that Maven
  always finds it ?

 Probably, (and that's definitely a best practice,) but not everything
 uses a pom.

 'mvn archetype:create' comes to mind, for example... as well as 'mvn
 deploy:deploy-file' itself.


It's ugly, but mvn
org.apache.maven.plugins:maven-archetype-plugin:version:create
would work here too.

Tom



 Some corporate environments require approvals and manual deployment of
 every artifact into their internal repos to tightly control what is
 available.  I don't see a way to deploy a plugin with the correct
 metadata until MDEPLOY-52 is fixed.

 --
 Wendy

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




Re: Dependency Order, src/test/resources not overriding src/main/resources

2008-01-29 Thread Andrew Seales
 I recently updated maven using mvn -U command and since yesterday
   projects which have properties files of the same name in
   src/test/resources and src/main/resources now no longer have the
version
   in src/test/resources taking precedence over the ones in
   src/main/resources when running mvn test(for example database
properties
   files).
  
   Is this an intentional change or is there a bug in a recent plugin
version?

  What version of Maven are you using?  I thought this was fixed in
  2.0.8... http://maven.apache.org/release-notes.html

Thanks that fixed it. I was using version 2.0.4. It is odd since 2.0.4
worked happily last week.

Andrew

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



Re: Apache Directory Studio migration to Maven

2008-01-29 Thread Pierre-Arnaud Marcelot
Hi Jeff,

Thanks for your answer.

We tried this plugin some time ago, but it did not fit our needs.
We wanted to be able to build our application without having Eclipse
installed on the machine, as well as be able to build all our distributions
(Mac OS X, Linux, Windows) from one single machine (whether it's running Mac
OS X, Linux or Windows).

So we wrote our own Studio Maven Plugin which helps us to resolve our
dependencies, compile our Eclipse plugins, and package our RCP application
with the needed plugins and features.
But, you're right, it requires a lot of synchronization of pom.xml and
MANIFEST.MF files.

Thanks,
Pierre-Arnaud

On Jan 29, 2008 4:10 PM, Jeff MAURY [EMAIL PROTECTED] wrote:

 My experience with Eclipse plugins is not to use a Maven repository. The
 reason for that is because Eclipse uses its own internal way of resolving
 the dependencies for Eclipse plugins (using your Eclipse installation or
 your workspace), it will require you to synchronize your MANIFEST.MF and
 you
 pom.xml manually.
 So the solution I use is based on the eclipse plugin from CodeHaus (
 http://mojo.codehaus.org/pde-maven-plugin) which runs the standard build
 scripts from Eclipse. The pros of this solution is that you don't need to
 synchronize your MANIFEST.MF and you pom.xml, the cons is that your pom is
 almost empty and not representative in terms of dependencies.

 Jeff


 On Jan 29, 2008 3:52 PM, Pierre-Arnaud Marcelot [EMAIL PROTECTED] wrote:

  Hi,
 
  We (the Apache Directory Studio Team) are currently working on switching
  our
  build system from Ant+Ivy to Maven to unify the whole build system of
 the
  Directory project (as we were the only subproject to use Ant+Ivy, while
  the
  others were using Maven for a while now).
 
  We've faced a few issues that we're starting to fix, one by one... We
 have
  a
  few questions for the Maven Gurus on how to handle things well.
 
  Apache Directory Studio is an Eclipse based LDAP Browser and Directory
  client application that works as a standalone Eclipse RCP application
  and/or
  can be integrated into a existing Eclipse installation.
 
  This is nearly our last issue: the Eclipse dependencies. In our Ant+Ivy
  build system we are using an internal repository (stored in SVN) with
 our
  Eclipse (and other) dependencies in it. With Maven we wanted to get rid
 of
  this internal repository, which increase dramatically the time when
 doing
  a
  checkout of the source...
 
  So we created our own Directory Studio Maven repository with all the
  dependencies that are not already in the standard repositories in use
 at
  the ASF. We're currently hosting this repository on a private space at
  people.apache.org
  (http://people.apache.org/~felixk/studio-eclipse-m2/http://people.apache.org/%7Efelixk/studio-eclipse-m2/
 http://people.apache.org/%7Efelixk/studio-eclipse-m2/
  http://people.apache.org/%7Efelixk/studio-eclipse-m2/
  ).
  We fear this is not an ideal situation. The people.apache.org server is
  not
  the most appropriate server for this kind of need.
  Do you have a recommendation on where to store this repository ?
 
  We recently saw that some Eclipse packages got synced in Maven
  repositories,
  but they're unfortunately not the version we use.
  Is it possible to have the version we use synced, and, if yes, how ?
  Having our Eclipse dependencies stored in the standard repositories
  would
  allow us to lighten the weight of our own repository, and could also be
 a
  benefit to other projects which depend on the same Eclipse jars as our
  project.
 
  Thanks,
  Pierre-Arnaud Marcelot
 
  PS: I CC'ed this mail to our Directory dev list.
 



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

 Miossec (2006)

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



Re: Apache Directory Studio migration to Maven

2008-01-29 Thread Jeff MAURY
My experience with Eclipse plugins is not to use a Maven repository. The
reason for that is because Eclipse uses its own internal way of resolving
the dependencies for Eclipse plugins (using your Eclipse installation or
your workspace), it will require you to synchronize your MANIFEST.MF and you
pom.xml manually.
So the solution I use is based on the eclipse plugin from CodeHaus (
http://mojo.codehaus.org/pde-maven-plugin) which runs the standard build
scripts from Eclipse. The pros of this solution is that you don't need to
synchronize your MANIFEST.MF and you pom.xml, the cons is that your pom is
almost empty and not representative in terms of dependencies.

Jeff


On Jan 29, 2008 3:52 PM, Pierre-Arnaud Marcelot [EMAIL PROTECTED] wrote:

 Hi,

 We (the Apache Directory Studio Team) are currently working on switching
 our
 build system from Ant+Ivy to Maven to unify the whole build system of the
 Directory project (as we were the only subproject to use Ant+Ivy, while
 the
 others were using Maven for a while now).

 We've faced a few issues that we're starting to fix, one by one... We have
 a
 few questions for the Maven Gurus on how to handle things well.

 Apache Directory Studio is an Eclipse based LDAP Browser and Directory
 client application that works as a standalone Eclipse RCP application
 and/or
 can be integrated into a existing Eclipse installation.

 This is nearly our last issue: the Eclipse dependencies. In our Ant+Ivy
 build system we are using an internal repository (stored in SVN) with our
 Eclipse (and other) dependencies in it. With Maven we wanted to get rid of
 this internal repository, which increase dramatically the time when doing
 a
 checkout of the source...

 So we created our own Directory Studio Maven repository with all the
 dependencies that are not already in the standard repositories in use at
 the ASF. We're currently hosting this repository on a private space at
 people.apache.org
 (http://people.apache.org/~felixk/studio-eclipse-m2/http://people.apache.org/%7Efelixk/studio-eclipse-m2/
 http://people.apache.org/%7Efelixk/studio-eclipse-m2/
 ).
 We fear this is not an ideal situation. The people.apache.org server is
 not
 the most appropriate server for this kind of need.
 Do you have a recommendation on where to store this repository ?

 We recently saw that some Eclipse packages got synced in Maven
 repositories,
 but they're unfortunately not the version we use.
 Is it possible to have the version we use synced, and, if yes, how ?
 Having our Eclipse dependencies stored in the standard repositories
 would
 allow us to lighten the weight of our own repository, and could also be a
 benefit to other projects which depend on the same Eclipse jars as our
 project.

 Thanks,
 Pierre-Arnaud Marcelot

 PS: I CC'ed this mail to our Directory dev list.




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

Miossec (2006)

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


Re: Dependency Order, src/test/resources not overriding src/main/resources

2008-01-29 Thread Ken Liu
I experienced the same problem with Maven 2.0.4 and Surefire 2.3 and 2.4.  I
solved the problem by reverting the Surefire plugin version back to 2.2.

I believe the latest version of Maven 2.0.8 and Surefire 2.3 and 2.4 do not
have this problem.

Ken


On 1/29/08, Andrew Seales [EMAIL PROTECTED] wrote:

 Hi,

 I recently updated maven using mvn -U command and since yesterday
 projects which have properties files of the same name in
 src/test/resources and src/main/resources now no longer have the version
 in src/test/resources taking precedence over the ones in
 src/main/resources when running mvn test(for example database properties
 files).

 Is this an intentional change or is there a bug in a recent plugin
 version?

 Thank you,
 --
 Andrew Seales

 EDINA   tel: +44 (0) 131 650 3022
 Edinburgh Universityfax: +44 (0) 131 650 3308
 Causewayside House  url: http://edina.ac.uk
 160 Causewaysideemail: [EMAIL PROTECTED]
 Edinburgh EH9 1PR

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




Re: Make META-INF optional

2008-01-29 Thread VUB Stefan Seidel

Did you try to declare the dependency as type zip?

Stefan

John Coleman wrote:

Okay, I can now deploy the zip artifact to my repo - but how to I explode that 
into another maven project using the dependecy unpack plugin - this seems to 
expect a jar.

TIA
John
 

  

-Original Message-
From: Simon Kitching [mailto:[EMAIL PROTECTED] 
Sent: 29 January 2008 12:12

To: Maven Users List
Subject: RE: Make META-INF optional

That can be fixed by using the maven-buildhelper-plugin, 
which can attach any file to maven's list-of-deployable-files.


http://mojo.codehaus.org/build-helper-maven-plugin/index.html

 John Coleman [EMAIL PROTECTED] schrieb:

Ah, this does not work, since the zip will not deploy to 
  

the m2 repo in the deploy phase.

 

  

-Original Message-
From: John Coleman 


[mailto:[EMAIL PROTECTED]


Sent: 29 January 2008 11:16
To: Maven Users List
Subject: RE: Make META-INF optional

Specifying pom packaging seems like an abuse, but if it 

works, then 


great!

Thanks,
John
 



-Original Message-
From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED]
Sent: 29 January 2008 11:05
To: Maven Users List
Subject: Re: Make META-INF optional

Hi John,

no, the assembly plugin can also generate just one 
  

single zip file.


I use packaging _pom_ and this plugin def:
   plugin
artifactIdmaven-assembly-plugin/artifactId
executions
  execution
phasepackage/phase
goals
  goalsingle/goal
/goals
  /execution
/executions
configuration
  descriptors

  

descriptorsrc/main/assembly/upload.xml/descriptor


  /descriptors
/configuration
  /plugin

On the other hand, there is an older maven zip plugin.

Stefan

John Coleman wrote:
  

Thanks, I was hoping to avoid assembly plugin because it

seems to be added to a jar project. A direct zip plugin 
  
would make 


more sense, but that's not a maven standard.
  

John
 

  


-Original Message-
From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED]
Sent: 29 January 2008 09:44
To: Maven Users List
Subject: Re: Make META-INF optional

Would it help to create a ZIP file with the maven assembly
  

plugin[1]?
  

regards,

Stefan
P.S.: I just saw, the assembly plugin can also create JARs
  

- so it's
  

probably just what you need.

[1] http://maven.apache.org/plugins/maven-assembly-plugin/

John Coleman wrote:

  

Hi,

Is it possible to make a jar with no META-INF entry - I
  


just want to

  

create a jar to unpack with some files I need.

TIA,
John

Eurobase International Limited and its subsidiaries
  

(Eurobase) are unable to exercise control over the 
  
content of 

information in E-Mails. Any views and opinions 
  
expressed may be 

personal to the sender and are not necessarily those 
  

of Eurobase.


Eurobase will not enter into any contractual obligations
  

in respect
  

of any part of its business in any E-mail.

  

Privileged / confidential information may be contained in
  


this message and /or any attachments. This E-mail is
  

intended for the
  
use of the addressee(s) only and may contain confidential 
information. If you are not the / an intended recipient, you 
are hereby notified that any use or dissemination of this
  

communication
  

is strictly prohibited.
If you receive this transmission in error, please notify us 
immediately, and then delete this E-mail.

  

Neither the sender nor Eurobase accepts any liability
  


whatsoever for any defects of any kind either in or
  

arising from this
  

E-mail transmission. E-Mail transmission cannot be
  

guaranteed to be
  
secure or error-free, as messages can be intercepted, lost, 
corrupted, destroyed, contain viruses, or arrive late or
  
incomplete. 
  

Eurobase does not accept any responsibility for viruses
  

and it is


your responsibility to scan any attachments.

  

Eurobase Systems Limited is the main trading company in the
  

Eurobase International Group; registered in England 
  
and Wales 


as company number 02251162; registered address: Essex House,
2 County Place, Chelmsford, Essex CM2 0RE, UK.

  
  





-


  

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

  
  
 

proxied repositories -- plugin question

2008-01-29 Thread Eric Miles
I have a managed repository that I intend to use as a proxy for several
remote repositories.  I'm doing a test and can't get the proxy to
resolve a plugin dependency to save my life.  It will however resolve
regular dependencies to same remote repository.  I am attempting to
proxy the Dev Java Net remote repoistory.

Here is my pom:

?xml version=1.0 encoding=UTF-8?
project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;
modelVersion4.0.0/modelVersion
groupIdarchiva-test/groupId
artifactIdarchiva-test/artifactId
version0.0.1-SNAPSHOT/version
description/description
dependencies
dependency
groupIdorg.j4j/groupId
artifactIdj4j/artifactId
version1.0/version
/dependency
dependency
groupIdjavax.xml.bind/groupId
artifactIdjaxb-api/artifactId
version2.1/version
scopecompile/scope
/dependency
dependency
groupIdorg.jtb/groupId
artifactIdquickr/artifactId
version0.8/version
/dependency
/dependencies
repositories
repository
idproxied/id
url
http://myproxyserver/archiva/repository/proxied
/url
/repository
/repositories
pluginRepositories
pluginRepository
idproxied/id
url
http://myproxyserver/archiva/repository/proxied
/url
/pluginRepository
/pluginRepositories
build
resources
resource
filteringtrue/filtering
directorysrc/main/resources/directory
/resource
/resources
plugins
plugin
groupIdorg.jvnet.jaxb2.maven2/groupId
artifactIdmaven-jaxb2-plugin/artifactId
executions
execution
goals
goalgenerate/goal
/goals
/execution
/executions
configuration
schemaIncludes

schemaInclude**/*.xsd/schemaInclude
/schemaIncludes
extensiontrue/extension
/configuration
/plugin
/plugins
/build
/project

I have no problems resolving and proxying quickr and j4j dependencies,
but I get the following error for the jaxb2 maven plugin:

$ mvn clean package
[INFO] Scanning for projects...
[INFO]

[INFO] Building Unnamed - archiva-test:archiva-test:jar:0.0.1-SNAPSHOT
[INFO]task-segment: [clean, package]
[INFO]

[INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking
for updates from proxied
[INFO] artifact org.jvnet.jaxb2.maven2:maven-jaxb2-plugin: checking for
updates from proxied
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.jvnet.jaxb2.maven2:maven-jaxb2-plugin' does not
exist or no valid version could be found
[INFO]

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

[INFO] Total time: 1 second
[INFO] Finished at: Tue Jan 29 09:38:40 EST 2008
[INFO] Final Memory: 1M/254M
[INFO]



Any suggestions?  Thanks in advance.

Eric


Re: Dependency Order, src/test/resources not overriding src/main/resources

2008-01-29 Thread Wendy Smoak
On Jan 29, 2008 3:49 AM, Andrew Seales [EMAIL PROTECTED] wrote:

 I recently updated maven using mvn -U command and since yesterday
 projects which have properties files of the same name in
 src/test/resources and src/main/resources now no longer have the version
 in src/test/resources taking precedence over the ones in
 src/main/resources when running mvn test(for example database properties
 files).

 Is this an intentional change or is there a bug in a recent plugin version?

What version of Maven are you using?  I thought this was fixed in
2.0.8... http://maven.apache.org/release-notes.html

-- 
Wendy

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



How to run from maven CLI to mimick running from deployment

2008-01-29 Thread shep

Sorry for long post, but have not solved this in last week. We are using
Netbeans 6 with maven. We have converted our ant based project over to a
maven project with multiple modules. We have created an assemble that will
create the following deployment structure:

config
filea.cfg
fileb.cfg
filec.properties
lib
3rdparty
ourlib
developer
compiler
compiler.jar
 generated
server
 runtime


We use class.getResource(“filename”) to retrieve the config and properties
files (config is on the classpath).  These config files are in different
maven modules within the baseline.  I would like to run/debug the
Compiler.class (contained in the compiler module) within maven/netbenas
without packaging and assembly being run. I tried creating a custom goal as
follows:

Executing:C:\Apps\apache-maven-2.0.8\bin\mvn.bat
-Dexec.args=../path/to/inputFile -classpath
-Dexec.mainClass=com.ngc.casper.compiler.caspercompiler.Compiler compile
exec:java  
The config files are not found as they are not in a jar, and are not on the
classpath of the compile module, i.e they are in another module. If I place
them in a jar and include as a dependency, then I would have to use
getResourceAsStream and thus would not work when deployed.

Can anyone point me in the direction I need to go? I tried profiles, but
could not get to launch from command line. 

Brian

-- 
View this message in context: 
http://www.nabble.com/How-to-run-from-maven-CLI-to-mimick-running-from-deployment-tp15159680s177p15159680.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Make META-INF optional

2008-01-29 Thread John Coleman
Okay, I can now deploy the zip artifact to my repo - but how to I explode that 
into another maven project using the dependecy unpack plugin - this seems to 
expect a jar.

TIA
John
 

 -Original Message-
 From: Simon Kitching [mailto:[EMAIL PROTECTED] 
 Sent: 29 January 2008 12:12
 To: Maven Users List
 Subject: RE: Make META-INF optional
 
 That can be fixed by using the maven-buildhelper-plugin, 
 which can attach any file to maven's list-of-deployable-files.
 
 http://mojo.codehaus.org/build-helper-maven-plugin/index.html
 
  John Coleman [EMAIL PROTECTED] schrieb:
  Ah, this does not work, since the zip will not deploy to 
 the m2 repo in the deploy phase.
   
  
   -Original Message-
   From: John Coleman 
 [mailto:[EMAIL PROTECTED]
   Sent: 29 January 2008 11:16
   To: Maven Users List
   Subject: RE: Make META-INF optional
   
   Specifying pom packaging seems like an abuse, but if it 
 works, then 
   great!
   
   Thanks,
   John

   
-Original Message-
From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED]
Sent: 29 January 2008 11:05
To: Maven Users List
Subject: Re: Make META-INF optional

Hi John,

no, the assembly plugin can also generate just one 
 single zip file.
I use packaging _pom_ and this plugin def:
   plugin
artifactIdmaven-assembly-plugin/artifactId
executions
  execution
phasepackage/phase
goals
  goalsingle/goal
/goals
  /execution
/executions
configuration
  descriptors

 descriptorsrc/main/assembly/upload.xml/descriptor
  /descriptors
/configuration
  /plugin

On the other hand, there is an older maven zip plugin.

Stefan

John Coleman wrote:
 Thanks, I was hoping to avoid assembly plugin because it
seems to be added to a jar project. A direct zip plugin 
 would make 
more sense, but that's not a maven standard.

 John
  

   
 -Original Message-
 From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED]
 Sent: 29 January 2008 09:44
 To: Maven Users List
 Subject: Re: Make META-INF optional

 Would it help to create a ZIP file with the maven assembly
plugin[1]?

 regards,

 Stefan
 P.S.: I just saw, the assembly plugin can also create JARs
- so it's
 probably just what you need.

 [1] http://maven.apache.org/plugins/maven-assembly-plugin/

 John Coleman wrote:
 
 Hi,

 Is it possible to make a jar with no META-INF entry - I
   
 just want to
 
 create a jar to unpack with some files I need.

 TIA,
 John

 Eurobase International Limited and its subsidiaries
   
 (Eurobase) are unable to exercise control over the 
 content of 
 information in E-Mails. Any views and opinions 
 expressed may be 
 personal to the sender and are not necessarily those 
 of Eurobase.
 Eurobase will not enter into any contractual obligations
in respect
 of any part of its business in any E-mail.
 
 Privileged / confidential information may be contained in
   
 this message and /or any attachments. This E-mail is
intended for the
 use of the addressee(s) only and may contain confidential 
 information. If you are not the / an intended recipient, you 
 are hereby notified that any use or dissemination of this
communication
 is strictly prohibited.
 If you receive this transmission in error, please notify us 
 immediately, and then delete this E-mail.
 
 Neither the sender nor Eurobase accepts any liability
   
 whatsoever for any defects of any kind either in or
arising from this
 E-mail transmission. E-Mail transmission cannot be
guaranteed to be
 secure or error-free, as messages can be intercepted, lost, 
 corrupted, destroyed, contain viruses, or arrive late or
incomplete. 
 Eurobase does not accept any responsibility for viruses
   and it is
 your responsibility to scan any attachments.
 
 Eurobase Systems Limited is the main trading company in the
   
 Eurobase International Group; registered in England 
 and Wales 
 as company number 02251162; registered address: Essex House,
 2 County Place, Chelmsford, Essex CM2 0RE, UK.
 

   
 

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

   
   
 --
 best regards, Stefan Seidel software developer 
  VUB Printmedia GmbH Chopinstraße 4
 D-04103 Leipzig Germany tel. +49
 (341) 9 60 50 07 fax. +49 

multi-module/subproject projects with interdependencies

2008-01-29 Thread Rob McAuliffe

Hi,

I'm trying to get a project which has multiple modules to compile at the 
top level.   Some of my submodules have dependencies on each other - eg 
i have A B and C submodules, and C depends on B, but A doesn't.  
Currently when I run mvn package from the top level project, each 
subproject/submodule gets built, but it fails on the ones that depend on 
their peers (eg. fails on C in previous example)  saying that it can't 
find the jar.  I can obviously jump into the directory and run an 
'install', but that's not neat, or I can run mvn install package, but 
that's not massively neat either.


This is part of a larger attempt to get the whole build process 
integrated across multiple projects stored in separate locations in 
version control, so I really need an automated solution.


Is there an existing approach/recommended best way to do this?

Thanks,

Rob

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



probelm with installation of jpa-maven-archetype

2008-01-29 Thread Vikas Hazrati
Hi,

I am using the jpa-maven-archetype for generating my project structure.

If I use the following command the execution is fine and I get my projet
structure

mvn archetype:create \
  -DgroupId=com.my-company.my-project \
  -DartifactId=my-project-domain \
  -DpackageName=com.company.project.domain \
  -DarchetypeGroupId=com.rfc.maven.archetypes \
  -DarchetypeArtifactId=jpa-maven-archetype  \
  -DremoteRepositories=http://maven.rodcoffin.com/repo


However if I try to install the jpa-maven-archetype in my local repository 
using the command

mvn install:install-file -DgroupId=com.rfc.maven.archetypes 
-DartifactId=jpa-maven-archetype -Dversion=1.0.0 -Dpackaging=jar 
-Dfile=/home/vhazrati/downloads/jpa-maven-archetype-1.0.0.jar

and then try to create the project structure with

mvn archetype:create \
  -DgroupId=com.my-company.my-project \
  -DartifactId=my-project-domain \
  -DpackageName=com.company.project.domain \
  -DarchetypeGroupId=com.rfc.maven.archetypes \
  -DarchetypeArtifactId=jpa-maven-archetype  

I get 

[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Error creating from archetype

Embedded error: Archetype does not exist.
Unable to determine the release version

Try downloading the file manually from the project website.

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

What am I doing wrong?

Regards | Vikas



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



RE: How to specify local jars as dependencies?

2008-01-29 Thread Andy Grove
Thanks for the prompt response. That's exactly what I needed.

Andy.

-Original Message-
From: Simon Kitching [mailto:[EMAIL PROTECTED] 
Sent: 29 January 2008 12:13
To: Maven Users List
Cc: Andy Grove
Subject: Re: How to specify local jars as dependencies?

 Andy Grove [EMAIL PROTECTED] schrieb:
 
 Hi,
 
 I'm currently updating a code generator product to generate maven build
 scripts as an alternative to Ant build scripts. Most of the dependencies in
 the generated java code are open source jars and I can use the maven
 dependency tags for those. However, the generated code also has
 dependencies on commercial jars (such as Oracle JDBC drivers) that can not
 go into a public maven repository and that I cannot distribute with my
 product. The user will already have these jars locally.
 
 How can I tell maven to put these local jars on the classpath when compiling
 java code without using the dependency mechanism? I don't want to force
 users to set up their own local repositories or to have to run maven
 commands to install the jars in a local repository.

Sounds like a job for
  scopesystem/scope

Regards, Simon


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



RE: Good program, imperfect documentation

2008-01-29 Thread Jörg Schaible
Johnny wrote:
 http://maven.apache.org/download.html
 says at the page bottom
 Unix-based Operating Systems (Linux, Solaris and Mac OS X)
 
1. Extract the distribution archive to the directory you
 wish to install
 Maven 2.0.8. These instructions assume you chose
 /usr/local/apache-maven-2.0.8
 . The directory apache-maven-2.0.8 will be created from the archive.
2. Add the bin directory to your path, eg. export
 PATH=/usr/local/apache-maven-2.0.8/bin:$PATH
3. Make sure that JAVA_HOME is set to the location of your
 JDK, eg. export
 JAVA_HOME=/usr/java/jdk1.5.0_02
4. Run mvn --version to verify that it is correctly installed.
 #4.  Did not work.  It took me hours to see why.
 #2.  Had to be changed to this 2. Add the bin directory to
 your path, eg.
 export PATH=/usr/local/apache-maven-2.0.8/apache-maven-2.0.8/bin:$PATH

Except that this syntax is bash specific. Not every Unix-like OS uses bash as 
default, nor does every user. To export a variable in ash you have to do:

PATH=/usr/local/apache-maven-2.0.8/bin:$PATH
export PATH

Therefore the instructions contain an eg. and the export is part of the 
instruction, not of the command line. There are way too many shells out there 
to describe them all.

[snip]

- Jörg

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



Re: Good program, imperfect documentation

2008-01-29 Thread Guillaume Lederrey
I think the problem is actually on the interpretation of the 1st
point. The instruction assume you will install maven in
/usr/local/apache-maven-2.0.8 when you installed it in
/usr/local/apache-maven-2.0.8/apache-maven-2.0.8. There is a natural
confusion : is the name of the archive the final directory or not ?

Anyway, good luck with your discovery of Maven !


On 29/01/2008, Johnny [EMAIL PROTECTED] wrote:
 http://maven.apache.org/download.html
 says at the page bottom
 Unix-based Operating Systems (Linux, Solaris and Mac OS X)

1. Extract the distribution archive to the directory you wish to install
 Maven 2.0.8. These instructions assume you chose /usr/local/apache-maven-2.0.8
 . The directory apache-maven-2.0.8 will be created from the archive.
2. Add the bin directory to your path, eg. export
 PATH=/usr/local/apache-maven-2.0.8/bin:$PATH
3. Make sure that JAVA_HOME is set to the location of your JDK, eg. export
 JAVA_HOME=/usr/java/jdk1.5.0_02
4. Run mvn --version to verify that it is correctly installed.
 #4.  Did not work.  It took me hours to see why.
 #2.  Had to be changed to this 2. Add the bin directory to your path, eg.
 export PATH=/usr/local/apache-maven-2.0.8/apache-maven-2.0.8/bin:$PATH
 I never cease to be amazed that Linux people will work for months to get
 software right then will not spend a few minutes to make sure the 
 documentation
 is right.  However I commend you for at least giving 4 lines with some cut and
 paste commands.  This is so much better than prose.  At least the person who 
 is
 trying to use it for the first can see what was trying to be accomplished and
 how instead of guessing at English intrepretations.

 Thanks for the program.  I hope the rest of the using it is easier.
 Johnny Stovall



 Objective Oriented Unification Commitment.  We all have gifts and 
 limitations.  I'm using my gifts to help others overcome limitations.  Will 
 you do the same for me?

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




-- 
Jabber : [EMAIL PROTECTED]
Skype : Guillaume.Lederrey
Projects :
* http://rwanda.wordpress.com/

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



Re: Checking out and building on remote machine using continuum

2008-01-29 Thread Wendy Smoak
On Jan 28, 2008 5:52 PM, Buvana Jayaraman [EMAIL PROTECTED] wrote:

 I am new to Continuum and trying to set up a shell project.

 Continuum is installed on the same machine as the SVN repositories. But
 I would like to use another machine for the build. Is there a way to
 check out and build the code on a remote machine using Continuum?

When you add a Shell project, there is a field for the scm url.

http://maven.apache.org/continuum/docs/1.1/user_guides/managing_project/addProject.html#Shell_Project

-- 
Wendy


Good program, imperfect documentation

2008-01-29 Thread Johnny
http://maven.apache.org/download.html
says at the page bottom
Unix-based Operating Systems (Linux, Solaris and Mac OS X)

   1. Extract the distribution archive to the directory you wish to install
Maven 2.0.8. These instructions assume you chose /usr/local/apache-maven-2.0.8
. The directory apache-maven-2.0.8 will be created from the archive.
   2. Add the bin directory to your path, eg. export
PATH=/usr/local/apache-maven-2.0.8/bin:$PATH
   3. Make sure that JAVA_HOME is set to the location of your JDK, eg. export
JAVA_HOME=/usr/java/jdk1.5.0_02
   4. Run mvn --version to verify that it is correctly installed.
#4.  Did not work.  It took me hours to see why.
#2.  Had to be changed to this 2. Add the bin directory to your path, eg.
export PATH=/usr/local/apache-maven-2.0.8/apache-maven-2.0.8/bin:$PATH
I never cease to be amazed that Linux people will work for months to get
software right then will not spend a few minutes to make sure the documentation
is right.  However I commend you for at least giving 4 lines with some cut and
paste commands.  This is so much better than prose.  At least the person who is
trying to use it for the first can see what was trying to be accomplished and
how instead of guessing at English intrepretations.

Thanks for the program.  I hope the rest of the using it is easier.
Johnny Stovall



Objective Oriented Unification Commitment.  We all have gifts and limitations.  
I'm using my gifts to help others overcome limitations.  Will you do the same 
for me?

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



RE: Maven asks password many times

2008-01-29 Thread Randall Fidler
Hello,

We went with the public/private rsa key approach for ssh...
works great with Windows clients (using putty) and Ubuntu on the
backside.

Regards,

Randall

-Original Message-
From: Marxx88 [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 28, 2008 2:23 PM
To: users@maven.apache.org
Subject: Maven asks password many times


Hallo everybody,

I use OpenVPN to connect to our server. I set username/password in
maven's
settings.xml.
It asks password again 6-8 times when I run command: mvn deploy. I try
to
use sftp, scp with the same result.

Do you have any ideas? :working:
-- 
View this message in context:
http://www.nabble.com/Maven-asks-password-many-times-tp15145764s177p1514
5764.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


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



Re: How to specify local jars as dependencies?

2008-01-29 Thread Simon Kitching
 Andy Grove [EMAIL PROTECTED] schrieb:
 
 Hi,
 
 I'm currently updating a code generator product to generate maven build
 scripts as an alternative to Ant build scripts. Most of the dependencies in
 the generated java code are open source jars and I can use the maven
 dependency tags for those. However, the generated code also has
 dependencies on commercial jars (such as Oracle JDBC drivers) that can not
 go into a public maven repository and that I cannot distribute with my
 product. The user will already have these jars locally.
 
 How can I tell maven to put these local jars on the classpath when compiling
 java code without using the dependency mechanism? I don't want to force
 users to set up their own local repositories or to have to run maven
 commands to install the jars in a local repository.

Sounds like a job for
  scopesystem/scope

Regards, Simon

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



RE: Maven with Eclipse

2008-01-29 Thread Ben Lidgey

You need  http://m2eclipse.codehaus.org/update/plugins/ for the released plugin 
versions (0.0.12 is there), as  
http://m2eclipse.codehaus.org/update-dev/plugins/ is for the development 
version of the plugins as documented on http://m2eclipse.codehaus.org/

There are also mailing lists for the m2eclipse plugin specifically --  see 
http://m2eclipse.codehaus.org/mail-lists.html. Mailing to that list would 
probably get a better response for issues with the plugin itself.

We are using the m2eclipse plugin here for our development with no major 
issues, especially since using 0.0.12.

Ben

 -Original Message-
 From: amit kumar [mailto:[EMAIL PROTECTED]
 Sent: 29 January 2008 10:27
 To: Maven Users List
 Subject: Re: Maven with Eclipse

 I was not able to locale 0.12 version of m2eclipse plug at
 http://m2eclipse.codehaus.org/update-dev/plugins/
 Ben I would definitely try the plug in you had mentioned
 because my experience with m2eclipse plug in for eclipse is
 not so cool in terms of reliability while working from
 Eclipse console ( in case of downloading artifacts, searching
 the repository and compiling results etc. ).
 The problem is resolved for 0.11 version as well, there was
 some problem with Linking of sources in eclipse, which is tackled now.
 Thanks a ton.

 Regards,
 Amit

 On Jan 29, 2008 3:43 PM, Thomas Lutz [EMAIL PROTECTED] wrote:
  You could try
 
  http://code.google.com/p/q4e/
 
  Other maven plugin, not as well known as mevenide or
 M2Eclipse plugin,
  but for me it works a lot better...
 
  Tom
 
  Ben Lidgey schrieb:
 
   There is a newer version of the M2Eclipse plugin (0.0.12)
 which might make a difference. Also, there are settings in
 Eclipse to control the highlighting (see
 Windows-Preferences-Java-Editor and see if the Report
 problems as you type box is checked).
  
   Ben
  
  
   -Original Message-
   From: amit kumar [mailto:[EMAIL PROTECTED]
   Sent: 29 January 2008 08:07
   To: Maven Users List
   Subject: Maven with Eclipse
  
   Hi,
   I am using maven plug-in with myeclipse 6.0. But while
 coding even
   if I add rubbish to the code, I can not see any error line(the
   usual red line at the point of syntactic error).
   Could anyone help with that?
  
   I am using the
 org.maven.ide.eclipse_0.0.11.20070603-1200 plug in.
   Regards,
   Amit
  
  
 ---
   -- To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
  
   This e-mail is confidential and intended solely for the
 use of the individual(s) to whom it is addressed. Any views
 or opinions expressed are those of the author. If you are not
 the intended recipient, please be advised that any use,
 dissemination, printing or copying of this email is strictly
 prohibited.
  
  
  
 
   - 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]




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


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



RE: Re: SNAPSHOT timestamp ?

2008-01-29 Thread nicklist
A copy paste of my last mail, which was accidentally replied to th wrong 
message.

I don't think you can get the timestamp generated in the deploy phase before 
the package phase, in which the artifact is created. I suggest take a look at 
the revision part of the buildnumber plugin. At least, you will be able to see 
from which revision your build was build.

Hth,

Nick Stolwijk 


-Original Message-
From: news on behalf of Jon SlinnHawkins
Sent: Tue 1/29/2008 11:15 AM
To: users@maven.apache.org
Subject:  Re: SNAPSHOT timestamp ?
 
Thanks Nick,

Ideally i need to be able to get hold of the version number that will be 
used, and deployed to the repository otherwise we cannot trace a build 
number to a snapshot version in the repo.

Thanks

Jon

[EMAIL PROTECTED] wrote:
 Take a look at the buildnumber plugin[1]. However, this will not be the 
 timestamp it will have in your remote repository. Just the timestamp (or 
 revision) of the moment you build.
 
 Hth,
 
 Nick Stolwijk
 
 [1] http://mojo.codehaus.org/buildnumber-maven-plugin/
 
 
 -Original Message-
 From: news on behalf of Jon SlinnHawkins
 Sent: Tue 1/29/2008 11:04 AM
 To: users@maven.apache.org
 Subject:  SNAPSHOT timestamp ?
  
 Hi All,
 
 I am trying to write the SNAPSHOT version number (with timestamp) to the 
 manifest.mf file of a WebApp.
 
 I can successfully use the maven-war-plugin to add the version - however 
 this simply adds 1.0.0-SNAPSHOT to the manifest.
 
 Whast i would like to achieve is adding the timestamped snapshot version 
 number : 1.0.0-20080125.120545-3
 
 Is this possible ?
 
 Is there any way i can retrieve this timestamped version by any other 
 means, i can then figure out how to get it into the manifest.
 
 Many Thanks
 
 Jon
 
 
 -
 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: Make META-INF optional

2008-01-29 Thread nicklist
I think I reacted to the wrong message. Sorry for the disturbance.

With regards,

Nick Stolwijk


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tue 1/29/2008 11:29 AM
To: Maven Users List
Subject: RE: Make META-INF optional
 
I don't think you can get the timestamp generated in the deploy phase before 
the package phase, in which the artifact is created. I suggest take a look at 
the revision part of the buildnumber plugin. At least, you will be able to see 
from which revision your build was build.

Hth,

Nick Stolwijk

-Original Message-
From: John Coleman [mailto:[EMAIL PROTECTED]
Sent: Tue 1/29/2008 11:20 AM
To: Maven Users List
Subject: RE: Make META-INF optional
 
Thanks, I was hoping to avoid assembly plugin because it seems to be added to a 
jar project. A direct zip plugin would make more sense, but that's not a maven 
standard.

John
 

 -Original Message-
 From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED] 
 Sent: 29 January 2008 09:44
 To: Maven Users List
 Subject: Re: Make META-INF optional
 
 Would it help to create a ZIP file with the maven assembly plugin[1]?
 
 regards,
 
 Stefan
 P.S.: I just saw, the assembly plugin can also create JARs - 
 so it's probably just what you need.
 
 [1] http://maven.apache.org/plugins/maven-assembly-plugin/
 
 John Coleman wrote:
  Hi,
 
  Is it possible to make a jar with no META-INF entry - I 
 just want to 
  create a jar to unpack with some files I need.
 
  TIA,
  John
 
  Eurobase International Limited and its subsidiaries 
 (Eurobase) are unable to exercise control over the content of 
 information in E-Mails. Any views and opinions expressed may 
 be personal to the sender and are not necessarily those of 
 Eurobase. Eurobase will not enter into any contractual 
 obligations in respect of any part of its business in any E-mail. 
 
  Privileged / confidential information may be contained in 
 this message and /or any attachments. This E-mail is intended 
 for the use of the addressee(s) only and may contain 
 confidential information. If you are not the / an intended 
 recipient, you are hereby notified that any use or 
 dissemination of this communication is strictly prohibited.  
 If you receive this transmission in error, please notify us 
 immediately, and then delete this E-mail. 
 
  Neither the sender nor Eurobase accepts any liability 
 whatsoever for any defects of any kind either in or arising 
 from this E-mail transmission. E-Mail transmission cannot be 
 guaranteed to be secure or error-free, as messages can be 
 intercepted, lost, corrupted, destroyed, contain viruses, or 
 arrive late or incomplete. Eurobase does not accept any 
 responsibility for viruses and it is your responsibility to 
 scan any attachments.
 
  Eurobase Systems Limited is the main trading company in the 
 Eurobase International Group; registered in England and Wales 
 as company number 02251162; registered address: Essex House, 
 2 County Place, Chelmsford, Essex CM2 0RE, UK.
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

 
 --
 best regards, Stefan Seidel software developer 
  VUB Printmedia GmbH Chopinstraße 4 
 D-04103 Leipzig Germany tel. +49
 (341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web. 
 www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim 
 Preuss Neudorf, Dr. Christian Preuss Neudorf
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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





Re: Need Help Getting Started with Maven 2

2008-01-29 Thread Robert Winch
Jacob,

What spring dependency do you expect should add commons-dbcp.jar? I would
look at its pom to see what it includes. You will not always get all the
implementation dependencies. This is because you can use any number of
drivers with spring (i.e. c3p0). Since spring (along with other frameworks)
cannot guess which implementations you will be using they will not include
them in their pom and thus they will not be included with the transitive
dependencies.

HTH
Rob

On Jan 29, 2008 11:34 AM, Jacob Bergoo [EMAIL PROTECTED] wrote:


 Hi All,
 I am new to Maven 2 but I am learning as fast as I can. My plan is to set
 up
 a project that is working with Spring 2.5.1, Tapestry 5, Hibernate
 3.2.5.ga,
 MySQL 5.0.

 This is what I have done so far:
 1) I have Created a project using Quickstart Archtype for Tapestry 5
 2) I have added Spring dep. to my pom.xml
 3) I have added MySQL connector tommy pom.xml

 Here Is my pom file:
 http://www.nabble.com/file/p15164882/pom.xml pom.xml

 When I try to run my application (I have just added a simple
 applicationContext-persistence.xml just to check that I have all the
 needed
 jar files and that the server can connect to the database :
 http://www.nabble.com/file/p15164882/applicationContext-Persistence.xml
 applicationContext-Persistence.xml )
 the server (jetty) show this error:

 org.springframework.web.context.ContextLoader.initWebApplicationContext(
 ContextLoader.java:215)
 09 Context initialization failed
 org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
 find
 class [org.apache.commons.dbcp.BasicDataSource] for bean with name
 'dataSource' defined in ServletContext resource
 [/WEB-INF/applicationContext-Persistence.xml]; nested exception is
 java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource
at

 org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass
 (AbstractBeanFactory.java:1173)
at

 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType
 (AbstractAutowireCapableBeanFactory.java:479)
at

 org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean
 (AbstractBeanFactory.java:787)
at

 org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
 (DefaultListableBeanFactory.java:393)
at

 org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization
 (AbstractApplicationContext.java:736)
at
 org.springframework.context.support.AbstractApplicationContext.refresh(
 AbstractApplicationContext.java:369)
at
 org.springframework.web.context.ContextLoader.createWebApplicationContext(
 ContextLoader.java:261)
at
 org.springframework.web.context.ContextLoader.initWebApplicationContext(
 ContextLoader.java:199)
at
 org.springframework.web.context.ContextLoaderListener.contextInitialized(
 ContextLoaderListener.java:45)
at
 org.mortbay.jetty.servlet.WebApplicationContext.doStart(
 WebApplicationContext.java:495)
at org.mortbay.util.Container.start(Container.java:72)
 ...

 My question is:
 1) I thought that Maven2 download all the dependencies that a jar file
 uses,
 here it seems that I need commons-dbcp.jar but I didn't got that when I
 added Spring as a dependency. Do I need to add the dependency myself?
 2) in http://repo1.maven.org/maven2/org/apache/commons/ there is no
 commons-dbcp! Where can I find this?
 3)Is there a list of the most common repositories so I can know where to
 look for my dependencies
 4) Have anybody else set upp this combination of frameworks and are
 willing
 to share the pom.xml so I as a beginner can see the configurations?

 Thanks in advance for any inputs, comments, help

 Jacob


 --
 View this message in context:
 http://www.nabble.com/Need-Help-Getting-Started-with-Maven-2-tp15164882s177p15164882.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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




RE: Make META-INF optional

2008-01-29 Thread nicklist
I don't think you can get the timestamp generated in the deploy phase before 
the package phase, in which the artifact is created. I suggest take a look at 
the revision part of the buildnumber plugin. At least, you will be able to see 
from which revision your build was build.

Hth,

Nick Stolwijk

-Original Message-
From: John Coleman [mailto:[EMAIL PROTECTED]
Sent: Tue 1/29/2008 11:20 AM
To: Maven Users List
Subject: RE: Make META-INF optional
 
Thanks, I was hoping to avoid assembly plugin because it seems to be added to a 
jar project. A direct zip plugin would make more sense, but that's not a maven 
standard.

John
 

 -Original Message-
 From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED] 
 Sent: 29 January 2008 09:44
 To: Maven Users List
 Subject: Re: Make META-INF optional
 
 Would it help to create a ZIP file with the maven assembly plugin[1]?
 
 regards,
 
 Stefan
 P.S.: I just saw, the assembly plugin can also create JARs - 
 so it's probably just what you need.
 
 [1] http://maven.apache.org/plugins/maven-assembly-plugin/
 
 John Coleman wrote:
  Hi,
 
  Is it possible to make a jar with no META-INF entry - I 
 just want to 
  create a jar to unpack with some files I need.
 
  TIA,
  John
 
  Eurobase International Limited and its subsidiaries 
 (Eurobase) are unable to exercise control over the content of 
 information in E-Mails. Any views and opinions expressed may 
 be personal to the sender and are not necessarily those of 
 Eurobase. Eurobase will not enter into any contractual 
 obligations in respect of any part of its business in any E-mail. 
 
  Privileged / confidential information may be contained in 
 this message and /or any attachments. This E-mail is intended 
 for the use of the addressee(s) only and may contain 
 confidential information. If you are not the / an intended 
 recipient, you are hereby notified that any use or 
 dissemination of this communication is strictly prohibited.  
 If you receive this transmission in error, please notify us 
 immediately, and then delete this E-mail. 
 
  Neither the sender nor Eurobase accepts any liability 
 whatsoever for any defects of any kind either in or arising 
 from this E-mail transmission. E-Mail transmission cannot be 
 guaranteed to be secure or error-free, as messages can be 
 intercepted, lost, corrupted, destroyed, contain viruses, or 
 arrive late or incomplete. Eurobase does not accept any 
 responsibility for viruses and it is your responsibility to 
 scan any attachments.
 
  Eurobase Systems Limited is the main trading company in the 
 Eurobase International Group; registered in England and Wales 
 as company number 02251162; registered address: Essex House, 
 2 County Place, Chelmsford, Essex CM2 0RE, UK.
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

 
 --
 best regards, Stefan Seidel software developer 
  VUB Printmedia GmbH Chopinstraße 4 
 D-04103 Leipzig Germany tel. +49
 (341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web. 
 www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim 
 Preuss Neudorf, Dr. Christian Preuss Neudorf
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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




Re: update/creation of maven-metadata.xml file

2008-01-29 Thread Wendy Smoak
On Jan 29, 2008 9:44 AM, Tom Huybrechts [EMAIL PROTECTED] wrote:

 If you specify an explicit version in your POM, I would think that Maven
 always finds it ?

Probably, (and that's definitely a best practice,) but not everything
uses a pom.

'mvn archetype:create' comes to mind, for example... as well as 'mvn
deploy:deploy-file' itself.

Some corporate environments require approvals and manual deployment of
every artifact into their internal repos to tightly control what is
available.  I don't see a way to deploy a plugin with the correct
metadata until MDEPLOY-52 is fixed.

-- 
Wendy

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



Re: A Hello World in ejb3

2008-01-29 Thread Angelo Chen

Hi Jacek,

Thanks, here are the steps:

I checked out the source code
2. mvn install
then i got this error:

[INFO] artifact org.apache.geronimo.buildsupport:car-maven-plugin: checking
for updates from codehaus
[INFO]

[ERROR] BUILD ERROR
[INFO]

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





Jacek Laskowski wrote:
 
 On Jan 28, 2008 4:12 PM, Angelo Chen [EMAIL PROTECTED] wrote:
 
 http://svn.apache.org/repos/asf/geronimo/samples/trunk/samples/calculator-stateless-pojo/

 I checked out the above project too, the layout is a little different
 from
 the zip file, but it does not compile, this is the only maven project for
 ejb3 I found in the net so far, two days spent and I can not even produce
 a
 'hello world' in maven, managed to make a 'hello world' in command line,
 but
 not for real code.
 
 Hi,
 
 Could you describe the steps you took until it hit the state 'does not
 compile'? I'd be glad to help you out with the sample. You could take
 a look at the article (in Polish) about Geronimo, Maven and JSF -
 http://www.jaceklaskowski.pl/wiki/Tworzenie_aplikacji_z_JavaServer_Faces%2C_Apache_Maven_i_Apache_Geronimo.
 There're a couple of samples in Apache OpenEJB project -
 http://openejb.apache.org/examples.html.
 
 Jacek
 (Geronimo and OpenEJB committer)
 
 -- 
 Jacek Laskowski
 http://www.JacekLaskowski.pl
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/A-%22Hello-World%22-in-ejb3-tp15127007s177p15160496.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Need Help Getting Started with Maven 2

2008-01-29 Thread Jacob Bergoo

Hi All, 
I am new to Maven 2 but I am learning as fast as I can. My plan is to set up
a project that is working with Spring 2.5.1, Tapestry 5, Hibernate 3.2.5.ga,
MySQL 5.0.

This is what I have done so far:
1) I have Created a project using Quickstart Archtype for Tapestry 5
2) I have added Spring dep. to my pom.xml
3) I have added MySQL connector tommy pom.xml

Here Is my pom file:
http://www.nabble.com/file/p15164882/pom.xml pom.xml 

When I try to run my application (I have just added a simple
applicationContext-persistence.xml just to check that I have all the needed
jar files and that the server can connect to the database : 
http://www.nabble.com/file/p15164882/applicationContext-Persistence.xml
applicationContext-Persistence.xml )
the server (jetty) show this error:

org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:215)
09 Context initialization failed
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
class [org.apache.commons.dbcp.BasicDataSource] for bean with name
'dataSource' defined in ServletContext resource
[/WEB-INF/applicationContext-Persistence.xml]; nested exception is
java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource
at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1173)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:479)
at
org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:787)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:393)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:736)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:369)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at
org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:495)
at org.mortbay.util.Container.start(Container.java:72)
...

My question is:
1) I thought that Maven2 download all the dependencies that a jar file uses,
here it seems that I need commons-dbcp.jar but I didn't got that when I
added Spring as a dependency. Do I need to add the dependency myself?
2) in http://repo1.maven.org/maven2/org/apache/commons/ there is no
commons-dbcp! Where can I find this?
3)Is there a list of the most common repositories so I can know where to
look for my dependencies
4) Have anybody else set upp this combination of frameworks and are willing
to share the pom.xml so I as a beginner can see the configurations?

Thanks in advance for any inputs, comments, help

Jacob


-- 
View this message in context: 
http://www.nabble.com/Need-Help-Getting-Started-with-Maven-2-tp15164882s177p15164882.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



maven-xmlbeans-plugin: java.lang.ArrayIndexOutOfBoundsException: 3

2008-01-29 Thread Jan Torben Heuer
Hi,

I added the sourceSchema directive to my pom (see earlier posts...). Since
then, xmlbeans doesn't compile.

Here are the pom.xml configs:

  groupIdorg.codehaus.mojo/groupId
  artifactIdxmlbeans-maven-plugin/artifactId
  executions
  execution
  goals
  goalxmlbeans/goal
  /goals
  /execution
  /executions
inheritedtrue/inherited
configuration
sourceSchemas
sourceSchemaowsALL.xsd/sourceSchema
/sourceSchemas
/configuration

and inherited is from the parent relevant:

  groupIdorg.codehaus.mojo/groupId
  artifactIdxmlbeans-maven-plugin/artifactId
  executions
  execution
  goals
  goalxmlbeans/goal
  /goals
  /execution
  /executions
  inheritedtrue/inherited
  configuration
schemaDirectory
  
${schema.directory}/${project.artifactId}/${project.version}
/schemaDirectory
noPvrtrue/noPvr
outputJar${build.finalName}/outputJar
  /configuration

Below the mvn -x -e xmlbeans:xmlbeans output.

Jan


[DEBUG] Configuring
mojo 'org.codehaus.mojo:xmlbeans-maven-plugin:2.3.0:xmlbeans' --
[DEBUG]   (f) artifactMap = {stax:stax-api=stax:stax-api:jar:1.0.1:compile,
org.apache.xmlbeans:xmlbeans=org.apache.xmlbeans:xmlbeans:jar:2.3.0:compile}
[DEBUG]   (f) catalogLocation
= /home/u/data/svn/xmlbeans/ows/src/main/catalog/resolver-catalog.xml
[DEBUG]   (f) classGenerationDirectory
= /home/u/data/svn/xmlbeans/ows/target/generated-classes/xmlbeans
[DEBUG]   (f) debug = false
[DEBUG]   (f) defaultXmlConfigDir
= /home/u/data/svn/xmlbeans/ows/src/main/xsdconfig
[DEBUG]   (f) download = false
[DEBUG]   (f) generatedSchemaDirectory
= /home/u/data/svn/xmlbeans/ows/target/xmlbeans-xsds
[DEBUG]   (f) jaxb = false
[DEBUG]   (s) localRepository = [local] - file:///home/u/.m2/repository
[DEBUG]   (f) noJavac = false
[DEBUG]   (f) noPvr = true
[DEBUG]   (f) noUpa = false
[DEBUG]   (f) outputJar = /home/u/data/svn/xmlbeans/ows/xbeans-null-1.1.0
[DEBUG]   (s) pluginArtifacts = [xml-resolver:xml-resolver:jar:1.2:runtime,
stax:stax-api:jar:1.0.1:runtime, xmlbeans:xmlbeans:jar:2.3.0:runtime,
org.codehaus.plexus:plexus-utils:jar:1.4.2:runtime,
org.apache.maven:maven-project:jar:2.0.6:runtime,
org.apache.maven:maven-artifact:jar:2.0.6:runtime,
org.apache.maven:maven-artifact-manager:jar:2.0.6:runtime,
org.apache.maven:maven-repository-metadata:jar:2.0.6:runtime,
org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:runtime,
org.apache.maven:maven-plugin-api:jar:2.0.6:runtime,
org.apache.maven:maven-model:jar:2.0.6:runtime,
org.apache.maven:maven-profile:jar:2.0.6:runtime]
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG]   (f) quiet = true
[DEBUG]   (f) schemaDirectory = /home/u/data/_ogcschemas/ows/1.1.0
[DEBUG]   (f) sourceGenerationDirectory
= /home/u/data/svn/xmlbeans/ows/target/generated-sources/xmlbeans
[DEBUG]   (f) sourceSchemas = [owsALL.xsd]
[DEBUG]   (f) staleFile
= /home/u/data/svn/xmlbeans/ows/target/generated-sources/xmlbeans/.staleFlag
[DEBUG]   (f) verbose = false
[DEBUG] -- end configuration --
[INFO] [xmlbeans:xmlbeans]
[DEBUG] The schema Directory is /home/u/data/_ogcschemas/ows/1.1.0
[DEBUG] Artifact count: 2
[DEBUG] looking for artifact schemas.
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] 3
[INFO] 
[DEBUG] Trace
java.lang.ArrayIndexOutOfBoundsException: 3
at
org.codehaus.mojo.xmlbeans.AbstractXmlBeansPlugin.getXsdFiles(AbstractXmlBeansPlugin.java:687)
at
org.codehaus.mojo.xmlbeans.AbstractXmlBeansPlugin.hasSchemas(AbstractXmlBeansPlugin.java:312)
at
org.codehaus.mojo.xmlbeans.AbstractXmlBeansPlugin.execute(AbstractXmlBeansPlugin.java:266)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at

Re: pom.xml jar scope

2008-01-29 Thread Wendy Smoak
On Jan 29, 2008 7:00 AM, faisalloe [EMAIL PROTECTED] wrote:

 NOp it didn't worked out

We *always* need more information than it didn't work.  By this I
assume you mean that the jar is still getting included in WEB-INF/lib.

Using provided scope _should_ work.

Make sure you run 'mvn clean' to delete anything left over from prior
builds, and then try 'mvn install' again.

If it still doesn't work, show us the dependency snippet from your
pom, and explain what's going wrong.

-- 
Wendy

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



RE: Maven asks password many times

2008-01-29 Thread Marxx88

Hallo Randall,

Can you use mvn deploy command without problems (without asking password
many times) ?

Regards,
Slava


Randall Fidler wrote:
 
 Hello,
 
   We went with the public/private rsa key approach for ssh...
 works great with Windows clients (using putty) and Ubuntu on the
 backside.
 
 Regards,
 
 Randall
 
 -Original Message-
 From: Marxx88 [mailto:[EMAIL PROTECTED] 
 Sent: Monday, January 28, 2008 2:23 PM
 To: users@maven.apache.org
 Subject: Maven asks password many times
 
 
 Hallo everybody,
 
 I use OpenVPN to connect to our server. I set username/password in
 maven's
 settings.xml.
 It asks password again 6-8 times when I run command: mvn deploy. I try
 to
 use sftp, scp with the same result.
 
 Do you have any ideas? :working:
 -- 
 View this message in context:
 http://www.nabble.com/Maven-asks-password-many-times-tp15145764s177p1514
 5764.html
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Maven-asks-password-many-times-tp15145764s177p15160389.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Conflicting Jar Names

2008-01-29 Thread Lee Meador
1 isn't going to work because of how Maven finds files in the repo by
tracing down the file system path based on the group id and then going down
the path some more based on the artifact id and expecting the jar file to
have a matching name.

The real solution is to change the artifactId, which you said would be error
prone. It sounds like what you have is error prone already since your build
process is having trouble telling jar files with the same name apart.

Sorry for no good news. Maybe someone else know more about it than i do.

-- Lee

On Jan 29, 2008 10:45 AM, Steve Found [EMAIL PROTECTED] wrote:

 Hi all,

 I have two  separate systems that I build using maven.

 One has groupId:com.volantis.synergetics artifactId:repository-api
 version:5.0-SNAPSHOT.  This system consists of around 50 artifacts.

 The second has groupId:com.volantis.mcs  artifactId:repository-api
 version:5.0-SNAPSHOT. This system consists of around 150 artifacts.

 When I come to build an installer, the jar files are all copied into a
 packaging directory, but as you can probably see, both jar files will be
 called repository-api-5.0-SNAPSHOT.jar. Consequently, the second jar
 will overwrite the first.

 Now I could go and change all the artifactId's for this, but given that
 there are many more than just 2 systems in the project this would be
 very time consuming and prone to error.

 What I want to do therefore is either :

 1. Be able to set the name of the jar file when 'mvn install' installs
 the generated jar the repository so that the jar files do not conflict
 when the installer resolves it's dependancies. I tried setting the name
 of the generated jar from each subsystem pom, but this was lost when the
 jar was installed.

 2. Be able to change the name of the jar when the dependancy is resolved
 but without adding each and every dependancy to the installer POM. For
 example... can I prepend volantis-synergetics- to every jar file that
 has a groupId of com.volantis.synergetics ? In the above example then I
 would get volantis-synergetics-repository-api.5.0-SNAPSHOT.jar and
 volantis-mcs-repository-api.5.0-SNAPSHOT.jar.

 Is there any way I can achieve these things through the install or
 dependancy plugins ?

 Regards,

   Steve.

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




-- 
-- Lee Meador
Sent from gmail. My real email address is lee AT leemeador.com


Re: Need Help Getting Started with Maven 2

2008-01-29 Thread Jacob Bergoo

Hi Rob,
Thanks for pointing that out, now when you say it I realise that to...
But how can I find the depencencies that I need?
I tried to locate commons-dbcp in
http://repo1.maven.org/maven2/org/apache/commons/ and in
http://repo1.maven.org/maven2/org/apache/commons/ and there is no sign of it
there.

I really want to get this right the maven way, but it takes a long time
for me to try to find out where the locations of this jar files are...
compared with just dropping in the jar file in the lib folder...

Is there any list of repository or a easy way of searching for the right
location with (groupid, artifactId and version)

Thanks 
Jacob


rob.winch wrote:
 
 Jacob,
 
 What spring dependency do you expect should add commons-dbcp.jar? I would
 look at its pom to see what it includes. You will not always get all the
 implementation dependencies. This is because you can use any number of
 drivers with spring (i.e. c3p0). Since spring (along with other
 frameworks)
 cannot guess which implementations you will be using they will not include
 them in their pom and thus they will not be included with the transitive
 dependencies.
 
 HTH
 Rob
 
 On Jan 29, 2008 11:34 AM, Jacob Bergoo [EMAIL PROTECTED] wrote:
 

 Hi All,
 I am new to Maven 2 but I am learning as fast as I can. My plan is to set
 up
 a project that is working with Spring 2.5.1, Tapestry 5, Hibernate
 3.2.5.ga,
 MySQL 5.0.

 This is what I have done so far:
 1) I have Created a project using Quickstart Archtype for Tapestry 5
 2) I have added Spring dep. to my pom.xml
 3) I have added MySQL connector tommy pom.xml

 Here Is my pom file:
 http://www.nabble.com/file/p15164882/pom.xml pom.xml

 When I try to run my application (I have just added a simple
 applicationContext-persistence.xml just to check that I have all the
 needed
 jar files and that the server can connect to the database :
 http://www.nabble.com/file/p15164882/applicationContext-Persistence.xml
 applicationContext-Persistence.xml )
 the server (jetty) show this error:

 org.springframework.web.context.ContextLoader.initWebApplicationContext(
 ContextLoader.java:215)
 09 Context initialization failed
 org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
 find
 class [org.apache.commons.dbcp.BasicDataSource] for bean with name
 'dataSource' defined in ServletContext resource
 [/WEB-INF/applicationContext-Persistence.xml]; nested exception is
 java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource
at

 org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass
 (AbstractBeanFactory.java:1173)
at

 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType
 (AbstractAutowireCapableBeanFactory.java:479)
at

 org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean
 (AbstractBeanFactory.java:787)
at

 org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
 (DefaultListableBeanFactory.java:393)
at

 org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization
 (AbstractApplicationContext.java:736)
at
 org.springframework.context.support.AbstractApplicationContext.refresh(
 AbstractApplicationContext.java:369)
at
 org.springframework.web.context.ContextLoader.createWebApplicationContext(
 ContextLoader.java:261)
at
 org.springframework.web.context.ContextLoader.initWebApplicationContext(
 ContextLoader.java:199)
at
 org.springframework.web.context.ContextLoaderListener.contextInitialized(
 ContextLoaderListener.java:45)
at
 org.mortbay.jetty.servlet.WebApplicationContext.doStart(
 WebApplicationContext.java:495)
at org.mortbay.util.Container.start(Container.java:72)
 ...

 My question is:
 1) I thought that Maven2 download all the dependencies that a jar file
 uses,
 here it seems that I need commons-dbcp.jar but I didn't got that when I
 added Spring as a dependency. Do I need to add the dependency myself?
 2) in http://repo1.maven.org/maven2/org/apache/commons/ there is no
 commons-dbcp! Where can I find this?
 3)Is there a list of the most common repositories so I can know where to
 look for my dependencies
 4) Have anybody else set upp this combination of frameworks and are
 willing
 to share the pom.xml so I as a beginner can see the configurations?

 Thanks in advance for any inputs, comments, help

 Jacob


 --
 View this message in context:
 http://www.nabble.com/Need-Help-Getting-Started-with-Maven-2-tp15164882s177p15164882.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/Need-Help-Getting-Started-with-Maven-2-tp15164882s177p15165739.html
Sent from the Maven - Users 

Re: How to specify local jars as dependencies?

2008-01-29 Thread Martin Gainty
this answers how to specify groupId, artifactId and version which can be
passed to mvn via command line as
mvn -DgroupId=org.package -DartifactId=comercial-jar -Dversion=9.0

   groupIdorg.package/groupId
   artifactIdcomercial-jar/artifactId
   version9.0/version

I've been looking for a way to specify a location that is guaranteed to
contain
PUBLICLY ACCESSIBLE LOCATION for ALL MAVEN2 PLUGINS

Failing that.. is there a way to gain access to the plugins individually so
we can d/l them to local drives ?

Thanks
Martin-

- Original Message -
From: Angel Sotirov [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Tuesday, January 29, 2008 7:19 AM
Subject: Re: How to specify local jars as dependencies?


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Andy Grove wrote:
 | Hi,
 |
 | I'm currently updating a code generator product to generate maven build
 | scripts as an alternative to Ant build scripts. Most of the
 dependencies in
 | the generated java code are open source jars and I can use the maven
 | dependency tags for those. However, the generated code also has
 | dependencies on commercial jars (such as Oracle JDBC drivers) that can
not
 | go into a public maven repository and that I cannot distribute with my
 | product. The user will already have these jars locally.
 |
 | How can I tell maven to put these local jars on the classpath when
 compiling
 | java code without using the dependency mechanism? I don't want to force
 | users to set up their own local repositories or to have to run maven
 | commands to install the jars in a local repository.
 |
 | Thanks,
 |
 | Andy.
 Greetings,


 ~We are doing almost the same thing using the dependency mechanism
 system that way the artifact is not looked up in the repository, instead
 it needs to be included in the runtime class path:

 dependencies
 ~groupIdorg.package/groupId
 ~artifactIdcomercial-jar/artifactId
 ~version9.0/version
 ~scopesystem/scope
 /dependencies

 here is a complete reference for the dependency mechanism:

http://maven.apache.org/guides/introduction/introduction-to-dependency-mecha
nism.html


 Hope this helps,

 Angel.
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2.0.8 (GNU/Linux)

 iEYEARECAAYFAkefGdgACgkQhgSIDFxSFd3TfwCgrCO5xCXitAhQ9IynbUMjp419
 B4AAn0HIYWFmdbPHCSKmiocFAf6bH4TT
 =rcJe
 -END PGP SIGNATURE-


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



using archiva as ivy repository

2008-01-29 Thread Brown, Carlton
I am looking at the feasibility of using Archiva as an ivy repository
and I'm not finding much.   Does anyone have any suggestions, notes, or
best practices for doing this?

 

For a moment I thought I found a good doc at
http://maven.apache.org/archiva/userguide/using-ivy.html which has the
promising title of Using Repository as an Apache Ivy Repository.
Unfortunately, the published content contains only the line :STUB: This
is a documentation stub.   Could I induce anyone to share a draft copy
of that document?

 

TIA,

Carlton




-

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


Parent project version

2008-01-29 Thread Arthur Rodrigues Stilben
Is there a way to use the version of a parent project in its childrens projects?

Arthur Rodrigues Stilben

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



Using tasks attributes in AntRun plugin

2008-01-29 Thread Ryan H.
Hello,

From what I experienced, the AntRun plug-in doesn't care about the
attributes defined in tasks. I tried the example below, but it didn't work
as described. When the property maven.test.skip is defined, the task is
still executed.

http://maven.apache.org/plugins/maven-antrun-plugin/examples/tasksAttributes.html

Does it really work?

Thanks
Ryan


Re: Parent project version

2008-01-29 Thread Mick Knutson
I am actually trying to use a property:

org.delta.esp.dap.version1.0.2/org.delta.esp.dap.version

Then use that property in my child pom's:

${org.delta.esp.dap.version}

When I do an install and deploy it seems to work, but when I am doing a
site-deploy, the parameter is not found and I get errors.

Is there a better way?



On Jan 29, 2008 10:23 AM, Arthur Rodrigues Stilben 
[EMAIL PROTECTED] wrote:

 Is there a way to use the version of a parent project in its childrens
 projects?

 Arthur Rodrigues Stilben

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




-- 
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---


Re: cannot find maven artifact

2008-01-29 Thread Martin Gainty
$M2_HOME/maven-plugin-parentmvn -e -U install:installFile
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/7/maven
-plugins-7.pom
[INFO] -
---
[ERROR] FATAL ERROR
[INFO] -
---
[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-plugins
Version: 7

Reason: Unable to download the artifact from any repository

curious if anyone experienced these problems with comcast???

Thanks Wayne
M-
- Original Message -
From: Wayne Fay [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Tuesday, January 29, 2008 1:59 PM
Subject: Re: cannot find maven artifact


 Transient network failure. Try again and/or add -U to the call to mvn.

 Wayne

 On 1/29/08, Martin Gainty [EMAIL PROTECTED] wrote:
 
  attempting to build maven-plugin-parent
 
  mvn -e install:installFile
 
  Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/7/maven
-plugins-7.pom
 
[INFO] -
---
  [ERROR] FATAL ERROR
 
[INFO] -
---
  [INFO] Failed to resolve artifact.
 
  GroupId: org.apache.maven.plugins
  ArtifactId: maven-plugins
  Version: 7
 
  any ideas what is causing this error?
 
  Help!!!
  M-
 

 -
 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: Need Help Getting Started with Maven 2

2008-01-29 Thread Robert Winch
If you use eclipse, you might try m2eclipse as a way of resolving
dependencies http://m2eclipse.codehaus.org/


On Jan 29, 2008 12:56 PM, Wayne Fay [EMAIL PROTECTED] wrote:

 www.mvnrepository.com is a Maven search engine.

 Also, you might want to consider using AppFuse:
 http://appfuse.org/

 Wayne

 On 1/29/08, Jacob Bergoo [EMAIL PROTECTED] wrote:
 
  Hi Rob,
  Thanks for pointing that out, now when you say it I realise that to...
  But how can I find the depencencies that I need?
  I tried to locate commons-dbcp in
  http://repo1.maven.org/maven2/org/apache/commons/ and in
  http://repo1.maven.org/maven2/org/apache/commons/ and there is no sign
 of it
  there.
 
  I really want to get this right the maven way, but it takes a long
 time
  for me to try to find out where the locations of this jar files are...
  compared with just dropping in the jar file in the lib folder...
 
  Is there any list of repository or a easy way of searching for the right
  location with (groupid, artifactId and version)
 
  Thanks
  Jacob
 
 
  rob.winch wrote:
  
   Jacob,
  
   What spring dependency do you expect should add commons-dbcp.jar? I
 would
   look at its pom to see what it includes. You will not always get all
 the
   implementation dependencies. This is because you can use any number of
   drivers with spring (i.e. c3p0). Since spring (along with other
   frameworks)
   cannot guess which implementations you will be using they will not
 include
   them in their pom and thus they will not be included with the
 transitive
   dependencies.
  
   HTH
   Rob
  
   On Jan 29, 2008 11:34 AM, Jacob Bergoo [EMAIL PROTECTED] wrote:
  
  
   Hi All,
   I am new to Maven 2 but I am learning as fast as I can. My plan is to
 set
   up
   a project that is working with Spring 2.5.1, Tapestry 5, Hibernate
   3.2.5.ga,
   MySQL 5.0.
  
   This is what I have done so far:
   1) I have Created a project using Quickstart Archtype for Tapestry 5
   2) I have added Spring dep. to my pom.xml
   3) I have added MySQL connector tommy pom.xml
  
   Here Is my pom file:
   http://www.nabble.com/file/p15164882/pom.xml pom.xml
  
   When I try to run my application (I have just added a simple
   applicationContext-persistence.xml just to check that I have all the
   needed
   jar files and that the server can connect to the database :
  
 http://www.nabble.com/file/p15164882/applicationContext-Persistence.xml
   applicationContext-Persistence.xml )
   the server (jetty) show this error:
  
  
 org.springframework.web.context.ContextLoader.initWebApplicationContext(
   ContextLoader.java:215)
   09 Context initialization failed
   org.springframework.beans.factory.CannotLoadBeanClassException:
 Cannot
   find
   class [org.apache.commons.dbcp.BasicDataSource] for bean with name
   'dataSource' defined in ServletContext resource
   [/WEB-INF/applicationContext-Persistence.xml]; nested exception is
   java.lang.ClassNotFoundException:
 org.apache.commons.dbcp.BasicDataSource
  at
  
  
 org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass
   (AbstractBeanFactory.java:1173)
  at
  
  
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType
   (AbstractAutowireCapableBeanFactory.java:479)
  at
  
  
 org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean
   (AbstractBeanFactory.java:787)
  at
  
  
 org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
   (DefaultListableBeanFactory.java:393)
  at
  
  
 org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization
   (AbstractApplicationContext.java:736)
  at
  
 org.springframework.context.support.AbstractApplicationContext.refresh(
   AbstractApplicationContext.java:369)
  at
  
 org.springframework.web.context.ContextLoader.createWebApplicationContext(
   ContextLoader.java:261)
  at
  
 org.springframework.web.context.ContextLoader.initWebApplicationContext(
   ContextLoader.java:199)
  at
  
 org.springframework.web.context.ContextLoaderListener.contextInitialized(
   ContextLoaderListener.java:45)
  at
   org.mortbay.jetty.servlet.WebApplicationContext.doStart(
   WebApplicationContext.java:495)
  at org.mortbay.util.Container.start(Container.java:72)
   ...
  
   My question is:
   1) I thought that Maven2 download all the dependencies that a jar
 file
   uses,
   here it seems that I need commons-dbcp.jar but I didn't got that when
 I
   added Spring as a dependency. Do I need to add the dependency myself?
   2) in http://repo1.maven.org/maven2/org/apache/commons/ there is no
   commons-dbcp! Where can I find this?
   3)Is there a list of the most common repositories so I can know where
 to
   look for my dependencies
   4) Have anybody else set upp this combination of frameworks and are
   willing
   to share the pom.xml so I as a beginner 

Re: cannot find maven artifact

2008-01-29 Thread Wayne Fay
Transient network failure. Try again and/or add -U to the call to mvn.

Wayne

On 1/29/08, Martin Gainty [EMAIL PROTECTED] wrote:

 attempting to build maven-plugin-parent

 mvn -e install:installFile

 Downloading: 
 http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/7/maven-plugins-7.pom
 [INFO] 
 
 [ERROR] FATAL ERROR
 [INFO] 
 
 [INFO] Failed to resolve artifact.

 GroupId: org.apache.maven.plugins
 ArtifactId: maven-plugins
 Version: 7

 any ideas what is causing this error?

 Help!!!
 M-


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



Re: Need Help Getting Started with Maven 2

2008-01-29 Thread Wayne Fay
www.mvnrepository.com is a Maven search engine.

Also, you might want to consider using AppFuse:
http://appfuse.org/

Wayne

On 1/29/08, Jacob Bergoo [EMAIL PROTECTED] wrote:

 Hi Rob,
 Thanks for pointing that out, now when you say it I realise that to...
 But how can I find the depencencies that I need?
 I tried to locate commons-dbcp in
 http://repo1.maven.org/maven2/org/apache/commons/ and in
 http://repo1.maven.org/maven2/org/apache/commons/ and there is no sign of it
 there.

 I really want to get this right the maven way, but it takes a long time
 for me to try to find out where the locations of this jar files are...
 compared with just dropping in the jar file in the lib folder...

 Is there any list of repository or a easy way of searching for the right
 location with (groupid, artifactId and version)

 Thanks
 Jacob


 rob.winch wrote:
 
  Jacob,
 
  What spring dependency do you expect should add commons-dbcp.jar? I would
  look at its pom to see what it includes. You will not always get all the
  implementation dependencies. This is because you can use any number of
  drivers with spring (i.e. c3p0). Since spring (along with other
  frameworks)
  cannot guess which implementations you will be using they will not include
  them in their pom and thus they will not be included with the transitive
  dependencies.
 
  HTH
  Rob
 
  On Jan 29, 2008 11:34 AM, Jacob Bergoo [EMAIL PROTECTED] wrote:
 
 
  Hi All,
  I am new to Maven 2 but I am learning as fast as I can. My plan is to set
  up
  a project that is working with Spring 2.5.1, Tapestry 5, Hibernate
  3.2.5.ga,
  MySQL 5.0.
 
  This is what I have done so far:
  1) I have Created a project using Quickstart Archtype for Tapestry 5
  2) I have added Spring dep. to my pom.xml
  3) I have added MySQL connector tommy pom.xml
 
  Here Is my pom file:
  http://www.nabble.com/file/p15164882/pom.xml pom.xml
 
  When I try to run my application (I have just added a simple
  applicationContext-persistence.xml just to check that I have all the
  needed
  jar files and that the server can connect to the database :
  http://www.nabble.com/file/p15164882/applicationContext-Persistence.xml
  applicationContext-Persistence.xml )
  the server (jetty) show this error:
 
  org.springframework.web.context.ContextLoader.initWebApplicationContext(
  ContextLoader.java:215)
  09 Context initialization failed
  org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
  find
  class [org.apache.commons.dbcp.BasicDataSource] for bean with name
  'dataSource' defined in ServletContext resource
  [/WEB-INF/applicationContext-Persistence.xml]; nested exception is
  java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource
 at
 
  org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass
  (AbstractBeanFactory.java:1173)
 at
 
  org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType
  (AbstractAutowireCapableBeanFactory.java:479)
 at
 
  org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean
  (AbstractBeanFactory.java:787)
 at
 
  org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
  (DefaultListableBeanFactory.java:393)
 at
 
  org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization
  (AbstractApplicationContext.java:736)
 at
  org.springframework.context.support.AbstractApplicationContext.refresh(
  AbstractApplicationContext.java:369)
 at
  org.springframework.web.context.ContextLoader.createWebApplicationContext(
  ContextLoader.java:261)
 at
  org.springframework.web.context.ContextLoader.initWebApplicationContext(
  ContextLoader.java:199)
 at
  org.springframework.web.context.ContextLoaderListener.contextInitialized(
  ContextLoaderListener.java:45)
 at
  org.mortbay.jetty.servlet.WebApplicationContext.doStart(
  WebApplicationContext.java:495)
 at org.mortbay.util.Container.start(Container.java:72)
  ...
 
  My question is:
  1) I thought that Maven2 download all the dependencies that a jar file
  uses,
  here it seems that I need commons-dbcp.jar but I didn't got that when I
  added Spring as a dependency. Do I need to add the dependency myself?
  2) in http://repo1.maven.org/maven2/org/apache/commons/ there is no
  commons-dbcp! Where can I find this?
  3)Is there a list of the most common repositories so I can know where to
  look for my dependencies
  4) Have anybody else set upp this combination of frameworks and are
  willing
  to share the pom.xml so I as a beginner can see the configurations?
 
  Thanks in advance for any inputs, comments, help
 
  Jacob
 
 
  --
  View this message in context:
  http://www.nabble.com/Need-Help-Getting-Started-with-Maven-2-tp15164882s177p15164882.html
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  

cannot find maven artifact

2008-01-29 Thread Martin Gainty

attempting to build maven-plugin-parent

mvn -e install:installFile

Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/7/maven-plugins-7.pom
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-plugins
Version: 7

any ideas what is causing this error?

Help!!!
M-


Re: Conflicting Jar Names

2008-01-29 Thread Jeff MAURY
Steve,

you can change the name of the JAR being generated through the finalName
tag: it specifies the name of the file being generated. By default, it is
equal to ${artifactId}-${version}.${packaging} so you may change it to:
${groupId}-${artifactId}-${version}.${packaging} for your purpose.

Jeff


On Jan 29, 2008 7:04 PM, Lee Meador [EMAIL PROTECTED] wrote:

 1 isn't going to work because of how Maven finds files in the repo by
 tracing down the file system path based on the group id and then going
 down
 the path some more based on the artifact id and expecting the jar file to
 have a matching name.

 The real solution is to change the artifactId, which you said would be
 error
 prone. It sounds like what you have is error prone already since your
 build
 process is having trouble telling jar files with the same name apart.

 Sorry for no good news. Maybe someone else know more about it than i do.

 -- Lee

 On Jan 29, 2008 10:45 AM, Steve Found [EMAIL PROTECTED] wrote:

  Hi all,
 
  I have two  separate systems that I build using maven.
 
  One has groupId:com.volantis.synergetics artifactId:repository-api
  version:5.0-SNAPSHOT.  This system consists of around 50 artifacts.
 
  The second has groupId:com.volantis.mcs  artifactId:repository-api
  version:5.0-SNAPSHOT. This system consists of around 150 artifacts.
 
  When I come to build an installer, the jar files are all copied into a
  packaging directory, but as you can probably see, both jar files will be
  called repository-api-5.0-SNAPSHOT.jar. Consequently, the second jar
  will overwrite the first.
 
  Now I could go and change all the artifactId's for this, but given that
  there are many more than just 2 systems in the project this would be
  very time consuming and prone to error.
 
  What I want to do therefore is either :
 
  1. Be able to set the name of the jar file when 'mvn install' installs
  the generated jar the repository so that the jar files do not conflict
  when the installer resolves it's dependancies. I tried setting the name
  of the generated jar from each subsystem pom, but this was lost when the
  jar was installed.
 
  2. Be able to change the name of the jar when the dependancy is resolved
  but without adding each and every dependancy to the installer POM. For
  example... can I prepend volantis-synergetics- to every jar file that
  has a groupId of com.volantis.synergetics ? In the above example then I
  would get volantis-synergetics-repository-api.5.0-SNAPSHOT.jar and
  volantis-mcs-repository-api.5.0-SNAPSHOT.jar.
 
  Is there any way I can achieve these things through the install or
  dependancy plugins ?
 
  Regards,
 
Steve.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 -- Lee Meador
 Sent from gmail. My real email address is lee AT leemeador.com




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

Miossec (2006)

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


Re: multi-module/subproject projects with interdependencies

2008-01-29 Thread Wayne Fay
If you have parent, modules, and dependencies tags set up
properly in the various poms, this should all just work. There's a
ton of us who are doing exactly this day in and day out.

I think you've got something wrong in your poms. If you can't figure
it out, feel free to post them on pastebin.org and someone will
probably take a look, no guarantees of course. ;-)

Wayne

On 1/29/08, Rob McAuliffe [EMAIL PROTECTED] wrote:
 Hi,

 I'm trying to get a project which has multiple modules to compile at the
 top level.   Some of my submodules have dependencies on each other - eg
 i have A B and C submodules, and C depends on B, but A doesn't.
 Currently when I run mvn package from the top level project, each
 subproject/submodule gets built, but it fails on the ones that depend on
 their peers (eg. fails on C in previous example)  saying that it can't
 find the jar.  I can obviously jump into the directory and run an
 'install', but that's not neat, or I can run mvn install package, but
 that's not massively neat either.

 This is part of a larger attempt to get the whole build process
 integrated across multiple projects stored in separate locations in
 version control, so I really need an automated solution.

 Is there an existing approach/recommended best way to do this?

 Thanks,

 Rob

 -
 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 multi-project site build is broken

2008-01-29 Thread Mick Knutson
We use XML beans but we use plugin management in the main pom.xml, the:

  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdxmlbeans-maven-plugin/artifactId
  /plugin

for the few modules that actually need the create our xml bean.
Are you doing that?

Also, we group our xmlbean modules together and do not run them everytime we
build unless there is a change to the code.
Takes way too long otherwise.


On Jan 29, 2008 1:08 PM, Dennis Lundberg [EMAIL PROTECTED] wrote:

 It might be so, but the title of your mail M2 multi-project site build
 is broken is not going to attract people who knows about running tests...

 VUB Stefan Seidel wrote:
  Ok, but what about the Surefire tests being run way too often? Is this
  not a more general error?
 
  Stefan
 
  Dennis Lundberg wrote:
  This sounds like something to report in JIRA for the xmlbeans plugin.
 
  http://jira.codehaus.org/browse/MXMLBEANS
 
  VUB Stefan Seidel wrote:
  Hi,
 
  I don't know if anyone else noticed this, but the mvn site keeps on
  getting worse. It first started out with the following phenomenon:
  during site build, for each project _all_ the projects were iterated,
  usually saying
  [INFO] No goals needed for project - skipping
  Then, we started using xmlbeans and it started doing xmlbeans:xmlbeans
  for each project. And now, it executes _all_ the tests of _all_
 project
  for _each_ project. Well, you can imagine that this is pretty much
  undoable for a project like ours with 150+ modules.
 
  Here some sample outputs from the attached project (1 parent, 2
 modules,
  1 test per module)
 mvn clean site | grep Running | wc -l
  6
  --- this means the two tests are executed 3 times each!!
 
 mvn clean site | grep xmlbeans | wc -l
  29
  --- this means, xmlbeans is being executed 26 times, 9 times per
  project!!!
 
  Hello? Is anyone _using_ maven 2  site generation? This situation is
  that it is becoming totally unusable. The problem is, I don't even
 know
  where to report the bug, because it seems to be a combination of bugs.
 
 
  regards,
 
  Stefan Seidel
 
  P.S.: I have removed the attached project, to see whether this is
  causing the apache mail server to reject my mail. You can find it at
  http://stefanseidel.info/mvnexec.zip
 
 
 
 


 --
 Dennis Lundberg

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




-- 
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---


ldaps authentication

2008-01-29 Thread deckrider
Hello,

I'm also trying to setup continuum and archiva to work with ldaps.  We
already do this with apache/subversion as follows in this small
example excerpt of our httpd.conf:

LDAPTrustedGlobalCert CA_BASE64 /opt/apache2/etc/ldap.pem
LDAPVerifyServerCert Off

AuthType Basic
AuthName Email Address / Password (https://auth.foo.com/)
AuthBasicProvider ldap
AuthLDAPURL 
ldaps://ldapssl.foo.com:2636/o=corp?corpLHS?sub?(objectclass=corpPerson)
LimitExcept GET PROPFIND OPTIONS REPORT
Require ldap-user jane.doe
Require ldap-user john.smith
/LimitExcept

How can I translate this into configuration for archiva and continuum?

Thanks in advance!


Re: A Hello World in ejb3

2008-01-29 Thread Jacek Laskowski
On Jan 29, 2008 4:14 PM, Angelo Chen [EMAIL PROTECTED] wrote:

 I checked out the source code
 2. mvn install
 then i got this error:

 [INFO] artifact org.apache.geronimo.buildsupport:car-maven-plugin: checking
 for updates from codehaus
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] The plugin 'org.apache.geronimo.buildsupport:car-maven-plugin' does
 not exist or no valid version could be found

Hi,

I believe you downloaded the samples of Geronimo from
https://svn.apache.org/repos/asf/geronimo/samples/trunk, didn't you?
If so, the issue was resolved yesterday so you should check out
yesterday's changes and give it a whirl again. It should build and
work fine.

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

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



Re: proxied repositories -- plugin question

2008-01-29 Thread Eric Miles
The one in the Dev Java Net repo looks like this:
metadata
groupIdorg.jvnet.jaxb2.maven2/groupId
artifactIdmaven-jaxb2-plugin/artifactId
version0.1/version
versioning
latest0.5/latest
release0.5/release
versions
version0.1/version
version0.2/version
version0.4/version
version0.4.M1/version
version0.4.M2/version
version0.4.M3/version
version0.5/version
/versions
lastUpdated20071215123957/lastUpdated
/versioning
/metadata

The one in archiva looks like this:
metadata
groupIdorg.jvnet.jaxb2/groupId
artifactIdmaven2/artifactId
versionmaven-jaxb2-plugin/version
versioning
lastUpdated20071215123957/lastUpdated
/versioning
/metadata

On Tue, 2008-01-29 at 13:51 -0700, Wendy Smoak wrote:
 On Jan 29, 2008 1:44 PM, Eric Miles [EMAIL PROTECTED] wrote:
  Figured out my problem although not sure why it's NOT a problem when I
  don't use Archiva.  This particular plugin (and no others) requires that
  I specify the version in order for the dependency to be downloaded.
  This isn't desirable as I'd like to have the upgrades to the plugins
  when they happen, however this is a workaround.
 
  Is this particular plugin deployed incorrectly?  Is that why
  archiva/maven can not find the correct current version information?
 
 I'm curious, what does the maven-metadata.xml file look like through
 Archiva?  Does it match what you see in the remote repo?
 
 (If it's missing the 'latest' and/or 'release' elements for a plugin,
 Maven will complain.)
 
 FWIW, specifying the plugin version is a best practice to help ensure
 reproducible builds.
 


Re: Parent project version

2008-01-29 Thread Mick Knutson
That did not work on the parent:
parent
groupIdorg.delta.esp.dap.eep/groupId
artifactIdcommon/artifactId
*version${project.version}/version*
relativePath../pom.xml/relativePath
/parent


Still gives errors saying:

*Reason: Unable to download the artifact from any repository

  org.delta.esp.dap.eep:common:pom:${project.version}

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




On Jan 29, 2008 12:28 PM, Rune Flobakk [EMAIL PROTECTED] wrote:

 We're doing just that on the project I am working on; no version
 specified in the child POMs, and it gets inherited from the parent POM.

 So since the child modules get the version implicitly, it should work
 just referring to ${project.version}? (haven't tried it myself)

 -Rune

 Erez Nahir wrote:
  IMHO it should even be easier, just remove the version tag from the
 child
  poms.
  It will inherit the version from the parent.
 
  Erez.
 
  On Jan 29, 2008 9:52 PM, Manos Batsis [EMAIL PROTECTED]
 wrote:
 
  I never actually managed to do that. IMHO that should be as easy as
 
  version${project.parent.version}/version
 
  Oh well :-)
 
  Cheers,
 
  Manos
 
  Mick Knutson wrote:
  I am actually trying to use a property:
 
  org.delta.esp.dap.version1.0.2/org.delta.esp.dap.version
 
  Then use that property in my child pom's:
 
  ${org.delta.esp.dap.version}
 
  When I do an install and deploy it seems to work, but when I am doing
 a
  site-deploy, the parameter is not found and I get errors.
 
  Is there a better way?
 
 
 
  On Jan 29, 2008 10:23 AM, Arthur Rodrigues Stilben 
  [EMAIL PROTECTED] wrote:
 
  Is there a way to use the version of a parent project in its
 childrens
  projects?
 
  Arthur Rodrigues Stilben
 
  -
  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]




-- 
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---


OutOfMemoryError when running javadoc:javadoc

2008-01-29 Thread Ryan H.
Hello,

I'm getting OutOfMeoryError when running javadoc:javadoc to generate an
aggregated javadoc for multiple projects, even given with these options. Any
solution to this problem?

minmemory512/minmemory

maxmemory1024/maxmemory

Thanks

Ryan


Re: proxied repositories -- plugin question

2008-01-29 Thread Eric Miles
Figured out my problem although not sure why it's NOT a problem when I
don't use Archiva.  This particular plugin (and no others) requires that
I specify the version in order for the dependency to be downloaded.
This isn't desirable as I'd like to have the upgrades to the plugins
when they happen, however this is a workaround.

Is this particular plugin deployed incorrectly?  Is that why
archiva/maven can not find the correct current version information?

Thanks!
Eric
On Tue, 2008-01-29 at 10:00 -0500, Eric Miles wrote:
 I have a managed repository that I intend to use as a proxy for several
 remote repositories.  I'm doing a test and can't get the proxy to
 resolve a plugin dependency to save my life.  It will however resolve
 regular dependencies to same remote repository.  I am attempting to
 proxy the Dev Java Net remote repoistory.
 
 Here is my pom:
 
 ?xml version=1.0 encoding=UTF-8?
 project xmlns=http://maven.apache.org/POM/4.0.0;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;
   modelVersion4.0.0/modelVersion
   groupIdarchiva-test/groupId
   artifactIdarchiva-test/artifactId
   version0.0.1-SNAPSHOT/version
   description/description
   dependencies
   dependency
   groupIdorg.j4j/groupId
   artifactIdj4j/artifactId
   version1.0/version
   /dependency
   dependency
   groupIdjavax.xml.bind/groupId
   artifactIdjaxb-api/artifactId
   version2.1/version
   scopecompile/scope
   /dependency
   dependency
   groupIdorg.jtb/groupId
   artifactIdquickr/artifactId
   version0.8/version
   /dependency
   /dependencies
   repositories
   repository
   idproxied/id
   url
   http://myproxyserver/archiva/repository/proxied
   /url
   /repository
   /repositories
   pluginRepositories
   pluginRepository
   idproxied/id
   url
   http://myproxyserver/archiva/repository/proxied
   /url
   /pluginRepository
   /pluginRepositories
   build
   resources
   resource
   filteringtrue/filtering
   directorysrc/main/resources/directory
   /resource
   /resources
   plugins
   plugin
   groupIdorg.jvnet.jaxb2.maven2/groupId
   artifactIdmaven-jaxb2-plugin/artifactId
   executions
   execution
   goals
   goalgenerate/goal
   /goals
   /execution
   /executions
   configuration
   schemaIncludes
   
 schemaInclude**/*.xsd/schemaInclude
   /schemaIncludes
   extensiontrue/extension
   /configuration
   /plugin
   /plugins
   /build
 /project
 
 I have no problems resolving and proxying quickr and j4j dependencies,
 but I get the following error for the jaxb2 maven plugin:
 
 $ mvn clean package
 [INFO] Scanning for projects...
 [INFO]
 
 [INFO] Building Unnamed - archiva-test:archiva-test:jar:0.0.1-SNAPSHOT
 [INFO]task-segment: [clean, package]
 [INFO]
 
 [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking
 for updates from proxied
 [INFO] artifact org.jvnet.jaxb2.maven2:maven-jaxb2-plugin: checking for
 updates from proxied
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] The plugin 'org.jvnet.jaxb2.maven2:maven-jaxb2-plugin' does not
 exist or no valid version could be found
 [INFO]
 
 [INFO] For more information, run Maven with the -e switch
 [INFO]
 
 [INFO] Total time: 1 second
 [INFO] Finished at: Tue Jan 29 

FW: Archetype descriptor failing to see some files

2008-01-29 Thread Keener, Steve
resend, I think it bounced.
 



From: Keener, Steve 
Sent: Tuesday, January 29, 2008 4:55 PM
To: 'users@maven.apache.org'
Subject: Archetype descriptor failing to see some files


I'm trying to create a relatively simple archetype for creating JAXWS
webservice projects.  I'd like to make them boilerplate for our uses.
I'm trying to create the archtype incrmentally to verify that it's
working.  Well...it's partially working.
 
I have two issues:
 
1.  The resource files are not appearing. (The two xml files)
2.  I would like to add a webservice-build.xml file to the top of the
project to allow generation of webservice artifacts.  How do I designate
that as the delivery directory?
 
The archetype.xml file is listed below.  
 
Yes I have spent hours looking for a solution, resonable example, etc.
Using maven 2 I haven't found one that works correctly for a fairly
common need.
 
Thanks for any hlpe you can give me!!!
 
Steve Keener
 

---
archetype

idWebServiceArchetype/id

sources

sourcesrc/main/java/placeholder.txt/source

sourcesrc/main/java/gensrc/placeholder.txt/source

/sources

resources

resourcesrc/main/webapp/WEB-INF/sun-jaxws.xml/resource

resourcesrc/main/webapp/WEB-INF/web.xml/resource

/resources

testSources

sourcesrc/test/java/placeholder.txt/source

/testSources

testResources

resourcesrc/test/resources/placeholder.txt/resource

/testResources

allowPartialtrue/allowPartial

/archetype



Javadoc:jar error: Not executing Javadoc as the project is not a Java classpath-capable package

2008-01-29 Thread Ryan H.
Hello,

Anyone knows what this javadoc:jar complains about? I'm able to run
javadoc:javadoc in aggregate mode (ie. generate only one report for
all multiple projects). However, when I run javadoc:jar, it starts
complaining it ...

[INFO] [javadoc:jar]
[INFO] Not executing Javadoc as the project is not a Java classpath-capable
package

Thanks
Ryan


Using maven-surefire-report-plugin

2008-01-29 Thread Insitu
Hello,
I ran into some problem using maven-surefire-report-plugin. I want to
use this plugin to format a report which is custom generated by
another plugin. I did the following:

?xml version=1.0 encoding=UTF-8?
project  xmlns=http://maven.apache.org/POM/4.0.0; 
  build
  plugins
   plugin
groupIdnet.courtanet/groupId
artifactIdmaven-benefit-mozunit-plugin/artifactId
configuration
 testFile${basedir}/../tests/core/testFile
/configuration
   /plugin
   plugin
artifactIdmaven-surefire-report-plugin/artifactId
   /plugin   
  /plugins
 /build
/project

but nothing get generated with $ mvn site 

The following doesn't work either:

?xml version=1.0 encoding=UTF-8?
project  xmlns=http://maven.apache.org/POM/4.0.0; 
  build
  plugins
   plugin
groupIdnet.courtanet/groupId
artifactIdmaven-benefit-mozunit-plugin/artifactId
configuration
 testFile${basedir}/../tests/core/testFile
/configuration
   /plugin
  /plugins
 /build
 reporting
  plugins
   plugin
artifactIdmaven-surefire-report-plugin/artifactId
   /plugin   
  /plugins
 /reporting
/project

When I do 

$ mvn surefire-report:report

My HTML report get generated but without meaningful decoration.

I also tried configure surefire-plugin to use goal report-only,
without success.

I would be happy if someone could shed some light on this small issue.

Best regards,
-- 
Arnaud Bailly, PhD
OQube - Software Engineering
http://www.oqube.com


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



Re: Parent project version

2008-01-29 Thread Mick Knutson
I can comment out the modules version just fine then, but the parent:

parent
groupIdorg.delta.esp.dap.eep/groupId
artifactIdservices/artifactId
version1.0.2/version
relativePath../pom.xml/relativePath
/parent



Still is complaining if I do not have the version.
I also tried ${org.delta.esp.dap.eep.version} as the version but it could
not find it.




On Jan 29, 2008 12:11 PM, Erez Nahir [EMAIL PROTECTED] wrote:

 IMHO it should even be easier, just remove the version tag from the
 child
 poms.
 It will inherit the version from the parent.

 Erez.

 On Jan 29, 2008 9:52 PM, Manos Batsis [EMAIL PROTECTED] wrote:

 
  I never actually managed to do that. IMHO that should be as easy as
 
  version${project.parent.version}/version
 
  Oh well :-)
 
  Cheers,
 
  Manos
 
  Mick Knutson wrote:
   I am actually trying to use a property:
  
   org.delta.esp.dap.version1.0.2/org.delta.esp.dap.version
  
   Then use that property in my child pom's:
  
   ${org.delta.esp.dap.version}
  
   When I do an install and deploy it seems to work, but when I am doing
 a
   site-deploy, the parameter is not found and I get errors.
  
   Is there a better way?
  
  
  
   On Jan 29, 2008 10:23 AM, Arthur Rodrigues Stilben 
   [EMAIL PROTECTED] wrote:
  
   Is there a way to use the version of a parent project in its
 childrens
   projects?
  
   Arthur Rodrigues Stilben
  
   -
   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]
 
 




-- 
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---


Re: Parent project version

2008-01-29 Thread Erez Nahir
IMHO it should even be easier, just remove the version tag from the child
poms.
It will inherit the version from the parent.

Erez.

On Jan 29, 2008 9:52 PM, Manos Batsis [EMAIL PROTECTED] wrote:


 I never actually managed to do that. IMHO that should be as easy as

 version${project.parent.version}/version

 Oh well :-)

 Cheers,

 Manos

 Mick Knutson wrote:
  I am actually trying to use a property:
 
  org.delta.esp.dap.version1.0.2/org.delta.esp.dap.version
 
  Then use that property in my child pom's:
 
  ${org.delta.esp.dap.version}
 
  When I do an install and deploy it seems to work, but when I am doing a
  site-deploy, the parameter is not found and I get errors.
 
  Is there a better way?
 
 
 
  On Jan 29, 2008 10:23 AM, Arthur Rodrigues Stilben 
  [EMAIL PROTECTED] wrote:
 
  Is there a way to use the version of a parent project in its childrens
  projects?
 
  Arthur Rodrigues Stilben
 
  -
  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]




  1   2   >