Load and run artifact from shell script

2009-07-31 Thread Lewis, Eric
Hi

I have a utility project whose classes should be called from a shell script.

The problem is how to access it: It's in the local repo, so I would like to do 
the following:

- Download it and its runtime dependencies based on group and artifact ID, 
using the latest version
- Create a classpath to use in the shell script

As far as I can see, the dependency:build-classpath would do part of it (not 
downloading, though), but it only works with a POM.
I need to do this anywhere in the file system.

Any hints how I could start?

Thanks & best regards
Eric
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: exec:java problem

2009-07-31 Thread ykyuen


ykyuen wrote:
> 
> oh sorry, i have made a mistake, the sample works fine. the failure was
> caused by the firewall of my network. 
> 
> sorry for the misleading:-((
> 

The solution is to add the proxy in the YahooRetriever.java

System.getProperties().put("proxySet", "true");
System.getProperties().put("proxyPort", );
System.getProperties().put("proxyHost", );

-- 
View this message in context: 
http://www.nabble.com/exec%3Ajava-problem-tp24491018p24752138.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Missing site information in the distribution management element

2009-07-31 Thread Julien Martelli
Ok sorry for this, I solved the issue. This is linked to a little mistake in
the inheritance configuration.

 

Thanks,

 

julien

 

De : Julien Martelli [mailto:jmarte...@pcap.fr] 
Envoyé : vendredi 31 juillet 2009 08:52
À : 'Maven Users List'
Objet : Missing site information in the distribution management element

 

Hi all,

 

I get the following error message when trying to make a site:stage or
site:deploy on my project with the following configuration:

 

Missing site information in the distribution management element in the
project: 'SNR ANNUREF METIER'.

 

C:/project/composants/SNR ANNUREF METIER /pom.xml

 

C:/project/tools/mvn/main/pom.xml   

 

C:/project/tools/mvn/main/SNR_ANNUREF/pom.xml

 

Relationships between projects:

 

/main/pom.xml => aggregates /main/SNR_ANNUREF

/main/SNR_ANNUREF => inherits /main/pom.xml

ð  Aggregates /composants/SNR_ANNUREF_METIER

 

/composants/ SNR_ANNUREF_METIER => inherits /main/SNR_ANNUREF

 

I launch the mvn site:stage on the main project which references the
/main/SNR_ANNUREF project which itself references to
/composants/SNR_ANNUREF_METIER.

All the distribution management information is located on the main pom.xml
(the one in C:/project/tools/mvn/main/pom.xml) which is the one I use for
deploying my site.

 

I suppose this is link to the build order generated:

 

Reactor build order:

  SNR ANNUREF METIER

  MAIN

  ANNUREF

 

Do you guys have any idea?

 

Thanks in advance!

 

julien



Re: How do I turn off the maven-source-plugin altogether?

2009-07-31 Thread Mark Struberg

have you tried to set 'attached' to false in the configuration section? [1]

From a quick look at the sources, it should then at least skip attaching the 
archive to the repository.

But maybe we should introduce a 'skip' property like many other plugin have.

Since I remember a discussion with lots of pros and cons with Benjamin a long 
time ago, we should probably think about 'skipping' or 'disabling' plugins in a 
derived pom as a general lifecycle feature for maven-3?
But I'm maybe not really up to date on this topic.

LieGrue,
strub

[1]  http://maven.apache.org/plugins/maven-source-plugin/jar-mojo.html#attach

--- On Fri, 7/31/09, Benson Margulies  wrote:

> From: Benson Margulies 
> Subject: Re: How do I turn off the maven-source-plugin altogether?
> To: "Maven Users List" 
> Date: Friday, July 31, 2009, 4:36 AM
> The super-pom turns out to document:
> 
>  
>            
> true
>            
> org.apache.maven.plugins
>            
> maven-source-plugin
> 
>            
> 
>              
> 
>                
> attach-sources
>                
> 
>                
>   jar
>                
> 
>              
> 
>            
> 
>           
> 
> 
> Which is the source of his charming situation. I need to
> rebind it to
> a nonexistent phase, I guess.
> 
> 
> On Thu, Jul 30, 2009 at 10:09 PM, Wayne Fay
> wrote:
> >> The maven-source-plugin is running in my lifecycle
> even though I never
> >> mention it in a pom. Is there a way to chase it
> out?
> >
> > Is it mentioned in a parent or grandparent pom? Are
> you using a
> > profile that brings it in -- perhaps one that is
> activeByDefault? Did
> > you check mvn help:effective-pom?
> >
> > What command are you running that results in m-s-p
> being executed? It
> > is bound to some profiles that automatically come down
> with Maven, so
> > you might be running into one of those, perhaps.
> >
> > Wayne
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Site inheritance

2009-07-31 Thread Lukas Theussl


I am currently reviewing the site plugin to get it ready for another release 
(might take a while still, though). If you find anything that's not working the 
way you expect it, please file an issue in jira and attach a simple test project 
(or a patch!). There are a couple of issues open regarding inheritance [1] even 
though they are not on my short list for this release.


Cheers,
-Lukas

[1] http://jira.codehaus.org/browse/MSITE/component/12943


EJ Ciramella wrote:

Maybe I got ahead of myself - I tried setting (in the parent project
site descriptor) the "inheritAsRef='true'", but no matter what that's
set to, in the child site output, there are links back to the parent
project.

All I want is the structure provided by the parent's project.  I want
the menu bits but the actual apt file will live in the child projects.
Is this possible?

-Original Message-
From: EJ Ciramella [mailto:ecirame...@upromise.com] 
Sent: Friday, July 31, 2009 12:01 AM

To: Maven Users List
Subject: RE: Site inheritance

Lol - ok, I think I figured this out...

In the _parent_ project's site descriptor, I defined a menu as
"inherit"-able and now it's showing up in the child site output.

This should be more clearly spelled out in the site plugin doc set... 


-Original Message-
From: EJ Ciramella [mailto:ecirame...@upromise.com]
Sent: Thursday, July 30, 2009 8:36 PM
To: users@maven.apache.org
Subject: Site inheritance

Hello all - 
 
I'm forging forward (after the semi-informal poll about site doc format

options) with a very vanillia "apt" set up for now and I'm trying to
inherit a "skeleton" site project.
 
I can see this is possible:
 
http://maven.apache.org/plugins/maven-site-plugin/examples/sitedescripto

r.html  (look at the inheritance bit)
 
But, does this only work in parent->child relationships?  Can I just put

a dependency on a site-only project and pull down the site descriptor?
 
We have four distinct types of maven based projects.  For each of these,

there is a distinct set of links people should be providing for each
app.
 
Instead of copy/pasting a site descriptor everywhere, I'd prefer to

create skeletons and just depend on them as needed - is this just
impossible?
 
What about for individual pages?


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Archetype plug-in and line end funnies.

2009-07-31 Thread Stephen Connolly
See http://www.w3.org/TR/REC-xml/#NT-S

All CR characters are supposed to be removed from an XML file when parsed.

-Stephen

2009/7/30 Nord, James 

> Hi all,
>
> I've created an multi-module archetype and it seems to be working mostly
> well.  However any multi line comments in the poms are getting written
> out as unix line ends and not Windows (which is what the platform and
> the original poms files are.)
>
> e.g
>
> CRLF
>4.0.0CRLF
> ...
>  CRLF
> ...
> 
>
> gets written as
> CRLF
>4.0.0CRLF
> ...
>  CRLF
> ...
> 
>
> If I change the input file to be unix line ends then it all gets written
> as unix line ends - but I want it to be all written using the native
> line end style (or CRLF if it can't do native).
>
> How do I achieve that - or is this an archetype bug (2.0-alpha4)
>
> /James
>
>
> **
> This message is confidential and intended only for the addressee. If you
> have received this message in error, please immediately notify the
> postmas...@nds.com and delete it from your system as well as any copies.
> The content of e-mails as well as traffic data may be monitored by NDS for
> employment and security purposes. To protect the environment please do not
> print this e-mail unless necessary.
>
> NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18
> 4EX, United Kingdom. A company registered in England and Wales. Registered
> no. 3080780. VAT no. GB 603 8808 40-00
>
> **
>


[ANN] Maven Javadoc Plugin 2.6 Released

2009-07-31 Thread Vincent Siveton
The Maven team is pleased to announce the release of the Maven Javadoc
Plugin, version 2.6.

The Maven Javadoc Plugin is a plugin that uses the javadoc tool for
generating javadocs for the specified project.

http://maven.apache.org/plugins/maven-javadoc-plugin/

You should specify the version in your project's plugin configuration:


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


Release Notes - Maven 2.x Javadoc Plugin - Version 2.6

** Sub-task
* [MJAVADOC-239] - Helpfile loaded from classpath

** Bug
* [MJAVADOC-181] - Javadoc report not generated for multi-module
project if run from parent level.
* [MJAVADOC-215] - warning proxyHost' is deprecated since 2.4
* [MJAVADOC-219] - skip parameter is ignored in aggregate goal
* [MJAVADOC-220] - ArrayIndexOutOfBoundsException in
JavadocUtil.getIncludedFiles
* [MJAVADOC-230] - aggregate report requires to have
aggregate=true configuration parameter
* [MJAVADOC-231] - tagletpath does not seem to work
* [MJAVADOC-232] - copied doc-files folder contains svn meta files
* [MJAVADOC-238] - No timeout set for URLConnection which can
cause build to get stuck

** Improvement
* [MJAVADOC-216] - Stylesheet file loaded from classpath
* [MJAVADOC-222] - Documentation Issues
* [MJAVADOC-225] - The plugin should be able to generate a jar of
the aggregated javadoc
* [MJAVADOC-226] - Add a new goal to fix Javadoc tags
* [MJAVADOC-240] - Add default Javadoc link depending the values
of maven-compiler-plugin configuration

** New Feature
* [MJAVADOC-97] - enable internal/external dependency references as links

** Task
* [MJAVADOC-217] - Update "Aggregating Javadocs" example

Enjoy,

-The Maven team

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



obtain artifact dependencies using Maven API

2009-07-31 Thread miri
Hi,
in maven war plugin I need to obtain for each war artifact that the current
project (war) is dependent on its dependencies? Is there any way how
to do it using maven or any other plugin API?

Thank you so much
Mirek


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Site inheritance

2009-07-31 Thread EJ Ciramella
Done:

http://jira.codehaus.org/browse/MSITE-420

I think the problem is that site doesn't honor all the options doxia
makes available. 

-Original Message-
From: Lukas Theussl [mailto:ltheu...@apache.org] 
Sent: Friday, July 31, 2009 4:03 AM
To: Maven Users List
Subject: Re: Site inheritance


I am currently reviewing the site plugin to get it ready for another
release (might take a while still, though). If you find anything that's
not working the way you expect it, please file an issue in jira and
attach a simple test project (or a patch!). There are a couple of issues
open regarding inheritance [1] even though they are not on my short list
for this release.

Cheers,
-Lukas

[1] http://jira.codehaus.org/browse/MSITE/component/12943


EJ Ciramella wrote:
> Maybe I got ahead of myself - I tried setting (in the parent project 
> site descriptor) the "inheritAsRef='true'", but no matter what that's 
> set to, in the child site output, there are links back to the parent 
> project.
> 
> All I want is the structure provided by the parent's project.  I want 
> the menu bits but the actual apt file will live in the child projects.
> Is this possible?
> 
> -Original Message-
> From: EJ Ciramella [mailto:ecirame...@upromise.com]
> Sent: Friday, July 31, 2009 12:01 AM
> To: Maven Users List
> Subject: RE: Site inheritance
> 
> Lol - ok, I think I figured this out...
> 
> In the _parent_ project's site descriptor, I defined a menu as 
> "inherit"-able and now it's showing up in the child site output.
> 
> This should be more clearly spelled out in the site plugin doc set... 
> 
> -Original Message-
> From: EJ Ciramella [mailto:ecirame...@upromise.com]
> Sent: Thursday, July 30, 2009 8:36 PM
> To: users@maven.apache.org
> Subject: Site inheritance
> 
> Hello all -
>  
> I'm forging forward (after the semi-informal poll about site doc 
> format
> options) with a very vanillia "apt" set up for now and I'm trying to 
> inherit a "skeleton" site project.
>  
> I can see this is possible:
>  
> http://maven.apache.org/plugins/maven-site-plugin/examples/sitedescrip
> to
> r.html  (look at the inheritance bit)
>  
> But, does this only work in parent->child relationships?  Can I just 
> put a dependency on a site-only project and pull down the site
descriptor?
>  
> We have four distinct types of maven based projects.  For each of 
> these, there is a distinct set of links people should be providing for

> each app.
>  
> Instead of copy/pasting a site descriptor everywhere, I'd prefer to 
> create skeletons and just depend on them as needed - is this just 
> impossible?
>  
> What about for individual pages?
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Archetype plug-in and line end funnies.

2009-07-31 Thread Nord, James
So it is buggy then?

1) it should translate all CRLFs to LF (it doesn't, it only coverts
CRLFs in comments.)
2) it should really for convience replace all LFs to the platform
default encoding on writing.

