Setting a property value from an Ant task

2008-09-08 Thread Carlos Alonso
Hi All.

I have the following situation: I have two maven properties that should
take a value or another depending on a boolean given from command line
and I don't know how to achieve it.
I'm trying to achieve this by using the following ant task:

org.apache.maven.plugins
maven-antrun-plugin


ant-contrib
ant-contrib
1.0b2




validate







 
 



 
 





run




Properties seem to be set up successfully but only seem to be available
within the ant task execution, but not exported to the maven one.
Any input?

Thanks in advance.

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



Re: [Job Opening] - Maven Consultants

2008-09-08 Thread Dan Tran
"Ultimate goal of this project is to automate the build & deployment of code
for a globally dispersed team of 1000+ software developers."

Mine you need to get both big company behind maven to work for you for
this kink of work.
if you know who they are :-)

How many do you intend to hire? 1?

-D

On Mon, Sep 8, 2008 at 12:26 PM, Jason van Zyl <[EMAIL PROTECTED]> wrote:
> There's the [EMAIL PROTECTED] list for this sort of thing.
>
> On 8-Sep-08, at 3:21 PM, Neeti wrote:
>
>>
>> We have immediate need for experienced Maven consultants to contribute to
>> the
>> architecture, design & development of next generation build & release
>> system
>> for major e-commerce firm.
>>
>> Ultimate goal of this project is to automate the build & deployment of
>> code
>> for a globally dispersed team of 1000+ software developers.
>>
>> This is a long-term consulting engagement, upwards of a year or more.
>> Possibility exists for contract-to-hire or direct hire for the right
>> candidate.
>>
>>
>>
>> Location: San Jose, CA
>> Job Responsibilities:
>> * 5+ years' of software development experience with at least 1 year of
>> direct user level Maven experience.
>> * An individual who has made a previous, reasonably significant
>> contribution
>> to Maven open source code base is preferred.
>> * Experience as a build and release engineer is a MUST
>> * Experience with high volume deployment is a HUGE PLUS
>> * Flexible approach to analyzing technical issues and clearly
>> communicating
>> recommendations/solutions is required
>> * Masters Degree or Equivalent preferred
>>
>>
>>
>>
>>
>> Feel free to contact me for further details.
>>
>>
>> Thank you for your time.
>>
>>
>> Neetu
>> ---
>> Valiantica, Inc.
>> 408-693-3145
>> YahooIM: neetuvaliantica
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-Job-OpeningMaven-Consultants-tp19379247p19379247.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]
>>
>
> Thanks,
>
> Jason
>
> --
> Jason van Zyl
> Founder,  Apache Maven
> jason at sonatype dot com
> --
>
> A party which is not afraid of letting culture,
> business, and welfare go to ruin completely can
> be omnipotent for a while.
>
>  -- Jakob Burckhardt
>
>
> -
> 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: [Job Opening] - Maven Consultants

2008-09-08 Thread Jason van Zyl

There's the [EMAIL PROTECTED] list for this sort of thing.

On 8-Sep-08, at 3:21 PM, Neeti wrote:



We have immediate need for experienced Maven consultants to  
contribute to the
architecture, design & development of next generation build &  
release system

for major e-commerce firm.

Ultimate goal of this project is to automate the build & deployment  
of code

for a globally dispersed team of 1000+ software developers.

This is a long-term consulting engagement, upwards of a year or more.
Possibility exists for contract-to-hire or direct hire for the right
candidate.



Location: San Jose, CA
Job Responsibilities:
* 5+ years‘ of software development experience with at least 1 year of
direct user level Maven experience.
* An individual who has made a previous, reasonably significant  
contribution

to Maven open source code base is preferred.
* Experience as a build and release engineer is a MUST
* Experience with high volume deployment is a HUGE PLUS
* Flexible approach to analyzing technical issues and clearly  
communicating

recommendations/solutions is required
* Masters Degree or Equivalent preferred





Feel free to contact me for further details.


Thank you for your time.


Neetu
---
Valiantica, Inc.
408-693-3145
YahooIM: neetuvaliantica


--
View this message in context: 
http://www.nabble.com/-Job-OpeningMaven-Consultants-tp19379247p19379247.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]



Thanks,

Jason

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

A party which is not afraid of letting culture,
business, and welfare go to ruin completely can
be omnipotent for a while.

  -- Jakob Burckhardt


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



[PLEASE TEST] Maven 2.1.0-M1-RC16

2008-09-08 Thread John Casey

Hi again,

I've fixed two more issues that came up in RC13 and the intervening 
release candidates:


- http://jira.codehaus.org/browse/MNG-3746
- http://jira.codehaus.org/browse/MNG-3747

Here's the URL for the RC16 release candidate:

http://people.apache.org/~jdcasey/stage/current-maven-RC/

Please give it a shot and let me know if you find any more issues.

Thanks,

-john

---
John Casey
Developer and PMC Member, Apache Maven (http://maven.apache.org)
Member, Apache Software Foundation
Blog: http://www.ejlife.net/blogs/buildchimp

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



Re: What's the canonical way to package multiple modules as one jar for delivery?

2008-09-08 Thread Brett Porter
You will need to use the assembly plugin to create your own JAR.
- Brett

2008/9/9 Benjamin Smith-Mannschott <[EMAIL PROTECTED]>

> I've got a project structured like this:
>
> mylib/pom.xml /* parent and multi-module build; packaging: pom */
>|
>+-- mylib_core/pom.xml  \
>|   | java projects which package as jar.
>+-- mylib_util/pom.xml  |
>... |
>+-- mylib_ext/pom.xml   /
>
> The standard maven build executed at mylib will produce
> mylib_core-1.0.0.jar,
> mylib_util-1.0.0.jar, mylib_ext-1.0.0.jar etc. Thanks to reactor the
> dependencies between the parts are consulted and the parts are built in the
> right order. Very nice.
>
> "mylib" is also part of something I deliver to a client. They don't use
> maven. I always deliver something like mylib-1.0.0.jar to them, which
> combines the contents of all the submodules of mylib.  From my client's
> point of view how I choose to divide things into sub-modules is an
> implementation decision of which he should not need to be aware.
>
> Currently, I do this by hand.  This is a pain.  I'd like maven to automate
> this.  Is there a canonical way of doing this?  I was quite surprised not to
> find a standard assembly type for this scenario. (There is one that will
> combine things into one jar, but it sucks in all  dependencies, transitvely
> -- which is not what I want.)
>
> Is there a simple way to accomplish this, or should I just accept that I'll
> once again have to beat my fingers bloody on the angle bracket keys?
>
> // Ben
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/


Re: macosx problem with forkMode and maven-surefire-plugin

2008-09-08 Thread Brett Porter
You're correct. I found with a test project that the correct runtime JAR is
used, but the wrong JVM. However, using 2.0.10-RC11 corrects the problem,
and it was also fine under 2.0.8.
- Brett

2008/9/9 Mark Hansen <[EMAIL PROTECTED]>

> Maven version: 2.0.9
> Java version: 1.6.0_05
> OS name: "mac os x" version: "10.5.4" arch: "x86_64" Family: "mac"
>
>   
>   org.apache.maven.plugins
>   maven-surefire-plugin
>   
>   once
>   ${jdk142.home}/bin/java
>   
>   
>   
>   tomcat.port
>   ${tomcat.port}
>   
>   
>   weblogic.server.port
>   ${weblogic.port}
>   
>   
>   sl-ant.dir
>   ${sl.ant.dir}
>   
>   
>   java6.home
>   ${java6.home}
>   
>   
>   servicelayer.home.url
>   ${servicelayer.home.url}
>   
>   
>   servicelayer.home
>   ${servicelayer.home}
>   
>   
>   m2.repo
>   ${m2.repo}
>   
>   
>   
>   
>
>
>
>
> Brett Porter wrote:
>
>> can you paste in the surefire plugin configuration that you are using
>> exactly?
>> Cheers,
>> Brett
>>
>> 2008/9/8 Mark Hansen <[EMAIL PROTECTED]>
>>
>>
>>
>>> I'm running MVN with JDK1.6.0 on MacOSX.  When I set forkMode to point to
>>> my JDK1.4.2, I'm still getting the JDK1.6.0 version of classes.jar on the
>>> classpath.  Has anybody else experienced this problem?
>>>
>>> -- Mark
>>>
>>>
>>> -
>>> 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]
>
>


