Re: Exclude .java files while compiling and packagin a .War file

2008-07-16 Thread Geoffrey Wiseman
On Wed, Jul 16, 2008 at 4:39 AM, anishab <[EMAIL PROTECTED]> wrote:

>
> Just to add to the post below, we are using Maven v 1.0.2


It's been a while since I used Maven 1.x, but if you've got it set up well,
you shouldn't find .java files in your WAR, so it sounds like your
configuration is off.  It's not a matter of excluding them, it's a question
of what's causing them to be included, I'd say.

  - Geoffrey
-- 
Geoffrey Wiseman


Re: How to integrate FTP Wagon into Maven 2.0.7

2008-07-16 Thread Samuel Le Berrigaud
Hi Enrique,

you have to define the wagon provider as an extension in your pom.xml.
See this page for reference:
http://maven.apache.org/guides/mini/guide-using-extensions.html

Hope this helps,
SaM

On Thu, Jul 17, 2008 at 9:02 AM, Enrique Gaona <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I'm getting a  Unsupported Protocol: 'ftp': Cannot find wagon which
> supports the requested protocol: ftp error message from maven.  How can I
> integrate ftp wagon to Maven 2.0.7?
>
> Enrique
>

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



How to integrate FTP Wagon into Maven 2.0.7

2008-07-16 Thread Enrique Gaona

Hi,
I'm getting a  Unsupported Protocol: 'ftp': Cannot find wagon which
supports the requested protocol: ftp error message from maven.  How can I
integrate ftp wagon to Maven 2.0.7?

Enrique


RE: newbie plugin developer questions..

2008-07-16 Thread Russ Tremain
Hi Brian,

I have been working on perl-plugin-tools which allows one to create maven
plugins written in perl.  This is based on BSF technology [1,2].  I'm taking a
slightly different approach in that I generate a java layer to inject the
perl plugin with mojo parameters via setters only.  Thus there is a
code-generation step involved, and plugin parameters are specified
in the plugin project pom.  The end result is a standard java plugin
as far as maven is concerned, and pure perl as far as the perl-mojo
developer is concerned.  The perl-mojo code is very uncluttered since the java
layer injects it with a single perl object containing getters to access the
mojo parameters.

In concert, I'm developing an unpack plugin that will cache the contents of a 
maven artifact
in the local build repository according to it's jar manifest, and from that 
generate
the perl @INC (Include) variable so that perl can have access to shared 
scripting libraries.
The unpack plugin is similar to the nar plugin approach, but much simpler 
overall.
(In fact, I stole some of the code in the maven-dependency-plugin to do the 
unpack part. :)

In addition, I have several plugins in mind that will wrapper some existing 
perl tools.
Some of these may be useful to the community as well.

Since the perl toolkit and unpack plugins are fundamental plugins,
I think they should go to codehaus but I'm open to suggestions...

I'm not done yet... but would like a place to start staging things since this
is a fairly large piece of development.  I do have a working prototype; see 
below.

thx,
-Russ

[1] http://jakarta.apache.org/bsf/
[2] http://bsfperl.sourceforge.net/

Output from perl mojo test:

tanami{rtmojo.155} smvn
[INFO] Scanning for projects...
[INFO] 
[INFO] Building zip-mojo-test
[INFO]task-segment: [package]
[INFO] 
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Not compiling test sources
[INFO] [surefire:test]
[INFO] Tests are skipped.
[INFO] [jar:jar]
[WARNING] JAR will be empty - no content was marked for inclusion!
CONSTRUCTING ZipMojoImpl
INJECTING __0mojos
initPerlContext
ATTEMPTING TO SET DEPENDENCY CLASSPATH
ATTEMPTING TO LOAD PERL ENGINE
REGISTERED PERL ENGINE.
ATTEMPTING TO INSTANTIATE PERL WRAPPER OBJECT
INSTANTIATED PERL WRAPPER OBJECT
ATTEMPTING TO INSTANTIATE PERL MOJO IMPLEMENTATION
SETTING PERL EXECUTION ENVIRONMENT
INSTANTIATED PERL MOJO IMPLEMENTATION
INJECTING 'artifactId' of type 'String'
PERL MOJO WRAPPER: INJECTING 'artifactId' of type 'String'
INJECTING 'basedir' of type 'String'
PERL MOJO WRAPPER: INJECTING 'basedir' of type 'String'
INJECTING 'buildDirectory' of type 'String'
PERL MOJO WRAPPER: INJECTING 'buildDirectory' of type 'String'
INJECTING 'buildFinalName' of type 'String'
PERL MOJO WRAPPER: INJECTING 'buildFinalName' of type 'String'
INJECTING 'buildOutputDirectory' of type 'String'
PERL MOJO WRAPPER: INJECTING 'buildOutputDirectory' of type 'String'
INJECTING 'buildSourceDirectory' of type 'String'
PERL MOJO WRAPPER: INJECTING 'buildSourceDirectory' of type 'String'
INJECTING 'buildTestOutputDirectory' of type 'String'
PERL MOJO WRAPPER: INJECTING 'buildTestOutputDirectory' of type 'String'
INJECTING 'buildTestSourceDirectory' of type 'String'
PERL MOJO WRAPPER: INJECTING 'buildTestSourceDirectory' of type 'String'
INJECTING 'localRepository' of type 'String'
PERL MOJO WRAPPER: INJECTING 'localRepository' of type 'String'
INJECTING 'projectPackaging' of type 'String'
PERL MOJO WRAPPER: INJECTING 'projectPackaging' of type 'String'
INJECTING 'projectVersion' of type 'String'
PERL MOJO WRAPPER: INJECTING 'projectVersion' of type 'String'
INJECTING 'timeout' of type 'Integer'
PERL MOJO WRAPPER: INJECTING 'timeout' of type 'Integer'

