[Maven2] deploy:deploy-file

2007-10-03 Thread Angel Todorov
Hi guys, i am executing deploy:deploy-file , but I am doing this from a directory where there are pom files and so on... Is there any way to tell maven to disregard the contents of the directory from where I execute deploy:deploy-file ? I ask this because if i execute deploy:deploy-file from somew

ClassCastException in ant:ant

2007-10-03 Thread Gary Bauer
Hi On a multi-module project, I have the ant:ant goal working fine. However, on a much simpler project based on the simples archetype, I get a ClassCast exception. Has anyone had/solved this issue before? Thanks! Gary Stack trace and POM file below java.lang.ClassCastException: java.util.Has

Re: mvn site and multprojects

2007-10-03 Thread Tim Kettler
Hi, ? -Tim Holt, Jack C. schrieb: I have a project that contains several subprojects. When I run "mvn site" in the top-level project's directory, the index.html contains links for the subprojects but they point to http://maven.apache.org/index.html. I assume this is a default that is not get

Re: How to deploy to a snapshot site?

2007-10-03 Thread Tim Kettler
Hi, in the 'Why Maven is Hard' thread, Wendy pointed [1] out that there is configuration in the latest plugin parent pom to do somthing like this. -Tim [1] http://www.nabble.com/Why-Maven-is-Hard--tf4507688s177.html#a12966594 Chris Helck schrieb: Hello, In maven2 how can I have snapshots w

Re: Maven Wagon

2007-10-03 Thread Tim Kettler
Hi, nap4110 schrieb: Hi Newbie here: We want to use wagon to grab specific artifacts from our repository. I have looked at the sample test case provided by apache here: http://svn.apache.org/repos/asf/maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/WagonTestCase.jav

Re: M2: how to create jni .jar & .so file from same pom.xml

2007-10-03 Thread Joe Argiro
Dan I'm new to maven2... i tried adding phase to the compile & jar plugins but can't get it to work could you give me an example thanks! --joe - Original Message - From: "Dan Tran" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Wednesday, October 03, 2007 11:24 PM Subject: Re: M2: h

Maven2 Fitnesse Plugin with TeamCity

2007-10-03 Thread Tim Andersen
I'm getting false green for my build. Is anyone else using Maven2 with TeamCity? If so, how do you run your FitNesse tests? We use TeamCity 2.1 for continuous integration. When a FitNesse test fails using the fitnesse-maven-plugin it does not fail the build. I'm having trouble determining

Re: M2: how to create jni .jar & .so file from same pom.xml

2007-10-03 Thread Dan Tran
force maven-compiler-plugin and maven-jar-plugin to compile and package your java classes at 'initialize' phase, and then native-maven-plugin will take over. then you will need build-helper-maven-plugin to attach you jar for deployment. -D On 10/3/07, Joe Argiro <[EMAIL PROTECTED]> wrote: > Hi

Re: Filtering in src/main/webapp/WEB-INF with maven-war-plugin

2007-10-03 Thread Junqi Wu
Arnaud Bailly wrote: > > Matthias Berndt <[EMAIL PROTECTED]> writes: > >> Greetings, >> >> I'd like to filter the web.xml in src/main/webapp/WEB-INF. I tried to >> follow the instructions on >> >> http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html >> >

Suggested best practice for arranging projects

2007-10-03 Thread Ian Rowlands
I have the following scenario for a bunch of projects I wish to implement: I have a "Web Project" which acts as a router for web services. It must contain the web services configuration, the wsdl and the schemas relating to the wsdl. It will contain the "endpoints" of the web service - which

M2: how to create jni .jar & .so file from same pom.xml

2007-10-03 Thread Joe Argiro
Hi I attempting to migrate from maven to maven2. I have an existing project which creates a jar file and a corresponding .so file I'd like to be avoid changing the existing directory structure which looks like project - (pom.xml ) project/src/java - (*.java) project/src/unix - (*.c *.h)

Re: Maven Performance

2007-10-03 Thread Wendy Smoak
On 10/2/07, Angel Sotirov <[EMAIL PROTECTED]> wrote: > We are using Maven2 - Archiva and last two weeks we have serious > performance problems. Maven is taking more than 15min to build > relatively small project. Apparently the problem is getting updates > from one of the 4 Archiva repositorie

Re: Maven Performance

2007-10-03 Thread Angel Sotirov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Greg Morgan wrote: > Angel Sotirov wrote: > > Hi > > > We are using Maven2 - Archiva and last two weeks we have serious > > performance problems. Maven is taking more than 15min to build > > relatively small project. Apparently the problem is getti

