Re: generate JAR and all dependecy jars to a folder automatically

2006-11-22 Thread Martin Vysny
On Wed, 2006-11-22 at 10:20 +0100, [EMAIL PROTECTED] wrote:
 Hi,
 
 is there any possibility with maven (or a different tool) to create a folder 
 with the JAR of the project and all necessary JAR dependency files to run the 
 application?
 Right now i have to copy the other JAR files manually ;-(
 

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


 Regards,
 Thorsten
 
 example:
 
 pom.xml
 ?xml version=1.0?
 project
   modelVersion4.0.0/modelVersion
   groupIdgroup/groupId
   artifactIdemu/artifactId
   nameEmu/name
   version1.0/version
 
  dependencies
 dependency
   groupIdjava_help/groupId
   artifactIdjava_help/artifactId
   version2.0_02/version
 /dependency
 dependency
   groupIdjgoodies/groupId
   artifactIdforms/artifactId
   version1.0.7/version
 /dependency
 dependency
   groupIdSwingLayout/groupId
   artifactIdSwingLayout/artifactId
   version0.1/version
 /dependency
  /dependencies
 
 
 result:
 
emu-1.0.jar
 lib
  java_help-2.0_02.jar
  jgoodies-1.0.7.jar 
  SwingLayout-0.1.jar
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


signature.asc
Description: This is a digitally signed message part


Modifying dependency tree

2006-11-21 Thread Martin Vysny
Hello,
  I have a M2 project and I want to create a zip with dependencies using
assembly. Let's say that one of transitive dependencies is
org.springframework:spring-beans. However, spring-beans with all its
dependencies will be provided by the runtime environment so I don't need
them to be packaged in the result zip file. I tried to set
org.springframework:spring-beans's scope to 'provided' but it does not
work as expected - all its dependencies's scopes are reverted back to
'compile' as specified in [1]. So, is there some way to remove a
dependency and its transitive dependencies from the project's dependency
tree? I'd really hate to enumerate all transitive dependencies manually
in the exclude element of the assembly descriptor. Thank you very
much!

[1]
http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict
+Resolution#DependencyMediationandConflictResolution-Scoperesolution




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



test resources: empty directories are ignored

2006-11-07 Thread Martin Vysny
Hi,
  I have several directories located in the src/test/resources and I
need them to be copied to target/test-classes. This is of course handled
by maven-resources-plugin, however it does not copy empty directories. I
know it sounds insane to access empty dirs using classloader but I have
my reasons ;)

Thanks in advance,
Martin Vysny


signature.asc
Description: This is a digitally signed message part


RE: Transitive dependecies

