Re: Best practice for handling multi-modules version numbers

2008-06-24 Thread David Williams
Hey Mick,

I have found that what you list under depedencyManagement in parent pom
has to match exactly was is in the module pom.  For example if the module
pom contains a packaging tag you have to include that in the parent pom
with the type tag. I ran into this problem with ejbs.

Parent Pom
dependencyManagement
   dependencies
   dependency
   groupIdmyejb/groupId
   artifactIdmyejb/artifactId
   version1.0/version
   typeejb/type
   /dependency
   /dependencies
/dependencyManagement

Module Pom
dependencies
dependency
groupIdmyejb/groupId
artifactIdmyejb/artifactId
packagingejb/packaging
 /dependency
/dependencies

David

On Tue, Jun 24, 2008 at 10:06 AM, Mick Knutson [EMAIL PROTECTED]
wrote:

 I have tried that, but some strange unknown reason sometimes, I get version
 not found errors on some jars. Random. So I just added it to each of them,
 but the property in 1 place and I don't get the errors anymore



 On Tue, Jun 24, 2008 at 7:57 AM, De Smet Ringo 
 [EMAIL PROTECTED] wrote:

  Mick,
 
   -Original Message-
   From: Mick Knutson [mailto:[EMAIL PROTECTED]
   Subject: Re: Best practice for handling multi-modules version numbers
  
   Are you referring to your module versions, or dependency versions?
  
   I user properties spring.versionxyz
  
   then add ${spring.version} to my dependencies in each of my modules.
  
   For my modules, That is just manual labor for me.
 
  Why do you add the version property to each of your modules?
 
  We use a parent pom like below, where all the information of a
  dependency is added to the dependencyManagement tag:
 
  ?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
 groupIdbe.telenet/groupId
 artifactIdmain/artifactId
 packagingpom/packaging
 version1.0-SNAPSHOT/version
 nameMain Project/name
 
 dependencyManagement
 dependencies
 
 dependency
 groupIdjunit/groupId
 artifactIdjunit/artifactId
 version${ver-junit}/version
 scopetest/scope
 /dependency
 
 /dependencies
 /dependencyManagement
 
 properties
 ver-junit3.8.1/ver-junit
 /properties
  /project
 
  In the project POM's, I only use the groupId and artifactId of the
  dependency. The rest is resolved via the information in the
  dependencyManagement tag of the parent pom:
 
  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/xsd/maven-4.0.0.xsd;
 
 modelVersion4.0.0/modelVersion
 groupIdbe.telenet/groupId
 artifactIdsomeproject/artifactId
 packagingjar/packaging
 version1.0-SNAPSHOT/version
 namesomeproject/name
 
 parent
 groupIdbe.telenet/groupId
 artifactIdmain/artifactId
 version1.0-SNAPSHOT/version
 /parent
 
 dependencies
 dependency
 groupIdjunit/groupId
 artifactIdjunit/artifactId
 /dependency
 /dependencies
  /project
 
  Works like a charm!
 
  Ringo
  *
 
  Dit e-mail bericht inclusief eventuele ingesloten bestanden kan
 informatie
  bevatten die vertrouwelijk is en/of beschermd door intellectuele
  eigendomsrechten. Dit bericht is uitsluitend bestemd voor de
  geadresseerde(n). Elk gebruik van de informatie vervat in dit bericht
  (waaronder de volledige of gedeeltelijke reproductie of verspreiding
 onder
  elke vorm) door andere personen dan de geadresseerde(n) is verboden.
 Indien
  u dit bericht per vergissing heeft ontvangen, gelieve de afzender hiervan
 te
  verwittigen en dit bericht te verwijderen.
 
  This e-mail and any attachment thereto may contain information which is
  confidential and/or protected by intellectual property rights and are
  intended for the sole use of the addressees. Any use of the information
  contained herein (including but not limited to total or partial
 reproduction
  or distribution in any form) by other persons than the addressees is
  prohibited. If you have received this e-mail in error, please notify the
  sender and delete its contents.
 
  Ce courriel et les annexes éventuelles peuvent contenir des informations
  confidentielles et/ou protégées par des droits de propriété
 intellectuelle.
  Ce message est adressé exclusivement à son (ses) 

Maven Install Plugin Overwrites Custom Artifact Names

2008-03-11 Thread David Williams
Hi Everyone,

I got a quick question.  Is it by design that the install plugin overwrite a
custom build finalName and installed the artifact with the name  listed in
the artifactId tag?

Thanks,

David


Re: Compile issues after upgrading from Maven 2.0.6

2008-02-22 Thread David Williams
Hi Everyone,

I found the root of this problem.  For some reason the ClassPath order
changed in Maven 2.0.7 and Maven 2.0.8 and it exposed that an older version
of  the servlet-api code was being pulled as a dependency.  In 2.0.7 and
2.0.8, the older version shows up first and causes the failure.  It took me
a little while to find this because the jars were not named the same.

Thanks,

David

On Tue, Feb 5, 2008 at 10:44 AM, Wayne Fay [EMAIL PROTECTED] wrote:

 Create a sample project jar that demonstrates the problem and attach
 it to a new JIRA issue.

 Wayne

 On 2/5/08, David Williams [EMAIL PROTECTED] wrote:
  Hi Everyone,
 
  I have seen this twice now so I thought I would throw this out and see
 if
  anyone else had seen this problem.  We have two projects that compile
 fine
  with Maven 2.0.6 that does not with Maven 2.0.7 nor Maven 2.0.8.  In
 both
  cases it is a cannot find symbol error.
 
  In the first instance, the problem was the *tomcat/jsp-api/5.0.18/jsp-
  api-5.0.18.jar* and the *tomcat/servlet-api/5.0.18/servlet-
 api-5.0.18.jar*.
 
 
  The second instance is with the *
  org/apache/myfaces/core/myfaces-api/1.2.2/myfaces-api-1.2.2.jar *and* **
  org/apache/myfaces/core/myfaces-impl/1.2.2/myfaces-impl-1.2.2.jar
 
  *I checked the the correct version of the jar is on the classpath and
 again
  everything works fine with Maven 2.0.6.  Has anyone seen anything like
 this?
 
  Thanks for your help,
 
  David
 

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




Compile issues after upgrading from Maven 2.0.6

2008-02-05 Thread David Williams
Hi Everyone,

I have seen this twice now so I thought I would throw this out and see if
anyone else had seen this problem.  We have two projects that compile fine
with Maven 2.0.6 that does not with Maven 2.0.7 nor Maven 2.0.8.  In both
cases it is a cannot find symbol error.

In the first instance, the problem was the *tomcat/jsp-api/5.0.18/jsp-
api-5.0.18.jar* and the *tomcat/servlet-api/5.0.18/servlet-api-5.0.18.jar*.


The second instance is with the *
org/apache/myfaces/core/myfaces-api/1.2.2/myfaces-api-1.2.2.jar *and* **
org/apache/myfaces/core/myfaces-impl/1.2.2/myfaces-impl-1.2.2.jar

*I checked the the correct version of the jar is on the classpath and again
everything works fine with Maven 2.0.6.  Has anyone seen anything like this?

Thanks for your help,

David


Re: [m2] SSL certificate name does not match

2007-10-19 Thread David Williams
Adrian,

I don't know if you have already done this or not but I wanted to tell you
anyway just in case.  I have Java 1.5.0_12 installed on my machine.  When it
was installed, it installed the JDK and JRE directories as listed below.

C:\jdk1.5.0_12
C:\jre1.5.0_12

I first copied the jssecacert file to the
C:\jre1.5.0_12\lib\securitydirectory but that didn't fix the problem.
I then copied the file to the
C:\jdk1.5.0_12\jre\lib\security directory and that worked. Again, this most
likely won't help but I wanted to post it just in case.

David

On 10/13/07, Adrian Herscu [EMAIL PROTECTED] wrote:

 Hi David,

 Thanks for your reply.
 I checked that blog; however the solution described there seems to
 belong to other problem:

 snip
 javax.net.ssl.SSLHandshakeException:
 sun.security.validator.ValidatorException: PKIX path building failed:
 sun.security.provider.certpath.SunCertPathBuilderException: unable to
 find valid certification path to requested target
 [This happens] when trying to open an SSL connection to a host using
 JSSE. What this usually means is that the server is using a test
 certificate (possibly generated using keytool) rather than a certificate
 from a well known commercial Certification Authority such as Verisign or
 GoDaddy. Web browsers display warning dialogs in this case, but since
 JSSE cannot assume an interactive user is present it just throws an
 exception by default.
 /snip

 Because I am somewhat desperate, I have tested that program. It seems to
 do what the standard keytool does... I copied the generated jssecacert
 file into my ${jre.home}/lib/security directory and hoped for the
 best... But it didn't happen :-( I checked that the file was read using
 a file monitor, and it was read.

 It seems that the solution could only be provided by applications (

 http://java.sun.com/javase/6/docs/technotes/guides/security/jsse/JSSERefGuide.html#ciphersuitechoice
 ).
 In this case, Maven should provide the option to override the default
 host name checking algorithm with a do-nothing one.

 Adrian.

 David Williams wrote:
  Sorry it was late when I replied. = )  Here's the link
  http://blogs.sun.com/andreas/entry/no_more_unable_to_find
 
  On 10/11/07, Adrian Herscu [EMAIL PROTECTED] wrote:
  Yeah... Where is the link :-)?
 
  I tried to play with the keytool program. I have imported the SSL
  certificate into my key store; this creates a file named .keystore in
  C:\Documents and Settings\me. I tried to run Maven and DAVExplorer;
  their behavior did not change :-(
 
  Now the weird things:
 
  1. I have monitored the file access to the .keystore file. When I am
  running keytool -list the .keystore file is accessed (seems like my
 file
  monitoring program works). When I am running Maven or DAVExplorer, the
  .keystore file is not accessed at all!
  2. Maven is able to upload files to my WebDAV server! If I am building
  all my modules locally, then I can run mvn deploy and the files are
  uploaded!!!
 
  Adrian.
 
  Tim Kettler wrote:
  Where's the link :-)?
 
  David Williams schrieb:
  Adrian,
 
  This link may help you.  This java program allows you to manually
  accept the
  cert and place the generated file in your JDK or JRE.  Then the java
  keeps
  it as an accept cert.  I have not tried this with Maven but it worked
  with
  another application where the cert didn't match the server
 name.  Down
  side
  is that it would have to be on every user's machine.
 
  Thanks,
 
  David
 
  On 10/10/07, Adrian Herscu [EMAIL PROTECTED] wrote:
  Hi all,
 
  I am hosting my project sources and binaries with some external
  provider. He cannot set up an SSL certificate for my domain name...
  Meanwhile, the only alternative is accept those SSL warnings about
  domain name mismatch. I am getting them in my browser and also in my
  SVN
  client.
  Now I am trying to set up Maven to build and deploy my project to
 this
  provider. The problem is that I am getting these messages from
 Maven:
 
  snip
  [WARNING] repository metadata for: 'snapshot
  org.wirexn.build.extensions:wirexn-
  build-extensions:1.0-alpha-4-SNAPSHOT' could not be retrieved from
  repository: s
  [EMAIL PROTECTED] due to an error: Error transferring file
  [INFO] Repository '[EMAIL PROTECTED]' will be blacklisted
  /snip
 
  ...and the artifacts cannot be resolved (of course).
 
  I tried to see if this is a JRE specific problem. Downloaded a
  Java-based WebDAV client (DAVExplorer), and it fails to connect with
  this error message:
 
  javax.net.ssl.SSLException: Name in certificate his.domain.name
 does
  not match host name  my.domain.name
 
  Anyone knows about a hidden switch/option/configuration file to make
  the
  JRE accept the SSL connection even if the host name doesn't match to
  that on the certificate?
 
  Please help,
  Adrian.
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED

Maven Command Line Switches

2007-10-12 Thread David Williams
Is there a place that all the Maven command line switches are explained?  I
know a few but it would be good to have a complete list.

Thanks,

David


Re: [m2] SSL certificate name does not match

2007-10-11 Thread David Williams
Sorry it was late when I replied. = )  Here's the link
http://blogs.sun.com/andreas/entry/no_more_unable_to_find

