Re: *** Parse error reading POM ***

2008-05-05 Thread RockRider

Hi Julien ,

I have installed the plugin's jar file using the maven install install file
command
the plugin xml fragment, i have added to pom, under the pluginManagement
tag.
I am trying to access the timestaamp property as:

version${timestamp}/version, this is at the top of the xml, where in we
give projects group id, artifact id, description.

but the build generated is generated as applicationName-${timestamp}.

so the pom is not resolving the refernce to the timestamp variable generated
by the plugin.

As per this link
http://mojo.codehaus.org/buildnumber-maven-plugin/plugin-info.html
the ${timstamp} should work.

How may I debug this?
May I know how you are using the timstamp variable in ur pom?

Please let me know.


Julien CARSIQUE wrote:
 
 RockRider a écrit :
 As per my understanding, the artifactId is nothing but a directory name.
 correct?
 I am using the same name for the artifactid as well as directory where
 the
 plugin classes are present
 
 makes snese??
 
 No. Module is a directory name. ArtifactId is the artifactId given to the
 artifact in its pom.xml 
 (in your case, the plugin's artifactId).
 
 Directory where plugin classes are present? You do not need to manually
 download the plugin, it's 
 done by maven (with the correct groupId, artifactId, etc.).
 
 
 -- 
 Julien CARSIQUE, Nuxeo (Paris, France)
 www.nuxeo.com - The Open Source ECM Platform - www.nuxeo.org
 Nuxeo ECM Stack - The Java EE, scalable, standard-based ECM Platform
 [EMAIL PROTECTED] | Tel: +33 1 40 33 79 87
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/***-Parse-error-reading-POM-***-tp17019499s177p17053964.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: [groovy-user] GMaven 1.0-rc-1 released

2008-05-05 Thread Russel Winder
On Sun, 2008-05-04 at 15:14 +0700, Jason Dillon wrote:
 The latest incarnation of Groovy support for Maven, GMaven has been  
 released! This is the first release of the code-base since it was  
 moved from the Mojo project to the Groovy project.
 
 For more details on whats included in this release please see the  
 release notes:
 
  http://groovy.codehaus.org/GMaven+-+1.0-rc-1+Release

The constructions:

dependencyManagement
dependency
   
groupIdorg.codehaus.groovy.maven/groupId
artifactIdgmaven-mojo/artifactId
version1.0-rc-1/version
/dependency
dependency
   
groupIdorg.codehaus.groovy.maven.runtime/groupId
   
artifactIdgmaven-runtime-default/artifactId
version1.0-rc-1/version
/dependency
/dependencyManagement

appears to be malformed POM XML.  Using it I just get 

Reason: Parse error reading POM. Reason: Unrecognised tag: 'dependency' 
(position: START_TAG seen ...dependencyManagement\ndependency... 
@142:17) 

If I use a dependencies tag instead of a dependencyManagement tag it seems to 
work better.

-- 
Russel.

Dr Russel Winder Partner

Concertant LLP   t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,  f: +44 8700 516 084
London SW11 1EN, UK. m: +44 7770 465 077


signature.asc
Description: This is a digitally signed message part


Re: Dependency licenses

2008-05-05 Thread Sherali Karimov

Just a clarification:
Download - will download (and optionally deploy to maven repo)  
licenses of all the dependencies of the project.


cheers,
sherali

04/05/2008, в 13:35, James William Dumay писал(а):


Keith,

We are working on something like that at Atlassian right now.

Checkout this plugin:
https://svn.atlassian.com/svn/public/atlassian/maven-plugins/maven- 
licenses-plugin/trunk/


You would probably be interested in the following two goals:
* List - This goal lists all of the licenses of all transitive  
dependencies of your project.
* Download - This goal will download all of the transitive  
dependencies of your project.


This plugin is still a work in progress but we hope to make it  
available on central shortly.


Cheers
James

On 04/05/2008, at 8:39 AM, Keith Bonawitz wrote:


Is there a way to create an assembly that includes a license file for
each dependency (including transitive dependencies)?

Thanks,
Keith

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



Keith,

We are working on something like that at Atlassian right now.

Checkout this plugin:
https://svn.atlassian.com/svn/public/atlassian/maven-plugins/maven- 
licenses-plugin/trunk/


You would probably be interested in the following two goals:
* List - This goal lists all of the licenses of all transitive  
dependencies of your project.
* Download - This goal will download all of the transitive  
dependencies of your project.


This plugin is still a work in progress but we hope to make it  
available on central shortly.


Cheers
James

On 04/05/2008, at 8:39 AM, Keith Bonawitz wrote:


Is there a way to create an assembly that includes a license file for
each dependency (including transitive dependencies)?

Thanks,
Keith

-
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: Include manually a library

2008-05-05 Thread Thomas Darbois
You can use : 
http://maven.apache.org/ref/2.0.8/maven-model/maven.html#class_dependency

dependency
groupId.../groupId
artifactId.../artifactId
version.../version
scopesystem/scope
systemPathABSOLUTEPATH (for example ${java.home})/systemPath
/dependency

Tomas Darbois
Edifixio Grenoble - Projet ScorWare
04 76 29 89 27
[EMAIL PROTECTED]

-Message d'origine-
De : Nicola Benaglia [mailto:[EMAIL PROTECTED]
Envoyé : lundi 5 mai 2008 10:27
À : users@maven.apache.org
Objet : Include manually a library

Hi!
I cannot find into the mvn repository the following library:
OfficeLnFs_2.7.jar  (org.fife.plaf)

Could I refer into the pom.xml to this library located for example in
/myLibs ?

Thank you,
Nicola

-
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: Include manually a library

2008-05-05 Thread Beelen, M. - SPLXL
Nicola,

You would better install the jar-file into your (local) maven-repository (using 
maven install:install-file [1]) or even better deploy it into your corporate 
repository (using maven deploy:deploy-file [2]).

Doing that deploy, would remove 'environment specific' entries in your pom.xml 
and enable you to run the build on other machines ( a co-worker or a CI build 
server) as well.

With kind regards,
  Marco Beelen

[1]: http://maven.apache.org/plugins/maven-install-plugin/usage.html
[2]: http://maven.apache.org/plugins/maven-deploy-plugin/usage.html



-Original Message-
From: Thomas Darbois [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 05, 2008 10:54 AM
To: Maven Users List; [EMAIL PROTECTED]
Subject: RE: Include manually a library

You can use : 
http://maven.apache.org/ref/2.0.8/maven-model/maven.html#class_dependency

dependency
groupId.../groupId
artifactId.../artifactId
version.../version
scopesystem/scope
systemPathABSOLUTEPATH (for example 
${java.home})/systemPath /dependency

Tomas Darbois
Edifixio Grenoble - Projet ScorWare
04 76 29 89 27
[EMAIL PROTECTED]

-Message d'origine-
De : Nicola Benaglia [mailto:[EMAIL PROTECTED]
Envoyé : lundi 5 mai 2008 10:27
À : users@maven.apache.org
Objet : Include manually a library

Hi!
I cannot find into the mvn repository the following library:
OfficeLnFs_2.7.jar  (org.fife.plaf)

Could I refer into the pom.xml to this library located for example in /myLibs ?

Thank you,
Nicola

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

**
For information, services and offers, please visit our web site:
http://www.klm.com. This e-mail and any attachment may contain
confidential and privileged material intended for the addressee
only. If you are not the addressee, you are notified that no part
of the e-mail or any attachment may be disclosed, copied or
distributed, and that any other action related to this e-mail or
attachment is strictly prohibited, and may be unlawful. If you have
received this e-mail by error, please notify the sender immediately
by return e-mail, and delete this message. 

Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries
and/or its employees shall not be liable for the incorrect or
incomplete transmission of this e-mail or any attachments, nor
responsible for any delay in receipt.
Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal
Dutch Airlines) is registered in Amstelveen, The Netherlands, with
registered number 33014286 
**

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



Re: convert maven 1 to maven 2

2008-05-05 Thread mathapfahl

Is there any doc for the modules section?

What advantages I get with the modules ? And what disadvantages?
Is there any other handling with dependencies ? 

I can not find any guides for the modules...


mathapfahl wrote:
 
 I got a few problem s to migrate some projects from maven 1 to maven 2
 I have several main components to migrate.
 Under every component there are other components, and each of them has a
 client project, a server project and a common project.
 example: project A -- project A.1 -- client, server, common
 
 Now I thought it ' s a good idea to declare every client, server and
 common project as a module of the father component. Therefore I have to
 rename them, cause in Maven 2 you need for every project an unique
 artifact id and a group id. 
 
 What advantages I get with the modules ? And what disadvantages?
 Is there any other handling with dependencies ?
 Because I still don't know how to build up the dependency management.
 
 

-- 
View this message in context: 
http://www.nabble.com/convert-maven-1-to-maven-2-tp1698s177p17054000.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: convert maven 1 to maven 2

2008-05-05 Thread Zdeněk Vráblík
Hi there are some changes and Maven2 is not backward compatible with Maven1.

I would recommand you look at any open source project which is built
with Maven2 and play with the configuration. There are some books
available.

Maven2 and Maven1 build scripts may coexist in your project structure.
I have had problem with some plugins. I have started replacing these
plugins with Ant scripts inside Maven2 build and later I will use any
Maven2 plugin if is available. This was easy and quick to change build
scripts to Maven2.

There is better dependency manager and modules helps me divide project
better than Maven1.

This is just some my point what I like on Maven2. I am still in
migration to Maven2, but I think it is good decision.

Regards,
Zdenek

On Mon, May 5, 2008 at 11:12 AM, mathapfahl [EMAIL PROTECTED] wrote:

 Is there any doc for the modules section?

 What advantages I get with the modules ? And what disadvantages?
 Is there any other handling with dependencies ?

 I can not find any guides for the modules...


 mathapfahl wrote:

 I got a few problem s to migrate some projects from maven 1 to maven 2
 I have several main components to migrate.
 Under every component there are other components, and each of them has a
 client project, a server project and a common project.
 example: project A -- project A.1 -- client, server, common

 Now I thought it ' s a good idea to declare every client, server and
 common project as a module of the father component. Therefore I have to
 rename them, cause in Maven 2 you need for every project an unique
 artifact id and a group id.

 What advantages I get with the modules ? And what disadvantages?
 Is there any other handling with dependencies ?
 Because I still don't know how to build up the dependency management.



 --
 View this message in context: 
 http://www.nabble.com/convert-maven-1-to-maven-2-tp1698s177p17054000.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: RE : maven with flex3

2008-05-05 Thread matthew sporleder
Are either of your guys using flexunit for testing?  (or am I naive to
think it does automated testing?)

On Sat, May 3, 2008 at 4:52 AM, Thomas Darbois
[EMAIL PROTECTED] wrote:
 I'm using Israfil plugin with quite a simple project (several language, 
 tokens ... but only one swf at the end) it works fine. The documentation is 
 great, and you only have to add in configuration all the parameters you are 
 using (and that are not by default) for example the resources for the tokens.

  Nearly no tweaking was needed.
  
  De : RedBugz Software [EMAIL PROTECTED]
  Date d'envoi : vendredi 2 mai 2008 20:09
  À : Maven Users List
  Objet : Re: maven with flex3



  On Fri, May 2, 2008 at 11:59 AM, matthew sporleder [EMAIL PROTECTED] wrote:
   Is anyone doing a flex3 project with maven?  It looks like the latest
net.israfil.mojo plugin supports flex3, but I'm having trouble getting
my head around directory structures, plugins and dependencys.
  
Any help/examples are appreciated.

  We're doing Flex 3 with Maven. We used to use the Israfil plugin, but
  now we use Flex-Mojos:
  http://flex-mojos.googlecode.com/

  Getting Started:
  http://blog.flex-mojos.info/2008/03/29/more-them-a-hello-world/

  Mailing List:
  http://groups.google.com/group/flex-mojos

  Post to the list if you have any questions or problems.

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



maven2 was plugin

2008-05-05 Thread Guillaume Boucherie
Hi all,

I'm trying to find a maven2 plugin for was.
I'm want to be able to deploy an ear on a remote websphere.

I'm trying the was6 maven plugin from codehaus
http://mojo.codehaus.org/was6-maven-plugin/index.html
But with this plugin I must run maven on the same machine where websphere is
install.

Does anybody know a plugin that do this work ?

Thanks


RE: [groovy-user] GMaven 1.0-rc-1 released

2008-05-05 Thread Brian E. Fox
Its dependencyManagmentdependenciesdependency

-Original Message-
From: Russel Winder [mailto:[EMAIL PROTECTED] 
Sent: Sunday, May 04, 2008 4:43 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; users@maven.apache.org
Subject: Re: [groovy-user] GMaven 1.0-rc-1 released

On Sun, 2008-05-04 at 15:14 +0700, Jason Dillon wrote:
 The latest incarnation of Groovy support for Maven, GMaven has been 
 released! This is the first release of the code-base since it was 
 moved from the Mojo project to the Groovy project.
 
 For more details on whats included in this release please see the 
 release notes:
 
  http://groovy.codehaus.org/GMaven+-+1.0-rc-1+Release

The constructions:

dependencyManagement
dependency
   
groupIdorg.codehaus.groovy.maven/groupId
artifactIdgmaven-mojo/artifactId
version1.0-rc-1/version
/dependency
dependency
   
groupIdorg.codehaus.groovy.maven.runtime/groupId
   
artifactIdgmaven-runtime-default/artifactId
version1.0-rc-1/version
/dependency
/dependencyManagement

appears to be malformed POM XML.  Using it I just get 

Reason: Parse error reading POM. Reason: Unrecognised tag: 'dependency'
(position: START_TAG seen ...dependencyManagement\ndependency...
@142:17) 

If I use a dependencies tag instead of a dependencyManagement tag it
seems to work better.

--
Russel.

Dr Russel Winder Partner

Concertant LLP   t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,  f: +44 8700 516 084
London SW11 1EN, UK. m: +44 7770 465 077

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



RE: Forcing the execution of a phase before a goal

2008-05-05 Thread carioca

Hi Brian,

Thank you for the help.

Attached below are the POMs of my project.

Just to clarify, this is what I am trying to do. 

I run my Mojo the following way:

mvn os:run

In that point I am in the directory of the master project (POM packaging).
(The project dosn't need to be packaged before that.)

My Mojo needs to have all it's dependencies it the classpath.
In order to do so, I am trying to invoke the compile phase before my Mojo is
executed by adding the annotation:
@execute phase=test-compile

What I expect is that the multi-module project will be compiled and my Mojo
will be invoked right after it.
This is simillar to invoking 'mvn compile os:run' (which does work).

The problem is that because this is a POM project no goals are binded to it
and I get the message:
No goals needed for project - skipping

So the compilation doesn't happen and the classpath is not populated with
the dependencies.




This is the pom of the master project:

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
groupIdshai.test/groupId
artifactIda1/artifactId
version1.0-SNAPSHOT/version
namea1/name
packagingpom/packaging
modules
modulecommon/module
modulefeeder/module
moduleprocessor/module
/modules
dependencies
dependency
groupIdbases/groupId
artifactIdopenbaces/artifactId
version6.5-m11-2329-457/version
scopeprovided/scope
/dependency
dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version4.4/version
scopetest/scope
/dependency
dependency
groupIdorg.springframework/groupId
artifactIdspring-test/artifactId
version2.5.3/version
scopetest/scope
/dependency
/dependencies
build
defaultGoalpackage/defaultGoal
testResources
testResource
directorysrc/test/java/directory
includes
include**/*.xml/include
/includes
/testResource
/testResources
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
/configuration
/plugin
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-assembly-plugin/artifactId
version2.2-beta-2/version
/plugin
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-openbases-plugin/artifactId
version6.5-m11-2329-457/version
/plugin
/plugins
/build
/project

This is the pom of the processor sub-module:

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
groupIdshai.test/groupId
artifactIdprocessor/artifactId
packagingjar/packaging
version1.0-SNAPSHOT/version
nameprocessor/name
urlhttp://maven.apache.org/url
parent
groupIdshai.test/groupId
artifactIda1/artifactId
version1.0-SNAPSHOT/version
/parent
properties
gsTypePU/gsType
order1/order
/properties
dependencies
dependency
groupIdshai.test/groupId
artifactIdcommon/artifactId
version1.0-SNAPSHOT/version
scopecompile/scope
/dependency
/dependencies
build
finalNamea1-processor/finalName
plugins
plugin
artifactIdmaven-assembly-plugin/artifactId
configuration
appendAssemblyIdfalse/appendAssemblyId
attachfalse/attach
   
ignoreDirFormatExtensionstrue/ignoreDirFormatExtensions
descriptors
   
descriptorsrc/main/assembly/assembly.xml/descriptor
/descriptors
/configuration
executions
execution
idassembly/id
phasepackage/phase
goals
goalsingle/goal
/goals
/execution
/executions
/plugin
/plugins
/build
/project


This is the pom of the plugin:

project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 

Site staging versus local deploy

2008-05-05 Thread anne.gerodolle
Hi everybody,

There are several issues concerning staging reported in jira. Roman
Kitko suggested a workaround that I find very usefull
http://jira.codehaus.org/browse/MSITE-275 . Now, when I want to test a
site prior to deployment, I never try to use staging, but rather this
suggested method that I would call local deploy.
The method consists in the following :
The distributionManagement in the parent pom descriptor refers to a
property (say, site.deployment.url)
When I want to stage the site, I just type mvn site:deploy
-Dsite.deployment.url=file:pathToMyStagingDirectory

I would like to know to what extent staging a site is supposed to be
have a different result from this local deploy method.

Anne


Re: maven2 was plugin

2008-05-05 Thread robert . egan
You must use the plugin on a machine where Websphere is installed, but you 
can deploy TO any machine running websphere by setting the configuration 
parameters of host, port,username and password.

Robert Egan

Guillaume Boucherie [EMAIL PROTECTED] wrote on 05/05/2008 
09:23:17 AM:

 Hi all,
 
 I'm trying to find a maven2 plugin for was.
 I'm want to be able to deploy an ear on a remote websphere.
 
 I'm trying the was6 maven plugin from codehaus
 http://mojo.codehaus.org/was6-maven-plugin/index.html
 But with this plugin I must run maven on the same machine where 
websphere is
 install.
 
 Does anybody know a plugin that do this work ?
 
 Thanks

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


Re: [Assembly] Creating Source Archive

2008-05-05 Thread Gregg Bolinger
Bump...I am still having this issue.  I've created an ant build file to 
work around it for now but I'd sure like to know what I am doing wrong.


Thanks.

Gregg

Gregg Bolinger wrote:
I'm using the Assembly plugin 2.2-beta-1 (because beta-2 is doubling 
all the dependency JARs) and am trying to create an archive that 
contains the source code of all my modules.  This is the assembly file 
I am using:


