Re: Error getting POM

2006-10-03 Thread Jeff Mutonho

On 10/2/06, Jeff Mutonho <[EMAIL PROTECTED]> wrote:




On 10/2/06, Jeff Mutonho <[EMAIL PROTECTED]> wrote:
>
> My projects were building  without issues and just out of the blue the
> builds are failing with the message :
>
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: org.codehaus.cargo:cargo-ant
>
> Reason: Error getting POM for ' org.codehaus.cargo:cargo-ant' from the
> repository
> : Error transferring file
>   org.codehaus.cargo:cargo-ant:pom:0.8
>
> from the specified remote repositories:
>   central ( http://repo1.maven.org/maven2)
>
>
>
> I haven't touched anything this side.What's going on?
>
>
> --
>
>
>
I just tried a build from a different sub-module and got a similar error ,
but this time for the hibernate pom
as shown below :


[INFO]
--
--
[ERROR] BUILD ERROR
[INFO]
--
--
[INFO] Error building POM (may not be this project's POM).


Project ID: net.sf.hibernate2:hibernate

Reason: Error getting POM for 'net.sf.hibernate2:hibernate' from the
repository:
 Error transferring file
 net.sf.hibernate2:hibernate:pom:2.0.0

from the specified remote repositories:
 central (http://repo1.maven.org/maven2
 )



[INFO]


What's strange about the hibernate pom is that I installed the hibernate
jar manually , why is maven trying to get  it from repo1.maven.org/maeven2
?
--



I'm still stuck with this problem.I've tried doing a 'mvn clean' from the
top-level pom , but I'm still getting the same error message.Any ideas?


--


Jeff  Mutonho

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042


SV: Can Testcompile and compile have different target/source configurations?

2006-10-03 Thread Naess, Ronny
I am not sure if I understand what you want.

You have src/main/java vs src/test/java 
And src/main/resources/ vs src/test/resources

Likevise output target/classes (main) vs target/test-classes

Is this not what you want? You want to change these to something else?
In that case check
http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html,
http://maven.apache.org/plugins/maven-compiler-plugin/testCompile-mojo.h
tml. Change compileSourceRoots  and outputDirectory to satisfy your
needs.

-Ronny  

-Opprinnelig melding-
Fra: Brian E. Fox [mailto:[EMAIL PROTECTED] 
Sendt: 4. oktober 2006 00:36
Til: Maven Users List
Emne: Can Testcompile and compile have different target/source
configurations?

I need to set a different source/target configuration for testcompile
and compile. They are separate goals, but it's not apparently possible
to set goal specific configuration without another execution. Is there
some way to do this?


!DSPAM:4522e603144722988016950!

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



Re: [M2] Anyone know of a Canoo Webtest Plugin

2006-10-03 Thread dan tran

love to see one.  You may want to ping Canoo to write one for us ? ;-)

-D


On 10/3/06, Peter Anning <[EMAIL PROTECTED]> wrote:


Hi,



Does anyone know of any work being done to develop a Canoo Webtest
plugin for Maven 2



Cheers



Peter Anning

Sr Software Engineer







[M2] Anyone know of a Canoo Webtest Plugin

2006-10-03 Thread Peter Anning
Hi,

 

Does anyone know of any work being done to develop a Canoo Webtest
plugin for Maven 2

 

Cheers

 

Peter Anning

Sr Software Engineer

 



SV: Maven, Eclipse, & Junit

2006-10-03 Thread Naess, Ronny
In Eclipse you must ensure that src/test/resources is moved in front of
src/main/resources.

Project properties -> Java Build Path -> Order and Export

-Ronny

-Opprinnelig melding-
Fra: Douglas Ferguson [mailto:[EMAIL PROTECTED] 
Sendt: 3. oktober 2006 21:56
Til: users
Emne: Maven, Eclipse, & Junit

When running unit tests from eclipse I can't resolve my test resources
because they are placed in test-classes.

 

How have folks dealt with this?

 

I know this is off topic ( if you know of a good forum please point me),
but is there a way to run 1 test method from a test case using eclipse,
like idea does?

 

D-




!DSPAM:4522c04922612984811091!

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



RE: [M2] Overriding the Central Repository not working

2006-10-03 Thread Peter Anning
Afaid not this URL works fine once I have seeded the local repository
with org.apache.maven artifacts. That is to say other non maven plugins
and artifact are successfully downloaded from this respository
configured with this URL.

I have also tried a http: based repository with the exact same effect.

Peter

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 4 October 2006 2:49 PM
To: Maven Users List
Subject: Re: [M2] Overriding the Central Repository not working

At first glance, those urls look completely wrong:
> file:///\\fileServer01/repository

Rather than playing with file:// until you make it work, can you
perhaps set up a simple Apache (or IIS) instance on top of the network
repo and use the standard HTTP:// reference to the repo? I'd suspect
this is the source of your problem(s) right now.

Also, I'd recommend you look into a Maven Proxy like Proximity rather
than continuing with your current approach. In the long term I think
you'll be much happier and work less with a solution like Promixity.

Wayne

On 10/3/06, Peter Anning <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
>
> Maven 2.0.4
>
>
>
> We are trying to prevent any users from accessing the central
repository
> by providing a controlled internal corporate repository.
>
>
>
> I do a build with a vanilla settings.xml add any stuff I need to my
> local repository by hand. Then make a network copy of the local
> repository delete my local repository and then my troubles start.
>
>
>
> Reading a number of posts this should be as simple as creating a
> definition in the settings.xml (or in the POM) for repositories
>
>
>
> 
>
> . . .
>
>
>
>
>
>
>
>true
>
>
>
>
>
>
>
>
>
>
false
>
>
> never
>
>
> fail
>
>
>
>test
>
>Dialect Central
>
>file:///\\
> fileServer01/repository
>
>
>
>
>
>
>
>
>
>
>
>
>
>
false
>
>
>
>
>
>
>
>
>
>
false
>
>
> never
>
>
> fail
>
>
>
>central
>
>Dialect Central
>
>
> file:///\\fileServer01/repository
>
>
>
>
>
>
>
> . . .
>
> 
>
>
>
> However this does not work Maven seems to get quite confused if it
does
> not find a real central Repository.
>
>
>
> I have tried to get it working by defining a mirror of central
>
>
>
> 
>
> . . .
>
>  
>
>
>
>  mirror-maven-central
>
>  central
>
>  Local Override For Maven Central Repository
>
>  file:///\\fileServer01\repository\
>
>
>
>
>
>  
>
> . . .
>
> 
>
>
>
> This seems to have problems not finding maven-resources-plugin but it
is
> there in the network repository (which is just a copy of local) before
I
> tear all my hair out has anyone else had any similar problems.
>
>
>
>
>
> Peter Anning
>
> Sr Software Engineer
>
>
>

-
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: [M2] Overriding the Central Repository not working

2006-10-03 Thread Wayne Fay

At first glance, those urls look completely wrong:

file:///\\fileServer01/repository


Rather than playing with file:// until you make it work, can you
perhaps set up a simple Apache (or IIS) instance on top of the network
repo and use the standard HTTP:// reference to the repo? I'd suspect
this is the source of your problem(s) right now.

Also, I'd recommend you look into a Maven Proxy like Proximity rather
than continuing with your current approach. In the long term I think
you'll be much happier and work less with a solution like Promixity.

Wayne

On 10/3/06, Peter Anning <[EMAIL PROTECTED]> wrote:

Hi,



Maven 2.0.4



We are trying to prevent any users from accessing the central repository
by providing a controlled internal corporate repository.



I do a build with a vanilla settings.xml add any stuff I need to my
local repository by hand. Then make a network copy of the local
repository delete my local repository and then my troubles start.



Reading a number of posts this should be as simple as creating a
definition in the settings.xml (or in the POM) for repositories





. . .

   

   

   

   true

   

   

   

   

   false


never


fail

   

   test

   Dialect Central

   file:///\\
fileServer01/repository

   

   

   

   

   

   

   false

   

   

   

   

   false


never


fail

   

   central

   Dialect Central


file:///\\fileServer01/repository

   

   

   

. . .





However this does not work Maven seems to get quite confused if it does
not find a real central Repository.



I have tried to get it working by defining a mirror of central





. . .

 

   

 mirror-maven-central

 central

 Local Override For Maven Central Repository

 file:///\\fileServer01\repository\

   



 

. . .





This seems to have problems not finding maven-resources-plugin but it is
there in the network repository (which is just a copy of local) before I
tear all my hair out has anyone else had any similar problems.





Peter Anning

Sr Software Engineer





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



[M2] Overriding the Central Repository not working

2006-10-03 Thread Peter Anning
Hi,

 

Maven 2.0.4

 

We are trying to prevent any users from accessing the central repository
by providing a controlled internal corporate repository.

 

I do a build with a vanilla settings.xml add any stuff I need to my
local repository by hand. Then make a network copy of the local
repository delete my local repository and then my troubles start.

 

Reading a number of posts this should be as simple as creating a
definition in the settings.xml (or in the POM) for repositories

 



. . .







true









false

 
never

 
fail



test

Dialect Central

file:///\\
fileServer01/repository













false









false

 
never

 
fail



central

Dialect Central

 
file:///\\fileServer01/repository







. . . 



 

However this does not work Maven seems to get quite confused if it does
not find a real central Repository.

 

I have tried to get it working by defining a mirror of central

 



. . . 

  



  mirror-maven-central

  central

  Local Override For Maven Central Repository

  file:///\\fileServer01\repository\



 

  

. . . 



 

This seems to have problems not finding maven-resources-plugin but it is
there in the network repository (which is just a copy of local) before I
tear all my hair out has anyone else had any similar problems.

 

 

Peter Anning

Sr Software Engineer



release plugin failed to authenticate

2006-10-03 Thread Manuel Ledesma
I'm using scpexe and my private key is at my ${home}/.m2/settings.xml, Maven
is able deploy without prompting for password but if I tried the
release:perform it just hangs at "The authenticity of host
'www.whatever.com' can't be established", it looks like is not using scpexe
to release the jars. The same problem happens if I using scp of sftp to
deploy the artifacts. The release version I'm using is 2.0-beta-4. 
 
I Googled the problem, the solution I found was that I need to create the
.ssh directory to avoid the msg, but it did not work for me. I can ssh, scp
to the system without problem. But release perform does not work for me,
either scp or sftp. Could be really helpful if I can use scp or sftp, they
seems to be faster than scpexe.

 



Re: Reproducing maven builds versus auto updating maven

2006-10-03 Thread Marilyn Sander -X \(marilysa - Digital-X, Inc. at Cisco\)
Hi, everyone.
 
I'm new to this list, and learning maven.  On September 1 there was a thread
about reproducing Maven builds, and the thread petered out.  I have the same
question.  The thread is below, after my sig.
 
The last comment was that you should be able to just keep a copy of your
localRepository and use that to re-create a build at any time in the future.
Well, that's what I thought, too, but it does not seem to be true.  With the
repository setup we have here, I end up with snapshots of plugins, and those
snapshots are not recognized as valid by maven.  For example, I end up with
a 2.2.1 snapshot of maven-clean-plugin.  Maven for some reason wants version
2.1 of maven-clean-plugin and the build fails if I give it the repository
(the localRepository from a previous successful build)  that has only the
snapshot.
 
Is there an established or recommended method with Maven to ensure that a
current build can be reproduced bit-for-bit at some time in the future?
e.g. when a customer reports a bug and we need to re-create the software for
patch purposes?  Should we avoid snapshots?  Is there anything else to
avoid?
 
I have another question, which is about snapshots and releases.  The example
of the master POM shows a  element and a  element.  I'm
wondering about the semantics of those.
 
thanks,
Marilyn Sander
===
 
Well run "mxn -X deploy" and you should get all plugins used up to and
including deploy goal. Assuming all your plugins are bound to a proper
lifecycle phase, they should all show up in that list.

Another good component (imo) in guaranteeing a reproducable build is a
Corporate Maven repo and proxy. But yes, a copy of the local repo in
your user home directory should be sufficient.

Wayne

On 9/1/06, Scott Tailor <[EMAIL PROTECTED]> wrote:
> Thanks for the tip. But doesn't "mvn -X install" only show you the
> plugins you are using when running install?
>
> Assuming one can get a complete list of plugins and their versions, does
> that mean all I needed is the maven-2.0.4.zip file, a copy of the local
> repository, and the project's pom files (with the locked down plugin
> versions) to be able to reproduced the same build I have today three
> years from now?
>
> /Scott
>
>
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey De Smet
> Sent: den 1 september 2006 10:44
> To: users@maven.apache.org
> Subject: Re: Reproducing maven builds versus auto updating maven.
>
> Lock down all your plugin versions.
> 
> 2.0-beta5
> ...
>
> Since I 've done that I experience it as being much much more in control
>
> over the build process. When a new plugin is released, I change the
> version and test it locally first before committing it.
>
> Do a mvn -X install to find out which plugins you're using.
>
> Scott Tailor wrote, On 2006-09-01 10:23 AM:
> > I recently gave a quick hands on introductions to Maven (v2) at the
> > company I'm currently consulting at. The company is now interested in
> > testing maven out in a project. There are two major and related
> concerns
> > I have though with using maven:
> >
> >
> >
> > 1.Maven updates itself at a regular basis. Occasionally an update
> > seems to break maven. It has happened once to me, but I know of
> another
> > person who says it has happened more than once. I assume there is a
> way
> > to tell maven not to update itself, correct? If so, how?
> > 2.Another problem is if we use maven to build an application
> > today, and then two years need to come back to the code and make
> > changes, how can we be sure we can still build it? How do we preserve
> > the build environment for each maven project?
> >
> >
> >
> > Any help/info greatly appreciated.
> >
> > /Scott
> >
> >
>
> --
> With kind regards,
> Geoffrey De Smet
>

 
 


Hibernate doclet question with merge files

2006-10-03 Thread Mick Knutson

I am trying to run hibernate doclet, and my hbm file has:



So is there an example anyone has, and location in my maven build to add
hibernate-generator-params-Provider.xml to my build?


--

Thanks

DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson


RepositoryController: Item not found on URI - deploy to Proximity

2006-10-03 Thread Janos Mucsi
Hi

My pom.xml looks like this:


  
inhouse.snapshot 
 
http://localhost:7070/px-webapp-default-1.0.0-RC4.2/repository/private
  
  
 inhouse.snapshot
 
http://localhost:7070/px-webapp-default-1.0.0-RC4.2/repository/private
  
   

My Proximity is up, those URLs are correc t. However, when I run Maven I 
am getting this:

Uploading: 
http://localhost:7070/px-webapp-default-1.0.0-RC4.2/repository/privat
e/fds/fds-applications/1.0/fds-applications-1.0.pom
1K uploaded
[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] Error deploying artifact: Unable to transfer file. 
HttpURLConnection retu
rned the response code: 500

In the proximity.log, I see this:

2006-10-03 15:52:15.325 INFO  [http-7070-Processor25:] - 
org.abstracthorizon.proximity.webapp.util.RepositoryController: Item not 
found on URI /private/fds/fds-applications/1.0-SNAPSHOT/maven-metadata.xml

Can you please let me know what I do wrong?

Thanks.

Janos

RE: Removing jsp-api-2.0.jar from delpoyed webapp

2006-10-03 Thread Tom Hurley
Thanks again Wayne,

mvn -X helped me find the problem. I appreciate the help and also that of
others on this list who have helped me get familiar with maven. Thanks you.

Tom.

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 03, 2006 11:08 AM
To: Maven Users List
Subject: Re: Removing jsp-api-2.0.jar from delpoyed webapp

Try mvn -X and use the text dependency tree to identify which
artifacts are pulling in that dependency. It might not be coming from
where you think it is.

I'll take a wild guess here and say you've got a J2EE multi-module
project and while the WAR module is properly excluding the jsp-api,
the EAR module is not, and so you're getting that jar bundled in. You
will need to specify the exclude in both poms.

Wayne

On 10/3/06, Tom Hurley <[EMAIL PROTECTED]> wrote:
> Thanks Wayne,
>
> I've tried both of those options but the jar is still being included. Its
> making me say bad words...
>
> Any other suggestions?
>
> Thanks.
>
> Tom.
>
>
>
> Tom Hurley, Senior Lead Developer
> Insightful Corp, 206-283-8802 x369
>
> -Original Message-
> From: Wayne Fay [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 03, 2006 10:48 AM
> To: Maven Users List
> Subject: Re: Removing jsp-api-2.0.jar from delpoyed webapp
>
> You have 2 options:
> 1. Add an excludes node to the dependency node which is bringing in
> this unwanted artifact.
> 2. Specify the jsp-api-2.0 as a dependency with scope "provided" in your
pom.
>
> Wayne
>
> On 10/3/06, Tom Hurley <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I am having a problem with the Maven's transitive dependency mechanism.
> It's
> > a fantastic feature but I would like to be able to prevent it including a
> > particular jar.
> >
> > I am creating a web app and deploying it to Tomcat. In my case one of the
> 3rd
> > party libraries results in the inclusion of jsp-api-2.0.jar in my
> WEB-INF\lib
> > folder. This is a shared library in Tomcat's common\lib folder and its
> > inclusion with my application causes known problems when running my
> > application. If I delete the jar everything works okay.
> >
> > Is there any way to either stop the dependency mechanism including this
jar
> > or can I flag it to Maven to exclude it? Someone else must have come up
> > against this problem.
> >
> > Thanks in advance for any help or suggestions.
> >
> > Tom.
> >
> >
> > -
> > 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]


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



Can Testcompile and compile have different target/source configurations?

2006-10-03 Thread Brian E. Fox
I need to set a different source/target configuration for testcompile
and compile. They are separate goals, but it's not apparently possible
to set goal specific configuration without another execution. Is there
some way to do this?


Re: SV: Is there any instructional book for Maven-1?

2006-10-03 Thread Max Cooper
I second this recommendation. Maven - A Developer's Notebook is a good 
book for learning Maven 1.


-Max

Naess, Ronny wrote:
Take a look at "Maven - A Developer's Notebook" 


ISBN 0596007507, or
http://www.amazon.com/Maven-Developers-Notebook-Timothy-OBrien/dp/059600
7507/ref=sr_11_1/102-6924759-4708143?ie=UTF8

-Ronny

-Opprinnelig melding-
Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED] 
Sendt: 3. oktober 2006 14:11

Til: Maven Users List
Emne: Re: Is there any instructional book for Maven-1?

hi
   Actully ,there is no such document available in which u will get
whole maven 1.0.2 but if u search in google u will find the relevent
matterial

Regards
Neeraj


On 10/3/06, Evi <[EMAIL PROTECTED]> wrote:

Hello!

I do have the the book "Better Builds with Maven 2", but have to use
Maven-1.0.2 (as JetSpeed2 does not work wit Maven2 as far as I know). 
Is there any older version of the "Better Builds with Maven" that can 
be used to understand Maven-1?


Thanks in advance for suggestions,

Evi


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





!DSPAM:4522541338522065019448!

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



Perforce SCM using continuum

2006-10-03 Thread Prashanth Krishnamurthy
It seems that Maven/Continuum/SCM/Perforce plugin
creates a perforce clientspec dynamically.  Which
works fine when I use maven directly.  When I run mvn
–X scm:update things work ok.  I see a spec created, a
sync and then the spec is deleted.  Since the spec is
new each time, it refetches everything everytime,
which we can live with.  Although it would be nice if
the system could determine what was changed, added or
deleted and only update those files.  Which is one
reason I would prefer a fixed and static clientspec
that would be setup and reused for each project.

We have setup a set of inter-dependant projects in
continuum.  The Perforce SCM seems to have the
following problems:

1. When I look at the build results of any given
project.  The changes section always includes the
files from the project that was previously run along
with all of the files from the existing project.
(Files in the previous project are prefixed by the
//DepotName/main/packages/filename whereas the files
from the “real” project are prefixed by
src/main/packages/filename).   It appears to me that
the clientspec is not deleted at the end of the build.
 Instead the same clientspec is being reused.  I think
this confuses Perforce.  Yet when running mvn
scm:update thing appear to be done properly.

2. Files that are deleted from the perforce repository
are never deleted from the continuum working
directories.  Clean only cleans target files not src
files – as it should.  If you are generating
clientspecs on the fly, don’t we need to delete the
src directories so that deleted files are removed?

Has anyone experienced similar problems with
Continuums perforce SCM and dynamically generated
clientspecs?   Have you found solutions to these
problems?

Does anyone know how to configure the system to use
static clientspecs? I tried using the below mentioned
arguments ( in continuum ) and that didn't help.

Goal : clean deploy
Argument :
-Dmaven.scm.perforce.clientspec.name=edrapi-19
--batch-mode --non-recursive

thanks & regards
--Prashanth

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: [ANN] Maven Changes Plugin 2.0-beta-2 for Maven 2 Released

2006-10-03 Thread Dennis Lundberg

It is available here:

http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-changes-plugin/2.0-beta-2/

You seem to have it mixed up with the changelog plugin. Try using this 
instead:



org.apache.maven.plugins
maven-changes-plugin
2.0-beta-2


Geoffrey De Smet wrote:

Any idea when it will be pushed to the central repo?

It's not in
http://repo1.maven.org/maven2/org/apache/maven/plugins/

so this doesn't work:

org.apache.maven.plugins
maven-changelog-plugin
2.0-beta-2



Dennis Lundberg wrote, On 2006-10-02 8:28 PM:

The Maven team is pleased to announce the release of the Maven Changes
Plugin, version 2.0-beta-2

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

This is the first release of this plugin since it moved from the Mojo 
project. Please try it and send your feedback to the users list.


Have fun!
-The Maven team





--
Dennis Lundberg

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



RE: Why does my install goal fail?

2006-10-03 Thread Dave Hoffer
Looks like Proximity was aggregating and including apache.snapshots.  I
removed this and it seems to work now.

-dh

-Original Message-
From: Dave Hoffer [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 03, 2006 1:52 PM
To: Maven Users List
Subject: Why does my install goal fail?

I have seen a problem lately where the install goal will fail.  The
problem is that the meta data downloaded is corrupt; the
...metadata-inhouse.xml file starts out correct but is missing the
bottom of the file.  I.e. it is missing the lastUpdated tag section and
closing tags.

 

This seems to occur when we have dependencies that depend on other
dependencies specified using set notation for the version.  For example,
I have a dependency on xrite-imaging; xrite-imaging has a dependency on
xrite-commons with version of [1.0,).  Maven fails when it builds the
...metadata-inhouse.xml file for xrite-commons.

 

I am using Proximity as my http artifact server.

 

Why is this happening?  This used to work (but our plugin versions have
changed somewhat).  

 

-dh


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



Re : Maven, Eclipse, & Junit

2006-10-03 Thread olivier galaup
Hello,
When you compile under eclipse the maven filtering is off. Before to run yours 
tests, you have to filter yours properties using this mvn command:
mvn resources:resources resources:testResources

- Message d'origine 
De : Douglas Ferguson <[EMAIL PROTECTED]>
À : users 
Envoyé le : Mardi, 3 Octobre 2006, 21h55mn 38s
Objet : Maven, Eclipse, & Junit

When running unit tests from eclipse I can’t resolve my test resources
because they are placed in test-classes.

 

How have folks dealt with this?

 

I know this is off topic ( if you know of a good forum please point me),
but is there a way to run 1 test method from a test case using eclipse,
like idea does?

 

D-













___ 
Découvrez un nouveau moyen de poser toutes vos questions quel que soit le sujet 
! 
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos 
expériences. 
http://fr.answers.yahoo.com 


Maven, Eclipse, & Junit

2006-10-03 Thread Douglas Ferguson
When running unit tests from eclipse I can’t resolve my test resources
because they are placed in test-classes.

 

How have folks dealt with this?

 

I know this is off topic ( if you know of a good forum please point me),
but is there a way to run 1 test method from a test case using eclipse,
like idea does?

 

D-




War Dependencies

2006-10-03 Thread Douglas Ferguson
Why aren’t war dependencies transitive?

 

D-




Problem checking-in files with perforce / Release with Maven

2006-10-03 Thread Janos Mucsi
Bruno

Sorry, I do not have a solution to your problem yet. I am trying to set up 
an environment  similar to yours. My question is how many internal 
repositories do you use? 
What about one for snapshot and one for releases? Is that a good idea?
What web server do you use to deploy to? Jetty with http? Can you give me 
sample configuration.

I will try to set up the same release thing with Clearcase.

Thanks.

Janos Mucsi
415-422-1692



"Bruno Dumant" <[EMAIL PROTECTED]> 
10/02/2006 09:43 AM
Please respond to
"Maven Users List" 


To

cc

Subject
Problem checking-in files with perforce






Hi,

 

I cannot succeed in submitting anything on perforce using maven. This is
what I get when I running release:prepare:

 

[INFO] [release:prepare]

[INFO] Resuming release from phase 'scm-commit-release'

[INFO] Checking in modified POMs...

[DEBUG] Executing p4 -H : submit -

i

[DEBUG] Sending changelist:

Change: new

 

Description:

[maven-release-plugin] prepare release Labs.GraphicsMasher-1.3.3

 

Files:

//labs/GraphicsServer/Stable/GraphServer/masher/pom.xml

 

[INFO]


[ERROR] BUILD FAILURE

[INFO]


[INFO] Unable to commit files

Provider message:

Unable to submit

Command output:

 

[INFO]


[DEBUG] Trace

org.apache.maven.BuildFailureException: Unable to commit files

Provider message:

Unable to submit

Command output:

 

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

ultLifecycleExecutor.java:555)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone

Goal(DefaultLifecycleExecutor.java:488)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau

ltLifecycleExecutor.java:458)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan

