including dependencies not working in 2.2-beta-5 but works in 2.2-beta-2

2010-07-21 Thread Vitali Hryb

Hi!
By creating project as described on 
http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html
will not get results as expected. Only module artifact included without 
dependencies.
I have tested it with 2.2-beta-5, 2.2-beta-4, 2.2-beta-3. But it works 
as expected in 2.2-beta-2!


Have anybody met this issue.

--

Med hilsen
Norphonic as
Vitali Hryb

Telefon/Phone : +47 55 62 75 24
Mobil/Mobile : +47 992 39 777
Telefaks/Fax : +47 55 59 05 16

vitali.h...@norphonic.com
www.norphonic.com


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



[ANN] Exec Maven Plugin 1.2 Released

2010-07-21 Thread Robert Scholte

The Mojo team is pleased to announce the release of the Exec Maven Plugin 
version 1.2.
 

The plugin provides 2 goals to help execute system and Java programs.


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

To get this update, simply specify the version in your project's plugin
configuration:

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdexec-maven-plugin/artifactId
version1.2/version
/plugin


Release Notes - Maven 2.x Exec Plugin - Version 1.2 
Bug 

[MEXEC-48] - multiple execution in exec-maven-plugin 
[MEXEC-51] - classpath scope of runtime should pick up compile scope 
dependencies 
[MEXEC-64] - classpathScope runtime should include as well compile 
dependencies 
[MEXEC-68] - classpath too long problem 
[MEXEC-72] - exec:exec mojo does not correctly pass arguments with spaces 
[MEXEC-75] - Strange encoding of environment variables when using exec plugin 
[MEXEC-79] - Use File.toURI().toURL() when adding dependencies to the 
classpath. 
[MEXEC-81] - Windows paths always fail 
Improvement 

[MEXEC-37] - {exec.args} should support embedded spaces in ExecMojo 
[MEXEC-62] - The default for classPathScope should be runtime not compile 
[MEXEC-67] - Full command line should be printed in debug mode. 
[MEXEC-82] - exec:java add support for parameter 'skip' 
New Feature 

[MEXEC-25] - exec:exec mojo support interaction with user 
 

 

 

Enjoy,

The Mojo team.
 
- Robert Scholte
  
_
New Windows 7: Simplify what you do everyday. Find the right PC for you.
http://windows.microsoft.com/shop

Why does nexus take so much space in the workspace?

2010-07-21 Thread Usirs

Why does nexus take so much space in the workspace?

When I check the size of my workspace I find that nexus (in
workspace\.metadata\.plugins\org.maven.ide.eclipse\nexus) takes up alot of
space. About 400Mb, this is more that twice the size of eclipse with all
addons excluding nexus.

Why does it take up so much space and is there anything I can do to stop it?
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Why-does-nexus-take-so-much-space-in-the-workspace-tp1693067p1693067.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Issue with Maven WAR plugin and overlay when using war:inplace

2010-07-21 Thread Julien HENRY
Hi all,

I have a web application that depends on another WAR (overlay). According to 
m-war-p documentation [1], the current application is priority #1 and then come 
dependent war. My understanding is that when there are two files with same path 
in both current application and dependent war, this is the file in current 
application that should ultimately be taken to produce the final war.

Example: 
current application contains the file src/main/webapp/WEB-INF/web.xml

dependent war contain a nearly empty file dependentWar.war!WEB-INF/web.xml

When I run mvn war:inplace I can read in the log:

[INFO] --- maven-war-plugin:2.1-beta-1:inplace (default-cli) @ myWebApp ---
...
[INFO] Processing war project
[INFO] Processing overlay[ id com.mycompany:dependentWar]
...
[INFO] File[WEB-INF/web.xml] belonged to overlay[currentBuild] so it will be 
overwritten.

As a result the src/main/webapp/WEB-INF/web.xml file was overwritten in the 
current application by the file coming from the dependent WAR.


If I run mvn war:exploded the result is correct and the file in 
target/myCurrentWebApp-XX-SNAPSHOT/WEB-INF/web.xml is the one coming from the 
current web app.