On 10/11/07, Adrian Herscu [EMAIL PROTECTED] wrote:

 Yeah... Where is the link :-)?

 I tried to play with the keytool program. I have imported the SSL
 certificate into my key store; this creates a file named .keystore in
 C:\Documents and Settings\me. I tried to run Maven and DAVExplorer;
 their behavior did not change :-(

 Now the weird things:

 1. I have monitored the file access to the .keystore file. When I am
 running keytool -list the .keystore file is accessed (seems like my file
 monitoring program works). When I am running Maven or DAVExplorer, the
 .keystore file is not accessed at all!
 2. Maven is able to upload files to my WebDAV server! If I am building
 all my modules locally, then I can run mvn deploy and the files are
 uploaded!!!

 Adrian.

 Tim Kettler wrote:
  Where's the link :-)?
 
  David Williams schrieb:
  Adrian,
 
  This link may help you.  This java program allows you to manually
  accept the
  cert and place the generated file in your JDK or JRE.  Then the java
  keeps
  it as an accept cert.  I have not tried this with Maven but it worked
  with
  another application where the cert didn't match the server name.  Down
  side
  is that it would have to be on every user's machine.
 
  Thanks,
 
  David
 
  On 10/10/07, Adrian Herscu [EMAIL PROTECTED] wrote:
  Hi all,
 
  I am hosting my project sources and binaries with some external
  provider. He cannot set up an SSL certificate for my domain name...
  Meanwhile, the only alternative is accept those SSL warnings about
  domain name mismatch. I am getting them in my browser and also in my
 SVN
  client.
  Now I am trying to set up Maven to build and deploy my project to this
  provider. The problem is that I am getting these messages from Maven:
 
  snip
  [WARNING] repository metadata for: 'snapshot
  org.wirexn.build.extensions:wirexn-
  build-extensions:1.0-alpha-4-SNAPSHOT' could not be retrieved from
  repository: s
  [EMAIL PROTECTED] due to an error: Error transferring file
  [INFO] Repository '[EMAIL PROTECTED]' will be blacklisted
  /snip
 
  ...and the artifacts cannot be resolved (of course).
 
  I tried to see if this is a JRE specific problem. Downloaded a
  Java-based WebDAV client (DAVExplorer), and it fails to connect with
  this error message:
 
  javax.net.ssl.SSLException: Name in certificate his.domain.name does
  not match host name  my.domain.name
 
  Anyone knows about a hidden switch/option/configuration file to make
 the
  JRE accept the SSL connection even if the host name doesn't match to
  that on the certificate?
 
  Please help,
  Adrian.
 
 
  -
  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] SSL certificate name does not match