Using ArtifactResolver

2007-10-03 Thread nap4110
Hi, I am doing something that I think is very simple, but cannot get anymore info from the stack trace. essentially I want to grab a jar from my repository. Here's the code: ArtifactFactory artifactFactory = new DefaultArtifactFactory(); String type = "compile"; Artifact artifact

Re: Bouncycastle Jars

2007-10-03 Thread Carlos Sanchez
It's better if you ask in [EMAIL PROTECTED], too much noise in maven-dev You can check in https://svn.apache.org/repos/asf/maven/archiva/trunk/maven-meeper/src/bin/synchronize/m2-sync/conf for the groupIds that are being synced or search in http://jira.codehaus.org/browse/MAVENUPLOAD to see who up

mvn site and multprojects

2007-10-03 Thread Holt, Jack C.
I have a project that contains several subprojects. When I run "mvn site" in the top-level project's directory, the index.html contains links for the subprojects but they point to http://maven.apache.org/index.html. I assume this is a default that is not getting overridden because I haven't confi

extension for checkstyle working

2007-10-03 Thread Michael Fortin
Hi I've been trying to get a custom checkstyle check to work but I get an error that checkstyle can't find my custom check. I wrote a a script to run checkstyle by hand and it works so I know my check is correct. My check is in my local repository and I can see it in the maven log output wh

Re: maven exec plug-in and the scope of dependency

2007-10-03 Thread Yan Huang
I have not filed it ... the exec plug-in is not able to inherit jars that are defined only in "test" scope. On 10/3/07, Wayne Fay <[EMAIL PROTECTED]> wrote: > > Are you sure its a bug? Did you file the bug in JIRA? Only bugs in > JIRA will ever get dealt with by the dev team. > > Wayne > > On 10

How to deploy to a snapshot site?