2006-11-07 Thread Martin Vysny
On Tue, 2006-11-07 at 17:27 +0100, Sebastien Brunot wrote:
 Hi Wendy,
 
 Are you trying to tell me that the feature I'm asking about does not
 exists in maven 2 (inheriting dependencies from a pom without
 transitivity, but with a scope that makes them copied in WEB-INF/lib
 when I'm working on a war project) ?
 

Try to define those dependencies you *don't* want to appear in the lib
directory with scope 'provided'. Dependency with 'provided' scope is
defined as being provided by the environment (for example by the JEE
server).

 Sebastien
 
 -Original Message-
 From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, November 07, 2006 5:18 PM
 To: Maven Users List
 Subject: Re: Transitive dependecies
 
 On 11/7/06, Sebastien Brunot [EMAIL PROTECTED] wrote:
 
  transitive dependencies can be a real pain when you have a lot of 
  external dependencies in your project. Using exclusions tags is a 
  tedious operation in this case, so I was wondering if a quicker way 
  exists...
 
 Having to use a lot of exclusions generally means that the poms are
 broken.  (For example, things that should be marked optional, aren't.)
 
 What dependencies are causing problems?
 
 --
 Wendy
 
 -
 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]
 
 


signature.asc
Description: This is a digitally signed message part


Re: Maven-Dependency-Plugin

2006-08-08 Thread Martin Vysny
On Mon, 2006-07-17 at 13:13 -0700, dan tran wrote:
 maven-dependency-plugin-2.0-SNAPSHOT is stable for me
 
 + if we can cut a beta release
 
 -D
 

And may I know how to execute maven-dependency-plugin from the
commandline? Invoking mvn dependency:sources downloads old
dependency-maven-plugin from codehaus.
Thanks


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



Re: Java EE

2006-07-11 Thread Martin Vysny
On Tue, 2006-07-11 at 09:04 +0200, Markus Wolf wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 repository
   snapshots
 enabledfalse/enabled
   /snapshots
   idjava-net/id
   namejava.net repository/name
   !-- NOTE: this URL must be HTTPS.  However, unfortunately this
doesn't work behind a firewall.  See:
  http://jira.codehaus.org/browse/WAGONHTTP-6
... for the source of that problem.  Users behind firewalls
will have to manually download the files from this repository
and transfer them to their local repository.
   --
   urlhttps://maven-repository.dev.java.net/nonav/repository//url
   layoutlegacy/layout
 /repository
  
 
 This repository and the javax.persistence groupId are great. Thanks for
 this.
 But I'm missing some more API's from JavaEE (like @Remote or @Stateless,
  ...). Is there anything available? I know Sun releases a javaee.jar
 package with SAS and Glashfish containing all JavaEE APIs in one, but
 there is no maven repository for it.
 

I made a small example app for Seam/EJB3, you may download it here:
http://vyzivus.host.sk/maven2-seam.html. The dependencies are not
perfect but I hope it helps.
Sincerely,
Martin



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



Re: eclipse plugin archetype

2006-06-25 Thread Martin Vysny
On Sat, 2006-06-24 at 19:04 -0400, Kevin Galligan wrote:
 Anybody if there is an archetype and a packaging model for building eclipse
 plugins?  It doesn't look overly complicated, but before I embark on this
 project, I figured I'd ask.

I am trying to put together a howto on creating and maintaining plugin
project in Maven2, here
http://vyzivus.host.sk/maven2-build-plugin-howto.html. The howto is
still incomplete, but I'll be glad if someone could test it and report
errors. You may use jar packaging for your POM.

Sincerely,
Martin


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



Re: [m2] what plugin versions are used

2006-06-01 Thread Martin Vysny
On Wed, 2006-05-31 at 15:09 -0500, Lee Meador wrote:
 Is there a more concise way to see a list or does anyone have a trick or
 something to search for to week out all the other stuff that the -X
 generates (besides versions)?

mvn site
Project Documentation  Project Information  Dependencies
:)

 
 On 5/31/06, Wayne Fay [EMAIL PROTECTED] wrote:
 
  mvn -X shows versions.
 
  Wayne
 
  On 5/31/06, Lee Meador [EMAIL PROTECTED] wrote:
   Is there an easy way to tell what all plugins were used in building
   something? I'm not really wondering about ALL the plugins. I really need
  the
   top level of them so I can insulate my build from changes made to maven
  2 by
   putting them in pluginMaintenence in a parent pom. By top-level I mean
  the
   ones that would be changing without me doing something. Some
  dependencies
   and nested dependencies have a version number defined. If a version
  number
   is defined, most of that dependency's dependencies seem to have versions
   defined too. Some don't. I want to know which ones don't.
  
   Is there a target I can put on the command line to look all that up or a
   report I can create or a plugin that generates a list of such versions?
  
   -- Lee Meador
   Sent from gmail. My real email address is [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: [m2] what plugin versions are used

2006-06-01 Thread Martin Vysny
On Thu, 2006-06-01 at 12:23 +0200, Roland Asmann wrote:
 I believe this does NOT show the plugins that were used, or does it? (Just 
 making sure)
 
 Roland
 

You're right. I'm sorry. I overlooked that you wanted version of
*plugins*, not *dependencies*.

 
 
 On Thursday 01 June 2006 10:50, Martin Vysny wrote:
  On Wed, 2006-05-31 at 15:09 -0500, Lee Meador wrote:
   Is there a more concise way to see a list or does anyone have a trick or
   something to search for to week out all the other stuff that the -X
   generates (besides versions)?
 
  mvn site
  Project Documentation  Project Information  Dependencies
 
  :)
  :
   On 5/31/06, Wayne Fay [EMAIL PROTECTED] wrote:
mvn -X shows versions.
   
Wayne
   
On 5/31/06, Lee Meador [EMAIL PROTECTED] wrote:
 Is there an easy way to tell what all plugins were used in building
 something? I'm not really wondering about ALL the plugins. I really
 need
   
the
   
 top level of them so I can insulate my build from changes made to
 maven
   
2 by
   
 putting them in pluginMaintenence in a parent pom. By top-level I
 mean
   
the
   
 ones that would be changing without me doing something. Some
   
dependencies
   
 and nested dependencies have a version number defined. If a version
   
number
   
 is defined, most of that dependency's dependencies seem to have
 versions defined too. Some don't. I want to know which ones don't.

 Is there a target I can put on the command line to look all that up
 or a report I can create or a plugin that generates a list of such
 versions?

 -- Lee Meador
 Sent from gmail. My real email address is [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]



Re: install-file generatePom

2006-05-16 Thread Martin Vysny
On Tue, 2006-05-16 at 11:27 +0200, Borut Bolčina wrote:
 When removing
 mirror
 idplanetmirror.com/id
 nameplanetmirror Mirror of
 http://repo1.maven.org/maven2//name
 urlhttp://public.planetmirror.com/pub/maven2/url
 mirrorOfcentral/mirrorOf
 /mirror
 
 it installed install-plugin and the 3rd party jar. It looks
 planetmirror is no good!

