NPE in maven-plugin-plugin-2.5.1

2009-11-18 Thread Sommers, Elizabeth
I finally got my plugin to compile and when I try to run it on a test
project I get this NPE dump.  Notice that none of this code is generated
by me. But is all part of the code that is parsing components.xml (I
think).  After the dump I am including the relevant part of my
component.xml.

 getDate is properly processed but resources never gets called.


All of this code worked with earlier (2.0.5 - 2.0.9) versions of maven
Any help will be appreciated.

Thanks
Liz


[INFO] Trace
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:394)
at java.util.Properties.setProperty(Properties.java:143)
at
org.apache.maven.project.ModelUtils.cloneProperties(ModelUtils.java:1264
)
at
org.apache.maven.project.ModelUtils.cloneModelBaseFields(ModelUtils.java
:318)
at
org.apache.maven.project.ModelUtils.cloneModel(ModelUtils.java:953)
at
org.apache.maven.project.DefaultMavenProjectBuilder.calculateConcreteSta
teInternal(DefaultMavenProjectBuilder.java:1855)
at
org.apache.maven.project.DefaultMavenProjectBuilder.calculateConcreteSta
te(DefaultMavenProjectBuilder.java:1814)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.calculateConcreteSta
te(DefaultLifecycleExecutor.java:795)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:591)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:556)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:535)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:180)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)







com.pragmatics.package-tools:maven-package-plugin:getDate



org.apache.maven.plugins:maven-resources-plugin:resources,

com.pragmatics.package-tools:maven-package-plugin:delete-bogus,

com.pragmatics.package-tools:maven-package-plugin:generate-segdocs,

com.pragmatics.package-tools:maven-package-plugin:prepare




...



Elizabeth Sommers
Build and Release Engineer
Pragmatics, Inc.
703.761.4033

www.pragmatics.com 

Practical. Reliable. Secure.

This e-mail message, including any attachments, is intended only for the
identified recipient(s). It may contain proprietary or otherwise legally
protected information of Pragmatics, Inc. Any unauthorized review, use,
copying, disclosure or distribution is strictly prohibited. If you have
received this communication in error and are not the intended recipient,
please immediately notify the sender of this message by reply e-mail and
delete or otherwise destroy the e-mail, attachments, and any copies.

 

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



Problem with running antscripts in a plugin

2009-11-17 Thread Sommers, Elizabeth
I have a plugin that was originally written for 2.0.5, but was happy
through 2.1.0.  We are now trying to upgrade to 2.2.1 and it is failing
miserably.  I upgraded the maven.plugin.plugin to be 2.2.1 and am now
able to compile the plugin.  Unfortunately, it no longer works.

I have two mojos that I wrote in ant.  They are called through the
lifecyclemapping defined in components.xml.  With 2.2.1 I get the error:

[INFO] Required goal not found:
com.pragmatics.package-tools:maven-package-plugin:package in
com.pragmatics.package-tools:maven-package-plugin:1.49-SNAPSHOT

This happens for both of the mojos that were written in ant.

Is there a new way of working with ant mojos in the 2.2.x series?  If
there is, where can I find information on it?

Elizabeth Sommers
Build and Release Engineer
Pragmatics, Inc.
703.761.4033

www.pragmatics.com 

Practical. Reliable. Secure.

This e-mail message, including any attachments, is intended only for the
identified recipient(s). It may contain proprietary or otherwise legally
protected information of Pragmatics, Inc. Any unauthorized review, use,
copying, disclosure or distribution is strictly prohibited. If you have
received this communication in error and are not the intended recipient,
please immediately notify the sender of this message by reply e-mail and
delete or otherwise destroy the e-mail, attachments, and any copies.

 

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



Database plugin

2009-02-27 Thread Sommers, Elizabeth

Before I reinvent the wheel, does anybody have a good plugin for JDBC?
I am going to be mining data from attached artifacts.  If anybody has
mavenized Scriptella it would be perfect.

Thanks

Liz Sommers
somme...@pragmatics.com
 

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



RE: [SPAM] RE: Maven deploy project on a server different from remote repo server

2009-02-02 Thread Sommers, Elizabeth
 I am doing something like this using dependency:unpack-dependencies at