-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/


Re: war plugin failure

2008-09-08 Thread Wayne Fay
What version are you using now (of the war plugin specifically)? If
you don't know, you probably should find out, and lock it down in the
pom.

Wayne

On Mon, Sep 8, 2008 at 5:59 PM, Martin Gainty <[EMAIL PROTECTED]> wrote:
>
> [INFO] [war:war]
> [INFO] Packaging webapp
> [INFO] 
> 
> [ERROR] FATAL ERROR
> [INFO] 
> 
> [INFO] Cannot construct org.apache.maven.plugin.war.util.WebappStructure as 
> it d
> oes not have a no-args constructor
>
> is there a good war plugin available for maven 2.0.8?
>
> thanks,
> Martin
> __
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official 
> business of Sender. This transmission is of a confidential nature and Sender 
> does not endorse distribution to any party other than intended recipient. 
> Sender does not necessarily endorse content contained within this 
> transmission.
>
> _
> Get more out of the Web. Learn 10 hidden secrets of Windows Live.
> http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

hat

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



war plugin failure

2008-09-08 Thread Martin Gainty

[INFO] [war:war]
[INFO] Packaging webapp
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it d
oes not have a no-args constructor

is there a good war plugin available for maven 2.0.8?

thanks,
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 

_
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

Re: macosx problem with forkMode and maven-surefire-plugin

2008-09-08 Thread Mark Hansen

Maven version: 2.0.9
Java version: 1.6.0_05
OS name: "mac os x" version: "10.5.4" arch: "x86_64" Family: "mac"

   
   org.apache.maven.plugins
   maven-surefire-plugin
   
   once
   ${jdk142.home}/bin/java
   
   

   
   tomcat.port
   ${tomcat.port}
   
   
   weblogic.server.port
   ${weblogic.port}
   
   
   sl-ant.dir
   ${sl.ant.dir}
   
   
   java6.home
   ${java6.home}
   
   
   servicelayer.home.url
   ${servicelayer.home.url}
   
   
   servicelayer.home
   ${servicelayer.home}
   
   
   m2.repo
   ${m2.repo}
   
   
   
   

  



Brett Porter wrote:

can you paste in the surefire plugin configuration that you are using
exactly?
Cheers,
Brett

2008/9/8 Mark Hansen <[EMAIL PROTECTED]>

  

I'm running MVN with JDK1.6.0 on MacOSX.  When I set forkMode to point to
my JDK1.4.2, I'm still getting the JDK1.6.0 version of classes.jar on the
classpath.  Has anybody else experienced this problem?

-- Mark


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



[california.jobs.com] Very HOT Urgent REQ: Pls go through the following REQs... and respond me if u have any matching Resumes..... Mail to [EMAIL PROTECTED]

2008-09-08 Thread Siva Kumar
 Dear Associates,

Pls go through the following REQs...  and respond me if u have any matching
Resumes. Mail to [EMAIL PROTECTED]



*Pl *find the below requirements on Oracle for review which are active at
this point – please let me know if you have any suitable profiles that match
our client need

* *

*Position 1:*



Title: Sr. Oracle Apps Developer

Location: Mission Viejo, CA

Duration: 6 Months



*Skills Required:*

* *

Ø  Sr. Oracle Applications Developer who is very technical with a bit of
functional experience.

Ø  Need to be expertise on TCA/CRM, manufacturing and Financial modules.

Ø  Must have a strong understanding of the base architecture of Oracle
applications, especially around CRM



*Position 2:*



Title: Sr. PL/SQL Developer

Location: Milpitas, CA

Duration: 6 Months



*Skills Required:*

* *

Ø  Sr. PL/SQL Developer with hard core PL/SQL Development skills on 10g AND
9i who also has a background on .NET(v2).

Ø  The resource with c# experience is preferred.



*Position 3:*



Title: Sr. Oracle P2P Resource

Location: Santa Clara, CA

Duration: 6-12 Months



*Skills Required:*

* *

Ø  Sr. Oracle Purchasing resource with expertise in Procure to Pay, Design
Doc Prep, AP, Fixed Assets, Purchasing, And Reports 6i.

Ø  Must have hands on Techno-Functional Experience and the resource with a
Business analyst background is preferred.



*Position 4:*



Title: Sr. Oracle FA Functional Resource

Location: Bay Area, CA

Duration:ml :
> >
> > 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";>
> >  4.0.0
> >  t4
> >  t4-core-ddl
> >  pom
> >
> >t4
> >t4-parent
> >1.0-SNAPSHOT
> >
> >  1.0-SNAPSHOT
> >  T4 Core DDL
> >   
> >   
> >t4
> >t4-core-all
> >${version}
> >
> >   
> >   org.hibernate
> >   hibernate-annotations
> >   
> >   
> >   org.hibernate
> >   hibernate-entitymanager
> >   
> >   
> >
> >  
> >
> >org.codehaus.mojo
> >   hibernate3-maven-plugin
> >   
> >
> >false
> >false
> >t4-core.sql
> >   
> >   
> >   
> >   hbm2ddl
> >
> > jpaconfiguration
> >
> >
> >
> > 
> >hibernate.dialect
> >
>  org.hibernate.dialect.HSQLDialect
> >
> >
> >
> >
> >
> >test-compile
> >
> >hbm2ddl
> >
> >
> >
> >
> >
> >  
> > 
> >
> > Thanks in advance,
> >
> > Olivier
> >
>
>
>
> --
> Brett Porter
> Blog: http://blogs.exist.com/bporter/
>



