Hi,
Is it possible to get a classpath for a multimodule project that
contains all the subproject target/class folders?
TIA
John
Eurobase International Limited and its subsidiaries (Eurobase) are unable to
exercise control over the content of information in E-Mails. Any views and
opinions
John Coleman [EMAIL PROTECTED] schrieb:
Hi,
Is it possible to get a classpath for a multimodule project that
contains all the subproject target/class folders?
What would be the point of that?
Each module has exactly the classpath it needs, dynamically computed by maven
using
In our Maven POM we have a dependancy on a jar (Weblogic.jar) which has many
Jars listed in the classpath Entry in its Manifest.MF file.
When doing a Maven install maven appears to be trying to reference some of
the jars in the classpath but is unable to find them because the
weblogic.jar
) which has many
Jars listed in the classpath Entry in its Manifest.MF file.
When doing a Maven install maven appears to be trying to reference some of
the jars in the classpath but is unable to find them because the
weblogic.jar is in the Maven repository folder and the jars referenced
Wayne,
You are correct in what you are saying and I need to re-word my question.
The Jars I actually need for the build are referenced by the classpath
structure within the weblogic.jar and so when I perform a build in eclipse
it finds these jar using the classpath hierarchy
As far as I am aware, no. You will need to install/deploy all of your Weblogic
jars and use the Maven dependency method to build up your classpath.
Wayne
On 1/23/08, robcon [EMAIL PROTECTED] wrote:
Wayne,
You are correct in what you are saying and I need to re-word my question
Heinrich Nirschl wrote:
Put them into src/main/resources.
I want them to be in same folder that classes are.
--
View this message in context:
http://www.nabble.com/Resources-from-classpath-in-JAR-tp14814993s177p14844214.html
Sent from the Maven - Users mailing list archive
On Jan 15, 2008 7:31 PM, dddzzz [EMAIL PROTECTED] wrote:
Heinrich Nirschl wrote:
Put them into src/main/resources.
I want them to be in same folder that classes are.
Which folder do you mean, the one with the .class files or with the
.java files? The final jar will have the .class
Huang [EMAIL PROTECTED]:
Has anyone encountered this issue when using maven2 Eclipse plug-in?
Basically, after I use it to generate .classpath and .project file for
a project, Eclipse IDE has a trouble with processing .classpath and
complains:
cannot next blah_blah_blah.../resources
we're using eclipse 3.3 version
On Jan 14, 2008 10:53 AM, Steinar Bang [EMAIL PROTECTED] wrote:
Huang [EMAIL PROTECTED]:
Has anyone encountered this issue when using maven2 Eclipse plug-in?
Basically, after I use it to generate .classpath and .project file for
a project, Eclipse IDE has
How can I make maven2 to include files (like .xml and .property) in JAR
without adding resource include in POM.
--
View this message in context:
http://www.nabble.com/Resources-from-classpath-in-JAR-tp14814993s177p14814993.html
Sent from the Maven - Users mailing list archive at Nabble.com
On Jan 14, 2008 10:24 PM, dddzzz [EMAIL PROTECTED] wrote:
How can I make maven2 to include files (like .xml and .property) in JAR
without adding resource include in POM.
Put them into src/main/resources.
-
To unsubscribe,
Hello,
Has anyone encountered this issue when using maven2 Eclipse plug-in?
Basically, after I use it to generate .classpath and .project file for a
project, Eclipse IDE has a trouble with processing .classpath and complains:
cannot next blah_blah_blah.../resources inside
an_artifact_directory
the crucial factor on how the classpath is build
in maven? Or is it possible that transient dependencies overwrites
direct dependencies?
Thank you for your help
Marco
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
...
If I change the order of this two dependencies I get not error.
Is the order in the pom the crucial factor on how the classpath is
build in maven? Or is it possible that transient dependencies
overwrites direct dependencies?
[snip]
My guess is that the pom for hibernate-validator
the order of this two dependencies I get not error.
Is the order in the pom the crucial factor on how the classpath is build
in maven? Or is it possible that transient dependencies overwrites
direct dependencies?
I believe that Maven calculates the order of libs in the classpath based upon
Hi,
I want to add a JAR archive to the CLASSPATH for the targets build/package.
I don't want to include that JAR archive in my final WAR file. I read the
documentation, and for that purpose I added in my pom.xml the following to
the build element:
extensions
extension
Filipe David Manana [EMAIL PROTECTED] schrieb:
Hi,
I want to add a JAR archive to the CLASSPATH for the targets build/package.
I don't want to include that JAR archive in my final WAR file. I read the
documentation, and for that purpose I added in my pom.xml the following to
the build
It works! :)
Thank you.
On 1/10/08, Simon Kitching [EMAIL PROTECTED] wrote:
Filipe David Manana [EMAIL PROTECTED] schrieb:
Hi,
I want to add a JAR archive to the CLASSPATH for the targets
build/package.
I don't want to include that JAR archive in my final WAR file. I read
Hello,
We have a few problems with the classpath used by surefire. Some tests fail
randomly due to the order of the classpath managed by Surefire.
During the execution of unit tests, it seems that the classpath used by
maven differs from the classpath used by my IDE (IntelliJ).
In IntelliJ
Yes this does appear to be a problem still in Maven 2.0.8 and I've
raised what seems to be a similar issue here:
http://jira.codehaus.org/browse/SUREFIRE-427
Although my issue is focusing on test-resources completely missing in
the test-classpath.
-- Cory
Olivier Catteau wrote:
Hello,
We
it installed in the
jdk/jre.
Using 3.2 plugin version XSD validation works fine
Any idea if this must be reported as a bug?
Thanks
Ivan Garcia
--
View this message in context:
http://www.nabble.com/Surefire-plugin-2.3.1-xml-apis-classpath-issue-tp14707599s177p14707599.html
Sent from the Maven
Steinar Bang [EMAIL PROTECTED]:
Here's my mistake:
dependency
groupIdorg.eclipse.osgi/groupId
artifactIdorg.eclipse.osgi/artifactId
version3.2.1-R32x_v20060919/version
scopesystem/scope
Stuart McCulloch [EMAIL PROTECTED]:
I did a quick test and using ${basedir} appeared to work for me
I'm stuck with maven 2.0.4. Perhaps that's the cause of my problems?
- note that the basedir is the directory with the pom, so if you
unpack to target/someosgiapp then you need to use
Stuart McCulloch [EMAIL PROTECTED]:
well, there are system scope dependencies that let you refer to
library artifacts in a fixed location like /usr/share/lib/... but
their use is discouraged, because it makes things less portable:
Stuart McCulloch [EMAIL PROTECTED]:
FYI, you might be interested in:
http://wiki.ops4j.org/confluence/x/A4A6Pax-Runner
http://wiki.ops4j.org/confluence/x/8QPax-Construct
which aim to make OSGi development and deployment a breeze with Maven
Thanx for the tip! I'll check
On 18/12/2007, Steinar Bang [EMAIL PROTECTED] wrote:
Stuart McCulloch [EMAIL PROTECTED]:
well, there are system scope dependencies that let you refer to
library artifacts in a fixed location like /usr/share/lib/... but
their use is discouraged, because it makes things less portable:
Hi all,
I'm trying to move from 1.0 to 1.1 but am having a classpath problem
with my junit tests. In particular, I have a test that extends Spring's
AbstractTransactionalDataSourceSpringContextTests. Hibernate is
involved there also. In 1.0.2 LocalSessionFactoryBean's
(spring-hibernate
Hi
Is there any way tell maven2 to search libraries at Classpath first and then
in maven repository?
My admin say that most of library needed are installed at /usr/share/java
and he wants to load libraries from this place first...
Thanks
--
View this message in context:
http://www.nabble.com
maven2 to search libraries at Classpath first and then
in maven repository?
My admin say that most of library needed are installed at /usr/share/java
and he wants to load libraries from this place first...
Thanks
--
View this message in context:
http://www.nabble.com/Maven2-%2B-Classpath
Steinar Bang [EMAIL PROTECTED]:
I would like to limit the classpath for a maven-surefire-plugin to
something other than what comes from the dependencies.
Is that possible? How does one do it?
It's in Subversion, but I can't tell from here when it'll be in the
plugin us mortals use
Wayne Fay [EMAIL PROTECTED]:
That's just not the way Maven works. What libraries in particular do
you need -- many should be available in the Maven repo already, so its
simply a matter of writing the proper pom.xml dependency entries.
That's not always sufficient.
Eg. if you want to start
On 18/12/2007, Steinar Bang [EMAIL PROTECTED] wrote:
Wayne Fay [EMAIL PROTECTED]:
That's just not the way Maven works. What libraries in particular do
you need -- many should be available in the Maven repo already, so its
simply a matter of writing the proper pom.xml dependency entries.
I would like to limit the classpath for a maven-surefire-plugin to
something other than what comes from the dependencies.
Is that possible? How does one do it?
I would like the classpath to contain three things:
- the target/classes/ directory
- the target/test-classes/ directory
- the JAR
One of the classes that is used in a test explores the classpath to search
for classes with a specific annotation. This test works fine in the IDE
because when the junit runner runs the test, the java.class.path
environment variable is set as expected and thus I can search this
classpath.
When
So if I have a test dependency I include that is meant to override
configuration files in a subproject I am building, should the test jar
dependency override the compile time dependencies in the project being
built? I was hoping this is how 2.0.8 would behave, but either it's not, or
I have an
It's supposed to:
http://maven.apache.org/release-notes.html
* MNG-3118 - Test-classes should come before classes in the classpath.
This may slightly alter behavior of tests. The test-classes is now
included first in the classpath to allow test resources to override
normal runtime ones
But I mean, if I had a subproject that generates a jar file containing test
resources and in include it in another project as a test scoped dependency,
will those classes also be first in the classpath since they are an included
test resource?
On Nov 29, 2007 2:04 PM, [EMAIL PROTECTED] wrote
Ah, I misunderstood. Try running 'mvn test -X', you'll be able to see
the classpath and verify (look for [DEBUG] (f) classpathElements)
-Original Message-
From: Ryan Moquin [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 29, 2007 2:49 PM
To: Maven Users List
Subject: Re: Does Maven
Oh really? Wish I would have seen that option sooner. Thanks! I'll go
look.
On Nov 29, 2007 2:58 PM, [EMAIL PROTECTED] wrote:
Ah, I misunderstood. Try running 'mvn test -X', you'll be able to see
the classpath and verify (look for [DEBUG] (f) classpathElements)
-Original Message
Hi Nathan,
I had a similar issue when I wanted to run seam integration tests from
within Maven. I needed to add the web.xml file onto the classpath.
In the end I configured up the maven antrun plugin to copy my seam
configuration files to the test-classes directory under target. I
bound
a similar issue when I wanted to run seam integration tests from
within Maven. I needed to add the web.xml file onto the classpath.
In the end I configured up the maven antrun plugin to copy my seam
configuration files to the test-classes directory under target. I
bound this plugin to run on one
Hello,
I want classes that are generated in [compiler:compile] phase to be
available on classpath to a mojo which is executed just after.
What would be the best way to do it?
Regards,
Borut
reference the classpath produced by this pom in
my ant script it still shows the 1.0 version on the classpath. It
seems that the maven antLib is not taking the parent's dependency
management section into account. I've heard that the maven antlib does
not always function as maven should
I've configured an app-war to depend on overlay-war, and app-war lists
overlay-war as an overlay in the maven-war-plugin configuration. On top
of that, the classes in app-war depend on the classes in overlay-war for
compilation, but being a type 'war', they don't seem to end up in the
classpath
/artifactId
version1.0.4/version
/dependency
/dependencies
/dependencyManagement
Now, when I run mvn dependency:resolve on my child pom it changes the
resolved dependency from 1.0 to 1.0.4 as I desired. Hurrah!
Unfortunately when I reference the classpath produced
-booter-2.4-jboss-1-SNAPSHOT.jar
/home/me/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
However, when run from eclipse (the test fails the same way as when
run from command line), the classpath looks different:
/home/me/workspace.3.3/provisioning/src/main/resources/
/home/me/workspace.3.3
.jar
/home/me/.m2/repository/org/apache/maven/surefire/surefire-booter/2.4-jboss-1-SNAPSHOT/surefire-booter-2.4-jboss-1-SNAPSHOT.jar
/home/me/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
However, when run from eclipse (the test fails the same way as when
run from command line), the classpath looks
Hi Adam,
thanks for quick answer. The target/classes directory contains the
production log4j.properties file. I always thought maven uses the
target/test-classes directory as the classpath entry during the tests
- it contains the correct version of the log4j.properties file, but it
seems
/test-classes directory as the classpath entry during the tests
- it contains the correct version of the log4j.properties file, but it
seems the target/classes directory is on the test classpath too, and
that it is even the first target directory mentioned on the classpath.
I was probably wrong
/extensions
...
filters
filterfilter-${env}.properties/filter
/filters
...
but the filter entry doesn't work, I get :
[INFO] Error loading property file
'/path/to/project/folder/filter-myenv.properties'
I've tried with ${classpath}/filter-${env}.properties,
${maven.compile.classpath
/configuration
/execution
/executions
/plugin
-Tim
[1] http://mojo.codehaus.org/xdoclet-maven-plugin/
Guillaume Boucherie schrieb:
Hi all,
I'm trying to use xdoclet for my project via the antrun plugin, but I'm
encounter problem with classpath.
I configure antrun
Hi all,
I have questions about he classpath of maven2 plugin:
1. How the classpath of a plugin is constructed ?
2. Is it possible to change it ?
3. Is it possible to have the generated classes of a project in the
classpath of a plugin ?
Thanks
--
CletteBou
clettebou.miniville.fr
I only know the answer for 2.:
StringBuilder classpath = new
StringBuilder(System.getProperty(java.class.path, ));
classpath.append(What-ever-you-want);
System.setProperty(java.class.path, classpath.toString());
-Gisbert
Guillaume Boucherie wrote:
Hi all,
I have questions about he
Hello,
I want to add a reference (folder) for the current classpath
Ie .i wanna set something as
Classpath=classpath;some/folder/ref
Through sirefireplugin
I am not getting what to write for existing 'classpath'
I wrote as
plugin
groupIdorg.apache.maven.plugins
Hi Yan
Did you get any solution to this one, got any hold on the property?
Please share.
-Nishant
-Original Message-
From: Yan Huang [mailto:[EMAIL PROTECTED]
Sent: Monday, October 01, 2007 12:28 PM
To: Maven Users List
Subject: The build classpath
Hello,
Is there a maven property
Can't you have the contents of this folder as part of the project (in
src/test/resources) or jar'ed up and then just reference it with scope test?
Jim
On 10/4/07, Sonar, Nishant [EMAIL PROTECTED] wrote:
Hello,
I want to add a reference (folder) for the current classpath
Ie .i wanna
/tasks
/configuration
/execution
/executions
/plugin
-Tim
[1] http://mojo.codehaus.org/xdoclet-maven-plugin/
Guillaume Boucherie schrieb:
Hi all,
I'm trying to use xdoclet for my project via the antrun plugin, but I'm
encounter problem with classpath.
I configure antrun like
Hi all,
Is it possible to access and modify the classpath of a maven2 plugin at
runtime ?
In fact I'm trying to develop a plugin and I need to have the class files,
generated in the compile phase, in the classpath for my plugin to work
correctly.
How can I do that ?
Thanks in advance
Hi all,
I'm trying to use xdoclet for my project via the antrun plugin, but I'm
encounter problem with classpath.
I configure antrun like this:
project
[...]
build
plugins
plugin
artifactIdmaven-antrun-plugin/artifactId
executions
execution
Hello,
Is there a maven property which I can get the build classpath for a project?
the ${java.class.path} doesn't provide that.
Or, I have to write a mojo to get it through the call to
MavenProject.get*ClasspathElements()?
Thanks
Yan
Hi All
I am using hte maven compiler plugin set to jdk1.6 in my pom.xml
Now the thing is we want to use jaxws2.1 so we created a endorsed dir in the
lb folder of jdk1.6
but
when i try to do a maven compile I get an error since it does not get these
jars in its classpath
Any help would
a maven compile I get an error since it does not get these
jars in its classpath
Any help would be appreciated
Cheers
Priya
--
Gisbert Amm
Softwareentwickler Infrastruktur
WEB.DE GmbH
Brauerstraße 48 · D-76135 Karlsruhe
Tel. +49-721-91374-4224 · Fax +49-721-91374-2740
[EMAIL PROTECTED] · http
do some
classpath magic to override the loading of the jaxb-api but you will get
mixed results.
I am not using jaxws2.1 but jaxb2.1 directly without problems... make sure
that maven is using the runtime with the endorsed jars.
On Wednesday 19 September 2007 20:33, Gisbert Amm wrote:
I think
*
* @parameter default-value=${project.dependencyArtifacts}
* @required
* @readonly
*/
private java.util.SetArtifact dependencyArtifacts;
/**
* Extends classpath with dependencies. This is needed, as bcel otherwise
* will raise ClassNotFoundExceptions.
*/
void
if possible to include
the generated-sources and generated-classes on the classpath so that mvn
eclipse:eclipse includes them in an eclipse project?
Thanks.
Brian
--
View this message in context:
http://www.nabble.com/2-Classpath-Questions---how-to-included-generated-classes-in-classpath-so
.
Does anyone have suggestions as to how I can use the resulting classes
from
the xmlbeans plugin in my test cases. And also, how if possible to
include
the generated-sources and generated-classes on the classpath so that mvn
eclipse:eclipse includes them in an eclipse project?
Thanks.
Brian
, how if possible to
include
the generated-sources and generated-classes on the classpath so that mvn
eclipse:eclipse includes them in an eclipse project?
Thanks.
Brian
--
View this message in context:
http://www.nabble.com/2-Classpath-Questions---how-to-included-generated
WeakIdentityTable.class from the jar,
and not from target/classes.
Is there anyway to exclude a dependency from the test phase (make the
dependency available ONLY for compile ?)
OR
Is there any way to place target/classes prior to dependecies in the test
classpath ?
Any suggestion is welcome. I've no other option than
the
dependency available ONLY for compile ?)
OR
Is there any way to place target/classes prior to dependecies in the test
classpath ?
Any suggestion is welcome. I've no other option than switching to an ant
script.
Nico.
the
sequencing needed in part 1 above?
Thanks,
Matthew McCullough
Ambient Ideas, LLC
[EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/Can-Classpath-sequence-be-controlled-in-JAR%3AJAR-manifest-generation--tf4300510s177.html#a12240876
Sent from the Maven - Users mailing list
Is it possible to set the order of the JAR's added to the classpath of a
Maven project? If yes, how is this is done? Thank you.
This message (including any attachments) contains confidential information
intended for a specific individual and purpose, and is protected by law. If
you
This is not an uncommon question.
The answer is no.
Wayne
On 8/20/07, Morgovsky, Alexander (US - Glen Mills)
[EMAIL PROTECTED] wrote:
Is it possible to set the order of the JAR's added to the classpath of a
Maven project? If yes, how is this is done? Thank you.
This message (including
,
Matthew McCullough
Ambient Ideas, LLC
[EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/Can-Classpath-sequence-be-controlled-in-JAR%3AJAR-manifest-generation--tf4300510s177.html#a12240876
Sent from the Maven - Users mailing list archive at Nabble.com
I've looked through the examples for this and it seems simple enough.
However, I'd really like to have my classpath as a series of path elements
for the sake of legibility and future maintnance, i.e.
classpath
entrypath1/entry
entrypath2/entry
entrypath3/entry
/classpath
If you're asking about the MANIFEST.MF file itself, you are welcome to
take this up with Sun and/or the JCP. Until then, the Jar
specification requires that we continue to use the current formatting
of the classpath:
http://java.sun.com/javase/6/docs/technotes/guides/jar/jar.html
Wayne
On 8/16
classpath
Are you asking about a Maven2 pom configuration entry, or the actual
Class-Path line in your MANIFEST.MF file generated by Maven?
If you're asking about Maven, please file a RFE in JIRA and someone
will take a look at your issue. I'd suggest filing under MJAR:
http
using ! methods?
TIA
John
-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED]
Sent: 14 August 2007 23:19
To: Maven Users List
Subject: Re: embedded jetty in maven test phase classpath problem.
I have been using the jspc plugin for some time now very successfully.
I agree
I have been using the jspc plugin for some time now very successfully.
I agree with Andy -- you should check it out.
Wayne
On 8/13/07, Andrew Williams [EMAIL PROTECTED] wrote:
On 1 Aug 2006, at 17:14, Meghan Pike wrote:
[snip]
Does anybody know if this is the case and how I can fix it?
On 1 Aug 2006, at 17:14, Meghan Pike wrote:
[snip]
Does anybody know if this is the case and how I can fix it?
I though maybe I could compile the jsp's to _jsp.java files in the
pre-test
phase, but I wasn't sure about how to go about this.
You could try using the maven-jspc-plugin
Hi,
I'm using applescript in my application that's being built using maven. I'm
developing on a mac os x. To compile applescript code (I wrote a couple of
proof-of-concept classes outside the project just to test things out), I had
to run javac -classpath /System/Library/Java Test.java
How/where
-classpath /System/Library/Java Test.java
How/where would I modify my pom files to handle this?
Thanks!
You'll have to declare a dependency on the library you're using to compile
your classes: see
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
The best would
hi,
i can't find the reason why i get such strange entries in the classpath file:
classpathentry kind=var
path=M2_REPOant/ant-optional/1.5.1/ant-optional-1.5.1.jar/
classpathentry kind=var path=M2_REPOantlr/antlr/2.7.6/antlr-2.7.6.jar/
classpathentry kind=var
path=M2_REPOaopalliance
Quoting Klaus Botschen [EMAIL PROTECTED]:
i can't find the reason why i get such strange entries in the classpath file:
classpathentry kind=var
path=M2_REPOant/ant-optional/1.5.1/ant-optional-1.5.1.jar/
classpathentry kind=var path=M2_REPOantlr/antlr/2.7.6/antlr-2.7.6.jar/
classpathentry
[EMAIL PROTECTED] wrote on Monday, August 06, 2007 9:15 AM:
Quoting Klaus Botschen [EMAIL PROTECTED]:
i can't find the reason why i get such strange entries in the
classpath file:
classpathentry kind=var
path=M2_REPOant/ant-optional/1.5.1/ant-optional-1.5.1.jar/
classpathentry kind
-plugin-generates-weird-classpath-entries-tf4214170s177.html#a12007519
Sent from the Maven - Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
I can't find the reason why i get such strange entries in the classpath file:
classpathentry kind=var
path=M2_REPOant/ant-optional/1.5.1/ant-optional-1.5.1.jar/
classpathentry kind=var path=M2_REPOantlr/antlr/2.7.6/antlr-2.7.6.jar/
classpathentry kind=var
path=M2_REPOaopalliance
that no way is shown to include a dependency in WEB-INF/lib but
not the manifest classpath.
I don't know when this example was last updated, but does anyone know if
this has been changed? Or if there is an easy way around it, short of
modifying the plugin code myself? I'm using the latest snapshot
What manifest classpath are you referring to?
The war plugin does not add a classpath to the manifest - it only adds
dependencies to WEB-INF/lib. It's the jar plugin that will add
classpaths to manifests. Then the ear plugin will copy any jars in the
manifest classpaths of each of its modules
Hi,
I am having a problem where a dependent jar(the jar is called nlsorm
and is in the ipeservice jar) is being added to the manifest classpath
of one ejb(the mdb in this case) and not the other...the ejb in this
case: I am a bit puzzled as I have the ejb plugin configured the same
way in both
Am Donnerstag, 19. Juli 2007 19:53 schrieb [EMAIL PROTECTED]:
Hi,
i have strange classLoader problem. I use maven, eclipse and jetty.
i want to write a functional test with htmlunit, something like shown here
http://today.java.net/pub/a/today/2007/04/12/embedded-integration-testing-o
);
it prints:
class org.springframework.web.context.support.XmlWebApplicationContext
and throws then a
ClassCastException
But XmlWebApplicationContext IS A WebApplicationContext, so it SHOULD be
castable
The problem is, that i have all my maven dependencies on the classpath (either
running from
that no way is shown to include a dependency in WEB-INF/lib but
not the manifest classpath.
I don't know when this example was last updated, but does anyone know if
this has been changed? Or if there is an easy way around it, short of
modifying the plugin code myself? I'm using the latest snapshot
that no way is shown to include a dependency in WEB-INF/lib but not
the manifest classpath.
I don't know when this example was last updated, but does anyone know if
this has been changed? Or if there is an easy way around it, short of
modifying the plugin code myself? I'm using the latest
frodesto wrote:
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
unit tests I need a real JMS implementation, and I am using
ActiveMQ. ActiveMQ also bundles the javax.jms package, and this is the
one I need to use at test-time. I have included the ActiveMQ jar as
scope=test dependency. When I run the unit tests, I get a classpath with
two different versions
I am trying to add an additional classpath element to the manifest created by
the war plugin.
Is it possible to do this? I see how to add a manifest entry
and I see how to specify the war classpath should be generated,
but how to get this:
Manifest-Version: 1.0
Class-Path
will pick up
the spring config file at main or test resources directory randomly.
Can maven help to use the resources at test directory at a higher
prioerity in classpath resource loading?
I don't know if this actually relates to maven issue or what (or maybe this
relates to project directory structure
Hi All,
Is it possible to pass / access the maven project classpath inside of an
ant mojo build file.
I see that you can with the antrun plugin, but can you do the same with
self written ant mojo's ?
I want to get at :
${maven.dependency.classpath}
${maven.compile.classpath
Frode Stokke wrote on Tuesday, July 03, 2007 10:36 AM:
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?
Yes. Provided means
701 - 800 of 1706 matches
Mail list logo