[m2] how the assembly plugin works

2005-05-10 Thread Nelson Arapé
Hello to all

I am just a newbie, and I just managed to complete the Getting Started
section with my multiproject environment. The I wanted to see what the
assembly plugin does, but I get the following error both: at the root
folder and at sub-project folder.

narape:~/proyectos/investigacion/catatumbo/runtime m2 assembly:assembly
[INFO] app: using locally installed snapshot
[INFO]

[INFO] Building Catatumbo
[INFO]

[INFO] maven-assembly-plugin: resolved to version 1.0-20050407.171105-2 from
local repository
[INFO] [assembly:assembly]
[INFO]

[ERROR] BUILD ERROR
[INFO]

[ERROR] Cause:
org.apache.maven.plugin.PluginExecutionException: Error creating assembly
at
org.apache.maven.plugin.assembly.AssemblyMojo.execute(AssemblyMojo.java:88)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeMojo(DefaultLifecycleExecutor.java:448)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:144)
at
org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:212)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:136)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:233)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
Caused by: java.lang.Exception: You must specify descriptor or descriptorId
at
org.apache.maven.plugin.assembly.AssemblyMojo.doExecute(AssemblyMojo.java:114)
at
org.apache.maven.plugin.assembly.AssemblyMojo.execute(AssemblyMojo.java:83)
... 14 more
[INFO]

[INFO] Total time: 0 seconds
[INFO] Finished at: Tue May 10 16:29:06 VET 2005
[INFO] Final Memory: 1M/2M
[INFO]


How I configure descriptor or descriptorID?

Thanks in advance
Nelson Arapé


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



Re: [m2] how the assembly plugin works

2005-05-10 Thread Nelson Arapé
Thanks Emmanuel, works perfect. 

I love maven 2, so far so good. :)

Nelson Arapé

Emmanuel Venisse wrote:

 
 - Original Message -
 From: Emmanuel Venisse [EMAIL PROTECTED]
 To: Maven Users List users@maven.apache.org
 Sent: Tuesday, May 10, 2005 11:25 PM
 Subject: Re: [m2] how the assembly plugin works
 
 
 Hi,

 You need to define a descriptor in your pom in the plugin coonfiguration
 par
 like this :

   build
 plugins
   plugin
 artifactIdmaven-assembly-plugin/artifactId
 version1.0-SNAPSHOT/version
 configuration
   descriptorsrc/assemble/bin.xml/descriptor
   finalNameCatatumbo-1.0-SNAPSHOT/finalName
 /configuration
   /plugin
 /plugins
   /build

 And you must write a assemble descriptor file (bin.xml) in src/assemble/
 like this :


http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-core/src/assemble/bin.xml?rev=163813view=markup
 
 The fileSets part define the list of files or directory to include in the
 assembly with eventually their output directory
 
 The dependencySets part define the output directory of each dependency.
 
 Emmanuel
 

 Emmanuel

 - Original Message -
 From: Nelson Arapé [EMAIL PROTECTED]
 To: users@maven.apache.org
 Sent: Tuesday, May 10, 2005 10:50 PM
 Subject: [m2] how the assembly plugin works


  Hello to all
 
  I am just a newbie, and I just managed to complete the Getting Started
  section with my multiproject environment. The I wanted to see what the
  assembly plugin does, but I get the following error both: at the root
  folder and at sub-project folder.
 
  narape:~/proyectos/investigacion/catatumbo/runtime m2
  assembly:assembly
  [INFO] app: using locally installed snapshot
  [INFO]


--
 --
  [INFO] Building Catatumbo
  [INFO]


--
 --
  [INFO] maven-assembly-plugin: resolved to version 1.0-20050407.171105-2
 from
  local repository
  [INFO] [assembly:assembly]
  [INFO]


--
 --
  [ERROR] BUILD ERROR
  [INFO]


--
 --
  [ERROR] Cause:
  org.apache.maven.plugin.PluginExecutionException: Error creating
 assembly
  at
 


org.apache.maven.plugin.assembly.AssemblyMojo.execute(AssemblyMojo.java:88)
  at
 


org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
 r.java:432)
  at
 


org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeMojo(DefaultLifec
 ycleExecutor.java:448)
  at
 


org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
 Executor.java:144)
  at
  org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:212)
  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:136)
  at org.apache.maven.cli.MavenCli.main(MavenCli.java:233)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
 


sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
 )
  at
 


sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
 .java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at
  org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
  at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
  at
  org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
  at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
  Caused by: java.lang.Exception: You must specify descriptor or
 descriptorId
  at
 


org.apache.maven.plugin.assembly.AssemblyMojo.doExecute(AssemblyMojo.java:11
 4)
  at
 


org.apache.maven.plugin.assembly.AssemblyMojo.execute(AssemblyMojo.java:83)
  ... 14 more
  [INFO]


--
 --
  [INFO] Total time: 0 seconds
  [INFO] Finished at: Tue May 10 16:29:06 VET 2005
  [INFO] Final Memory: 1M/2M
  [INFO]


--
 --
 
  How I configure descriptor or descriptorID?
 
  Thanks in advance
  Nelson Arapé
 
 
  -
  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: Code Formatting Plugin ???

