Re: Read properties from pom.xml from Java

2010-02-04 Thread Martin Höller
Hi! Am Freitag, 5. Februar 2010 08:41:02 schrieb Søren Krogh Neigaard: > I have this in my settings.xml > > > > > > true > > > oracle.jdbc.driver.OracleDriver > jdbc:oracle:thin:@myhome:1521:orcl > foo > bar > > >

Configuring components.xml into assembly plugin

2010-02-04 Thread Graham Charters
Hi, I have a components.xml definition that tells the assembly plugin to use the ZipArchiver when configured with ext, where 'ext' is a new file extensions to use instead of zip. The component element looks as follows: org.codehaus.plexus.archiver.Archiver ext org.codehau

RE: Read properties from pom.xml from Java

2010-02-04 Thread Søren Krogh Neigaard
But I do use the @Before annotation, and I was planning to call my database cleanup from here. But my problem is that the database properties are not accessible to me (I think), and they are managed by maven (are they not?). Med venlig hilsen / Kind regards Søren Krogh Neigaard Systems Engine

RE: Read properties from pom.xml from Java

2010-02-04 Thread bernd . adamowicz
Søren Krogh Neigaard wrote on 05.02.2010 07:45:51: > We are already using > the sql-maven-plugin to bootstrap the database, but it only gets run > once before all junit tests are run, and that is not what I need, I > need it to run for every test to ensure a clean database. > > I can easily m

RE: Read properties from pom.xml from Java

2010-02-04 Thread Søren Krogh Neigaard
Hi I have this in my settings.xml true oracle.jdbc.driver.OracleDriver jdbc:oracle:thin:@myhome:1521:orcl foo bar And I have tried with these in my pom.xml: oracle.jdbc.OracleDriver ${database.url} ${da

Re: Read properties from pom.xml from Java

2010-02-04 Thread Martin Höller
Am Freitag, 5. Februar 2010 07:45:51 schrieb Søren Krogh Neigaard: > Thank you all for your answers > > I tried adding the following to my pom.xml > > > oracle.jdbc.OracleDriver > ${database.url} > ${database.username} > ${database.password} > > > And tried reading with System.getProperty

Re: Read properties from pom.xml from Java

2010-02-04 Thread Anders Hammar
> I tried adding the following to my pom.xml > > > oracle.jdbc.OracleDriver > ${database.url} > ${database.username} > ${database.password} > > Sure, that doesn't work. The properties you want to be set in settings.xml (either globally or locally), you just skip those in your pom. However, y

RE: Read properties from pom.xml from Java

2010-02-04 Thread Søren Krogh Neigaard
Thank you all for your answers I tried adding the following to my pom.xml oracle.jdbc.OracleDriver ${database.url} ${database.username} ${database.password} And tried reading with System.getProperty("database.username"), but it gave me null. The reason for the ${database.url} and so

Re: help needed with maven antrun plugin

2010-02-04 Thread Stephen Connolly
AFAIK maven munges up the java home in the system properties so that the ${java.home} is actually the jre inside the jdk and not the jdk... however ${env.JAVA_HOME} should still be the java home and the mvn scripts bomb out if JAVA_HOME is not defined. -Stephen On 4 February 2010 21:26, Pankaj Ag

RE: help needed with maven antrun plugin

2010-02-04 Thread Pankaj Agarwal
Here's the exact error. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] An Ant BuildException has occured: The following error occurred while executing this l

Re: SUN Maven(2) repo changes? JMX, JMS, Mail, JMXTOOLS

2010-02-04 Thread Johannes Schneider
I had a common problem with an invalid repository entry (wicketstuff). Maven seems to fail completely when a repository returns some html files (redirected I guess) instead of the expected poms Johannes Andy Jefferson wrote: For the last few hours I've been getting issues with Maven2 dow

Re: help needed with maven antrun plugin

2010-02-04 Thread Wayne Fay
> I am able to successfully build using an ant build.xml but the same is > failing when I am call it using antrun plugin. Specific error messages are more helpful than generic "it didnt work" comments. Wayne - To unsubscribe, e-

help needed with maven antrun plugin

2010-02-04 Thread Pankaj Agarwal
Hi, I am facing a strange problem. I am able to successfully build using an ant build.xml but the same is failing when I am call it using antrun plugin. Has anyone faced similar issue and any clue on how this can be resolved? I don't want to use exec plugin as that will require ant

Re: maven release plugin and subversion externals

2010-02-04 Thread Karl Heinz Marbaise
Hi there first: Have you defined scm section in your root pom ? we are using svn:externals to add our modules into the parent directory. We can build, test, deploy ... but we can't create a release. The release is only How do you use the externals ? fixed to a particular release via tag name

Re: Need help configuring maven to get through company Proxy?

2010-02-04 Thread Tonte . Pouncil
I understand. I wonder if you know how I can get started in building a plugin that extends the existing proxy framework in maven, in this regard? Thanks! From: Wayne Fay To: Maven Users List Date: 02/04/2010 09:58 AM Subject: Re: Need help configuring maven to get through company Proxy?

Re: Transitive exclusions in multi-module project with Maven 2.2.1

2010-02-04 Thread Mark H. Wood
On Wed, Feb 03, 2010 at 04:50:23PM +0100, Lóránt Pintér wrote: > I have a project called Client that depends on a side-artifact of > project Server (actually, its RMI client classes; the artifact has the > classifier "rmi"), but excludes each of Server's dependencies. I also Shouldn't the RMI stuf

Re: Need help configuring maven to get through company Proxy?

2010-02-04 Thread Wayne Fay
> Okay I removed my proxy settings in the settings.xml file and configured > Nexus to use the proxy authentication via its server tab.  When I ran > maven, it went through Nexus and then complained that my company has > blocked access to maven central repo site. 1) The Nexus list would be the prop

