Re: License collection

2011-01-22 Thread Yoav Landman
You may also want to have a look at the Artifactory license addon, which
does exactly that - finds the licenses of all dependencies of a build
(including searching in parent poms) with the ability to assign
custom license information + generate a report with selective dependency
scopes. It is part of Artifactory Pro.

http://wiki.jfrog.org/confluence/display/RTF/License+Control

On Sat, Jan 22, 2011 at 6:01 AM, Rui Vilão rpvi...@gmail.com wrote:

 Hi,

 Thank you all for replying.

 As Stevo mentioned I'm using maven-license-plugin to generate headers as
 well. But I need to include the licenses of the dependencies I'm using in
 order to distribute my software. I believe it would be great if developers
 include the license in the license tag in order for plugins to collect and
 download them. The behavior would be something like the described here:

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

 like Wayne mentioned. As far as I can see there's no simple approach to do
 this, so I believe I will use the report plugin and collect them myself
 with
 my bare hands :p

 Anyway, thank you for your time!

 --
 Rui

 On Fri, Jan 21, 2011 at 7:26 PM, Kalle Korhonen
 kalle.o.korho...@gmail.comwrote:

  As Wayne mentioned, most of the modules contain an url to a license
  rather than have it checked in. Perhaps you just need the license
  report instead? The dependencies report of the mpir plugin has had a
  license section for quite some time, I use it all the time. See e.g.
  the dependency report of the mpir plugin itself:
 
 
 http://maven.apache.org/plugins/maven-project-info-reports-plugin/dependencies.html
  .
 
  Kalle
 
 
  On Fri, Jan 21, 2011 at 9:30 AM, Rui Vilão rpvi...@gmail.com wrote:
   Hi all,
  
   I'm trying to automate licensing collection for my product. What I want
  is
   simple: collect (i.e. download) all licenses of my dependencies and
 store
   them in a folder.
  
   Does anyone know if there's a plugin that does what I'm trying to
   accomplish? I've heard about license-maven-plugin (
   http://mojo.codehaus.org/license-maven-plugin/ ) but I couldn't even
   download it.
  
   Thanks in advance,
  
   Rui
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 




-- 
Yoav


Re: Create artifacts library for downloaded IBM jar files.

2011-01-22 Thread Yoav Landman
On Thu, Jan 20, 2011 at 3:06 PM, Wendy Smoak wsm...@gmail.com wrote:

 On Thu, Jan 20, 2011 at 6:51 AM, Jonathan Vila Lopez
 jonathan.v...@gmail.com wrote:

  As the IBM MQSeries jars are not in the apache maven repositories, I have
  downloaded the jars but now I would like to add to my Artifactory
  repository. but I have to do that one jar by one.

 That would be something to ask the Artifactory folks.  Maybe they have
 a way to upload a bundle of jars at once.


Yes, you can create an artifact bundle (zip archive) and upload it to
Artifactory in one go or use repository import. Like Wendy suggested, it's
better if you ask on artifactroy-users for more details.



 It's probably just as easy to write a shell script to mvn
 deploy:deploy-file ... the list of jars though.

  Is there any other better way to do that ? We are 4 developers and I
 would
  like to avoid that all of us have to download the jars and put them in
 our
  local repository.

 Adding them to your internal repo manager will solve that.

 --
 Wendy

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




-- 
Yoav


Native dependencies best practices