Is it a known issue? Do you know if there is a workaround?



Regards,

Julien


[1] http://maven.apache.org/plugins/maven-war-plugin/overlays.html





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



Re: [Maven 2] plugin using project ressources

2010-07-21 Thread anis chaaba
So, no answers ? no solutions ? nobdoy tried to do the same thing ? :(

On Tue, Jul 20, 2010 at 10:27 AM, anis chaaba anis.cha...@gmail.com wrote:

 *Attachement does not work so here are my sources.*
 *
 *
 *package bundle.plugin;*
 *
 *
 */**
 * * Copyright 2001-2005 The Apache Software Foundation.*
 * **
 * * Licensed under the Apache License, Version 2.0 (the License);*
 * * you may not use this file except in compliance with the License.*
 * * You may obtain a copy of the License at*
 * **
 * *  http://www.apache.org/licenses/LICENSE-2.0*
 * **
 * * Unless required by applicable law or agreed to in writing, software*
 * * distributed under the License is distributed on an AS IS BASIS,*
 * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 implied.*
 * * See the License for the specific language governing permissions and*
 * * limitations under the License.*
 * */*
 *
 *
 *import java.io.File;*
 *import java.lang.reflect.Method;*
 *import java.net.URL;*
  *import java.net.URLClassLoader;*
 *import java.util.ArrayList;*
 *import java.util.List;*
 *import java.util.ResourceBundle;*
 *
 *
 *import org.apache.maven.plugin.AbstractMojo;*
 *import org.apache.maven.plugin.MojoExecutionException;*
 *import org.apache.maven.project.MavenProject;*
 *
 *
 */***
 * * Goal which touches a timestamp file.*
 * * *
 * * @goal exec*
 * * *
 * * @phase process-sources*
 * * *
 * * @requiresProject true*
 * */*
 *public class MyMojo extends AbstractMojo*
 *{*
 */***
 * * @parameter expression=${project}*
 * */*
 *private MavenProject project;*
 *
 *
 */***
 * * iMaven Internal/i: List of artifacts for the plugin.*
 * * *
 * * @parameter expression=${plugin.artifacts}*
 * * @requiresDependencyResolution compile*
 * * @required*
 * * @readonly*
 * */*
 *protected List pluginClasspathList;*
 **
 */***
 * * This is where the generated java sources are stored.*
 * * *
 * * @parameter
 expression=${project.build.directory}/jasperreports/java*
 * */*
 *private File javaDirectory;*
 **
 */***
 * * Any additional classpath entry you might want to add to the
 JasperReports compiler. Not recommended for general*
 * * use, plugin dependencies should be used instead.*
 * * *
 * * @parameter*
 * */*
 *private String additionalClasspath;*
 *
 *
 */***
 * * @parameter expression=${project.compileClasspathElements}*
 * */*
 *private List classpathElements;*
 *
 *
 *public void execute() throws MojoExecutionException*
 *{*
 *
 *
 *StringBuilder classpath = new
 StringBuilder(System.getProperty(java.class.path, ));*
 *classpath.append(${plugin.artifacts});*
 *System.setProperty(java.class.path, classpath.toString());*
 *getLog().info(*);*
 *getLog().info(System.getProperty(java.class.path));*
 *ClassLoader classLoader =
 getClassLoader(ClassLoader.getSystemClassLoader());*
 *Thread.currentThread().setContextClassLoader(classLoader);*
 **
 *getLog().info(project  + javaDirectory);*
 *project.addCompileSourceRoot(javaDirectory.getAbsolutePath());*
 *try*
 *{*
 *Class ress =
 classLoader.loadClass(ResourceBundle.class.getName());*
 *   // getMethod( run, List.class,*
 *Method getB = ress.getMethod(getBundle, new Class[]
 {String.class});*
 *ResourceBundle bundle = (ResourceBundle) getB.invoke(null,
 new Object[] {localisations});*
 *getLog().info(bundle.getString(appli.web.root));*
 *}*
 **
 *catch (Exception e)*
 *{*
 *e.printStackTrace();*
 *}*
 *   *
 *   // ResourceBundle bundle =
 ResourceBundle.getBundle(localisations);*
 *   *
 *}*
 **
 *private ClassLoader getClassLoader(ClassLoader classLoader) throws
 MojoExecutionException*
 *{*
 *List classpathURLs = new ArrayList();*
 *
 *
 *for (int i = 0; i  classpathElements.size(); i++)*
 *{*
 *String element = (String) classpathElements.get(i);*
 *try*
 *{*
 *getLog().info(classpathElements  + element);*
 *File f = new File(element);*
 *URL newURL = f.toURI().toURL();*
 *classpathURLs.add(newURL);*
 *getLog().debug(Added to classpath  + element);*
 *}*
 *catch (Exception e)*
 *{*
 *throw new MojoExecutionException(Error parsing classparh
  + element +   + e.getMessage());*
 *}*
 *}*
 *
 *
 *if (additionalClasspath != null  additionalClasspath.length() 
 0)*
 *{*
 *String[] elements =
 additionalClasspath.split(File.pathSeparator);*
 *for (int i = 0; i  elements.length; i++)*
 *{*
 *String element = 

[ANN] Maven Repository Plugin 2.3.1 Released

2010-07-21 Thread Benjamin Bentmann
The Maven team is pleased to announce the release of the Maven 
Repository Plugin, version 2.3.1.


This plugin assists the user in creating archived bundles that are 
designed to meet all requirements for upload to the central Maven 
repository. Please see the plugin's site for more details:


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

To use the updated plugin in your projects, you need to add the
following snippet to the plugins or plugin management section of your POM:

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-repository-plugin/artifactId
version2.3.1/version
  /plugin

Release Notes - Maven 2.x Repository Plugin - Version 2.3.1

** Bug
* [MREPOSITORY-22] - repository:bundle-create ignores -f directive 
(different pom.xml file)
* [MREPOSITORY-23] - Wrong error message [INFO] project.scm.url 
must be present.
* [MREPOSITORY-24] - bundle-create mojos emits bogus warning about 
missing sources/javadocs if main artifact is not a jar


Enjoy,


-The Maven team


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



Re: Reverse dependency:tree?

2010-07-21 Thread Ron Wheeler
 It would seem like a useful function on a repository and a lot less 
stuff to check out.

Have you asked this in the Nexus forum?


On 20/07/2010 2:28 AM, Wim Deblauwe wrote:

I don't know of such a tool, but if you are running linux, you could create
a shell script that relies on dependency:tree. You would need to check out
all the projects you want to monitor, run dependency:tree (or
dependency:list) on them with a grep on the artifact and print out those
that match. You probably don't even need to use grep, I think there are some
options to tweak the plugin to only print the dependency you look for.

regards,

Wim

2010/7/20 Ben Caradoc-Daviesben.caradoc-dav...@csiro.au


Is there a plugin or command-line tool that can list all artifacts in a
local repository (or even in a multimodule project) that depend, directly or
transitively, on a given artifact? This is the opposite of dependency:tree,
which only displays dependencies.

Maven Dependency Browser is no longer maintained and is a GUI. IDE plugins
seem like overkill.

The problem I am trying to solve is to automatically determine which higher
level artifacts need to have their dependencies updated when a lower level
artifact is updated. Extra credit for being as simple and easy-to-use as
dependency:tree.  :-)

--
Ben Caradoc-Daviesben.caradoc-dav...@csiro.au
Software Engineering Team Leader
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

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






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




Re: Reverse dependency:tree?

2010-07-21 Thread Anders Hammar
I believe it has been discussed in the nexus user mailing list and IIRC it
is a planned feature, but it requires some Maven 3 features I think.

/Anders

On Wed, Jul 21, 2010 at 00:51, Ron Wheeler
rwhee...@artifact-software.comwrote:

  It would seem like a useful function on a repository and a lot less stuff
 to check out.
 Have you asked this in the Nexus forum?


 On 20/07/2010 2:28 AM, Wim Deblauwe wrote:

 I don't know of such a tool, but if you are running linux, you could
 create
 a shell script that relies on dependency:tree. You would need to check out
 all the projects you want to monitor, run dependency:tree (or
 dependency:list) on them with a grep on the artifact and print out those
 that match. You probably don't even need to use grep, I think there are
 some
 options to tweak the plugin to only print the dependency you look for.

 regards,

 Wim

 2010/7/20 Ben Caradoc-Daviesben.caradoc-dav...@csiro.au

  Is there a plugin or command-line tool that can list all artifacts in a
 local repository (or even in a multimodule project) that depend, directly
 or
 transitively, on a given artifact? This is the opposite of
 dependency:tree,
 which only displays dependencies.

 Maven Dependency Browser is no longer maintained and is a GUI. IDE
 plugins
 seem like overkill.

 The problem I am trying to solve is to automatically determine which
 higher
 level artifacts need to have their dependencies updated when a lower
 level
 artifact is updated. Extra credit for being as simple and easy-to-use as
 dependency:tree.  :-)

 --
 Ben Caradoc-Daviesben.caradoc-dav...@csiro.au
 Software Engineering Team Leader
 CSIRO Earth Science and Resource Engineering
 Australian Resources Research Centre


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





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





Copy target file from another module

2010-07-21 Thread Will Hoover
I have a multi-module project where one of the modules needs to copy
internally generated file(s) that do not come from any maven-aware resources
from a module to a WAR module for inclusion. The following works, but it
seems like a hack using directory to get to the module where the file(s)
exist. Is there a better way?


WAR module:
plugin
groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-resources-plugin/artifactId
executions
execution
phasevalidate/phase
goals

goalcopy-resources/goal
/goals
configuration

outputDirectory${project.build.directory}/${project.build.finalName}/outp
utDirectory
resources
resource

directory${basedir}/../other-module-with-generated-files/target/directory


filteringfalse/filtering
/resource
/resources
/configuration
/execution
/executions
/plugin 


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



Re: Copy target file from another module

2010-07-21 Thread Thomas Sundberg
Hi!

Why not do it the Maven way and create a module with the generated
sources and make the other (2?) modules dependant of it?
This would eliminate the need of a hack that copy files from one
module to another.

/Thomas

On Wed, Jul 21, 2010 at 15:49, Will Hoover java.whoo...@gmail.com wrote:
 I have a multi-module project where one of the modules needs to copy
 internally generated file(s) that do not come from any maven-aware resources
 from a module to a WAR module for inclusion. The following works, but it
 seems like a hack using directory to get to the module where the file(s)
 exist. Is there a better way?


 WAR module:
                        plugin
                                groupIdorg.apache.maven.plugins/groupId

 artifactIdmaven-resources-plugin/artifactId
                                executions
                                        execution
                                                phasevalidate/phase
                                                goals

 goalcopy-resources/goal
                                                /goals
                                                configuration

 outputDirectory${project.build.directory}/${project.build.finalName}/outp
 utDirectory
                                                        resources
                                                                resource

 directory${basedir}/../other-module-with-generated-files/target/directory


 filteringfalse/filtering
                                                                /resource
                                                        /resources
                                                /configuration
                                        /execution
                                /executions
                        /plugin


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





-- 
Thomas Sundberg
M. Sc. in Computer Science

Mobile: +46 70 767 33 15
Blog: http://thomassundberg.wordpress.com/
Twitter: @thomassundberg

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



Re: Copy target file from another module

2010-07-21 Thread Thomas Markus

 Hi,

create a war with your generated sources and use it as a war overlay

regards
Thomas


Am 21.07.2010 15:49, schrieb Will Hoover:

I have a multi-module project where one of the modules needs to copy
internally generated file(s) that do not come from any maven-aware resources
from a module to a WAR module for inclusion. The following works, but it
seems like a hack usingdirectory  to get to the module where the file(s)
exist. Is there a better way?


WAR module:
plugin
groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-resources-plugin/artifactId
executions
execution
phasevalidate/phase
goals

goalcopy-resources/goal
/goals
configuration

outputDirectory${project.build.directory}/${project.build.finalName}/outp
utDirectory
resources
resource

directory${basedir}/../other-module-with-generated-files/target/directory

filteringfalse/filtering
/resource
/resources
/configuration
/execution
/executions
/plugin


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




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



Re: Why does nexus take so much space in the workspace?

2010-07-21 Thread Wayne Fay
 Why does nexus take so much space in the workspace?

 Why does it take up so much space and is there anything I can do to stop it?

Why are you sending Nexus questions to the Maven Users list??? There
are Nexus lists for these kinds of questions -- send them there.

Wayne

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



Re: Why does nexus take so much space in the workspace?

2010-07-21 Thread Anders Hammar
Most likely a question for the nexus users list.

/Anders

On Wed, Jul 21, 2010 at 10:46, Usirs henrik.sjost...@scila.se wrote:


 Why does nexus take so much space in the workspace?

 When I check the size of my workspace I find that nexus (in
 workspace\.metadata\.plugins\org.maven.ide.eclipse\nexus) takes up alot of
 space. About 400Mb, this is more that twice the size of eclipse with all
 addons excluding nexus.

 Why does it take up so much space and is there anything I can do to stop
 it?
 --
 View this message in context:
 http://maven.40175.n5.nabble.com/Why-does-nexus-take-so-much-space-in-the-workspace-tp1693067p1693067.html
 Sent from the Maven - Users mailing list archive at Nabble.com.

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




RE: Copy target file from another module

2010-07-21 Thread Will Hoover
Thanks for your reply, but unfortunately the module that I'm attempting to
copy file(s) from has a set packaging that is not a WAR :/

-Original Message-
From: Thomas Markus [mailto:t.mar...@proventis.net] 
Sent: Wednesday, July 21, 2010 10:01 AM
To: Maven Users List
Subject: Re: Copy target file from another module

  Hi,

create a war with your generated sources and use it as a war overlay

regards
Thomas


Am 21.07.2010 15:49, schrieb Will Hoover:
 I have a multi-module project where one of the modules needs to copy
 internally generated file(s) that do not come from any maven-aware
resources
 from a module to a WAR module for inclusion. The following works, but it
 seems like a hack usingdirectory  to get to the module where the file(s)
 exist. Is there a better way?


 WAR module:
   plugin
   groupIdorg.apache.maven.plugins/groupId
   
 artifactIdmaven-resources-plugin/artifactId
   executions
   execution
   phasevalidate/phase
   goals
   
 goalcopy-resources/goal
   /goals
   configuration
   

outputDirectory${project.build.directory}/${project.build.finalName}/outp
 utDirectory
   resources
   resource
   

directory${basedir}/../other-module-with-generated-files/target/directory
   
 filteringfalse/filtering
   /resource
   /resources
   /configuration
   /execution
   /executions
   /plugin


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



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


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



RE: Copy target file from another module

2010-07-21 Thread Will Hoover
The problem is the generated sources are created during compilation within
the module. The WAR module already has a dependency for that module, but
some of the generated sources are not part of the normal maven build. So,
what happens is the target of the WAR only contains the packaged dependency,
not the generated file(s) that exist in the other modules target (thus the
hack to copy them). Unfortunately, I cannot change the packaging of the
other module to WAR to do an overlay :/

-Original Message-
From: thomas.k.sundb...@gmail.com [mailto:thomas.k.sundb...@gmail.com] On
Behalf Of Thomas Sundberg
Sent: Wednesday, July 21, 2010 10:02 AM
To: Maven Users List
Subject: Re: Copy target file from another module

Hi!

Why not do it the Maven way and create a module with the generated
sources and make the other (2?) modules dependant of it?
This would eliminate the need of a hack that copy files from one
module to another.

/Thomas

On Wed, Jul 21, 2010 at 15:49, Will Hoover java.whoo...@gmail.com wrote:
 I have a multi-module project where one of the modules needs to copy
 internally generated file(s) that do not come from any maven-aware
resources
 from a module to a WAR module for inclusion. The following works, but it
 seems like a hack using directory to get to the module where the file(s)
 exist. Is there a better way?


 WAR module:
                        plugin
                                groupIdorg.apache.maven.plugins/groupId

 artifactIdmaven-resources-plugin/artifactId
                                executions
                                        execution
                                                phasevalidate/phase
                                                goals

 goalcopy-resources/goal
                                                /goals
                                                configuration


outputDirectory${project.build.directory}/${project.build.finalName}/outp
 utDirectory
                                                        resources
                                                                resource


directory${basedir}/../other-module-with-generated-files/target/directory


 filteringfalse/filtering
                                                                /resource
                                                        /resources
                                                /configuration
                                        /execution
                                /executions
                        /plugin


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





-- 
Thomas Sundberg
M. Sc. in Computer Science

Mobile: +46 70 767 33 15
Blog: http://thomassundberg.wordpress.com/
Twitter: @thomassundberg

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


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



Re : Issue with Maven WAR plugin and overlay when using war:inplace

2010-07-21 Thread Julien HENRY
I have created an issue in JIRA with an attached it: 
http://jira.codehaus.org/browse/MWAR-229

Regards,

Julien



- Message d'origine 
 De : Julien HENRY henr...@yahoo.fr
 À : users@maven.apache.org
 Envoyé le : Mer 21 juillet 2010, 12h 17min 00s
 Objet : Issue with Maven WAR plugin and overlay when using war:inplace
 
 Hi all,
 
 I have a web application that depends on another WAR (overlay).  According to 
 m-war-p documentation [1], the current application is priority  #1 and then 
come 

 dependent war. My understanding is that when there are two  files with same 
path 

 in both current application and dependent war, this is  the file in current 
 application that should ultimately be taken to produce  the final war.
 
 Example: 
 current application contains the file  src/main/webapp/WEB-INF/web.xml
 
 dependent war contain a nearly empty file  dependentWar.war!WEB-INF/web.xml
 
 When I run mvn war:inplace I can read in  the log:
 
 [INFO] --- maven-war-plugin:2.1-beta-1:inplace (default-cli) @  myWebApp ---
 ...
 [INFO] Processing war project
 [INFO] Processing  overlay[ id com.mycompany:dependentWar]
 ...
 [INFO] File[WEB-INF/web.xml]  belonged to overlay[currentBuild] so it will be 
 overwritten.
 
 As a  result the src/main/webapp/WEB-INF/web.xml file was overwritten in the 
 current application by the file coming from the dependent WAR.
 
 
 If  I run mvn war:exploded the result is correct and the file in 
 target/myCurrentWebApp-XX-SNAPSHOT/WEB-INF/web.xml is the one coming from  
 the 

 current web app.
 
 Is it a known issue? Do you know if there is a  workaround?
 
 
 
 Regards,
 
 Julien
 
 
 [1] http://maven.apache.org/plugins/maven-war-plugin/overlays.html
 
 
 
 
 
 -
 To  unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For  additional commands, e-mail: users-h...@maven.apache.org
 
 




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



Complex-valued maps as plugin parameter possible?

2010-07-21 Thread Andreas Sewe

Hi all,

I am writing a Maven plugin and have trouble getting a parameter defined 
as follows to work:


/**
 * @parameter
 */
private MapString,ComplexObject map;

Not matter how I configure map in my POM, it only ever maps Strings to 
null, not to an instance of ComplexObjext:


map
  key
!-- ComplexObject class lives in same package as mojo --
complexObject
  someField42/someField
complexObject
  /key
/map

But as far a I understand the Guide to Configuring Plug-ins 
http://maven.apache.org/guides/mini/guide-configuring-plugins.html#Mapping_Maps, 
the above should work. Alas, it doesn't work even if I add an 
appropriate implementation attribute to complexObject (or key, for 
that matter).


What's odd is that ListComplexObject works fine as parameter -- and 
the aforementioned guide simply states that mapping maps works the same 
way. But it seems like this is wrong and having complex-valued maps as 
plugin parameter is impossible. :-(


Can someone please shed light on the issue. Thank you.

Best wishes,

Andreas

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



Maven dependency size limit?

2010-07-21 Thread Leon Franzen

I appear to be encountering a bug in Maven 2.2.1 when downloading a
dependency that is over 2 GB.  Maven appears to successfully download it and
issues no WARN or ERROR messages.  However, the file is always truncated at
2147483647 bytes.  This happens to be the max value of a Java Integer.

I can download the artifact directly through wget and my web browser from
the same Nexus URL that Maven is using without a problem, so I'm positive
this is a Maven, not an environment or Nexus problem.

I've tried using the -Dmaven.wagon.provider.http=httpclient option but it
didn't change anything.  Maybe that's just for PUT requests at deploy time?

Has anyone else encountered this issue?  Is there a fix?
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-dependency-size-limit-tp1748260p1748260.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Why does nexus take so much space in the workspace?

2010-07-21 Thread Brian Fox
We have lots of IT tests.

On Wed, Jul 21, 2010 at 4:46 AM, Usirs henrik.sjost...@scila.se wrote:

 Why does nexus take so much space in the workspace?

 When I check the size of my workspace I find that nexus (in
 workspace\.metadata\.plugins\org.maven.ide.eclipse\nexus) takes up alot of
 space. About 400Mb, this is more that twice the size of eclipse with all
 addons excluding nexus.

 Why does it take up so much space and is there anything I can do to stop it?
 --
 View this message in context: 
 http://maven.40175.n5.nabble.com/Why-does-nexus-take-so-much-space-in-the-workspace-tp1693067p1693067.html
 Sent from the Maven - Users mailing list archive at Nabble.com.

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



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



accessing the path of a jar in local repository

2010-07-21 Thread Jason Chaffee
Is there a way to use the path to a jar in the local respository using
variables in the pom?

 

I know I can use the dependency plugin to copy the jar to my target
directory, but I would prefer to just use the location in the repo.  For
example,

 

plugin

  groupIdorg.apache.maven.plugins/groupId

  artifactIdmaven-surefire-plugin/artifactId

  configuration

forkModeonce/forkMode

 
argLine-javaagent:${aspectjweaver.groupId}/${aspectjweaver.artifactid}
/${aspectjweaver.version}/${aspectjweaver.jar}/argLine

  /configuration

/plugin



Re: Issue with Maven WAR plugin and overlay when using war:inplace

2010-07-21 Thread Kumar Ampani
Use overlay tags in war plugin configuration to control the order.

On Wednesday, July 21, 2010, Julien HENRY henr...@yahoo.fr wrote:
 Hi all,

 I have a web application that depends on another WAR (overlay). According to
 m-war-p documentation [1], the current application is priority #1 and then 
 come
 dependent war. My understanding is that when there are two files with same 
 path
 in both current application and dependent war, this is the file in current
 application that should ultimately be taken to produce the final war.

 Example:
 current application contains the file src/main/webapp/WEB-INF/web.xml

 dependent war contain a nearly empty file dependentWar.war!WEB-INF/web.xml

 When I run mvn war:inplace I can read in the log:

 [INFO] --- maven-war-plugin:2.1-beta-1:inplace (default-cli) @ myWebApp ---
 ...
 [INFO] Processing war project
 [INFO] Processing overlay[ id com.mycompany:dependentWar]
 ...
 [INFO] File[WEB-INF/web.xml] belonged to overlay[currentBuild] so it will be
 overwritten.

 As a result the src/main/webapp/WEB-INF/web.xml file was overwritten in the
 current application by the file coming from the dependent WAR.


 If I run mvn war:exploded the result is correct and the file in
 target/myCurrentWebApp-XX-SNAPSHOT/WEB-INF/web.xml is the one coming from the
 current web app.

 Is it a known issue? Do you know if there is a workaround?



 Regards,

 Julien


 [1] http://maven.apache.org/plugins/maven-war-plugin/overlays.html





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



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