[INFO] [zip:zip {execution: zip-mojo-test}]
EXECUTE PERL MOJO FROM JAVA
PERL MOJO : EXECUTE with 'configObj'
excludes is 'UNDEFINED'
includes is 'UNDEFINED'
timeout is '100'
projectUrl is 'UNDEFINED'
basedir is '/Users/russt/proj/rtmojo/zip-mojo/srcgen/bld/zip-mojo/test'
artifactId is 'zip-mojo-test'
buildDirectory is 
'/Users/russt/proj/rtmojo/zip-mojo/srcgen/bld/zip-mojo/test/target'
buildFinalName is 'zip-mojo-test-1.0-SNAPSHOT'
buildOutputDirectory is 
'/Users/russt/proj/rtmojo/zip-mojo/srcgen/bld/zip-mojo/test/target/classes'
buildSourceDirectory is 
'/Users/russt/proj/rtmojo/zip-mojo/srcgen/bld/zip-mojo/test/src/main/java'
buildTestOutputDirectory is 
'/Users/russt/proj/rtmojo/zip-mojo/srcgen/bld/zip-mojo/test/target/test-classes'
buildTestSourceDirectory is 
'/Users/russt/proj/rtmojo/zip-mojo/srcgen/bld/zip-mojo/test/src/test/java'
projectPackaging is 'jar'
projectVersion is '1.0-SNAPSHOT'
localReposit

Re: handling .jars not in public repositories?

2008-07-16 Thread Stephen Connolly
Yeah but then your pom is for a pom not a jar this overwriting in
the package phase keeps the jar packaging type

On Wed, Jul 16, 2008 at 3:41 PM, Tom Huybrechts
<[EMAIL PROTECTED]> wrote:
> I haven't tried it , but I think you could just use a POM packaging
> (which only does install/deploy) and attach the jar with build-helper.
>
> On Wed, Jul 16, 2008 at 11:14 AM, Stephen Connolly
> <[EMAIL PROTECTED]> wrote:
>> Yeah, I wish I knew how to disable the jar plugin... that's why I
>> posted the antrun solution!
>>
>> On Wed, Jul 16, 2008 at 7:54 AM, Kristian Rink <[EMAIL PROTECTED]> wrote:
>>> Stephen;
>>>
>>> and first off, thanks a bunch for your hints on that, much appreciated
>>> (and indeed quite a bit enlightening):
>>>
>>> Stephen Connolly schrieb:
>>> [...]
 
   
   
 maven-antrun-plugin
 
   
 package
 
   run
 
 
   
 >>> file="${basedir}/src/main/jar/${pom.artifactId}-${pom.version}.jar"

 tofile="${basedir}/target/${pom.artifactId}-${pom.version}.jar"
   overwrite="true"/>
   
 
   
 
   
 
>>> [...]
 On Wed, Jul 16, 2008 at 7:45 AM, Stephen Connolly
 <[EMAIL PROTECTED]> wrote:
> I would do a simple trickery...
>
> disable the jar plugin and then use the build-helper plugin to attach
> the jar file.
>>>
>>> Is any of the two approaches to be preferred in the given use case?
>>> Personally, from my current point of knowledge, though, I'd go for
>>> antrun simply because so far I have never disabled a plugin in maven2
>>> and am not sure I know how to get that done. ;)
>>>
>>> Cheers & thanks again,
>>> Kristian
>>>
>>>
>>> --
>>> Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
>>> jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 "One
>>> dreaming alone, it will be only a dream; many dreaming together is the
>>> beginning of a new reality." (Hundertwasser)
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: @requiresDependencyResolution x2