assembly
 idsrc/id
 formats
   formattar.gz/format
 /formats
 includeBaseDirectoryfalse/includeBaseDirectory
 moduleSets
   moduleSet
 includes
   includecom.qagen.osfe:osfe-common/include
   includecom.qagen.osfe:osfe-core/include
   includecom.qagen.osfe:osfe-dataAccess/include
   includecom.qagen.osfe:osfe-engine/include
   includecom.qagen.osfe:osfe-examples/include
 /includes
 sources
   outputDirectorysrc/outputDirectory
 /sources
   /moduleSet
 /moduleSets
/assembly

The problem is that I am getting the following structure for each 
module in the archive:


main
---java
---test
src
---main
--java
--test
test
---com
--bla

According to the documentation it shouldn't be doing this.  BTW, I did 
try with beta-2 just to see and it is doing the same thing.  Any help 
is appreciated.  Thanks.


Gregg



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



Re: maven2 was plugin

2008-05-05 Thread Guillaume Boucherie
Hum,

Ok thank you, I will try it.

Guillaume Boucherie


2008/5/5, [EMAIL PROTECTED] [EMAIL PROTECTED]:

 You must use the plugin on a machine where Websphere is installed, but you
 can deploy TO any machine running websphere by setting the configuration
 parameters of host, port,username and password.

 Robert Egan

 Guillaume Boucherie [EMAIL PROTECTED] wrote on 05/05/2008
 09:23:17 AM:


  Hi all,
 
  I'm trying to find a maven2 plugin for was.
  I'm want to be able to deploy an ear on a remote websphere.
 
  I'm trying the was6 maven plugin from codehaus
  http://mojo.codehaus.org/was6-maven-plugin/index.html
  But with this plugin I must run maven on the same machine where
 websphere is
  install.
 
  Does anybody know a plugin that do this work ?
 
  Thanks

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



