WEB-INF/lib excludes once more

2006-07-09 Thread Markus Wolf
Hi,

I have a problem creating my EAR file containing a WAR and a EJB.
First I setup my WAR-pom to have the EAR as provided dependency, but
then it is not possible to add it to the manifests classpath.
Then I read through the mailinglist and found an exclude configuration
should help. But no matter how I configure my excludes they are ignored...

I've checked the version of the war plugin as well and I'm using 2.0.1.
Is there anything I've overlooked in my pom.xml?

...
dependencies
  dependency
groupIdde.esw.services/groupId
artifactIdemediaservices-core/artifactId
version1.0-SNAPSHOT/version
scoperuntime/scope
  /dependency
  dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version3.8.1/version
scopetest/scope
  /dependency
/dependencies
build
  finalNameemediaservices-web/finalName
  plugins
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-war-plugin/artifactId
  configuration
excludes
  excludeWEB-INF/lib/*.jar/exclude
/excludes
archive
  manifest
addClasspathtrue/addClasspath
  /manifest
/archive
  /configuration
/plugin
  /plugins
/build
...

Any ideas?
Thanks
Markus Wolf
-- 

 emedia-solutions wolf
 Wedeler Landstrasse 63
 22559 Hamburg
 (040) 550 083 70

  web: http://www.emedia-solutions-wolf.de
 mail: [EMAIL PROTECTED]
  pgp: http://wwwkeys.de.pgp.net


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



EJB Manifest Classpath

2006-07-09 Thread Markus Wolf
Hi,

I've wondering if there is something similar like in Maven 1.x and the
WAR-Plugins to have dependencies added to the JARs Classpath entry. For
the WAR-plugin this is somewhat documented, but there are no docs for
the EJB-plugin. Any idea how this could work?

Thanks
Markus Wolf

-- 

 emedia-solutions wolf
 Wedeler Landstrasse 63
 22559 Hamburg
 (040) 550 083 70

  web: http://www.emedia-solutions-wolf.de
 mail: [EMAIL PROTECTED]
  pgp: http://wwwkeys.de.pgp.net


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



Re: WEB-INF/lib excludes once more

2006-07-09 Thread David Jencks
With evenisse's help I just figured this out today and submitted a  
patch to the war plugin documentation, cf MWAR-61.


I assume that what you want is for the EJB jar to be in the war's  
manifest classpath and your mention of putting the ear on the m. cp  
is a typo?


Here's my configuration that works for me:

build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
configuration
archive
manifest
addClasspathtrue/addClasspath
/manifest
/archive
/configuration
/plugin
/plugins
/build
dependencies
dependency
groupIdorg.apache.geronimo.itest/groupId
artifactIdjar/artifactId
version${pom.version}/version
optionaltrue/optional
/dependency
/dependencies


The build/plugin configuration generates the manifest cp, and the  
optionaltrue/optional prevents maven from bundling the dependency  
into WEB-INF/lib.


Hope this is what you are looking for,
david jencks



On Jul 8, 2006, at 11:39 PM, Markus Wolf wrote:


Hi,

I have a problem creating my EAR file containing a WAR and a EJB.
First I setup my WAR-pom to have the EAR as provided dependency, but
then it is not possible to add it to the manifests classpath.
Then I read through the mailinglist and found an exclude configuration
should help. But no matter how I configure my excludes they are  
ignored...


I've checked the version of the war plugin as well and I'm using  
2.0.1.

Is there anything I've overlooked in my pom.xml?

...
dependencies
  dependency
groupIdde.esw.services/groupId
artifactIdemediaservices-core/artifactId
version1.0-SNAPSHOT/version
scoperuntime/scope
  /dependency
  dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version3.8.1/version
scopetest/scope
  /dependency
/dependencies
build
  finalNameemediaservices-web/finalName
  plugins
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-war-plugin/artifactId
  configuration
excludes
  excludeWEB-INF/lib/*.jar/exclude
/excludes
archive
  manifest
addClasspathtrue/addClasspath
  /manifest
/archive
  /configuration
/plugin
  /plugins
/build
...

Any ideas?
Thanks
Markus Wolf
--


emedia-solutions wolf
Wedeler Landstrasse 63
22559 Hamburg
(040) 550 083 70


 web: http://www.emedia-solutions-wolf.de
mail: [EMAIL PROTECTED]
 pgp: http://wwwkeys.de.pgp.net




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




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



Re: EJB Manifest Classpath

2006-07-09 Thread David Jencks


On Jul 8, 2006, at 11:40 PM, Markus Wolf wrote:


Hi,

I've wondering if there is something similar like in Maven 1.x and the
WAR-Plugins to have dependencies added to the JARs Classpath entry.  
For

the WAR-plugin this is somewhat documented, but there are no docs for
the EJB-plugin. Any idea how this could work?


This works just like for the jar plugin as documented here: http:// 
maven.apache.org/guides/mini/guide-manifest.html  except specifying  
maven-ejb-plugin instead of maven-jar-plugin.


e.g.

build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-ejb-plugin/artifactId
configuration
archive
manifest
addClasspathtrue/addClasspath
/manifest
/archive
/configuration
/plugin
/plugins
/build
dependencies
dependency
groupIdorg.apache.geronimo.itest/groupId
artifactIdjar/artifactId
version${pom.version}/version
optionaltrue/optional
/dependency
/dependencies

Hope this helps,
david jencks





Thanks
Markus Wolf

--


emedia-solutions wolf
Wedeler Landstrasse 63
22559 Hamburg
(040) 550 083 70


 web: http://www.emedia-solutions-wolf.de
mail: [EMAIL PROTECTED]
 pgp: http://wwwkeys.de.pgp.net




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




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



Re: Parse error reading POM. Reason: parser must be on START_TAG or TEXT

2006-07-09 Thread Dennis Lundberg

Wendy Smoak wrote:

On 7/8/06, Aron Smith [EMAIL PROTECTED] wrote:
It appears mavens site builder doesnt read my pom.xml - though all the 
other

utilities (compiles, package, filter etc.) are fine.  It *is* valid XML
(pom.xml follows stacktrace)


It doesn't validate against the schema.  The filters element is out
of place, move it outside of the resources element.

* http://maven.apache.org/ref/current/maven-model/maven.html


Is there a feature in M2 to explicitly validate the pom against the 
schema? In M1 you could do:

  maven pom:validate

--
Dennis Lundberg

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



Custom artifact resolving

2006-07-09 Thread Tim Kettler

Hi,

a plugin I'm writing depends on an artifact that is not part of the projects dependencies 
nor should it be on the plugins classpath. So defining it as a dependency under project/ 
or plugin isn't an option.


I decided that the artifact is specified in the plugin configuration like it is done in 
the dependency plugin for example. Looking at that plugin's sources also showed how to 
create an Artifact instance from the configuration data and how to resolve it. My problem 
now is that the code in the dependency plugin doesn't resolve the artifacts transitive 
dependencies.


Can anyone point me to some code that does this or provide a code snippet.

Thanks
-Tim

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



Re: Maven Download Stats on Google Homepage

2006-07-09 Thread Carlos Sanchez

cool, where do you get the data from?

On 7/9/06, Graham Lea [EMAIL PROTECTED] wrote:

Curious to see how many people are downloading your library from Maven?

Want to see the progress every day on your Personalized Google Homepage?

You need the Maven Stats Gadget!

*Google Personalized Homepage: *
http://www.google.com/ig

*Maven Stats Gadget:*
http://base.google.com/base/a/1303714/D9382852462576509672






--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride

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



Re: Maven Download Stats on Google Homepage

2006-07-09 Thread Jo Vandermeeren

Carlos,

The URL that Graham posted is an RSS feed.. You can just add to your
personal Google homepage..
Here is the feed: http://base.google.com/base/a/1303714/D9382852462576509672

Once added, you can customize the groupId and artifactId of the library that
you want to monitor..

Cheers
Jo

On 7/9/06, Carlos Sanchez [EMAIL PROTECTED] wrote:


cool, where do you get the data from?



Re: Maven Download Stats on Google Homepage

2006-07-09 Thread Carlos Sanchez

I know. My question is where does that script gets the stats from

On 7/9/06, Jo Vandermeeren [EMAIL PROTECTED] wrote:

Carlos,

The URL that Graham posted is an RSS feed.. You can just add to your
personal Google homepage..
Here is the feed: http://base.google.com/base/a/1303714/D9382852462576509672

Once added, you can customize the groupId and artifactId of the library that
you want to monitor..

Cheers
Jo

On 7/9/06, Carlos Sanchez [EMAIL PROTECTED] wrote:

 cool, where do you get the data from?






--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride

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



Re: Parse error reading POM. Reason: parser must be on START_TAG or TEXT

2006-07-09 Thread Eric Redmond

There is an XML validator incubating in Mojo:
http://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/xml-maven-plugin/

I have no idea how active it is, however.

Thanks;
Eric

On 7/9/06, Dennis Lundberg [EMAIL PROTECTED] wrote:


Wendy Smoak wrote:
 On 7/8/06, Aron Smith [EMAIL PROTECTED] wrote:
 It appears mavens site builder doesnt read my pom.xml - though all the
 other
 utilities (compiles, package, filter etc.) are fine.  It *is* valid XML
 (pom.xml follows stacktrace)

 It doesn't validate against the schema.  The filters element is out
 of place, move it outside of the resources element.

 * http://maven.apache.org/ref/current/maven-model/maven.html

Is there a feature in M2 to explicitly validate the pom against the
schema? In M1 you could do:
   maven pom:validate

--
Dennis Lundberg

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




Re: WEB-INF/lib excludes once more

2006-07-09 Thread Markus Wolf
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 With evenisse's help I just figured this out today and submitted a patch
 to the war plugin documentation, cf MWAR-61.
 
 I assume that what you want is for the EJB jar to be in the war's
 manifest classpath and your mention of putting the ear on the m. cp is a
 typo?
 
Thanks, this is exaclty what I was looking for. And since this does work
for the ejb and jar plugins as well it is very simple. :)

Thanks again
Markus Wolf
- --

 emedia-solutions wolf
 Wedeler Landstrasse 63
 22559 Hamburg
 (040) 550 083 70

  web: http://www.emedia-solutions-wolf.de
 mail: [EMAIL PROTECTED]
  pgp: http://wwwkeys.de.pgp.net

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEsS/seyJE91ndMG4RAu6JAJ4q194vqmH0a//21Vk6HxJh+aJs1wCfVCS5
airHC0nwp+dkSg8qtixI7F8=
=hQlt
-END PGP SIGNATURE-

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



Re: realtivePath - what is it?

2006-07-09 Thread Eric Redmond

The groupdId etc. is useful for when nothing can be found in the relative
path.

Thanks;
Eric

On 7/8/06, Alex Shneyderman [EMAIL PROTECTED] wrote:


 It is a bit confusing since maven has all the information to find pom
 in the repository.

scratch that,

what's confusing is the fact that I need to specify groupId,artifactId
and version when I specify the realtive path. I assume maven can
deduct those from the pom I am pointing to. Am I missing something?

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




RE: WEB-INF/lib excludes once more

2006-07-09 Thread Mike Perham
You are using excludes incorrectly.

plugin
  artifactIdmaven-war-plugin/artifactId
  configuration
warSourceExcludesWEB-INF/lib/*.jar/warSourceExcludes
archive
  manifest
addClasspathtrue/addClasspath
classpathPrefixlib//classpathPrefix
  /manifest
/archive
  /configuration
/plugin
plugin
  artifactIdmaven-ear-plugin/artifactId
  configuration
defaultJavaBundleDirlib//defaultJavaBundleDir
  /configuration
/plugin 

-Original Message-
From: Markus Wolf [mailto:[EMAIL PROTECTED] 
Sent: Sunday, July 09, 2006 1:40 AM
To: users@maven.apache.org
Subject: WEB-INF/lib excludes once more

Hi,

I have a problem creating my EAR file containing a WAR and a EJB.
First I setup my WAR-pom to have the EAR as provided dependency, but
then it is not possible to add it to the manifests classpath.
Then I read through the mailinglist and found an exclude configuration
should help. But no matter how I configure my excludes they are
ignored...

I've checked the version of the war plugin as well and I'm using 2.0.1.
Is there anything I've overlooked in my pom.xml?

...
dependencies
  dependency
groupIdde.esw.services/groupId
artifactIdemediaservices-core/artifactId
version1.0-SNAPSHOT/version
scoperuntime/scope
  /dependency
  dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version3.8.1/version
scopetest/scope
  /dependency
/dependencies
build
  finalNameemediaservices-web/finalName
  plugins
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-war-plugin/artifactId
  configuration
excludes
  excludeWEB-INF/lib/*.jar/exclude
/excludes
archive
  manifest
addClasspathtrue/addClasspath
  /manifest
/archive
  /configuration
/plugin
  /plugins
/build
...

Any ideas?
Thanks
Markus Wolf
-- 

 emedia-solutions wolf
 Wedeler Landstrasse 63
 22559 Hamburg
 (040) 550 083 70

  web: http://www.emedia-solutions-wolf.de
 mail: [EMAIL PROTECTED]
  pgp: http://wwwkeys.de.pgp.net


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


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



Re: WEB-INF/lib excludes once more

2006-07-09 Thread Pete Marvin King
Hello,

the exclude paramater of the war plugin is only meant for the webapp
sources,
the parameter name is a little bit vague. =)

if you want to exclude certain dependencies from the war, just specify
the scope
as compile. only dependencies with runtime scope will be included in the
war.  

pete marvin


Markus Wolf wrote:
 Hi,

 I have a problem creating my EAR file containing a WAR and a EJB.
 First I setup my WAR-pom to have the EAR as provided dependency, but
 then it is not possible to add it to the manifests classpath.
 Then I read through the mailinglist and found an exclude configuration
 should help. But no matter how I configure my excludes they are ignored...

 I've checked the version of the war plugin as well and I'm using 2.0.1.
 Is there anything I've overlooked in my pom.xml?

 ...
 dependencies
   dependency
 groupIdde.esw.services/groupId
 artifactIdemediaservices-core/artifactId
 version1.0-SNAPSHOT/version
 scoperuntime/scope
   /dependency
   dependency
 groupIdjunit/groupId
 artifactIdjunit/artifactId
 version3.8.1/version
 scopetest/scope
   /dependency
 /dependencies
 build
   finalNameemediaservices-web/finalName
   plugins
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-war-plugin/artifactId
   configuration
 excludes
   excludeWEB-INF/lib/*.jar/exclude
 /excludes
 archive
   manifest
 addClasspathtrue/addClasspath
   /manifest
 /archive
   /configuration
 /plugin
   /plugins
 /build
 ...

 Any ideas?
 Thanks
 Markus Wolf
   


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



RE: WEB-INF/lib excludes once more

2006-07-09 Thread Mike Perham
Not true.

-Original Message-
From: Pete Marvin King [mailto:[EMAIL PROTECTED] 
Sent: Sunday, July 09, 2006 11:52 AM
To: Maven Users List
Subject: Re: WEB-INF/lib excludes once more


if you want to exclude certain dependencies from the war, just specify
the scope as compile. only dependencies with runtime scope will be
included in the war.  

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



Re: javadoc 2.0 plugin: doc-files/* not being copied!

2006-07-09 Thread Rob Dickens
It looks like the problem was confined to the version I'd compiled  
from src (a week before 2.0 was officially released). Anyway, I just  
cleared this from my local repository, thereby forcing the released  
version to be downloaded, and the problem went away.


Sorry for having wasted anyone's time.

Rob

On 31 May 2006, at 08:34, Rob Dickens wrote:

Still couldn't get this to work, so http://jira.codehaus.org/browse/ 
MJAVADOC-76



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



Re: WEB-INF/lib excludes once more

2006-07-09 Thread Pete Marvin King

  sorry my mistake, 

 SCOPE_RUNTIME  =
systemScope = false;
providedScope = false;
compileScope = true;
runtimeScope = true;
testScope = false;

---AbstractWarMojo snippet --
// TODO: utilise appropriate methods from project builder
ScopeArtifactFilter filter = new ScopeArtifactFilter(
Artifact.SCOPE_RUNTIME );
if ( !artifact.isOptional()  filter.include( artifact ) )
{
String type = artifact.getType();
if ( tld.equals( type ) )
{
copyFileIfModified( artifact.getFile(), new File(
tldDirectory, targetFileName ) );
}
else
---AbstractWarMojo snippet --

thanx for the correction mike. i need to stop assuming things. =)



Mike Perham wrote:
 Not true.

 -Original Message-
 From: Pete Marvin King [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, July 09, 2006 11:52 AM
 To: Maven Users List
 Subject: Re: WEB-INF/lib excludes once more


 if you want to exclude certain dependencies from the war, just specify
 the scope as compile. only dependencies with runtime scope will be
 included in the war.  

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



Build time classpath using my java plugin

2006-07-09 Thread TimHedger

I've written a plugin (in Java) that explicitly invokes the main method of a
Java class directly from within the jvm that maven is already running.  My
plugin is behaving/configured as I expect, but I have a classpath problem
when control switches from my plugin code to the main method of the Java
class it invokes.

I use the following method to print the classpath before I invoke the main
method on my target class:
project.getCompileClasspathElements();

(where project is MavenProject)

And I get the list of jars I expect, including:
/home/hedgert/.m2/repository/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar

which is the copy of javax.servlet that I have in my local maven repository. 
Great - so far so good.

I invoke the main method of my target class and the code runs and then falls
over with a:
java.lang.NoClassDefFoundError: javax/servlet/ServletException

If I check the contents of my servlet-api-2.4.jar:
: jar -tf
/home/hedgert/.m2/repository/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar
|grep ServletException
javax/servlet/ServletException.class

The missing class is indeed in the jar that is on the classpath.

So presumably the classpath I'm getting back from:
project.getCompileClasspathElements();

is not actually the classpath in operation when I invoke the main method on
my class from within a running JVM.

So my question is: maven has nicely worked out the classpath I need (using
the dependencies in my pom.xml file for my target project, rather than my
plugin), how do I get this classpath be active in the running JVM?
-- 
View this message in context: 
http://www.nabble.com/Build-time-classpath-using-my-java-plugin-tf1914923.html#a5242414
Sent from the Maven - Users forum at Nabble.com.


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



using maven idea:idea command with servicemix

2006-07-09 Thread Michael Clovis
I am trying to set up a working environment for testing and development for
using IDE(s), eclipse and Intellij for servicemix.
 We did a svn co from apache site and followed command line build
instructions. Then ran mvn idea:idea. This generated project files whereever
pom files existed. That being said the first problem was that dispite the
command line build running properly mvn install with no test option on, The
project file(s) pointed at the jars in the repository jars seemingly
properly. BUT there was a class ( javax.xml.bind.annotation.AccessType) that
was used in the component code that is not in any repository jars. I did a
recursive search. I am confused on the mvn idea:idea goal and trying to
track down the issue in both mailing groups. Any guidance would be
appreciated.





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



Re: WEB-INF/lib excludes once more

2006-07-09 Thread Markus Wolf
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 the exclude paramater of the war plugin is only meant for the webapp
 sources,
 the parameter name is a little bit vague. =)
 
I think the docs are loo vague about excluding something and as well
adding something to the manifest classpath.

 if you want to exclude certain dependencies from the war, just specify
 the scope
 as compile. only dependencies with runtime scope will be included in the
 war.  
 
The scope compile will remove the dep. from the manifest classpath as
well I think. The solution David Jencks posted as reply to my questions
seems the best suited for me.

But thanks for your input.
Markus Wolf
- --
__

  Markus Wolf
  Wedeler Landstrasse 63
  22559 Hamburg

 tel: (+49) 40 / 550 083 70
 mob: (+49) 177 / 288 48 67
 web: http://www.matrixweb.de
 icq: #109622365
 pgp: http://wwwkeys.de.pgp.net
__
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEsTWgYuGbqyQxpHcRAs1bAJ9o7vnoxObE55BgeHhuNb5UDB4aSQCgzaPK
Z/r/ImOtQehcpvsnklHoMyc=
=1wny
-END PGP SIGNATURE-

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



Re: Custom artifact resolving

2006-07-09 Thread Tim Kettler

Never mind. Figured it out myself.

Tim Kettler schrieb:

Hi,

a plugin I'm writing depends on an artifact that is not part of the 
projects dependencies nor should it be on the plugins classpath. So 
defining it as a dependency under project/ or plugin isn't an option.


I decided that the artifact is specified in the plugin configuration 
like it is done in the dependency plugin for example. Looking at that 
plugin's sources also showed how to create an Artifact instance from the 
configuration data and how to resolve it. My problem now is that the 
code in the dependency plugin doesn't resolve the artifacts transitive 
dependencies.


Can anyone point me to some code that does this or provide a code snippet.

Thanks
-Tim

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



Eclipse Plugin

2006-07-09 Thread Markus Wolf
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

is there a way to add specific eclipse project natures to the generated
.project file using the maven-eclipse-plugin (like spring nature or new
dali persistence nature)? In maven 1.x there where some properties in
the build.properties to set with which most of the project files could
be customized.

Thanks
Markus Wolf
- --

 emedia-solutions wolf
 Wedeler Landstrasse 63
 22559 Hamburg
 (040) 550 083 70

  web: http://www.emedia-solutions-wolf.de
 mail: [EMAIL PROTECTED]
  pgp: http://wwwkeys.de.pgp.net

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEsVoZeyJE91ndMG4RAtNAAJ4voUNiTScqpRyy73ILuyTwGcWsBwCbBzue
2qtJ6kgiX33Gm3594kWpqpM=
=hkwe
-END PGP SIGNATURE-

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



Re: Eclipse Plugin

2006-07-09 Thread Stephen Duncan

http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html

You can set additionalProjectnatures, or projectnatures

- Stephen

On 7/9/06, Markus Wolf [EMAIL PROTECTED] wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

is there a way to add specific eclipse project natures to the generated
.project file using the maven-eclipse-plugin (like spring nature or new
dali persistence nature)? In maven 1.x there where some properties in
the build.properties to set with which most of the project files could
be customized.

Thanks
Markus Wolf
- --

 emedia-solutions wolf
 Wedeler Landstrasse 63
 22559 Hamburg
 (040) 550 083 70

  web: http://www.emedia-solutions-wolf.de
 mail: [EMAIL PROTECTED]
  pgp: http://wwwkeys.de.pgp.net

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEsVoZeyJE91ndMG4RAtNAAJ4voUNiTScqpRyy73ILuyTwGcWsBwCbBzue
2qtJ6kgiX33Gm3594kWpqpM=
=hkwe
-END PGP SIGNATURE-

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





--
Stephen Duncan Jr
www.stephenduncanjr.com

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



Re: Maven Download Stats on Google Homepage

2006-07-09 Thread Graham Lea

The stats are read from http://www.ibiblio.org/stats/

That of course means they don't include downloads from mirrors.
(I'm assuming Maven supports mirrors?)

Carlos Sanchez wrote:


I know. My question is where does that script gets the stats from



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



Fwd: Maven 2 - central repo mirrors

2006-07-09 Thread Brett Porter

-- Forwarded message --
From: Wendy Smoak [EMAIL PROTECTED]
Date: 10-Jul-2006 10:54
Subject: Maven 2 - central repo mirrors
To: Struts Developers List dev@struts.apache.org


Just a public service announcement since the central repo at ibiblio
seems to be down.

You can configure a mirror in settings.xml, see the following page for info:

* http://maven.apache.org/guides/mini/guide-mirror-settings.html

--
Wendy

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



--
Apache Maven - http://maven.apache.org
Better Builds with Maven book - http://library.mergere.com/

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



[m1][ANN] FindBugs Plug-in 1.3 release

2006-07-09 Thread Jeff Jensen
We are pleased to announce the FindBugs Plug-in 1.3 release! 

http://maven-plugins.sourceforge.net/maven-findbugs-plugin

A plugin to automate FindBugs tasks 


===

Changes in this version include:

  New Features:

o Added maven.findbugs.failOnError property. 
o Added maven.findbugs.quietErrors property. 

  Changes:

o Update to findbugs 1.0.0.  


===


To automatically install the plugin, type the following on a single line:

maven plugin:download
  -Dmaven.repo.remote=http://maven-plugins.sourceforge.net/repository
  -DgroupId=maven-plugins
  -DartifactId=maven-findbugs-plugin
  -Dversion=1.3

For a manual installation, you can download the plugin here:
http://maven-plugins.sourceforge.net/repository/maven-plugins/plugins/maven-
findbugs-plugin-1.3.jar
 

Have fun!
-The FindBugs Plug-in development team


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



mvn deploy

2006-07-09 Thread Matthias Wessendorf

Hey,

I am getting this error

snip
[INFO] Error deploying artifact: Error executing command for transfer

Exit code 1 - 'ssh' is not recognized as an internal or external command,
operable program or batch file.
/snip

when trying mvn deploy on windoze

my settings.xml contains:

...
 servers
   server
 idapache-maven-snapshots/id
 usernamematzew/username
 configuration
   scpExecutablepscp/scpExecutable
 /configuration
   /server
 /servers

...


BTW pscp is in my $PATH

Any missing configuration ?

-Matt

--
Matthias Wessendorf

futher stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

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



RE: maven-scm-plugin goals question

2006-07-09 Thread Sharma, Jaikumar
Thanks. Well, this was a advice, and of course, this can always be
implmented / wrapped in another goal (like I have also wrapped this in
validate goal).

Thanks.

Jaikumar

-Original Message-
From: Eric Redmond [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 08, 2006 9:32 AM
To: Maven Users List
Subject: Re: maven-scm-plugin goals question


As a user, I always want to _do_ something. Logging in is, inherently, a
null operation. Sure, it changes my state (from non-logged in to logged
in) but only insomuch as to do the action that I _really_ want to do
(such as, commit or checkout). The issue with ANT is that it is
procedural. It makes you take steps (login, checkout, logout). Maven is
not procedural, it is declarative. From that point of view, what good
does it do anyone to declare log me in? It is the steps _after_ this
operation that are fruitful, so this is what the goals focus on. To log
oneself in turns a declared operation into a procedure.

Consider the example goal:
  mvn scm:commit

versus the alternate proposal:
  mvn scm:login scm:commit

See how that becomes procedural? I'm no longer just declaring the action
I want to take (commit), but now instead am directing how to take the
action.

Thanks;
Eric

On 7/7/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote:

 Thanks Eric, I was not sure whether I should post this questions to 
 maven users list or developer list.Though, to me it looks, more 
 developer list question than user list.

 Is it not worthwhile to provide login as a seperate goal ? or there 
 are
  some good reasons to not to provide this ?

 What would be the value in a goal that logs in, but does not perform 
 any actions?

 I do not believe that logging in into a system / repository is not an 
 action, if this  would have been like that then what is meaning of 
 security and why operating system providers (Microsoft , open source 
 Linux to name a few) implemented this behaviour into their system ?

 Thanks , Jaikumar


 -Original Message-
 From: Eric Redmond [mailto:[EMAIL PROTECTED]
 Sent: Saturday, July 08, 2006 2:39 AM
 To: Maven Users List
 Subject: Re: maven-scm-plugin goals question


 Please do not cross-post between lists. More below.

 On 7/7/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote:
 
  Dear all,
 
  As I see at the following URL goals provided by maven-scm-plugin, 
  these goals are general goals, but at the same time,  certain 
  actions

  / operations which are specific to a particular SCM does not really 
  match (for readibility / documentation reasons)  to these goals.
 
  http://maven.apache.org/scm/plugins/plugin-info.html
  http://maven.apache.org/scm/plugins/plugin-info.html
 
 
  For instance, take the login action,  which I think every provider 
  implements for it repository, and in most of the cases with other 
  providers which are implemented, login has been wrapped in URL in 
  the pom and there itself login take place.


 Is it not worthwhile to provide login as a seperate goal ? or there 
 are
  some good reasons to not to provide this ?


 What would be the value in a goal that logs in, but does not perform 
 any actions?

 Next, I would appreciate, if somebody could point me to the purpose of

 the
  following goals with repect to the provider repository :
 
  scm:diff
  scm:status
  scm:tag
  scm:unedit


 If I do not implement any of the goals or only implement which are 
 relevent
  / common goals which are relevent to my provider , then at the 
  higher level would I be missing any of the functinality provided by 
  Maven ?


 Of course, but that's not important. If an implementation does not 
 provide for a particular goal, then it just will not be available. SCM

 is just like
 any other API. Sometimes an implementation of an API cannot provide
all
 required functionality. Naturally, it is best to try, but if your
 provider
 does not have tag for example, naturally that goal cannot be used
 correctly.

 Regards, Jaikumar
 

 Thanks;
 Eric


- - - - - - - DISCLAIMER- - - - - - - -
Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically authorized to
receive it. If you are not the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this message and/or
attachments is strictly prohibited. The company accepts no liability for any
damage caused by any virus transmitted by this email. Furthermore, the
company does not warrant a proper and complete transmission of this
information, nor does it accept liability for any delays. If you have
received this message in error, please contact the sender and delete the
message. Thank you.


Execute ant task in order

2006-07-09 Thread Ty Cuz

Hi
I am trying to run ant task with maven2.  The ant task is to generate native
header by executing javah, thus it requires the class file.

The problem is the ant task was executing first before the java sources
compiled into class file, so I got the error of class could not be found
when executing ant task.

Is there a way to control the ant task to be executed at last?

Ty


Re: Maven findbugs Settings

2006-07-09 Thread Janhavi Phirke

To get the plugin into ur local repository, first you have to run the
command mvn install and then mvn findbugs:findbugs...did u do this? if
not, try this...


On 7/7/06, tulasi [EMAIL PROTECTED] wrote:



Dear friend ...

its failing...

[WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for
maven-plugins/maven-findbugs-plugin/1.0-SNAPSHOT/maven-
findbugs-plugin-1.0-SNAPSHOT.pom
- IGNORING
Downloading:

http://snapshots.maven.codehaus.org/maven2/maven-plugins/maven-findbugs-plugin/1.0-SNAPSHOT/maven-findbugs-plugin-1.0-SNAPSHOT.jar
5K downloaded
Downloading:

http://snapshots.maven.codehaus.org/maven2/maven-plugins/maven-findbugs-plugin/1.0-SNAPSHOT/maven-findbugs-plugin-1.0-SNAPSHOT.jar
5K downloaded
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'ad4ee38165e2235a24330a063a0d7961'; remote = '?N??e?#Z$3
ya' - IGNORING
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] null
[INFO]

[INFO] Trace
java.lang.NullPointerException
   at
org.apache.maven.plugin.DefaultPluginManager.addPlugin(
DefaultPluginManager.java:292)
   at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(
DefaultPluginManager.java:198)
   at
org.apache.maven.plugin.DefaultPluginManager.verifyReportPlugin(
DefaultPluginManager.java:487)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyReportPlugin(
DefaultLifecycleExecutor.java:1292)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(
DefaultLifecycleExecutor.java:657)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(
DefaultLifecycleExecutor.java:637)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:512)
   at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:475)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:454)
   at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:306)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.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(
DelegatingMethodAccessorImpl.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)
[INFO]

[INFO] Total time: 39 seconds
[INFO] Finished at: Fri Jul 07 19:08:31 GMT+05:30 2006
[INFO] Final Memory: 11M/20M
[INFO]


--
View this message in context:
http://www.nabble.com/Maven-findbugs-Settings-tf1906038.html#a5217462
Sent from the Maven - Users forum at Nabble.com.


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




Re: Execute ant task in order

2006-07-09 Thread Ty Cuz

Yes, it works now by changing the lifecycle phase, it was at
process-resources before.

Thanks for the help!

Ty


On 7/10/06, Tim Kettler [EMAIL PROTECTED] wrote:


Hi,

I assume you use the antrun-plugin to execute the ant task? If yes, just
bind it to a
lifecycle phase after the 'compile' phase. 'process-classes' for example.

As a sidenode. The native-maven-plugin [1] can create the header files and
build a library
from them (See [2] for an example for creating a msvc dll from javah
generated headers).
But I don't know if that is what you want.

Hope this helps
-Tim

[1] http://mojo.codehaus.org/maven-native/native-maven-plugin/
[2]
http://mojo.codehaus.org/maven-native/native-maven-plugin/examples.html

Ty Cuz schrieb:
 Hi
 I am trying to run ant task with maven2.  The ant task is to generate
 native
 header by executing javah, thus it requires the class file.

 The problem is the ant task was executing first before the java sources
 compiled into class file, so I got the error of class could not be found
 when executing ant task.

 Is there a way to control the ant task to be executed at last?

 Ty



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




Re: FTP via Maven?

2006-07-09 Thread Napoleon Esmundo Ramirez

Hello,

You could manually fetch those jars from ftp and install it in your local
repo (http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html)
or deploy it in an internal repo (
http://maven.apache.org/guides/mini/guide-3rd-party-jars-remote.html), so
you could normally declare those artifacts in your pom.xml.

Or maybe this could be useful too:
http://maven.apache.org/guides/mini/guide-deploy-ftp.html

Cheers!
Nap

On 7/7/06, Chris Wall [EMAIL PROTECTED] wrote:


Hey there.  We're dependent on jars from a non-Maven project.  The jars
are available via FTP.  Has anyone come up w/ an eloquent way of
integrating FTP within Maven?  I'd like to manage the dependencies and
configure FTP settings within pom.xml.

-Chris

___
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.