2008-07-16 Thread Edelson, Justin
Thanks Brian.



From: Brian E. Fox [mailto:[EMAIL PROTECTED]
Sent: Wed 7/16/2008 4:20 PM
To: Maven Users List
Subject: RE: @requiresDependencyResolution x2



You'll have to use requires... test and then filter based on the
effective scope. The dependency plugin does exactly this and the filters
are available in a maven-shared module.

-Original Message-
From: Edelson, Justin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 16, 2008 2:14 PM
To: users@maven.apache.org
Subject: @requiresDependencyResolution x2

I need to build a classpath which contains dependencies scoped in
compile, provided, and runtime. It looks like I need effectively to do
this:
@requiresDependencyResolution compile
@requiresDependencyResolution runtime

But that doesn't work. Only the first annotation is used. Is there a way
to make this work?

Thanks,

Justin Edelson
VP, Platform Engineering
MTV Networks Digital

-
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: newbie plugin developer questions..

2008-07-16 Thread Brian E. Fox
Hi Russ,
What's the plugin? The process at codehaus is usually to attach it to a
jira and then try to find someone to sponsor it.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 16, 2008 2:40 PM
To: Adam
Cc: Maven Users List
Subject: Re: newbie plugin developer questions..

I need a place to check it in.  I was thinking about checking it in on
mojo.codehaus.org.
However, haven't been able to raise a response there following the
procedures on http://mojo.codehaus.org
(which is basically just send an email to the dev list).

There are some other pages that say to submit a jira; so maybe I should
try that.

thanks!
-Russ

At 1:21 PM -0400 7/16/08, Adam wrote:
>http://maven.apache.org/plugin-developers/index.html
>
>Or do you mean you have one done and would like to make it available?
>If so, you might want to have it somewhere like Sourceforge, and have
>your repository rsync'd with Ibiblio.
>
>On Wed, Jul 16, 2008 at 1:16 PM, Russ Tremain <[EMAIL PROTECTED]>
wrote:
>> anyone know how to get started contributing a new plugin?
>>
>> tia,
>> -Russ
>>
>>
>>>Date: Fri, 11 Jul 2008 13:14:30 -0700
>>>From: Russ Tremain <[EMAIL PROTECTED]>
>>>Subject: [mojo-dev] newbie plugin developer questions..
>>>Sender: [EMAIL PROTECTED]
> >>To: [EMAIL PROTECTED]
>>>Reply-to: [EMAIL PROTECTED]
>>>Delivered-to: mailing list [EMAIL PROTECTED]
>>>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>>>List-Post: 
>>>List-Subscribe: 
>>>List-Unsubscribe: 
>>>List-Help: 
>>>List-Id: 
>>>Original-recipient: rfc822;[EMAIL PROTECTED]
>>>
>>>Hi,
>>>
>>>I've been developing a perl plugin toolkit, and I'm thinking about
which community
>>>I should contribute it to.
>>>
>>>Would this be a good site, and if so, how do I go about setting up a
new project?
>>>
>>>Also, is there another list more appropriate for questions like this
(developer help)?
>>>Most of the email on this list seems to be generated by JIRA
automation.
>>>
>>>Many thanks,
>>>-Russ
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
>--
>Adam
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


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


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



RE: @requiresDependencyResolution x2

2008-07-16 Thread Brian E. Fox
You'll have to use requires... test and then filter based on the
effective scope. The dependency plugin does exactly this and the filters
are available in a maven-shared module.

-Original Message-
From: Edelson, Justin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 16, 2008 2:14 PM
To: users@maven.apache.org
Subject: @requiresDependencyResolution x2

I need to build a classpath which contains dependencies scoped in
compile, provided, and runtime. It looks like I need effectively to do
this:
@requiresDependencyResolution compile
@requiresDependencyResolution runtime

But that doesn't work. Only the first annotation is used. Is there a way
to make this work?

Thanks,
 
Justin Edelson
VP, Platform Engineering
MTV Networks Digital

-
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: dependency:copy-dependencies without a project

2008-07-16 Thread Barrie Treloar
On Wed, Jul 16, 2008 at 9:15 PM, Stefan Oestreicher
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> is there a way to fetch an artifact along with all its dependencies from a
> repository without a maven project?
>
> TIA,

Not that I am aware.

You only need a very basic pom to do this, why not create it?

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



Specifying an absolute path for SCM bootstrapping

2008-07-16 Thread hungryandrestless

Hi All,

I am trying to bootstrap an SVN project, but seem to be running into the
filename lenght limitation. The workaround seems to be specifying an
absolute name

 http://subversion.tigris.org/faq.html#long-paths  Long Paths FAQ 


To do this I am trying with the following bootstrapping pom file


   
scm:svn:http://java-1.diagonal-solutions.local/repos/homeoffice/
   
scm:svn:http://java-1.diagonal-solutions.local/repos/homeoffice/
http://java-1.diagonal-solutions.local/repos/homeoffice/
  
 
 



  
  

  
org.apache.maven.plugins
maven-scm-plugin
1.0

  install




  


This is somehow not doing the trick and on the commandline I keep getting 


C:\Build>mvn scm:bootstrap
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'scm'.
[INFO]

[INFO] Building Home Office Horizon Development
[INFO]task-segment: [scm:bootstrap] (aggregator-style)
[INFO]

[INFO] [scm:bootstrap]
[INFO] Removing C:\Build2
[INFO] Executing: svn --non-interactive checkout
http://dumdumdum/dumdumdum/dumdumdum/ Build2


Is there a way I can get to 

[INFO] Executing: svn --non-interactive checkout
http://dumdumdum/dumdumdum/dumdumdum/ C:\Build2

maybe ?

Any help really appreciated



-- 
View this message in context: 
http://www.nabble.com/Specifying-an-absolute-path-for-SCM-bootstrapping-tp18495026p18495026.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: MavenExectionException: Failed to validate POM for project

2008-07-16 Thread David Brown
Hello Geoffrey, thanks for the speedy and informative reply. I found the issue 
similar to what you suggested which I repeat here for posterity: the POM 
employs an external assembly (assembly.xml) please see snippet included below. 
The  element tag was empty which created the maven 
hickup. Putting in the (dot). fixed the issue. Thanks, David.


  
.
  



Geoffrey Wiseman wrote ..
> On Tue, Jul 15, 2008 at 6:22 PM, David Brown <[EMAIL PROTECTED]> wrote:
> 
> > Hello maven crowd, I had a POM that was working perfectly and w/o changing
> > anything I unexpectedly got the exception stated in the Subject line. Google
> > found nothing useful. I did not see this in the FAQ. The particulars follow.
> > TIA and please advise, David.
> 
> 
> Nothing preceded that message?  I believe that I've seen that before when I
> have, for instance, failed to put a version identifier in because I thought
> I had covered a dependency in the parent POM's dependency management
> section, but ... whenever that's happened, I got a message about the missing
> version, then later a message about he failed POM.
> 
>   - Geoffrey
> -- 
> Geoffrey Wiseman
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]



