Hi.
Surefire seems to include dependency artifacts with scope provided in the
classpath when running unit tests. Is this a bug? Shouldn't such artifacts
only be included in the compile-time classpath?
The output from 'mvn -X test' is shown below. The artifact that is causing
problems for me
Jörg Schaible wrote:
Why is it a problem for you, that it is available in the classpath for the
test?
- Jörg
Hi again. I see your point in that in many (most?) cases you actually would
like the artifacts with scope 'provided' to be available in the classpath
for the unit tests
this method can bu used to combine DB2 Universal Type 4 Driver jars.There are
two jars. One of them is licence jar another one is main jar. If licence jar is
not added at the same classpath, main jar can not work.
-Orijinal e-posta iletisi-
From: Keith Beattie [EMAIL PROTECTED]
Date
it a BASIC functionality,
that Maven2 should do, when I set dependency in pom.xml file?
I tried this with other jars (in repository) and other methods of the
classes included in jars and the results were exactly the same.
--
View this message in context:
http://www.nabble.com/adding-the-classpath
You have to provide log4j via the classpath on your own.
Maven does include log4j in your generated jar automatically.
But Maven can generate the classpath for you
http://maven.apache.org/plugins/maven-dependency-plugin/usage.html
-dependency:build-classpath
2007/6/26, DCVer [EMAIL PROTECTED
Bals-2 wrote:
You have to provide log4j via the classpath on your own.
Maven does include log4j in your generated jar automatically.
But Maven can generate the classpath for you
http://maven.apache.org/plugins/maven-dependency-plugin/usage.html
-dependency:build-classpath
2007/6/26, DCVer
Yes. The behavior is correct.
Maven does not include the log4j jar because jars cannot contain other jars.
When you use additional jars at runtime, you have to provide them via the
classpath.
And as far as i know you cannot define the classpath of jar inside the jar
like the main class.
So
Ok, thanks for some information!
Jan-Christopher Bals-2 wrote:
Yes. The behavior is correct.
Maven does not include the log4j jar because jars cannot contain other
jars.
When you use additional jars at runtime, you have to provide them via the
classpath.
And as far as i know you
:
Ok, thanks for some information!
Jan-Christopher Bals-2 wrote:
Yes. The behavior is correct.
Maven does not include the log4j jar because jars cannot contain other
jars.
When you use additional jars at runtime, you have to provide them via the
classpath.
And as far as i know you cannot
On 6/26/07, DCVer [EMAIL PROTECTED] wrote:
Ok, thanks for some information!
I've gotten Maven to create an executable jar which sets a class-path in its
manifest file pointing (via a *relative* path) to contained dependent jars
within the same jar though the use of the jar and assembly
trace).
How can I debug the runtime classpath of a Maven2 build cycle?
-aps
--
What lies behind us and what lies in front of us is of little concern to
what lies within us. -Ralph Waldo Emerson
You could use Thread.currentThread().getContextLoader()
and then iterate through the urls list which are locations of jar files.
-Original Message-
From: Alexander Sack [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 26, 2007 1:37 AM
To: Maven Users List
Subject: native2ascii classpath
are locations of jar files.
-Original Message-
From: Alexander Sack [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 26, 2007 1:37 AM
To: Maven Users List
Subject: native2ascii classpath woes
I'm using the native2ascii codehaus plugin and on windows it works fine,
but
on my Unix box it fails
List
Subject: native2ascii classpath woes
I'm using the native2ascii codehaus plugin and on windows it works fine,
but
on my Unix box it fails with:
--- Nested Exception ---
java.lang.ClassNotFoundException: sun.tools.native2ascii.Main
at java.net.URLClassLoader$1.run
]
Sent: Tuesday, June 26, 2007 1:37 AM
To: Maven Users List
Subject: native2ascii classpath woes
I'm using the native2ascii codehaus plugin and on windows it works
fine,
but
on my Unix box it fails with:
--- Nested Exception ---
java.lang.ClassNotFoundException
Hallo Jörg,
-Original Message-
From: ext Jörg Schaible [mailto:[EMAIL PROTECTED]
Can I turn that off somehow? I couldn't find an option in the
documentation in
http://maven.apache.org/plugins/maven-ear-plugin/ear-mojo.html
None of my generated EARs has a manifest that contains a
[EMAIL PROTECTED] wrote on Friday, June 22, 2007 12:29 PM:
Hallo Jörg,
-Original Message-
From: ext Jörg Schaible [mailto:[EMAIL PROTECTED]
Can I turn that off somehow? I couldn't find an option in the
documentation in
http://maven.apache.org/plugins/maven-ear-plugin/ear-mojo.html
Hi,
why is the classpath also generated in the EAR's manifest? It should not, the
JavaEE verifier in netbeans is complaining about it:
Manifest file of an EAR file should not contain Class-Path entries.
Please refer to J2EE 1.4 Platform Specification Section #8.2 for further
Hi Anread,
-Original Message-
From: andreas.ebbert-karroum
Sent: Thursday, June 21, 2007 11:54 AM
Subject: Classpath in EAR's manifest?
Hi,
why is the classpath also generated in the EAR's manifest? It
should not, the JavaEE verifier in netbeans is complaining about
in the classpath and the Java 5 provider parser. Default
value is false.
Second problem:
When I enable the childDelegation, the plugin then cannot
find the JAXB classes (setup as dependencies in the pom). I've tried
test/compile scopes on the dependencies
PROTECTED]
Sent: Wed 6/20/2007 9:58 AM
To: users@maven.apache.org
Subject: Surefire classpath issues
Hello,
Have an issue with trying to leverage Blowfish which ships
with Java 1.5 in relation to unit tests. The test which I'm trying to
run is using JAXB and Blowfish impl which
Graham Leggett wrote:
I am trying to get the eclipse plugin to generate an eclipse config that
can be built using PDE (via the maven-pde-plugin).
To do this, the packaging type needs to be zip. However - when this is
the case, the eclipse plugin refuses to write a .classpath file, and my
Hi folks
Unfortunately I run into classpath problems when running my unittests
with 'mvn test'.
I have the following situation. To be able to test static blocks in my
classes under various conditions I need to be sure these static block
are executed multiple times. The only thing I know
On 6/8/07, [EMAIL PROTECTED]
[EMAIL PROTECTED]
wrote:
Looking a bit deeper I discovered the classpath being used in Eclipse
contains a lot more entries than the one being used by maven.
Hi Minto
The classpath used to startup maven is different from the one that is used
to build and test
Hi Jo,
Yes I have, look at the pom files below.
Also not that in the maven case the test and project classes are not
part of the classpath being used by the tests.
Regards,
Minto
My project pom file:
===
project
modelVersion4.0.0/modelVersion
parent
configuration --
[INFO] [compiler:testCompile]
[DEBUG] Using compiler 'javac'.
[DEBUG] Source directories: [K:\Sources\Prefs\memoryprefs\src\test\java]
[DEBUG] Classpath: [K:\Sources\Prefs\memoryprefs\target\classes
K:\Sources\Prefs\memoryprefs\target\test-classes
K:\Repositories\maven2\.m2\repository\junit
that contains it.
Which class is causing the ClassNotFoundException?
Also not that in the maven case the test and project classes are not
part of the classpath being used by the tests.
Could you paste some information about the build output when you run mvn
test -X?
Search for classpathElements
On 6/8/07, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Snippet of the mvn test -X ouput:
==
snip
[DEBUG] Test Classpath :
[DEBUG] K:\Sources\Prefs\memoryprefs\target\test-classes
[DEBUG] K:\Sources\Prefs\memoryprefs\target\classes
[DEBUG] K:\Sources\Prefs
class for every single test. That's why I use the ReloadableClassLoader.
This custom classloader does not use the normal commandline but the
'java.class.path' system property to determine the classpath. Retrieving
this system property reveals only one classpath entry.
K:\DevTools\maven\maven
Can someone point me to a sample of executing a java program from exec:java
that requires a jar in the class path that comes from an external package.
In otherwords, manually setting the classpath. This isn't working for me.
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdexec
with the java.class.path system property in this context smells
too much like hacking to me.
Cheers
Jo
This custom classloader does not use the normal commandline but the
'java.class.path' system property to determine the classpath. Retrieving
this system property reveals only one classpath entry
I'm currently using maven 2. Most of our applications are batch
applications that run from cron via a bash script. I've written a plugin
that (among other things) will read through the pom and generate a file that
sets the class path correctly for this application. Is there anything like
this
This Appassembler plugin will do this and more:
http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/
Jon Strayer wrote:
I'm currently using maven 2. Most of our applications are batch
applications that run from cron via a bash script. I've written a
plugin that (among other
I'm getting this exception when I try mvn appassembler:assemble
[INFO] Trace
java.lang.NullPointerException
at
org.apache.maven.artifact.installer.DefaultArtifactInstaller.install(
DefaultArtifactInstaller.java:71)
at org.codehaus.mojo.appassembler.AssembleMojo.installArtifact(
Hi Jon,
This JIRA issue sounds similar:
http://jira.codehaus.org/browse/MOJO-714
Also, you should be running this goal like so:
mvn package appassembler:assemble
Steve
Jon Strayer wrote:
I'm getting this exception when I try mvn appassembler:assemble
[INFO] Trace
Excellent! Thank you very much. I was assuming that since I had run mvn
package that I could leave package out of the appassembler run.
On 6/6/07, Steven Rowe [EMAIL PROTECTED] wrote:
Hi Jon,
This JIRA issue sounds similar:
http://jira.codehaus.org/browse/MOJO-714
Also, you should be
Hi all,
I am trying to get the eclipse plugin to generate an eclipse config that
can be built using PDE (via the maven-pde-plugin).
To do this, the packaging type needs to be zip. However - when this is
the case, the eclipse plugin refuses to write a .classpath file, and my
project has
Hi
you could try adding the dependency with scope system [1].
dependency
groupIdoracle/groupId
artifactIdoracle/artifactId
versionx.x.x/version
scopesystem/scope
systemPath${basedir}/lib/oracle.jar/systemPath
/dependency
Cheers, michael
[1]
You can also point to an existing location in maven public repo (
http://repo1.maven.org/maven2/com/oracle/)
When trying to compile, maven will complain not finding the dependecy and
output the command required to install the file in the local repository. The
POM gives the URL to download the
.classpath file - all classpath entries
describing external jars have missing first letter (after M2_REPO env
variable). let take an example:
classpathentry kind=var
path=M2_REPO/unit/junit/3.8.1/junit-3.8.1.jar
sourcepath=M2_REPO/unit/junit/3.8.1/junit-3.8.1-sources.jar/
i found that someone
Could you not include the jar and a pom for it in a repository in your
distribution relative to the pom you mentioned originally - then reference
this repo relative to your pom?
On 6/1/07, SiSi'mon [EMAIL PROTECTED] wrote:
Is there a way to tell maven about another jar?
-jar-%28specify-classpath%29-tf3848482s177.html#a10900554
Sent from the Maven - Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On 5/31/07, SiSi'mon [EMAIL PROTECTED] wrote:
We have a product we wish to deliver that requires compliation. We have a
pom.xml file that specifies all the dependencies but there is one dependency
(Oracle jdbc jars) for which there is no repository so we must package the
.jar files in a /lib/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/How-to-tell-Maven-where-to-find-jar-%28specify-classpath%29-tf3848482s177.html#a10901912
:
http://www.nabble.com/How-to-tell-Maven-where-to-find-jar-%28specify-classpath%29-tf3848482s177.html#a10901912
Sent from the Maven - Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED
to use Maven2 for the build and I'm running into trouble with how
Maven's Surefire test runner plugin seems to hide the classpath from
the executing code.
The issue stems from the need for a unit test to be able to compile
Java source code (generated from JSP source files), which obviously
Hi,
The reason is CDC..
CDC = ?
(sorry, don't actually know what it is)
There are some classes does not exist, so I have to
implement them, however, to make sure I can run my applications on PC as
well, I need same naming...extra method is for legacy reasons.
I'd think about
for this? it seems like you'd probably
be better off with a design change than relying on classpath ordering.
On 5/23/07, Steven Cummings [EMAIL PROTECTED] wrote:
Hello,
I looked in the archives before posting and the closest thing I could
find
to my particular situation is all of the messages surrounding
http
of stuck.
I have project that depends on project where I override some java
standard
classes and sometimes I have extra methods in there.
When i use eclipse, I can change order of classpath to have my
Maven2
Dependencies over the JRE. However, when I try to install or
compile, I
can
not because
I assume he meant CLDC (Connected Limited Device Configuration) aka
J2ME (Java 2 Mobile Edition).
I strongly agree with the other responses suggesting that you refactor
things rather proceeding with this approach!
Wayne
On 5/24/07, Thorsten Heit [EMAIL PROTECTED] wrote:
Hi,
The reason is
Is there a way to set the default classpath prefix in the manifest of a
WAR? I can do it all day in a JAR using the classPathPrefix tag but it
seems the WAR plugin doesn't support this which to me would be a bad
oversight. I rather not include the JARS in WEB-INF/lib and my EAR's lib
directory
Dear all.
I have following problem and I am kind of stuck.
I have project that depends on project where I override some java standard
classes and sometimes I have extra methods in there.
When i use eclipse, I can change order of classpath to have my Maven2
Dependencies over the JRE. However
Hi,
I have following problem and I am kind of stuck.
I have project that depends on project where I override some java standard
classes and sometimes I have extra methods in there.
When i use eclipse, I can change order of classpath to have my Maven2
Dependencies over the JRE. However, when
of stuck.
I have project that depends on project where I override some java
standard
classes and sometimes I have extra methods in there.
When i use eclipse, I can change order of classpath to have my Maven2
Dependencies over the JRE. However, when I try to install or compile, I
can
not because
Hello,
I looked in the archives before posting and the closest thing I could find
to my particular situation is all of the messages surrounding
http://jira.codehaus.org/browse/MNG-1412 (the ordering of the dependencies
on the classpath).
I need a specific class to hide another
if it looks like a hack, sounds like a hack, smells like a hack...
what's your specific use case for this? it seems like you'd probably
be better off with a design change than relying on classpath ordering.
On 5/23/07, Steven Cummings [EMAIL PROTECTED] wrote:
Hello,
I looked in the archives
with how
Maven's Surefire test runner plugin seems to hide the classpath from
the executing code.
The issue stems from the need for a unit test to be able to compile
Java source code (generated from JSP source files), which obviously
needs all sorts of J2EE stuff in the classpath
Hello
I have a problem with eclipse plugin for maven 2 (i'm using maven
2.0.6). it generates wrong .classpath file - all classpath entries
describing external jars have missing first letter (after M2_REPO env
variable). let take an example:
classpathentry kind=var
path=M2_REPO/unit/junit/3.8.1
Hi was wondering if anyone knows how I would set a classpath to a jdbc
properties file that is required by by a Junit test executed during
the Maven build.
Would it work if I placed it in the test resources area.
Thanks,
Larry
Larry Suto [EMAIL PROTECTED] writes:
Hi was wondering if anyone knows how I would set a classpath to a jdbc
properties file that is required by by a Junit test executed during
the Maven build.
Would it work if I placed it in the test resources area.
Yes. Anything residing in src/test
there so that you can run your app from the IDE -
that's the behavior I'd expect.
Larry
On 5/16/07, lightbulb432 [EMAIL PROTECTED] wrote:
Why are dependencies with a scope of runtime added to Eclipse's
.classpath
file? I thought the point of runtime is that it's not a compile-time
Hi all
I am having some problems generating .classpath file using eclipse:eclipse
goal. I have never experienced this problem before. I also had to add the
plugin configuration info showed below to generate the .project file
properly (without this config, the .project file did not take java
Why are dependencies with a scope of runtime added to Eclipse's .classpath
file? I thought the point of runtime is that it's not a compile-time
dependency; therefore, why the addition to the .classpath?
Perhaps someone can correct me, but my understanding of runtime scope
I'd assume that it's there so that you can run your app from the IDE -
that's the behavior I'd expect.
Larry
On 5/16/07, lightbulb432 [EMAIL PROTECTED] wrote:
Why are dependencies with a scope of runtime added to Eclipse's .classpath
file? I thought the point of runtime is that it's
there so that you can run your app from the IDE -
that's the behavior I'd expect.
Larry
On 5/16/07, lightbulb432 [EMAIL PROTECTED] wrote:
Why are dependencies with a scope of runtime added to Eclipse's
.classpath
file? I thought the point of runtime is that it's not a compile-time
().getLocation()' instead.
Regards,
Marcel
- Original Message
From: Monty Zukowski [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Monday, May 14, 2007 11:29:46 PM
Subject: Re: classpath clarification
From: Wayne Fay [EMAIL PROTECTED]
You need to tag your mojo
List users@maven.apache.org
Sent: Tuesday, May 15, 2007 12:11:30 AM
Subject: Re: classpath clarification
Hi Monty,
You shouldn't use ClassLoader.getSystemClassLoader() to lookup your class.
Maven uses a hierarchy of classloaders and by specifying that you want the
systemclassloader, you bypass
from classpath in
JUnit tests
Where is your resource file located in your source code tree?
It should be under src/main/resources. I will assume it is under
src/main/java -- that's your problem.
Wayne
On 5/13/07, Rossmanith, Philipp [EMAIL PROTECTED]
wrote:
Hi,
I have a component
: domingo, 13 de mayo de 2007 23:36
Para: Maven Users List
Asunto: Re: Problems with loading non-Java resources from classpath
in JUnit tests
Where is your resource file located in your source code tree?
It should be under src/main/resources. I will assume it is under
src/main/java
, 14 de mayo de 2007 10:13
Para: Maven Users List
Asunto: RE: Problems with loading non-Java resources from classpath in
JUnit tests
What is the content of filePath1 ?
Rossmanith, Philipp wrote on Monday, May 14, 2007 10:00 AM:
Hi,
My resource file (the properties file I am trying to load
resources from classpath in
JUnit tests
What is the content of filePath1 ?
It's a string containing the name of the properties file... (It is working
in Eclipse, so I can exclude a typo or similar as the cause of the error.)
Ciao,
Philipp
-Mensaje original-
De: Jörg Schaible
exclude a typo or similar as the cause of the error.)
Ciao,
Philipp
-Mensaje original-
De: Jörg Schaible [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 14 de mayo de 2007 10:13
Para: Maven Users List
Asunto: RE: Problems with loading non-Java resources from classpath in
JUnit tests
What
Am I right to assume that the provided dependency scope should appear in my
.classpath file when I run an eclipse:eclipse, but it should not appear in
the generated WAR when I run a package/install/deploy?
Right now it's not appearing in my .classpath, which seems wrong...
Thanks.
--
View
I've got my own plugin for my own test framework but don't seem to be getting
my test classes in the classpath when running the plugin.
For instance:
plugin
groupIdcom.temboo.arcturus.maven_testsuite_plugin/groupId
artifactIdarcturus-maven-testsuite-plugin/artifactId
classes in the classpath when running the plugin.
For instance:
plugin
groupIdcom.temboo.arcturus.maven_testsuite_plugin/groupId
artifactIdarcturus-maven-testsuite-plugin/artifactId
version1.0-SNAPSHOT/version
executions
execution
phasetest/phase
* @requiresDependencyResolution test
* @phase test
*/
public class TestsuitePlugin
extends AbstractMojo
{
/**
* @parameter expression=${project}
* @required
*/
private MavenProject project;
public void execute()
throws MojoExecutionException
{
String classpath
Hi,
I have a component that is loading resources/files from the classpath and for
which I have written a JUnit test. However, when I run the tests with Maven
from the command line, they fail - obviously due to some classpath problems.*)
My assumption was that target/test-classes would form part
--
Wayne
On 5/11/07, Tom Lambrechts [EMAIL PROTECTED] wrote:
When enabling addClasspath the manifest does not contain classpath.
Neither for runtime or compile scope:
Main class and other parameters do work.
Manifest:
-
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created
Hi Tom,
Only dependencies with scope runtime are added to the classpath.
Cheers
Jo
On 5/11/07, Tom Lambrechts [EMAIL PROTECTED] wrote:
When enabling addClasspath the manifest does not contain classpath.
Neither for runtime or compile scope:
Main class and other parameters do work.
Manifest
the classpath and for
which I have written a JUnit test. However, when I run the tests with Maven
from the command line, they fail - obviously due to some classpath problems.*)
My assumption was that target/test-classes would form part of the classpath,
which a test output with maven -X confirmed
When enabling addClasspath the manifest does not contain classpath.
Neither for runtime or compile scope:
Main class and other parameters do work.
Manifest:
-
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: TOLA
Build-Jdk: 1.5.0_07
POM
I'd like to specify based on properties in profiles.xml some values for
Eclipse's .classpath file. How could I do this? (i.e. Where in the
profiles.xml you could specify the path of a Java Build Path variable, for
example, and the generated .classpath file for the eclipse:eclipse goal
would
Hi,
it's a simple question, and i think that the answer is no, but i need a
confirmation ;)
Is it possible to manage manually the MavenClasspath ?
Thanks.
--
View this message in context:
http://www.nabble.com/Manage-Maven-Classpath-tf3685869s177.html#a10302892
Sent from the Maven
.
--
View this message in context:
http://www.nabble.com/Manage-Maven-Classpath-tf3685869s177.html#a10302892
Sent from the Maven - Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
.
At this point velocity has been configured to use the
ClasspathResourceLoader.
How can I ensure that the Plugin puts the project specific classpath
resources ahead of the resources contained in the Plugin?
Is there any Maven mechanism that can be used to prepend to the plugin
classpath?
Or do I need to set
.jar
are 2 different jars, with different classes.
2- don't depend on the generated classpath (e.g. use a wrapper to
start your app)
You mean a shell script? Then we need to keep 2 verions in sync:
wrapper.bat and wrapper.sh.
Or do you mean a wrapper jar? We have separate processes that reuse
Hi all,
With the assembly plugin I can put all my module jars in repository like
structure:
/repo/org/ggg/ggg-core/1.0/ggg-core-1.0.jar
/repo/org/ggg/ggg-ftp-app/1.0/ggg-ftp-app-1.0.jar depends on ggg-core
/repo/org/ggg/ggg-http-app/1.0/ggg-http-app-1.0.jar depends on ggg-core
I've
Hi,
Add:
classpathPrefix../../../../org/ggg/ggg-core/1.0//classpathPrefix
as a child element of the manifest element.
Ian
Geoffrey De Smet wrote:
Hi all,
With the assembly plugin I can put all my module jars in repository like
structure:
/repo/org/ggg/ggg-core/1.0/ggg-core-1.0.jar
I also have a dependency on spring-core:
/repo/org/springframework/spring-core/2.0.2/spring-core-2.0.2.jar
So I need a different classpathPrefix depending on the dependency.
With kind regards,
Geoffrey De Smet
Ian Springer schreef:
Hi,
Add:
for a failing test class.)
This is a problem for me because one of my tests expects to be able to
find the test .class files in the classpath, but can't under Maven 2,
and so is failing.
Under both Maven 1.1-beta-3 and IntelliJ IDEA, the generated test class
files directory is included in java.class.path
I have some issues trying to get an ant-based mojo to work (need access to a
classpath ref in the ant script of the mojo - similar to
http://www.nabble.com/-m2--Ant-driven-plugins-and-classpath-refid%27s-tf937983s177.html#a2429897).
Anyone know how to do that?
Are Ant Mojos still supported
I'd like have all dependent jars of all modules of my enterprise
application bundled in the ear - not in WEB-INF/lib directories of my
war files. Is this possible with maven 2? I would also like maven to
generate the required ClassPath entries in the war manifest file.
I've found out how
On 4/12/07, Johan Eltes [EMAIL PROTECTED] wrote:
I'd like have all dependent jars of all modules of my enterprise
application bundled in the ear - not in WEB-INF/lib directories of my
war files. Is this possible with maven 2? I would also like maven to
generate the required ClassPath entries
Thanks.
Now that Maven is generating my manifest ClassPath entry for all my
dependencies - how do I avoid having the dependent jars copied into
the WEB-INF/lib directory of my war?
Johan Eltes
Callista Enterprise AB
Mobil: +46 (0)708-22 41 86
[EMAIL PROTECTED]
http
.
Now that Maven is generating my manifest ClassPath entry for all my
dependencies - how do I avoid having the dependent jars copied into
the WEB-INF/lib directory of my war?
Johan Eltes
Callista Enterprise AB
Mobil: +46 (0)708-22 41 86
[EMAIL PROTECTED]
http
Johan Eltes wrote:
I'd like have all dependent jars of all modules of my enterprise
application bundled in the ear - not in WEB-INF/lib directories of my
war files. Is this possible with maven 2? I would also like maven to
generate the required ClassPath entries in the war manifest file. I've
, April 12, 2007 6:50:09 PM
Subject: Re: How to generate manifest ClassPath entries for a web project?
Johan Eltes wrote:
I'd like have all dependent jars of all modules of my enterprise
application bundled in the ear - not in WEB-INF/lib directories of my
war files. Is this possible with maven 2
Recently I used -Xbootclasspath/a: to add dependencies to the forked VM's
classpath. I did this because there was some legacy code involved that insists
on reading stuff with a getSystemResource().
Regards,
Marcel
- Original Message
From: Wayne Fay [EMAIL PROTECTED]
To: Maven Users
Unfortunately, it appears that adding dependencies to the surefire
plugin does not affect the booter classpath in any way.
Any other ideas?
-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 04, 2007 3:10 PM
To: Maven Users List
Subject: Re
-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 attached Mojo for a simple example.
One issue with this is that some classes (in your case, most likely the
spring classes
801 - 900 of 1706 matches
Mail list logo