2003-09-22 Thread Nelson Arapé
See the Jalopy plugin

On Monday 22 September 2003 08:27, Bateman, Patrick eMEDIA wrote:
 Has anyone out there use a code formatting and if so is there any
 integration with Maven??

 Thanks

 Pat
 This email and any files transmitted with it are confidential and intended
 solely for the use of the individual or entity to whom they are addressed.
 If you have received this email in error please notify the system manager.

 -
 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: Could a goal defined in maven.xml overwrite a plugin's goal?

2003-09-05 Thread Nelson Arapé
On Thursday 04 September 2003 20:27, [EMAIL PROTECTED] wrote:
 Why not preGoal on the distribution goal and set the extra things up.
OK I will try that. I will comment latter
Nelson Arapé

 --
 dIon Gillard, Multitask Consulting
 Blog:  http://blogs.codehaus.org/people/dion/

 Nelson Arapé [EMAIL PROTECTED] wrote on 05/09/2003 08:45:35 AM:
  Hello to all
 
  I want to know if I could a goal defined in maven.xml overwrite a

 plugin's

  goal?.
 
  I have a multiproject configuration and I want to make a customized
  distribution (subprojects jar, plus parent project docs, plus

 subprojects

  javadocs, etc).
 
  I guess that I could just define a new goal with name:my-dist, but I

 would

  prefer call it just dist
 
  Thanks in advance
  Nelson Arapé
 
 
  -
  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: Docs for latex plugin miss a needed property

2003-09-04 Thread Nelson Arapé
On Thursday 04 September 2003 05:02, Emmanuel Venisse wrote:
 Yes, you should create a Jira issue.
 maven.latex.docs represents files list used for the generation.
Done, MAVEN-780 

Now if someone provime instructions I think that I can fix it