Re: [Assembly] Creating Source Archive

2008-05-05 Thread Wendy Smoak
On Mon, May 5, 2008 at 7:12 AM, Gregg Bolinger [EMAIL PROTECTED] wrote:
 Bump...I am still having this issue.  I've created an ant build file to work
 around it for now but I'd sure like to know what I am doing wrong.

You explained what it's doing, but not what you expected to happen.
What page in the docs are you working from?

If you can you construct a simple example that demonstrates the
problem and attach it to a JIRA issue, that might encourage someone to
take a look.

Have you executed 'mvn clean' recently to make sure nothing is left
over from prior runs?

-- 
Wendy

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



Re: [Assembly] Creating Source Archive

2008-05-05 Thread Gregg Bolinger

This is the docco I Am referencing:

http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-source-inclusion-simple.html

I expect exactly whey they state but I am getting the results I stated 
in my first email.  I have been running mvn clean for every run to 
make sure I don't have artifacts laying about.  I'd file a bug but first 
I'd like to know if what I Am experiencing is a bug or if it is me doing 
something stupid.


Thanks.

Gregg

Wendy Smoak wrote:

On Mon, May 5, 2008 at 7:12 AM, Gregg Bolinger [EMAIL PROTECTED] wrote:
  

Bump...I am still having this issue.  I've created an ant build file to work
around it for now but I'd sure like to know what I am doing wrong.



