Re: Eclipse Maven2 Plugin

2007-12-22 Thread Anders Hammar
Hi, There is a separate mailing list for the m2eclipse plugin. You should probably try that mailing list to get a quicker reponse. Oren Livne wrote: Dear All, I am using the Maven 2 integration for Eclipse, http://m2eclipse.codehaus.org/ I am trying to set a custom path for my local

Re: Deploying war to JBOSS using maven

2008-08-14 Thread Anders Hammar
Might the problem be that you have authentication turned on for the jmx-console? If so, turn it of and see if it makes any difference. If you want it on you need to define a server id (the 'server' parameter for the plugin) and add credentials for that server in your settings.xml. /Anders

Re: Deploying war to JBOSS using maven

2008-08-14 Thread Anders Hammar
Hi, Siarhei is right about the difference regarding the two goals of the plugin. I know the deploy target works (tested with JBoss 4.2.2), so you must be missing something. Is the right port specified? Is JBoss started? There is some info here:

Re: Changing default compiler version for maven-compiler-plugin (outside pom.xml)

2008-08-18 Thread Anders Hammar
For an example, please have a look at the parent pom for all Apache projects: http://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom This example does not specify anything regarding plugin management, but you could do that for your scenario. Also, notice that it is located separated from

Re: can we use classifier here?

2008-08-18 Thread Anders Hammar
Hi, Is there a specific need to put the artifacts in the repository? If not, the plugin could produce the three car files and deploy (copy) them to the Geronimo server. The car files could be named pretty much what ever you like as groupId, artifactId and classifiers only matters in a

Re: can we use classifier here?

2008-08-18 Thread Anders Hammar
is to create a plugin repository that contains many plugins and copy them to a remote repository so that other users can install these plugins from the remote repository. Lin On Mon, Aug 18, 2008 at 7:51 AM, Anders Hammar [EMAIL PROTECTED] wrote: Hi, Is there a specific need to put the artifacts

Re: can we use classifier here?

2008-08-20 Thread Anders Hammar
18, 2008 at 10:19 AM, Anders Hammar [EMAIL PROTECTED] wrote: Is it attached artifacts we're talking about? http://blogs.sonatype.com/brian/2008/05/19/1211249747887.html /Anders Lin Sun-2 wrote: Hi, My understanding is yes the maven car plugin is just producing the artifacts. We have

Re: [PLEASE TEST] Maven 2.0.10-RC9

2008-08-20 Thread Anders Hammar
Hi, I've run into a problem with this rc. When using the org.codehaus.cargo:cargo-maven2-plugin:0.3.1 plugin (the start goal), it can't retrieve my JBOSS_HOME env. It works with mvn 2.0.8 and 2.0.9, but with 2.0.10-RC9 the plugin gets 'null' for some reason. Here's my plugin configuration from

Re: [PLEASE TEST] Maven 2.0.10-RC9

2008-08-20 Thread Anders Hammar
Also tried the 1.0-alpha-5 version of the cargo maven2 plugin (with mvn 2.0.10-RC9). Same problem. /Anders Anders Hammar wrote: Hi, I've run into a problem with this rc. When using the org.codehaus.cargo:cargo-maven2-plugin:0.3.1 plugin (the start goal), it can't retrieve my JBOSS_HOME

Re: [PLEASE TEST] Maven 2.0.10-RC9

2008-08-20 Thread Anders Hammar
/execution /executions /plugin Marc. Anders Hammar a écrit : Also tried the 1.0-alpha-5 version of the cargo maven2 plugin (with mvn 2.0.10-RC9). Same problem. /Anders Anders Hammar wrote: Hi, I've run into a problem with this rc. When using the org.codehaus.cargo:cargo-maven2

Re: [PLEASE TEST] Maven 2.0.10-RC9

2008-08-21 Thread Anders Hammar
Yes, you're absolutely right. Changing to env.JBOSS_HOME did the trick. It now works with 2.0.10-RC9. There must have been some kind of bug in the older maven releases that made it work without the pre env.. Thanks, /Anders davidkarlsen wrote: On Wed, 20 Aug 2008, Anders Hammar wrote

Re: [PLEASE TEST] Maven 2.0.10-RC9

2008-08-21 Thread Anders Hammar
to figure out where it's coming up with the null. I'll see what I can do with this information in any case. Thanks, -john Anders Hammar wrote: Also tried the 1.0-alpha-5 version of the cargo maven2 plugin (with mvn 2.0.10-RC9). Same problem. /Anders Anders Hammar wrote: Hi

RE: DependencyManagement to force scope