dleFailures(DefaultLifecycleExecutor.java:306)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen

ts(DefaultLifecycleExecutor.java:219)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi

fecycleExecutor.java:140)

at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

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)

Caused by: org.apache.maven.plugin.MojoFailureException: Unable to
commit files

Provider message:

Unable to submit

Command output:

 

at
org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareRe

leaseMojo.java:114)

at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi

nManager.java:412)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

ultLifecycleExecutor.java:534)

... 16 more

 

I have the same kind of output when I just try to commit a file. What is
strange is that updates (scm:update) correctly work: in particular, a
client spec is properly created and everything runs smoothly. When
trying to submit files, no client spec seems to be created. Is it the
normal behaviour?

 

Thanks for any hint!

 

Bruno 




Re: Removing jsp-api-2.0.jar from delpoyed webapp

2006-10-03 Thread Wayne Fay

Try mvn -X and use the text dependency tree to identify which
artifacts are pulling in that dependency. It might not be coming from
where you think it is.

I'll take a wild guess here and say you've got a J2EE multi-module
project and while the WAR module is properly excluding the jsp-api,
the EAR module is not, and so you're getting that jar bundled in. You
will need to specify the exclude in both poms.

Wayne

On 10/3/06, Tom Hurley <[EMAIL PROTECTED]> wrote:

Thanks Wayne,

I've tried both of those options but the jar is still being included. Its
making me say bad words...

Any other suggestions?

Thanks.

Tom.



Tom Hurley, Senior Lead Developer
Insightful Corp, 206-283-8802 x369

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 03, 2006 10:48 AM
To: Maven Users List
Subject: Re: Removing jsp-api-2.0.jar from delpoyed webapp

You have 2 options:
1. Add an excludes node to the dependency node which is bringing in
this unwanted artifact.
2. Specify the jsp-api-2.0 as a dependency with scope "provided" in your pom.

Wayne

On 10/3/06, Tom Hurley <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am having a problem with the Maven's transitive dependency mechanism.
It's
> a fantastic feature but I would like to be able to prevent it including a
> particular jar.
>
> I am creating a web app and deploying it to Tomcat. In my case one of the
3rd
> party libraries results in the inclusion of jsp-api-2.0.jar in my
WEB-INF\lib
> folder. This is a shared library in Tomcat's common\lib folder and its
> inclusion with my application causes known problems when running my
> application. If I delete the jar everything works okay.
>
> Is there any way to either stop the dependency mechanism including this jar
> or can I flag it to Maven to exclude it? Someone else must have come up
> against this problem.
>
> Thanks in advance for any help or suggestions.
>
> Tom.
>
>
> -
> 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: maven-install-plugin installation

2006-10-03 Thread Javier Leyba

Ok, I'll try it. Thanks !

On 10/3/06, Wayne Fay <[EMAIL PROTECTED]> wrote:

mvn -U forces updates of plugins. You can discover this (and other
options) yourself by invoking mvn -h.

And you can certainly install plugins manually by downloading files
from a Maven repo and copying them into your local Repo in the proper
directory etc. But its kind of a pain. You might just want to drill
down into your local repo to find the install plugin (jar and pom) and
just delete them, and let Maven re-download it.

Wayne

On 10/3/06, Javier Leyba <[EMAIL PROTECTED]> wrote:
> On 10/3/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > In that case, I'd assume you're behind a corporate firewall or proxy.
> >
> > If so, you will need to configure some settings so Maven can tunnel
> > through and download artifacts, dependencies, plugins etc. This is
> > documented in good detail on the Maven website and has been discussed
> > once every week or two on this mailing list, so check the archives.
> >
> > Wayne
> >
>
>
> Wayne
>
> I've read docs and configured a proxy.
>
> The first time I run maven it downloaded a lot of jar's (impossible
> thing if my proxy config were erroneous) so I can assume that there is
> just a problem with maven-install plugin.
>
> I browsed mail archives but didn't found useful info about this kind
> of problem.  :(
>
> Nevertheless, I'm curious if there is a way to force a install or a
> re-install of this (or others)  plugins.
>
> Thanks in advance
>
> J
>
> -
> 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]





