common build section for several profiles

2007-01-23 Thread hamdard

Hi

Is it possible to have a common build section that is only executed for
certain profiles.
For example if I have in total 3 profiles in my pom, and out of 3, 2 have
absolutely same build section. I don't want to duplicate the same build
markup in my pom. Can I declare that 'common' build outside from the
profiles, but then configure it to get executed only for 2 profiles and
remain quiet for 1.

Thanks


-- 
View this message in context: 
http://www.nabble.com/common-build-section-for-several-profiles-tf3078470s177.html#a8552988
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: maven2 archetype questions

2006-08-28 Thread hamdard


Is there support for renaming files based on system
properties (such as renameMe.properties ->
${artifactId}.properties)?
- Don't think there's any plugin in the maven space. We have written a
custom mojo to do this.

 



Drew Pace wrote:
> 
> I've gone through documentation for creating
> archetypes and have made a few test ones successfully.
>  The process is simple, but I'm wondering if there's
> more under the cover besides what the documentation
> tells.  Specifically:
> 
> 1. Is there a way to just copy over directory
> structures (even empty directories) and files without
> having to explicitly map this is the archetype.xml
> configuraiton?
> 
> 2. Is there support for renaming files based on system
> properties (such as renameMe.properties ->
> ${artifactId}.properties)?
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/maven2-archetype-questions-tf2177358.html#a6020746
Sent from the Maven - Users forum at Nabble.com.


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



[M2] How to include transitive dependencies with Assembly plugin

2006-08-28 Thread hamdard

Hi

Is there a way to package the transitive dependencies of my dependency
'com.mycompany.ixgf:gw-dao', below?

Thx


  pkg
  
zip
  

  
  

  lib
 
  
  com.mycompany.ixgf:gw-dao
  

  

-- 
View this message in context: 
http://www.nabble.com/-M2--How-to-include-transitive-dependencies-with-Assembly-plugin-tf2177453.html#a6020485
Sent from the Maven - Users forum at Nabble.com.


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



Re: [M2] How to softcode 'version' in dependency declaration

2006-08-17 Thread hamdard

This is great, thanks to all. I'm using dependencyManagement and also the
property declaration in the settings.xml that captures the version for the
entire project. Every where else, the version is softly referenced. e.g.

settings.xml: 

frameworkVersion 

2.3



frameworkVersion


main pom:

com.mycompany.ixgf
ixgf
${framework.version}
...

sub-module pom:


com.mycompany.ixgf
ixgf
${framework.version}




com.mycompany.ixgf
gw-core
${framework.version}

...

The issue now is that the build only works from the top level pom. If you
try to build a sub-module independently, you'll get artifact resultion
errors, like below:

--
GroupId: com.mycompany.ixgf
ArtifactId: ixgf
Version: ${framework.version}

Reason: Unable to download the artifact from any repository
--


Looks like the property I defined in settings.xml is made available only to
the top level pom? 


Thanks


Rohnny Moland wrote:
> 
> I guess it should be possible to add something like:
> 
>   1.0
> 
> 
> ..to your pom or settings file.
> 
> HTH,
> Rohnny
> 
> hamdard wrote:
>> Hi
>> 
>> Is it possible to softcode the version in the dependency declaration?
>> 
>> For example, the pom could be like this:
>> 
>> 
>>  com.mycompany.ixaf
>>  gw-plugin
>>  ${myversion}
>> 
>> 
>> And the myversion parameter is controllable from the settings.xml file.
>> 
>> The motivation is that if we have a multi-module build in maven with all
>> the
>> different modules using the same 'one' version, we could control/update
>> the
>> version of the entire project from one place (settings.xml), instead of
>> updating it in several places. 
>> 
>> Thanks
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-M2--How-to-softcode-%27version%27-in-dependency-declaration-tf2120609.html#a5854197
Sent from the Maven - Users forum at Nabble.com.


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



[M2] How to softcode 'version' in dependency declaration

2006-08-17 Thread hamdard

Hi

Is it possible to softcode the version in the dependency declaration?