It should be consistent - but it's not - it handles comments one way
(apparantly correctly but without 2) but not the rest of the document.

/James

> -Original Message-
> From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] 
> Sent: 31 July 2009 09:31
> To: Maven Users List
> Subject: Re: Archetype plug-in and line end funnies.
> 
> See http://www.w3.org/TR/REC-xml/#NT-S
> 
> All CR characters are supposed to be removed from an XML file 
> when parsed.
> 
> -Stephen
> 
> 2009/7/30 Nord, James 
> 
> > Hi all,
> >
> > I've created an multi-module archetype and it seems to be working 
> > mostly well.  However any multi line comments in the poms 
> are getting 
> > written out as unix line ends and not Windows (which is what the 
> > platform and the original poms files are.)
> >
> > e.g
> >
> > CRLF
> >4.0.0CRLF
> > ...
> >  CRLF
> > ...
> > 
> >
> > gets written as
> > CRLF
> >4.0.0CRLF
> > ...
> >  CRLF
> > ...
> > 
> >
> > If I change the input file to be unix line ends then it all gets 
> > written as unix line ends - but I want it to be all written 
> using the 
> > native line end style (or CRLF if it can't do native).
> >
> > How do I achieve that - or is this an archetype bug (2.0-alpha4)
> >
> > /James
> >
> >
> > 
> **
> >  This message is confidential and intended only for 
> > the addressee. If you have received this message in error, please 
> > immediately notify the postmas...@nds.com and delete it from your 
> > system as well as any copies.
> > The content of e-mails as well as traffic data may be 
> monitored by NDS 
> > for employment and security purposes. To protect the environment 
> > please do not print this e-mail unless necessary.
> >
> > NDS Limited. Registered Office: One London Road, Staines, 
> Middlesex, 
> > TW18 4EX, United Kingdom. A company registered in England 
> and Wales. 
> > Registered no. 3080780. VAT no. GB 603 8808 40-00
> >
> > 
> **
> > 
> >
> 

**
This message is confidential and intended only for the addressee. If you have 
received this message in error, please immediately notify the 
postmas...@nds.com and delete it from your system as well as any copies. The 
content of e-mails as well as traffic data may be monitored by NDS for 
employment and security purposes. To protect the environment please do not 
print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, 
United Kingdom. A company registered in England and Wales. Registered no. 
3080780. VAT no. GB 603 8808 40-00
**

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Archetype plug-in and line end funnies.

2009-07-31 Thread Stephen Connolly
CR's which are internal to the elements should be removed, the spec does not
specify about CR's between elements and within ignorable whitespace...

so technically it's not a bug...

i.e. the CR's are being removed from the comment text

but effectively it is!

-Stephen

2009/7/31 Nord, James 

> So it is buggy then?
>
> 1) it should translate all CRLFs to LF (it doesn't, it only coverts
> CRLFs in comments.)
> 2) it should really for convience replace all LFs to the platform
> default encoding on writing.
>
> It should be consistent - but it's not - it handles comments one way
> (apparantly correctly but without 2) but not the rest of the document.
>
> /James
>
> > -Original Message-
> > From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
> > Sent: 31 July 2009 09:31
> > To: Maven Users List
> > Subject: Re: Archetype plug-in and line end funnies.
> >
> > See http://www.w3.org/TR/REC-xml/#NT-S
> >
> > All CR characters are supposed to be removed from an XML file
> > when parsed.
> >
> > -Stephen
> >
> > 2009/7/30 Nord, James 
> >
> > > Hi all,
> > >
> > > I've created an multi-module archetype and it seems to be working
> > > mostly well.  However any multi line comments in the poms
> > are getting
> > > written out as unix line ends and not Windows (which is what the
> > > platform and the original poms files are.)
> > >
> > > e.g
> > >
> > > CRLF
> > >4.0.0CRLF
> > > ...
> > >  CRLF
> > > ...
> > > 
> > >
> > > gets written as
> > > CRLF
> > >4.0.0CRLF
> > > ...
> > >  CRLF
> > > ...
> > > 
> > >
> > > If I change the input file to be unix line ends then it all gets
> > > written as unix line ends - but I want it to be all written
> > using the
> > > native line end style (or CRLF if it can't do native).
> > >
> > > How do I achieve that - or is this an archetype bug (2.0-alpha4)
> > >
> > > /James
> > >
> > >
> > >
> > **
> > >  This message is confidential and intended only for
> > > the addressee. If you have received this message in error, please
> > > immediately notify the postmas...@nds.com and delete it from your
> > > system as well as any copies.
> > > The content of e-mails as well as traffic data may be
> > monitored by NDS
> > > for employment and security purposes. To protect the environment
> > > please do not print this e-mail unless necessary.
> > >
> > > NDS Limited. Registered Office: One London Road, Staines,
> > Middlesex,
> > > TW18 4EX, United Kingdom. A company registered in England
> > and Wales.
> > > Registered no. 3080780. VAT no. GB 603 8808 40-00
> > >
> > >
> > **
> > > 
> > >
> >
>
>
> **
> This message is confidential and intended only for the addressee. If you
> have received this message in error, please immediately notify the
> postmas...@nds.com and delete it from your system as well as any copies.
> The content of e-mails as well as traffic data may be monitored by NDS for
> employment and security purposes. To protect the environment please do not
> print this e-mail unless necessary.
>
> NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18
> 4EX, United Kingdom. A company registered in England and Wales. Registered
> no. 3080780. VAT no. GB 603 8808 40-00
>
> **
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Load and run artifact from shell script

2009-07-31 Thread Alexander
Hello,

What do you mean "anywhere in system"? It works fine as "mvn
dependency:build-classpath" and could be invoked as command. You can invoke
that action in script, parse output and use result classpath in script. [?]
To download all dependencies you could use dependency:go-offline. [?]


2009/7/31 Lewis, Eric 

> Hi
>
> I have a utility project whose classes should be called from a shell
> script.
>
> The problem is how to access it: It's in the local repo, so I would like to
> do the following:
>
> - Download it and its runtime dependencies based on group and artifact ID,
> using the latest version
> - Create a classpath to use in the shell script
>
> As far as I can see, the dependency:build-classpath would do part of it
> (not downloading, though), but it only works with a POM.
> I need to do this anywhere in the file system.
>
> Any hints how I could start?
>
> Thanks & best regards
> Eric
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
Alexander


Re: obtain artifact dependencies using Maven API

2009-07-31 Thread Alexander
Did you read about
http://maven.apache.org/plugins/maven-dependency-plugin
? [?]

2009/7/31 

> Hi,
> in maven war plugin I need to obtain for each war artifact that the current
> project (war) is dependent on its dependencies? Is there any way how
> to do it using maven or any other plugin API?
>
> Thank you so much
> Mirek
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
Alexander


AW: Load and run artifact from shell script

2009-07-31 Thread Lewis, Eric
Hi

No, apparently dependency:build-classpath needs to have a POM to work - or 
perhaps I'm doing something wrong.

Anyway, I just tried the appassembler plugin, and it works well for what I 
need, namely having a script call my JAR.

Best regards,
Eric


Von: Alexander [mailto:the.malk...@gmail.com]
Gesendet: Freitag, 31. Juli 2009 16:28
An: Maven Users List
Betreff: Re: Load and run artifact from shell script

Hello,

What do you mean "anywhere in system"? It works fine as "mvn 
dependency:build-classpath" and could be invoked as command. You can invoke 
that action in script, parse output and use result classpath in script. 
[cid:32B@goomoji.gmail]

To download all dependencies you could use dependency:go-offline. 
[cid:32B@goomoji.gmail]


2009/7/31 Lewis, Eric mailto:eric.le...@ipi.ch>>
Hi

I have a utility project whose classes should be called from a shell script.

The problem is how to access it: It's in the local repo, so I would like to do 
the following:

- Download it and its runtime dependencies based on group and artifact ID, 
using the latest version
- Create a classpath to use in the shell script

As far as I can see, the dependency:build-classpath would do part of it (not 
downloading, though), but it only works with a POM.
I need to do this anywhere in the file system.

Any hints how I could start?

Thanks & best regards
Eric
-
To unsubscribe, e-mail: 
users-unsubscr...@maven.apache.org
For additional commands, e-mail: 
users-h...@maven.apache.org




--
Alexander



Re: Load and run artifact from shell script

2009-07-31 Thread Alexander
No, it needs POM to work. My fault [?] Oh, you meant to generate dependencies
for non-maven project. I see.

2009/7/31 Lewis, Eric 

> Hi
>
> No, apparently dependency:build-classpath needs to have a POM to work - or
> perhaps I'm doing something wrong.
>
> Anyway, I just tried the appassembler plugin, and it works well for what I
> need, namely having a script call my JAR.
>
> Best regards,
> Eric
>
> 
> Von: Alexander [mailto:the.malk...@gmail.com]
> Gesendet: Freitag, 31. Juli 2009 16:28
> An: Maven Users List
> Betreff: Re: Load and run artifact from shell script
>
> Hello,
>
> What do you mean "anywhere in system"? It works fine as "mvn
> dependency:build-classpath" and could be invoked as command. You can invoke
> that action in script, parse output and use result classpath in script.
> [cid:32B@goomoji.gmail]
>
> To download all dependencies you could use dependency:go-offline.
> [cid:32B@goomoji.gmail]
>
>
> 2009/7/31 Lewis, Eric mailto:eric.le...@ipi.ch>>
> Hi
>
> I have a utility project whose classes should be called from a shell
> script.
>
> The problem is how to access it: It's in the local repo, so I would like to
> do the following:
>
> - Download it and its runtime dependencies based on group and artifact ID,
> using the latest version
> - Create a classpath to use in the shell script
>
> As far as I can see, the dependency:build-classpath would do part of it
> (not downloading, though), but it only works with a POM.
> I need to do this anywhere in the file system.
>
> Any hints how I could start?
>
> Thanks & best regards
> Eric
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org users-unsubscr...@maven.apache.org>
> For additional commands, e-mail: users-h...@maven.apache.org users-h...@maven.apache.org>
>
>
>
>
> --
> Alexander
>
>


-- 
Alexander


Can I access timestamp version of SNAPSHOT dependency within a build?

2009-07-31 Thread Stephen Duncan Jr
I'm trying to manually build an assembly that aggregates multiple
assemblies, to make an installer.  So, I depend on the .tar.gz produced from
other assemblies, I use the dependency-plugin to unpack those dependencies.
While versions are SNAPSHOTs, all of the directories after unpacking have
names like artifactId-1.0-SNAPSHOT.  I'd like to rename them to match the
timestamped version when the dependencies are pulled from the repository.
Is there a way to access the timestamped version number from the build?
(From there I could use the antrun plugin or the GMaven plugin to do the
rename)

-- 
Stephen Duncan Jr
www.stephenduncanjr.com


Maven Newbie

2009-07-31 Thread Samir
my previous setup was an ant environment where all the dependencies 
(both open source and internal) were all bundled up into a single jar 
file. 

I think I'm getting a handle on how to build project and add 
dependencies to open /freely available packages, I was wondering if 
anyone can point me to a good resource that explains how setup my own 
maven repo for internal usage.


Basically the way I see it is:

mvn install would
1.  fetch the FLOSS (free/open) library from the maven repo
2. fetch the internal library from internal maven repo.
3. combine and bundle everything as a jar or desired deployment method.

Thank you for any help.

--
Samir

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Issue with Maven Webstart Plugin while signing weblogic9.2.2 jar

2009-07-31 Thread Agrawal, Sandeep (IS Consultant)
Hi,

We are using webstart maven plugin to genereate the webstart war file
and for signing the jar also.(below is the pom part for signing)



GTSkey 
GTSkey 
GTS
true


It does sign all the jars except weblogic9.2.2 jar(I know jar size is
large but same jar is getting signed through ant without any issue, I
did (set MAVEN_OPTS="-Xmx1024m") also but all in vain. Does anybody
faced this issue earlier and know the resolution.

Apart from the above issue, If I use the Keystore as commented out in
the pom it starts giving me error(GTSkey is key generated) but if I do
comment it out and use the default key genereated in home directory, it
does run without any issue. Any thoughts on this ?


Thanks
Sandeep



Re: Maven Newbie

2009-07-31 Thread Alexander
Did you read maven guide?
http://www.sonatype.com/products/maven/documentation/book-defguide [?]
 

2009/7/31 Samir 

> my previous setup was an ant environment where all the dependencies (both
> open source and internal) were all bundled up into a single jar file.
> I think I'm getting a handle on how to build project and add dependencies
> to open /freely available packages, I was wondering if anyone can point me
> to a good resource that explains how setup my own maven repo for internal
> usage.
>
> Basically the way I see it is:
>
> mvn install would
> 1.  fetch the FLOSS (free/open) library from the maven repo
> 2. fetch the internal library from internal maven repo.
> 3. combine and bundle everything as a jar or desired deployment method.
>
> Thank you for any help.
>
> --
> Samir
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
Alexander


RE: Issue with Maven Webstart Plugin while signing weblogic9.2.2 jar

2009-07-31 Thread Martin Gainty

depends on where the keystore implementation takes place
here is an excerpt from axis2.xml
 


NameOfJKSFile.jks
JKS
password
PleasePutPasswordUsedInKeystoreHere



if i set attribute locked="true" then the current KeyStore node configuration 
cannot be overriden (by parent) 

i dont understand why you have 2 keystore configurations?
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Subject: Issue with Maven Webstart Plugin while signing weblogic9.2.2 jar
> Date: Fri, 31 Jul 2009 11:28:12 -0400
> From: sagra...@consultantemail.com
> To: users@maven.apache.org
> 
> Hi,
> 
> We are using webstart maven plugin to genereate the webstart war file
> and for signing the jar also.(below is the pom part for signing)
> 
> 
> 
> GTSkey 
> GTSkey 
> GTS
> true
> 
> 
> It does sign all the jars except weblogic9.2.2 jar(I know jar size is
> large but same jar is getting signed through ant without any issue, I
> did (set MAVEN_OPTS="-Xmx1024m") also but all in vain. Does anybody
> faced this issue earlier and know the resolution.
> 
> Apart from the above issue, If I use the Keystore as commented out in
> the pom it starts giving me error(GTSkey is key generated) but if I do
> comment it out and use the default key genereated in home directory, it
> does run without any issue. Any thoughts on this ?
> 
> 
> Thanks
> Sandeep
> 

_
Windows Live™ SkyDrive™: Store, access, and share your photos. See how.
http://windowslive.com/Online/SkyDrive?ocid=TXT_TAGLM_WL_CS_SD_photos_072009

xradar

2009-07-31 Thread EJ Ciramella
Is anyone on this list familiar with the xradar set of reports?
 
I'm trying to get this going for project branches (so people can capture
problems quickly) and have sonar fed from mainline projects.
 
It's almost looking like having the project branches feed sonar would
just be easier


RE: Issue with Maven Webstart Plugin while signing weblogic9.2.2 jar

2009-07-31 Thread Agrawal, Sandeep (IS Consultant)
Thaks Marty...My problem got resolved for signing the jars..

I had key at two places just for testing purpose. Actually in keystore you need 
to put complete path like (${basedir}/src/keytool/GTSkey)  
and if you do not, it looks for key in ${project.build.directory} 
src/keytool/GTSkey.

Did you anybody ever signed the weblogic jar using maven utility. I am getting 
below error while signing weblogic jar even after setting memory to 1GB(through 
ant it is working fine):

[WARNING] Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

Thanks
Sandeep

-Original Message-
From: Martin Gainty [mailto:mgai...@hotmail.com] 
Sent: Friday, July 31, 2009 11:49 AM
To: users@maven.apache.org
Subject: RE: Issue with Maven Webstart Plugin while signing weblogic9.2.2 jar


depends on where the keystore implementation takes place here is an excerpt 
from axis2.xml  


NameOfJKSFile.jks
JKS
password
PleasePutPasswordUsedInKeystoreHere



if i set attribute locked="true" then the current KeyStore node configuration 
cannot be overriden (by parent) 

i dont understand why you have 2 keystore configurations?
Martin Gainty
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Subject: Issue with Maven Webstart Plugin while signing weblogic9.2.2 
> jar
> Date: Fri, 31 Jul 2009 11:28:12 -0400
> From: sagra...@consultantemail.com
> To: users@maven.apache.org
> 
> Hi,
> 
> We are using webstart maven plugin to genereate the webstart war file 
> and for signing the jar also.(below is the pom part for signing)
> 
> 
> 
> GTSkey
> GTSkey
> GTS
> true
> 
> 
> It does sign all the jars except weblogic9.2.2 jar(I know jar size is 
> large but same jar is getting signed through ant without any issue, I 
> did (set MAVEN_OPTS="-Xmx1024m") also but all in vain. Does anybody 
> faced this issue earlier and know the resolution.
> 
> Apart from the above issue, If I use the Keystore as commented out in 
> the pom it starts giving me error(GTSkey is key generated) but if I do 
> comment it out and use the default key genereated in home directory, 
> it does run without any issue. Any thoughts on this ?
> 
> 
> Thanks
> Sandeep
> 

_
Windows Live(tm) SkyDrive(tm): Store, access, and share your photos. See how.
http://windowslive.com/Online/SkyDrive?ocid=TXT_TAGLM_WL_CS_SD_photos_072009

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Corporate Parent POM

2009-07-31 Thread Kalle Korhonen
And the last missing piece is that you need to make the released
parent pom available to the other builds. The best way is to use a
proxy repo that proxies everything (including the company parent),
then instruct Maven to use that proxy as a mirror for all repos (you
can distribute/make available a sample settings.xml file for your
users).

Kalle


On Thu, Jul 30, 2009 at 3:27 PM, Edelson,
Justin wrote:
> You just refer to the parent as the parent. Maven does not require that
> the parent be in the same SVN repository as the child. If the parent
> isn't (which I would think is typically the case for corporate POMs),
> then it just has to be in a Maven repository somewhere.
>
> For example, the POM in this project:
> http://kenai.com/projects/boxspring/sources/main/show/trunk references
> the corporate POM I linked to below (well, the last release of it).
>
> Justin
>
> -Original Message-
> From: Logachandru X Rajamanickam
> [mailto:logachandru.x.rajamanic...@jpmchase.com]
> Sent: Thursday, July 30, 2009 6:09 PM
> To: Edelson, Justin
> Cc: Maven Users List
> Subject: RE: Corporate Parent POM
> Importance: High
>
> Hi Justin,
>
> Thanks for your input and it is very helpful in understanding how this
> can be worked out. Have another question - I am having 100 applications
> in 100 different SVN repositories and in this case how can I refer this
> Corporate POM in the parent POM of the individual applications which are
> residing in 100 different repositories. Can you please throw me some
> ideas on this aspect.
>
>
>
> Thanks & Regards,
> Logu Rajamanickam
>
> -Original Message-
> From: Edelson, Justin [mailto:justin.edel...@mtvstaff.com]
> Sent: Thursday, July 30, 2009 3:31 PM
> To: Maven Users List
> Subject: RE: Corporate Parent POM
>
> I think the best way to do this is through properties where you set a
> default in the corporate POM and allow children to override it. If it
> helps you, the open-source version of our corporate poms are on kenai:
> http://kenai.com/projects/mtvn-master-pom/sources/source/show/trunk.
> These are not identical to our internal corporate poms, but they're
> reasonably close.
>
> Justin
>
> -Original Message-
> From: Logachandru X Rajamanickam
> [mailto:logachandru.x.rajamanic...@jpmchase.com]
> Sent: Thursday, July 30, 2009 4:05 PM
> To: Maven Users List
> Subject: Corporate Parent POM
> Importance: High
>
> Hello Experts,
>
> We have nearly 100 applications and I would like to have a central
> corporate POM which is a parent to the child POMs in all applications.
> How should I design a POM at the top level to govern and delegate the
> functionalities to the child POMs in all the applications? Trying to
> find some examples on the web, but could not find any as such. Can  you
> please point some references to my requirement.
>
>
> Thanks & Regards,
> Logu Rajamanickam
>
>
>
> This communication is for informational purposes only. It is not
> intended as an offer or solicitation for the purchase or sale of any
> financial instrument or as an official confirmation of any transaction.
> All market prices, data and other information are not warranted as to
> completeness or accuracy and are subject to change without notice. Any
> comments or statements made herein do not necessarily reflect those of
> JPMorgan Chase & Co., its subsidiaries and affiliates.
>
> This transmission may contain information that is privileged,
> confidential, legally privileged, and/or exempt from disclosure under
> applicable law. If you are not the intended recipient, you are hereby
> notified that any disclosure, copying, distribution, or use of the
> information contained herein (including any reliance
> thereon) is STRICTLY PROHIBITED. Although this transmission and any
> attachments are believed to be free of any virus or other defect that
> might affect any computer system into which it is received and opened,
> it is the responsibility of the recipient to ensure that it is virus
> free and no responsibility is accepted by JPMorgan Chase & Co., its
> subsidiaries and affiliates, as applicable, for any loss or damage
> arising in any way from its use. If you received this transmission in
> error, please immediately contact the sender and destroy the material in
> its entirety, whether in electronic or hard copy format. Thank you.
>
> Please refer to http://www.jpmorgan.com/pages/disclosures for
> disclosures relating to European legal entities.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
> This communication is for informational purposes only. It is not
> intended as an offer or solicitation for the purchase or sale of any
> financial instrument or as an official confirmation of any transaction.
> All market prices, data and other information are not warranted as to
> completeness or accuracy and are subject to change 

How to substitute a variable depending upon OS in Maven

2009-07-31 Thread Agrawal, Sandeep (IS Consultant)
Hi,

We have one weblogic.xml file, in which we pass the variable value
depending upon the OS type.

   
  
  @clientPatchDir@
  /static-content/*
   


We were able to do the same in ANT without any issue. Is there any way,
I can achieve same in MAVEN ?

Thanks
Sandeep



Re: How to substitute a variable depending upon OS in Maven

2009-07-31 Thread Wayne Fay
> We were able to do the same in ANT without any issue. Is there any way,
> I can achieve same in MAVEN ?

1. Maven is not Ant. Get used to that right now.

2. Use profiles and activate one or the other depending on the OS
which will filter various values eventually giving you what you want
during your builds. Google is your friend here, as are various free
ebooks on Maven and other documentation.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Uploading a new version to internal remote repository

2009-07-31 Thread Qureshi,Shahzad [Ontario]
Hi all,

I've an internal remote repository setup which is working fine. I just
have one confusion.

I uploaded a internally developed library to the internal remote
repository a few months ago which worked fine. However, now there is a
new version for it available and I wanted to upload the new version but
I also don't want to remove the older version yet as there are few
modules that require the old version. 

I simply updated the version number in the pom file of the library and
updated the file name in the upload script and it was uploaded fine.

I updated the pom file on my module to the new version, however I still
get the older version downloaded in the module that needs to use the new
version.

Someone had mentioned to me before that if I use SNAPSHOT I won't get
this problem however, is that the rite approach though? I thought
SNAPSHOT is used only for the libraries/modules that are actively under
development and not for the stable/production versions?

Hows do log4j for instance do this? I can simply change the version for
log4j in my pom file to whatever I want and I'll get that version.




Shahzad Qureshi
Systems Analyst/Programmer
Applications Directorate, CIOB
Environment Canada
416-739-4702
shahzad.qure...@ec.gc.ca



Re: Uploading a new version to internal remote repository

2009-07-31 Thread adasal
Are you sure?
I think you have misconfigured something.
The pom dictates the version of artifact you are using.
This doesn't make sense to me.
Adam

2009/7/31 Qureshi,Shahzad [Ontario] 

> Hi all,
>
> I've an internal remote repository setup which is working fine. I just
> have one confusion.
>
> I uploaded a internally developed library to the internal remote
> repository a few months ago which worked fine. However, now there is a
> new version for it available and I wanted to upload the new version but
> I also don't want to remove the older version yet as there are few
> modules that require the old version.
>
> I simply updated the version number in the pom file of the library and
> updated the file name in the upload script and it was uploaded fine.
>
> I updated the pom file on my module to the new version, however I still
> get the older version downloaded in the module that needs to use the new
> version.
>
> Someone had mentioned to me before that if I use SNAPSHOT I won't get
> this problem however, is that the rite approach though? I thought
> SNAPSHOT is used only for the libraries/modules that are actively under
> development and not for the stable/production versions?
>
> Hows do log4j for instance do this? I can simply change the version for
> log4j in my pom file to whatever I want and I'll get that version.
>
>
>
> 
> Shahzad Qureshi
> Systems Analyst/Programmer
> Applications Directorate, CIOB
> Environment Canada
> 416-739-4702
> shahzad.qure...@ec.gc.ca
>
>


RE: Uploading a new version to internal remote repository

2009-07-31 Thread Qureshi,Shahzad [Ontario]
This is what I did

The pom for version 2.0 is 

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
xx.xy.xz.abc.commons
abc-commons
2.0
DMS Commons

description of the lib


Environment Canada
http://path/

 

And upload script for 2.0 is
mvn deploy:deploy-file -Durl=scp://path -DrepositoryId=maven-repo
-Dfile=commons-2.0.jar -DpomFile=pom.xml


And pom for version 3.0 is

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
xx.xy.xz.abc.commons
abc-commons
3.0
DMS Commons

description of the lib


Environment Canada
http://path/

 

And upload script for 3.0 is
mvn deploy:deploy-file -Durl=scp://path -DrepositoryId=maven-repo
-Dfile=commons-3.0.jar -DpomFile=pom.xml



Shahzad Qureshi
Systems Analyst/Programmer
Applications Directorate, CIOB
Environment Canada
416-739-4702
shahzad.qure...@ec.gc.ca

-Original Message-
From: adasal [mailto:adam.salt...@gmail.com] 
Sent: Friday, July 31, 2009 3:07 PM
To: Maven Users List
Subject: Re: Uploading a new version to internal remote repository

Are you sure?
I think you have misconfigured something.
The pom dictates the version of artifact you are using.
This doesn't make sense to me.
Adam

2009/7/31 Qureshi,Shahzad [Ontario] 

> Hi all,
>
> I've an internal remote repository setup which is working fine. I just

> have one confusion.
>
> I uploaded a internally developed library to the internal remote 
> repository a few months ago which worked fine. However, now there is a

> new version for it available and I wanted to upload the new version 
> but I also don't want to remove the older version yet as there are few

> modules that require the old version.
>
> I simply updated the version number in the pom file of the library and

> updated the file name in the upload script and it was uploaded fine.
>
> I updated the pom file on my module to the new version, however I 
> still get the older version downloaded in the module that needs to use

> the new version.
>
> Someone had mentioned to me before that if I use SNAPSHOT I won't get 
> this problem however, is that the rite approach though? I thought 
> SNAPSHOT is used only for the libraries/modules that are actively 
> under development and not for the stable/production versions?
>
> Hows do log4j for instance do this? I can simply change the version 
> for log4j in my pom file to whatever I want and I'll get that version.
>
>
>
> 
> Shahzad Qureshi
> Systems Analyst/Programmer
> Applications Directorate, CIOB
> Environment Canada
> 416-739-4702
> shahzad.qure...@ec.gc.ca
>
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Uploading a new version to internal remote repository

2009-07-31 Thread Qureshi,Shahzad [Ontario]
Nevermind, it works fine. I had not enabled dependency management in
eclipse and kept thinking that it wasn't getting latest version.

Thanks adasal for your input 



Shahzad Qureshi
Systems Analyst/Programmer
Applications Directorate, CIOB
Environment Canada
416-739-4702
shahzad.qure...@ec.gc.ca

-Original Message-
From: adasal [mailto:adam.salt...@gmail.com] 
Sent: Friday, July 31, 2009 3:07 PM
To: Maven Users List
Subject: Re: Uploading a new version to internal remote repository

Are you sure?
I think you have misconfigured something.
The pom dictates the version of artifact you are using.
This doesn't make sense to me.
Adam

2009/7/31 Qureshi,Shahzad [Ontario] 

> Hi all,
>
> I've an internal remote repository setup which is working fine. I just

> have one confusion.
>
> I uploaded a internally developed library to the internal remote 
> repository a few months ago which worked fine. However, now there is a

> new version for it available and I wanted to upload the new version 
> but I also don't want to remove the older version yet as there are few

> modules that require the old version.
>
> I simply updated the version number in the pom file of the library and

> updated the file name in the upload script and it was uploaded fine.
>
> I updated the pom file on my module to the new version, however I 
> still get the older version downloaded in the module that needs to use

> the new version.
>
> Someone had mentioned to me before that if I use SNAPSHOT I won't get 
> this problem however, is that the rite approach though? I thought 
> SNAPSHOT is used only for the libraries/modules that are actively 
> under development and not for the stable/production versions?
>
> Hows do log4j for instance do this? I can simply change the version 
> for log4j in my pom file to whatever I want and I'll get that version.
>
>
>
> 
> Shahzad Qureshi
> Systems Analyst/Programmer
> Applications Directorate, CIOB
> Environment Canada
> 416-739-4702
> shahzad.qure...@ec.gc.ca
>
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Issue with Maven Webstart Plugin while signing weblogic9.2.2 jar

2009-07-31 Thread Agrawal, Sandeep (IS Consultant)
Just an Update if someone else is also struggling with signing weblogic jar.

It was issue with JDK1.5.0.9 and working fine with verson > JDK1.5.0.11 (might 
be a bug in 1.5.0.9)

Thanks
Sandeep 

-Original Message-
From: Agrawal, Sandeep (IS Consultant) 
Sent: Friday, July 31, 2009 1:03 PM
To: Maven Users List
Subject: RE: Issue with Maven Webstart Plugin while signing weblogic9.2.2 jar

Thaks Marty...My problem got resolved for signing the jars..

I had key at two places just for testing purpose. Actually in keystore you need 
to put complete path like (${basedir}/src/keytool/GTSkey)  
and if you do not, it looks for key in ${project.build.directory} 
src/keytool/GTSkey.

Did you anybody ever signed the weblogic jar using maven utility. I am getting 
below error while signing weblogic jar even after setting memory to 1GB(through 
ant it is working fine):

[WARNING] Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

Thanks
Sandeep

-Original Message-
From: Martin Gainty [mailto:mgai...@hotmail.com]
Sent: Friday, July 31, 2009 11:49 AM
To: users@maven.apache.org
Subject: RE: Issue with Maven Webstart Plugin while signing weblogic9.2.2 jar


depends on where the keystore implementation takes place here is an excerpt 
from axis2.xml  


NameOfJKSFile.jks
JKS
password
PleasePutPasswordUsedInKeystoreHere



if i set attribute locked="true" then the current KeyStore node configuration 
cannot be overriden (by parent) 

i dont understand why you have 2 keystore configurations?
Martin Gainty
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Subject: Issue with Maven Webstart Plugin while signing weblogic9.2.2 
> jar
> Date: Fri, 31 Jul 2009 11:28:12 -0400
> From: sagra...@consultantemail.com
> To: users@maven.apache.org
> 
> Hi,
> 
> We are using webstart maven plugin to genereate the webstart war file 
> and for signing the jar also.(below is the pom part for signing)
> 
> 
> 
> GTSkey
> GTSkey
> GTS
> true
> 
> 
> It does sign all the jars except weblogic9.2.2 jar(I know jar size is 
> large but same jar is getting signed through ant without any issue, I 
> did (set MAVEN_OPTS="-Xmx1024m") also but all in vain. Does anybody 
> faced this issue earlier and know the resolution.
> 
> Apart from the above issue, If I use the Keystore as commented out in 
> the pom it starts giving me error(GTSkey is key generated) but if I do 
> comment it out and use the default key genereated in home directory, 
> it does run without any issue. Any thoughts on this ?
> 
> 
> Thanks
> Sandeep
> 

_
Windows Live(tm) SkyDrive(tm): Store, access, and share your photos. See how.
http://windowslive.com/Online/SkyDrive?ocid=TXT_TAGLM_WL_CS_SD_photos_072009

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Uploading a new version to internal remote repository

2009-07-31 Thread Alexander
Just be sure you got it. There is no difference between your internal
developed libraries and external downloaded dependencies (as log4j).
Artifact at repostory level it is no more than set of files. Get right
feeling for repositories. [?]

2009/8/1 Qureshi,Shahzad [Ontario] 

> Nevermind, it works fine. I had not enabled dependency management in
> eclipse and kept thinking that it wasn't getting latest version.
>
> Thanks adasal for your input
>
>
> 
> Shahzad Qureshi
> Systems Analyst/Programmer
> Applications Directorate, CIOB
> Environment Canada
> 416-739-4702
> shahzad.qure...@ec.gc.ca
>
> -Original Message-
> From: adasal [mailto:adam.salt...@gmail.com]
> Sent: Friday, July 31, 2009 3:07 PM
> To: Maven Users List
> Subject: Re: Uploading a new version to internal remote repository
>
> Are you sure?
> I think you have misconfigured something.
> The pom dictates the version of artifact you are using.
> This doesn't make sense to me.
> Adam
>
> 2009/7/31 Qureshi,Shahzad [Ontario] 
>
> > Hi all,
> >
> > I've an internal remote repository setup which is working fine. I just
>
> > have one confusion.
> >
> > I uploaded a internally developed library to the internal remote
> > repository a few months ago which worked fine. However, now there is a
>
> > new version for it available and I wanted to upload the new version
> > but I also don't want to remove the older version yet as there are few
>
> > modules that require the old version.
> >
> > I simply updated the version number in the pom file of the library and
>
> > updated the file name in the upload script and it was uploaded fine.
> >
> > I updated the pom file on my module to the new version, however I
> > still get the older version downloaded in the module that needs to use
>
> > the new version.
> >
> > Someone had mentioned to me before that if I use SNAPSHOT I won't get
> > this problem however, is that the rite approach though? I thought
> > SNAPSHOT is used only for the libraries/modules that are actively
> > under development and not for the stable/production versions?
> >
> > Hows do log4j for instance do this? I can simply change the version
> > for log4j in my pom file to whatever I want and I'll get that version.
> >
> >
> >
> > 
> > Shahzad Qureshi
> > Systems Analyst/Programmer
> > Applications Directorate, CIOB
> > Environment Canada
> > 416-739-4702
> > shahzad.qure...@ec.gc.ca
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
Alexander


Re: Uploading a new version to internal remote repository

2009-07-31 Thread adasal
I believe the following is correct.
groupId
artifactId
version
triangulate the POM and, therefore, the artifact for which this POM is
responsible.
By enabling dependency management you have made your second POM the child of
the first and allowed any version of a dependencies artifact to be overriden
in this child.
If you are using eclipse have you looked at the POM xml it produces?
Within the dependency management tags there should be the 'long' description
of your artifacts.
Without dependency management, the  tag, declared you
would just depend on the  tag to define all needed artifacts.
I believe there is still some confusion here as the POMs you show are the
artifact POMs, not the project POMs, but my guess is that you have created
two project POMs unintentionally?
For your scenario you would do one of three things.
Define both artifact versions within the same project POM. Both artifacts
sit side by side and both are on the class path - which class path depends
on how scope is defined.
Define both artifact versions with the same POM, but use profiles so that
only one of them is 'seen' in any one situation.
Have different local project POMs depending on need of the user each with
only one of the different artifacts defined.
Adam

2009/7/31 Qureshi,Shahzad [Ontario] 

> Nevermind, it works fine. I had not enabled dependency management in
> eclipse and kept thinking that it wasn't getting latest version.
>
> Thanks adasal for your input
>
>
> 
> Shahzad Qureshi
> Systems Analyst/Programmer
> Applications Directorate, CIOB
> Environment Canada
> 416-739-4702
> shahzad.qure...@ec.gc.ca
>
> -Original Message-
> From: adasal [mailto:adam.salt...@gmail.com]
> Sent: Friday, July 31, 2009 3:07 PM
> To: Maven Users List
> Subject: Re: Uploading a new version to internal remote repository
>
> Are you sure?
> I think you have misconfigured something.
> The pom dictates the version of artifact you are using.
> This doesn't make sense to me.
> Adam
>
> 2009/7/31 Qureshi,Shahzad [Ontario] 
>
> > Hi all,
> >
> > I've an internal remote repository setup which is working fine. I just
>
> > have one confusion.
> >
> > I uploaded a internally developed library to the internal remote
> > repository a few months ago which worked fine. However, now there is a
>
> > new version for it available and I wanted to upload the new version
> > but I also don't want to remove the older version yet as there are few
>
> > modules that require the old version.
> >
> > I simply updated the version number in the pom file of the library and
>
> > updated the file name in the upload script and it was uploaded fine.
> >
> > I updated the pom file on my module to the new version, however I
> > still get the older version downloaded in the module that needs to use
>
> > the new version.
> >
> > Someone had mentioned to me before that if I use SNAPSHOT I won't get
> > this problem however, is that the rite approach though? I thought
> > SNAPSHOT is used only for the libraries/modules that are actively
> > under development and not for the stable/production versions?
> >
> > Hows do log4j for instance do this? I can simply change the version
> > for log4j in my pom file to whatever I want and I'll get that version.
> >
> >
> >
> > 
> > Shahzad Qureshi
> > Systems Analyst/Programmer
> > Applications Directorate, CIOB
> > Environment Canada
> > 416-739-4702
> > shahzad.qure...@ec.gc.ca
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


archetype plug-in vs custom plug-in

2009-07-31 Thread Murali Pottlapelli

Hi All,
While searching through mailing list I found "archetypes to add files to 
an existing project",  
http://www.nabble.com/Using-Archetypes-to-Add-to-an-Existing-Project-(Maven-2)-ts1274662.html#a1274662

This message is at least 3 years old, did this feature evolve?

This feature might help in my work. I need to generate/add artifact(s) 
to a module based on the meta data user configures.


I like to define an archetype to generate multi-module project, when 
project is created from this archetype it creates parent project with 
POM file and meta data/configuration file. Meta data in configuration 
file determine number of submodules, and artifacts created in the parent 
project.


Let us look at my request using an example. maven-archetype-j2ee-simple 
creates  JavaEE multi module project with sub modules ear, ejbs, 
servelets etc. by default all the sub-modules are empty. I need little 
variation of it, like to generate configuration file in 
src\main\resources. This file is edited/configured by user, 
configuration is input to create/edit/add artifacts to sub-modules.


Does archetype plug-in help? or shall I write my own plug-in?

Regards
Murali  



RE: archetype plug-in vs custom plug-in

2009-07-31 Thread Martin Gainty

could be accomplished by accepting user input data thru screens usually served 
by TC or GF or OAS 
within web framework such as Struts or JSF
a plain CRUD webapp would accomplish the objective
if you persist to individual properties files you could create archetype from 
the properties files

please ping glassfish users group (us...@glassfish.dev.java.net) for 
configuration/deployment details
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Fri, 31 Jul 2009 19:35:18 -0700
> From: murali.pottlape...@sun.com
> Subject: archetype plug-in vs custom plug-in
> To: users@maven.apache.org
> 
> Hi All,
> While searching through mailing list I found "archetypes to add files to 
> an existing project",  
> http://www.nabble.com/Using-Archetypes-to-Add-to-an-Existing-Project-(Maven-2)-ts1274662.html#a1274662
> This message is at least 3 years old, did this feature evolve?
> 
> This feature might help in my work. I need to generate/add artifact(s) 
> to a module based on the meta data user configures.
> 
> I like to define an archetype to generate multi-module project, when 
> project is created from this archetype it creates parent project with 
> POM file and meta data/configuration file. Meta data in configuration 
> file determine number of submodules, and artifacts created in the parent 
> project.
> 
> Let us look at my request using an example. maven-archetype-j2ee-simple 
> creates  JavaEE multi module project with sub modules ear, ejbs, 
> servelets etc. by default all the sub-modules are empty. I need little 
> variation of it, like to generate configuration file in 
> src\main\resources. This file is edited/configured by user, 
> configuration is input to create/edit/add artifacts to sub-modules.
> 
> Does archetype plug-in help? or shall I write my own plug-in?
> 
> Regards
> Murali  
>  

_
Windows Live™ SkyDrive™: Store, access, and share your photos. See how.
http://windowslive.com/Online/SkyDrive?ocid=TXT_TAGLM_WL_CS_SD_photos_072009