Nelson Arapé

 - Original Message -
 From: Nelson Arapé [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, September 03, 2003 11:03 PM
 Subject: Docs for latex plugin miss a needed property


 Hi all

 The latex plugin requieres a maven.latex.docs property which contains a
 space-separated list of files wanted for latex generation, but the docs
 makes
 no reference about it.

 If someone provides me with enough information I could submit a path for
 this
 simple issue. By the way sould I file a Jira Issue?

 Bye
 Nelson Arapé


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

 _
 Envie de discuter en live avec vos amis ? Télécharger MSN Messenger
 http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France

 _
 Envie de discuter en live avec vos amis ? Télécharger MSN Messenger
 http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France


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


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



Could a goal defined in maven.xml overwrite a plugin's goal?

2003-09-04 Thread Nelson Arapé
Hello to all

I want to know if I could a goal defined in maven.xml overwrite a plugin's 
goal?.  

I have a multiproject configuration and I want to make a customized 
distribution (subprojects jar, plus parent project docs, plus subprojects 
javadocs, etc).

I guess that I could just define a new goal with name:my-dist, but I would 
prefer call it just dist

Thanks in advance
Nelson Arapé


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



Docs for latex plugin miss a needed property

2003-09-03 Thread Nelson Arapé
Hi all

The latex plugin requieres a maven.latex.docs property which contains a 
space-separated list of files wanted for latex generation, but the docs makes 
no reference about it.

If someone provides me with enough information I could submit a path for this 
simple issue. By the way sould I file a Jira Issue?

Bye
Nelson Arapé


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



Re: Dependency Groups

2003-09-01 Thread Nelson Arapé
You may use XML Entities

Nelson Arapé

On Monday 01 September 2003 13:14, Dave Ford wrote:
 Is there a way to define reusable lib groups?  IntelliJ lets you do this
 under project properties/paths/libraries. For example, if i use hibernate
 in 5 different projects. And hibernate requires 5 jar files. That's a lot
 of extra typing in project.xml (dependencies section).


 Dave Ford
 Smart Soft - The Developer Training Company
 http://www.smart-soft.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]



navigation.xml in multiprojet configuration

2003-08-28 Thread Nelson Arapé
Hello to all,

How can I configure the multiproject plugin to generated the documentation 
with my own navigation.xml? (I'm using b10 build)

On the other hand, when attach a goal to another in the parent maven.xml, the 
attached goal also is executed in the subprojects. I'm using the faq plugin, 
but the build fails because the faq.fml is not in the subproject directory

Thanks
Nelson Arapé


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



Re: Fwd: Re: Jelly if problem

2003-08-27 Thread Nelson Arapé
On Monday 25 August 2003 23:56, Alwyn Schoeman wrote:
 Hi,

 Could you please paste his message into a new mail.

 People who do not use outlook cannot read outlook attached messages.

I do not use Outlook, my configuration is Suse Linux 8.2 using KMail 1.5.3 on 
KDE 3.1.3. In the future i will forward or reply in line instead of 
attachment.

The email already was posted by Rafal, but anyway here it goes:

ubject:
Re: Jelly if problem
From:
Evan Koffler [EMAIL PROTECTED]
Date:
Mon, 25 Aug 2003 12:22:18 -0500
To:
[EMAIL PROTECTED]

I'm not much of an expert so I expect someone else more knowledgable to
respond (which is why this is going directly to you).

Short answer: use _ instead of . in your variable names.

Jelly is interpreting the j:if and looking for object idl, to have
property already which has property generated. Or equivalent to:
idl.getAlready().getGenerated(). Changing the . to _ will make it more
like a Java variable idl_already_generated.

Evan


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



How to attain goals only in the main project in a multiproject configuration

2003-08-26 Thread Nelson Arapé
I want to use the FAQ plugin only in my main project. I put the attainGoal 
tags as docs suggested, but my subproject fails because no faq.fml exits

  preGoal name=xdoc:jelly-transform
attainGoal name=faq/
  /preGoal

Is there a way to solve this?, or should I generate manually my faq after 
multiproject:site complets?

Thanks in advance
Nelson Arapé


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



Jelly if problem

2003-08-25 Thread Nelson Arapé
Hello

In a maven.xml, I have the following code:

   j:set var=idl.already.generated value=false/
   u:available file=${idl.generated}
 j:set var=idl.already.generated value=true/
   /u:available

   ant:echo message=${idl.already.generated}/
   !-- the following line allways prints true--
   ant:echo message=${!idl.already.generated}/ 
   j:if test=${!idl.already.generated}
 ant:echo message=generating idl bindings/
 !-- idl compiling goes here--
   /j:if

The second echo always prints true, so maven always compile my idl's. I've 
tried a lot of severals combinations (ant:available, ${idl.already.generated 
== null}, ${idl.already.generated != null}, etc) but I can't make it work.

Somebody can help me?

Thanks in advance
Nelson Arapé



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



Re: Jelly if problem

2003-08-25 Thread Nelson Arapé
On Monday 25 August 2003 13:19, O'Fallon, Paul (MAN-Corporate) wrote:
 I'll bet that your false and true j:set's are just setting the
 variable to the string false or the string true.  Try testing for that
 (i.e. j:if test=${idl.already.generated == 'false'})

Already done, dosen't work, but thanks

 HTH,
 Paul

  -Original Message-
  From: Nelson Arapé [mailto:[EMAIL PROTECTED]
  Sent: Monday, August 25, 2003 12:35 PM
  To: [EMAIL PROTECTED]
  Subject: Jelly if problem
 
 
  Hello
 
  In a maven.xml, I have the following code:
 
 j:set var=idl.already.generated value=false/
 u:available file=${idl.generated}
   j:set var=idl.already.generated value=true/
 /u:available
 
 ant:echo message=${idl.already.generated}/
 !-- the following line allways prints true--
 ant:echo message=${!idl.already.generated}/
 j:if test=${!idl.already.generated}
   ant:echo message=generating idl bindings/
   !-- idl compiling goes here--
 /j:if
 
  The second echo always prints true, so maven always compile
  my idl's. I've
  tried a lot of severals combinations (ant:available,
  ${idl.already.generated
  == null}, ${idl.already.generated != null}, etc) but I can't
  make it work.
 
  Somebody can help me?
 
  Thanks in advance
  Nelson Arapé
 
 
 
  -
  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]



Fwd: Re: Jelly if problem

2003-08-25 Thread Nelson Arapé
Here is the answer that Evan gave privately, and I forwaring here with his 
permission.  His answer fixed my problem.

Thanks again Evan

Nelson Arapé
---BeginMessage---
I'm not much of an expert so I expect someone else more knowledgable to 
respond (which is why this is going directly to you).

Short answer: use _ instead of . in your variable names.

Jelly is interpreting the j:if and looking for object idl, to have 
property already which has property generated. Or equivalent to: 
idl.getAlready().getGenerated(). Changing the . to _ will make it more 
like a Java variable idl_already_generated.

Evan



Nelson Arapé wrote:

Hello

In a maven.xml, I have the following code:

  j:set var=idl.already.generated value=false/
  u:available file=${idl.generated}
j:set var=idl.already.generated value=true/
  /u:available
  ant:echo message=${idl.already.generated}/
  !-- the following line allways prints true--
  ant:echo message=${!idl.already.generated}/ 
  j:if test=${!idl.already.generated}
ant:echo message=generating idl bindings/
!-- idl compiling goes here--
  /j:if

The second echo always prints true, so maven always compile my idl's. I've 
tried a lot of severals combinations (ant:available, ${idl.already.generated 
== null}, ${idl.already.generated != null}, etc) but I can't make it work.

Somebody can help me?

Thanks in advance
Nelson Arapé


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


 





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

best practice for idl source files

2003-06-28 Thread Nelson Arapé
Hello to all

I am new to the whole maven system. I am working in a small research project 
in my University. That project utilizes CORBA, so we have idl files that 
require to be compiled with a IDL compiler (JacORB).

We prefer separate source directory for our code and the stubs generated by 
the IDL compiler. Actually we have something like this:

+- src
 +- java
 +- idlgenerated
 +- test

Apparently maven don't support this, even i read some posting saying that 
several sourcepath are evil!.

So the question is: what would be the best practice for this type of 
environment? 

Thanks in Advance

Nelson Arapé

PS: Sorry for my English, it is not my native language

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