the generate-resources phase.  This way I don't have to think about a
jar of jars or classpath.

-Original Message-
From: Brian E. Fox [mailto:bri...@reply.infinity.nu] 
Sent: Monday, February 02, 2009 12:19 PM
To: Maven Users List
Subject: [SPAM] RE: Maven deploy project on a server different from
remote repo server
Importance: Low

You could use the assembly plugin to produce a bundle with the
dependencies. Or you could patch something together with
dependency:copy-dependencies and dependency:build-classpath

-Original Message-
From: Qureshi,Shahzad [Ontario] [mailto:shahzad.qure...@ec.gc.ca]
Sent: Monday, February 02, 2009 11:26 AM
To: users@maven.apache.org
Subject: Maven deploy project on a server different from remote repo
server

Hi all,

Here is the situation. Our internal remote repository is on server1 and
my application that will require some of the jars sitting on the remote
repo is on server2. Now my application is in jar format (created using
maven) and is used by a web coldfusion based application. 

Now, do I simply figure out which dependencies my app requires and
manually put them somewhere on server2 and use the classpath way of
doing things to run this app or is there a better way to do this using
Maven?

I have been using Maven for a few months now and I understand how it
works but I am not sure what to do in this deployment scenario that I
mentioned above 

Any insights will be appreciated. Thank you

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


-
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: [SPAM] RE: Attaching artifacts

2008-12-04 Thread Sommers, Elizabeth
I am trying to deploy an .exe file to our repository.  I am willing to
build a simple jar to go with it and use jar packaging but I will still
need to attach the .exe file. 

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 04, 2008 11:45 AM
To: users@maven.apache.org
Subject: [SPAM] RE: Attaching artifacts
Importance: Low


If your Maven POJO is a representation of a goal then a qualified 'yes'
example located here
http://maven.apache.org/maven-1.x/plugins/artifact/examples.html
The bigger question is Why execute a build script with no associated
goal ?
Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and
Sender does not endorse distribution to any party other than intended
recipient. Sender does not necessarily endorse content contained within
this transmission. 




> Subject: Attaching artifacts
> Date: Thu, 4 Dec 2008 11:25:31 -0500
> From: [EMAIL PROTECTED]
> To: users@maven.apache.org
> 
> Is there anyway to attach an artifact without writing a mojo to do it?
> I would like to just do it with the pom if possible.
> 
> Liz Sommers
> [EMAIL PROTECTED]
>  
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
Send e-mail faster without improving your typing skills.
http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_spe
ed_122008

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



Attaching artifacts

2008-12-04 Thread Sommers, Elizabeth
Is there anyway to attach an artifact without writing a mojo to do it?
I would like to just do it with the pom if possible.

Liz Sommers
[EMAIL PROTECTED]
 

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



RE: Are we blocked by central Maven repo?

2008-09-26 Thread Sommers, Elizabeth
 
No, can't do it today.  We are in release week and I have all the
servers locked down into our cnfiguration.  I will be bringing up a new
version of artifactory over the weekend (hopefully) and will see if it
has something to do with artifactory versions.

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 26, 2008 12:15 PM
To: Maven Users List
Subject: Re: Are we blocked by central Maven repo?

Could you perhaps set up Nexus and see if it is having the same trouble,
or limited to Artifactory (which would be odd)?

Wayne

2008/9/26 Sommers, Elizabeth <[EMAIL PROTECTED]>:
>
> We are having the exact same problem with artifactory today.  Nobody
here has been a bad citizen.
>
> Liz
> [EMAIL PROTECTED]
>

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



RE: Are we blocked by central Maven repo?

2008-09-26 Thread Sommers, Elizabeth
 
We are having the exact same problem with artifactory today.  Nobody here has 
been a bad citizen.