2008-10-02 Thread Anders Hammar
I'm not sure about the optional tag, but it does apply to version. DependencyManagement is where you can specify the version to use for transitive dependencies. http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Management /Anders softwarepills

RE: DependencyManagement to force scope

2008-10-02 Thread Anders Hammar
? Anders Hammar wrote: I'm not sure about the optional tag, but it does apply to version. DependencyManagement is where you can specify the version to use for transitive dependencies. http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Management

Re: How to change workingDirectory for release:perform?

2008-10-23 Thread Anders Hammar
I've run into the same problem with specifying workingDirectory as a system property on the command line. Couldn't find a jira filed by you (or anyone else) so I created one: http://jira.codehaus.org/browse/MRELEASE-382 Please update it regarding basedir also not being picked up! /Anders

Re: Experience in maven-release-plugin using ClearCase SCM

2008-10-23 Thread Anders Hammar
Hi Torsten, Found this old post. Any progress? I'm looking into this for a customer and is working on some best practise for releasing with clearcase through Maven. Have you tried working with branches? /Anders torsten.reinhard wrote: Hi, I´m trying to establish our ReleaseBuild with

Re: maven - clearcase integration with release:perform

2008-11-20 Thread Anders Hammar
Hi, I've spent quite some time getting the release and the scm plugins to work together with cc, so I'll try to help you. However, could you try to define you problem in more detail? If the problem is the error message you link to, have you really verified that the view doesn't exist in cc? Me

Re: Version range madness...

2008-11-30 Thread Anders Hammar
Hi, I've seen the same behavior where version and versioning-release is different in Nexus. Not sure exactly what it will affect. Possibly that is the reason for your problem. What happens if you remove the 1.2.0 artifact from (or even better any version of that artifact) your local repo and

Re: Retrieve last artifact URL from remote repository

2008-11-30 Thread Anders Hammar
Hi, I think you want to try the jboss-maven-plugin and do a remote deploy. This is described here: http://osdir.com/ml/java.maven-plugins.mojo.devel/2006-01/msg00208.html Please try and let us know if it works. I haven't tried remote deploy, but i do believe I had some issues with the local

Re: AW: Retrieve last artifact URL from remote repository

2008-11-30 Thread Anders Hammar
Ok, but I think the timestamped snapshot file name is generated by Maven, so it should be able to get it without querying the remote repo. And the url for the remote repo you do have. However, I don't know how to get the timestamped snaphot file name. /Anders Gerrit Brehmer wrote: I think

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread Anders Hammar
Hi, Just tried it and it works for me, both in Eclipse and from command prompt. How are you executing? /Anders CheapLisa wrote: I have JUnit 4.5 as a dependency in my maven pom and I have imported annotations into my test case but it is not recognizing the @Test and @Ignore annotations.

RE: Maven Jaxb plugin?

2008-12-10 Thread Anders Hammar
Hi, Try the 'schemaDirectory' parameter. It's documented here: http://mojo.codehaus.org/jaxb2-maven-plugin/xjc-mojo.html /Anders CheapLisa wrote: thanks! I was able to get a little further but got this error message: [ERROR] null[-1,-1] java.io.FileNotFoundException:

Re: java.lang.NoClassDefFoundError: org/codehaus/plexus/util/xml/XmlStreamReader

2008-12-10 Thread Anders Hammar
I wild guess would be that you have misspelled some dependency regarding upper/lower case. If you, for instance, specify ESBblabla.jar Windows will match that with the file esbblabla.jar while Linux will not. The same goes for paths. Just something I learned the hard way from an issue we had

Re: java.lang.NoClassDefFoundError: org/codehaus/plexus/util/xml/XmlStreamReader

2008-12-10 Thread Anders Hammar
the error? Stefan Anders Hammar wrote: I wild guess would be that you have misspelled some dependency regarding upper/lower case. If you, for instance, specify ESBblabla.jar Windows will match that with the file esbblabla.jar while Linux will not. The same goes for paths. Just

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread Anders Hammar
Or *Test.java, or *TestCase.java. That's the names surefire is configured for by default. (http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#includes) I would suggest trying it in Eclipse first. If it works there, then there is some configuration issue for Maven. /Anders

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-11 Thread Anders Hammar
of the surefire plugin). /Anders CheapLisa wrote: What's Eclipse? Also JUnit4 annotations have no restrictions on file nameing if annotations are used. I simply want to use the JUnit4 features and not name my files the JUnit 3.x way. L Anders Hammar wrote: Or *Test.java

RE: Is Maven / JUnit 4.x broken (annotations)