You explained what it's doing, but not what you expected to happen.
What page in the docs are you working from?

If you can you construct a simple example that demonstrates the
problem and attach it to a JIRA issue, that might encourage someone to
take a look.

Have you executed 'mvn clean' recently to make sure nothing is left
over from prior runs?

  



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



Using a project name different than the artifactId in eclipse-plugin

2008-05-05 Thread Cyril Ledru
Hi all,

I have a problem with the maven-eclipse-plugin. I have a multi module
architecture and two of my projects don't have a name (eclipse wise) equal
to their artifactId.
When I execute mvn eclipse:eclipse, the projects referencing those two
really reference projects named after the artifactId which don't exists, and
I then have to edit eclipse classpaths manually each time.

I tried setting the projectNameTemplate to a hardcoded name, but it expects
properties like [artifactId], [groupId], etc which is not what I'm looking
for and that doesn't seem to work.
So is there a way to tell eclipse-plugin to use a different name than the
artifactId ?

Thanks in advance,
Cyril.


Problem in using buildnumber plugin.

2008-05-05 Thread Niranjan Deshpande
Hi all

I am using the buildnumber plugin in my pom. details of the plugin are here
http://mojo.codehaus.org/buildnumber-maven-plugin/index.html
http://www.mail-archive.com/users@maven.apache.org/msg60497.html

I have configured the plugin under the
build
pluginManagement tags
While taing the build i run this command:

*mvn buildnumber:create install*

The war file generated has name application_Name-Build-r2008-05-05.war
This name is a result of the finalName tag, in the POM:

*
finalName${project.artifactId}-${project.version}-r${buildNumber}/finalName
*

But when I run

*mvn install*
**
war file that is added to the maven local repository is
application_Name-Build.war, without the timestamp.
This is recult of the version tag in the POM
versionBuild/version
1.How do i make the intall task, aware of the plugin, and make it run only
after the plugin has been executed.
2. During war creation, build is tagged using the finalName element, but
during installation, its tagged using the version element.
I want it to be tagged using the finalName element in both cases. Is htere a
way to do so?

Please help me.


-- 
Regards,
Niranjan Deshpande

Shut yourself from the world and create the reality you want


No SHA1 for Locally Built Open Source Product

2008-05-05 Thread Tom Purcell

Hello

We are using an open source product in which we found a couple of bugs. We
have altered the code and rebuilt locally. We have also reported the issues
to the OS project via Jira and submitted our fixes. 

While we wait for the issues to be resolve in the GA version of the product
we must deploy the locally built(via maven) version to our internal remote
repository in order for our developers to use it. Note that the build is of
a SNAPSHOT release of the source. We have attempted this in four ways. 

1- We copied the artifacts generated by the mvn install for the product from
a local repository to the internal remote repository.

2- We did a mvn install of the product on the machine where the internal
remote repository is hosted referring to that repository as the local
repository.

In these 2 cases, when a developer attempts to access the artifacts in the
internal remote repository the process fails saying: [DEBUG] SHA1 not
found, trying MD5.  There are SHA1 or MD5 files for the artifacts on which
this message occurs. 

After some research we found some posts that indicate these methods were not
the way to go so:

3- We attempted to do a mvn deploy of the product by specifying our internal
remote repository in the distributionManagement section of the product's
main pom. We had to cancel it when it attempted to get the latest build
number from the open source project's server which we, of course, do not
have access to.

4- We did a deploy-file on an individual artifact but this approach has two
problem. First the open source project that we are concerned about is large
with many individual jars and poms so we'd rather not have to deploy each
one individually. Second when we do this we get a completely different name
for the artifact in the internal remote repository that includes a
timestamped. As each artifact will have a different timestamp it would be
very difficult to keep them all straight in our application's pom.  

We want to know if it is possible to alter the internal remote repository to
make it accessible? We have other projects in our repository that do not
have SHA1 files (commons for instance). Can we delete all the meta-data
files? If not, given that we do not have access to the build number server, 
what is the proper way to deploy? We are using Maven 2.0.8.

Thanks
Tom

-- 
View this message in context: 
http://www.nabble.com/No-SHA1-for-Locally-Built-Open-Source-Product-tp17064966s177p17064966.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]



Dependency Tree with child-parent relationships