Re: How to use repo2.maven.org in artifactory

2010-02-04 Thread rgubler2
dahoffer wrote: > > Could it be that it only shows you proxied/cached artifacts? I suspect > that > if you start downloading artifacts from that repo they will show here. > > -Dave > > Yes it acts only as a proxy. We got this problem yesterday, but now the artifacts are reachable. It loo

Re: Assembly plugin: specifying an alternative extension name for the assembly

2010-02-04 Thread Graham Charters
Thanks, Joe. I've only just got round to looking into this again. I found I can get this to work by adding the following to the maven assembly plugin's components.xml file: org.codehaus.plexus.archiver.Archiver ext org.codehaus.plexus.archiver.zip.ZipArchiver per-lo

maven release plugin and subversion externals

2010-02-04 Thread @work
Hello, we are using svn:externals to add our modules into the parent directory. We can build, test, deploy ... but we can't create a release. The release is only created for the parent (which is only a pom module). There are no tags in subversion and no artifacts released to the repository.

Re: Need help configuring maven to get through company Proxy?

2010-02-04 Thread Tonte . Pouncil
Okay I removed my proxy settings in the settings.xml file and configured Nexus to use the proxy authentication via its server tab. When I ran maven, it went through Nexus and then complained that my company has blocked access to maven central repo site. If you have any more suggestion, I woul

Re: Need help configuring maven to get through company Proxy?

2010-02-04 Thread Tonte . Pouncil
No I am not using NTLM as my proxy server is Novell Border Manager. I actually saw this wiki page a few days back and check with our System guys to make sure I knew what we was using in terms of NTLM. Thanks for the reply. Has anybody got out through the proxy that is not using a NTLM or CNTL

Re: ear-plugin and profiles: poor cooperation?

2010-02-04 Thread boraldo
I have the same problem and I'd like to explain it. I want to have an ability to add some web-modules to my ear in some profile. And I don't want to redefine other modules, only my module. If I only add dependency on my module in profile, it's context root will be equal to war name, but I want to

Re: How to use repo2.maven.org in artifactory

2010-02-04 Thread David Hoffer
Could it be that it only shows you proxied/cached artifacts? I suspect that if you start downloading artifacts from that repo they will show here. -Dave On Thu, Feb 4, 2010 at 7:31 AM, rgubler2 wrote: > > Hi, > > I added a new remote repository to our artifactory. > I named it repo2 and use th

Re: How to use repo2.maven.org in artifactory

2010-02-04 Thread Anders Hammar
Artifactory questions should go on the artifactory mailing list. /Anders On Thu, Feb 4, 2010 at 15:31, rgubler2 wrote: > > Hi, > > I added a new remote repository to our artifactory. > I named it repo2 and use the URL http://repo2.maven.org/maven2/. > In the repository browser the repo2 appears

How to use repo2.maven.org in artifactory

2010-02-04 Thread rgubler2
Hi, I added a new remote repository to our artifactory. I named it repo2 and use the URL http://repo2.maven.org/maven2/. In the repository browser the repo2 appears with 0 artifacts. The online status indicate "online". Whats going wrong that we can't access repo2 data? Yours Ruediger

Re: How to download every dependency we need at once?

2010-02-04 Thread David Hoffer
+1 I wouldn't use maven without one, doesn't matter if I have 1 developer or 1000. -Dave On Thu, Feb 4, 2010 at 7:17 AM, Baptiste MATHUS wrote: > 2009/12/16 Anders Hammar > > > Why not use a corporate repository manager like Nexus or Artifactory*?* > > [...] > > * Any other solution is a hac

