Johan,
I think I see what you mean. I'll give it a whirl when I get to work
today. Thanks for your help!
James
On 4/4/07, Johan Lindquist [EMAIL PROTECTED] wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi James James,
The classpath element list is simply a list of strings
it a whirl when I get to work
today. Thanks for your help!
James
On 4/4/07, Johan Lindquist [EMAIL PROTECTED] wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi James James,
The classpath element list is simply a list of strings (to locations
within the repository). Please see
,
The classpath element list is simply a list of strings (to locations
within the repository). Please see attached Mojo for a simple example.
One issue with this is that some classes (in your case, most likely the
spring classes) will be loaded in the URLClassloader as well as in the
Mojo class
PROTECTED] wrote:
Johan,
I think I see what you mean. I'll give it a whirl when I get to work
today. Thanks for your help!
James
On 4/4/07, Johan Lindquist [EMAIL PROTECTED] wrote:
Hi James James,
The classpath element list is simply a list of strings (to locations
within
To run my tests, I have to put in place an instrumentation jar using the
-javaagent commandline argument. I added this using the argLine
property of the surefire configuration. However, the instrumentation
jar has its own dependencies that aren't present in the surefire booter
classpath. Adding
added this using the argLine
property of the surefire configuration. However, the instrumentation
jar has its own dependencies that aren't present in the surefire booter
classpath. Adding them to my list of project dependencies isn't
enough--they need to be in the classpath when the JVM is started
. Anyway,
I now want to use that mojo within another project to run a loader defined
within that project. When I try to instantiate that class, it's not
available. Is there something special I need to do to tell Maven to include
the current project's classpath in my mojo's environment?
James
special I need to do to tell Maven to
include
the current project's classpath in my mojo's environment?
James
--
View this message in context:
http://www.nabble.com/Using-containing-project%27s-classpath-within-mojo...-tf3519722s177.html#a9821549
Sent from the Maven - Users mailing list
*/
private String loaderBean;
public void execute() throws MojoExecutionException
{
// Load all META-INF/beans.xml files on classpath!
ClassPathXmlApplicationContext ctx = new
ClassPathXmlApplicationContext(classpath*:META-INF/beans.xml);
getLog().info(Running loader
Hi James,
Try using the following property in you Mojo.
/**
* The classpath elements of the project.
*
* @parameter expression=${project.runtimeClasspathElements}
* @required
* @readonly
*/
private List classpathElements;
I think in this case, you would
Johan,
What kind of objects should I expect in that list?
James
p.s. Are you on every mailing list? :-)
On 4/3/07, Johan Lindquist [EMAIL PROTECTED] wrote:
Hi James,
Try using the following property in you Mojo.
/**
* The classpath elements of the project
?
James
p.s. Are you on every mailing list? :-)
On 4/3/07, Johan Lindquist [EMAIL PROTECTED] wrote:
Hi James,
Try using the following property in you Mojo.
/**
* The classpath elements of the project.
*
* @parameter expression=${project.runtimeClasspathElements
in that list?
James
p.s. Are you on every mailing list? :-)
On 4/3/07, Johan Lindquist [EMAIL PROTECTED] wrote:
Hi James,
Try using the following property in you Mojo.
/**
* The classpath elements of the project.
*
* @parameter expression
I am writing a plugin for generating JAXB 1.6 sources . The plugin is
written in ant. How do I access the compile classpath in the plugin.
My plugin code:
project
!--property name=repo.home value=C:/Documents and
Settings/user/.m2/repository/--
taskdef name=xjc classname
to
update my jdbc-installer, and all of it's dependents notice the change
magically.
Except for one problem: my custom artifact type's dependencies don't
get added to the webapp's compile classpath.
I've looked at DefaultArtifactHandler to see if I could solve the
problem by subclassing
pom.xml file. Nothing is changed. Because some classes
are available in different jars there are some classpath issue
and build is
failing for me.
Also is there anyway we can control the order the
dependencies added to
the classpath.
Different JDK ?
- Jörg
Hi,
I just had the mechanism to the plugin.
Had this parameter to use Maven POM instead of FitNesse classpath.
classPathProvidermaven/classPathProvider
The default value is fitnesse.
The new SNAPSHOT is available in the repository.
There is an example there:
http://mojo.codehaus.org/fitnesse
Does anyone know how maven creates the classpath from the dependencies.
Whats the order it creates ? How can we control the order ?
Thanks!!
That's a good question! If we can control the classpath order, we can
avoid the 'cglib-full' issue (the issue is that class x.y.Z is on the
classpath twice, our code requires method a(), and the first example of
x.y.Z on the classpath does not have a method a() but the second does,
so if we
It seems in maven2.0.5, we can control the order in pom.xml
-Original Message-
From: Rod Mclaughlin [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 08, 2007 1:10 PM
To: Maven Users List
Subject: Re: maven dependency classpath
That's a good question! If we can control the classpath
Hi,
I have to write a plugin in which I require to load a Spring context as
specified in configuration. And this plugin is executed directly from the
command line instead of lifecycle phase. In Maven reference docs it is
mentioned that each plugin has a seperate classloader and
there are some classpath issue and build is
failing for me.
Also is there anyway we can control the order the dependencies added to
the classpath.
Thanks!!
Hi,
I can't figure out how what I should do to make the target/classes content
(populated in the compile phase) be in the classpath of the plugin,
because the plugin needs to access some resources..
My MOJO definition is just:
/*
* @goal run
* @requiresDependencyResolution runtime
* @execute
This thread will continue on [EMAIL PROTECTED]
-Original Message-
From: Eric Torreborre [mailto:[EMAIL PROTECTED]
Sent: lundi 5 mars 2007 06:09
To: Maven Users List
Subject: RE: Using the POM classpath for integration testing
Hi Philippe,
Here is the setup I have in mind. Not only
[Please refer to the fitnesse thread regarding the fitnesse usage
questions]
Coming back to Maven2,...
Since I would like to keep my acceptance pages along with my source
files, I think I am going to need a way to launch my mojo with the
project (recursive) dependencies in the classpath. Anyone
to be a 'one developer' team or manual
synchronization of the FitNesse repository.
In return, what do you think of this approach ?
Philippe
-Original Message-
From: Eric Torreborre [mailto:[EMAIL PROTECTED]
Sent: vendredi 2 mars 2007 02:27
To: Maven Users List
Subject: RE: Using the POM classpath
, so our Fitnesse must be
available with the FitNesse IHM. So we must maintain the classpath in the
Wiki page, in this case maintain the POM dependencies for functional tests
is a replication for us :-).
If your prefer to use the POM dependencies, it's easy for me to add a plugin
configuration
: Using the POM classpath for integration testing
Hi Eric,
I our approach there is always a centralized FitNesse server running.
This server is available for all project people, including non
developers.
Our two main pains in this case is
* to test local development (for a member of the team
Hi,
I would like to output the classpath to a file using the dependency build
classpath plugin and goal.
I am using the following in my POM to no avail:
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId
The build classpath mojo is new to alpha-2. It should be released soon,
until then you can use a SNAPSHOT or build and install locally.
-Original Message-
From: Aidan O'Donnell [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 01, 2007 5:10 AM
To: users@maven.apache.org
Subject
Hi Eric,
Do you speak about the fitnesse-maven-plugin ? I suppose that's the case.
The plugin doesn't use the POM dependencies because they are supposed to be
specified in the Fitnesse page.
The plugin provides a solution to change the server classpath (with string
substitution), this allows
With sthe system scope it is possible to specify a jar in the dependencies. I
try to write a plugin that adds all the jars contains in a directory to the
test classpath. (I can not add jars in the pom dependencies because those
jars are installed by another plugin).
How can I add dependencies
the POM classpath for integration testing
Hi Eric,
Do you speak about the fitnesse-maven-plugin ? I suppose that's the
case.
The plugin doesn't use the POM dependencies because they are supposed to
be specified in the Fitnesse page.
The plugin provides a solution to change the server classpath
Kernevez [mailto:[EMAIL PROTECTED]
Sent: Friday, March 02, 2007 2:36 AM
To: 'Maven Users List'
Subject: RE: Using the POM classpath for integration testing
Hi Eric,
Do you speak about the fitnesse-maven-plugin ? I suppose that's the
case.
The plugin doesn't use the POM dependencies because
Hi,
I have written a simple maven plugin that runs Fitnesse pages during the
integration-test phase.
However, it looks like this plugin, when executed, does not find the
classes that should be provided by the POM (along with dependencies).
Is there is configuration that should be done, in
No, there is definitely only one version in the classpath, and I'm not sure
how that would cause a ClassNotFoundException. This is the root exception:
Caused by: java.lang.ClassNotFoundException:
org.apache.xerces.parsers.SAXParser
at
org.xml.sax.helpers.XMLReaderFactory.createXMLReader
Hi all,
I cannot generate xdoclet from my EJB classes because my classes extend
one class from an external jar, that needs to be in classpath when the
ejbdoclet task is defined. How do I do this in the m2 xdoclet plugin
configuration?
Here is my actual plugin configuration
have verified. This is listed as a
dependency, and the -X option confirms it should be on the classpath. I
built the eclipse files and ran the test, no problem - I had to remove some
nested directories listed under resources, but this shouldn't have any
effect on class loading.
Any ideas what could
There is some other version of xerces in your classpath?
Kind Regards,
On 2/23/07, Siegmann Daniel, NY [EMAIL PROTECTED] wrote:
I am trying to convert a project from Maven1 to Maven2. Should be simple,
but I am getting a ClassNotFoundException on the following line in my code
when running
Any idea ?
$ mvn dependency:build-classpath
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'dependency'.
[INFO]
[ERROR] BUILD FAILURE
[INFO
According to
http://maven.apache.org/plugins/maven-dependency-plugin/usage.html the
build-classpath goal is new, since 2.0-alpha-2. That version is not
available on ibiblio yet, only 2.0-alpha-1 is. Looks like you will have
to check out the source code and build it if you need that goal.
If you
-SNAPSHOT.jar
but
fun-0.1.0-20070215.103444-1.jar
So my classpath fails.
Thanks for any and all help,
PS: grats on the 2.0.5 release :)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
}/
arg value=-f/
arg value=-package/
arg value=com.upromise.pdt.castor/
classpath
pathelement location=${castor.source.dir}/
/classpath
classpath refid=maven.plugin.classpath/
/java
copy todir=${pdt.target.dir}
fileset dir
Hey EJ.
I don't see anything wrong with your ant, per se.
However, if you have a multi-module build,
maven.*.classpath does not resolve correctly when building children of the
parent.
That is to say --
ParentProject/
--- pom.xml
--- Child Project
List Users
Subject: Accessing the POM classpath from within an Ant based mojo
I am trying to write a very simple Ant based script mojo. I need to
define some taskdefs from within the build.xml based on the current
classpath defined in the plugin pom. I have seen reference to using
I am trying to write a very simple Ant based script mojo. I need to
define some taskdefs from within the build.xml based on the current
classpath defined in the plugin pom. I have seen reference to using
the maven.plugin.classpath but when I reference that I get an error
On 17 Feb 07, at 4:54 PM 17 Feb 07, Scott Ryan wrote:
I am trying to write a very simple Ant based script mojo. I need
to define some taskdefs from within the build.xml based on the
current classpath defined in the plugin pom. I have seen reference
to using the maven.plugin.classpath
, at 4:54 PM 17 Feb 07, Scott Ryan wrote:
I am trying to write a very simple Ant based script mojo. I need
to define some taskdefs from within the build.xml based on the
current classpath defined in the plugin pom. I have seen
reference to using the maven.plugin.classpath but when I
On Feb 17, 2007, at 4:54 PM, Scott Ryan wrote:
I am trying to write a very simple Ant based script mojo. I need
to define some taskdefs from within the build.xml based on the
current classpath defined in the plugin pom. I have seen reference
to using the maven.plugin.classpath but when
outputDirectory/lib/outputDirectory
scoperuntime/scope
/dependencySet
The problem is, it doesn't add
fun-0.1.0-SNAPSHOT.jar
but
fun-0.1.0-20070215.103444-1.jar
So my classpath fails.
Thanks for any and all help,
PS: grats on the 2.0.5 release :)
--
With kind regards,
Geoffrey De
The maven and codehaus ones are the same plugin. The maven one is newer.
-Original Message-
From: jiangshachina [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 08, 2007 1:36 AM
To: users@maven.apache.org
Subject: Re: additional classpath to maven2
Hi,
I ever used maven:maven
management in our ant
builds. I have a number of POM files for compiling common, server and
client code. I also want to use maven to manage our server runtime
classpath. I use the following code to get the server runtime classpath
from a POM file and store it in a pathId for use later
Hi,
Is it possible to add additional classpath (not specified in the
dependency) to maven2 on runtime.
The idea is to unzip the jars to a specific directory and add those jars
to compile / jar classpath.
Thanks
maven's
?
Cheers,
Franz
Joseph Leniston wrote:
Hi,
I am using Antlib for Maven 2.0 to do dependency management in our ant
builds. I have a number of POM files for compiling common, server and
client code. I also want to use maven to manage our server runtime
classpath. I use
of POM files for compiling common, server and
client code. I also want to use maven to manage our server runtime
classpath. I use the following code to get the server runtime classpath
from a POM file and store it in a pathId for use later.
artifact:dependencies pathId
plugin or assembly plugin to unpack
the files.
Jagan Padmanabha Pillai -X (jpadmana - Insight Solutions, Inc. at Cisco)
wrote:
Hi,
Is it possible to add additional classpath (not specified in the
dependency) to maven2 on runtime.
The idea is to unzip the jars to a specific directory and add
(jpadmana - Insight Solutions, Inc. at Cisco)
wrote:
Hi,
Is it possible to add additional classpath (not specified in the
dependency) to maven2 on runtime.
The idea is to unzip the jars to a specific directory and add those jars
to compile / jar classpath.
Thanks
--
View
Once jars are copied to a specific directory, how can I add that folder
to the classpath ?
-Jagan
-Original Message-
From: jiangshachina [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 07, 2007 10:36 PM
To: users@maven.apache.org
Subject: Re: additional classpath to maven2
Hi,
I
Good day,
Try unpackaging the class files to target\class ( or target\test-classes if
it's for testing ). But I am not sure if that would be enough so that those
classes would be included in the classpath.
But again, why not use make those jars your dependencies?
And what are you trying to do
Hello,
Factly, I don't use the plugins.
how can I add that folder to the classpath ?
I think Maven doesn't regard the jars as dependency at compile/runtime.
I think you can set the jars to system scope dependencies.
It's better to use dependency mechanism, even the jars aren't in any
Hi,
I am using Antlib for Maven 2.0 to do dependency management in our ant builds.
I have a number of POM files for compiling common, server and client code. I
also want to use maven to manage our server runtime classpath. I use the
following code to get the server runtime classpath from a POM
Hi,
My project depends on a lot of dependencies that can be found in the
online Maven repo,
but also on a lot of own jars that were made to connect to web services
etc.
I installed them manually in the repo with mvn install:install-file.
Now I'm having this problem, when my classpath
: Wednesday, 31 January 2007 10:23 PM
To: users@maven.apache.org
Subject: dependency classpath order
Hi,
My project depends on a lot of dependencies that can be found in the online
Maven repo,
but also on a lot of own jars that were made to connect to web services etc.
I installed them manually
This was w/ m1 and eclipse-plugin 1.11. However, I've just changed
permissions to make .classpath writeable, and this doesn't happen
anymore. Perhaps it a temporary fluke, since I can't reproduce it now...
-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]
Sent
]
Sent: Monday, January 29, 2007 10:12 AM
To: Maven Users List
Subject: RE: eclipse:generate-classpath and .classpath
This was w/ m1 and eclipse-plugin 1.11. However, I've just changed
permissions to make .classpath writeable, and this doesn't happen
anymore. Perhaps it a temporary fluke, since I
Hi,
I'm trying to use the maven-dependency-plugin to build a classpath using the
build-classpath goal as documented here
http://maven.apache.org/plugins/maven-dependency-plugin/build-classpath-mojo.html.
However, when I try to execute this goal I get an error that says that no such
goal
plugin isn't generating it correctly.
-Original Message-
From: Nunn, Gerald [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 24, 2007 10:00 AM
To: Maven User List
Subject: Dependency plugin and build-classpath goal issue
Hi,
I'm trying to use the maven-dependency-plugin to build
Is there away to add other jars to the surefire classpath for testing? I'm
running a javaagent that requires some new jars on the surefire classpath.
Any help would be appreciated.
-
To unsubscribe, e-mail: [EMAIL PROTECTED
:
Is there away to add other jars to the surefire classpath for
testing? I'm
running a javaagent that requires some new jars on the surefire classpath.
Any help would be appreciated.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Hi All,
I have a web application which uses Maven2. It was working fine until I
started to add additional features which requires more 3rd-party
libraries. After I added these libraries to my dependency list, Maven
couldn't compile the application because servlet-api was not on the
classpath
Hi,
What repository do I need to point to in order to get the dependency plug-in
that has the build-classpath goal implemented. Everything that I am pointed
to has the dependency plug-in but that goal is not available.
Here is the error message that I am getting:
[INFO] Scanning
Allan, Franz,
On 1/17/07, franz see [EMAIL PROTECTED] wrote:
For more information about Maven Properties, please see [1].
[1] http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide
allan ramirez wrote:
Have you tried using ${plugin.artifacts} expression?
Thanks for the tips,
Hmm. Answering my own question, it looks like ${plugin.artifactMap}
might do the trick. Let me report back after I've had a chance to try
it out.
Lasse
On 1/17/07, Lasse Koskela [EMAIL PROTECTED] wrote:
Allan, Franz,
On 1/17/07, franz see [EMAIL PROTECTED] wrote:
For more information about
Also make sure you have the following mojo property set
@requiresDependencyResolution compile
That will populate ${plugin.artifacts}
/Niels
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Hi,
On 1/17/07, Niels Gylling [EMAIL PROTECTED] wrote:
Also make sure you have the following mojo property set
@requiresDependencyResolution compile
That will populate ${plugin.artifacts}
Thanks. I had that set to test.
I actually did get my stuff working by using the ${plugin.artifactMap}
My mojo allows the user to define an extra property (private File
licenseFileDirectory), which is a directory, that I'd like to add to the
classpath when my mojo runs so that I can find a resource (a license file)
in the given directory.
How can I programatically add this to the classpath in my
licenseFileDirectory), which is a directory, that I'd like to add to the
classpath when my mojo runs so that I can find a resource (a license file)
in the given directory.
How can I programatically add this to the classpath in my mojo? Is there
some best practice for this?
Thanks,
Matthew
--
View
[EMAIL PROTECTED] wrote:
My mojo allows the user to define an extra property (private File
licenseFileDirectory), which is a directory, that I'd like to add to the
classpath when my mojo runs so that I can find a resource (a license
file)
in the given directory.
How can I programatically add
, matthewadams [EMAIL PROTECTED] wrote:
My mojo allows the user to define an extra property (private File
licenseFileDirectory), which is a directory, that I'd like to add to the
classpath when my mojo runs so that I can find a resource (a license
file)
in the given directory.
How can I programatically
Hi,
I'm developing a Maven 2 plugin and I'm having trouble making my
plugin see the necessary libraries etc. in its classpath.
What I need is:
1) the plugin itself and all of its dependencies
2) the compilation classpath and all dependencies for the project
that's using the plugin
It seems
Have you tried using ${plugin.artifacts} expression?
-allan
On 1/17/07, Lasse Koskela [EMAIL PROTECTED] wrote:
Hi,
I'm developing a Maven 2 plugin and I'm having trouble making my
plugin see the necessary libraries etc. in its classpath.
What I need is:
1) the plugin itself and all of its
] wrote:
Hi,
I'm developing a Maven 2 plugin and I'm having trouble making my
plugin see the necessary libraries etc. in its classpath.
What I need is:
1) the plugin itself and all of its dependencies
2) the compilation classpath and all dependencies for the project
that's using the plugin
With maven 1?
Which version of the plugin ?
How is your .classpath ?
Arnaud
On 1/13/07, Sabiq, Reshat [EMAIL PROTECTED] wrote:
I'd appreciate any feedback on this:
i'm getting jars from WEB-INF/lib listed under java resources in RAD6 in
addition to jars put in by eclipse plug-in, which
the merge/MANIFEST.MF file contains only
single line Class-Path: conf/ caused the whole classpath section to be
replaced in the resulting manifest (i.e. there were no dependencies).
Is there a way how to achieve the desired result using Maven so I do not need
to manually add the conf/ to the jar's
, where the merge/MANIFEST.MF file contains only single
line Class-Path: conf/ caused the whole classpath section to be replaced in the resulting
manifest (i.e. there were no dependencies).
Is there a way how to achieve the desired result using Maven so I do not need to manually
add the conf
I'd appreciate any feedback on this:
i'm getting jars from WEB-INF/lib listed under java resources in RAD6 in
addition to jars put in by eclipse plug-in, which reside in MAVEN_REPO.
So most of them are duplicated in .classpath by the IDE, after running
eclipse:generate-classpath.
Even making
I'd appreciate any feedback on this:
i'm getting jars from WEB-INF/lib listed under java resources in RAD6 in
addition to jars put in by eclipse plug-in, which reside in MAVEN_REPO.
So most of them are duplicated in .classpath by the IDE, after running
eclipse:generate-classpath.
Making
Hi all,
I am trying to invoke ant 'taskdef' using the current maven complie
classpath.
What is the maven class path variable I can use?
Here is the pom snippet:
plugin
artifactIdmaven-antrun-plugin/artifactId
executions
execution
Good day to you, Ran,
You can try and take a look at [1].
Cheers,
Franz
[1] http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html
Ran Zilber wrote:
Hi all,
I am trying to invoke ant 'taskdef' using the current maven complie
classpath.
What
Dear Franz,
Thanks a lot you did my day!!!
:-)
-Original Message-
From: franz see [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 09, 2007 3:00 PM
To: users@maven.apache.org
Subject: Re: M2 classpath for ant taskdef
Good day to you, Ran,
You can try and take a look at [1].
Cheers
I am trying to run a javadoc task with a custom doclet in an Ant
plugin. In order for the javadoc task to find the doclet I need the
classpath of the javadoc execution.
Is there any way to create a parameter in the generate.mojos.xml file so
that I can pass the classpath as a string (as I would
error occurred while executing this line:
/home/am74839/sree/esf_samples_build.xml:162: Unable to find a javac
compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
Regards,
Alex
-Original Message-
From: Xavier Toth [mailto
Stefan Burkard wrote:
hi maven-users
I've got the following problem: if I'm creating a webapp and put the
META-INF directory into src/main/webapp the files in it (for example
persistence.xml) are NOT on the classpath and therefore my tests are
failing, I can't package my project
the following problem: if I'm creating a webapp and put the
META-INF directory into src/main/webapp the files in it (for example
persistence.xml) are NOT on the classpath and therefore my tests are
failing, I can't package my project.
if I'm putting the META-INF directory under src/main/resources
hi maven-users
I've got the following problem: if I'm creating a webapp and put the META-INF
directory into src/main/webapp the files in it (for example persistence.xml)
are NOT on the classpath and therefore my tests are failing, I can't package my
project.
if I'm putting the META-INF
I have my files under src\main\application\META-INF. It is working fine for
me.
Vinita
-Original Message-
From: Newsgroup [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 28, 2006 2:45 PM
To: users@maven.apache.org
Subject: META-INF directory for webapps not in classpath
hi maven
Hi,
I've got the following problem: if I'm creating a webapp and put the META-INF
directory into src/main/webapp the files in it (for example
persistence.xml) are NOT on the classpath and therefore my tests are failing,
I can't package my project.
having META-INF under src/main/resources
hi,
my 2 cents. what's hte scope of your dependency? is it compile?
hth
marco
On 12/9/06, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED]
wrote:
I have a Spring .jar which has a Spring properties file. I created a
dependency on this .jar file but it did not get picked up during
in the spring sand box jar. It appears that
Maven 2 has an arbitrary classpath order but the spring sand box Jar
always seems to come first in the classpath and the wrong Assert class
is loaded. This problem rears it's heading during unit testing so we
keep getting NoSuchMethodError's. Can anyone confirm
:1.0:compile (removed -
nearer found: 1.0.4)
... etc., etc
However, the version of commons-logging that appears in my classpath for
test is 1.0.4, NOT 1.1 as it appears that it ought to be. Additionally, this
means that avalon-framework is not present in my surefire test classpath,
causing tests
901 - 1000 of 1706 matches
Mail list logo