Re: newbie plugin developer questions..

2008-07-16 Thread Russ Tremain
I need a place to check it in.  I was thinking about checking it in on 
mojo.codehaus.org.
However, haven't been able to raise a response there following the procedures 
on http://mojo.codehaus.org
(which is basically just send an email to the dev list).

There are some other pages that say to submit a jira; so maybe I should try 
that.

thanks!
-Russ

At 1:21 PM -0400 7/16/08, Adam wrote:
>http://maven.apache.org/plugin-developers/index.html
>
>Or do you mean you have one done and would like to make it available?
>If so, you might want to have it somewhere like Sourceforge, and have
>your repository rsync'd with Ibiblio.
>
>On Wed, Jul 16, 2008 at 1:16 PM, Russ Tremain <[EMAIL PROTECTED]> wrote:
>> anyone know how to get started contributing a new plugin?
>>
>> tia,
>> -Russ
>>
>>
>>>Date: Fri, 11 Jul 2008 13:14:30 -0700
>>>From: Russ Tremain <[EMAIL PROTECTED]>
>>>Subject: [mojo-dev] newbie plugin developer questions..
>>>Sender: [EMAIL PROTECTED]
> >>To: [EMAIL PROTECTED]
>>>Reply-to: [EMAIL PROTECTED]
>>>Delivered-to: mailing list [EMAIL PROTECTED]
>>>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>>>List-Post: 
>>>List-Subscribe: 
>>>List-Unsubscribe: 
>>>List-Help: 
>>>List-Id: 
>>>Original-recipient: rfc822;[EMAIL PROTECTED]
>>>
>>>Hi,
>>>
>>>I've been developing a perl plugin toolkit, and I'm thinking about which 
>>>community
>>>I should contribute it to.
>>>
>>>Would this be a good site, and if so, how do I go about setting up a new 
>>>project?
>>>
>>>Also, is there another list more appropriate for questions like this 
>>>(developer help)?
>>>Most of the email on this list seems to be generated by JIRA automation.
>>>
>>>Many thanks,
>>>-Russ
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
>--
>Adam
>
>-
>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]



@requiresDependencyResolution x2

2008-07-16 Thread Edelson, Justin
I need to build a classpath which contains dependencies scoped in
compile, provided, and runtime. It looks like I need effectively to do
this:
@requiresDependencyResolution compile
@requiresDependencyResolution runtime