-- 
Seules 2 choses sont infinies : l'univers et la bêtise humaine ; et encore
pour l'univers, je ne suis pas sûr … (Einstein)


Re: Need help understanding maven file

2008-09-08 Thread Mick Knutson
run 'mvn install -e'
---
Thank You…

Mick Knutson
BASE Logic, inc.
(415) 354-4215

Website: http://baselogic.com
Blog: http://baselogic.com/blog
BLiNC Magazine: http://blincmagazine.com
Linked IN: http://linkedin.com/in/mickknutson
DJ Mick: http://djmick.com
MySpace: http://myspace.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com



On Mon, Sep 8, 2008 at 12:28 PM, muddushafi <[EMAIL PROTECTED]> wrote:

>
> Can anyone explain me why we use SCM in the project. And when we build a
> project using maven(ECLIPSE) where does the .jar file is formed.
> As I was executing this using maven:build, a Folder is formed in my
> internal
> repositroy(.m2), with name atcc-common, But I cant see
> atcc-common-security-1.3.4 in it.
>
> How does maven figure out the dependency jars.i.e where do they lie, in  my
> personal sytem, or is it located remotely.
>
>
> 
>  
>${basedir}/../project.xml
>atcc-common-security
>
>atcc-common
>3
>
>atcc-common-security
>
>ATCC Security
>
>1.3.4
>
>
>Apache Software Foundation
>http://www.apache.org/
>http://maven.apache.org/images/jakarta-logo-blue.gif
>
>
>2005
>org.atcc.common.security
>http://maven.apache.org/images/maven.jpg
>ATCC security classes.
>
>ATCC security classes.
>
>http://maven.apache.org/reference/plugins/examples/
>
> http://nagoya.apache.org/scarab/servlet/scarab/
> 
>jakarta.apache.org
>
> /www/maven.apache.org/reference/plugins/examples/
> 
>
> /www/maven.apache.org/builds/
> 
>
>
>
> scm:cvs:pserver:[EMAIL PROTECTED]:
> /home/cvspublic:maven-plugins/examples
>http://cvs.apache.org/viewcvs/maven-plugins/examples/
>
>
>
>
>
>
>jboss
>jbossall-client
>3.2.3
>jar
>
>
>jboss
>jbosssx
>3.2.5
>jar
>
>
>rbums
>rbums-client
>1.2
>jar
>
>
>springframework
>spring
>2.0
>jar
>
>
>
>
>[EMAIL PROTECTED]
>src/java
>
>
>
> 
>
>
> --
> View this message in context:
> http://www.nabble.com/Need-help-understanding-maven-file-tp19379360p19379360.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]
>
>


Need help understanding maven file

2008-09-08 Thread muddushafi

Can anyone explain me why we use SCM in the project. And when we build a
project using maven(ECLIPSE) where does the .jar file is formed.
As I was executing this using maven:build, a Folder is formed in my internal
repositroy(.m2), with name atcc-common, But I cant see
atcc-common-security-1.3.4 in it.

How does maven figure out the dependency jars.i.e where do they lie, in  my
personal sytem, or is it located remotely.



 
${basedir}/../project.xml
atcc-common-security

atcc-common
3

atcc-common-security

ATCC Security

1.3.4


Apache Software Foundation
http://www.apache.org/
http://maven.apache.org/images/jakarta-logo-blue.gif


2005
org.atcc.common.security
http://maven.apache.org/images/maven.jpg
ATCC security classes.

ATCC security classes.

http://maven.apache.org/reference/plugins/examples/
   
http://nagoya.apache.org/scarab/servlet/scarab/
jakarta.apache.org
   
/www/maven.apache.org/reference/plugins/examples/
   
/www/maven.apache.org/builds/


   
scm:cvs:pserver:[EMAIL 
PROTECTED]:/home/cvspublic:maven-plugins/examples
http://cvs.apache.org/viewcvs/maven-plugins/examples/






jboss
jbossall-client
3.2.3
jar


jboss
jbosssx
3.2.5
jar


rbums
rbums-client
1.2
jar


springframework
spring
2.0
jar




[EMAIL PROTECTED]
src/java






-- 
View this message in context: 
http://www.nabble.com/Need-help-understanding-maven-file-tp19379360p19379360.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]



[Job Opening] - Maven Consultants

2008-09-08 Thread Neeti

We have immediate need for experienced Maven consultants to contribute to the
architecture, design & development of next generation build & release system
for major e-commerce firm. 

Ultimate goal of this project is to automate the build & deployment of code
for a globally dispersed team of 1000+ software developers. 

This is a long-term consulting engagement, upwards of a year or more.
Possibility exists for contract-to-hire or direct hire for the right
candidate. 



Location: San Jose, CA
Job Responsibilities: 
* 5+ years‘ of software development experience with at least 1 year of
direct user level Maven experience. 
* An individual who has made a previous, reasonably significant contribution
to Maven open source code base is preferred. 
* Experience as a build and release engineer is a MUST 
* Experience with high volume deployment is a HUGE PLUS 
* Flexible approach to analyzing technical issues and clearly communicating
recommendations/solutions is required 
* Masters Degree or Equivalent preferred

 

 

Feel free to contact me for further details.


Thank you for your time.

 
Neetu
---
Valiantica, Inc.
408-693-3145
YahooIM: neetuvaliantica


-- 
View this message in context: 
http://www.nabble.com/-Job-OpeningMaven-Consultants-tp19379247p19379247.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]



[PLEASE TEST] Maven 2.1.0-M1-RC15

2008-09-08 Thread John Casey

Hi everyone,

I've fixed a bug in RC13 (yes, it took two tries, thus the RC15 version 
of this post). You can find the new release candidate here:


http://people.apache.org/~jdcasey/stage/current-maven-RC

As a matter of fact, I'll just start updating this URL with the latest 
RC when I roll a new one, to make it easier to type/remember/etc.


For what it's worth, I'm still working on one known issue which will 
necessitate an RC16:


http://jira.codehaus.org/browse/MNG-3746

However, this last issue (MNG-3743) was so ugly I didn't want to wait to 
get something out to you all that you could test.


Please let me know if you find any [other] issues.

Thanks,

-john