2007-10-10 Thread David Williams
Adrian,

This link may help you.  This java program allows you to manually accept the
cert and place the generated file in your JDK or JRE.  Then the java keeps
it as an accept cert.  I have not tried this with Maven but it worked with
another application where the cert didn't match the server name.  Down side
is that it would have to be on every user's machine.

Thanks,

David

On 10/10/07, Adrian Herscu [EMAIL PROTECTED] wrote:

 Hi all,

 I am hosting my project sources and binaries with some external
 provider. He cannot set up an SSL certificate for my domain name...
 Meanwhile, the only alternative is accept those SSL warnings about
 domain name mismatch. I am getting them in my browser and also in my SVN
 client.
 Now I am trying to set up Maven to build and deploy my project to this
 provider. The problem is that I am getting these messages from Maven:

 snip
 [WARNING] repository metadata for: 'snapshot
 org.wirexn.build.extensions:wirexn-
 build-extensions:1.0-alpha-4-SNAPSHOT' could not be retrieved from
 repository: s
 [EMAIL PROTECTED] due to an error: Error transferring file
 [INFO] Repository '[EMAIL PROTECTED]' will be blacklisted
 /snip

 ...and the artifacts cannot be resolved (of course).

 I tried to see if this is a JRE specific problem. Downloaded a
 Java-based WebDAV client (DAVExplorer), and it fails to connect with
 this error message:

 javax.net.ssl.SSLException: Name in certificate his.domain.name does
 not match host name my.domain.name

 Anyone knows about a hidden switch/option/configuration file to make the
 JRE accept the SSL connection even if the host name doesn't match to
 that on the certificate?

 Please help,
 Adrian.


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