2008-05-05 Thread Baeriswyl Kuno - Extern (IT-BA-MV)
Hello!

I need to know if there exists a tool that resolves all child-parent 
relationships for Maven2. More precisely, I want to know which artefacts depend 
on a given artefact.

Example: A - B,   B - C and D - C

For the example above, I want a tool that shows me A,B and D for the given 
artefact C.

All the tools I've found, like dependency:tree Mojo or JFrog Dependeny 
Analyser, resolve the parent-child relationships only. I know that Archiva, a 
Maven Repository, does resolve the first degree of child-parent relationship, 
however, I don't want to introduce this tool just because of this nice feature. 
Further more, I'd like to have resolved the whole tree.

Thanks for your input.

Kuno


exclude .svn

2008-05-05 Thread Nicola Benaglia

Hi,
I need to exclude my .svn from the created jar.

I tried unsuccesfully this:

plugin
  groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-jar-plugin/artifactId
   configuration
   excludes
   exclude**/.svn/*/exclude
   /excludes
   /configuration
   /plugin

Where do I get wrong?

Thank you,
Nicola


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



maven.repo.local, again

2008-05-05 Thread Russ Tremain
Is there any property set by maven that tells me where the local 
build repository is?


I.e., once it resolves where it is going to build, will it tell me?

I think the answer is just plain no, but I want to re-confirm.

tia,
-Russ

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



Re: exclude .svn

2008-05-05 Thread Nicola Benaglia

Olivier Lamy ha scritto:

They are excluded by default.

2008/5/5 Nicola Benaglia [EMAIL PROTECTED]:
  

Hi,
 I need to exclude my .svn from the created jar.

 I tried unsuccesfully this:

 plugin
  groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-jar-plugin/artifactId
   configuration
   excludes
   exclude**/.svn/*/exclude
   /excludes
   /configuration
   /plugin

 Where do I get wrong?

Hi Olivier;
if I open my jar I see:

.svn
META-INF
org

Inside each folder in org there's no .svn
But how to exclude the first level .svn ?

Thank you,
Nicola

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



Re: exclude .svn

2008-05-05 Thread Wayne Fay
I think you must have added /target (or something under it) to SVN.
Remove it and try again.

Wayne

On Mon, May 5, 2008 at 12:16 PM, Nicola Benaglia
[EMAIL PROTECTED] wrote:
 Olivier Lamy ha scritto:


  They are excluded by default.
 
  2008/5/5 Nicola Benaglia [EMAIL PROTECTED]:
 
 
   Hi,
I need to exclude my .svn from the created jar.
  
I tried unsuccesfully this:
  
plugin
groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-jar-plugin/artifactId
 configuration
 excludes
 exclude**/.svn/*/exclude
 /excludes
 /configuration
 /plugin
  
Where do I get wrong?
  
 
  Hi Olivier;
  if I open my jar I see:

  .svn
  META-INF
  org

  Inside each folder in org there's no .svn
  But how to exclude the first level .svn ?



  Thank you,
  Nicola

  -
  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: exclude .svn

2008-05-05 Thread Olivier Lamy
They are excluded by default.

2008/5/5 Nicola Benaglia [EMAIL PROTECTED]:
 Hi,
  I need to exclude my .svn from the created jar.

  I tried unsuccesfully this:

  plugin
   groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
configuration
excludes
exclude**/.svn/*/exclude
/excludes
/configuration
/plugin

  Where do I get wrong?

  Thank you,
  Nicola


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

2008-05-05 Thread Jeff MAURY
Great news !!!

Jeff MAURY


On Fri, May 2, 2008 at 9:49 PM, Jason van Zyl [EMAIL PROTECTED] wrote:


 On 2-May-08, at 11:09 AM, RedBugz Software wrote:

  On Fri, May 2, 2008 at 11:59 AM, matthew sporleder [EMAIL PROTECTED]
 wrote:

 Is anyone doing a flex3 project with maven?  It looks like the latest
 net.israfil.mojo plugin supports flex3, but I'm having trouble getting
 my head around directory structures, plugins and dependencys.

 Any help/examples are appreciated.


 We're doing Flex 3 with Maven. We used to use the Israfil plugin, but
 now we use Flex-Mojos:
 http://flex-mojos.googlecode.com/

 Getting Started:
 http://blog.flex-mojos.info/2008/03/29/more-them-a-hello-world/


 Eugene and I are also starting to work with VELO and we'll be officially
 supporting these mojos in m2eclipse.

  Mailing List:
 http://groups.google.com/group/flex-mojos

 Post to the list if you have any questions or problems.

 Logan

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


 Thanks,

 Jason

 --
 Jason van Zyl
 Founder,  Apache Maven
 jason at sonatype dot com
 --

 You are never dedicated to something you have complete confidence in.
 No one is fanatically shouting that the sun is going to rise tomorrow.
 They know it is going to rise tomorrow. When people are fanatically
 dedicated to political or religious faiths or any other kind of
 dogmas or goals, it's always because these dogmas or
 goals are in doubt.

 -- Robert Pirzig, Zen and the Art of Motorcycle Maintenance




 -
 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
http://www.lastfm.fr/listen/user/jeffmaury/personal


Re: No SHA1 for Locally Built Open Source Product

2008-05-05 Thread Tom Purcell

Hello

In my earlier post, in point 4, I indicated that the SNAPSHOT part of the
artifact was being replaced by a timestamp. I've been told that is normal
and that the newest version in the repository should be returned as the
SNAPSHOT. 

Okay, but I still have a problem in that the pom artifact is getting
resolved but not the jar. This is what I did:

mvn deploy:deploy-file -Dfile=jbi-maven-plugin-3.3-SNAPSHOT.jar
-Durl=scp://216.203.1.133/opt/Maven2/repository -Did=BigDevSun
-DgroupId=org.apache.servicemix.tooling -DartifactId=jbi-maven-plugin
-Dversion=3.3-SNAPSHOT -Dpackaging=maven-plugin

Which produced an internal remote repository directory that looks like this:

-bash-3.00$ pwd
/opt/Maven2/repository/org/apache/servicemix/tooling/jbi-maven-plugin/3.3-SNAPSHOT
-bash-3.00$ ls -la
total 244
drwxrwxr-x   2 tpurcell staff 11 May  5 14:10 .
drwxrwxr-x   3 tpurcell staff  6 May  5 14:10 ..
-rw-r--r--   1 tpurcell staff 112813 May  5 14:10
jbi-maven-plugin-3.3-20080505.181304-1.jar
-rw-r--r--   1 tpurcell staff 32 May  5 14:10
jbi-maven-plugin-3.3-20080505.181304-1.jar.md5
-rw-r--r--   1 tpurcell staff 40 May  5 14:10
jbi-maven-plugin-3.3-20080505.181304-1.jar.sha1
-rw-r--r--   1 tpurcell staff262 May  5 14:10
jbi-maven-plugin-3.3-20080505.181304-1.pom
-rw-r--r--   1 tpurcell staff 32 May  5 14:10
jbi-maven-plugin-3.3-20080505.181304-1.pom.md5
-rw-r--r--   1 tpurcell staff 40 May  5 14:10
jbi-maven-plugin-3.3-20080505.181304-1.pom.sha1
-rw-r--r--   1 tpurcell staff377 May  5 14:10 maven-metadata.xml
-rw-r--r--   1 tpurcell staff 32 May  5 14:10 maven-metadata.xml.md5
-rw-r--r--   1 tpurcell staff 40 May  5 14:10
maven-metadata.xml.sha1


When I run the build for our app I get:

[INFO] snapshot org.apache.servicemix.tooling:jbi-maven-plugin:3.3-SNAPSHOT:
checking for updates from BigDevSun
[DEBUG] jbi-maven-plugin: resolved to version 3.3-20080505.181304-1 from
repository BigDevSun
[DEBUG] Trying repository BigDevSun[DEBUG] Trying repository BigDevSun
Downloading:
http://216.203.1.133/maven2/repository/org/apache/servicemix/tooling/jbi-maven-plugin/3.3-SNAPSHOT/jbi-maven-plugin-3.3-20080505.181304-1.pom
262/262b
262b downloaded
[DEBUG]   Artifact resolved
[DEBUG] jbi-maven-plugin: using locally installed snapshot
[DEBUG] Skipping disabled repository apache
[DEBUG] Trying repository apache.snapshots
Downloading:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/servicemix/tooling/jbi-maven-plugin/3.3-SNAPSHOT/jbi-maven-plugin-3.3-SNAPSHOT.jar
[DEBUG] Unable to get resource
'org.apache.servicemix.tooling:jbi-maven-plugin:maven-plugin:3.3-SNAPSHOT'
from repository apache.snapshots
(http://people.apache.org/repo/m2-snapshot-repository)
[DEBUG] Skipping disabled repository central
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Plugin could not be found - check that the goal name is correct:
Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command: 
mvn install:install-file -DgroupId=org.apache.servicemix.tooling
-DartifactId=jbi-maven-plugin -Dversion=3.3-SNAPSHOT
-Dpackaging=maven-plugin -Dfile=/path/to/file

Note that the pom (jbi-maven-plugin-3.3-20080505.181304-1.pom) got
downloaded and that 3.3-20080505.181304-1 got resolved to 3.3-SNAPSHOT
just as you indicated. But then look at what happened to
jbi-maven-plugin-3.3-SNAPSHOT.jar: Unable to get resource

Now look at maven-metadata.xml:

-bash-3.00$ more maven-metadata.xml
?xml version=1.0 encoding=UTF-8?metadata
  groupIdorg.apache.servicemix.tooling/groupId
  artifactIdjbi-maven-plugin/artifactId
  version3.3-SNAPSHOT/version
  versioning
snapshot
  timestamp20080505.181304/timestamp
  buildNumber1/buildNumber
/snapshot
lastUpdated20080505181305/lastUpdated
  /versioning
/metadata

The timestamp is 181304 but the last updated is 181305. I'm seeing some Jira
issues and forum noise about this. I'm not sure that's my problem.

I'm running Maven 2.0.8 on my machine. The repository machine has Maven
2.0.6 on it but I don't think that is really involved since all the commands
have been issued from my machine(2.0.8)


Tom Purcell wrote:
 
 Hello
 
 We are using an open source product in which we found a couple of bugs. We
 have altered the code and rebuilt locally. We have also reported the
 issues to the OS project via Jira and submitted our fixes. 
 
 While we wait for the issues to be resolve in the GA version of the
 product we must deploy the locally built(via maven) version to our
 internal remote repository in order for our developers to use it. Note
 that the build is of a SNAPSHOT release of the source. We have attempted
 this in four ways. 
 
 1- We copied the artifacts generated by the mvn install 

Re: maven ant task, copy local libs

2008-05-05 Thread roman schoenbichler

Hey again!

Thanks for your reply, this basicly looks like what I need.. but 
unfortunately the ant script isn't working. Maybe my Ant knowledge isn't 
enough, but I think the documentation got a bit short on this.


Anyway.. my ant file includes

path id=maven-ant-tasks.classpath path=lib/maven-ant-tasks-2.0.9.jar /
   typedef resource=org/apache/maven/artifact/ant/antlib.xml 
uri=urn:maven-artifact-ant classpathref=maven-ant-tasks.classpath /

   artifact:pom id=maven file=pom.xml /

and
artifact:dependencies filesetId=dependency.fileset useScope=runtime/

to which I now refere when copying the libs to the .ear file.

But now ant fails during compilation because it simply can't resolve any 
imports pointing to the libs included by maven (the pom).


Hm... I would realy appreciate some help!

Greets

Hi Roman,

If I understand what you're trying to do, I'd say it's the same as 
the Declaring Dependencies section of the documentation: 
http://maven.apache.org/ant-tasks.html
look at For example, to populate WEB-INF/lib  with your dependencies you 
could use the following:


If the doc is not clear, don't hesitate to propose other words to explain the 
case and open a Jira issue: it's written with best efforts, we need review 
and help to improve it. Source is here: 
http://svn.apache.org/viewvc/maven/site/trunk/src/site/apt/ant-tasks.apt


regards,

Hervé

Le samedi 03 mai 2008, roman schoenbichler a écrit :
  

Hey Guys!

I'm currently working with seam. They have a project generation script.
This sets up a project, including a build.xml file. The Problem with
this script is, that it copies all libs in the generated project which
is not nice at all.
So I started using maven-ant-tasks.

The problem is, that I wasn't able to figure out how I can copy the
needed lib files to the generated .ear project from my local repository.

The generated script uses:
fileset id=lib dir=${lib.dir}
include name=*.jar /
/fileset

with lib.dir pointing to ./lib, which of corse is not very usefull since
my libs are in the .m2 repository.

The description on the website isn't very clear about such functions.

I hope you can help me on that,
Greets

-
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 ant task, copy local libs

2008-05-05 Thread roman schoenbichler
Ok sry.. how should it work with an empty artifact:dependencies So 
now he can resolve the dependencies... hope the rest will work..


Greets

Hey again!

Thanks for your reply, this basicly looks like what I need.. but 
unfortunately the ant script isn't working. Maybe my Ant knowledge 
isn't enough, but I think the documentation got a bit short on this.


Anyway.. my ant file includes

path id=maven-ant-tasks.classpath 
path=lib/maven-ant-tasks-2.0.9.jar /
   typedef resource=org/apache/maven/artifact/ant/antlib.xml 
uri=urn:maven-artifact-ant classpathref=maven-ant-tasks.classpath /

   artifact:pom id=maven file=pom.xml /

and
artifact:dependencies filesetId=dependency.fileset 
useScope=runtime/


to which I now refere when copying the libs to the .ear file.

But now ant fails during compilation because it simply can't resolve 
any imports pointing to the libs included by maven (the pom).


Hm... I would realy appreciate some help!

Greets

Hi Roman,

If I understand what you're trying to do, I'd say it's the same as 
the Declaring Dependencies section of the documentation: 
http://maven.apache.org/ant-tasks.html
look at For example, to populate WEB-INF/lib  with your dependencies 
you could use the following:


If the doc is not clear, don't hesitate to propose other words to 
explain the case and open a Jira issue: it's written with best 
efforts, we need review and help to improve it. Source is here: 
http://svn.apache.org/viewvc/maven/site/trunk/src/site/apt/ant-tasks.apt


regards,

Hervé

Le samedi 03 mai 2008, roman schoenbichler a écrit :
 

Hey Guys!

I'm currently working with seam. They have a project generation script.
This sets up a project, including a build.xml file. The Problem with
this script is, that it copies all libs in the generated project which
is not nice at all.
So I started using maven-ant-tasks.

The problem is, that I wasn't able to figure out how I can copy the
needed lib files to the generated .ear project from my local 
repository.


The generated script uses:
fileset id=lib dir=${lib.dir}
include name=*.jar /
/fileset

with lib.dir pointing to ./lib, which of corse is not very usefull 
since

my libs are in the .m2 repository.

The description on the website isn't very clear about such functions.

I hope you can help me on that,
Greets

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





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



  



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





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



Re: maven ant task, copy local libs

2008-05-05 Thread Hervé BOUTEMY
yes, with pomRefId, it should work better:
artifact:dependencies pomRefId=maven filesetId=dependency.fileset 
useScope=runtime/

Le lundi 05 mai 2008, roman schoenbichler a écrit :
 Ok sry.. how should it work with an empty artifact:dependencies So
 now he can resolve the dependencies... hope the rest will work..

 Greets

  Hey again!
 
  Thanks for your reply, this basicly looks like what I need.. but
  unfortunately the ant script isn't working. Maybe my Ant knowledge
  isn't enough, but I think the documentation got a bit short on this.
 
  Anyway.. my ant file includes
 
  path id=maven-ant-tasks.classpath
  path=lib/maven-ant-tasks-2.0.9.jar /
 typedef resource=org/apache/maven/artifact/ant/antlib.xml
  uri=urn:maven-artifact-ant classpathref=maven-ant-tasks.classpath /
 artifact:pom id=maven file=pom.xml /
 
  and
  artifact:dependencies filesetId=dependency.fileset
  useScope=runtime/
 
  to which I now refere when copying the libs to the .ear file.
 
  But now ant fails during compilation because it simply can't resolve
  any imports pointing to the libs included by maven (the pom).
 
  Hm... I would realy appreciate some help!
 
  Greets
 
  Hi Roman,
 
  If I understand what you're trying to do, I'd say it's the same as
  the Declaring Dependencies section of the documentation:
  http://maven.apache.org/ant-tasks.html
  look at For example, to populate WEB-INF/lib  with your dependencies
  you could use the following:
 
  If the doc is not clear, don't hesitate to propose other words to
  explain the case and open a Jira issue: it's written with best
  efforts, we need review and help to improve it. Source is here:
  http://svn.apache.org/viewvc/maven/site/trunk/src/site/apt/ant-tasks.apt
 
  regards,
 
  Hervé
 
  Le samedi 03 mai 2008, roman schoenbichler a écrit :
  Hey Guys!
 
  I'm currently working with seam. They have a project generation script.
  This sets up a project, including a build.xml file. The Problem with
  this script is, that it copies all libs in the generated project which
  is not nice at all.
  So I started using maven-ant-tasks.
 
  The problem is, that I wasn't able to figure out how I can copy the
  needed lib files to the generated .ear project from my local
  repository.
 
  The generated script uses:
  fileset id=lib dir=${lib.dir}
  include name=*.jar /
  /fileset
 
  with lib.dir pointing to ./lib, which of corse is not very usefull
  since
  my libs are in the .m2 repository.
 
  The description on the website isn't very clear about such functions.
 
  I hope you can help me on that,
  Greets
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

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



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



Velocity Site Doxia Renderer for maven

2008-05-05 Thread Chris Helck
Has anyone been able to use
http://velocity.apache.org/site/tools/velocity-site-doxia-renderer/index
.html? It seems to be something very useful, but I can't get it to work.
I'm not sure if it is being actively maintained.

Basically I'm looking for a way to generate APT documents on the fly,
and velocity seems like a good fit.

Thanks,
Christopher Helck


**
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the Information) is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 (ICAP) or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**



Re: maven ant task, copy local libs

2008-05-05 Thread roman schoenbichler

Hervé BOUTEMY schrieb:

Ok the archives arn't build right, the libs arn't copied into the new 
archives


I'm using the following lines:

artifact:dependencies pomRefId=maven.project 
filesetId=dependency.fileset useScope=runtime/


copy todir=${war.dir}/WEB-INF/lib
   !--fileset dir=${lib.dir}
   include name=richfaces-impl*.jar /
   include name=richfaces-ui*.jar /
   include name=oscache*.jar /
   include name=commons-digester.jar /
   include name=commons-beanutils.jar /
   include name=jsf-facelets.jar /
   include name=jboss-seam-*.jar /
   exclude name=jboss-seam-gen.jar /
   /fileset--
   fileset refid=dependency.fileset/
   mapper classpathref=maven-ant-tasks.classpath 
classname=org.apache.maven.artifact.ant.VersionMapper 
from=${dependency.versions} to=flatten /

   /copy

notice that the fileset which is commented was the initial ant script, 
which copied the libs from the local ./lib folder ...


Am I missing something, or is the code simply wrong..?

Think this would be the last problem!

Thanks,
Greets

yes, with pomRefId, it should work better:
artifact:dependencies pomRefId=maven filesetId=dependency.fileset 
useScope=runtime/


Le lundi 05 mai 2008, roman schoenbichler a écrit :
  

Ok sry.. how should it work with an empty artifact:dependencies So
now he can resolve the dependencies... hope the rest will work..

Greets



Hey again!

Thanks for your reply, this basicly looks like what I need.. but
unfortunately the ant script isn't working. Maybe my Ant knowledge
isn't enough, but I think the documentation got a bit short on this.

Anyway.. my ant file includes

path id=maven-ant-tasks.classpath
path=lib/maven-ant-tasks-2.0.9.jar /
   typedef resource=org/apache/maven/artifact/ant/antlib.xml
uri=urn:maven-artifact-ant classpathref=maven-ant-tasks.classpath /
   artifact:pom id=maven file=pom.xml /

and
artifact:dependencies filesetId=dependency.fileset
useScope=runtime/

to which I now refere when copying the libs to the .ear file.

But now ant fails during compilation because it simply can't resolve
any imports pointing to the libs included by maven (the pom).

Hm... I would realy appreciate some help!

Greets

  

Hi Roman,

If I understand what you're trying to do, I'd say it's the same as
the Declaring Dependencies section of the documentation:
http://maven.apache.org/ant-tasks.html
look at For example, to populate WEB-INF/lib  with your dependencies
you could use the following:

If the doc is not clear, don't hesitate to propose other words to
explain the case and open a Jira issue: it's written with best
efforts, we need review and help to improve it. Source is here:
http://svn.apache.org/viewvc/maven/site/trunk/src/site/apt/ant-tasks.apt

regards,

Hervé

Le samedi 03 mai 2008, roman schoenbichler a écrit :


Hey Guys!

I'm currently working with seam. They have a project generation script.
This sets up a project, including a build.xml file. The Problem with
this script is, that it copies all libs in the generated project which
is not nice at all.
So I started using maven-ant-tasks.

The problem is, that I wasn't able to figure out how I can copy the
needed lib files to the generated .ear project from my local
repository.

The generated script uses:
fileset id=lib dir=${lib.dir}
include name=*.jar /
/fileset

with lib.dir pointing to ./lib, which of corse is not very usefull
since
my libs are in the .m2 repository.

The description on the website isn't very clear about such functions.

I hope you can help me on that,
Greets

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

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


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

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





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



  



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



java.lang.ClassNotFoundException: ”-Xmx512m”

2008-05-05 Thread Nicola Benaglia

Hi,
I receive an exception after setting MAVEN_OPTS:

MAVEN_OPTS=”-Xmx512m”
MAVEN_HOME=/opt/apache_foundation/apache-maven-2.0.9


Here the exception:

mvn -e package
Exception in thread main java.lang.NoClassDefFoundError: ”-Xmx512m”
Caused by: java.lang.ClassNotFoundException: ”-Xmx512m”
   at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)


If I unset the MAVEN_OPTS, everything is ok.
Some suggestions, please?

Thx,
Nicola


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



Re: java.lang.ClassNotFoundException: ”-Xmx512m” [SOLVED]

2008-05-05 Thread Nicola Benaglia

Nicola Benaglia ha scritto:

Hi,
I receive an exception after setting MAVEN_OPTS:

MAVEN_OPTS=”-Xmx512m”
MAVEN_HOME=/opt/apache_foundation/apache-maven-2.0.9


Hi,
I found, it's trivial.
it's the character ” instead of 

Bye,
Nicola

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



include all java packages ofa module in his child

2008-05-05 Thread Nicola Benaglia

Hi,
I started up a project consisting of 3 modules (to learn maven):

commons
client
server

client and server depends on commons and I want to open the client.jar 
and see all packages of commons + all packages of client.


So far I open client.jar and see only its packages and not its father's 
one (commons) as I was expected.


Could you please help me?

Thank you,
Nicola

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



Re: include all java packages ofa module in his child

2008-05-05 Thread Wayne Fay
This is simply an incorrect assumption on your part.

If you use modules and set up dependencies between them etc, the
code will be packaged up in its own module-specific jar. So you would
expect to only see commons-specific code in the commons.jar, and
client-specific code in the client.jar. This is how Maven works
without additional configuration.

There are ways to put all the code in one big jar, but this is not the
default and not the normal way to use Maven. Google (or search the
Maven website) for jar-with-dependencies and the assembly plugin for
more details. Or search the Maven Users archive, this comes up every
couple of weeks.

Wayne

On Mon, May 5, 2008 at 6:37 PM, Nicola Benaglia
[EMAIL PROTECTED] wrote:
 Hi,
  I started up a project consisting of 3 modules (to learn maven):

  commons
  client
  server

  client and server depends on commons and I want to open the client.jar and
 see all packages of commons + all packages of client.

  So far I open client.jar and see only its packages and not its father's one
 (commons) as I was expected.

  Could you please help me?

  Thank you,
  Nicola

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



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



Re: RE : maven with flex3

2008-05-05 Thread RedBugz Software
On Mon, May 5, 2008 at 7:06 AM, matthew sporleder [EMAIL PROTECTED] wrote:
 Are either of your guys using flexunit for testing?  (or am I naive to
  think it does automated testing?)

Yes, we use FlexUnit for testing. We don't have all of our tests
running in Maven yet, but some of them do. We had a bunch of our tests
written before we started using Maven and have some custom setup, so
we haven't converted them all over yet. New tests should work just
fine.

Logan

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



Re: Dependency Tree with child-parent relationships

2008-05-05 Thread Michael McCallum
sorry just reread email you want reverse deps... not an easy problem to solve 
unless you are google...


-- 
Michael McCallum
Development Lead
Ferrit Ltd
cell: 021.576.907
msn: [EMAIL PROTECTED]
jabber: [EMAIL PROTECTED]
aim: gholamses
http://www.ferrit.co.nz

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



Re: Dependency Tree with child-parent relationships

2008-05-05 Thread Michael McCallum
mvn dependency:tree

(if it complains about plugin not existing try -U)

On Tue, 06 May 2008 04:16:10 Baeriswyl Kuno - Extern (IT-BA-MV) wrote:
 Hello!

 I need to know if there exists a tool that resolves all child-parent
 relationships for Maven2. More precisely, I want to know which artefacts
 depend on a given artefact.

 Example: A - B,   B - C and D - C

 For the example above, I want a tool that shows me A,B and D for the given
 artefact C.

 All the tools I've found, like dependency:tree Mojo or JFrog Dependeny
 Analyser, resolve the parent-child relationships only. I know that Archiva,
 a Maven Repository, does resolve the first degree of child-parent
 relationship, however, I don't want to introduce this tool just because of
 this nice feature. Further more, I'd like to have resolved the whole tree.

 Thanks for your input.

 Kuno



-- 
Michael McCallum
Development Lead
Ferrit Ltd
cell: 021.576.907
msn: [EMAIL PROTECTED]
jabber: [EMAIL PROTECTED]
aim: gholamses
http://www.ferrit.co.nz

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