---
John Casey
Developer and PMC Member, Apache Maven (http://maven.apache.org)
Member, Apache Software Foundation
Blog: http://www.ejlife.net/blogs/buildchimp

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



Re: Creating Delivery Package

2008-09-08 Thread Karl Heinz Marbaise
Hi there,

> Can you share how you did this for Tomcat?  (There's a wiki [1] if you
> need somewhere to write.)
Good hint...thanks...
> 
> [1] http://docs.codehaus.org/display/MAVENUSER/Home
Inserted a first state of documentation with snippets of the
POM/Assembly descriptors donesomeone should proof read this...and
give me some feedback to improve that documentation

Kind regards
Karl Heinz Marbaise
-- 
SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029
Hauptstrasse 177 USt.IdNr: DE191347579
52146 Würselen   http://www.soebes.de

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



RE: Where to find Actual SWT jars as Maven dependency ?

2008-09-08 Thread Martin Gainty

if you dont specify your plugin's version/artifactID/groupID attributes you get 
this configuration
http://maven.apache.org/plugins/index.html

Caveat Emptor:
the beta war is not ready and I have had to override this plugin in local pom 
with 2.0

you'll want to specify   and  remote 
repositories in the %M2_HOME%/conf/settings.xml

YMMV
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> From: [EMAIL PROTECTED]
> To: users@maven.apache.org
> Subject: Where to find Actual SWT jars as Maven dependency ?
> Date: Mon, 8 Sep 2008 17:04:44 +0200
> 
> Hello,
> 
> where can i find most (stable) SWT Jars to bind in a 
> Project ? Anyone knows about some repository ?
> 
> Actually i think it is not that simple as SWT contains 
> a lot of Native bindings.
> 
> regards,
> Jens
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

Re: Maven 2 + Hibernate + Oracle 10g

2008-09-08 Thread Wayne Fay
On Mon, Sep 8, 2008 at 4:31 AM, svenson <[EMAIL PROTECTED]> wrote:
>
> Exception in thread "main" org.hibernate.HibernateException: Hibernate
> Dialect must be explicitly set
>
> What dialect should I use ?

Hibernate questions => Send to Hibernate Users email list.
Maven questions => Send here.

Wayne

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



Re: Creating Delivery Package

2008-09-08 Thread Wendy Smoak
On Mon, Sep 8, 2008 at 8:58 AM, Karl Heinz Marbaise <[EMAIL PROTECTED]> wrote:

> Now i have a working Tomcat 6.0.18 which includes my project.war
> fileso it simplyfies the installation process to:
>
> Just unzip this file, goto bin directory and "startup.bat/startup.sh"
> That's it...

Can you share how you did this for Tomcat?  (There's a wiki [1] if you
need somewhere to write.)

[1] http://docs.codehaus.org/display/MAVENUSER/Home

-- 
Wendy

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



Re: Creating Delivery Package

2008-09-08 Thread Karl Heinz Marbaise
Hi Brett,

> You can use the dependency plugin to download and unpack the tomcat
> distribution and the assembly plugin to combine it.
> 
> Here is a practical example, which bundles Jetty as the servlet
> container, and uses the Java Service Wrapper for starting it as a service:
> http://svn.apache.org/viewvc/archiva/trunk/archiva-jetty/pom.xml?revision=685059&view=markup
> 
This was a really good hintthe first impression was...Oh nobut
after a while i have tried itand it worked as expected

Now i have a working Tomcat 6.0.18 which includes my project.war
fileso it simplyfies the installation process to:

Just unzip this file, goto bin directory and "startup.bat/startup.sh"
That's it...

Thanks so much for this tip
Kind Regards
Karl Heinz Marbaise
-- 
SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029
Hauptstrasse 177 USt.IdNr: DE191347579
52146 Würselen   http://www.soebes.de

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



get per java the bundle-require from Manifest-File

2008-09-08 Thread simoha

hi all,
I try just a Maven plugin to write, how can I get please per java the
bundle-require from the manifest-File..? There is a method or so??
Thnaks in Advance
-- 
View this message in context: 
http://www.nabble.com/get-per-java-the-bundle-require-from-Manifest-File-tp19374352p19374352.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]



Where to find Actual SWT jars as Maven dependency ?

2008-09-08 Thread mac-systems
Hello,

where can i find most (stable) SWT Jars to bind in a 
Project ? Anyone knows about some repository ?

Actually i think it is not that simple as SWT contains 
a lot of Native bindings.

regards,
Jens

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



Problems building EAR with HAR

2008-09-08 Thread hal arres
Hi,

maybe you recognize from this morning :) 
After my first problem building a JAR with a dependeny on a HAR artifact I am 
trying to build the EAR which contains both files, the JAR and the HAR.
But during this issue I got a build failure which I don't understand. I am 
trying to fix this since a few hours, but without success. It would be very 
nice if you could help me also with this problem.

Maven prints the following message into the console:
[INFO] Scanning for projects...
[INFO] 
[INFO] Building Example Backend
[INFO]task-segment: [install]
[INFO] 
[INFO] [ear:generate-application-xml]
[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] Artifact[har:example:c-backend-persistence] is not a dependency of the 
project.
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 1 second
[INFO] Finished at: Mon Sep 08 16:40:32 CEST 2008
[INFO] Final Memory: 4M/8M
[INFO] 


But inside the pom.xml of the ear I have defined the dependency on this 
artefact. 

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";>

4.0.0
c-backend
ear
Example Backend


example
example-parent
1-SNAPSHOT




example
c-backend-persistence
1-SNAPSHOT
jboss-har


example
c-backend-crs
1-SNAPSHOT







  org.codehaus.mojo
  jboss-packaging-maven-plugin
  
  true


org.apache.maven.plugins
maven-ear-plugin



${artifactId}/src/main/resources/application.xml
lib


true




   example
c-backend-crs

true


   example
c-backend-persistence










I would be glad if someone could help me to fix this problem.

Thank you,
Hal

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

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



RE: Maven & documentation

2008-09-08 Thread Andreas Guther
You might get some information about Maven history from Wikipedia:

http://en.wikipedia.org/wiki/Apache_Maven

Andreas