--
Javier Leyba
Barcelona - Spain
http://blog.leyba.com.ar

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



Re: maven-install-plugin installation

2006-10-03 Thread Wayne Fay

mvn -U forces updates of plugins. You can discover this (and other
options) yourself by invoking mvn -h.

And you can certainly install plugins manually by downloading files
from a Maven repo and copying them into your local Repo in the proper
directory etc. But its kind of a pain. You might just want to drill
down into your local repo to find the install plugin (jar and pom) and
just delete them, and let Maven re-download it.

Wayne

On 10/3/06, Javier Leyba <[EMAIL PROTECTED]> wrote:

On 10/3/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> In that case, I'd assume you're behind a corporate firewall or proxy.
>
> If so, you will need to configure some settings so Maven can tunnel
> through and download artifacts, dependencies, plugins etc. This is
> documented in good detail on the Maven website and has been discussed
> once every week or two on this mailing list, so check the archives.
>
> Wayne
>


Wayne

I've read docs and configured a proxy.

The first time I run maven it downloaded a lot of jar's (impossible
thing if my proxy config were erroneous) so I can assume that there is
just a problem with maven-install plugin.

I browsed mail archives but didn't found useful info about this kind
of problem.  :(

Nevertheless, I'm curious if there is a way to force a install or a
re-install of this (or others)  plugins.

Thanks in advance

J

-
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: Removing jsp-api-2.0.jar from delpoyed webapp

2006-10-03 Thread Tom Hurley
Thanks Wayne,

I've tried both of those options but the jar is still being included. Its
making me say bad words...

Any other suggestions?

Thanks.

Tom.



Tom Hurley, Senior Lead Developer
Insightful Corp, 206-283-8802 x369

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 03, 2006 10:48 AM
To: Maven Users List
Subject: Re: Removing jsp-api-2.0.jar from delpoyed webapp

You have 2 options:
1. Add an excludes node to the dependency node which is bringing in
this unwanted artifact.
2. Specify the jsp-api-2.0 as a dependency with scope "provided" in your pom.

Wayne

On 10/3/06, Tom Hurley <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am having a problem with the Maven's transitive dependency mechanism.
It's
> a fantastic feature but I would like to be able to prevent it including a
> particular jar.
>
> I am creating a web app and deploying it to Tomcat. In my case one of the
3rd
> party libraries results in the inclusion of jsp-api-2.0.jar in my
WEB-INF\lib
> folder. This is a shared library in Tomcat's common\lib folder and its
> inclusion with my application causes known problems when running my
> application. If I delete the jar everything works okay.
>
> Is there any way to either stop the dependency mechanism including this jar
> or can I flag it to Maven to exclude it? Someone else must have come up
> against this problem.
>
> Thanks in advance for any help or suggestions.
>
> Tom.
>
>
> -
> 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: maven-install-plugin installation

2006-10-03 Thread Javier Leyba

On 10/3/06, Wayne Fay <[EMAIL PROTECTED]> wrote:

In that case, I'd assume you're behind a corporate firewall or proxy.

If so, you will need to configure some settings so Maven can tunnel
through and download artifacts, dependencies, plugins etc. This is
documented in good detail on the Maven website and has been discussed
once every week or two on this mailing list, so check the archives.

Wayne




Wayne

I've read docs and configured a proxy.

The first time I run maven it downloaded a lot of jar's (impossible
thing if my proxy config were erroneous) so I can assume that there is
just a problem with maven-install plugin.

I browsed mail archives but didn't found useful info about this kind
of problem.  :(

Nevertheless, I'm curious if there is a way to force a install or a
re-install of this (or others)  plugins.

Thanks in advance

J

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



Why does my install goal fail?

2006-10-03 Thread Dave Hoffer
I have seen a problem lately where the install goal will fail.  The
problem is that the meta data downloaded is corrupt; the
...metadata-inhouse.xml file starts out correct but is missing the
bottom of the file.  I.e. it is missing the lastUpdated tag section and
closing tags.

 

This seems to occur when we have dependencies that depend on other
dependencies specified using set notation for the version.  For example,
I have a dependency on xrite-imaging; xrite-imaging has a dependency on
xrite-commons with version of [1.0,).  Maven fails when it builds the
...metadata-inhouse.xml file for xrite-commons.

 

I am using Proximity as my http artifact server.

 

Why is this happening?  This used to work (but our plugin versions have
changed somewhat).  

 

-dh



Re: Removing jsp-api-2.0.jar from delpoyed webapp

2006-10-03 Thread Wayne Fay

You have 2 options:
1. Add an excludes node to the dependency node which is bringing in
this unwanted artifact.
2. Specify the jsp-api-2.0 as a dependency with scope "provided" in your pom.

Wayne

On 10/3/06, Tom Hurley <[EMAIL PROTECTED]> wrote:

Hi,

I am having a problem with the Maven's transitive dependency mechanism. It's
a fantastic feature but I would like to be able to prevent it including a
particular jar.

I am creating a web app and deploying it to Tomcat. In my case one of the 3rd
party libraries results in the inclusion of jsp-api-2.0.jar in my WEB-INF\lib
folder. This is a shared library in Tomcat's common\lib folder and its
inclusion with my application causes known problems when running my
application. If I delete the jar everything works okay.

Is there any way to either stop the dependency mechanism including this jar
or can I flag it to Maven to exclude it? Someone else must have come up
against this problem.

Thanks in advance for any help or suggestions.

Tom.


-
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: maven-install-plugin installation

2006-10-03 Thread Wayne Fay

In that case, I'd assume you're behind a corporate firewall or proxy.

If so, you will need to configure some settings so Maven can tunnel
through and download artifacts, dependencies, plugins etc. This is
documented in good detail on the Maven website and has been discussed
once every week or two on this mailing list, so check the archives.

Wayne

On 10/3/06, Javier Leyba <[EMAIL PROTECTED]> wrote:

On 10/3/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> The first time you "use" it, Maven will automatically download and
> install the maven-install-plugin artifact into your local repo.
>
> There is no requirement to manually download and install plugins in M2
> (generally).
>

Wayne

Thanks for your reply.

Unfortunatelly, I'm receiving a message that tell me maven-install
plugin is not present or not valid. I've tried to run a mvn update
plugins but it didn't fix the problem.

any idea ?

Thanks in advance

J

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



Removing jsp-api-2.0.jar from delpoyed webapp

2006-10-03 Thread Tom Hurley
Hi,

I am having a problem with the Maven's transitive dependency mechanism. It's
a fantastic feature but I would like to be able to prevent it including a
particular jar. 

I am creating a web app and deploying it to Tomcat. In my case one of the 3rd
party libraries results in the inclusion of jsp-api-2.0.jar in my WEB-INF\lib
folder. This is a shared library in Tomcat's common\lib folder and its
inclusion with my application causes known problems when running my
application. If I delete the jar everything works okay.

Is there any way to either stop the dependency mechanism including this jar
or can I flag it to Maven to exclude it? Someone else must have come up
against this problem.

Thanks in advance for any help or suggestions.

Tom.


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



Re: maven-install-plugin installation

2006-10-03 Thread Javier Leyba

On 10/3/06, Wayne Fay <[EMAIL PROTECTED]> wrote:

The first time you "use" it, Maven will automatically download and
install the maven-install-plugin artifact into your local repo.

There is no requirement to manually download and install plugins in M2
(generally).



Wayne

Thanks for your reply.

Unfortunatelly, I'm receiving a message that tell me maven-install
plugin is not present or not valid. I've tried to run a mvn update
plugins but it didn't fix the problem.

any idea ?

Thanks in advance

J

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



Re: maven-install-plugin installation

2006-10-03 Thread Wayne Fay

The first time you "use" it, Maven will automatically download and
install the maven-install-plugin artifact into your local repo.

There is no requirement to manually download and install plugins in M2
(generally).

Wayne

On 10/3/06, Javier Leyba <[EMAIL PROTECTED]> wrote:

Hi

I'm new to maven 2 and want to know how could I install a maven-install plugin.

Thanks in advance

J

-
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-install-plugin installation

2006-10-03 Thread Javier Leyba

Hi

I'm new to maven 2 and want to know how could I install a maven-install plugin.

Thanks in advance

J

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



maven-install-plugin installation

2006-10-03 Thread Javier Leyba

Hi

I'm new to maven 2 and want to know how could I install a maven-install plugin.

Thanks in advance



--
Javier Leyba
Barcelona - Spain
http://blog.leyba.com.ar

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



Re: samples project best practice

2006-10-03 Thread kovalen pechaycaren

You could try maven-jar-plugin

Kovalen

--
Kovalen Pechaycaren
Software Engineer
Accenture Technology Solution

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



Re: Executing goals without installing artifacts to local repository

2006-10-03 Thread Wayne Fay

I can only speak to your first question -- yes this is intended
behavior. You cannot build from /master/ear without previously
installing the ejb and war artifacts.

I don't use the eclipse plugin right now.

Wayne

On 10/3/06, Rafal Hajdacki <[EMAIL PROTECTED]> wrote:

Hi,

I have classic multimodule Maven2 J2EE project with following structure:

/master
/ejb
pom.xml
/war
pom.xml (depends on ejb)
/ear
pom.xml (depends on war and ejb)
pom.xml

From '/master' directory it is possible to execute 'package' goal without
deploying artifacts to local repository and ear artifact will be created.
However this can't be done from '/master/ear' because Maven fails due to
missing dependency artifacts. Is this intended behaviour?

Second problem is, that when I execute 'eclipse:eclipse' goal from
'/master' directory Maven fails in '/master/ear' module due to missing
dependencies (war, ejb).  Is it eclipse plugin bug or something else?

General question is:
Should all maven plugins support execution of goals from master pom
without installing artifacts of dependent modules to local repository?

Regards,
--
Rafal Hajdacki


-
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: trying maven getting started, getting errors

2006-10-03 Thread Wayne Fay

I actually checked out the Velocity Dev list recently and it seems
they are planning to push a new build/version "relatively soon"...
Though of course I can't speak for them, and don't know when exactly
that will be.

But its possible we will see the end of these ERROR messages in the near future.

Wayne

On 10/3/06, Hilco Wijbenga <[EMAIL PROTECTED]> wrote:

On 10/3/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> Talk to the maven-site-plugin authors, who will refer you to (I
> believe) the Jakarta Velocity team which is the "component"
> responsible for these ERROR messages. Hopefully they can provide some
> insight into why these errors are being thrown and how to fix/suppress
> them. If you get any good info back, please share it with the rest of
> us. (PS- This bug was posted in Velocity's bugzilla back in Sept 2004
> and its still only Assigned status.)

I tried to fix this several months ago and checked out the (then)
latest version of Velocity from Subversion. That version didn't have
these idiotic error messages anymore, so it looks like that whenever
the new version of Velocity is released this should *finally* be
fixed. Then again, that was only a snapshot... :-)