But that doesn't work. Only the first annotation is used. Is there a way
to make this work?

Thanks,
 
Justin Edelson
VP, Platform Engineering
MTV Networks Digital

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



Re: deployment of dependencies to company repository

2008-07-16 Thread Wendy Smoak
On Wed, Jul 16, 2008 at 9:19 AM, Fisher, Jonathan
<[EMAIL PROTECTED]> wrote:

> Is there an efficient way to deploy all the dependencies in a project's
> pom to the company repository? I don't have the desire to do this
> anymore:

We've had success using the Assembly plugin to build a repository
containing all of a project's dependencies, then scp'ing that up to
the repo server and overlaying it on the existing repo.

This will "break" the repository metadata by overwriting it, but
Archiva comes along and fixes it later.  (Plugins may need some
special attention-- deploy:deplo-file which doesn't get plugin
metadata right either.)

-- 
Wendy

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



Re: newbie plugin developer questions..

2008-07-16 Thread Adam
http://maven.apache.org/plugin-developers/index.html

Or do you mean you have one done and would like to make it available?
If so, you might want to have it somewhere like Sourceforge, and have
your repository rsync'd with Ibiblio.

On Wed, Jul 16, 2008 at 1:16 PM, Russ Tremain <[EMAIL PROTECTED]> wrote:
> anyone know how to get started contributing a new plugin?
>
> tia,
> -Russ
>
>
>>Date: Fri, 11 Jul 2008 13:14:30 -0700
>>From: Russ Tremain <[EMAIL PROTECTED]>
>>Subject: [mojo-dev] newbie plugin developer questions..
>>Sender: [EMAIL PROTECTED]
>>To: [EMAIL PROTECTED]
>>Reply-to: [EMAIL PROTECTED]
>>Delivered-to: mailing list [EMAIL PROTECTED]
>>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>>List-Post: 
>>List-Subscribe: 
>>List-Unsubscribe: 
>>List-Help: 
>>List-Id: 
>>Original-recipient: rfc822;[EMAIL PROTECTED]
>>
>>Hi,
>>
>>I've been developing a perl plugin toolkit, and I'm thinking about which 
>>community
>>I should contribute it to.
>>
>>Would this be a good site, and if so, how do I go about setting up a new 
>>project?
>>
>>Also, is there another list more appropriate for questions like this 
>>(developer help)?
>>Most of the email on this list seems to be generated by JIRA automation.
>>
>>Many thanks,
>>-Russ
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Adam

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



newbie plugin developer questions..

2008-07-16 Thread Russ Tremain
anyone know how to get started contributing a new plugin?

tia,
-Russ


>Date: Fri, 11 Jul 2008 13:14:30 -0700
>From: Russ Tremain <[EMAIL PROTECTED]>
>Subject: [mojo-dev] newbie plugin developer questions..
>Sender: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Reply-to: [EMAIL PROTECTED]
>Delivered-to: mailing list [EMAIL PROTECTED]
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>List-Post: 
>List-Subscribe: 
>List-Unsubscribe: 
>List-Help: 
>List-Id: 
>Original-recipient: rfc822;[EMAIL PROTECTED]
>
>Hi,
>
>I've been developing a perl plugin toolkit, and I'm thinking about which 
>community
>I should contribute it to.
>
>Would this be a good site, and if so, how do I go about setting up a new 
>project?
>
>Also, is there another list more appropriate for questions like this 
>(developer help)?
>Most of the email on this list seems to be generated by JIRA automation.
>
>Many thanks,
>-Russ


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



Re: deployment of dependencies to company repository

2008-07-16 Thread Andreas Gies

Hi

i think you are looking for something like archiva or the nexus 
repository proxy from http://www.sonatype.org



HTH
Andreas

Fisher, Jonathan schrieb:

Hey guys,
 
I've searched the mailing list, and I don't believe this has been asked.

We have a company wide maven repository.  We deploy our internal
projects to this server, and we cache their dependencies (hibernate,
spring, etc) there to speed up the build process (and reduce the
bandwidth bill from accessing maven central all the time).
 
Is there an efficient way to deploy all the dependencies in a project's

pom to the company repository? I don't have the desire to do this
anymore:
 
mvn deploy:deploy -file hibernatejarforexample.jar

-DgroupId=forexample.org.hibernate
-DartifactId=hibernate
-Dversion=3.2.6.ga
-Dfile=path-to-hibernate-for-example-pom.xml
-Dpackaging=pom
-DrepositoryId=MycompanysInternalRepoId
-Durl=http://internalrepo
 
...for each individual version of our 20 dependencies (junit, spring-*,

hibernate, ect). Any help or suggestions to improve our process would be
appreciated.
 
Thank you,
 