-Original Message-
From: Matthias Dorfner [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 08, 2008 6:57 AM
To: users@maven.apache.org
Subject: Maven & documentation

Hello everybody,

 

the task for my diploma thesis is to implement Maven for an existing software 
project whose API is written in Java. The thing is that my boss wants besides 
the revision & configuration management a good documentation for the already 
existing API (which you can also show customers to explain them the API in a 
more illustrative way). 

 

I’ve read something about Maven being NOT a documentation tool, so am I right 
with this powerful piece of software? What features/support can I use for 
documentation issues without programming a lot on my own?

 

Secondly, does someone know who’s the “founder” or creative director behind 
Maven, cause I want to ask him/her to do an expert interview for my diploma 
thesis?

 

Thank you very much and have a nice day!

 

Greetz,

Matthias

 

 

 



Re: Dependency problem for org.eclipse.core:runtime:3.3.100-v20070530

2008-09-08 Thread Costin Caraivan

Hello,

When your pom.xml starts looking like this:


org.eclipse.jface
text
3.3.0-v20070606-0010


org.eclipse
text


org.eclipse
swt


org.eclipse
jface




I believe some actions are necessary. Does anyone know who the owner of the
org.eclipse.* pom.xmls and jars is?

I would like to contact them, they have loads of version bugs in their files
:(



Stephen Connolly-2 wrote:
> 
> Could you not work around the issue with exclusions?
> 

-- 
View this message in context: 
http://www.nabble.com/Dependency-problem-for-org.eclipse.core%3Aruntime%3A3.3.100-v20070530-tp19327179p19373173.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: Maven & documentation

2008-09-08 Thread Karl Heinz Marbaise
Hi Matthias,

> 
> the task for my diploma thesis is to implement Maven for an existing software 
> project whose API is written in Java. 
> the thing is that my boss wants besides the revision & configuration
> management a good documentation for the already existing API (which
you can
> also show customers to explain them the API in a more
> illustrative way).

Take  a look at http://maven.apache.org/doxia/book/index.html

there you can create a book via XML file and convert it into XDoc,  PDF,
RTF and LaTeX ...

That might be an approachthe XDoc can be integrated into the
Maven process and used to create an online documentation with the same
contents as the resulted book 

Kind regards
Karl Heinz Marbaise
-- 
SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029
Hauptstrasse 177 USt.IdNr: DE191347579
52146 Würselen   http://www.soebes.de

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



What's the canonical way to package multiple modules as one jar for delivery?

2008-09-08 Thread Benjamin Smith-Mannschott

I've got a project structured like this:

mylib/pom.xml /* parent and multi-module build; packaging: pom */
|
+-- mylib_core/pom.xml  \
|   | java projects which package as jar.
+-- mylib_util/pom.xml  |
... |
+-- mylib_ext/pom.xml   /

The standard maven build executed at mylib will produce  
mylib_core-1.0.0.jar,
mylib_util-1.0.0.jar, mylib_ext-1.0.0.jar etc. Thanks to reactor the  
dependencies between the parts are consulted and the parts are built  
in the right order. Very nice.


"mylib" is also part of something I deliver to a client. They don't  
use maven. I always deliver something like mylib-1.0.0.jar to them,  
which combines the contents of all the submodules of mylib.  From my  
client's point of view how I choose to divide things into sub-modules  
is an implementation decision of which he should not need to be aware.


Currently, I do this by hand.  This is a pain.  I'd like maven to  
automate this.  Is there a canonical way of doing this?  I was quite  
surprised not to find a standard assembly type for this scenario.  
(There is one that will combine things into one jar, but it sucks in  
all  dependencies, transitvely -- which is not what I want.)


Is there a simple way to accomplish this, or should I just accept that  
I'll once again have to beat my fingers bloody on the angle bracket  
keys?


// Ben

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



Maven & documentation

2008-09-08 Thread Matthias Dorfner
Hello everybody,

 

the task for my diploma thesis is to implement Maven for an existing software 
project whose API is written in Java. The thing is that my boss wants besides 
the revision & configuration management a good documentation for the already 
existing API (which you can also show customers to explain them the API in a 
more illustrative way). 

 

I’ve read something about Maven being NOT a documentation tool, so am I right 
with this powerful piece of software? What features/support can I use for 
documentation issues without programming a lot on my own?

 

Secondly, does someone know who’s the “founder” or creative director behind 
Maven, cause I want to ask him/her to do an expert interview for my diploma 
thesis?

 

Thank you very much and have a nice day!

 

Greetz,

Matthias

 

 

 



Re: Usage of System Scope

2008-09-08 Thread Stephen Connolly
make up whatever you like


On Mon, Sep 8, 2008 at 2:27 PM, Saket Lakshminarayan Chiluveru <
[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I wish to temporarily build a maven project, with dependencies which are on
> the FileSystem.
> For which I can use the scope as 'system',
> but what should be the group Id, artifact Id and the version ?
>
> Regards
>
> Saket
>
>  CAUTION - Disclaimer *
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
> solely
> for the use of the addressee(s). If you are not the intended recipient,
> please
> notify the sender by e-mail and delete the original message. Further, you
> are not
> to copy, disclose, or distribute this e-mail or its contents to any other
> person and
> any such actions are unlawful. This e-mail may contain viruses. Infosys has
> taken
> every reasonable precaution to minimize this risk, but is not liable for
> any damage
> you may sustain as a result of any virus in this e-mail. You should carry
> out your
> own virus checks before opening the e-mail or attachment. Infosys reserves
> the
> right to monitor and review the content of all messages sent to or from
> this e-mail
> address. Messages sent to or from this e-mail address may be stored on the
> Infosys e-mail system.
> ***INFOSYS End of Disclaimer INFOSYS***
>


Usage of System Scope

2008-09-08 Thread Saket Lakshminarayan Chiluveru

Hi,

I wish to temporarily build a maven project, with dependencies which are on the 
FileSystem.
For which I can use the scope as 'system',
but what should be the group Id, artifact Id and the version ?

Regards

Saket

 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not 
to copy, disclose, or distribute this e-mail or its contents to any other 
person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken 
every reasonable precaution to minimize this risk, but is not liable for any 
damage 
you may sustain as a result of any virus in this e-mail. You should carry out 
your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this 
e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***


Re: How to deploy Website to Webspace on java.net ?

2008-09-08 Thread mac-systems
Ok, thx i will have a look at it :)

- Jens

Hello Brett, you will have to have CVS administrative permissions to create the 
so-called CVS repository at the remote site or you will have to persuade you 
hosting outfit folks to administratively create or include you site in the CVS 
repository as a CVS project. Once your site has been created in the CVS 
repository all you will have to do is a CVS add filename. This means you will 
have to add each or all of the files the compose your remote site. Once the 
files are CVS added you then do a CVS checkout project-name (whatever the 
remote CVS admin folks name your project, hopefully, the same as the name of 
your website). Once you have the webiste CVS project checked out from the CVS 
repository you can then make changes and put these changes to the remote 
servers with the following command-line: cvs commit -m "some comment about the 
changes" filename. If you are running a local Linux box most of the above will 
work by default. If you are running a Windows or Mac box you will ha
 ve to install CVS. You can install CVS from the following link: 
http://ftp.gnu.org/non-gnu/cvs/binary/stable/x86-woe/. HTH, David.

Brett Porter wrote ..
> https://maven-javanet-plugin.dev.java.net/nonav/maven/
> 
> 2008/9/7 Mac-Systems <[EMAIL PROTECTED]>
> 
> > Hello,
> >
> > anyone can tell me how to deploy a website to a webserver using cvs ?
> > I have a project at java.net which seems only to acecpt uploads via cvs.
> >
> >
> > thanks,
> > Jens
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -- 
> Brett Porter
> Blog: http://blogs.exist.com/bporter/
Yet some, not wise, go to the other side of the globe, to barbarous and 
unhealthy regions, and devote ten or twenty years, in that they may live,-that 
is, keep comfortably warm,- and die in New England at last. 

Henry David Thoreau - Walden - 1845


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



specifying a url for each POM - not working

2008-09-08 Thread dskumar74

Hi,
   The home page link that exists on top right portion of the maven
generated report (project-info.html) seems to be a broken link. I tried
giving a value for  tag. But it ignores this value and opens the
windows folder instead of navigating back to the link. Attached is the ZIP
file containing the pom.xml and the screen shots to show the broken link.
Can some one throw more light on this?

- Senthil http://www.nabble.com/file/p19371734/files.zip files.zip 
-- 
View this message in context: 
http://www.nabble.com/specifying-a-url-for-each-POM---not-working-tp19371734p19371734.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: Creating a jar/zip with dependencies

2008-09-08 Thread Mick Knutson
You can create this with the assembly-plugin
---
Thank You…

Mick Knutson
BASE Logic, inc.
(415) 354-4215

Website: http://baselogic.com
Blog: http://baselogic.com/blog
BLiNC Magazine: http://blincmagazine.com
Linked IN: http://linkedin.com/in/mickknutson
DJ Mick: http://djmick.com
MySpace: http://myspace.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com



On Mon, Sep 8, 2008 at 1:34 AM, Karl Heinz Marbaise <[EMAIL PROTECTED]>wrote:

> Hi there,
>
> i have a project which has the following structure:
>
> parent
>  +--- Module A (depends on C and D)
>  +--- Module B
>  +--- Module C
>  +--- Module D
>
>
> Module A has of course other dependencies too
>
> Now coming to my problem:
>
> I would like to create a zip/jar which comprises of the Module A-jar
> and of it's dependencies (Module C and D) and of course of their
> external dependencies (e.g. Log4j.jar, spring-2.5.4.jar,
> commons-collections, xstream etc.)
> Those dependencies have been defined in Module A, C and D.
>
> If i do a mvn package in module A i only get a jar file which comprises
> of the Classes in Module A without any dependencies
>
> I would like to create that zip/jar as a result of the package (for
> delivery)
>
> Does someone has an idea or a hint about that ?
>
>
> Kind regards
> Karl Heinz Marbaise
> --
> SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893
> Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029
> Hauptstrasse 177 USt.IdNr: DE191347579
> 52146 Würselen   http://www.soebes.de
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Maven 2 + Hibernate + Oracle 10g

2008-09-08 Thread svenson



Dan Tran wrote:
> 
> you need to install oracle 10 jdbc driver to your local or remote
> repositories.
> 
> -D
> 

I downloaded the JDBC driver required and cut the line with the
"hibernate.dialect" but a hibernate exception is still thrown .

Exception in thread "main" org.hibernate.HibernateException: Hibernate
Dialect must be explicitly set

What dialect should I use ?
-- 
View this message in context: 
http://www.nabble.com/Maven-2-%2B-Hibernate-%2B-Oracle-10g-tp19365343p19370189.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: Creating a jar/zip with dependencies

2008-09-08 Thread Karl Heinz Marbaise
Hi Olivier,

first of all, many thanks for the hints...
> I had the same kind of need.
> You should try Maven Assembly Plugin :
> http://maven.apache.org/plugins/maven-assembly-plugin/
> Or maybe Maven Shade Plugin :
> http://maven.apache.org/plugins/maven-shade-plugin/
I have taken a deep look into the documentation of the assembly plugin
and found what i need:

http://maven.apache.org/plugin/maven-assembly-plugin/descriptor-refs.html

There i found the jar-with-dependencies and changed this a little bit
and got exactly what i tried to

Many thanks.
Kind regards
Karl Heinz Marbaise
-- 
SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029
Hauptstrasse 177 USt.IdNr: DE191347579
52146 Würselen   http://www.soebes.de

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



Re: Creating Delivery Package

2008-09-08 Thread Brett Porter
You can use the dependency plugin to download and unpack the tomcat
distribution and the assembly plugin to combine it.
Here is a practical example, which bundles Jetty as the servlet container,
and uses the Java Service Wrapper for starting it as a service:
http://svn.apache.org/viewvc/archiva/trunk/archiva-jetty/pom.xml?revision=685059&view=markup

Cheers,
Brett

2008/9/8 Karl Heinz Marbaise <[EMAIL PROTECTED]>

> Hi there,
>
> i have a project which has the following structure:
>
> parent
>  +--- Module A
>  +--- Module B (war-project which depends on C and D)
>  +--- Module C
>  +--- Module D
>
> I would like to create a zip/tar.gz file which comprises of the WAR file
> (created during package cycle) and in this particular case
> an tomcat-zip-file...plus some scripts
>
> My main problem with this is, how to get the tomcat-zip file, without
> manually downloading and putting it into my project structure...
> I have done an integration-test with cargo-plugin which is able to
> automatically download the tomcat-zip unpack and start it...
>
>
> But i would like to create a delivery package which comprises of the war
> file, tomcat, and some supplemental script files
>
> Does someone have an idea or some hints how to solve this ?
>
> Kind regards
> Karl Heinz Marbaise
> --
> SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893
> Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029
> Hauptstrasse 177 USt.IdNr: DE191347579
> 52146 Würselen   http://www.soebes.de
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/


Re: How to stop Maven to look for updates on snapshots?

2008-09-08 Thread Rémy Sanlaville
Hi,

It seems that the offline mode does not work with SNAPSHOT.
You also have this issue : http://jira.codehaus.org/browse/MNG-3314

Rémy


Re: Creating a jar/zip with dependencies

2008-09-08 Thread Olivier THIERRY
I had the same kind of need.
You should try Maven Assembly Plugin :
http://maven.apache.org/plugins/maven-assembly-plugin/
Or maybe Maven Shade Plugin :
http://maven.apache.org/plugins/maven-shade-plugin/

2008/9/8 Karl Heinz Marbaise <[EMAIL PROTECTED]>

> Hi there,
>
> i have a project which has the following structure:
>
> parent
>  +--- Module A (depends on C and D)
>  +--- Module B
>  +--- Module C
>  +--- Module D
>
>
> Module A has of course other dependencies too
>
> Now coming to my problem:
>
> I would like to create a zip/jar which comprises of the Module A-jar
> and of it's dependencies (Module C and D) and of course of their
> external dependencies (e.g. Log4j.jar, spring-2.5.4.jar,
> commons-collections, xstream etc.)
> Those dependencies have been defined in Module A, C and D.
>
> If i do a mvn package in module A i only get a jar file which comprises
> of the Classes in Module A without any dependencies
>
> I would like to create that zip/jar as a result of the package (for
> delivery)
>
> Does someone has an idea or a hint about that ?
>
>
> Kind regards
> Karl Heinz Marbaise
> --
> SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893
> Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029
> Hauptstrasse 177 USt.IdNr: DE191347579
> 52146 Würselen   http://www.soebes.de
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Seules 2 choses sont infinies : l'univers et la bêtise humaine ; et encore
pour l'univers, je ne suis pas sûr … (Einstein)


Creating a jar/zip with dependencies

2008-09-08 Thread Karl Heinz Marbaise
Hi there,

i have a project which has the following structure:

parent
  +--- Module A (depends on C and D)
  +--- Module B
  +--- Module C
  +--- Module D


Module A has of course other dependencies too

Now coming to my problem:

I would like to create a zip/jar which comprises of the Module A-jar
and of it's dependencies (Module C and D) and of course of their
external dependencies (e.g. Log4j.jar, spring-2.5.4.jar,
commons-collections, xstream etc.)
Those dependencies have been defined in Module A, C and D.

If i do a mvn package in module A i only get a jar file which comprises
of the Classes in Module A without any dependencies

I would like to create that zip/jar as a result of the package (for
delivery)

Does someone has an idea or a hint about that ?


Kind regards
Karl Heinz Marbaise
-- 
SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029
Hauptstrasse 177 USt.IdNr: DE191347579
52146 Würselen   http://www.soebes.de

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



Re: How to merge pom files ?

2008-09-08 Thread Olivier THIERRY
Thanks a lot John, this is exactly what I needed :)

Based on the plugin configuration you suggested, I added
promoteTransitiveDependencies property and set it to true so that transitive
dependencies become direct dependencies in the shaded jar.

But I have one problem yet : I need to add some files to the shaded jar. I
saw you can exclude files from the shaded jar with filters property, but I
can't see a way to add a new file to the shaded jar. I thought about
creating a new artifact in M2 repository with these files to add and add
this artifact to the artifactSet includes property. It should work but I
wonder if there's an easier way to do it. Do you have any idea about this ?

Regards,

Olivier


2008/9/5 John Prystash <[EMAIL PROTECTED]>

> You might want to take a look at the shade plugin
>
> http://maven.apache.org/plugins/maven-shade-plugin/
>
> A configuration like the following should create a jar containing the
> classes from the two t4 jars you depend on:
>
> 
>org.apache.maven.plugins
>maven-shade-plugin
> 
>  
>package
>
>   shade
>
>
>  
>
>  t4:t4-core-utils
>  t4:t4-common-utils
>
>  
>
>  
>
>  
>
>
>
> - Original Message 
> From: Olivier THIERRY <[EMAIL PROTECTED]>
> To: users@maven.apache.org
> Sent: Friday, September 5, 2008 10:52:00 AM
> Subject: How to merge pom files ?
>
> Hi all,
>
> I have two Maven projects named t4-core-utils and t4-core-commons. They
> build jar artifacts and install them to my M2 repository.
> Now I want to build a jar that merges both jars (extract files from these
> jars and add them to a new jar) then install it to M2 repository so that it
> can be used as a dependency in other Maven projects.
>
> I tried to use Maven Assembly plugin to achieve this. I could create the
> new
> jar and install it to M2 repo, but I have problems with the way pom file is
> generated in M2 repo.
>
> The pom.xml is as following (t4-parent is used for dependency management) :
>
> 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";>
>  4.0.0
>  t4
>  t4-core-all
>  jar
>
>t4
>t4-parent
>1.0-SNAPSHOT
>
>  1.0-SNAPSHOT
>  T4 Core All
> 
>  
>  t4
>  t4-core-utils
>  ${version}
>  
>  
>  fr.horoquartz.t4
>  t4-core-commons
>  ${version}
>  
>  
>
>  
>  
>  maven-assembly-plugin
>  
>
>
> src/main/assembly/t4-core-all.xml
>  
>  false
>  
>
>
>package
>
>attached
>
>
>
>  
>  
>  
> 
>
> And the t4-core-all.xml file :
>
> 
> 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../../../../exchange-ws-api/assembly-1.1.0-SNAPSHOT.xsd
> ">
>t4-core-all
>  
>jar
>  
>  false
>  
>   
>   true
>   
>   
>   META-INF/persistence.xml
>   META-INF/ejb-jar.xml
>   
>  
>   false
>
>  
>
>
>src/main/assembly/persistence.xml
>META-INF
>
>
>src/main/assembly/ejb-jar.xml
>META-INF
>
>
> 
>
> The pom generated for t4-core-all just contains dependencies to
> t4-core-utils and t4-core-commons. So when adding t4-core-all as a
> dependency, I have all classes twice, in t4-core-all and in t4-core-commons
> or t4-core-utils ... Actually what I need is that the pom for t4-core-all
> contains transitive dependencies from t4-core-utils and t4-core-commons
> (for
> example hibernate, commons-lang, etc...), and not dependencies to
> t4-core-utils and t4-core-commons. A kind of pom merging. Is there a way to
> do this ?
>
> Thanks in advance,
>
> Olivier
>
>
>
>
>



-- 
Seules 2 choses sont infinies : l'univers et la bêtise humaine ; et encore
pour l'univers, je ne suis pas sûr … (Einstein)


Re: How to deploy a Flex library (swc)

2008-09-08 Thread coutant

Yes, Emmanuel, it works. And so we'll do.

But i still feel little unconfortable introducing a dependency from a
standard framework such Flex SDK to an emerging project such
flex-compiler-mojo... 

I suppose a will have to live with that untill Adobe realize that most
developpers want to build with maven!



Emmanuel Venisse-2 wrote:
> 
> As swc packaging isn't a "standard" maven packaging, you must add the flex
> mojo in your pom as an extension like this:
> 
> 
> 
> 
> info.rvin.mojo
> flex-compiler-mojo
> 1.0
> true
> ...
> 
> 
> 
> 
> Emmanuel
> 
> On Tue, Jul 15, 2008 at 12:11 PM, Rémy Sanlaville
> <[EMAIL PROTECTED]>
> wrote:
> 
>> >mvn validate
>> [INFO] Scanning for projects...
>> [INFO]
>> 
>> [INFO] Building Unnamed - com.yahoo.maps.flash:yahoo-map:swc:3.5
>> [INFO]task-segment: [validate]
>> [INFO]
>> 
>> [INFO]
>> 
>> [ERROR] BUILD ERROR
>> [INFO]
>> 
>> [INFO] Cannot find lifecycle mapping for packaging: 'swc'.
>> Component descriptor cannot be found in the component repository:
>> org.apache.maven.lifecycle.mapping.LifecycleMappingswc
>> .
>> [INFO]
>> 
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> 
>> [INFO] Total time: < 1 second
>> [INFO] Finished at: Tue Jul 15 12:08:39 CEST 2008
>> [INFO] Final Memory: 1M/254M
>> [INFO]
>> 
>>
>>
>> In fact, swc is not defined in the corresponding XML Schema (cf.
>> http://maven.apache.org/maven-v4_0_0.xsd).
>>
>> Rémy
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-deploy-a-Flex-library-%28swc%29-tp18381065p19367892.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: Dependencies on a HAR-File

2008-09-08 Thread hal arres
Thank you Guillaume,

you are right about the changes.

This is what I changed:

example
c-backend-persistence
1-SNAPSHOT
jboss-har

and:



  org.codehaus.mojo
  jboss-packaging-maven-plugin
  
  true




Thank you very much for the fast and good help :)

Hal


 Original-Nachricht 
> Datum: Mon, 8 Sep 2008 10:01:26 +0200
> Von: "Guillaume Boucherie" <[EMAIL PROTECTED]>
> An: "Maven Users List" 
> Betreff: Re: Dependencies on a HAR-File

> Hi,
> Did you try to use "jboss-har" for the type ?
> And don't forget to declare the jboss-packaging-maven-plugin with
> extension
> enabled.
> 
>   
> org.codehaus.mojo
> jboss-packaging-maven-plugin
> 
> 
> true
> ...
>   
> 
> 
> 
> Guillaume Boucherie
> 
> 
> 2008/9/8 hal arres <[EMAIL PROTECTED]>
> 
> > Hi,
> >
> > my name is Hal and I am starting with maven, but I have a little
> problem.
> > I want to build an EAR-File with dependencies on an har and a jar file.
> I
> > build the har file using the jboss-packaging-maven-plugin. This works
> fine
> > and the artifact is also installed inside the repository, but I have a
> > problem to build the jar file. The classes inside the jar file have
> > dependencies on the har. I thought it is possible to build the artifact
> > using the a dependency type, but it doesn't work.
> >
> > It would be nice if someone could help me to resolve this problem.
> >
> > This is the pom.xml of the jar file:
> > 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";>
> >4.0.0
> >
> >
> >example
> >example-parent
> >1-SNAPSHOT
> >
> >
> >c-backend-jar
> >jar
> >Example Backend JAR
> >
> >
> >
> >
> >example
> >c-common
> >1-SNAPSHOT
> >
> >
> >
> >example
> >c-backend-persistence
> >1-SNAPSHOT
> >har
> >
> >
> >
> >jboss
> >jboss-system
> >4.2.2.GA
> >provided
> >
> >
> >
> >jboss
> >jboss-ejb3x
> >4.2.2.GA
> >provided
> >
> >
> >
> >jboss
> >jbossall-client
> >4.2.2.GA
> >test
> >
> >
> >
> >jboss
> >jboss-ejb3
> >4.2.2.GA
> >provided
> >
> >
> >
> >
> > 
> >
> >
> > Thank you,
> > Hal
> > --
> > Pt! Schon das coole Video vom GMX MultiMessenger gesehen?
> > Der Eine für Alle: http://www.gmx.net/de/go/messenger03
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >

-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED]

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