2008-12-11 Thread Anders Hammar
happen. But I'm not sure that was a Maven problem. Justin From: Anders Hammar [mailto:and...@hammar.net] Sent: Wed 12/10/2008 6:31 AM To: users@maven.apache.org Subject: Re: Is Maven / JUnit 4.x broken (annotations) Hi, Just tried it and it works

Re: Keep version when doing a release

2008-12-17 Thread Anders Hammar
Not happy with the answers in your earlier post? http://www.nabble.com/-ANN--Maven-Release-Plugin-2.0-beta-8-Released-td20256939.html I believe a best practise advice is in there. Keep your stable projects in separate trunks! /Anders Gunnar.Bostrom wrote: Hi, I have a multi module project

Re: Create dependencies between Maven 2 and JBoss, JBoss-Seam

2009-05-06 Thread Anders Hammar
Hi, What exactly is your problem? Is it that you can't find the artifacts (that you depend on) on any repo? /Anders On Tue, May 5, 2009 at 23:36, bpmfouka bpmfo...@yahoo.fr wrote: Hi, I am working on EJB3 with JBoss and also to spread that JBoss-Seam, I am searching solution to solve this

Re: Downloading from a secure repository

2009-05-06 Thread Anders Hammar
Possibly you should define credentials for the repo id artifactory in your settings.xml? As that's the id of the mirror being used. /Anders On Wed, May 6, 2009 at 10:03, Ramon Turnes Perez ramon.turnes-pe...@hermes-softlab.com wrote: Hi, we have set up an internal maven repository with

Re: Downloading from a secure repository

2009-05-06 Thread Anders Hammar
have tried it but it does not work. Regards. Ramon. -Original Message- From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf Of Anders Hammar Sent: 6. maj 2009 10:30 To: Maven Users List Subject: Re: Downloading from a secure repository Possibly you should

Re: How can one handle release candidates in Maven?

2009-05-14 Thread Anders Hammar
Hi, I don't mean to hijack this thread, but my experience is that test people love traceability. Thus, I think they would expect a created tag/label to stay as they file bug reports on it. (I guess this is out of a larger non-agile organization's point of view.) Just my 2 cents, /Anders On Wed,

Re: SNAPSHOT for parent pom versioning

2009-05-15 Thread Anders Hammar
I think SNAPSHOTs are only updated once a day or so, not for every build. You can force it through mvn -U or by settings updatePolicy in your settings.xml: http://maven.apache.org/ref/2.0.8/maven-settings/settings.html#class_releases Here's a blog about this:

Re: SNAPSHOT for parent pom versioning

2009-05-18 Thread Anders Hammar
-configuration-1.0http://172.18.0.78:/artifactory/sadiel-releases//es/sadiel/seta/config/seta-general-configuration/1.0-SNAPSHOT/seta-general-configuration-1.0 -SNAPSHOT.pom [DEBUG]   Artifact resolved It says Downloading but it didn't actually download anything. 2009/5/15 Anders Hammar

Re: Web project archetype

2009-05-24 Thread Anders Hammar
Hi, Just create those directories manually. As they are defined in Maven's super pom (http://maven.apache.org/guides/introduction/introduction-to-the-pom.html), you don't need to define them in your pom. Btw, what is not working? /Anders On Sun, May 24, 2009 at 21:45, Ricky ricky...@gmail.com

Re: Determining real GAV for java.servlet:servlet-api

2009-05-25 Thread Anders Hammar
Hi, Are you using JBoss AS? One of the problems regarding JBoss and Maven is that they most often do not use the jar files as released by the projects. Based on the manifest you quote, it would imply that it was implemented by JBoss. I seriously doubt that. Most likely, the jar you have is based

Re: Determining real GAV for java.servlet:servlet-api

2009-05-25 Thread Anders Hammar
Ok, so it the servlet api jar version for JBoss 4.2.2 you're looking for? I think that would be version 2.5-brew in JBoss terms (not 2.4 as I wrote in my last mail). It's outlined in JBoss' build script: http://anonsvn.jboss.org/repos/jbossas/tags/JBoss_4_2_2_GA/build/build-thirdparty.xml You'll

Re: Re : Determining real GAV for java.servlet:servlet-api

2009-05-25 Thread Anders Hammar
to provided scope so it doesn't really matter if this is not exactly the same JAR as long as the interfaces are the same. Regards, Julien De : Anders Hammar and...@hammar.net À : Maven Users List users@maven.apache.org Envoyé le : Lundi, 25 Mai 2009