Jonathan Fisher

Software Developer
Argus Health Systems
Ext. 39530 Bus. 816-843-9530
 


PRIVILEGED AND CONFIDENTIAL
This email transmission contains privileged and confidential information 
intended only for the use of the individual or entity named above.  If the 
reader of the email is not the intended recipient or the employee or agent 
responsible for delivering it to the intended recipient, you are hereby 
notified that any use, dissemination or copying of this email transmission is 
strictly prohibited by the sender.  If you have received this transmission in 
error, please delete the email and immediately notify the sender via the email 
return address or mailto:[EMAIL PROTECTED]  Thank you.




  




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



Re: deployment of dependencies to company repository

2008-07-16 Thread Martijn Dashorst
Use a repository manager such as artifactory or archiva instead, and
let it download those dependencies for you. Or you can upload an
existing (local) repository to artifactory to seed the cache.

Martijn

On Wed, Jul 16, 2008 at 6:19 PM, Fisher, Jonathan
<[EMAIL PROTECTED]> wrote:
> Hey guys,
>
> I've searched the mailing list, and I don't believe this has been asked.
> We have a company wide maven repository.  We deploy our internal
> projects to this server, and we cache their dependencies (hibernate,
> spring, etc) there to speed up the build process (and reduce the
> bandwidth bill from accessing maven central all the time).
>
> Is there an efficient way to deploy all the dependencies in a project's
> pom to the company repository? I don't have the desire to do this
> anymore:
>
> mvn deploy:deploy -file hibernatejarforexample.jar
> -DgroupId=forexample.org.hibernate
> -DartifactId=hibernate
> -Dversion=3.2.6.ga
> -Dfile=path-to-hibernate-for-example-pom.xml
> -Dpackaging=pom
> -DrepositoryId=MycompanysInternalRepoId
> -Durl=http://internalrepo
>
> ...for each individual version of our 20 dependencies (junit, spring-*,
> hibernate, ect). Any help or suggestions to improve our process would be
> appreciated.
>
> Thank you,
>
> Jonathan Fisher
> Software Developer
> Argus Health Systems
> Ext. 39530 Bus. 816-843-9530
>
>
> PRIVILEGED AND CONFIDENTIAL
> This email transmission contains privileged and confidential information 
> intended only for the use of the individual or entity named above.  If the 
> reader of the email is not the intended recipient or the employee or agent 
> responsible for delivering it to the intended recipient, you are hereby 
> notified that any use, dissemination or copying of this email transmission is 
> strictly prohibited by the sender.  If you have received this transmission in 
> error, please delete the email and immediately notify the sender via the 
> email return address or mailto:[EMAIL PROTECTED]  Thank you.
>
>
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



deployment of dependencies to company repository

2008-07-16 Thread Fisher, Jonathan
Hey guys,
 
I've searched the mailing list, and I don't believe this has been asked.
We have a company wide maven repository.  We deploy our internal
projects to this server, and we cache their dependencies (hibernate,
spring, etc) there to speed up the build process (and reduce the
bandwidth bill from accessing maven central all the time).
 
Is there an efficient way to deploy all the dependencies in a project's
pom to the company repository? I don't have the desire to do this
anymore:
 
mvn deploy:deploy -file hibernatejarforexample.jar
-DgroupId=forexample.org.hibernate
-DartifactId=hibernate
-Dversion=3.2.6.ga
-Dfile=path-to-hibernate-for-example-pom.xml
-Dpackaging=pom
-DrepositoryId=MycompanysInternalRepoId
-Durl=http://internalrepo
 
...for each individual version of our 20 dependencies (junit, spring-*,
hibernate, ect). Any help or suggestions to improve our process would be
appreciated.
 
Thank you,
 
Jonathan Fisher
Software Developer
Argus Health Systems
Ext. 39530 Bus. 816-843-9530
 

PRIVILEGED AND CONFIDENTIAL
This email transmission contains privileged and confidential information 
intended only for the use of the individual or entity named above.  If the 
reader of the email is not the intended recipient or the employee or agent 
responsible for delivering it to the intended recipient, you are hereby 
notified that any use, dissemination or copying of this email transmission is 
strictly prohibited by the sender.  If you have received this transmission in 
error, please delete the email and immediately notify the sender via the email 
return address or mailto:[EMAIL PROTECTED]  Thank you.





RE: grouping dependencies with scope provided

2008-07-16 Thread Aino Andriessen
Hi Wendy, 

thanks for your quick response.