Re: How to download every dependency we need at once?

2010-02-04 Thread Baptiste MATHUS
2009/12/16 Anders Hammar > Why not use a corporate repository manager like Nexus or Artifactory*?* > [...] > * Any other solution is a hack*. > +1. Most of the time, users do not consider installing a repository manager because they think it's complicated. Please trust us: it's not, it's very

Re: Implementing an installer, which is maven-based

2010-02-04 Thread Dmitry Katsubo
Hi everybody! I am still not sure, what is the best direction for me to solve the following task. Maybe someone on maillist implemented something similar, or knows the technology/approach, that can simplify things. What ideally I want to achieve is: 1. Create a "lightweight" installator, that wi

Re: RFC: Maven License Verifier Plugin

2010-02-04 Thread Johannes Schneider
One important thing for me: It should be possible to define the configuration/license descriptors in my company pom. Then every dependent project should use the default configuration provided by the company pom. But it also should be possible to override/change/extend that configuration. Sample:

Re: do I need to list the ssh wagon as an extension?

2010-02-04 Thread Brett Porter
No. On 04/02/2010, at 11:19 PM, Benson Margulies wrote: > If I want to make the dependency plugin deliver over ssh, to I need to > list an extension? > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For addit

do I need to list the ssh wagon as an extension?

2010-02-04 Thread Benson Margulies
If I want to make the dependency plugin deliver over ssh, to I need to list an extension? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

Re: Slow deployment to JBoss when Maven is used

2010-02-04 Thread Eduardo M KALINOWSKI
On Qui, 04 Fev 2010, Eduardo M KALINOWSKI wrote: I'm facing a strange problem. Before Maven, JBoss took about 20-30s to deploy our .ear (including some EJBs, one .war and a few library .jars). Now that we are using maven, the same operation is taking about 1m20s, despite the file being small

Slow deployment to JBoss when Maven is used

2010-02-04 Thread Eduardo M KALINOWSKI
I'm facing a strange problem. Before Maven, JBoss took about 20-30s to deploy our .ear (including some EJBs, one .war and a few library .jars). Now that we are using maven, the same operation is taking about 1m20s, despite the file being smaller (since only the dependencies that are actuall

Re: Read properties from pom.xml from Java

2010-02-04 Thread Karl Heinz Marbaise
Hi, Søren Krogh Neigaard wrote: > However I need to make a small helper class for my junit tests that wipes > the database and loads some testdata on the database for every junit test. have you taken a look at the http://mojo.codehaus.org/sql-maven-plugin/ Maven-sql-plugin and/or to the http

Re: starting tomcat in pre-integrations-test haults build

2010-02-04 Thread Douglas Ferguson
I ran it with -X and got tons of debug output but I didn't see anything indicating that there might be blocking.. D/ On Jan 28, 2010, at 8:52 AM, Anders Hammar wrote: > You have to provide more info, like log outputs etc., for us to help. What > plugins are you using, what's your config? > > F

Re: RFC: Maven License Verifier Plugin

2010-02-04 Thread Karl Heinz Marbaise
Hi Dmitry, Dmitry Katsubo wrote: > It would be nice to have a plugin, that for each dependency checks the > META-INF\manifest.mf for "Bundle-License" entry or tries to guess the > licence type from META-INF\LICENSE.txt or META-INF\license files. It > would be nice, if plugin takes care of "autod

Re: RFC: Maven License Verifier Plugin

2010-02-04 Thread Karl Heinz Marbaise
Hi Anders, Anders Hammar wrote: > Lots of people > don't think of that I we need to help them not doing bad things...The > outcome of this is to remove the option for using an URL... Thanks for you comments.. Kind Regards Karl Heinz Marbaise -- View this message in context: http://old.nabble

Re: SUN Maven(2) repo changes? JMX, JMS, Mail, JMXTOOLS

2010-02-04 Thread bernd . adamowicz
We had the same problem with, I guess, a Fornax repository a few months ago and it was terrible. Question to Maven developers: Wouldn't it be possible to treat a 301 (redirect) error the same way as a 40x error? This would prevent the POMs from beeing corrupted. Bernd Andy Jefferson wrote o

Re: Read properties from pom.xml from Java

2010-02-04 Thread Martin Höller
Hi! Am Donnerstag, 4. Februar 2010 09:59:26 schrieb Søren Krogh Neigaard: > The username/password/driver/url for the database is set in the pom.xml > file by maven. How do I read these values from my Java helper class? Set them in the pom.xml via properties, eg.: nobody And access t

SUN Maven(2) repo changes? JMX, JMS, Mail, JMXTOOLS

