Re: Use mirror in parent snapshot inheritance

2009-03-03 Thread Vincent Beretti
Thanks for the answer. I look at the blog article. In fact, we use mirror definition in settings.xml. This is the only way for B to grab A from our Nexus repository. The problem is that when A is not in our local repository, B is not able to grab A in nexus if A is a snapshot version. The mirror

Re: Generating site with confluence markup

2009-03-03 Thread Lukas Theussl
A lot of stuff has been fixed in Doxia 1.1, see comments in-line. A full list of changes in the confluence module is here: http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truepid=10780status=6component=12000 Borut Bolčina wrote: Thanks, I just tried with the snippet you posted. It

Compilation problem with maven

2009-03-03 Thread amar . sannaik
Hi there, I get a error while compilation with maven, I am using maven version 2.0.10 here is the maven compiler config I have plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration

Re: Functional Test strategies with Maven

2009-03-03 Thread Martin Höller
Hi Martijn! I'm joining this discussion a little late, but have some references to add which may help making up your mind: http://docs.codehaus.org/display/MAVENUSER/Maven+and+Integration+Testing http://www.jroller.com/carlossg/entry/functional_testing_with_maven_cargo hth, - martin On Monday

RE: Compilation problem with maven

2009-03-03 Thread Jon Georg Berentsen
That's not a maven error. It's the java compiler telling you there is a compilation error in your code. Jon -Original Message- From: amar.sann...@gmail.com [mailto:amar.sann...@gmail.com] Sent: 3. mars 2009 09:36 To: users@maven.apache.org Subject: Compilation problem with maven Hi

Re: Compilation problem with maven

2009-03-03 Thread Jörg Schaible
amar.sann...@gmail.com wrote at Dienstag, 3. März 2009 09:35: Hi there, I get a error while compilation with maven, I am using maven version 2.0.10 here is the maven compiler config I have plugin groupIdorg.apache.maven.plugins/groupId

Re: Compilation problem with maven

2009-03-03 Thread amar . sannaik
Yep, ya got it. Thanks a lot.. On Tue, Mar 3, 2009 at 4:30 PM, Jörg Schaible joerg.schai...@gmx.de wrote: amar.sann...@gmail.com wrote at Dienstag, 3. März 2009 09:35: Hi there, I get a error while compilation with maven, I am using maven version 2.0.10 here is the maven

conditional extensions

2009-03-03 Thread Henri Gomez
Hi to all, I used to have the following in our enterprise POM. build ... extensions extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-webdav/artifactId version1.0-beta-2/version /extension /extensions As of maven 2.0.9 it's no more

Executing another process from maven plugin

2009-03-03 Thread Roman Kournjaev
Hi Folks I am a little bit stuck here with the following problem. I have written some custom compiler plugin that invokes the actual compiler, the problem is that i have to do it in a separate process Runtime.exec() It goes like that : Process process = null; String

Re: Executing another process from maven plugin

2009-03-03 Thread Edelson, Justin
What is inside the getClassPath() method? On Mar 3, 2009, at 8:58 AM, Roman Kournjaev kournj...@gmail.com wrote: Hi Folks I am a little bit stuck here with the following problem. I have written some custom compiler plugin that invokes the actual compiler, the problem is that i have to

Re: Executing another process from maven plugin

2009-03-03 Thread Roman Kournjaev
Ohh, Sorry Just the regular thing .. : private static String getClassPath() { return prop.getProperty(java.class.path, null); } Roman On Tue, Mar 3, 2009 at 4:26 PM, Edelson, Justin

executing or skipping tests based on availability of WSDL URL

2009-03-03 Thread kvenkatraman
Hi Our Junit tests depends on WSDL for testing the webservice. Most of the time our build fails because of non availability of the WSDL. I dont want to skip the tests , rather I want to check if the WSDL is available and run the tests, else skip the tests.WSDL is hosted as URL Thanks kv --

RE: Executing another process from maven plugin