mvn-qalabs-plugin

2007-09-19 Thread David Williams
Is anyone using this plugin and experiencing problems with the movers
report?  I can seem to get it to recognize that a report was ran previously
so it always has a - in the previously ran column.  I'm using
version 2.2of the plugin with Maven
2.0.6 and Java 1.5_12.

Thanks,

David


Re: Maven Hibernate Plugin with Maven2

2007-09-01 Thread David Williams
Thanks Tim.  I will.

David

On 9/1/07, Tim Kettler [EMAIL PROTECTED] wrote:

 You are right, the plugin website seems to be out of date. Have you
 looked at the hbm2ddl goal?

 You should ask specific questions about the plugin on the mojo-user list
 [1].

 -Tim

 [1] http://mojo.codehaus.org/mail-lists.html

 David Williams schrieb:
  Thanks Tim!!!  I tried to use the plugin but the schema-export goal
 doesn't
  exist in the 2.0-alpha-2.jar.  Do you have any suggestions?  In the
 meantime
  I'll look at the XDoclet plugin.
 
  Thanks,
 
  David
 
  On 8/31/07, Tim Kettler [EMAIL PROTECTED] wrote:
  Hi,
 
  here's the Maven2 plugin [1].
 
  -Tim
 
  [1] http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/
 
  David Williams schrieb:
  Hi Everyone,
 
  Is it possible to use the maven hibernate plugin with Maven2?  Is
 there
  a
  replacement for this Maven1 plugin?
 
  Thanks,
 
  David
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


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