2011-01-22 Thread Ruben Garat
Hi, I am trying to help get a project (Lightweight Java Game Library 
http://lwjgl.org/) into Maven Central repository.

This project is the most used way for java games to use opengl.

The project is made of a main jar lwjgl.jar and some natives for each 
platform.


I have to main questions:

*What should be the id of the native artifacts:*

For now, what I am using is having a classifier composed of 
natives-${platform} like natives-win, natives-mac, natives-linux. I 
think this is a useful naming convention because it allows the creation 
of a plugin (maven-natives-plugin 
http://code.google.com/p/mavennatives/) that matches those classifiers 
and unpacks the natives. This allows you to add them to the 
java.library.path. Also it allows the creation of an eclipse plugin so 
that everything is configured automatically.



*The other issue is what should be the artifactId of the native artifacts:*
In my personal repository I added the natives using the same artifactId 
as the main artifact, but with the natives-${platform} classifier, and 
added the natives as dependencies of the main artifact.


   *main artifact: groupId:org.lwjgl - artifactId: lwjgl
   *natives artifacts: groupId: org.lwjgl - artifactId: lwjgl -
 classifier: natives-${platform}

This solutions works great because you don't have to declare the natives 
when you add a dependency.
The problem came when I tried create a build of the project made with 
maven, because the main artifact depends on the natives, but they share 
the groupId and artifactId maven complains that there is a cycle and 
refuses to build.
Shouln't it work if I use runtime as scope for the native dependencies? 
At build time they should not be used, so the build shouldn't complain 
about a cycle and then I can attach them to the result of the build.
I could use a different artifactId, but there is no natural name for 
that, the only thing that comes to mind, is oldartifactId-natives but 
that would clash with the proposed naming convention using 
natives-${platform} as classifier.



so the questions are:

   *  is the proposed naming convention for artifacts with natives
 (natives-${platform}) a good one? is there anyone better?
   *  should I be able to define cycles if the dependencies have
 runtime scope?. If I can't or is not recommended what would you
 recommend as an artifactId?

thanks for the help

Rubén



Re: Archetype Plugin does not automatically call the update-local-catalog goal

2011-01-22 Thread Hervé BOUTEMY
if you set packaging to maven-archetype instead of jar, you'll get the 
expected result
see FAQ http://maven.apache.org/archetype/maven-archetype-plugin/faq.html

Regards,

Hervé

Le vendredi 14 janvier 2011, Thiébault Benoît a écrit :
 Hi everyone,
 
 I am building new archetypes to normalize my software developments and I
 encounter what seems to be a bug.
 
 In the documentation it is written that the update-local-catalog goal is
 bound by default to the lifecycle phase: install.
 
 However, when I build my archetype, Maven (2.2.1) does not execute the goal 
and I have to run it manually to add the archetype to the local catalog. Here 
is what Maven prints:
  mvn install
 
 [INFO] Scanning for projects...
 [INFO]
 
 [INFO] Building archetype for standard projects
 [INFO]task-segment: [install]
 [INFO]
 
 [INFO] [resources:resources {execution: default-resources}]
 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 [INFO] Copying 9 resources
 [INFO] [compiler:compile {execution: default-compile}]
 [INFO] Nothing to compile - all classes are up to date
 [INFO] [resources:testResources {execution: default-testResources}]
 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 [INFO] Copying 0 resource
 [INFO] [compiler:testCompile {execution: default-testCompile}]
 [INFO] Nothing to compile - all classes are up to date
 [INFO] [surefire:test {execution: default-test}]
 [INFO] Surefire report directory:
 /Users/ben/Documents/workspace/com-artenum-archetype/target/surefire-repor
 ts
 
 ---
  T E S T S
 ---
 There are no tests to run.
 
 Results :
 
 Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
 
 [INFO] [jar:jar {execution: default-jar}]
 [INFO] [install:install {execution: default-install}]
 [INFO] Installing
 /Users/ben/Documents/workspace/com-artenum-archetype/target/com-artenum-ar
 chetype-1.0.0-SNAPSHOT.jar to
 /Users/ben/.m2/repository/com/artenum/com-artenum-archetype/1.0.0-SNAPSHOT
 /com-artenum-archetype-1.0.0-SNAPSHOT.jar [INFO]
 
 [INFO] BUILD SUCCESSFUL
 [INFO]
 
 [INFO] Total time: 7 seconds
 [INFO] Finished at: Fri Jan 14 11:17:56 CET 2011
 [INFO] Final Memory: 16M/81M
 [INFO]
 
 
 The file is correctly install in the repository, but the catalog is not
 updated. Is it me or is it a bug?
 
 Here is my POM:
 
 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;
 modelVersion4.0.0/modelVersion
 
   !-- === --
   !-- POM relationships --
   !-- === --
 
   !-- Maven coordinates --
   groupIdcom.artenum/groupId
   artifactIdcom-artenum-archetype/artifactId
   version1.0.0-SNAPSHOT/version
 
   !-- === --
   !-- General project information --
   !-- === --
 
   !-- General project information --
   nameArtenum archetype for standard projects/name
   description
 This archetype shall be used to create new standardized Artenum
 project. /description
   urlhttp://www.artenum.com/url
   organization
   nameArtenum/name
   urlhttp://www.artenum.com/url
   /organization
   inceptionYear2011/inceptionYear
 
   !-- Project licenses --
   licenses
   license
   nameGeneral Public License (GPL)/name
   
 urlhttp://www.gnu.org/licenses/old-licenses/gpl-2.0.txt/url
   /license
   /licenses
 
   !-- Development team --
   developers/developers
 
   !-- External contributors --
   contributors/contributors
 
   !-- === --
   !-- Build settings --
   !-- === --
 
   !-- Packaging --
   packagingjar/packaging
 
   !-- Properties --
   properties
   
 project.build.sourceEncodingUTF-8/project.build.sourceEncoding
   /properties
 
   !-- Build --
   build
   extensions
   extension
   groupIdorg.apache.maven.archetype/groupId
   artifactIdarchetype-packaging/artifactId
   version2.0/version