I prefer FreeMarker anyway. ;-)

Cheers,
Hilco

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



[M2] "Required goal not found: jar:sign"

2006-10-03 Thread Siegmann Daniel, NY
I am trying to sign a jar file. Unfortunately this goal seems to be missing.
jar:jar works fine, but jar:sign gives an error stating that the goal is not
found. Adding this to the executions in the POM file gives much the same
("'sign' was specified in an execution, but not found in the plugin").

Anyone have an idea what might be wrong with my setup?

--
Daniel Siegmann
FJA-US, Inc.
(212) 840-2618 ext. 139

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



multi-project question: is there a way to hide child projects?

2006-10-03 Thread Thomas_Perry





hello,

I just began to use continuum 1.0.3 with maven 2.0.4

We have a parent project with  elements for child sub-projects.

Each child sub-project has a corresponding  element. parent and
child projects are all contained as one eclipse project.

When I added the parent project, it and all child projects are now in the
list.

Aside from deletes, is there a way to hide/not display the child projects?

We would always build the complete project; we would not have a need
to build a child project by itself.

Thanks in advance for your help.
Tom



 
This message is intended for the recipient only and is not meant to be 
forwarded or distributed in any other format. 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 security, or as an 
official confirmation of any transaction.  Putnam does not accept purchase or 
redemptions of securities, instructions, or authorizations that are sent via 
e-mail.   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 Putnam, 
LLC (DBA Putnam Investments) and its subsidiaries and affiliates.  If you are 
not the intended recipient of this e-mail, please delete the e-mail.


Re: [stoping build]

2006-10-03 Thread Francois Le Fevre

Jesse,
that songs great!!

Francois


this is a known issue if your using 1.0.3, sometimes bouncing the
continuum server will reset that, or clicking on 'build all' will get
it to reset.

kenney added a whole host of features in this area for stopping builds
and automatically timing them out for the 1.1 release, which we'll be
working towards pretty soon for releasing.

jesse

On 10/2/06, Francois Le Fevre <[EMAIL PROTECTED]> wrote:


Dear continuum users,

I am using continuum but it seems that when I have execute a goal on a
project that contains an error, continuum clock never stop !!
I mean that for example the server connection crashes.
When I restart continum, the timer for the build I have throw is still
in action???

How can I delete them ??

Is it in the working directory???

Thanks

Francois

Oct 2, 2006 3:44:09 PM
Started since : 1 h 45 min 11 sec   BuildingResult
 





--
Francois Le Fevre
Bioinformatics Engineer
Computational Biology Group -  NeMo group
Genoscope
Tél. : (+33) 1 60 87 45 83
Web : http://www.genoscope.cns.fr/bioinfo








--
Francois Le Fevre
Bioinformatics Engineer
Computational Biology Group -  NeMo group
Genoscope
Tél. : (+33) 1 60 87 45 83
Web : http://www.genoscope.cns.fr/bioinfo



Re: trying maven getting started, getting errors

2006-10-03 Thread Hilco Wijbenga

On 10/3/06, Wayne Fay <[EMAIL PROTECTED]> wrote:

Talk to the maven-site-plugin authors, who will refer you to (I
believe) the Jakarta Velocity team which is the "component"
responsible for these ERROR messages. Hopefully they can provide some
insight into why these errors are being thrown and how to fix/suppress
them. If you get any good info back, please share it with the rest of
us. (PS- This bug was posted in Velocity's bugzilla back in Sept 2004
and its still only Assigned status.)


I tried to fix this several months ago and checked out the (then)
latest version of Velocity from Subversion. That version didn't have
these idiotic error messages anymore, so it looks like that whenever
the new version of Velocity is released this should *finally* be
fixed. Then again, that was only a snapshot... :-)

I prefer FreeMarker anyway. ;-)

Cheers,
Hilco

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



Executing goals without installing artifacts to local repository

2006-10-03 Thread Rafal Hajdacki
Hi,

I have classic multimodule Maven2 J2EE project with following structure:

/master
 /ejb
 pom.xml
 /war
 pom.xml (depends on ejb)
 /ear
 pom.xml (depends on war and ejb)
 pom.xml

>From '/master' directory it is possible to execute 'package' goal without
deploying artifacts to local repository and ear artifact will be created.
However this can't be done from '/master/ear' because Maven fails due to
missing dependency artifacts. Is this intended behaviour?

Second problem is, that when I execute 'eclipse:eclipse' goal from
'/master' directory Maven fails in '/master/ear' module due to missing
dependencies (war, ejb).  Is it eclipse plugin bug or something else?

General question is:
Should all maven plugins support execution of goals from master pom
without installing artifacts of dependent modules to local repository?

Regards,
-- 
Rafal Hajdacki


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



Re: How to use ant-contrib inside an ant plugin?

2006-10-03 Thread Hilco Wijbenga

Hi Alexandre,

You're not doing anything wrong it's just that the Ant-Contrib you're
including is extremely old. It probably doesn't support  yet.

I'm using 1.0b2 and that's working nicely. You'll have to download it
yourself and put it in your local repository or set up something like
Proximity. At least, I don't know of any Maven repository where you
can get it.

Just for completeness:
http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html

Cheers,
Hilco

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



Re: trying maven getting started, getting errors

2006-10-03 Thread Wayne Fay

I don't disagree. but from a practical point of view, I don't much
care about these error messages. You of course are welcome to bring
this up directly with the team responsible for those error messages if
you care "more".

Talk to the maven-site-plugin authors, who will refer you to (I
believe) the Jakarta Velocity team which is the "component"
responsible for these ERROR messages. Hopefully they can provide some
insight into why these errors are being thrown and how to fix/suppress
them. If you get any good info back, please share it with the rest of
us. (PS- This bug was posted in Velocity's bugzilla back in Sept 2004
and its still only Assigned status.)

Or go find the proper Maven JIRA bug and vote for it, though I'm
unsure how Maven team can/should best resolve this issue. You can find
the JIRA here: http://jira.codehaus.org/browse/MSITE-170

Wayne

On 10/3/06, Michael Stevens <[EMAIL PROTECTED]> wrote:

On Mon, Oct 02, 2006 at 11:26:39AM -0500, Wayne Fay wrote:
> You assume incorrectly. ;-)
>
> This is fine. Ignore these "errors".

Surely nothing working should produce ERRORs?

Michael

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



SV: Build errors

2006-10-03 Thread Naess, Ronny
Ran into trouble again. I might have buypassed the problem for a while,
but the joy was not for long. Ok, here is the deal.

I have several artifacts. Some artifacts have resources in both
main/resources and test/resources. The resources might be property files
who's values is to be replaced with Springs
PropertyPlaceholderConfigurer (at least this is how it was). It may also
be two different spring config files (incrementer-context.xml), one the
Oracle way and one the HSQL way.

If I run my unittests in eclipse (maven plugin) everything is well.
If I run 'mvn test' or 'mvn install' in parent dir everything is well.
If I change dir to one of the artifacts with test dependency as
mentioned obove mye tests fail because the test deps do not seem to be
included.

Looks like the classpath is somehow wrong in the last case, where
test/resources and main/resources is replaced, or test resources not
included at all. I have now prof of this, but it seems like this is what
happens. I have tested mvn test -X, but I cant se anything
wrong.among the thousands of lines ;-)

Anyone here that can tell me why this happens or better, what happens? I
guess this has been my problem all along.


-Ronny

-Opprinnelig melding-
Fra: Naess, Ronny [mailto:[EMAIL PROTECTED] 
Sendt: 27. september 2006 15:10
Til: Maven Users List
Emne: SV: Build errors

I bypassed the problem, replaced the two database.properties with two
datasource-context.xml (imported into commons-config.xml) and typed the
properties in for both test and main.

It works well now and continuum gave me a big smile :-)

Sure, why PropertyPlaceholderConfigurator fails I still do not know.

-Ronny 