Liz
[EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 26, 2008 11:47 AM
To: Maven Users List
Subject: Re: Are we blocked by central Maven repo?

we didn't do that kind of thing. we have a company-level artifactory 
repository.someone didn't follow the rule but most of us are good citizen, and 
follow the maven RULE, Is maven block strategy to block IP  too strict?
Can I do anything to Fix it Up?



2008/9/26 Wayne Fay <[EMAIL PROTECTED]>

> It is possible to get blocked if you are acting as a bad citizen 
> (downloading the entire Central repo using wget, for example). Have 
> you (or someone else at your company) attempted to do this from your 
> IP address?
>
> If not, the repo is probably just busy, or you had some random 
> Internet connection failure. Try again. "Normal" Maven usage of the 
> repo will not get you blocked.
>
> Wayne
>
> On Fri, Sep 26, 2008 at 7:37 AM, 陈思淼 <[EMAIL PROTECTED]> wrote:
> > This's log from artifactory.
> >
> > 2008-09-26 22:27:28,025 [WARN ] (RemoteRepoBase.java:259{10}) -
> repo1:
> > Error in getting information for 'org/apache/maven 
> > /maven-model/2.0.4/maven-model-2.0.4.pom.sha1'
> > (org.apache.commons.httpclient.ConnectionPoolTimeoutException: 
> > Timeout waiting  for connection).
> >
> > we company only have one outlet IP address ,someone may download 
> > Maven
> from
> > apache and didn't set the Mirror of central in the conf/setting.xml. 
> > so
> they
> > download the pom directly from central? Is that the reason why the
> central
> > repo block our IP address?
> >
>

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



RE: Release fails during SVN commit

2008-08-25 Thread Sommers, Elizabeth
Some of my users are having the same problem.  I think it has to do with
the svn 1.5 client. 

Liz Sommers
[EMAIL PROTECTED]


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



RE: continuous integration server

2008-04-16 Thread Sommers, Elizabeth
I run an instance for TDD.  I run another instance for build and release
(proprietary maven plugins).  I run another instance for delivery (more
maven plugins). I then run metrics (yet more plugins) on two instances.
All together I run 8 instances on 4 different machines.  Works well for
us and got us to CMMI level 4 while still working agile. 

-Original Message-
From: Gregory Kick [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 15, 2008 2:08 PM
To: Maven Users List
Subject: Re: continuous integration server

@Liz

Just out of curiosity, why would you want to be running multiple
instances?

On Tue, Apr 15, 2008 at 12:13 PM, Sommers, Elizabeth
<[EMAIL PROTECTED]> wrote:
> I use Vulcan.  I like the fact that I can run multiple instances of it

> in the same tomcat.  It also does everything I need in a CI server.
>
>  http://code.google.com/p/vulcan/
>
>  Liz Sommers
>  [EMAIL PROTECTED]
>
>
>
>
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>



--
Gregory Kick
http://kickstyle.net/

-
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: continuous integration server

2008-04-15 Thread Sommers, Elizabeth
I use Vulcan.  I like the fact that I can run multiple instances of it
in the same tomcat.  It also does everything I need in a CI server.

http://code.google.com/p/vulcan/

Liz Sommers
[EMAIL PROTECTED] 




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



RE: I want to run install even if my tests fail

2008-04-02 Thread Sommers, Elizabeth
Won't work because I want to run the tests (I am trying to attach
cobertura data).  I am looking for a property I can set at build time
that allows me to ignore failed tests and just continue to install. 

-Original Message-
From: Siarhei Dudzin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 02, 2008 2:11 PM
To: Maven Users List
Subject: Re: I want to run install even if my tests fail

or 'mvn install -Dmaven.test.skip=true'

Siarhei

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



I want to run install even if my tests fail

2008-04-02 Thread Sommers, Elizabeth

Is there any way to do this?  And, yes, I know that it is a bad thing to
do but I need to attach some artifacts whether or not the tests have
failed.

Liz Sommers
[EMAIL PROTECTED]
 

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



RE: Resolving an artifact (plugin problem)

2008-03-25 Thread Sommers, Elizabeth

Yes, artifactory the maven2 proxy software.

I am trying to retrieve a number of artifacts from our release
repository.  I cannot guarantee that the artifacts are in the local
repository (I can almost guarantee they aren't).  I then need to resolve
these artifacts and retrieve their attached artifacts.  This is easy to
do if you have the artifacts in the local repository.  Our artifactory
repository does not show up in project.getRemoteArtifactRepositories().
I have a couple of other things I can and will try, but I was hoping
that somebody else had already solved the problem.


The distribution management we use for our projects is
 


snapshots

dav:http://redcat:8081/artifactory/libs-snapshots


releases

dav:http://redcat:8081/artifactory/libs-releases



redcat

scpexe://10.20.20.15/var/maven/sites





-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 25, 2008 12:38 PM
To: Maven Users List
Subject: Re: Resolving an artifact (plugin problem)

Artifactory, as in the Maven2 proxy software?

I guess I don't understand your question. Can you explain more? What
exactly is the problem you're running into that prompts this email?

Wayne

On 3/25/08, Sommers, Elizabeth <[EMAIL PROTECTED]> wrote:
> Is there anyway to resolve an artifact when the only repository you 
> should be able to find it in is artifactory? There is no chance that 
> the artifact will be in my local repository and the same goes for 
> remote repositories (we are deploying our projects straight to
artifactory).
>
> Thanks in advance for any help.
>
> Liz Sommers
> [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]



Resolving an artifact (plugin problem)

2008-03-25 Thread Sommers, Elizabeth
Is there anyway to resolve an artifact when the only repository you
should be able to find it in is artifactory? There is no chance that the
artifact will be in my local repository and the same goes for remote
repositories (we are deploying our projects straight to artifactory).

Thanks in advance for any help.

Liz Sommers
[EMAIL PROTECTED]
 

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



RE: [ANN] Maven Eclipse Plugin 2.5 Released

2008-03-18 Thread Sommers, Elizabeth
We are also getting this behavior maven 2.0.8 windows XP.

Liz Sommers
[EMAIL PROTECTED]


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



RE: Why Maven is Hard?

2007-09-26 Thread Sommers, Elizabeth


-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
What I want is an active mailing list for plugin developers.  I have
written too many plugins with less than stellar testing harnesses and
tools.  The developers' mailing list is not the right place to discuss
plugins.

I think that maven itself has got pretty stable.  The problem is that
the plugins are NOT stable and vary in quality.

I have now written more ant and maven than I care to think about (I am a
build/release engineer).  I know there are things I have found that
other people might be interested in.  I know that other people have
solved other problems.  I would like to be discussing these solutions in
a forum where I am not boring either new users or the developers.

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



Attaching artifacts from a reporting plugin

2007-09-19 Thread Sommers, Elizabeth

Is there any way to attach an artifact (or define an artifact) from a reporting 
plugin?  It is simple enough to do in a build plugin, but I cannot figure out 
how to do it from a report plugin.

helper.attachArtifact(project,"zip","siteReport",coeOutputFile);

and

project.getArtifact().setFile(coeOutputFile);

both seem to be ignored when the plugin is run.

Thanks
Liz Sommers
[EMAIL PROTECTED]



ClassLoader

2007-09-17 Thread Sommers, Elizabeth

I want to move an ant task to a maven plugin.  In order to do this I need a 
maven analog for ant.ClassPathUtils.  I am using the 
getClassLoaderForPath(project,classpath) method.

Does anybody know of an analog for this in the maven code?

Thanks
Liz
[EMAIL PROTECTED]



maven-dependency-tree

2007-08-09 Thread Sommers, Elizabeth
Where is the scm for this module?

Thanks
Liz Sommers
[EMAIL PROTECTED]



artifact class question

2007-08-07 Thread Sommers, Elizabeth
I am writing a plugin and I need to get the scm information out of the 
artifact.   There does not seem to be a getter for this information in the 
artifact class.  How do I get this info?

Thanks
Liz Sommers
[EMAIL PROTECTED]


RE: Running Maven commands with CRON

2007-07-20 Thread Sommers, Elizabeth
You might do better using a good CI tool like Vulcan.  I am not saying you 
can't do this with cron, but there are tools around that do just this.
http://code.google.com/p/vulcan/

Liz Sommers
[EMAIL PROTECTED]


-Original Message-
From: Chris Russell [mailto:[EMAIL PROTECTED]
Sent: Friday, July 20, 2007 2:30 PM
To: Maven Users List
Subject: Running Maven commands with CRON


Hello,

I'm trying to run the following script with CRON:
# set up some environment vars to make things more readable
. /home/maven/metalink3/setupVars.sh

/u02/webapps/orihttp/apache/maven-2.0.4/bin/mvn site:site

This runs fine when I run it from the command line. But when CRON runs 
it I get:
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'site'.
[INFO] 

[INFO] Building Maven Default Project
[INFO]task-segment: [site:site]
[INFO] 

[INFO] Setting property: classpath.resource.loader.class => 
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] Cannot execute mojo: site. It requires a project with an existing 
pom.xml, but the build is not using one.

It seems when running from CRON Maven can't find the pom file.

Is there a way to specify the location of the top level pom via that 
command line?

Thanks in advance,
Chris


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



RE: Web Interface for making Maven based releases

2007-06-20 Thread Sommers, Elizabeth
You might want to look at Vulcan.  It doesn't do all of this, but it does a 
good deal of it.
http://code.google.com/p/vulcan/

Liz Sommers
[EMAIL PROTECTED]

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



Tests in maven-project-info-reports-plugin

2007-06-07 Thread Sommers, Elizabeth

We want to add a link to the scm/connection to the dependency report for each 
dependency we can get this information on.  I think I have a good handle on 
this but any hints would be appreciated, especially if somebody can suggest a 
way to replace one of the configurable classes rather than write a whole new 
plugin.

What I need to know now is why the tests are excluded in the 
maven-project-info-reports-plugin pom and how to go about testing the original 
plugin (so that I can then extend it to my new plugin).  I have googled and see 
no discussion of why the tests were excluded or how this plugin is tested.

Thanks
Liz Sommers
[EMAIL PROTECTED]



Testing plugins

2007-04-23 Thread Sommers, Elizabeth

I am using the maven-plugin-testing-harness for general unit-testing of my 
plugins, but I find that I need something to test how I am processing 
dependencies.  Does anybody have a good strategy for unit-testing behavior that 
depends on the dependencies?

Thanks
Liz
[EMAIL PROTECTED]



List for plugin developer?

2007-04-19 Thread Sommers, Elizabeth

Is there any list for plugin developers?  I find myself writing more and more 
plugins of increasing complexity and would love to have somebody to discuss 
them with.

Thanks

Liz
Liz Sommers
[EMAIL PROTECTED]



RE: Goal

2007-04-17 Thread Sommers, Elizabeth
try configuring the maven plugin (in vulcan) to run 
test site:site

This works for us for the most part, but your tests will run more than once.


-Original Message-
From: Mario Roman [mailto:[EMAIL PROTECTED]
Sent: Monday, April 16, 2007 1:46 PM
To: users@maven.apache.org
Subject: Goal


Hi all,
 I using Maven2 with Vulcan (http://code.google.com/p/vulcan/). I want
to run my project test and generate the surefire report, so I configured
Vulcan to run de following goals

- test surefire:report

this works fine if no test fail, but if a test fail then the surefire:report
goal do not execute. So I don´t get the reports.

If I configure the goal just with

- surefire:report

The goal executes ok, so Vulcan puts a big "Pass" (the test fail, but the
reports are generated :P ).
What I want, is to generate my test reports always (no matter if the fail or
not), but to inform the real state of my test.

Does anyone can help me?

bye.

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



RE: Maven users in the industry

2007-04-12 Thread Sommers, Elizabeth

You say make isn't needed anymore.  Does this mean that there is a maven plugin 
for C++ (I have to come up with some continuous integration system for C++ this 
month).
-Original Message-
From: Barrie Treloar [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 12, 2007 2:25 AM
To: Maven Users List; [EMAIL PROTECTED]
Subject: Re: Maven users in the industry


On 4/12/07, Erez Nahir <[EMAIL PROTECTED]> wrote:
> Here in Cisco we use Maven2.
> If you can, when your presentation is ready, please share it, we still
> have some resistance from old make/ant supporters...

How can there be resistance?
Once you get things up and running m2 is so much more simpler to
maintain/manage.

Ant still has it's place for scripting things outside the build lifecylce.
Make definitely isn't needed anymore.

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



Zipping up attached artifacts

2007-03-29 Thread Sommers, Elizabeth

I am building a collection of metrics that are to be attached to my install (I 
have been using the MavenProjectHelper class to do this).

helper.attachArtifact( project, "xml",  "coverage", coeCoverageFile );

This worked fine for just one metric, but I now have two different metrics and 
I would like to zip them up together rather than start muddying up my 
repository.  I also need a way for maven to unzip these files programatically 
in another plugin in order to do company-wide aggregations of data.

I know there must be some way of doing this, I just am not sure how to go about 
it.  Any clues would be appreciated.

Thanks
Liz
[EMAIL PROTECTED]

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



dependency plugin

2007-03-13 Thread Sommers, Elizabeth

We woke up this morning to find that the dependency plugin was changed on 
3/12/07.  We wouldn't have noticed except that we got the error below.
We solved our problem by versioning the plugin in our pom to 2.0-alpha-1 , but 
I figure others might be running into this today.

Thanks
Liz
[EMAIL PROTECTED]

-
this realm = 
app0.child-container[org.apache.maven.plugins:maven-dependency-plugin]
urls[0] = 
file:/c:/SB/.m2/repository/org/apache/maven/plugins/maven-dependency-plugin/2.0-alpha-2/maven-dependency-plugin-2.0-alpha-
2.jar
Number of imports: 0


this realm = plexus.core.maven
urls[0] = file:/c:/opt/maven2/lib/commons-cli-1.0.jar
urls[1] = file:/c:/opt/maven2/lib/doxia-sink-api-1.0-alpha-7.jar
urls[2] = file:/c:/opt/maven2/lib/jsch-0.1.24.jar
urls[3] = file:/c:/opt/maven2/lib/maven-artifact-2.0.4.jar
urls[4] = file:/c:/opt/maven2/lib/maven-artifact-manager-2.0.4.jar
urls[5] = file:/c:/opt/maven2/lib/maven-core-2.0.4.jar
urls[6] = file:/c:/opt/maven2/lib/maven-error-diagnostics-2.0.4.jar
urls[7] = file:/c:/opt/maven2/lib/maven-model-2.0.4.jar
urls[8] = file:/c:/opt/maven2/lib/maven-monitor-2.0.4.jar
urls[9] = file:/c:/opt/maven2/lib/maven-plugin-api-2.0.4.jar
urls[10] = file:/c:/opt/maven2/lib/maven-plugin-descriptor-2.0.4.jar
urls[11] = file:/c:/opt/maven2/lib/maven-plugin-parameter-documenter-2.0.4.jar
urls[12] = file:/c:/opt/maven2/lib/maven-plugin-registry-2.0.4.jar
urls[13] = file:/c:/opt/maven2/lib/maven-profile-2.0.4.jar
urls[14] = file:/c:/opt/maven2/lib/maven-project-2.0.4.jar
urls[15] = file:/c:/opt/maven2/lib/maven-reporting-api-2.0.4.jar
urls[16] = file:/c:/opt/maven2/lib/maven-repository-metadata-2.0.4.jar
urls[17] = file:/c:/opt/maven2/lib/maven-settings-2.0.4.jar
urls[18] = file:/c:/opt/maven2/lib/plexus-interactivity-api-1.0-alpha-4.jar
urls[19] = file:/c:/opt/maven2/lib/wagon-file-1.0-alpha-7.jar
urls[20] = file:/c:/opt/maven2/lib/wagon-http-lightweight-1.0-alpha-6.jar
urls[21] = file:/c:/opt/maven2/lib/wagon-provider-api-1.0-alpha-6.jar
urls[22] = file:/c:/opt/maven2/lib/wagon-ssh-1.0-alpha-7.jar
urls[23] = file:/c:/opt/maven2/lib/wagon-ssh-external-1.0-alpha-6.jar
Number of imports: 0


this realm = plexus.core
urls[0] = file:/c:/opt/maven2/core/plexus-container-default-1.0-alpha-9.jar
urls[1] = file:/c:/opt/maven2/core/plexus-utils-1.1.jar
Number of imports: 0
-
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Internal error in the plugin manager executing goal 
'org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-2:unpack': Un
able to find the mojo 
'org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-2:unpack' in the 
plugin 'org.apache.maven.plugins:
maven-dependency-plugin'
org/codehaus/plexus/archiver/ArchiverException


Problems with maven-surefire-reports-plugin

2007-01-23 Thread Sommers, Elizabeth
We have about a dozen projects that run this plugin fine.  Unfortunatly, one is 
failing with a java heap space error.  Our suspicion is because there are 1399 
classes and 3522 tests, we may have simply overwhelmed the plugin.  Many of 
these classes are inner classes (this is a swing project).

Has anybody else seen a problem like this and if you have, what have you done 
about it?  There is a finite limit to the amount of memory I can allocate for 
java.  

Thanks
Liz Sommers
[EMAIL PROTECTED]



RE: jar signing - the good and the bad

2007-01-10 Thread Sommers, Elizabeth
I am signing my jar this way.  Works just fine for me.


maven-jar-plugin

 
unsigned/${project.build.finalName}




sign




${basedir}/jarSignerKeystore/keystore
tomcat

changeit


${project.build.directory}/unsigned/${project.build.finalName}.${project.packaging}



${project.build.directory}/${project.build.finalName}.jar
true








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



dependency plugin

2006-12-18 Thread Sommers, Elizabeth

I have just spent a lot of time trying to get the dependency-maven-plugin to 
excludeScope, or if that won't work - to excludeTransitive.  Neither work.  
Using a simple  didn't work either.

When I try to use the maven-dependency-plugin I get the 

The plugin 'org.apache.maven.plugins:maven-dependency-plugin' does not exist or 
no valid version could be found

 error

Where can I find a WORKING version of this plugin?  I need to unpack this 
beast, but I don't want every transitive dependency that is offered me.

Thanks
Liz
[EMAIL PROTECTED]



RE: maven-dependency-plugin

2006-12-13 Thread Sommers, Elizabeth
Fantastic.

I know it is not in there now, but would it be possible to have an  
tag for unpack-dependencies.  I am running into problems when I don't want to 
unpack a transitive dependency.

Thanks
Liz Sommers

-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 12, 2006 8:19 PM
To: Maven Users List
Subject: RE: maven-dependency-plugin


The plugin did get moved from mojo to apache but the apache version hasn't been 
released yet. It's nearly ready, just waiting on some other releases to get out 
so we can comply with the new apache licensing guidelines.


-Original Message-
From: Andrés Viedma [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 12, 2006 7:21 PM
To: Maven Users List
Subject: Re: maven-dependency-plugin

2006/12/13, Sommers, Elizabeth <[EMAIL PROTECTED]>:
>
>
> If the documentation is correct, this is exactly what I need.  BUT - 
> it doesn't seem to exist in the ibiblio repository.  Why isn't this 
> plugin available?  Where can I find it?


As far as I know, it hasn't been released yet. You can get the sources from the 
subversion repository.

On the other hand, there's a "dependency-maven-plugin" from codehaus (in 
opposite to "maven-dependency-plugin"), which might be useful for you
meanwhile:

http://mojo.codehaus.org/dependency-maven-plugin/

dependency-maven-plugin
org.codehaus.mojo

I think this plug-in is indeed the same, and it will be overridden by the 
newer, hosted by apache.

Andrés


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



maven-dependency-plugin

2006-12-12 Thread Sommers, Elizabeth

If the documentation is correct, this is exactly what I need.  BUT - it doesn't 
seem to exist in the ibiblio repository.  Why isn't this plugin available?  
Where can I find it?

Liz Sommers
[EMAIL PROTECTED]

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



replace surefire with ant task

2006-11-03 Thread Sommers, Elizabeth

I want to replace the surefire tests with the ant junit tests.  I also want to 
run ant junitreport instead of the surefire report.  Does anybody have a way to 
do this?  Many of our tests won't run under surefire, others fail when they 
shouldn't. Excluding tests is not an option.

Thanks
Liz Sommers
[EMAIL PROTECTED]



Failing unit tests

2006-11-02 Thread Sommers, Elizabeth
I am considering moving extensive ant build scripts into maven 2.  
Unfortunately, some of my unit tests are failing under the surefire plugin.  Is 
there anyway I can see what system properties the plugin is using?

Also, and related to this, how do I run the ant unit test task inside of mvn?

Thanks so much

Liz Sommers
[EMAIL PROTECTED]



War

2006-01-24 Thread Sommers, Elizabeth

I want to use the maven war plugin on a non-compliant (to maven2) directory
setup.  I think that the configuration takes place in the pom.xml - but I
have no idea how this needs to be configured.

Any help will be appreciated.

Thanks
liz sommers
[EMAIL PROTECTED]



 
http://www.pragmatics.com 

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