Re: Setting the JDK via property

2009-05-26 Thread Anders Hammar
Maybe you can use a profile in your pom to modify the maven-compiler-plugin configuration? http://maven.apache.org/guides/introduction/introduction-to-profiles.html /Anders On Tue, May 26, 2009 at 17:34, emerson cargnin echofloripa.y...@gmail.com wrote: Hi I need to set the jdk via command

Re: [Off topic] Google IO or Community One / JavaOne?

2009-05-26 Thread Anders Hammar
I'm going to JavaOne. I mailed Brian Fox regarding a Maven meetup, but there is currently no plans for that. /Anders On Wed, May 27, 2009 at 00:56, Wayne Fay wayne...@gmail.com wrote: Anyone (users, devs, contributors, etc) planning on going to Google IO conference this week, or Community One

Re: Can I specify list of directories in the configuration for sourceDirectory

2009-05-29 Thread Anders Hammar
Hi, How are these files generated? The general idea is that you shouldn't have to worry about adding that source directory, it should be done by the plugin generating those source files. Maybe it's not a maven plugin generating them? /Anders On Fri, May 29, 2009 at 07:43, Chirag Trivedi

Re: Not able to download artifacts from internal local repository

2009-05-29 Thread Anders Hammar
Could it be that Maven is trying to access the repo hosted on Archiva via the proxy that you've defined in your settings.xml? As you've defined the repo by an IP address, I would think the proxy is being used as it is only skipped for 'local.net' and 'some.host.com' hosts. (Downloading through the

Re: How to skip integration tests

2009-06-04 Thread Anders Hammar
Hi, My understanding was that -Dmaven.test.skip=true tells the surefile plugin to skip the tests. What phase that the plugin is bound to is a different story. So, if you have the surefire plugin bound to the integration phase (it's not by default), you can turn the tests of by that flag. Have you

Re: artifact for jaxb2

2009-06-04 Thread Anders Hammar
http://lmgtfy.com/?q=jaxb+maven+pluginl=1 On Thu, Jun 4, 2009 at 12:38, Koxkorrita koxkorr...@laudio.info wrote: hello i am tring for finding one artifact for generate the classes from one xsd file. my pourpose is into one second step generate one WS using jax-ws but i dont find one artifact

Re: How to efficiently configure a transient repository?

2009-06-04 Thread Anders Hammar
Not quite sure I understand your question, but would the -o argument (offline) work? /Anders On Thu, Jun 4, 2009 at 17:00, David C. Hicksdhi...@i-hicks.org wrote: Hi gang, We have a Maven plugin that we use to provide a packaging type for our Integration Test module.  It resides in our Nexus

Re: POM verbosity

2009-06-07 Thread Anders Hammar
Yes, you could define the configuation (tag) outside of the executions (tag). Then you only need it once. /Anders On Mon, Jun 8, 2009 at 03:55, Benson Marguliesbimargul...@gmail.com wrote: So, I have a plugin, I need several executions of it, and each one looks like what follows. It's getting

Re: Unpack some jar files in WEB-INF/classes folder

2009-06-12 Thread Anders Hammar
http://maven.apache.org/plugins/maven-dependency-plugin/examples/unpacking-artifacts.html On Fri, Jun 12, 2009 at 13:41, Jacob Bergööjacob.ber...@gmail.com wrote: Hi, I have a need to unpack some specific jar files to WEB-INF classes in my war project. The jar files are separate Maven

Re: Plugin / Tool for local repository

2009-06-15 Thread Anders Hammar
http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html /Anders On Mon, Jun 15, 2009 at 10:46, Henri Gomezhenri.go...@gmail.com wrote: Hi to all, I wonder if there is a plugin/tool available to clean a local repository ? After some time repository could

Re: How to set up SCM/CVS/Maven integration with public key authentication?

2009-06-15 Thread Anders Hammar
Hi, Could you please file a jira regarding this so that it can be fixed? /Anders On Mon, Jun 15, 2009 at 20:16, Matt Brownmatt.br...@citrixonline.com wrote: For anyone who runs into this problem in the future: After downloading the scm plugin source, I discovered that the plugin is using

Re: process-sources: process the source code, for example to filter any values.

2009-06-16 Thread Anders Hammar
Found this through Google: http://www.gxdeveloperweb.com/Blogs/Bram-de-Kruijff/Maven-secrets-filtering-sources.htm Not sure if it's the best way to do it though. Never tried filtering java source code. /Anders On Tue, Jun 16, 2009 at 15:41, Paolo Castagnapaolo.casta...@hplb.hpl.hp.com wrote:

Re: How to create many jars in package phase?

2009-06-17 Thread Anders Hammar
Only so that you don't forget, the general Maven rule is one project, one artifact. You could use classifiers to create more than one artifact for a project, but I don't really see the benefit. Have several projects is not bad (I think), it makes your code base structured. Changes to one

Re: How to create many jars in package phase?

2009-06-17 Thread Anders Hammar
That would really make this an Ant wolf in Maven disguise... And wolf in this context is not anything good! On Wed, Jun 17, 2009 at 20:47, Jörg Schaiblejoerg.schai...@gmx.de wrote: Anders Hammar wrote: Only so that you don't forget, the general Maven rule is one project, one artifact. You

Re: How to create many jars in package phase?

2009-06-17 Thread Anders Hammar
into a similar format the original Ant build produced. On Wed, Jun 17, 2009 at 2:42 PM, Anders Hammar and...@hammar.net wrote: Only so that you don't forget, the general Maven rule is one project, one artifact. You could use classifiers to create more than one artifact for a project, but I

Re: Clearcase with maven release plugin

2009-06-18 Thread Anders Hammar
Hi, Yes, I've done it for a customer. I use version 2.0-beta-8 of the release-plugin and found some issues, but they were possible to solve. However, it does only work on the 'main' branch. Some quick things: * Create $user.home/.scm/clearcase-settings.xml containing clearcase-settings

Re: Artifact with classifier

2009-06-18 Thread Anders Hammar
Yes, this is an issue when using classifiers to create more than one artifact for a project. Create two separate Maven projects to solve it. /A On Thu, Jun 18, 2009 at 13:00, Aleksey Didikdi...@magenta-technology.ru wrote: Hello all. I have met a situation which confuse me a little. Let's

Re: How to create many jars in package phase?

2009-06-18 Thread Anders Hammar
that. Well, let's give ourselves a bit more time and design what we need to do properly. Small projects can quickly grow up into big messes because someone didn't think things through before making changes. On Thu, Jun 18, 2009 at 12:47 AM, Anders Hammar and...@hammar.net wrote: It's your call. Just

Re: How do i upload sources for a 3rd party jar?

2009-06-22 Thread Anders Hammar
Hi, The link you refer to clearly states that you need to specify -Dclassifier=sources. I don't think that the packaging should be 'sources' but 'jar'. /Anders On Mon, Jun 22, 2009 at 07:11, Lutchumayal...@ividence.com wrote: Hello everyone I am unable to copy my sources jar into my repo.

Re: newbie question about specifying testClassesDirectory

2009-07-02 Thread Anders Hammar
Hi, As a starter, you should probably upgrade Maven as version 2.0.4 is VERY old. You can tell from your attached output that there are newer surefire plugin versions that can't be used with Maven 2.0.4. Regarding your problem: Try running with -X (debug) instead of -e and then check the output.

Re: newbie question about specifying testClassesDirectory

2009-07-02 Thread Anders Hammar
:09, Anders Hammar wrote: Hi, As a starter, you should probably upgrade Maven as version 2.0.4 is VERY old. You can tell from your attached output that there are newer surefire plugin versions that can't be used with Maven 2.0.4. I am pretty much stuck with what's in the fedora11 repos, so

Re: Maven dependency check

2009-07-06 Thread Anders Hammar
Hi, I guess you could use the enforcer plugin: http://maven.apache.org/plugins/maven-enforcer-plugin/ I think the bannedDependencies rule could be added to project A (for C-1.0.0). Haven't tried it though. /Anders On Mon, Jul 6, 2009 at 15:27, Paolo.Mosnapaolo.mo...@gmail.com wrote: Dear

Re: Maven dependency check

2009-07-06 Thread Anders Hammar
Jul 06 16:42:39 CEST 2009 [INFO] Final Memory: 5M/11M [INFO] But I did copy the example from web site: http://maven.apache.org/enforcer/enforcer-rules/bannedDependencies.html Any idea? Thanks. Anders Hammar wrote

Re: maven can't find repo1

2009-07-07 Thread Anders Hammar
Hi, That artifact doesn't exist at central (aka repo1). Try jboss's repository instead: http://repository.jboss.org/maven2/ /Anders On Tue, Jul 7, 2009 at 13:23, Sam Wunswun2...@gmail.com wrote: Hi, Can anyone tell me how to resolve this error: # mvn archetype:create-from-project [INFO]

Re: maven can't find repo1

2009-07-07 Thread Anders Hammar
http://lmgtfy.com/?q=maven+add+remote+repositoryl=1 On Tue, Jul 7, 2009 at 13:32, Sam Wunswun2...@gmail.com wrote: Hi, how do you define http://repository.jboss.org/maven2/ with mvn? Thanks On Tue, Jul 7, 2009 at 9:30 PM, Anders Hammarand...@hammar.net wrote: Hi, That artifact doesn't

Re: maven can't find repo1

2009-07-07 Thread Anders Hammar
Don't add it in a profile (well, at least not for the normal case), but exactly as specified in the page I linked to. Like this: project ... repositories repository idjboss-repo/id urlhttp://repository.jboss.org/maven2//url /repository /repositories ... /project

Re: maven can't find repo1

2009-07-07 Thread Anders Hammar
That's because it should go in your pom.xml! The project tag is for the POM. Please have a look at the pom schema, as I wrote! /Anders On Tue, Jul 7, 2009 at 14:53, Sam Wunswun2...@gmail.com wrote: I put it here: settings xmlns=http://maven.apache.org/settings/1.0.0;          

Re: Failed to fine a pom file. - please help

2009-07-09 Thread Anders Hammar
According to the Resteasy docs, it should be at the jboss maven repo. But it's missing. I guess you should file a jira. /Anders On Thu, Jul 9, 2009 at 08:19, Sam Wunswun2...@gmail.com wrote: Hi, I was trying to install an RESTeasy example, but got some errors when Maven tried to download a

Re: How to instruct maven look for local repository first?

2009-07-09 Thread Anders Hammar
If you look at the error message you see that the problem is that the parent of resteasy-maven-import (org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1) can't be found. The resteasy-maven-import artifact is indeed found in the local repo. /Anders On Thu, Jul 9, 2009 at 11:51, Sam

Re: Add a file to JAR *AFTER* compile?

2009-07-09 Thread Anders Hammar
I guess you could use the copy goal of the maven-dependency-plugin to do that. The trick would be to bind it to a phase that's after the compile phase (see http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference). /Anders On Thu, Jul 9, 2009 at 13:26,

Re: Excluding all jboss provided

2009-07-09 Thread Anders Hammar
Starting with Maven 2.0.9 there is a possibility to import another pom. That pom could have the dependencyManagement you're talking about. However, I don't think that such a pom already exists, so you need to create it yourself. However, when that's done you could reuse it. More info:

Re: Copy goal result to given path

2009-07-09 Thread Anders Hammar
Not sure what you want to accomplish, but the way to do this (sort of) is to create a forth module (or possibly in the top pom) where you copy the artifacts of the three modules through the dependency plugin (http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html).

Re: Getting source code for existing JARs

2009-07-09 Thread Anders Hammar
Hi, Not the magically way I think you're asking for, no. Not to my knowledge anyhow. What you could do, is to try to find out what artifact you have an then, if you're lucky, the source code might exist in a repository (central for instance). One way to find out what artifact you have is to use

Re: Getting source code for existing JARs

2009-07-10 Thread Anders Hammar
If I didn't misunderstand the situation, the poster has a runtime system with a bunch of jars. Thus, no poms. /Anders On Fri, Jul 10, 2009 at 02:52, Barrie Treloarbaerr...@gmail.com wrote: On Fri, Jul 10, 2009 at 5:25 AM, Singhal, Pulkitpulkit.sing...@hp.com wrote: Hello, I wanted to know if

Re: Online Poll for Maven Cookbook

2009-07-10 Thread Anders Hammar
The list is fine. I've received both your messages. You can always check if your mail gets through by looking at the Nabble archive. /Anders On Fri, Jul 10, 2009 at 07:56, Peter Horlockpeter.horl...@googlemail.com wrote: Hi, I can't wait to see the Maven cookbook from Tim O'Brien - but Tim

Re: Excluding all jboss provided

2009-07-11 Thread Anders Hammar
a dependencyManagement section for jboss libraries would probably useful for more people than just me. Any suggestions as to where I should start? That's a fair amount of data to collect... Anders Hammar wrote: Starting with Maven 2.0.9 there is a possibility to import another pom. That pom

Re: dependency on artifact javax.activation:activation version 1.1.1

2009-07-11 Thread Anders Hammar
Just to add to Tim's advice, having a repo manager makes it very easy to add any missing artifact should you need to. /Anders On Sat, Jul 11, 2009 at 16:36, Tim O'Brientobr...@discursive.com wrote: Instead of just adding the JBoss repository to your repositories in a pom.xml.   Your best bet

Re: Unexpected copying of classes from dependencies

2009-07-13 Thread Anders Hammar
What happens if you execute $ mvn clean test /Anders On Mon, Jul 13, 2009 at 21:27, Yang Zhangyanghates...@gmail.com wrote: For some reason, Maven is pulling in classes from the jar of a dependency and putting them into my target/test-classes/ directory, causing mvn test to fail (since extra

Re: Unexpected copying of classes from dependencies

2009-07-13 Thread Anders Hammar
through it manually step by step and try to find anything that would suggest this happening. /Anders On Mon, Jul 13, 2009 at 23:23, Yang Zhangyanghates...@gmail.com wrote: I had tried cleaning already; I get the same thing. Anders Hammar wrote: What happens if you execute $ mvn clean test

Re: Unexpected copying of classes from dependencies

2009-07-13 Thread Anders Hammar
seem to trace anything about specific class files being produced. Anders Hammar wrote: Ok, I was thinking that maybe your were using some IDE that interfered (i.e. copied the classes). Posting your pom.xml is probably necessary to figure this one out. You should also execute Maven in debug

Re: Unexpected copying of classes from dependencies

2009-07-13 Thread Anders Hammar
, 2009 at 00:14, Yang Zhangyanghates...@gmail.com wrote: Also tried removing that entire plugin - same results. Yang Zhang wrote: I just tried this out (removed that line), to no avail. Anders Hammar wrote: I suspect the use of descriptor ref jar-with-dependencies of maven-assembly-plugin

Re: Passing Variables at JBoss Startup

2009-07-15 Thread Anders Hammar
Hi, You're writing remote jboss server; is the jboss instance on a remote server? If that's the case, cargo cannot start/stop it, that can only be done on a local instance. (However, your current script binds to localhost, so maybe your saying 'remote' out of a Maven instance jvm perspective?)

Re: the nexus repositories only show .index and .meta

2009-07-28 Thread Anders Hammar
You should try the Nexus mailing list instead as it's not a Maven issue. /Anders On Tue, Jul 28, 2009 at 05:54, ykyuenyingkity...@gmail.com wrote: Hi all, i installed the nexus on my windows pc (previously i try the nexus in the VM inside this windows pc but fail due to connetion refused).

Re: Corporate Parent POM

2009-07-30 Thread Anders Hammar
Hi, The corporate POM would typically be published in a (corporate) Maven repository. You just configure Maven to use this repository and it will fetch it from there (if correctly referred in the parent element of the project's pom). /Anders On Fri, Jul 31, 2009 at 00:09, Logachandru X

Re: How to create patched artifact?

2009-08-04 Thread Anders Hammar
Tim, 4. Package, publish your new patched artifact to a repository manager (under a new groupId, artifactId, version). The key here is that you create a project that patches the original artifact and then publishes it under a different GAV coordinate.   I would not recommend patching the

Re: Surefire skipping tests

2009-08-06 Thread Anders Hammar
Strange, it looks like you've done what's described here: http://docs.codehaus.org/pages/viewpage.action?pageId=62120 Could it be that a bug has been introduce i newer surefire-plugin versions? Try some different versions to see if that makes any difference! /Anders On Thu, Aug 6, 2009 at

Re: What's up with http://maven.apache.org/pom.html

2009-08-13 Thread Anders Hammar
http://maven.apache.org/pom.html and http://maven.apache.org/ref/2.1.0/maven-model/maven.html works for me. Has it been fixed or do you still have problems? /Anders On Thu, Aug 13, 2009 at 09:57, Stephen Connolly stephen.alan.conno...@gmail.com wrote: Arnaud Herritier has confirmed that he is

Re: Project and external file Deployment?

2009-08-14 Thread Anders Hammar
Do you want to do this as part of your integration tests? Or is it for the actual deployment (to prod servers)? In the latter case Maven would not be the typical tool as it is a build tool. In the first case there are several plugins, one being the generic cargo plugin

Re: Encryption for SCM password?

2009-08-14 Thread Anders Hammar
http://www.sonatype.com/people/2009/03/maven-210-released/ * * On Fri, Aug 14, 2009 at 17:10, KURT TOMETICH boomtow...@msn.com wrote: Is there a way to encrypt the SCM password used in configuration of the SCM plugin? I've been able to use a clear text password in my settings file, but when I

Re: Create a full path jar file name

2009-08-17 Thread Anders Hammar
Well, partly. You can define the final name of the artifact. Search for finalName; it has been discussed before. However, this will only affect the file created in the target dir. The artifact stored in a repo will always have the default name format (for different reasons). /Anders On Mon, Aug

Re: variables aren't replaced into the installed pom

2009-08-17 Thread Anders Hammar
How do you mean; do you expect the pom file to be updated (re-written) so that the variables are replace by the values defined? Or do you get some kind of error because the value of the property isn't found? /Anders On Mon, Aug 17, 2009 at 11:09, Ulath muratha...@gmail.com wrote: i have a

Re: variables aren't replaced into the installed pom

2009-08-17 Thread Anders Hammar
regards ... Anders Hammar wrote: How do you mean; do you expect the pom file to be updated (re-written) so that the variables are replace by the values defined? Or do you get some kind of error because the value of the property isn't found? /Anders On Mon, Aug 17, 2009 at 11:09

Re: memory issues

2009-08-18 Thread Anders Hammar
Did you try to google for this? I easily found lots of hits which should answer your question. Here is one: http://www.nabble.com/java.lang.OutOfMemoryError:-PermGen-space-problem-td22828311.html and a blog post: http://nathan.blog.kraya.net/software/more-maven-2-permgen-space-this-time/ /Anders

Re: 2 questions: including WEB-INF/lib and re-using dependency lists

2009-08-18 Thread Anders Hammar
2) I believe inclusion like this is planned for Maven 3.0, but for M2 you have to settle with using a parent where you define common dependencies. /Anders On Tue, Aug 18, 2009 at 09:43, Tako Schotanus t...@codejive.org wrote: Hi, I've got 2 questions that I haven't been able to find an answer

Re: 2 questions: including WEB-INF/lib and re-using dependency lists

2009-08-18 Thread Anders Hammar
Hmm, I believe that doing so would make your actual dependencies to show as transitive dependencies. Would probably not make much difference most of the time, but sometime it would. And the site documentation would be wrong. Or? /Anders On Tue, Aug 18, 2009 at 10:46, Jeff Johnston

Re: 2 questions: including WEB-INF/lib and re-using dependency lists

2009-08-18 Thread Anders Hammar
Including the pom project to which you moved all the dependencies? Could you please provide the error output? /Anders On Tue, Aug 18, 2009 at 12:18, Tako Schotanus quinte...@gmail.com wrote: Yes, did an mvn clean install on all related projects just to be sure. -Tako On Tue, Aug 18,

Re: LifecycleExecutionException: Missing

2009-08-19 Thread Anders Hammar
Some artifacts don't exist in the central repository, due to license issues. So you need to follow the instructions and download these manually. Or, if you don't need these (transitive) dependencies you could exclude them. For instance, log4j has dependencies to jms stuff. However, if you're not

Re: Jar Contents getting mixed up!

2009-08-20 Thread Anders Hammar
Could you share the name of the anti-virus software, please? /Anders On Thu, Aug 20, 2009 at 14:05, David Ellis david.el...@bitarisk.com wrote: Cracked it! We took a packet trace of maven downloading the dependencies and found that an HTTP GET for the sha1 checksum in the middle of the

Re: Jar Contents getting mixed up!

2009-08-20 Thread Anders Hammar
Ok, thanks! So the AV software is running on the PC executing Maven (not the server hosting Nexus), right? /Anders On Thu, Aug 20, 2009 at 14:38, David Ellis david.el...@bitarisk.com wrote: Hi Anders It is kaspersky anti-virus Thanks David Anders Hammar wrote: Could you share

Re: Maven for java-tomcat-webproject

2009-08-21 Thread Anders Hammar
OK, I guess we need to back one step. Do you have the basic understanding of Maven? If not, I kindly ask you to read in the Maven definitve guide ( http://www.sonatype.com/books/maven-book/reference/) first so you understand the basics. If you're going to use Maven, you are going to create at

Re: Exclude a jar file from an artifact

2009-08-25 Thread Anders Hammar
You can exclude transitive dependencies, if that's what you're after. Please see Transitive Dependency Exclusion at http://docs.codehaus.org/display/MAVENUSER/Dependency+Mechanism /Anders On Tue, Aug 25, 2009 at 16:48, Serbulent UNSAL serbule...@gmail.com wrote: Hi, I add the artifact as

Re: Exclude a jar file from an artifact

2009-08-25 Thread Anders Hammar
On Tue, Aug 25, 2009 at 17:01, Serbulent UNSAL serbule...@gmail.com wrote: No that's not what I'm looking for. This mechanism is using for excluding transitive artifacts. But I'm looking for a way to exclude only one jar file. 2009/8/25 Anders Hammar and...@hammar.net: You can exclude

  1   2   3   4   5   6   7   8   9   10   >