Assembly to exclude a directory in the dependency artifact.

2007-10-08 Thread Lara Brian
Hi All,
  Is it possible to exclude a perticular directory from the dependency 
artifact. 
  For example my dependency artifact has dir1, dir2 and dir3 in it and i want 
to exlcude dir2 from being included in my final assembly. My assembly 
descriptor looks as follows.
   
  
 
  
   
*:xmar:*
   
   
   
local/model/${artifactId}

true


 
 false
 
 
 
  local/model/${artifactId}
  
  
   *:xmar:*
  
  true
  runtime
 
 

   
  
 
   
   
  thanks for any help or pointer.

   
-
Don't let your dream ride pass you by.Make it a reality with Yahoo! Autos. 

Re: how to specify multiple descriptors on the command-line

2007-08-06 Thread Lara Brian

Hi Deng,
Thanks a lot for the reply/suggestions. I will try profiles and see how it
goes. 
Thanks a lot.


Maria Odea Ching-2 wrote:
> 
> Hi Lara,
> 
> I don't think it's possible to specify the descriptors from the command 
> line as it seems to be not supported by the assembly plugin.
> Maybe you could try using profiles [1] to separate the different types 
> of descriptors (e.g. different plugin config in each profile) for what 
> you want to do?
> <http://maven.apache.org/guides/introduction/introduction-to-profiles.html>
> HTH,
> Deng
> 
> [1] 
> http://maven.apache.org/guides/introduction/introduction-to-profiles.html
> 
> 
> Lara Brian wrote:
>> Hi Deng,
>> Thanks for the reply. Your suggestion (to place the descriptors in the
>> pom)
>> worked. Thanks a lot. But is there a way to just specify from command
>> line?
>> The reason i need this is, i have few assembly descriptors (for various
>> sources, javadocs and few for binaries). I have a plugin that checks for
>> conflicitng versions in dependencies. I need to run that plugin only for
>> binaries and not for others. If i specify all the descriptors in the POM
>> i
>> cannot differentiate one from the other.
>>
>> I could run individual descriptor by -Ddescriptor option but not
>> descriptors
>> with -Ddescriptors option. I tried the full path as you specified and
>> still
>> no luck.
>>
>> Thanks a lot for any help.
>>  
>>
>> Maria Odea Ching-2 wrote:
>>   
>>> Hi,
>>>
>>> Try configuring these descriptors in the pom (shown below) instead of 
>>> setting it at the command-line. Also, I think the path to the 
>>> descriptors should be included instead of just the descriptor filename.
>>>
>>> 
>>>   
>>> maven-assembly-plugin
>>> 
>>>   
>>> path/to/cmp-server.xml
>>> path/to/cmp-client.xml
>>>   
>>> 
>>>   
>>> 
>>>
>>>
>>> HTH,
>>> Deng
>>>
>>> Lara Brian wrote:
>>> 
>>>> Hi All,
>>>> How to specify multiple descriptors on the command line when invoking
>>>> assebly plugin? What is the separator for the descriptors. I tried
>>>> comma/colan but ended up unsuccessful.
>>>>
>>>> I tried,
>>>> mvn package assembly:assembly
>>>> -Ddescriptors=cmp-server.xml,cmp-client.xml
>>>> -Dmaven.test.skip=true
>>>>
>>>> but getting,
>>>> [INFO]
>>>> 
>>>> [ERROR] BUILD ERROR
>>>> [INFO]
>>>> 
>>>> [INFO] Error reading assemblies: No assembly descriptors found.
>>>>
>>>> [INFO]
>>>> 
>>>>
>>>> thanks a lot.
>>>>   
>>>>   
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>> 
>>
>>   
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-specify-multiple-descriptors-on-the-command-line-tf4203464s177.html#a12020245
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: how to specify multiple descriptors on the command-line

2007-08-02 Thread Lara Brian

Hi Deng,
Thanks for the reply. Your suggestion (to place the descriptors in the pom)
worked. Thanks a lot. But is there a way to just specify from command line?
The reason i need this is, i have few assembly descriptors (for various
sources, javadocs and few for binaries). I have a plugin that checks for
conflicitng versions in dependencies. I need to run that plugin only for
binaries and not for others. If i specify all the descriptors in the POM i
cannot differentiate one from the other.

I could run individual descriptor by -Ddescriptor option but not descriptors
with -Ddescriptors option. I tried the full path as you specified and still
no luck.

Thanks a lot for any help.
 