Maven Hibernate Plugin with Maven2

2007-08-31 Thread David Williams
Hi Everyone,

Is it possible to use the maven hibernate plugin with Maven2?  Is there a
replacement for this Maven1 plugin?

Thanks,

David


Re: Maven Hibernate Plugin with Maven2

2007-08-31 Thread David Williams
Thanks Tim!!!  I tried to use the plugin but the schema-export goal doesn't
exist in the 2.0-alpha-2.jar.  Do you have any suggestions?  In the meantime
I'll look at the XDoclet plugin.

Thanks,

David

On 8/31/07, Tim Kettler [EMAIL PROTECTED] wrote:

 Hi,

 here's the Maven2 plugin [1].

 -Tim

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

 David Williams schrieb:
  Hi Everyone,
 
  Is it possible to use the maven hibernate plugin with Maven2?  Is there
 a
  replacement for this Maven1 plugin?
 
  Thanks,
 
  David
 


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




Re: Maven Assembly Plugin Error

2007-08-18 Thread David Williams
Ops.  Sorry about that.  Below is the dependencySets section of the assembly
descriptor.  The include lines will include the only what is in the line.
The format is groupID:artifactID

dependencySets
dependencySet
outputDirectorylib/outputDirectory
includes
includecommons-beanutils:commons-beanutils/include
includecommons-collections:commons-collections/include
includecommons-lang:commons-lang/include
includecommons-logging:commons-logging/include
includecommons-validator:commons-validator/include
includelog4j:log4j/include
/includes
/dependencySet
/dependencySets


On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote:

 So post the fix

 On 8/16/07, David Williams [EMAIL PROTECTED] wrote:
 
  Nevermind.  I figured it out.
 
  On 8/16/07, David Williams [EMAIL PROTECTED] wrote:
  
   I guess what I really want to do is filter out certain dependencies.
  
   Thanks Again,
  
   David
  
   On 8/16/07, David Williams  [EMAIL PROTECTED] wrote:
   