Re: Dependencies on a HAR-File

2008-09-08 Thread Guillaume Boucherie
Hi,
Did you try to use "jboss-har" for the type ?
And don't forget to declare the jboss-packaging-maven-plugin with extension
enabled.

  
org.codehaus.mojo
jboss-packaging-maven-plugin


true
...
  



Guillaume Boucherie


2008/9/8 hal arres <[EMAIL PROTECTED]>

> Hi,
>
> my name is Hal and I am starting with maven, but I have a little problem.
> I want to build an EAR-File with dependencies on an har and a jar file. I
> build the har file using the jboss-packaging-maven-plugin. This works fine
> and the artifact is also installed inside the repository, but I have a
> problem to build the jar file. The classes inside the jar file have
> dependencies on the har. I thought it is possible to build the artifact
> using the a dependency type, but it doesn't work.
>
> It would be nice if someone could help me to resolve this problem.
>
> This is the pom.xml of the jar file:
> 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";>
>4.0.0
>
>
>example
>example-parent
>1-SNAPSHOT
>
>
>c-backend-jar
>jar
>Example Backend JAR
>
>
>
>
>example
>c-common
>1-SNAPSHOT
>
>
>
>example
>c-backend-persistence
>1-SNAPSHOT
>har
>
>
>
>jboss
>jboss-system
>4.2.2.GA
>provided
>
>
>
>jboss
>jboss-ejb3x
>4.2.2.GA
>provided
>
>
>
>jboss
>jbossall-client
>4.2.2.GA
>test
>
>
>
>jboss
>jboss-ejb3
>4.2.2.GA
>provided
>
>
>
>
> 
>
>
> Thank you,
> Hal
> --
> Pt! Schon das coole Video vom GMX MultiMessenger gesehen?
> Der Eine für Alle: http://www.gmx.net/de/go/messenger03
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Dependencies on a HAR-File