2007-10-03 Thread Chris Helck
Hello, In maven2 how can I have snapshots websites deploy to one URL and releases deploy to another? Thanks, Christopher Helck ** This communication and all information (including, but not limited to, market prices/levels and d

Maven Runtime Settings

2007-10-03 Thread Morgovsky, Alexander (US - Glen Mills)
When I execute a Maven build I sometimes receive a memory heap exception. Is the a best practice set of parameters for running Maven? Thank you. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law.

Re: checkstyle plugins: maven and eclipse

2007-10-03 Thread Greg_Vaughn
> I am using maven-checkstyle-plugin with a specific configuration file > (I made it as a resource in a jar and the plugin configuration works fine: > checkstyle - or the plugin - is clever enough to get the xml file out of the > dependency jar) > > I'd like to do the same within eclipse with t

Maven Wagon

2007-10-03 Thread nap4110
Hi Newbie here: We want to use wagon to grab specific artifacts from our repository. I have looked at the sample test case provided by apache here: http://svn.apache.org/repos/asf/maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/WagonTestCase.java What isn't clear is

Re: Multiple source directories

2007-10-03 Thread Dan Tran
here is my version parent src/main/java <--- common source go here server src/main/java mobile src/main/java Use your option 'b' to inject common source directory to server/mobile builds. This way, changes in the common source apply to both server and mobi

Re: maven exec plug-in and the scope of dependency

2007-10-03 Thread Wayne Fay
Are you sure its a bug? Did you file the bug in JIRA? Only bugs in JIRA will ever get dealt with by the dev team. Wayne On 10/3/07, Yan Huang <[EMAIL PROTECTED]> wrote: > Does anyone know if this defect would be fixed soon in exec plug-in? Right > now, I have to define all of test dependencies (i

Re: maven exec plug-in and the scope of dependency

2007-10-03 Thread Yan Huang
Does anyone know if this defect would be fixed soon in exec plug-in? Right now, I have to define all of test dependencies (including versions) within plug-in, which is kind of pain of neck and not flexible since i have to hard-code the dependency version ... On 9/18/07, Wayne Fay <[EMAIL PROTECTED

Re: checkstyle plugins: maven and eclipse

2007-10-03 Thread Wayne Fay
You'll probably have better luck with this question in an Eclipse mailing list. Or possibly even the main Checkstyle user list. Wayne On 10/3/07, houzecl <[EMAIL PROTECTED]> wrote: > > Hi > > I am using maven-checkstyle-plugin with a specific configuration file > (I made it as a resource in a jar

Profile Execution Sequence

2007-10-03 Thread Yan Huang
Hello, I did a experiment regarding when maven executes the plug-in in an active profile. I define a profile at the top of pom.xml as belows: PrepareTestEnv !maven.test.skip maven-antrun-plugin

Re: Maven2 SNAPSHOT-artifacts in Continuum

2007-10-03 Thread noon
> SNAPSHOT to Maven2 repository the deployed JAR will be named like > "myartifact-1.0-20071003.xx-2.jar" where the "xx" is some sort of > time stamp and "-2" is the build number, right? Sofar so good... However, > Continuum still uses the first SNAPSHO

Why is the deploy-plugin deploying my assemblies?

2007-10-03 Thread Dennis Lundberg
Hi I'm trying to use the assembly plugin in combination with the deploy-plugin. When I have created my assembly, 'mvn assembly:assembly', I use the deploy-plugin. The deploy-plugin deploys my assemblies as well as the artifacts (jars) that are created by the project. Is there a way to prevent

Maven2 SNAPSHOT-artifacts in Continuum

2007-10-03 Thread noon
using Continuum (1.0.3). OK, after first SNAPSHOT release Continuum works perfectly with the webapp but when I redeploy the SNAPSHOT to Maven2 repository the deployed JAR will be named like "myartifact-1.0-20071003.xx-2.jar" where the "xx" is some sort of time stamp and &q

checkstyle plugins: maven and eclipse

2007-10-03 Thread houzecl
Hi I am using maven-checkstyle-plugin with a specific configuration file (I made it as a resource in a jar and the plugin configuration works fine: checkstyle - or the plugin - is clever enough to get the xml file out of the dependency jar) I'd like to do the same within eclipse with the eclips

Multiple source directories

2007-10-03 Thread Robert Bjarum
24SevenOffice, the world leading web-based ERP system, has checked this mail for viruses. Hi all, I principle, I agree with those who say it is against "Best Practice" to have mulitply source directories in a project. However, I have run into this situation taking an existing project over to

Re: Maven Plugin for Eclipse 2.0

2007-10-03 Thread Daniele De Francesco
Hi, excuse me, just for sake of curiosity, what u can do with Eclipse2.0 that u cannot with Eclipse 3.x? I mean Eclipse 2.0 is a big piece of software but it just dates back 5 years I wait curious for your answer :-) Bye On 10/3/07, LukeLallu <[EMAIL PROTECTED]> wrote: > > > Thank You so mu

Re: Make a Codehaus plugin works on a local configuration

2007-10-03 Thread winegoddess
Im also having this problem, but also with this plug-in: org.apache.maven.plugins It does not happen all of the time. Mostly it happend to remote users, sporadically. It seems to have something to do with the refresh? The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not exist o r n

Eclipse:Eclipse Exports Test Resources

2007-10-03 Thread Matthew McCullough
I am working on a project that has three layers (poms) that roughly represent a MVC stratification. In the lowest layer, we have src/main/test/resources/ourapp.properties that drives some of the unit tests. In the next layer, we have src/main/test/resources/ourapp.properties with more complex co

classes not refering to test resources internally?

2007-10-03 Thread Sonar, Nishant
Hi I have some XML files as test resources to work on. I have the classes use these resources as String SOAP_REQUEST_SAML2_UNSIGNED_NO_ROLES = "xml/SoapRequestSaml2Unsigned-NoRoles.xml"; String SOAP_REQUEST_SAML2_ENVELOPED_DIGITAL_SIGNATURE_NO_ROLES = "xml/SoapRequestSaml2EnvelopedD

Re: Maven Plugin for Eclipse 2.0

2007-10-03 Thread LukeLallu
Thank You so much for the reply for it is something like this for a web project right Step 1 : After Maven 2.0.7 installtion mvn -U archetype:create -DgroupId=com.mycompany.app -DartifactId=my-web-app -Dpackagename=com.mycompany.app -DarchetypeArtifactId=maven-archetype-webapp Create a Web Proj

classes not refering to test resources internally?

2007-10-03 Thread Sonar, Nishant
Hi I have some XML files as test resources to work on. I have the classes use these resources as String SOAP_REQUEST_SAML2_UNSIGNED_NO_ROLES = "xml/SoapRequestSaml2Unsigned-NoRoles.xml"; String SOAP_REQUEST_SAML2_ENVELOPED_DIGITAL_SIGNATURE_NO_ROLES = "xml/SoapRequestSaml2EnvelopedD

Re: Transitive dep misunderstanding

2007-10-03 Thread Raffaele
Really, I tried to set up another slightly different scenario, this one: A --> B --> C where both B and C are defined as compile scope At this point, running mvn eclipse:eclipse on project A, in Eclipse this time I see in the "Referenced Libraries" also the jar of project C. In the end, it was a

Bouncycastle Jars

2007-10-03 Thread Mark Diggory
Is Bouncycastle responsible for publishing their jars under ( http:// repo1.maven.org/maven2/bouncycastle/ )or is someone else doing it? There are a few additions we are hoping to see in the repository. thanks, Mark - To unsu

How to automatically deploy an Axis webservice?

2007-10-03 Thread johlke
Hello community, I use a maven script for building and deploying a web application to Tomcat. Therefore web service skeletons, WSDDs, ... are automatically created using this maven script. Does anyone know how I can automatically deploy my web services using Axis? I suppose the AxisServlet has to

Build's state in report

2007-10-03 Thread Martin Alejandro Villalobos
Hello. Some body knows if there is some report in site plugin that include the build's state, i.e failure or sucessfull? Thanks for all and cheers. Martin. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: Maven Plugin for Eclipse 2.0

2007-10-03 Thread Wayne Fay
As Wendy already told you, there is no Maven plugin for Eclipse 2.0. If you want to use a Maven plugin Eclipse, you will need to upgrade to a newer release ie Eclipse 3.3. Assuming you have installed Maven 2.0.7 properly (and set up an Internet proxy etc if necessary), go to your project directory

Specifying ftp port number during deploy?

2007-10-03 Thread Baz
Hi, Is there a way to specify the port number during deploy? I am asking this because I might have one server that has more than one ftp servers created. Thank you. A.

Re: Maven Plugin for Eclipse 2.0

2007-10-03 Thread LukeLallu
I am very new to Maven, How do I do 'mvn eclipse:eclipse' when plugin could not be installed. I am trying to install the plugin in the WSAD. The Error I get is -- Feature requires feature "com.ibm.wswb (2.1.1)", or compatible. WebSphere Application Server - Express (5.1.0): Feature r

Filtering test resources?

2007-10-03 Thread mateamargo
Is there any way to filter the test resources? Every time I try I get the files with the placeholder in it instead of the value. Thanks. -- View this message in context: http://www.nabble.com/Filtering-test-resources--tf4562106s177.html#a13019900 Sent from the Maven - Users mailing list archive

Re: Maven Plugin for Eclipse 2.0

2007-10-03 Thread Wendy Smoak
On 10/3/07, LukeLallu <[EMAIL PROTECTED]> wrote: > But could not install it as all these versions are COMPLIANT with Eclipse > 3.1 and above. > > I am using WSAD 5.1.0 version is having Eclipse 2.0 version I don't know that there's an IDE plugin available for something that old. Have you tried '

Maven Plugin for Eclipse 2.0

2007-10-03 Thread LukeLallu
Downloaded the maven plugin also from http://m2eclipse.codehaus.org/ http://m2eclipse.codehaus.org/update-dev/ http://m2eclipse.codehaus.org/update/ (Site given by Apache itself) Tried from http://www.eclipseplugincentral.com/modules.php too But could not install it as all these versions are C

RE: Improving Maven Site Docs (was maven is hard)

2007-10-03 Thread mrox
There are two things that the maven site documentation should accomplish 1. Top level view: what were they thinking when maven was designed - What use cases does it attempt to solve, (with only core plugins) - What are the standards followed - What maven does not try to

Re: [m2] jars not being built and deployed during release:perform

2007-10-03 Thread James Abley
James Abley wrote: > > Hi, > > I have done three previous release:prepare and release:perform cycles on > this project, but something seems to have changed and I need a hand > pin-pointing it. > > I have used the maven-release-plugin to prepare a release of my > multi-module project and that w

Re: setting up rsync remote repo and release questions

2007-10-03 Thread Mark Diggory
Sorry, thats an error, yes some of the Apache stuff we are working with did not have latest versions in the central repo, I see Lucene 2.2.0 was placed in there earlier this summer and I'll switch us to that. We'll also ask about getting the latest bouncycastle jars added as well. -Mark

Re: Transitive dep misunderstanding

2007-10-03 Thread Tim Kettler
Hi, Raffaele schrieb: Hi all, my very simple scenario: project B dependes upon project A which dependes upon Junit, and so: I guess you mean project A depends on project B which depends on Junit. A --> B --> Junit Project A also needs of Junit to compile its test classes, but I would like t

Re: Transitive dep misunderstanding

2007-10-03 Thread Mark Struberg
may it be that the junit only has the scope='test' in the pom and this scope will not be taken by the eclipse:eclipse? For what i know eclipse does not have an own 'test' classpath but only one-for-all. LieGrü, strub --- Nick Stolwijk <[EMAIL PROTECTED]> schrieb: > A.F.A.I.K. transitive depende

Re: Transitive dep misunderstanding

2007-10-03 Thread Nick Stolwijk
A.F.A.I.K. transitive dependencies only count at runtime. You need those dependencies to run your program. If you need a dependency at compile time, it is your own dependency and not some transitive dependency. Hth, Nick Stolwijk Raffaele wrote: Hi all, my very simple scenario: project B dep

Transitive dep misunderstanding

2007-10-03 Thread Raffaele
Hi all, my very simple scenario: project B dependes upon project A which dependes upon Junit, and so: A --> B --> Junit Project A also needs of Junit to compile its test classes, but I would like that project A didn't define directly the dependency from Junit. Can Junit in this scenario be consi

Re: Remote Debugging on Linux

2007-10-03 Thread Rémy Sanlaville
> > But, why is it working on Windows and not on Linux? I don't really know. I am on Windows and I have to specify the configuration Surefire plugin in order to debug my tests in remote mode. Did you have the same pom.xml (same Surefire configuration and version) ? Try to clean your local reposi

Problem with %M2_HOME%\conf\settings.xml

2007-10-03 Thread alexsil
I'm using continuum 1.0.3 on Linux machine with maven 2.07 installed. In M2_HOME/conf/settings.xml I overrided default repository information to link our internal repository. I've defined M2_HOME & JAVA_HOME in the shell. When I use maven directly all is OK. If I use Continuum I get an error. T

Re: HOW TO RUN MULTIPLE PACKAGING USING DIFFERENT ENV?

2007-10-03 Thread Tim Kettler
Hi, please don't write in all caps (even if it's just the subject), this is considered rude. People will decide to read and answer you question not based on how strong you try to advertise it but on how good you describe your problem and if they know an answer. Regarding your question. this

Re: maven dependency management

2007-10-03 Thread Eguzki Astiz Lezaun
Problem solved! We use local repository to deploy the modules during development. The other modules that need those other modules as dependencies will take them from the local repository. No need to change the version in POM file while deploying (locally), previously deployed content is repl

Re: [maven2 antrun plugin] problem with classpath

2007-10-03 Thread Tim Kettler
Hi, I can reproduce the problem but have no clue either what the root cause could be. Howerver, it's working for me with the xdoclet-maven-plugin [1] from the mojo project: org.codehaus.mojo xdoclet-maven-plugin process-resources xdoclet

Re: How do people handle installers/exe/bat/sh in maven?

2007-10-03 Thread Siegfried Goeschl
Hi Wim, I use the commercial Install4J ant am ANT script to create installers for Windows, Mac and Linux. Siegfried Goeschl Wim Deblauwe wrote: Hi, I have a question for the people that use maven to create an application (as opposed to a library). How do you provide an easy start point for

Re: Remote Debugging on Linux

2007-10-03 Thread Emmanuel Hugonnet
Netbeans with the maven plugin can do this for you automagically ;o) 2007/10/3, Rémy Sanlaville <[EMAIL PROTECTED]>: > > Indeed, by default surefire start a new jvm for the tests. > So you have to add your remote debug configuration in the surefire > configuration plugin like that : > > >

Re: Remote Debugging on Linux

2007-10-03 Thread EN
Thanks, I'll give it a try. But, why is it working on Windows and not on Linux? Erez. -- View this message in context: http://www.nabble.com/Remote-Debugging-on-Linux-tf4556044s177.html#a13014244 Sent from the Maven - Users mailing list archive at Nabble.com.

Re: Maven 2 and JDK 6

2007-10-03 Thread aminmc
Hi I am trying to build the project with jdk6 and maven. The project compiles ok but when runnign the tests i get nullpointer exceptions which i don't get when running the same tests in eclipse and jdk 6. I'm wondering ( i could be wrong here ) if it's related to surefire... Thanks Michael McC

Re: [INFO] An invalid artifact was detected.

2007-10-03 Thread Tim Kettler
Hi, you can't have a dependency without a version in the depManagement section. -Tim siegfried schrieb: I downloaded a maven, hibernate, spring demo six months ago from virtuas.com. I thought I remembered it working with "mvn test" but I might have since upgraded maven (I'm not sure). I do kno

Re: Remote Debugging on Linux

2007-10-03 Thread Rémy Sanlaville
Indeed, by default surefire start a new jvm for the tests. So you have to add your remote debug configuration in the surefire configuration plugin like that : org.apache.maven.plugins maven-surefire-plugin 2.3 -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:t