Yeah, don't use it. All well-behaved webservers just return 404 NOT
FOUND when a page cannot be found - thus Maven knows that the resource
cannot be found on given repository. However, some stupid webservers
(such as planetmirror) returns a regular webpage that contains the Not
found text. Maven2 cannot know that the resource is not available and
uses that Not found page instead of any resource that it tries poll
from that repository. So, maven's local repository becomes corrupted and
full of Not found pages. You need to:
- remove all such resources (you need to check ALL files - .jar, .xml
etc), from Maven2 local repository,
- never use such repository again.

 
 On 16.5.2006 11:20, Jakub Pawlowicz wrote: 
  Hi!
  
  It seems that maven-metadata-central.xml is corrupted. 
  Try to delete it and then rerun the mvn install.
  
  HTH
  
  Regards,
  Jakub
  
  On Tue, 16 May 2006 11:12:12 +0200, Borut Bolčina wrote

   I am loosing battle with maven...
   
   I removed .m2\repository\org\apache\maven\plugins\maven-install-
   plugin. Now when trying to install some 3rd party jar
   
   mvn install:install-file -DgroupId=jxl -DartifactId=jxl
   -Dversion=2.5.9 -DgeneratePom
   =true -Dpackaging=jar -Dfile=jxl.jar
   [INFO] Scanning for projects...
   [INFO] Searching repository for plugin with prefix: 'install'.
   [INFO]
   
   
   [ERROR] BUILD ERROR
   [INFO]
   
   
   [INFO] Error building POM (may not be this project's POM).
   
   Project ID: org.apache.maven.plugins:maven-install-plugin
   
   Reason: Error getting POM for
   'org.apache.maven.plugins:maven-install-plugin' from the repository:
   Unable to read local copy of me
   tadata: Cannot read metadata from 'C:\Documents and
   Settings\borutb\.m2\repository\org\apache\maven\plugins\maven-
   install-plugin\maven-metadata-central.xml': end tag name /head 
   must be the same asstart tag link from line 12 (position: TEXT 
   seen .../planetmirror.com/themes/standard/pm.css\'
   
  type=\'text/css\'\n/head...

   @13:8)
 org.apache.maven.plugins:maven-install-plugin:pom:LATEST
   
   The install plugin is not installed.
   
   In my settings.xml
   
   mirrors
   mirror
   idplanetmirror.com/id
   nameplanetmirror Mirror of 
   http://repo1.maven.org/maven2//name
   urlhttp://public.planetmirror.com/pub/maven2/url
   mirrorOfcentral/mirrorOf
   /mirror
   mirror
   mirrorOfsnapshots/mirrorOf
   namesnapshots codehaus hack/name
   idsnapshots codehaus hack/id
   urlhttp://www.ibiblio.org/maven2//url
   /mirror
   /mirrors
   
   What is going on?
   
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  

 
 -- 
 bLOG
 --
 Naključna izjava tedna iz tednika Mladina:
 


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



assembly plugin: dependency wildcards

2006-05-16 Thread Martin Vysny
Hi,
  is there a way to use wildcards in include/exclude elements in
dependency sets? There is a feature requirement [1], not yet
implemented. I was wondering if new features in assembly plugin 2.1 [2]
and [3] may provide this functionality (maybe I can define a repository
with a set of version-aligned dependencies, and include a dependency on
this repository in the dependencySet element). Anybody tried it and/or
got it working?
Sincerely,
Martin

[1] http://jira.codehaus.org/browse/MASSEMBLY-41
[2] http://jira.codehaus.org/browse/MASSEMBLY-84
[3] http://jira.codehaus.org/browse/MASSEMBLY-86



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



Re: Errors in pom´s on ibiblio concurren, stax

2006-05-09 Thread Martin Vysny
On Tue, 2006-05-09 at 15:45 +0200, Jens Zastrow wrote:
 http://www.ibiblio.org/maven2/stax/stax/1.1.2-dev/stax-1.1.2-dev.pom
 Has an dependency to xmlbeans-jsr173-api 
 dependency
 groupIdxmlbeans/groupId
 artifactIdxmlbeans-jsr173-api/artifactId
 version2.0-dev/version
 /dependency
 
 There is no such on ibiblio, see 
 http://www.mail-archive.com/user@mojo.codehaus.org/msg00010.html
 

You may use this repository http://julien.dubois.free.fr/maven2/
Sincerely,
Martin


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



M2 Assembly pack files into root

2006-05-07 Thread Martin Vysny
Hello,
  the assembly plugin creates an archive with the filestructure rooted
in a /$artifactId-$version/ directory. However I am trying to build an
eclipse plugin .jar which requires files to be placed in the root of the
archive. Is there a way to achieve this?
Sincerely,
Martin


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