I've create a basic descriptor for the maven assembly plugin.  Which
works fine if I don't try to filter dependencies.  However when I
 try
  to add
some include lines, I get the following error.
   
[WARNING] The following patterns were never triggered in this
 artifact
inclusion filter:
o  'commons-beanutils-1.7.0.jar'
o  'commons-collections-3.1.jar'
o  'commons-lang-2.0.jar'
o  'commons-logging-1.0.4.jar'
   
[INFO]
   
  
[ERROR] BUILD ERROR
[INFO]
   
  
[INFO] Failed to create assembly: Error creating assembly archive:
 You
must set at least one file.
   
Here is my descriptor file.
   
assembly
idzip/id
formats
formatzip/format
/formats
baseDirectoryAdminDesktop/baseDirectory
dependencySets
dependencySet
outputDirectorylib/outputDirectory
includes
includecommons-beanutils-1.7.0.jar/include
include commons-collections-3.1.jar/include
includecommons-lang-2.0.jar/include
includecommons-logging-1.0.4.jar/include
/includes
/dependencySet
/dependencySets
/assembly
   
Thanks,
   
David
   
  
  
 



 --

 Thanks,
 Mick Knutson

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



Can you have Maven create a jar and a war for an artifact

2007-08-16 Thread David Williams
Hi Eveyone,

We currently create a war file for a certain artifact.  Now another group
has created an application that requires the first artifact to be a jar not
a war.  Is there any way to have maven create both a jar and a war for a
single artifact?

Thanks,

David


Can the Maven Assembly Plugin create an exe file

2007-08-16 Thread David Williams
Can the Maven Assembly Plugin create an exe file?

Thanks,

David


Maven Assembly Plugin Error

2007-08-16 Thread David Williams
I've create a basic descriptor for the maven assembly plugin.  Which works
fine if I don't try to filter dependencies.  However when I try to add some
include lines, I get the following error.

[WARNING] The following patterns were never triggered in this artifact
inclusion filter:
o  'commons-beanutils-1.7.0.jar'
o  'commons-collections-3.1.jar'
o  'commons-lang-2.0.jar'
o  'commons-logging-1.0.4.jar'

[INFO]

[ERROR] BUILD ERROR
[INFO]

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

Here is my descriptor file.

assembly
idzip/id
formats
formatzip/format
/formats
baseDirectoryAdminDesktop/baseDirectory
dependencySets
dependencySet
outputDirectorylib/outputDirectory
includes
includecommons-beanutils-1.7.0.jar/include
includecommons-collections-3.1.jar/include
includecommons-lang-2.0.jar/include
includecommons-logging-1.0.4.jar/include
/includes
/dependencySet
/dependencySets
/assembly

Thanks,

David


Re: Maven Assembly Plugin Error

2007-08-16 Thread David Williams
I guess what I really want to do is filter out certain dependencies.

Thanks Again,

David

On 8/16/07, David Williams [EMAIL PROTECTED] wrote:

 I've create a basic descriptor for the maven assembly plugin.  Which works
 fine if I don't try to filter dependencies.  However when I try to add some
 include lines, I get the following error.

 [WARNING] The following patterns were never triggered in this artifact
 inclusion filter:
 o  'commons-beanutils-1.7.0.jar'
 o  'commons-collections-3.1.jar'
 o  'commons-lang-2.0.jar'
 o  'commons-logging-1.0.4.jar'

 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Failed to create assembly: Error creating assembly archive: You
 must set at least one file.

 Here is my descriptor file.

 assembly
 idzip/id
 formats
 formatzip/format
 /formats
 baseDirectoryAdminDesktop/baseDirectory
 dependencySets
 dependencySet
 outputDirectorylib/outputDirectory
 includes
 includecommons-beanutils-1.7.0.jar/include
 include commons-collections-3.1.jar/include
 includecommons-lang-2.0.jar/include
 includecommons-logging-1.0.4.jar/include
 /includes
 /dependencySet
 /dependencySets
 /assembly

 Thanks,

 David