2009-03-03 Thread Edelson, Justin
I believe that will give you the class path of the current process, which is why you're getting Maven stuff. If you're trying to get project dependencies, what you want to do is include this annotation in your class comments: @requiresDependencyResolution compile And then, use

Re: Executing another process from maven plugin

2009-03-03 Thread Roman Kournjaev
Thanks Justin If that works , then this is the solution for my problem , but i just cant find the *project.getCompileClasspathElements()* , where do i get the *project *variable from ? I didnt see it in the AbstractMojo class? Thanks On Tue, Mar 3, 2009 at 4:40 PM, Edelson, Justin

RE: Executing another process from maven plugin

2009-03-03 Thread Edelson, Justin
The project variable (which doesn't need to be named project) should be injected by Plexus. Here's an example: /** * @parameter expression=${project} * @required * @readonly */ private MavenProject project; From: Roman Kournjaev

Re: Executing another process from maven plugin

2009-03-03 Thread Roman Kournjaev
Justin , you're the Man .. .! Thanks a lot! On Tue, Mar 3, 2009 at 4:59 PM, Edelson, Justin justin.edel...@mtvstaff.com wrote: The project variable (which doesn't need to be named project) should be injected by Plexus. Here's an example: /** * @parameter expression=${project}

Re: Executing another process from maven plugin

2009-03-03 Thread Roman Kournjaev
Justin , just one more small question. The project.getCompileClasspathElements() , gets me the elements of the classpath of the project that the plugin is actually running , but not of the plugin itself , so i had to add plugin dependencies also to the pom.xml where the plugin is configured. Is

mvn site triggers generate-sources

2009-03-03 Thread Daniel.Q.Pfeifer
Hi, I was wondering if any of you guys encountered the same problem. I am generating some source code using an ANT Task, the task is triggered when the Maven lifecycle reaches the generate-sources phase. That works just fine, the problem is, the very same phase is executed when I do generate

Maven 2 and C/C++ Testing Framework

2009-03-03 Thread Rémy Sanlaville
Hi, I am looking for using C/C++ Testing Framework (like CppUnit, CxxTest or googletest) with maven 2. Does anybody already done it ? We are using native-maven-plugin for the compilation. But I am quite surprise that the native build lifecycle for this plugin consists of the following phases

Re: Maven 2 and C/C++ Testing Framework

