Re: Reverse dependency:tree?
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-Davies ben.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-Davies ben.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
Re: Reverse dependency:tree?
On Tue, Jul 20, 2010 at 2:09 PM, Ben Caradoc-Davies ben.caradoc-dav...@csiro.au wrote: 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. :-) Why do you want this? Dont you want control over when to upgrade your dependencies? If these are your own projects then you should know when the dependencies have changed. Hudson may have some code that could be harvested for this purpose. It is able to know that Project B needs to be rebuilt if it depends on Project A and A has been rebuilt recently. Doing this for your local repo would be an intensive task. There is no meta-data for this reverse mapping. My local repo currently has 2500 files in it (if we assume pom, jar, source, so divide by 3, then there are 800+ pom files to parse) - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Ability to resolve full URL of a particular snapshot artifact
Any taker on this? :-) On Mon, Jul 19, 2010 at 1:24 PM, Dan Tran dant...@gmail.com wrote: Hello all, I have an internal plugin where I can download a large snapshot to my local repo, then push it to another host via SCP. It would be very nice to skip the download and directly having the remote host to download the artifact itself thru a full resolve snapshot URL? Is there a API to get the interested URL? One way is to fetch the metadata and parse it myself, but it would be better to have maven to do it. Thanks -Dan - 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
And now ? On Mon, Jul 19, 2010 at 10:16 PM, Anders Hammar and...@hammar.net wrote: No projects were attached... /Anders On Mon, Jul 19, 2010 at 11:42, anis chaaba anis.cha...@gmail.com wrote: Hello everybody, What can I do to make my plugin use ressources of the project running into it ? My test projects are attached to this mail. When executing the goal of my plugin i get java.util.MissingResourceException: Can't find bundle for base name localisations, locale fr_FR at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260) at java.util.ResourceBundle.getBundle(ResourceBundle.java:715) at bundle.plugin.MyMojo.execute(MyMojo.java:69) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) 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:597) 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). Thanks in advance. - 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: [Maven 2] plugin using project ressources
*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 = elements[i];* *try* *{* *File f = new File(element);* *URL newURL = f.toURI().toURL();* *classpathURLs.add(newURL);* *getLog().debug(Added to classpath + element);* *}* *
wtp server version
How do I specify the server version? Right now I'm not explicitly specifying anything and I get: [INFO] no substring wtp server match. [INFO] Using as WTP server : Apache Tomcat v5.5 Thanks, Ivana
Re: Reverse dependency:tree?
On 20/07/10 14:50, Barrie Treloar wrote: On Tue, Jul 20, 2010 at 2:09 PM, Ben Caradoc-Davies ben.caradoc-dav...@csiro.au wrote: 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. :-) Why do you want this? Dont you want control over when to upgrade your dependencies? Yes. I have large projects with deep dependency trees. If I change a low-level artifact and want to apply this effect everywhere, I need to know which artifacts to change (the ones that consume it directly or indirectly). I want to display the dependency graph so I know which artifacts to change. -- Ben Caradoc-Davies ben.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
using a proxy to bypass network issues accessing maven central repo
I'm having local network problems reaching maven central repo (not pingable, traceroute fails). Whilst these are being fixed I set up a proxy in my settings.xml proxies proxy activetrue/active protocolhttp/protocol hostwww.randomizer.info/host port80/port /proxy /proxies However, my build is still stalling on attempted downloads from repo2.maven.org [INFO]task-segment: [install] [INFO] Downloading: http://repo2.maven.org/maven2/org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.pom LONG WAIT [WARNING] Unable to get resource 'org.apache.santuario:xmlsec:pom:1.4.0' from repository maven.central (http://repo2.maven.org/maven2): Erro r transferring file: Server returned HTTP response code: 503 for URL: http://repo2.maven.org/maven2/org/apache/santuario/xmlsec/1.4.0/xmlsec -1.4.0.pom Can anyone offer any clues as to why this is the case please? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Does the sequence of goals/phases matter?
Hi This is probably a trivial question, but I'll ask it nonetheless :-) Does the sequence of the goals and lifecycle phases matter when I call Maven? In other words, are these two exactly the same? clean package site-deploy site-deploy clean package Best regards, Eric - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Does the sequence of goals/phases matter?
On Jul 20, 2010, at 7:49 AM, Lewis, Eric eric.le...@ipi.ch wrote: Hi This is probably a trivial question, but I'll ask it nonetheless :-) Does the sequence of the goals and lifecycle phases matter when I call Maven? Yes In other words, are these two exactly the same? No clean package site-deploy site-deploy clean package Best regards, Eric - 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
AW: Does the sequence of goals/phases matter?
Ok, thanks for the clarification! So, is this the right sequence in your opinion? clean package findbugs:findbugs pmd:pmd pmd:cpd checkstyle:checkstyle site-deploy Or where can I find out more about that topic? http://www.sonatype.com/books/mvnref-book/reference/lifecycle.html doesn't tell me about how to call individual plugin goals within a lifecycle, unless I missed something. Best regards, Eric -Ursprüngliche Nachricht- Von: Justin Edelson [mailto:justinedel...@gmail.com] Gesendet: Dienstag, 20. Juli 2010 13:54 An: Maven Users List Betreff: Re: Does the sequence of goals/phases matter? On Jul 20, 2010, at 7:49 AM, Lewis, Eric eric.le...@ipi.ch wrote: Hi This is probably a trivial question, but I'll ask it nonetheless :-) Does the sequence of the goals and lifecycle phases matter when I call Maven? Yes In other words, are these two exactly the same? No clean package site-deploy site-deploy clean package Best regards, Eric - 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
ip address range blocked to maven infrastructure?
My colleagues and I are having problems building with maven, because the maven central repo is not accessible from our office location. Our network support people think that our IP addresses are being blocked by the maven infrastructure. Is this the right place to come to for this issue? Regards, Kelvin. tracert repo2.maven.org Tracing route to repo2.maven.org [38.97.124.18] over a maximum of 30 hops: 1 14 ms 7 ms 1 ms gate-9-180-164-1.hursley.uk.ibm.com [9.180.164.1] 2 1 ms 1 ms 1 ms 9.180.160.57 3 14 ms 117 ms 1 ms 9.180.160.29 4 82 ms 1 ms 1 ms 9.180.27.25 5 377 ms 9 ms 8 ms 9.64.186.130 6 8 ms 9 ms 8 ms 9.139.246.2 7 * * * Request timed out. 8 * * * Request timed out. 9 * * * Request timed out. 10 * * * Request timed out. 11 * * * Request timed out. 12 * * * Request timed out. 13 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: AW: Does the sequence of goals/phases matter?
On Jul 20, 2010, at 8:01 AM, Lewis, Eric eric.le...@ipi.ch wrote: Ok, thanks for the clarification! So, is this the right sequence in your opinion? clean package findbugs:findbugs pmd:pmd pmd:cpd checkstyle:checkstyle site-deploy Assuming that findbugs, pmd and checkstyle are configured as part of your reporting configuration, it shouldn't be necessary to include them explicitly on the command line. Or where can I find out more about that topic? http://www.sonatype.com/books/mvnref-book/reference/lifecycle.html doesn't tell me about how to call individual plugin goals within a lifecycle, unless I missed something. I find it hard to believe the Maven reference doesn't talk about binding a plugin to a phase. In any case, it is discussed here: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html in the Plugins section Justin Best regards, Eric -Ursprüngliche Nachricht- Von: Justin Edelson [mailto:justinedel...@gmail.com] Gesendet: Dienstag, 20. Juli 2010 13:54 An: Maven Users List Betreff: Re: Does the sequence of goals/phases matter? On Jul 20, 2010, at 7:49 AM, Lewis, Eric eric.le...@ipi.ch wrote: Hi This is probably a trivial question, but I'll ask it nonetheless :-) Does the sequence of the goals and lifecycle phases matter when I call Maven? Yes In other words, are these two exactly the same? No clean package site-deploy site-deploy clean package Best regards, Eric - 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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: ip address range blocked to maven infrastructure?
Hi, repo2.maven.org works fine. All hops are inside ibm network (9.0.0.0/8) so i guess its an internal problem. regards thomas Am 20.07.2010 14:38, schrieb kelvin goodson: My colleagues and I are having problems building with maven, because the maven central repo is not accessible from our office location. Our network support people think that our IP addresses are being blocked by the maven infrastructure. Is this the right place to come to for this issue? Regards, Kelvin. tracert repo2.maven.org Tracing route to repo2.maven.org [38.97.124.18] over a maximum of 30 hops: 114 ms 7 ms1 ms gate-9-180-164-1.hursley.uk.ibm.com [9.180.164.1] 2 1 ms 1 ms 1 ms 9.180.160.57 314 ms 117 ms 1 ms 9.180.160.29 482 ms 1 ms1 ms 9.180.27.25 5 377 ms 9 ms 8 ms 9.64.186.130 6 8 ms 9 ms 8 ms 9.139.246.2 7 *** Request timed out. 8 *** Request timed out. 9 *** Request timed out. 10 *** Request timed out. 11 *** Request timed out. 12 *** Request timed out. 13 - 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
AW: AW: Does the sequence of goals/phases matter?
Actually, it's a bit complicated :-) The Maven build is started within Hudson. The plugins within Hudson (PMD, Checkstyle etc.) require the report XMLs (created by pmd:pmd etc.) to be able to work. So I need to call those goals for every build. However, we also have a nightly build (which should also work with the Hudson plugins), which builds the Maven site (since that's not part of Continuous Integration). There are other metrics which are included there, but not the ones from the Hudson plugins. So even though e.g. the PMD plugin says that pmd:pmd should be used as a Maven report, I need it outside of the site lifecycle. Best regards, Eric -Ursprüngliche Nachricht- Von: Justin Edelson [mailto:justinedel...@gmail.com] Gesendet: Dienstag, 20. Juli 2010 14:40 An: Maven Users List Betreff: Re: AW: Does the sequence of goals/phases matter? On Jul 20, 2010, at 8:01 AM, Lewis, Eric eric.le...@ipi.ch wrote: Ok, thanks for the clarification! So, is this the right sequence in your opinion? clean package findbugs:findbugs pmd:pmd pmd:cpd checkstyle:checkstyle site-deploy Assuming that findbugs, pmd and checkstyle are configured as part of your reporting configuration, it shouldn't be necessary to include them explicitly on the command line. Or where can I find out more about that topic? http://www.sonatype.com/books/mvnref-book/reference/lifecycle.html doesn't tell me about how to call individual plugin goals within a lifecycle, unless I missed something. I find it hard to believe the Maven reference doesn't talk about binding a plugin to a phase. In any case, it is discussed here: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html in the Plugins section Justin Best regards, Eric -Ursprüngliche Nachricht- Von: Justin Edelson [mailto:justinedel...@gmail.com] Gesendet: Dienstag, 20. Juli 2010 13:54 An: Maven Users List Betreff: Re: Does the sequence of goals/phases matter? On Jul 20, 2010, at 7:49 AM, Lewis, Eric eric.le...@ipi.ch wrote: Hi This is probably a trivial question, but I'll ask it nonetheless :-) Does the sequence of the goals and lifecycle phases matter when I call Maven? Yes In other words, are these two exactly the same? No clean package site-deploy site-deploy clean package Best regards, Eric - 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 - 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: ip address range blocked to maven infrastructure?
The only time anyone gets automatically blocked by our heuristics is when you scrape the repository. No, normal Maven use even by several hundred developers simultaneously from one location will not get you blocked. When people ask us this someone in the said organization and tried to scrape the contents of Maven Central. On Jul 20, 2010, at 8:38 AM, kelvin goodson wrote: My colleagues and I are having problems building with maven, because the maven central repo is not accessible from our office location. Our network support people think that our IP addresses are being blocked by the maven infrastructure. Is this the right place to come to for this issue? Regards, Kelvin. tracert repo2.maven.org Tracing route to repo2.maven.org [38.97.124.18] over a maximum of 30 hops: 114 ms 7 ms1 ms gate-9-180-164-1.hursley.uk.ibm.com [9.180.164.1] 2 1 ms 1 ms 1 ms 9.180.160.57 314 ms 117 ms 1 ms 9.180.160.29 482 ms 1 ms1 ms 9.180.27.25 5 377 ms 9 ms 8 ms 9.64.186.130 6 8 ms 9 ms 8 ms 9.139.246.2 7 *** Request timed out. 8 *** Request timed out. 9 *** Request timed out. 10 *** Request timed out. 11 *** Request timed out. 12 *** Request timed out. 13 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org Thanks, Jason -- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl - First, the taking in of scattered particulars under one Idea, so that everyone understands what is being talked about ... Second, the separation of the Idea into parts, by dividing it at the joints, as nature directs, not breaking any limb in half as a bad carver might. -- Plato, Phaedrus (Notes on the Synthesis of Form by C. Alexander)
Re: AW: AW: Does the sequence of goals/phases matter?
Lewis, Eric wrote: Actually, it's a bit complicated :-) The Maven build is started within Hudson. The plugins within Hudson (PMD, Checkstyle etc.) require the report XMLs (created by pmd:pmd etc.) to be able to work. So I need to call those goals for every build. However, we also have a nightly build (which should also work with the Hudson plugins), which builds the Maven site (since that's not part of Continuous Integration). There are other metrics which are included there, but not the ones from the Hudson plugins. So even though e.g. the PMD plugin says that pmd:pmd should be used as a Maven report, I need it outside of the site lifecycle. Create a hudson profile and bind all these goals in this profile to e.g. the package phase. - Jörg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
AW: AW: AW: Does the sequence of goals/phases matter?
Yep, that sounds smart! Especially since I can activate the profile by the existence of HUDSON_HOME. I'll try that, thanks! Best regards, Eric -Ursprüngliche Nachricht- Von: Jörg Schaible [mailto:joerg.schai...@gmx.de] Gesendet: Dienstag, 20. Juli 2010 15:32 An: users@maven.apache.org Betreff: Re: AW: AW: Does the sequence of goals/phases matter? Lewis, Eric wrote: Actually, it's a bit complicated :-) The Maven build is started within Hudson. The plugins within Hudson (PMD, Checkstyle etc.) require the report XMLs (created by pmd:pmd etc.) to be able to work. So I need to call those goals for every build. However, we also have a nightly build (which should also work with the Hudson plugins), which builds the Maven site (since that's not part of Continuous Integration). There are other metrics which are included there, but not the ones from the Hudson plugins. So even though e.g. the PMD plugin says that pmd:pmd should be used as a Maven report, I need it outside of the site lifecycle. Create a hudson profile and bind all these goals in this profile to e.g. the package phase. - Jörg - 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: ip address range blocked to maven infrastructure?
On Tue, Jul 20, 2010 at 2:18 PM, Jason van Zyl ja...@sonatype.com wrote: The only time anyone gets automatically blocked by our heuristics is when you scrape the repository. No, normal Maven use even by several hundred developers simultaneously from one location will not get you blocked. When people ask us this someone in the said organization and tried to scrape the contents of Maven Central. Thanks Jason, assuming that this is the cause, can you help me understand how we go about getting unblocked please? Regards, Kelvin. On Jul 20, 2010, at 8:38 AM, kelvin goodson wrote: My colleagues and I are having problems building with maven, because the maven central repo is not accessible from our office location. Our network support people think that our IP addresses are being blocked by the maven infrastructure. Is this the right place to come to for this issue? Regards, Kelvin. tracert repo2.maven.org Tracing route to repo2.maven.org [38.97.124.18] over a maximum of 30 hops: 1 14 ms 7 ms 1 ms gate-9-180-164-1.hursley.uk.ibm.com [9.180.164.1] 2 1 ms 1 ms 1 ms 9.180.160.57 3 14 ms 117 ms 1 ms 9.180.160.29 4 82 ms 1 ms 1 ms 9.180.27.25 5 377 ms 9 ms 8 ms 9.64.186.130 6 8 ms 9 ms 8 ms 9.139.246.2 7 * * * Request timed out. 8 * * * Request timed out. 9 * * * Request timed out. 10 * * * Request timed out. 11 * * * Request timed out. 12 * * * Request timed out. 13 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org Thanks, Jason -- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl - First, the taking in of scattered particulars under one Idea, so that everyone understands what is being talked about ... Second, the separation of the Idea into parts, by dividing it at the joints, as nature directs, not breaking any limb in half as a bad carver might. -- Plato, Phaedrus (Notes on the Synthesis of Form by C. Alexander) - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Reverse dependency:tree?
On 20/07/2010 5:53 AM, Ben Caradoc-Davies wrote: On 20/07/10 14:50, Barrie Treloar wrote: On Tue, Jul 20, 2010 at 2:09 PM, Ben Caradoc-Davies ben.caradoc-dav...@csiro.au wrote: 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. :-) Why do you want this? Dont you want control over when to upgrade your dependencies? Yes. I have large projects with deep dependency trees. If I change a low-level artifact and want to apply this effect everywhere, I need to know which artifacts to change (the ones that consume it directly or indirectly). I want to display the dependency graph so I know which artifacts to change. One way to minimize some of the effects of low level changes is to build projects that aggregate common dependencies. We have done this with success for both internal and external libraries. The application level jars do not depend on the low level artifacts. Instead, they depend on an aggregation project that identifies a set of lower level artifacts and builds an aggregated jar. This way the application author does not have to worry about which version of the lower level artifacts but just depends on the correct version of the aggregated project. It ensures that applications are built using a single version of an artifact. Once the person planning the application decides that application version y will require x version of commons-logging, everyone gets it automatically by depending on the y version of the our-apache project which will define that version x of commons-logging is to be used. It also makes the application levels POMs very small and very stable. Ron - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Reverse dependency:tree?
On Mon, Jul 19, 2010 at 11:39 PM, Ben Caradoc-Davies ben.caradoc-dav...@csiro.au wrote: 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. :-) would the versions plugin do what you want or at least help out? it will tell you that new versions of artifacts you depend on are available in your repository. http://mojo.codehaus.org/versions-maven-plugin/ -- Andrew Close - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: wtp server version
On Tue, Jul 20, 2010 at 5:06 AM, i.c...@nki.nl wrote: How do I specify the server version? Right now I'm not explicitly specifying anything and I get: [INFO] no substring wtp server match. [INFO] Using as WTP server : Apache Tomcat v5.5 I don't have an answer, but am curious.. so I'll ask a couple questions to see if I can help. Is this the output after running mvn eclipse:eclipse? And are you specifying a wtpversion? -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http://twitter.com/akinsgre http://www.linkedin.com/in/akinsgre - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Reverse dependency:tree?
On Tue, Jul 20, 2010 at 12:39 AM, Ben Caradoc-Davies ben.caradoc-dav...@csiro.au wrote: 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. Probably also overkill, but Apache Archiva displays the artifacts Used By the one you are viewing. I think it's only one level up though. It wouldn't take too much to start up an instance and point it at your local repo to index and see if that helps any. Then if you find it useful, I'm sure the code could be pulled out to use at the command line instead. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: wtp server version
Yes, im running eclipse:eclipse and i have WTP version 2.0 specified in the pom. The targeted runtime in eclipse is tomcat v6 so I'm a bit confused with the v5.5 I'm trying to build a vaadin addon (http://vaadin.com/wiki/-/wiki/Main/Using%20Vaadin%20with%20Maven) and I'm getting errors so I decided to check *all* the maven output. Ivana Cace Medewerker Informatievoorziening KFI NKI-AVL Afdeling Radiotherapie Antoni van Leeuwenhoek ziekenhuis / Nederlands Kanker Instituut Plesmanlaan 121, 1066 CX Amsterdam T: +31-20-512-8006 E: i.c...@nki.nl -Original Message- From: Greg Akins [mailto:angryg...@gmail.com] Sent: dinsdag 20 juli 2010 18:04 To: Maven Users List Subject: Re: wtp server version On Tue, Jul 20, 2010 at 5:06 AM, i.c...@nki.nl wrote: How do I specify the server version? Right now I'm not explicitly specifying anything and I get: [INFO] no substring wtp server match. [INFO] Using as WTP server : Apache Tomcat v5.5 I don't have an answer, but am curious.. so I'll ask a couple questions to see if I can help. Is this the output after running mvn eclipse:eclipse? And are you specifying a wtpversion? -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http://twitter.com/akinsgre http://www.linkedin.com/in/akinsgre - 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
Password protection on maven-jarsigner-plugin
Hi all, I have a project which needs to sign a applet. I used the following plugin configuration in my pom with the expected results. What bothers me is leaving my passwords in plain text. Is there a way to obfuscate it? plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jarsigner-plugin/artifactId version1.2/version executions execution idsign/id goals goalsign/goal /goals /execution /executions configuration aliasleonardo/alias storepassleonardo/storepass keypassleonardo/keypass /configuration /plugin Thanks, Leonardo
Problems with Maven Windows network drives
Hi all ! I'm working under Windows via VirtualBox, and I'd like to not put sensible/weight data on it to preserve image size/loss. So I ended up creating a network drive between my host and guest OS, putting project maven data on it. And ... it looks like maven is acting very strangely with network drives on Windows ! I executed the following scenarii : Scenario 1 : - Don't edited any settings.xml, and launched a mvn clean install on a fresh copy of my project located on my C: (local) drive : no problems ! Scenario 2 : - I edited the settings.xml and set the localRepository property, pointing on a folder located on my network drive. Then, I launched mvn clean install and BLAM! : maven wasn't able to download my project parent pom on remote repositories :( Note: I tried : *** localRepositoryZ:/path/to/localRepo/localRepository *** localRepositoryfile:///Z:/path/to/localRepo/localRepository *** localRepository//VBOXSVR/sharedfoldername/path/to/localRepo/localRepository Scenario 3 : - I removed the localRepository property. mvn clean install re-works fine ! - I moved my project from C: to my Z: network drive and relaunched maven. This time, maven, succeeded in downloading my parent pom. But, this time, org.apache.maven.plugins:maven-dependency-plugin:2.1:copy-dependencies didn't succeeded during my build :( I reproduced this behaviour both with mvn 2.0.9 and 2.2.1. Is someone using successfully maven on project and maven repos located on Windows network drives ? Feedback appreciated before adding 2 JIRA ... Thanks in advance.. Frédéric
Re: How to skip tests during release:prepare?
On Sun, Jul 18, 2010 at 10:57 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: the reason to bother compiling is to verify that the release build will work when the version numbers have been transformed. But if you don't mind borked tags in your SCM True: if you want to do anything beyond the test phase before tagging the code, this won't work. (I'm not scared by version number transformation ... I haven't had that break a build for me yet. Without running tests, you have no idea if anything will work. You're really just checking that the compile / package will probably run without error. Of course, if your scm info is incorrect then the whole thing could still fall apart in 'perform'. My point was merely that the preparationGoals are just a way to hedge your bets anyway, and depending on your process, you might or might not care to do that.) Zac - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
applying finalName of dependencies when project is packaging
I know there is already a lot of discussion around the topic of artifacts not using finalName when they are installed into a repository (remote or local), but is there a way to enforce that the dependencies, when packaged into the using project, are packaged with their finalNames? example: Project A (a POM that ZIPs its WAR dependencies) uses B, C, D, etc.. as dependencies (all WARs) B's finalName is Bee, C's is Cee, etc... by default, when A packages, it creates a ZIP of all its dependencies (using an assembly descriptor), with their fully qualified repository names, as expected is there an easy way to ask maven to use the finalNames for the dependencies instead? S
mvn and amazon cloud
Hello Has anyone succesfully used maven preferably with svn (and either nexus or artifiactory) within Amazon cloud. Any useful tips to share? Regards, Gord Cody gc...@zafinlabs.com
Re: applying finalName of dependencies when project is packaging
Always a good idea to state *why* you might want to do this so people can provide alternatives. AFAIK the answer is no to your question, but if, for example, you just want to use the artifact name and strip out the version info from the filename, you can use outputFileNameMapping (see http://maven.apache.org/plugins/maven-assembly-plugin/component.html). Kalle On Tue, Jul 20, 2010 at 1:26 PM, Shan Syed shan...@gmail.com wrote: I know there is already a lot of discussion around the topic of artifacts not using finalName when they are installed into a repository (remote or local), but is there a way to enforce that the dependencies, when packaged into the using project, are packaged with their finalNames? example: Project A (a POM that ZIPs its WAR dependencies) uses B, C, D, etc.. as dependencies (all WARs) B's finalName is Bee, C's is Cee, etc... by default, when A packages, it creates a ZIP of all its dependencies (using an assembly descriptor), with their fully qualified repository names, as expected is there an easy way to ask maven to use the finalNames for the dependencies instead? S - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: mvn and amazon cloud
Has anyone succesfully used maven preferably with svn (and either nexus or artifiactory) within Amazon cloud. What exactly are you asking about? Building code in an EC2 instance? Or running a Nexus/Artifactory/etc MRM instance in EC2? Or what?? I would also guess the guys on the Hudson list might have more relevant experiences to discuss. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: applying finalName of dependencies when project is packaging
Hi, We have a very large set of WAR projects (web services, web applications, static websites, etc) as part of a product offering. Various versions and combinations of these are delivered to clients, but there is no immediate understand of who gets what WARs, what versions, etc. So I am using maven to manage this: I have a POM for each delivery, which just has the dependencies listed, and an assembly descriptor that ZIPs them all conveniently, for deployment/DL to various environments. Each developer has specified a finalName for their WAR, but there is no convention, some require just the version info lopped off, some need a totally different name from their artifact, etc.. there is no reliable way to calculate the desired finalName, for various business reasons. So in my ZIPs for each set of packaged goods, I would like the WARs to have their finalNames, as opposed to their fully qualified maven names. Shan On Tue, Jul 20, 2010 at 4:54 PM, Kalle Korhonen kalle.o.korho...@gmail.comwrote: Always a good idea to state *why* you might want to do this so people can provide alternatives. AFAIK the answer is no to your question, but if, for example, you just want to use the artifact name and strip out the version info from the filename, you can use outputFileNameMapping (see http://maven.apache.org/plugins/maven-assembly-plugin/component.html ). Kalle On Tue, Jul 20, 2010 at 1:26 PM, Shan Syed shan...@gmail.com wrote: I know there is already a lot of discussion around the topic of artifacts not using finalName when they are installed into a repository (remote or local), but is there a way to enforce that the dependencies, when packaged into the using project, are packaged with their finalNames? example: Project A (a POM that ZIPs its WAR dependencies) uses B, C, D, etc.. as dependencies (all WARs) B's finalName is Bee, C's is Cee, etc... by default, when A packages, it creates a ZIP of all its dependencies (using an assembly descriptor), with their fully qualified repository names, as expected is there an easy way to ask maven to use the finalNames for the dependencies instead? S - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: applying finalName of dependencies when project is packaging
Just a suggestion, but sounds to me the pom that drives zipping up the artifacts should also be in control of the final names rather than the individual wars. What would happen if two wars specified the same final names? If you cannot dictate a convention for the artifact names I don't see why you'd be able to do it any better for the final names. Kalle On Tue, Jul 20, 2010 at 2:05 PM, Shan Syed shan...@gmail.com wrote: Hi, We have a very large set of WAR projects (web services, web applications, static websites, etc) as part of a product offering. Various versions and combinations of these are delivered to clients, but there is no immediate understand of who gets what WARs, what versions, etc. So I am using maven to manage this: I have a POM for each delivery, which just has the dependencies listed, and an assembly descriptor that ZIPs them all conveniently, for deployment/DL to various environments. Each developer has specified a finalName for their WAR, but there is no convention, some require just the version info lopped off, some need a totally different name from their artifact, etc.. there is no reliable way to calculate the desired finalName, for various business reasons. So in my ZIPs for each set of packaged goods, I would like the WARs to have their finalNames, as opposed to their fully qualified maven names. Shan On Tue, Jul 20, 2010 at 4:54 PM, Kalle Korhonen kalle.o.korho...@gmail.comwrote: Always a good idea to state *why* you might want to do this so people can provide alternatives. AFAIK the answer is no to your question, but if, for example, you just want to use the artifact name and strip out the version info from the filename, you can use outputFileNameMapping (see http://maven.apache.org/plugins/maven-assembly-plugin/component.html ). Kalle On Tue, Jul 20, 2010 at 1:26 PM, Shan Syed shan...@gmail.com wrote: I know there is already a lot of discussion around the topic of artifacts not using finalName when they are installed into a repository (remote or local), but is there a way to enforce that the dependencies, when packaged into the using project, are packaged with their finalNames? example: Project A (a POM that ZIPs its WAR dependencies) uses B, C, D, etc.. as dependencies (all WARs) B's finalName is Bee, C's is Cee, etc... by default, when A packages, it creates a ZIP of all its dependencies (using an assembly descriptor), with their fully qualified repository names, as expected is there an easy way to ask maven to use the finalNames for the dependencies instead? S - 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: mvn and amazon cloud
hi I'm interested in both actually. apologies for being vague. regards gord On Jul 20, 2010 4:59 PM, Wayne Fay wayne...@gmail.com wrote: Has anyone succesfully used maven preferably with svn (and either nexus or artifiactory) within ... What exactly are you asking about? Building code in an EC2 instance? Or running a Nexus/Artifactory/etc MRM instance in EC2? Or what?? I would also guess the guys on the Hudson list might have more relevant experiences to discuss. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org