Re: Maven Assembly Plugin Error

2007-08-16 Thread David Williams
Nevermind.  I figured it out.

On 8/16/07, David Williams [EMAIL PROTECTED] wrote:

 I guess what I really want to do is filter out certain dependencies.

 Thanks Again,

 David

 On 8/16/07, David Williams  [EMAIL PROTECTED] wrote:
 
  I've create a basic descriptor for the maven assembly plugin.  Which
  works fine if I don't try to filter dependencies.  However when I try to add
  some include lines, I get the following error.
 
  [WARNING] The following patterns were never triggered in this artifact
  inclusion filter:
  o  'commons-beanutils-1.7.0.jar'
  o  'commons-collections-3.1.jar'
  o  'commons-lang-2.0.jar'
  o  'commons-logging-1.0.4.jar'
 
  [INFO]
  
  [ERROR] BUILD ERROR
  [INFO]
  
  [INFO] Failed to create assembly: Error creating assembly archive: You
  must set at least one file.
 
  Here is my descriptor file.
 
  assembly
  idzip/id
  formats
  formatzip/format
  /formats
  baseDirectoryAdminDesktop/baseDirectory
  dependencySets
  dependencySet
  outputDirectorylib/outputDirectory
  includes
  includecommons-beanutils-1.7.0.jar/include
  include commons-collections-3.1.jar/include
  includecommons-lang-2.0.jar/include
  includecommons-logging-1.0.4.jar/include
  /includes
  /dependencySet
  /dependencySets
  /assembly
 
  Thanks,
 
  David
 




Re: Java Doc Question

2007-08-11 Thread David Williams
Thanks for your response Adam.  I ended up using the excludePackageNames
tag.

David

On 8/2/07, Adam Hardy [EMAIL PROTECTED] wrote:

 David Williams on 02/08/07 19:57, wrote:
  Hi Everyone,
 
  I have a odd situation here.  I run maven 2.0.6 on multi-module project.
  One of those projects wants to include the java docs for several but not
 all
  of the other projects.  What would be the best way to get the generated
 java
  docs from the aggragrate/parent pom the the sub-project that needs it?


   The easy part is to configure the javadoc plugin in the parent pom just
 to
 generate javadoc for the packages you want. Parameters like -subpackages
 or
 -excludePackageNames.

 I'm not sure how a subproject would obtain the parent project's javadoc
 though.


 Adam

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




Java Doc Question

2007-08-02 Thread David Williams
Hi Everyone,

I have a odd situation here.  I run maven 2.0.6 on multi-module project.
One of those projects wants to include the java docs for several but not all
of the other projects.  What would be the best way to get the generated java
docs from the aggragrate/parent pom the the sub-project that needs it?

Thanks for you help,

David


Re: Passing System Variables to Maven

2007-07-31 Thread David Williams
Guys,

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

Thanks again for your responses,

David

On 7/31/07, Eric Redmond [EMAIL PROTECTED] wrote:

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

 Eric

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


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



Passing System Variables to Maven

2007-07-30 Thread David Williams
Hi Everyone,

How do you pass system environment variables like system date or system time
to maven.  I'm running maven on a windows machine.

Thanks,

David


Jar Version Question

2007-07-16 Thread David Williams

Hi Everyone,

I think I know the answer to this question but I wanted to confirm.  Is it
possible for a jar not to have a version number attached to it's name?

Thanks,

David


Maven JavaDoc Question

2007-07-11 Thread David Williams

All,

I'm trying to find a way to include the generated java docs html files for a
multi-module project in a war file  that can be accessed from the war's html
pages.  Currently aggragrate javadocs are successfully being created as part
of site gen but I've had no luck creating an aggragrate javadoc jar for the
project.  Even if I was able to create an aggragrate javadoc jar, are the
javadoc html pages accessable via link when the war is ran?  Does anyone
have any ideas as to how I can make this work?

Thanks for your help,

David