2009-03-03 Thread Dan Tran
The mentioned test phase is for java test. Take a look at jade native maven plugin, it is an spin off of native plugin and covers cppunit test -D On Tue, Mar 3, 2009 at 7:59 AM, Rémy Sanlaville remy.sanlavi...@gmail.com wrote: Hi, I am looking for using C/C++ Testing Framework (like

Re: Why does the release plugin refuse input?

2009-03-03 Thread Ray Krueger
On Mon, Mar 2, 2009 at 3:36 PM, Ray Krueger raykrue...@gmail.com wrote: It seems the release plugin has gone into this sort of my way or the highway mode on us. Why won't it accept our snapshot version? It ignores our current 1.0.1-SNAPSHOT version and suggests 1.1-SNAPSHOT, and then it won't

RE: Use mirror in parent snapshot inheritance

2009-03-03 Thread Brian E. Fox
Sounds like you have no snapshot repositories enabled in the settings. In our sample settings, we show overloading central to enabled snapshots. The mirror then directs this to nexus which will find it. If maven sees no snapshot repo enabled, it doesn't even try to find it externally. See here:

Re: jar:sign refuses to sign jar artifact of project with custom packaging type

2009-03-03 Thread Rob Dickens
same story with the new mvn 2.0.10 maven-jar-plugin is at 2.2 Has no one else seen this? 2009/3/2 Rob Dickens arctic@googlemail.com I get the following message when mvn is run with the -X option: [DEBUG] Not executing jar:sign as the project is not a Java module (Am using a custom

Maven plugin to call ESAPI?

2009-03-03 Thread Leonardo Andrade
Hi there, Is it possible to call ESAPI from Maven? Say, when Maven is about to run, it calls Eclipse to check for the code. Is it possible, by creating a plugin? Thanks. Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com

Re: executing or skipping tests based on availability of WSDL URL

2009-03-03 Thread Wayne Fay
Something along these lines was just discussed a couple days ago... check the archive for the full thread. from: Les Hazlewood date: Wed, Feb 25, 2009 at 2:56 PM subject: Conditional plugin execution based on build time behavior - Maven profiles not sufficient? Wayne On Tue, Mar 3, 2009 at 6:32

Re: jar:sign refuses to sign jar artifact of project with custom packaging type

2009-03-03 Thread Wayne Fay
same story with the new mvn 2.0.10 maven-jar-plugin is at 2.2 Has no one else seen this? In all likelihood, you're one of the first people to try using jar:sign on a custom artifact. So it might be a little painful to get it working, and may involve changing some code in the Jar plugin. Once

Re: Generating site with confluence markup

2009-03-03 Thread Borut Bolčina
Thanks for the pointers, so there is no way I can use doxia confluence with Maven 2.0.10? Can you post an example like Dirk did? Thanks again, Borut 2009/3/3 Lukas Theussl ltheu...@apache.org: A lot of stuff has been fixed in Doxia 1.1, see comments in-line. A full list of changes in the

[ANN] Maven Project Info Reports Plugin 2.1.1 Released

2009-03-03 Thread Vincent Siveton
The Maven team is pleased to announce the release of the Maven Project Info Reports Plugin, version 2.1.1. This is a maintenance release due to MPIR-146. This plugin is used to generate reports information about the project. http://maven.apache.org/plugins/maven-project-info-reports-plugin You

RE: Executing another process from maven plugin

2009-03-03 Thread Edelson, Justin
I don't know if there's an easy way to do this. The plugin class loader is created at runtime via Classworlds, so you can do something like this: URLClassLoader cl = (URLClassLoader) Thread.currentThread().getContextClassLoader(); And then call cl.getURLs(). But this list is probably going to

Re: mvn site triggers generate-sources

2009-03-03 Thread Wayne Fay
That works just fine, the problem is, the very same phase is executed when I do generate the Project Site using mvn site. Thus, the task bound to generate-sources is triggered several times for every site thats built. My best guess without seeing your poms and knowing more about your project

Re: Eclipse and maven

2009-03-03 Thread John Wooten
Here is the link to the info you requested. Thanks a lot for taking the time to help with this. http://pastebin.com/m57fb8d1e On Mar 2, 2009, at 4:25 PM, Edelson, Justin wrote: John- Sorry I didn't get back to you about your 1.5 problem over the weekend. Can you post your pom and the

Dependency question

2009-03-03 Thread stanlick
Hey guys -- I am trying to build a tool for the lawyers that will reveal a dependency tree of all downstream products necessary when considering adoption of an open source product. For the sake of illustration, I have created a simple project with a single dependency on Struts 2. project ...

Re: Can no longer create war file

2009-03-03 Thread Marco Huber
Hi Johan, if these are your complete pom.xml's, than you must have an other problem. There are no classifier in there, even only the dependency between core and web. The classifier was only a guess. Regards Marco Johan S wrote: Hi I think I have a similar problem but don't know how to

Re: Can no longer create war file

2009-03-03 Thread Johan S
Marco I know... However I don't know what I did to get it like this. A single war-project works without any problem. It's only when I have a multiple modules i a parent project and then a dependency from one of the modules to the other. Marco Huber wrote: Hi Johan, if these are your

Re: Dependency question

2009-03-03 Thread Wayne Fay
I am running mvn dependency:tree and expecting a large dependency tree, when in fact all I get is what you see below.  I *know* there are more dependencies than this!  Can someone help me out with this flags and switches please? How do you *know* there are more dependencies? Have you tried

RE: Executing another process from maven plugin

2009-03-03 Thread Edelson, Justin
It looks like I was wrong about there not being an easy way to get the plugin classpath. From the Cobertura plugin: /** * iMaven Internal/i: List of artifacts for the plugin. * * @parameter expression=${plugin.artifacts} * @required * @readonly */ protected

RE: Dependency question

2009-03-03 Thread Brian E. Fox
If every jar present in dependency:resolve is shown in the tree, then that's all folks. -Original Message- From: Wayne Fay [mailto:wayne...@gmail.com] Sent: Tuesday, March 03, 2009 2:52 PM To: Maven Users List Subject: Re: Dependency question I am running mvn dependency:tree and

RE: Eclipse and maven

2009-03-03 Thread Edelson, Justin
This is very strange. It looks like an older version of the master is being used. If you run help:effective-pom against the master, does it correctly show targetJdk = 1.5? You should probably get rid of the duplicate plugin configuration within the reporting section. I don't see how that could

Problem with 'type' attribute of dependencies maven-ant task

2009-03-03 Thread Tom Snider
Hi, I have a problem with the 'type' attribute of the depedencies maven-ant task. I have installed plugin components for my app of type 'abc' into my server's repository. I specified this using packagingabc/packaging in the plugins' pom.xml. In fact 'abc' archives are jars. But i chose a

RE: Dependency question

2009-03-03 Thread stanlick
Thanks guys -- If you look at the POM for Struts 2.1.6 there are many more dependencies than what show up running dependency:resolve. I verifies the default for scope because several of the dependencies are test. It appears the default is all scopes, so I am wondering why I don't see them

Re: Dependency question

2009-03-03 Thread Stephen Connolly
Those dependencies are required to *test* struts they are not required by your project as struts has already been tested. -Stephen 2009/3/3 stanlick stanl...@gmail.com Thanks guys -- If you look at the POM for Struts 2.1.6 there are many more dependencies than what show up running

Archetype Plugin and .cvsignore

2009-03-03 Thread Felipe Kamakura
Hello all, I'm creating a new project archetype that contains several .cvsignore files, but the archetype-plugin ignores it when creating an archetype from the project. I've tried to modify the generated archetype by hand and adding the .cvsignore as a resource, but the file is not packaged to

Re: jar:sign refuses to sign jar artifact of project with custom packaging type

2009-03-03 Thread Rob Dickens
Okay - after some google codesearching, and minimal testing, the following appears to address the problem: In the execute() of the Mojo for the goal which precedes the jar:jar one, add the following: project.getArtifact().setArtifactHandler(new MyArtifactHandler()); where MyArtifactHandler is

RE: JMETER

2009-03-03 Thread Jerry Thome
Thanks Martin! I was able to compile that class and recreate the jorphan.jar. Got past the issue. On to the next... responseData class=java.lang.Stringjava.net.ConnectException: Connection refused: connect#x0D; at java.net.PlainSocketImpl.socketConnect(Native Method)#x0D;

problem with archetype : generate for struts 2

2009-03-03 Thread nani2ratna
Hi, I just want to create a archetype for struts with the command mvn archetype:generate I am selecting 19 from the options. Its giving error message like Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/str

Re: problem with archetype : generate for struts 2

2009-03-03 Thread Nick Stolwijk
It seems the old 2.0.9-SNAPSHOT has been removed. Try the following command: mvn archetype:generate -DarchetypeGroupId=org.apache.struts -DarchetypeArtifactId=struts2-archetype-starter -DarchetypeVersion=2.0.11.2-SNAPSHOT I also noticed this version has been released to

Re: problem with archetype : generate for struts 2

2009-03-03 Thread nani2ratna
Hi this is working mvn archetype:create -DgroupId=tutorial -DartifactId=t utorial -DarchetypeGroupId=org.apache.struts -DarchetypeArtifactId=struts2-arche type-starter -DarchetypeVersion=2.0.11.2-SNAPSHOT -DremoteRepositories=http://pe ople.apache.org/repo/m2-snapshot-repository Thanks ratna

Re: problem with archetype : generate for struts 2

2009-03-03 Thread Nick Stolwijk
It seems that is the default repository, which unfortunately only contains SNAPSHOT versions. The archetype already has been released, but I don't know how to get the released version from the central repository. With regards, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012

Re: Archetype Plugin and .cvsignore

2009-03-03 Thread Wayne Fay
Issue *archetype-52 *claims that the problem has been fixed. Is it fixed, or I am missing something? What version are you using? http://jira.codehaus.org/browse/ARCHETYPE-52 says it is fixed in version 2.0-alpha-1. Wayne -

Any maven repo mirrors in China?

2009-03-03 Thread Raymond Feng
Hi, Do we have any maven repo mirrors in China? Our (Apache Tuscany project) Chinese users always complain that their connections to repo1.maven.org are very slow and it takes hours to run a build. Most of the time it fails in the middle due to download issues. Thanks, Raymond

Re: Archetype Plugin and .cvsignore

2009-03-03 Thread Felipe Kamakura
Hi Wayne, Just to clarify this issue I'm forwarding my conversation with Raphaël. I'll open an issue in Jira for this. I've thought about a workaround using a property __cvsignoreFile__ and filtering it to .cvsignore. It worked =D Thanks for the support. -- Forwarded message --

RE: JMETER

2009-03-03 Thread Martin Gainty
the Jmeter host and port parameters should be located in %JMETER_HOME%\bin\jmeter.properties e.g. beanshell.server.port=8080 httpclient.localaddress=1.2.3.4 --find the SecureHandshake your SSH client is using and configure the https.default.protocol to use it https.default.protocol=SSLv3

RE: JMETER

2009-03-03 Thread Jerry Thome
I did get it working with a little brute force before I received your latest suggestion. First, I added ssl.provider and javax.net.ssl.keyStorePassword to the jmeter.properties. These were not present as options in the jmeter.properties that came with the 2.3.2 JMeter. Next, I modified the

Re: Any maven repo mirrors in China?

2009-03-03 Thread Jason van Zyl
Juven might have a better idea, but you can definitely use Nexus to cache the artifacts on site so that once the artifacts were retrieved the local cache will be used. That will save a lot of bandwidth and time. http://nexus.sonatype.org On 3-Mar-09, at 4:02 PM, Raymond Feng wrote: Hi,

Re: Dependency question

2009-03-03 Thread stanlick
Thanks bro -- I realize that, but shouldn't they show up as dependencies even though they are only depended on during testing? Peace, Scott Stephen Connolly-2 wrote: Those dependencies are required to *test* struts they are not required by your project as struts has already been

Wsdl2java code generation

2009-03-03 Thread Vishal Pahwa
Maven of Maven build technology, Greetings !! I need some help with the maven plugin to generate code from wsdl file. If you have tried the same earlier please email me separately. What has been tried: Option 1 wsdl2java plugin (CXF WSDL-to-Java code generation) This generates the code from

Re: Dependency question

2009-03-03 Thread Wayne Fay
I realize that, but shouldn't they show up as dependencies even though they are only depended on during testing? If you aren't building and testing Struts but merely using it, then they aren't used, so no. Wayne - To

classpath attributes for maven-eclipse-plugin

2009-03-03 Thread Andrew Eisenberg
Hi all, I was wondering if it is possible to add classpath attributes to the .classpath file when the maven eclipse plugin creates an eclipse project. For example, this is what i would like to do something like this (the attribute section): ?xml version=1.0 encoding=UTF-8? classpath

Re: classpath attributes for maven-eclipse-plugin

2009-03-03 Thread Arnaud HERITIER
Hi Is it this issue : http://jira.codehaus.org/browse/MECLIPSE-270 ? can you test a 1.6-SNAPSHOT ? arnaud On Wed, Mar 4, 2009 at 7:11 AM, Andrew Eisenberg and...@eisenberg.aswrote: Hi all, I was wondering if it is possible to add classpath attributes to the .classpath file when the maven

Re: Archetype Plugin and .cvsignore

2009-03-03 Thread Raphaël Piéroni
Yup, ARCHETYPE-52 was fixed for some dotted files. but all the classical scm files are ignored by default. Regards, Raphaël 2009/3/4 Wayne Fay wayne...@gmail.com Issue *archetype-52 *claims that the problem has been fixed. Is it fixed, or I am missing something? What version are you