local repository path in settings.xml or pom.xml?
To: Maven Users List users@maven.apache.org
Date: Sunday, May 22, 2011, 11:54 AM
On May 21, 2011, at 10:41 PM, Ron Wheeler wrote:
On 20/05/2011 9:06 PM, Petr V. wrote:
Thanks Brian for your reply.
Our developers work on several projects
I am trying to define local repository path in settings.xml on Windows.
I have a windows environment variable CODE_BASE=C:\mycode
In settings.xml , I put
localRepository${env.CODE_BASE}\build\local_depot/localRepository
But it does not read environment variable. How can I read environment
.
Thanks,
--- On Sat, 5/21/11, Petr V. greatman...@yahoo.com wrote:
From: Petr V. greatman...@yahoo.com
Subject: How to define local repository path in settings.xml or pom.xml?
To: Maven Users List users@maven.apache.org
Date: Saturday, May 21, 2011, 2:26 AM
I am trying to define local repository
breaks for Windows v. *nix. And your builds plugins should not require a
fixed location for the repository, rather, it should be resolved from the
context sent by Maven itself.
On May 20, 2011, at 4:35 PM, Petr V. wrote:
I have figured out the way to use {env.CODE_BASE} but for that each user
? But I understand you ;-)
Rafael
On Tue, Nov 4, 2008 at 9:06 PM, Petr V. [EMAIL PROTECTED] wrote:
Hi Rafael,
I guess I now know the issue. The test case generated by maven for a
project can be run in Eclipse because it extends TestCase class
But if you run following test in eclipse
When I issue mvn test command, all my tests in test directory are executed,
what if I need to run some particular test(assuming we have different test
classes instead of one big test class). And is it possible in eclipse to run
one particular test with m2eclipse ?
Thanks,
Petr
, to ensure that the package is not broken due to logical
errors.
Rafael Trestini
On Tue, Nov 4, 2008 at 4:49 PM, Petr V. [EMAIL PROTECTED] wrote:
When I issue mvn test command, all my tests in test directory
are executed, what if I need to run some particular test(assuming we have
different test
, and the test
works fine.
Are you using maven eclipse plugin to generate your project?
Rafael Trestini
On Tue, Nov 4, 2008 at 6:06 PM, Petr V. [EMAIL PROTECTED] wrote:
Rafael,
I am using Junit 4.5
My test class is as follows
import org.junit.Test;
import junit.framework.Assert;
public class
).
Well, this may not be a root of your problem, but I will do a
step-by-step on how I created my projects. If you want, you can repeat
this steps, tunning to your needs;
1. Create a project with archetype:
On Tue, Nov 4, 2008 at 7:09 PM, Petr V. [EMAIL PROTECTED]
wrote:
Thanks Rafael
Plugin for Maven to integrate dot net component in main
project build ?
To: Maven Users List users@maven.apache.org, [EMAIL PROTECTED]
Date: Friday, October 31, 2008, 2:13 AM
have a look at the exec-maven-plugin
2008/10/30 Petr V. [EMAIL PROTECTED]
Yeah we have looked into nMaven
code when ant script fails :-)
Thanks,
Petr
--- On Fri, 10/31/08, Petr V. [EMAIL PROTECTED] wrote:
From: Petr V. [EMAIL PROTECTED]
Subject: exec-maven-plugin exit Code Issue
To: Maven Users List users@maven.apache.org
Date: Friday, October 31, 2008, 10:58 PM
Okay as advised by Stephen Connolly
/goals
/execution
/executions
/plugin
Thanks,
Petr
--- On Fri, 10/31/08, Petr V. [EMAIL PROTECTED] wrote:
From: Petr V. [EMAIL PROTECTED]
Subject: exec-maven-plugin exit Code Issue
To: Maven Users List users@maven.apache.org
Date
will make my Halloween evening cool :-)
Thanks,
Petr
--- On Sat, 11/1/08, Petr V. [EMAIL PROTECTED] wrote:
From: Petr V. [EMAIL PROTECTED]
Subject: Re: exec-maven-plugin exit Code Issue
To: Maven Users List users@maven.apache.org
Date: Saturday, November 1, 2008, 3:51 AM
I am able to call my nant
: Saturday, November 1, 2008, 4:11 AM
add inherited false to the plugin section
Sent from my iPod
On 31 Oct 2008, at 23:10, Petr V. [EMAIL PROTECTED]
wrote:
It's going to be a fun week end :-(
Okay so here is some more update . The nant script is call as many
times as pom files I have in whole
I have a project that has many components. Some are written in dot net and some
are in java.We are moving our build environment to maven.
I can call ant scripts from maven but I am wondering if it is possible to call
nant scripts from maven. Nant scripts are used to build dot net project. Is it
PROTECTED]
Subject: Re: Nant Plugin for Maven to integrate dot net component in main
project build ?
To: Maven Users List users@maven.apache.org
Date: Thursday, October 30, 2008, 11:47 PM
On Thu, Oct 30, 2008 at 10:37 AM, Petr V. [EMAIL PROTECTED] wrote:
I have a project that has many components
I must be doing some thing very silly :-(
I have this very simple test in maven project test directory. I have dependency
on junit-4.5 and junit-util-4.5 in my pom file
import java.io.IOException;
import java.util.ArrayList;
import org.junit.Test;
import junit.framework.TestCase;
public
: Thursday, October 30, 2008, 1:26 AM
I could be wrong about this, but I think with JUnit 4, you can either extend
TestCase or use annotations, but not both. Try removing 'extends
TestCase'
Justin
- Original Message -
From: Petr V. [EMAIL PROTECTED]
To: users@maven.apache.org users
I have simple web services demo which I created in Eclipse and added external
jar files to project. I am able to run it successfully unit tests in eclipse
IDE.
Now I have moved the code to maven project and added dependencies tho those jar
files in my pom file. And now the maven project fails
them and will go
looking for anything else that matches your pom.xml.
I hope that's helpful.
Dave
Petr V. wrote:
I have simple web services demo which I created in
Eclipse and added external jar files to project. I am able
to run it successfully unit tests in eclipse IDE.
Now I
artifactIdmyjar/artifactId
version1.0/version
/dependency
Then, your build will pick up the jar you want it to use.
Good luck!
Dave
Petr V. wrote:
Thanks Dave for such a quick response.
I started from jar files w/o pom files. So I went to
maven repository web site http
Hi All,
I am trying to create new project from scratch using maven.
Lets assume my desired dir structure is
project
-main
mod1
I am issuing following commands from command prompt :
c:\project\ mvn archetype:create -DgroupId=com.company.project
curious... why you can't just use
Maven Surefire plugin to run
your JUnit tests? Why are you doing this junit via ant thing at all?
Wayne
On 5/1/07, Petr V. wrote:
Thanks Wayne for your reply. I added your suggested artifact too though I
guess it was not required because junit task is included
was that crossported to
previous branches ??
Thanks
Petr V. [EMAIL PROTECTED] wrote: Wayne, I am able to resolve this issue but
got some other issue. I guess this issue is due to differnent class loaders.
See the following pom file. When I was putting junit dependency at pom level
which is now commented
fixed, so
they moved the fix version back to 2.0.x (which means not yet fixed)
and reopened the bug.
So no, this is not fixed, its still a bug in all 2.0.x series. And bug
fixes are never backported -- once something has been released, it
never changes.
Wayne
On 5/2/07, Petr V. wrote:
I found
/executions
dependencies
dependency
groupIdant/groupId
artifactIdant-antlr/artifactId
version1.6.2/version
/dependency
/dependencies
/plugin
/plugins
/build
/project
Thanks a lot in advance
Petr V
I added one more dependency
dependency
groupIdorg.apache.ant/groupId
artifactIdant-junit/artifactId
version1.6.2/version
/dependency
and still seeing the same results. Any pointers ??
Thanks,
Petr V. [EMAIL PROTECTED] wrote: Greetings,
I have simple ant
probably want the ant-nodeps artifact.
ant
ant-nodeps
1.6.5
Wayne
On 5/1/07, Petr V. wrote:
I added one more dependency
org.apache.ant
ant-junit
1.6.2
and still seeing the same results. Any pointers ??
Thanks,
Petr V. wrote: Greetings,
I
?
Wayne
On 5/1/07, Petr V. wrote:
Thanks Wayne for your reply. I added your suggested artifact too though I
guess it was not required because junit task is included in ant-junit
artifcat but I am still facing same issue. On researching on google, I found
that many people have asked about
and nothing seem to work.
Thanks,
Petr V.
-
Ahhh...imagining that irresistible new car smell?
Check outnew cars at Yahoo! Autos.
to simply
create a repository of required artifacts manually.
Any pointers ???
Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco) [EMAIL PROTECTED]
wrote:
Have you tried mvn deploy?
--Marilyn
-Original Message-
From: Petr V. [mailto:[EMAIL PROTECTED]
Sent: Friday, April 27
I am calling ant script from my pom file of project. This ant script calls
another ant script and result in jar file. Now the question it that I want to
install this jar file in maven repository but the jar file after installation
contains only pom file. How can I install my resulting jar into
Hi All,
I have got stubs that were genbarted via ADB(Axis Databinding). Now I am trying
to use stubs in my client code. I added axis dependencies in my pom file.
I did not know which was essential dependencies so I included all following
dependencies. Now I am getting this error
All,
I have this project which successfully build with jdk1.5.
Now I am trying to make project on build machine. This build machine does not
have access to outside world so I copied all dependencies in
C:\maven_repository and define the repository location in m2 folder. I hope it
won't
repeatedly on
this list, plus it is very
well documented on the Maven website.
http://maven.apache.org
Plugins by category
compile plugin
At the bottom of that page is a couple links to example configs for
specifying JDKs etc.
Wayne
On 4/20/07, Petr V. wrote:
All,
I have this project which
to run the tests with jdk 1.5 as we asked mvn to
compile with jdk 1.5 ?
Thanks
Petr
Petr V. [EMAIL PROTECTED] wrote: Thanks Wayne, I was able to compile code
then I issued mvn package and it tried to run tests and I got
[INFO] [surefire:test]
[INFO] Surefire report directory:
C:\P4\NCP\main
dependencies are not including if I add assmebly
plugin in main project while if I leave assembly plugin in sub project, they
are added. I have almostly tried one whole day to make it work but no luck. Any
help is appreciated.
Thanks,
Petr V.
P.S. I admit that my maven knowledge is based
and It included all the dependencies from
assembly dependency list but still missed the one dependency that was asking to
add the jar file of sub project pom. Any trick for that ???
I hope that I am able to convey the point. Thanks for your support.
Petr V.
John Casey [EMAIL PROTECTED] wrote: You
38 matches
Mail list logo