2008-09-08 Thread hal arres
Hi,

my name is Hal and I am starting with maven, but I have a little problem.
I want to build an EAR-File with dependencies on an har and a jar file. I build 
the har file using the jboss-packaging-maven-plugin. This works fine and the 
artifact is also installed inside the repository, but I have a problem to build 
the jar file. The classes inside the jar file have dependencies on the har. I 
thought it is possible to build the artifact using the a dependency type, but 
it doesn't work.

It would be nice if someone could help me to resolve this problem.

This is the pom.xml of the jar file:
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";>
4.0.0


example
example-parent
1-SNAPSHOT


c-backend-jar
jar
Example Backend JAR




example
c-common
1-SNAPSHOT



example
c-backend-persistence
1-SNAPSHOT
har



jboss
jboss-system
4.2.2.GA
provided



jboss
jboss-ejb3x
4.2.2.GA
provided



jboss
jbossall-client
4.2.2.GA
test



jboss
jboss-ejb3
4.2.2.GA
provided







Thank you,
Hal
-- 
Pt! Schon das coole Video vom GMX MultiMessenger gesehen?
Der Eine für Alle: http://www.gmx.net/de/go/messenger03

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



war artifacts: different dependency types per different profiles?

2008-09-08 Thread Kristian Rink
Folks;