Maria Odea Ching-2 wrote:
> 
> Hi,
> 
> Try configuring these descriptors in the pom (shown below) instead of 
> setting it at the command-line. Also, I think the path to the 
> descriptors should be included instead of just the descriptor filename.
> 
> 
>   
> maven-assembly-plugin
> 
>   
> path/to/cmp-server.xml
> path/to/cmp-client.xml
>   
> 
>   
> 
> 
> 
> HTH,
> Deng
> 
> Lara Brian wrote:
>> Hi All,
>> How to specify multiple descriptors on the command line when invoking
>> assebly plugin? What is the separator for the descriptors. I tried
>> comma/colan but ended up unsuccessful.
>>
>> I tried,
>> mvn package assembly:assembly -Ddescriptors=cmp-server.xml,cmp-client.xml
>> -Dmaven.test.skip=true
>>
>> but getting,
>> [INFO]
>> 
>> [ERROR] BUILD ERROR
>> [INFO]
>> 
>> [INFO] Error reading assemblies: No assembly descriptors found.
>>
>> [INFO]
>> 
>>
>> thanks a lot.
>>   
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-specify-multiple-descriptors-on-the-command-line-tf4203464s177.html#a11969541
Sent from the Maven - Users mailing list archive at Nabble.com.


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



How to set the outputDirectory from command line for assembly plugin.

2007-08-01 Thread Lara Brian

Hi All,
I tried,
mvn package assembly:assembly -DoutputDirectory=.
-Ddescriptor=cmp-server.xml -Dmaven.test.skip=true

expecting the assembly to be generated at the directory i issued the
command, but the assembly is getting generated inside the TARGET directory.
How to make it generate in the directory iam issuing the command?

Thanks a lot for any help/suggestions.
-- 
View this message in context: 
http://www.nabble.com/How-to-set-the-outputDirectory-from-command-line-for-assembly-plugin.-tf4203478s177.html#a11956482
Sent from the Maven - Users mailing list archive at Nabble.com.


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



how to specify multiple descriptors on the command-line

2007-08-01 Thread Lara Brian

Hi All,
How to specify multiple descriptors on the command line when invoking
assebly plugin? What is the separator for the descriptors. I tried
comma/colan but ended up unsuccessful.

I tried,
mvn package assembly:assembly -Ddescriptors=cmp-server.xml,cmp-client.xml
-Dmaven.test.skip=true

but getting,
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error reading assemblies: No assembly descriptors found.

[INFO]


thanks a lot.
-- 
View this message in context: 
http://www.nabble.com/how-to-specify-multiple-descriptors-on-the-command-line-tf4203464s177.html#a11956422
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Deactivate one profile when activating another

2007-06-28 Thread Lara Brian

Hi All,
I have couple of profiles, one of which is activeByDefault. I want to
activate another one by using properties, but that should deactivate the
other one? IS this possible in maven now?

Here is the section from settings.xml


   debug
   
true

 BV
 debug

   
   
debug
   
  
  
   optimize
   
false

 BV
 optimize

   
   
optimize
   
  

What i want is to use the "build.variant" property for "optimize" profile
when it is activated by,
mvn -DBV=optimize install

if none is specified by,
mvn install
want to use the "build.variant" of "debug" profile.

No matter what i do, the debug "build.variant" is all iam getting.
Is it possible to deactivate "debug" by activating "optimize"?

I don't want to make it mandatory for the user to specify which profile he
wants to activate all the time (want debug by default, but when specified as
optimize, deactivate debug and activate optimize)

Any help or pointers in this regard is highly appreciated.
Thanks,
Shankar.
-- 
View this message in context: 
http://www.nabble.com/Deactivate-one-profile-when-activating-another-tf3995531s177.html#a11346995
Sent from the Maven - Users mailing list archive at Nabble.com.


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



How to activate one profile that deactivates another profile.

2007-06-28 Thread Lara Brian
Hi All,
  I have couple of profiles, one of which is activeByDefault. I want to 
activate another one by using properties, but that should deactivate the other 
one? IS this possible in maven now?
   
  Here is the section from settings.xml
   

   debug
   
true

 BV
 debug

   
   
debug
   
  
  
   optimize
   
false

 BV
 &
lt;value>optimize

   
   
optimize
   
  

  What i want is to use the "build.variant" property for "optimize" profile 
when it is activated by,
  mvn -DBV=optimize install
   
  if none is specified by,
  mvn install
  want to use the "build.variant" of "debug" profile.
   
  No matter what i do, the debug "build.variant" is all iam getting.
  Is it possible to deactivate "debug" by activating "optimize"?
   
  I don't want to make it mandatory for the user to specify which profile he 