-Opprinnelig melding-
Fra: Naess, Ronny [mailto:[EMAIL PROTECTED]
Sendt: 27. september 2006 12:17
Til: Maven Users List
Emne: SV: Build errors

Anyone got any tips for me about this issue? It is starting to become a
showstopper.

Continuum almost never have a successfully build anymore. The failure is
always the same where the exception is:

org.springframework.beans.factory.BeanDefinitionStoreException: Error
registering bean with name 'dataSource' defined in class path resource
[commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName' 

My common-context.xml (spring config) is located in common artifact.
Other artifacts depends on this common artifact. 

Common-context.xml
--



database.properties
toolbox.properties






${jdbc.driverClassName}


${jdbc.url} 


${jdbc.username}


${jdbc.password}





Common artifact has two (2) resources named database.propeties. These
files is located in main/resources and test/resources, where the one
under test is the one used when testing (you did'nt see that comming did
ya?). 

Database.properties (in test/resourses)
---
jdbc.driverClassName=org.hsqldb.jdbcDriver
jdbc.url=jdbc:hsqldb:file:../ansattportal-commons/hsqldb/ansattportal
jdbc.username=sa
jdbc.password=


The commons pom.xml has test-jar goal so the dependent artifacts can
include this test-jar file when running tests (scope=test).

Now, when I try to test or install some of my artifacts that depend on
common artifact I recive the error mentioned above. An as you can se a
from my earlier posts its more or less random. Sometime it works
sometime not.

I am very much stuck on this matter and I could need a good tips in how
to solve this problem.

I am thinking that I might maybe hardcode two spring configs only
containing the datasource part. One for test and one for main and that
way skip the whole PropertyPlaceHolderConfigurer part that creates all
this frustration.

-Ronny

-Opprinnelig melding-
Fra: Naess, Ronny [mailto:[EMAIL PROTECTED]
Sendt: 25. september 2006 13:00
Til: Maven Users List
Emne: SV: Build errors

I have tried different things but no pattern is discovered.

I am logged on the unix server that Continuum is running on. I then
change directory to the artifact that fails. 

Things I have tried:

mvn install -> failure
mvn clean   -> success
mvn test-> success
mvn install -> failure
mvn install -> failure
mvn install -> failure
mvn test-> failure
mvn test-> failure
mvn clean test  -> failure
mvn clean   -> success
mvn test-> success
mvn clean   -> success
mvn test-> success
mvn clean   -> success
mvn test-> success
mvn clean test  -> failure
mvn clean test  -> failure
mvn clean test  -> failure
mvn test-> failure
mvn test-> failure
mvn clean   -> success
mvn test-

Re: install plugin

2006-10-03 Thread Wayne Fay

Run mvn -X to receive more debugging output from Maven while it runs.

I'd guess you're behind a corporate firewall or proxy which will
require some configuration for Maven to successfully access external
resources.

Wayne

On 10/3/06, Javier Leyba <[EMAIL PROTECTED]> wrote:

Hi

I'm new with maven and trying to install a file in my repo.

I did:

--
D:\workspaces\notifications\com.bs.notifications.ws> mvn install:install-file -D
groupId=jboss -DartifactId=jboss-client -Dversion=4.0.3 -Dpackaging=jar -Dfile=W
:\JBoss-Client\JBoss-4.0.3\ -e

---


But I received the error:

---
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'install'.
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does not exist
 or no valid version could be found
[INFO] 
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.m
aven.plugins:maven-install-plugin' does not exist or no valid version could be f
ound
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1281)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1517)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
AggregationNeeds(DefaultLifecycleExecutor.java:381)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:135)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   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)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The p
lugin 'org.apache.maven.plugins:maven-install-plugin' does not exist or no valid
 version could be found
   at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:225)
   at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:87)
   at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
inManager.java:158)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1252)
   ... 14 more
[INFO] 
[INFO] Total time: < 1 second
[INFO] Finished at: Tue Oct 03 16:00:06 CEST 2006
[INFO] Final Memory: 1M/2M
[INFO] 
La sintaxis del comando no es correcta.


I assumed that maven-install-plugin is not installed but I couldn´t
found instructions about how to installit.

Could someone give a clue ?

Thanks in advance

J

-
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: local jar files

2006-10-03 Thread Wayne Fay

It may be painful but your best/only option is to write 20 dependency
poms for the 20 jars, and then install/deploy each one individually to
your local (or corporate) repo so they will be found and used when you
do a build.

Then I'd write a single "master" pom which simply contains references
to each one of those 20 jars so you can import all 20 by specifying
only the one "master" pom file; install it into the repo as well.

You should probably also read the Better Builds With Maven PDF book if
you haven't already; its a good intro for new users.

Wayne

On 10/3/06, majecek <[EMAIL PROTECTED]> wrote:


Hi I am startng using maven
and I have question.
1. We have several projects (like logic, jar lib, ui, ...) done in Eclipse.
We have one project which holds just jar files needed in our project. Is
there way to tell maven (added it somehow in pom.xml) that it should look
for jar files in that jar project?

I don't want to write 20 dependecies jars I would like tell that needed jar
files are stored in this folder. Is it possible?

2. Maven uses speciall repository directory structure. I have just one
project (directory called lib) and there are all jars needed by project.

Is there way to tell maven to look for jar files in this project/folder
without writing all dependency in pom.xml and changing the directory
structure?

To be more specific I want create maven project for iReport

http://prdownloads.sourceforge.net/ireport/iReport-1.2.7.zip?download

which has folder called lib with all jar files needed by that project.
Can you help how to do it?

Thanks
--
View this message in context: 
http://www.nabble.com/local-jar-files-tf2375113.html#a6617041
Sent from the Maven - Users mailing list archive at Nabble.com.


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



samples project best practice

2006-10-03 Thread kelvin goodson

Hello,
 I'm new to configuring maven,  and I am trying to create a release for a
project.  The project includes a number of modules,  one of which contains
sample source code.  I would like my distribution to contain the source and
binary artifacts for the samples.  I have discovered the maven-source-plugin
and have been able to run mvn source:jar against the project, which creates
a jar of source for me.  How do I get the overall project build to package
both the source and the compiled artifacts. Am I heading in the right
direction here?  Is there a specific project archetype for a samples
project?

Regards, Kelvin.

(By the way,  it took me many attempts to subscribe to this list because my
mails were being bounced as spam when I did as directed and sent empty mails
to the users-subscribe address, etc.  It wasn't until  I parsed the bounced
notes and realised that I must include some junk text in my response in
order to get through the spam filter that my subscription worked.)


Re: Deploy as WAR

2006-10-03 Thread Jesse McConnell

we are going to take a look at it next week and see what we need to
polish up for a release...so probably next week we'll we able to setup
a target 1.1 release date, at least that is my thoughts on the matter
:)  There are a ton of issues still up for 1.1 but given the large
amount of work that has gone into it so far a 1.1 is probably due
pretty soon.

jesse

On 10/3/06, ben short <[EMAIL PROTECTED]> wrote:

Any ideas when this will be released?

On 9/24/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote:
> With 1.0.3, it isn't possible. 1.1 will be a war.
>
> Emmanuel
>
> ben short a écrit :
> > Hi,
> >
> > Is it possible to get continuum as a WAr rather than a standalone
> > application?
> >
> > Ben
> >
> >
> >
>
>




--
jesse mcconnell
[EMAIL PROTECTED]


Re: Deploy as WAR

2006-10-03 Thread ben short

Any ideas when this will be released?

On 9/24/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote:

With 1.0.3, it isn't possible. 1.1 will be a war.

Emmanuel

ben short a écrit :
> Hi,
>
> Is it possible to get continuum as a WAr rather than a standalone
> application?
>
> Ben
>
>
>




Re: [M2] Surefire executing a single test suite.

2006-10-03 Thread dan tran

extend your AppTest with TestCase, not TestSuite.  It works for me


package org.example;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

/**
* Unit test for simple App.
*/
public class AppTest extends TestCase
{
   /**
* Create the test case
*
* @param testName name of the test case
*/
   public AppTest( )
   {
   super();
   }


   /**
* @return the suite of tests being tested
*/
   public static Test suite()
   {
   return new TestSuite( SampleTest.class );
   }


}



On 10/3/06, Michael Rimov <[EMAIL PROTECTED]> wrote:


> Can you repoduce the problem in a small project? this way you
> can open a JIRA and other ppl can take a crack at it.


I have and was about to start a new one, and then found MSUREFIRE-131,
which
I believe is the same problem, yet this person provided a basic patch, so
we'll see where it goes from there.

I attached my test case just in case it helps.  Thanks for the replies
guys!

   -Mike




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




install plugin

2006-10-03 Thread Javier Leyba

Hi

I'm new with maven and trying to install a file in my repo.

I did:

--
D:\workspaces\notifications\com.bs.notifications.ws> mvn install:install-file -D
groupId=jboss -DartifactId=jboss-client -Dversion=4.0.3 -Dpackaging=jar -Dfile=W
:\JBoss-Client\JBoss-4.0.3\ -e

---


But I received the error:

---
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'install'.
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does not exist
or no valid version could be found
[INFO] 
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.m
aven.plugins:maven-install-plugin' does not exist or no valid version could be f
ound
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1281)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1517)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
AggregationNeeds(DefaultLifecycleExecutor.java:381)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:135)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   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)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The p
lugin 'org.apache.maven.plugins:maven-install-plugin' does not exist or no valid
version could be found
   at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:225)
   at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:87)
   at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
inManager.java:158)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1252)
   ... 14 more
[INFO] 
[INFO] Total time: < 1 second
[INFO] Finished at: Tue Oct 03 16:00:06 CEST 2006
[INFO] Final Memory: 1M/2M
[INFO] 
La sintaxis del comando no es correcta.


I assumed that maven-install-plugin is not installed but I couldn´t
found instructions about how to installit.

Could someone give a clue ?

Thanks in advance

J

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



RE: Is there any instructional book for Maven-1?

2006-10-03 Thread Evi
Hi Ian,

Nope, I am not locked to JetSpeed, I am just trying to build a sample portal
and understand the needed mechanisms for my thesis. I found JetSpeed
tutorial and am trying to get it up:-)) Will look at Pluto as well, maybe I
can use it. 

Rgrds,
Evi