2010-02-04 Thread Andy Jefferson
For the last few hours I've been getting issues with Maven2 downloading jars/poms for the following SUN jars jmxtools-1.2.1 jmxri-1.2.1 mail-1.4 jms-1.1 Maven2 goes off to, for example, https://maven-repository.dev.java.net/nonav/repository/com.sun.jmx/poms/jmxri-1.2.1.pom which replies with H

Re: RFC: Maven License Verifier Plugin

2010-02-04 Thread Dmitry Katsubo
Hi Karl! It would be nice to have a plugin, that for each dependency checks the META-INF\manifest.mf for "Bundle-License" entry or tries to guess the licence type from META-INF\LICENSE.txt or META-INF\license files. It would be nice, if plugin takes care of "autodetecting" of licences of "leave" d

Re: Read properties from pom.xml from Java

2010-02-04 Thread bernd . adamowicz
Sounds like this might help you: - Create a Maven plugin which is executed in any phase >>bevore<< test, e.g. 'generate-test-resources'. This will make it possible to set up the database. This plugin might help for starting the database (only if you're using HSQL): http://gforge.openehealth.or

Re: RFC: Maven License Verifier Plugin

2010-02-04 Thread Anders Hammar
Your comment about reproducible builds is VERY important. Lots of people don't think of that I we need to help them not doing bad things... /Anders On Thu, Feb 4, 2010 at 10:37, Karl Heinz Marbaise wrote: > > Hi, > > > Anders Hammar wrote: > > > > Maybe have a look how the assembly plugin works

Re: AW: Prevent duplicates in assembly

2010-02-04 Thread Aleksey Didik
In this case may be better to use maven-shade-plugin to make jar-with-dependencies artifact. As I know, it has some merge mechanizm for compose jars with equal entries names. HTH, Aleksey. 04.02.2010 13:10, Hauschild, Klaus (EXT) пиш

Re: RFC: Maven License Verifier Plugin

2010-02-04 Thread Karl Heinz Marbaise
Hi, Anders Hammar wrote: > > Maybe have a look how the assembly plugin works with descriptors? Having > pre-defined configs that can be referenced by id/name could be handy. Good hint... Anders Hammar wrote: > However, I'm not sure if using a URL to download the descriptor/config is > a > goo

Re: How to download every dependency we need at once?

2010-02-04 Thread ert_nutler
I have a similar arrangement and would love to see your commands if you can post them. Thanks in advance. -- View this message in context: http://n2.nabble.com/How-to-download-every-dependency-we-need-at-once-tp4169797p4511059.html Sent from the maven users mailing list archive at Nabble.com.

AW: Prevent duplicates in assembly

2010-02-04 Thread Hauschild, Klaus (EXT)
Yes, there are more than one dependency. Currently the problematic entry is "META-INF/NOTICE.TXT". After packing the .jar I use this with JNLP and its Jar-Loader doesn't support duplicate entries in jar files. -Ursprüngliche Nachricht- Von: Aleksey Didik [mailto:di...@magenta-technology

Read properties from pom.xml from Java

2010-02-04 Thread Søren Krogh Neigaard
Hi I have been tossed into a maven controlled project. We run our junit tests from Eclipse and also on our build server. When ever they are run, some maven magic happens so that username/password/driver/url for the dabase is correctly set for the user pc or the buildserver. However I need to

Re: Prevent duplicates in assembly

2010-02-04 Thread Aleksey Didik
Hello. Is twice entries from different jar dependencies? Is this jar dependencies the same artifacts but with different versions? Or it's just classes with equals names from different artifacts? Aleksey. 04.02.2010 12:13, Hauschild, Klaus (EXT) пишет: Hi, I'm using the assembly-plugin to creat

Re: Prevent duplicates in assembly

2010-02-04 Thread Anders Hammar
Could this be due to the fact that you have more than one dependency that includes the same class? /Anders On Thu, Feb 4, 2010 at 09:13, Hauschild, Klaus (EXT) < klaus.hauschild@siemens.com> wrote: > Hi, > > I'm using the assembly-plugin to create a jar-with-dependencies by the > build-in as

Re: Need help configuring maven to get through company Proxy?

2010-02-04 Thread Antonio Petrelli
2010/2/3 : > When I try to down load plugins from the Maven Central Repo, I get > redirected to my companies Novell Proxy Server authentication web page; > where an actual user is required to enter their (eDirectory/LDAP) > credentials and click the submit button to be authenticated through the >

Prevent duplicates in assembly

2010-02-04 Thread Hauschild, Klaus (EXT)
Hi, I'm using the assembly-plugin to create a jar-with-dependencies by the build-in assembly descriptor. In the resulting .jar appears some entries twice. Is there a way to prevent those duplicates. My current workarround is: unzip and zip the jar by hand after packing. Thanks