I do have a set of war artifacts containing a bunch of dependencies each,
and I want to be able to

- deploy them as part of an ear, by then having each of the dependencies
used as "provided", assuming the dependent jars come along with
the ear module itself, and

- deploy them as "standalone" war artifacts, requiring dependencies of
"compile" that get bundled with the war before deploying them
anywhere.

Is there a smart way of handling this through the pom.xml? More than that,
how would I eventually, while building the ear using a top-level pom, "tell"
which profile of the war artifact to use in it?

Thanks in advance for any hints, best regards.
Kristian


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



Re: macosx problem with forkMode and maven-surefire-plugin

2008-09-08 Thread Brett Porter
can you paste in the surefire plugin configuration that you are using
exactly?
Cheers,
Brett

2008/9/8 Mark Hansen <[EMAIL PROTECTED]>

> I'm running MVN with JDK1.6.0 on MacOSX.  When I set forkMode to point to
> my JDK1.4.2, I'm still getting the JDK1.6.0 version of classes.jar on the
> classpath.  Has anybody else experienced this problem?
>
> -- Mark
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/


Re: maven1 and Wtp support in Eclipse

2008-09-08 Thread Lukas Theussl

It's mentioned in the FAQ:

http://maven.apache.org/maven-1.x/plugins/eclipse/faq.html

but it's such a long time, no idea if/how it works...

HTH,
-Lukas


thomas2004 wrote:

I know there is WTP support in maven2:
mvn -Dwtpversion=R7 eclipse:eclipse

Who knows is there any WTP support for maven1?



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