>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
>Sent: Tuesday, October 03, 2006 4:36 PM
>To: Maven Users List
>Subject: Re: Is there any instructional book for Maven-1?
>
>Hi Evi,
>
>Don't know if it will meet your needs (or if you're locked in 
>to JetSpeed2), but Pluto 1.1 
>(http://portals.apache.org/pluto/) is a Maven2 project.
>
>
>HTH,
>Ian
>
>It's better to be hated for who you are
>than loved for who you're not
>
>Ian D. Stewart
>Distributed Computing Engineer II
>DSS eCommerce Engineering
>JPMorganChase Global Technology Infrastructure
>Phone: (614) 244-2564
>Pager: (877) 210-2346
>
>
>   
>
> "Evi" 
>
> <[EMAIL PROTECTED]>  
>
>   
> To 
> 10/03/2006 07:48  "'Maven Users List'"
>
> AM
>
>   
> cc 
>   
>
> Please respond to 
>Subject 
>   "Maven UsersIs there any 
>instructional book for 
>   List"   Maven-1?
>
> <[EMAIL PROTECTED] 
>
>  he.org>  
>
>   
>
>   
>
>   
>
>   
>
>
>
>
>
>Hello!
>
>I do have the the book "Better Builds with Maven 2", but have to use
>Maven-1.0.2 (as JetSpeed2 does not work wit Maven2 as far as I 
>know). Is there any older version of the "Better Builds with 
>Maven" that can be used to understand Maven-1?
>
>Thanks in advance for suggestions,
>
>Evi
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>-
>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.
>
>
>-
>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]



How to run plugins in other than the pom.xml dir

2006-10-03 Thread kovalen pechaycaren

Hello,
I have developed some maven2 plugins and to run them I should be in the
directory of the pom.xml file.  Is there a way of running my plugin anywhere
(like for e.g mvn archetype:create)?

Thanks
--
Kovalen


Re: Is there any instructional book for Maven-1?

2006-10-03 Thread ian . d . stewart
Hi Evi,

Don't know if it will meet your needs (or if you're locked in to
JetSpeed2), but Pluto 1.1 (http://portals.apache.org/pluto/) is a Maven2
project.


HTH,
Ian

It's better to be hated for who you are
than loved for who you're not

Ian D. Stewart
Distributed Computing Engineer II
DSS eCommerce Engineering
JPMorganChase Global Technology Infrastructure
Phone: (614) 244-2564
Pager: (877) 210-2346


   
 "Evi" 
 <[EMAIL PROTECTED]>  
To 
 10/03/2006 07:48  "'Maven Users List'"
 AM
cc 
   
 Please respond to Subject 
   "Maven UsersIs there any instructional book for 
   List"   Maven-1?
 <[EMAIL PROTECTED] 
  he.org>  
   
   
   
   




Hello!

I do have the the book "Better Builds with Maven 2", but have to use
Maven-1.0.2 (as JetSpeed2 does not work wit Maven2 as far as I know). Is
there any older version of the "Better Builds with Maven" that can be used
to understand Maven-1?

Thanks in advance for suggestions,

Evi


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




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


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



Re: How to write plugin in maven 2.0

2006-10-03 Thread dan tran

beside the book,

start with an simple one like

 http://svn.codehaus.org/mojo/trunk/mojo/build-helper-maven-plugin/


-D

On 10/3/06, Henrique Prange <[EMAIL PROTECTED]> wrote:


Hi Neeraj,

Take a look at:

http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html

The book Better Builds with Maven contains a section about this topic.
You can download the book at Mergere site:

http://www.mergere.com/m2book_download.jsp

Good luck,

Henrique

Neeraj Bisht wrote:
> hi all
> Actully i want to write the plugin in maven 2.0  but i am unable
> can any one help me to write plugin in maven 2.0
> i saw the maven intern plugin but they did not use any annotation
like  *
> @goal*  @parameter how all that plugin r working i am unable to
understand
>
> Regards
> Neeraj
>

--

\o/ Henrique Prange, Moleque de Idéias Educação e Tecnologia Ltda
|  Phone: 55-21-2710-0178 E-mail: [EMAIL PROTECTED]
/ \ http://www.moleque.com.br

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




Triggering build on each commit.

2006-10-03 Thread ben short

Hi,

It it possible to setup Continuum to build a project on every commit
to subversion.

The XML-RPC API document shows the buildProject method that can be
used by the subversion hook scripts but it seems to just trigger a
build of what is at the svn head.

I would like to set it up so that each time someone commits changes,
continuum does its build on the revision number so that failures can
pinpointed to exact commits.

Anyone got any ideas?

Also is there any documentation that details changes/improvements of
the next release of continuum?

Regards

Ben


RE: Is there any instructional book for Maven-1?

2006-10-03 Thread Evi
Thanks, this might me what I need:-))

Evi 

>-Original Message-
>From: Naess, Ronny [mailto:[EMAIL PROTECTED] 
>Sent: Tuesday, October 03, 2006 3:32 PM
>To: Maven Users List
>Subject: SV: Is there any instructional book for Maven-1?
>
>Take a look at "Maven - A Developer's Notebook" 
>
>ISBN 0596007507, or
>http://www.amazon.com/Maven-Developers-Notebook-Timothy-OBrien/
>dp/059600
>7507/ref=sr_11_1/102-6924759-4708143?ie=UTF8
>
>-Ronny
>
>-Opprinnelig melding-
>Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED]
>Sendt: 3. oktober 2006 14:11
>Til: Maven Users List
>Emne: Re: Is there any instructional book for Maven-1?
>
>hi
>   Actully ,there is no such document available in which u 
>will get whole maven 1.0.2 but if u search in google u will 
>find the relevent matterial
>
>Regards
>Neeraj
>
>
>On 10/3/06, Evi <[EMAIL PROTECTED]> wrote:
>>
>> Hello!
>>
>> I do have the the book "Better Builds with Maven 2", but have to use
>> Maven-1.0.2 (as JetSpeed2 does not work wit Maven2 as far as 
>I know). 
>> Is there any older version of the "Better Builds with Maven" 
>that can 
>> be used to understand Maven-1?
>>
>> Thanks in advance for suggestions,
>>
>> Evi
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>!DSPAM:4522541338522065019448!
>
>-
>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: How to write plugin in maven 2.0

2006-10-03 Thread Henrique Prange

Hi Neeraj,

Take a look at:

http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html

The book Better Builds with Maven contains a section about this topic. 
You can download the book at Mergere site:


http://www.mergere.com/m2book_download.jsp

Good luck,

Henrique

Neeraj Bisht wrote:

hi all
Actully i want to write the plugin in maven 2.0  but i am unable
can any one help me to write plugin in maven 2.0
i saw the maven intern plugin but they did not use any annotation like  *
@goal*  @parameter how all that plugin r working i am unable to understand

Regards
Neeraj



--

\o/ Henrique Prange, Moleque de Idéias Educação e Tecnologia Ltda
 |  Phone: 55-21-2710-0178 E-mail: [EMAIL PROTECTED]
/ \ http://www.moleque.com.br

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



Re: [ANN] Maven Changes Plugin 2.0-beta-2 for Maven 2 Released

2006-10-03 Thread Geoffrey De Smet

Any idea when it will be pushed to the central repo?

It's not in
http://repo1.maven.org/maven2/org/apache/maven/plugins/

so this doesn't work:

org.apache.maven.plugins
maven-changelog-plugin
2.0-beta-2



Dennis Lundberg wrote, On 2006-10-02 8:28 PM:

The Maven team is pleased to announce the release of the Maven Changes
Plugin, version 2.0-beta-2

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

This is the first release of this plugin since it moved from the Mojo 
project. Please try it and send your feedback to the users list.


Have fun!
-The Maven team


--
With kind regards,
Geoffrey De Smet


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



SV: Is there any instructional book for Maven-1?

2006-10-03 Thread Naess, Ronny
Take a look at "Maven - A Developer's Notebook" 

ISBN 0596007507, or
http://www.amazon.com/Maven-Developers-Notebook-Timothy-OBrien/dp/059600
7507/ref=sr_11_1/102-6924759-4708143?ie=UTF8

-Ronny

-Opprinnelig melding-
Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED] 
Sendt: 3. oktober 2006 14:11
Til: Maven Users List
Emne: Re: Is there any instructional book for Maven-1?

hi
   Actully ,there is no such document available in which u will get
whole maven 1.0.2 but if u search in google u will find the relevent
matterial

Regards
Neeraj


On 10/3/06, Evi <[EMAIL PROTECTED]> wrote:
>
> Hello!
>
> I do have the the book "Better Builds with Maven 2", but have to use
> Maven-1.0.2 (as JetSpeed2 does not work wit Maven2 as far as I know). 
> Is there any older version of the "Better Builds with Maven" that can 
> be used to understand Maven-1?
>
> Thanks in advance for suggestions,
>
> Evi
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


!DSPAM:4522541338522065019448!

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



Re: Is there any instructional book for Maven-1?

2006-10-03 Thread Neeraj Bisht

hi
  Actully ,there is no such document available in which u will get whole
maven 1.0.2 but if u search in google u will find the relevent matterial

Regards
Neeraj


On 10/3/06, Evi <[EMAIL PROTECTED]> wrote:


Hello!

I do have the the book "Better Builds with Maven 2", but have to use
Maven-1.0.2 (as JetSpeed2 does not work wit Maven2 as far as I know). Is
there any older version of the "Better Builds with Maven" that can be used
to understand Maven-1?

Thanks in advance for suggestions,

Evi


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




Re: [jety6 plugin] Can't start plugin on Windows, get build error.

2006-10-03 Thread Mikael Andersson

Solved.

Turns out I was using the old plugin, arghh. Should be artifactId
maven-jetty-plugin !

http://www.nabble.com/Maven2-plugin-problems-in-Windows%3A-IllegalStateException-tf2375083.html

- Mike

On 02/10/06, Mikael Andersson <[EMAIL PROTECTED]> wrote:


Hi,
I'm having problems in Windows with something which works on Linux.

When running, mvn clean jetty6:run on Windows I get this stack trace:

[ERROR] BUILD ERROR
[INFO]

[INFO] Failure

Embedded error: Multiple exceptions
[INFO]

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failure
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:488)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau

ltLifecycleExecutor.java:458)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi

fecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
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)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failure
at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMo

jo.java:422)
at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.

java:356)
at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRu

nMojo.java:172)
at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(
Jetty6RunMojo.java:167
)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi

nManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:534)
... 16 more
Caused by: org.mortbay.util.MultiException[java.lang.IllegalStateException:
Serv
let class Dasty is not a javax.servlet.Servlet,
java.lang.IllegalStateException:
 Servlet class Index is not a javax.servlet.Servlet,
java.lang.IllegalStateExcep
tion: Servlet class Index2 is not a javax.servlet.Servlet,
java.lang.IllegalStat
eException: Servlet class Index3 is not a javax.servlet.Servlet,
java.lang.Illeg
alStateException: Servlet class Index4 is not a javax.servlet.Servlet,
java.lang
.IllegalStateException: Servlet class Index6 is not a
javax.servlet.Servlet, jav
a.lang.IllegalStateException: Servlet class
org.apache.jasper.servlet.JspServlet
 is not a javax.servlet.Servlet]
at org.mortbay.jetty.Server.doStart(Server.java:179)
at org.mortbay.component.AbstractLifeCycle.start(
AbstractLifeCycle.java:
38)
at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.

java:115)
at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMo

jo.java:409)
... 21 more

At the end it complains that the Servlets aren't javax.servlet.Servletclasses, 
but they all extends HttpServlet.

This is the plugin setup from the pom:


htmlhelpers


org.mortbay.jetty
maven-jetty6-plugin


10
/htmlhelpers


org.apache.commons.logging.Log

org.apache.commons.logging.impl.SimpleLog







Cheers,
 Mike



Is there any instructional book for Maven-1?

2006-10-03 Thread Evi
Hello!

I do have the the book "Better Builds with Maven 2", but have to use
Maven-1.0.2 (as JetSpeed2 does not work wit Maven2 as far as I know). Is
there any older version of the "Better Builds with Maven" that can be used
to understand Maven-1?

Thanks in advance for suggestions,

Evi


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



RE: Need Some Basic Help, I Think

2006-10-03 Thread Allison, Bob
I downloaded the WAR file from the apache snapshot repository dated
16-Aug-2006 and it seems to be working better.  I'm not sure if it is
because I have two managed repositories ("release" and "snapshot") or if
it is because I have been restarting Tomcat after every configuration
change (that seems to be the only way to make the change take effect).

Next basic question:  How do I get Archiva to log but ignore checksum
problems?  I am unable to build the project site because of a checksum
mismatch on the project-info plugin's maven-metadata.xml file.

-Original Message-
From: Mohni, Daniel [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 03, 2006 01:33
To: archiva-users@maven.apache.org
Subject: RE: Need Some Basic Help, I Think


Hello Bob

tryed a setup like yours with the daily build from yesterday, and
this looks fine here when I try this url 

http://localhost:8080/archiva/proxy/maven_release/org/apache/maven/ 
plugins/maven-metadata.xml 

my proxied repository to ibiblio is named 'maven_release'

did you also try this url on your system

http://www.home.net:8082/archiva/proxy/remote/org/apache/maven/
plugins/maven-metadata.xml

you need the name of the repository to identify where to search
for artifacts

hth

Daniel


> -Original Message-
> From: Allison, Bob [mailto:[EMAIL PROTECTED] 
> Sent: Monday, October 02, 2006 11:30 PM
> To: archiva-users@maven.apache.org
> Subject: Need Some Basic Help, I Think
> 
> I am trying to get Archiva to work, and am having problems I can't
> solve.  I am hoping that someone can see what I am doing 
> wrong and help
> me get this working.  I had downloaded the source and built it at the
> end of August, but am just trying to get it working.  (I am currently
> downloading the current code in case that has something to do with my
> problems.)
> 
> I installed a new Tomcat 5.5 instance (running on
> "http://www.home.net:8082/";) and deployed the web application to it as
> "/archiva".  I created just one managed repository named "remote".  I
> added one proxied repository named "central" with a URL of
> "http://www.ibiblio.org/maven2";.  In my settings.xml file, I defined a
> mirror of "central" with a URL of
> "http://www.home.net:8082/archiva/proxy"; (I have also tried adding
> "/remote" to the end of the URL).
> 
> Every time I try to build something in Maven with the mirror defined
> (and no local repository), I get a build failure because no 
> plugins can
> be found.  The build works fine if the mirror to central is 
> not defined.
> If I try to access
> "http://www.home.net:8082/archiva/proxy/org/apache/maven/plugi
> ns/maven-m
> etadata.xml" in my browser, I get a 404 error.  If I access
> "http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven-
> metadata.x
> ml" in my browser, I get the XML file.
> 
> Anybody got an idea of what I am doing wrong?
> 
> 
> This communication is the property of Qwest and may contain 
> confidential or
> privileged information. Unauthorized use of this 
> communication is strictly 
> prohibited and may be unlawful.  If you have received this 
> communication 
> in error, please immediately notify the sender by reply 
> e-mail and destroy 
> all copies of the communication and any attachments.
> 


Re: trying maven getting started, getting errors

2006-10-03 Thread Michael Stevens
On Mon, Oct 02, 2006 at 11:26:39AM -0500, Wayne Fay wrote:
> You assume incorrectly. ;-)
> 
> This is fine. Ignore these "errors".

Surely nothing working should produce ERRORs?

Michael

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



Re: Maven2 & JUnit4

2006-10-03 Thread Man-Chi Leung

anyone has successfully run junit4 with m2?

pls help
~manchi

On 2006-09-27 18:06:21 +0800, Severin Ecker <[EMAIL PROTECTED]> said:


Hi,

i just wanted to ask if there are any news on the JUnit4 front. I've
tried that unofficial plugin but it didn't work, so i was wondering if
JUnit4 support is somewhere soon on the roadmap.

thanks in advance!

cheers,
severin





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



How to use ant-contrib inside an ant plugin?

2006-10-03 Thread Alexandre Touret

Hello,
I would like to use the for loop developed in ant-contrib inside an ant 
plugin.
Unfortunately I always have the same error when I try to load the target 
definiton:


_bottomup-assemble-annotations:
[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] Failed to execute: Executing Ant script: 
/net/java/dev/maven/oasplugin/oa

s.build.xml [_bottomup-assemble-annotations]: Failed to execute.

Could not create task or type of type: for.

Ant could not find the task or a class this task relies upon.

This is common and has a number of causes; the usual
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file:
- You have misspelt 'for'.
  Fix: check your spelling.
- The task needs an external JAR file to execute
and this is not found at the right place in the classpath.
  Fix: check the documentation for dependencies.
  Fix: declare the task.
- The task is an Ant optional task and the JAR file and/or libraries
implementing the functionality were not found at the time you
yourself built your installation of Ant from the Ant sources.
  Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
task and make sure it contains more than merely a META-INF/MANIFEST.MF.
If all it contains is the manifest, then rebuild Ant with the needed
libraries present in ${ant.home}/lib/optional/ , or alternatively,
download a pre-built release version from apache.org




How may I include this dependency in the classpath inside my plugin ?
I also tried to add the dependency in the plugin mojo description  as 
follow:



   ant-contrib
   ant-contrib
   20020829
  



Thanks in advance for your help!!
Regards,
Alexandre Touret

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



local jar files

2006-10-03 Thread majecek

Hi I am startng using maven 
and I have question. 
1. We have several projects (like logic, jar lib, ui, ...) done in Eclipse.
We have one project which holds just jar files needed in our project. Is
there way to tell maven (added it somehow in pom.xml) that it should look
for jar files in that jar project?

I don't want to write 20 dependecies jars I would like tell that needed jar
files are stored in this folder. Is it possible?

2. Maven uses speciall repository directory structure. I have just one
project (directory called lib) and there are all jars needed by project. 

Is there way to tell maven to look for jar files in this project/folder
without writing all dependency in pom.xml and changing the directory
structure? 

To be more specific I want create maven project for iReport 

http://prdownloads.sourceforge.net/ireport/iReport-1.2.7.zip?download

which has folder called lib with all jar files needed by that project. 
Can you help how to do it?

Thanks 
-- 
View this message in context: 
http://www.nabble.com/local-jar-files-tf2375113.html#a6617041
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: How I prevent the use of local repository?

2006-10-03 Thread Jon SlinnHawkins
use -U on the mvn command line.  This will still use your local repo, but 
will force an update on all the plugins and jars used.

Cheers

Jon

"Wayne Fay" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Maven always uses the local repo. I'm not aware of a way to turn it
> off or exclude it.
>
> Wayne
>
> On 9/29/06, pfrancav <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi, I m actually removing the repo when I want to build a release, but I
>> want to know if exist any parameter that directly exclude the local repo.
>>
>> Can I change M2 in the command line ?
>>
>>
>> Wayne Fay wrote:
>> >
>> > Delete your local repo and do the build.
>> >
>> > Or adjust your M2 config to point to a new empty directory on your
>> > machine; same results.
>> >
>> > Wayne
>> >
>> > On 9/29/06, pfrancav <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> Hi, I need to build release and I want to ensure the jars are correct, 
>> >> so
>> >> I
>> >> want to mvn download jars from our internal repository, skipping the
>> >> local
>> >> repository.
>> >>
>> >> Is that possible?
>> >>
>> >> Really thanks
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/How-I-prevent-the-use-of-local-repository--tf2358410.html#a6570110
>> >> Sent from the Maven - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> -
>> >> 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]
>> >
>> >
>> >
>>
>> --
>> View this message in context: 
>> http://www.nabble.com/How-I-prevent-the-use-of-local-repository--tf2358410.html#a6570444
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> 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]



[M2] ANT plugins and mapping maps or collections

2006-10-03 Thread Alexandre Touret

Hello,
is there a way to specify collections or maps parameters to ant plugins 
? I know that it s possible with mojo plugin and I d like to do same 
thing in a ant plugin


Thanks in advance

Regards,
Alexandre

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



RE: [M2] Surefire executing a single test suite.

2006-10-03 Thread Michael Rimov
> Can you repoduce the problem in a small project? this way you
> can open a JIRA and other ppl can take a crack at it.


I have and was about to start a new one, and then found MSUREFIRE-131, which
I believe is the same problem, yet this person provided a basic patch, so
we'll see where it goes from there.

I attached my test case just in case it helps.  Thanks for the replies guys!

-Mike




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