The 'import' scope is coming very close to what I want to achieve. It seems 
that it only applies to  `dependencyManagement' (both the main and the imported 
pom) and not to the dependencies. They still must be added to the dependencies 
section.

But I admit, it is already much better :-).

Ciao
  Aino



From: Wendy Smoak
Sent: Wed 7/16/2008 17:06
To: Maven Users List
Subject: Re: grouping dependencies with scope provided


On Wed, Jul 16, 2008 at 8:00 AM, Aino Andriessen
<[EMAIL PROTECTED]> wrote:

> Is there a way around or another way to group libraries / dependencies? 
> (except for excluding the specific jars in the war configuration).

Maven 2.0.9 introduced the 'import' scope, which may be what you're looking for.

-- 
Wendy

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


Loading different properties files

2008-07-16 Thread rundmsef


  I have used Mavens filtering mechanism to substitute test vs. production
properties in my packaged web application with no problem.  However, I would
like to be able to not only substitute values within the properties files,
but also substitute different versions of the properties files themselves.

  For example, I am using Spring Framework in my application.  I would like
the ability to package application-context-test.xml or
application-context-production.xml depending on my target environment.  Can
Maven support this concept, or am I thinking about this all wrong?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Loading-different-properties-files-tp18490253p18490253.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]



How to refer to the installation directory; how to create sym links

2008-07-16 Thread Ilyevsky, Leonid (Equity Trading)
I need to do some additional manipulations in the installation
directory, so I need to refer to the installation directory.
For example, my installation directory is
"/repo/com/mycompany/myproject/1.3.2". What property I can use in
pom.xml to refer to it?
Something like ${project.?}?

Related question: where can I find the list of all properties that I can
use in pom.xml in that fashion?

Another question I have: is there any plugin that can create symbolic
links (in unix)?
I have a C++ project that produces "so" library, using native plugin.
The artifact, of course, has a version number in its name. In unix, the
required style of installing shared libraries is: install a library with
version in the name, but also create a symbolic link to it.
I can write my own plugin to do that, but I wonder if it exists already.

Thanks in advance, 

Leonid


This message w/attachments (message) may be privileged, confidential or 
proprietary, and if you are not an intended recipient, please notify the 
sender, do not use or share it and delete it. Unless specifically indicated, 
this message is not an offer to sell or a solicitation of any investment 
products or other financial product or service, an official confirmation of any 
transaction, or an official statement of Merrill Lynch. Subject to applicable 
law, Merrill Lynch may monitor, review and retain e-communications (EC) 
traveling through its networks/systems. The laws of the country of each 
sender/recipient may impact the handling of EC, and EC may be archived, 
supervised and produced in countries other than the country in which you are 
located. This message cannot be guaranteed to be secure or error-free. This 
message is subject to terms available at the following link: 
http://www.ml.com/e-communications_terms/. By messaging with Merrill Lynch you 
consent to the foregoing.



Plugin FSMC+? statecharts to nusmv

2008-07-16 Thread wolfe
I just read in a paper the following about Maven (FSMC+, a Tool for the
Generation of Java Code from Statecharts):
FSMC+ is integrated in Maven [1], a freely available build
tool. The FSMC+ backend, thus can either be invoked from
the command line or integrated in the build process by using
some maven plugins we specifically developed.

I couldn't find anything about nusmv, statecharts or fsmc on the website,
so I just wanted to ask, if it is really available and if yes, how to
start it.

Thank you very much in advance!

Best regards, Elisabeth


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



Re: grouping dependencies with scope provided

2008-07-16 Thread Wendy Smoak
On Wed, Jul 16, 2008 at 8:00 AM, Aino Andriessen
<[EMAIL PROTECTED]> wrote:

> Is there a way around or another way to group libraries / dependencies? 
> (except for excluding the specific jars in the war configuration).

Maven 2.0.9 introduced the 'import' scope, which may be what you're looking for.

-- 
Wendy

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



grouping dependencies with scope provided

2008-07-16 Thread Aino Andriessen
Hi,

According to chapter 9.6.1 of the Sonatype 'Maven: The Definitive Guide', I 
bundled some libraries in a separate pom project, hoping that I could easily 
add them to my projects. Unfortunately some of the libraries have the 
'provided' scope (they are needed at compile time, but must not be included in 
the war file) and thus are not available at compile time, resulting in a build 
failure. (Indeed, as promised, they are also not included in the war).

I understand (chapter 9.4.1 of the same book) that this is the correct 
behaviour, but it is a nuisance.

I like the idea of grouping dependencies to make the pom files more 
comprehensibe, but the available solution is not suitable for us.

Is there a way around or another way to group libraries / dependencies? (except 
for excluding the specific jars in the war configuration).

Ciao
  Aino


Re: handling .jars not in public repositories?

2008-07-16 Thread Tom Huybrechts
I haven't tried it , but I think you could just use a POM packaging
(which only does install/deploy) and attach the jar with build-helper.

On Wed, Jul 16, 2008 at 11:14 AM, Stephen Connolly
<[EMAIL PROTECTED]> wrote:
> Yeah, I wish I knew how to disable the jar plugin... that's why I
> posted the antrun solution!
>
> On Wed, Jul 16, 2008 at 7:54 AM, Kristian Rink <[EMAIL PROTECTED]> wrote:
>> Stephen;
>>
>> and first off, thanks a bunch for your hints on that, much appreciated
>> (and indeed quite a bit enlightening):
>>
>> Stephen Connolly schrieb:
>> [...]
>>> 
>>>   
>>>   
>>> maven-antrun-plugin
>>> 
>>>   
>>> package
>>> 
>>>   run
>>> 
>>> 
>>>   
>>> >> file="${basedir}/src/main/jar/${pom.artifactId}-${pom.version}.jar"
>>>
>>> tofile="${basedir}/target/${pom.artifactId}-${pom.version}.jar"
>>>   overwrite="true"/>
>>>   
>>> 
>>>   
>>> 
>>>   
>>> 
>> [...]
>>> On Wed, Jul 16, 2008 at 7:45 AM, Stephen Connolly
>>> <[EMAIL PROTECTED]> wrote:
 I would do a simple trickery...

 disable the jar plugin and then use the build-helper plugin to attach
 the jar file.
>>
>> Is any of the two approaches to be preferred in the given use case?
>> Personally, from my current point of knowledge, though, I'd go for
>> antrun simply because so far I have never disabled a plugin in maven2
>> and am not sure I know how to get that done. ;)
>>
>> Cheers & thanks again,
>> Kristian
>>
>>
>> --
>> Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
>> jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 "One
>> dreaming alone, it will be only a dream; many dreaming together is the
>> beginning of a new reality." (Hundertwasser)
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



dependency:copy-dependencies without a project

2008-07-16 Thread Stefan Oestreicher
Hi,

is there a way to fetch an artifact along with all its dependencies from a
repository without a maven project?

TIA,
 
Stefan Oestreicher


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



Re: handling .jars not in public repositories?

2008-07-16 Thread Stephen Connolly
Yeah, I wish I knew how to disable the jar plugin... that's why I
posted the antrun solution!

On Wed, Jul 16, 2008 at 7:54 AM, Kristian Rink <[EMAIL PROTECTED]> wrote:
> Stephen;
>
> and first off, thanks a bunch for your hints on that, much appreciated
> (and indeed quite a bit enlightening):
>
> Stephen Connolly schrieb:
> [...]
>> 
>>   
>>   
>> maven-antrun-plugin
>> 
>>   
>> package
>> 
>>   run
>> 
>> 
>>   
>> > file="${basedir}/src/main/jar/${pom.artifactId}-${pom.version}.jar"
>>
>> tofile="${basedir}/target/${pom.artifactId}-${pom.version}.jar"
>>   overwrite="true"/>
>>   
>> 
>>   
>> 
>>   
>> 
> [...]
>> On Wed, Jul 16, 2008 at 7:45 AM, Stephen Connolly
>> <[EMAIL PROTECTED]> wrote:
>>> I would do a simple trickery...
>>>
>>> disable the jar plugin and then use the build-helper plugin to attach
>>> the jar file.
>
> Is any of the two approaches to be preferred in the given use case?
> Personally, from my current point of knowledge, though, I'd go for
> antrun simply because so far I have never disabled a plugin in maven2
> and am not sure I know how to get that done. ;)
>
> Cheers & thanks again,
> Kristian
>
>
> --
> Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
> jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 "One
> dreaming alone, it will be only a dream; many dreaming together is the
> beginning of a new reality." (Hundertwasser)
>
>
> -
> 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: Exclude .java files while compiling and packagin a .War file

2008-07-16 Thread anishab

Just to add to the post below, we are using Maven v 1.0.2

Thanks,
Anish

anishab wrote:
> 
> Hello,
> 
> I am trying to get rid of the source files (.java files) from the WAR file
> that is created my maven. Any ideas on how to accomplish this?
> 
> Any help is grealty appreciated.
> 
> Thanks,
> Anish
> 

-- 
View this message in context: 
http://www.nabble.com/Exclude-.java-files-while-compiling-and-packagin-a-.War-file-tp18482029p18482032.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]



Exclude .java files while compiling and packagin a .War file

2008-07-16 Thread anishab

Hello,

I am trying to get rid of the source files (.java files) from the WAR file
that is created my maven. Any ideas on how to accomplish this?

Any help is grealty appreciated.

Thanks,
Anish
-- 
View this message in context: 
http://www.nabble.com/Exclude-.java-files-while-compiling-and-packagin-a-.War-file-tp18482029p18482029.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]