wants to activate all the time (want debug by default, but when specified as 
optimize, deactivate debug and activate optimize)
   
  Any help or pointers in this regard is highly appreciated.
  Thanks,
  Shankar.

   
-
Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, 
when. 

Re: [m2] running javadoc plugin in package phase

2007-06-25 Thread Lara Brian

Hi Paul,
I am also trying to run the javadoc in the package phase and it is not
generating the javadoc. Looks like you did it sucessfully. Can you tell me
what iam doing wrong? My POM is like this:





org.apache.maven.plugins
maven-javadoc-plugin

true



create-javadocs
package

javadoc





maven-assembly-plugin

.
true


cmp-client-javadoc.xml 





make-assembly
package

attached







I need to run javadoc and then assemble the javadoc created uisng assembly
descriptor (cmp-client-javadoc.xml).

Thanks a lot,
Shankar.




Paul Copeland wrote:
> 
> I'm generating javadoc within a webapp context.  I put the 
> maven-javadoc-plugin:javadoc goal into the package phase rather than in 
> the usual the generation  lifecycle. It is doing the right 
> thing but I get this message -
> 
> [WARNING] Removing: javadoc from forked lifecycle, to prevent recursive 
> invocation
> 
> Then I get a bunch of velocity messages (irrelevant for javadoc AFAIK)
> 
> Why do I get the message and can I get rid of velocity since this is a 
> plain vanilla javadoc tool run?
> 
> TIA  - Paul Copeland, Jot Object Technologies http://www.jotobjects.com/
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-m2--running-javadoc-plugin-in-package-phase-tf3948915s177.html#a11291634
Sent from the Maven - Users mailing list archive at Nabble.com.


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



trying to assemble the javadoc created.

2007-06-22 Thread Lara Brian

Hi All,
Iam trying to assemble the javadoc created. I wrote a assembly descriptor
that zips up the needed files. If i run, javadoc on the whole project first
and then run install, iam getting what i need. I want to do everything at
one shot.

So kept the javadoc in the build, my main POM is like this:




org.apache.maven.plugins
maven-javadoc-plugin



true

create-javadocs
package

javadoc





maven-assembly-plugin

.
true


cmp-client-javadoc.xml 
   




make-assembly
package

attached







When i run the mvn install at the main proeject,  it is calling the javadoc,
[INFO] [javadoc:javadoc {execution: create-javadocs}]
and downloading a bunch of stuff, but not generating any javadoc.

And finally it is failing,
[INFO] Failed to create assembly: Error creating assembly archive: You must
set at least one file.

Can anyone let me know what iam doing wrong?
Thanks a lot in advance.
-Shankar.
-- 
View this message in context: 
http://www.nabble.com/trying-to-assemble-the--javadoc-created.-tf3967192s177.html#a11260787
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: release:prepare without user intervention

2006-11-21 Thread Lara Brian
Hi Dan,
  Thanks for the reply. It worked. But is it possible to do the same but get 
the values it uses for POM, SCM Tag, and Release artifact name from some 
properties file or something instead of it giving its default values?
   
  Thanks
  __
   
  mvn release:prepare -B

On 11/17/06, Lara Brian wrote:
>
> I am new to Maven and just started playing with the plugins.
> I have a question, right now when i run "mvn release:prepare" it asks 
for
> user input.
> Is it possible to run the same command and instead of waiting for me 
to
> answer the questions, is it possbile for it to read some property 
file for
> those questions?
>
> Basically i would like ability to run the command without user
> intervention.
>
> Thanks you.
>



-
Sponsored Link

$200,000 mortgage for $660/mo - 30/15 yr fixed, reduce debt, home equity - 
Click now for info

Re: release:prepare without user intervention

2006-11-21 Thread Lara Brian
Hi Dan,
Thanks a lot for the info.


 
-
Sponsored Link

Mortgage rates near 39yr lows. $310,000 Mortgage for $999/mo -  Calculate new 
house payment

release:prepare without user intervention

2006-11-17 Thread Lara Brian
 I am new to Maven and just started playing with the plugins.  
 I have a question, right now when i run "mvn release:prepare" it asks for user 
input. 
 Is it possible to run the same command and instead of waiting for me to answer 
the questions, is it possbile for it to read some property file for those 
questions? 
  
 Basically i would like ability to run the command without user intervention. 
  
 Thanks you.
 
-
Sponsored Link

Mortgage rates near 39yr lows. $510,000 Mortgage for $1,698/mo -   Calculate 
new house payment