For example, the pom could be like this:


com.mycompany.ixaf
gw-plugin
${myversion}


And the myversion parameter is controllable from the settings.xml file.

The motivation is that if we have a multi-module build in maven with all the
different modules using the same 'one' version, we could control/update the
version of the entire project from one place (settings.xml), instead of
updating it in several places. 

Thanks
-- 
View this message in context: 
http://www.nabble.com/-M2--How-to-softcode-%27version%27-in-dependency-declaration-tf2120609.html#a5848660
Sent from the Maven - Users forum at Nabble.com.


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



[M2] can we use 'mvn assembly' instead assembly:assembly

2006-06-05 Thread hamdard

Like we can do 'mvn install' instead install:install

If possible, what needs be configured and where?

Thanks
-H
--
View this message in context: 
http://www.nabble.com/-M2--can-we-use-%27mvn-assembly%27-instead-assembly%3Aassembly-t1737143.html#a4720482
Sent from the Maven - Users forum at Nabble.com.


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



Re: [m2]How to get files into test classpath?

2006-05-30 Thread hamdard

Thanks Trygve 

The workaround works! Here's my configuration that binds the generated
sources and the test sources to the compiler plugin. This way maven compiles
them and put the .classes to the executable (target) directory. 

.
.


org.apache.maven.plugins
maven-compiler-plugin

1.5
1.5

dod/deployments/src/java/**/*.java


src/test/java/**/*.java 




--
View this message in context: 
http://www.nabble.com/-m2-How+to+get+files+into+test+classpath--t987507.html#a4635367
Sent from the Maven - Users forum at Nabble.com.


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



RE: Multiple source directories (again)

2006-05-30 Thread hamdard

I think where you have to do:

.

you also have to specify the same for testSourceDirectory, e.g.:

.

and then rest is same...


--
View this message in context: 
http://www.nabble.com/Multiple+source+directories+%28again%29-t501592.html#a4635171
Sent from the Maven - Users forum at Nabble.com.


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



Re: [m2]How to get files into test classpath?

2006-05-25 Thread hamdard

My problem is that I don't have the jar available in advance to add it to the
maven's dependency section with scopt test.

The jar is generated as part of a maven lifecycle prior to test
()generate-sources. I need the ability to add a  a directory to the test
classpath with a filter *.jar

Is this possible?


Thanks
--
View this message in context: 
http://www.nabble.com/-m2-How+to+get+files+into+test+classpath--t987507.html#a4565660
Sent from the Maven - Users forum at Nabble.com.


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



Re: [m2]How to get files into test classpath?

2006-05-22 Thread hamdard

Hi 

I have a similar issue where I want to add a jar to the test classpath,
before running the tests.
The jar is generated dynamically (at runtime), so I can't make a static
declaration in the pom.

I need to do something like:



lib/

*.jar





But it doesn't work when I try. 

Thanks
--
View this message in context: 
http://www.nabble.com/-m2-How+to+get+files+into+test+classpath--t987507.html#a4512885
Sent from the Maven - Users forum at Nabble.com.


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



Re: [M2] How to stop archetype create from filtering binaries

2006-05-21 Thread hamdard

Found it! This is fixed in 1.0-alpha-4 - see corresponding JIRA:
http://jira.codehaus.org/browse/ARCHETYPE-19

Thanks Jorg, your tip helped me to explore the JIRA.

cheers
-H

--
View this message in context: 
http://www.nabble.com/-M2-+How+to+stop+archetype+create+from+filtering+binaries-t1656598.html#a4496840
Sent from the Maven - Users forum at Nabble.com.


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



[M2] How to stop archetype create from filtering binaries

2006-05-20 Thread hamdard

Hello,

I'm aware that it can be done elsewhere, but not sure whether it's possible
with the archetype create, and how?

Thanks

--
View this message in context: 
http://www.nabble.com/-M2-+How+to+stop+archetype+create+from+filtering+binaries-t1656598.html#a4488327
Sent from the Maven - Users forum at Nabble.com.


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