Re: Accessing to the maven classpath from Ant build file

2010-12-08 Thread abousso...@gmail.com
: ${fr.sogeti.plpm.infra.persistance.jpa:fr.sogeti.plpm.infra.persistance.jpa.model:jar} please notice that I'm working inside eclipse. -- View this message in context: http://maven.40175.n5.nabble.com/Accessing-to-the-maven-classpath-from-Ant-build-file-tp3297133p3297502.html Sent from the Maven

adding java sources to classpath with maven-eclipse-plugin

2010-11-08 Thread James Ring
(Please CC me on replies, I am not subscribed to this list) Hi there, I have a GWT project which programatically starts a DevMode shell. The problem I have is that GWT needs access to the Java source code in the classpath at runtime. I have tried adding my src/main/java directory

Re: adding java sources to classpath with maven-eclipse-plugin

2010-11-08 Thread Jörg Schaible
James Ring wrote: (Please CC me on replies, I am not subscribed to this list) Hi there, I have a GWT project which programatically starts a DevMode shell. The problem I have is that GWT needs access to the Java source code in the classpath at runtime. I have tried adding my src/main/java

Re: adding java sources to classpath with maven-eclipse-plugin

2010-11-08 Thread Martijn Dashorst
is that GWT needs access to the Java source code in the classpath at runtime. I have tried adding my src/main/java directory to the resources list (in the following snippet), but this doesn't seem to have the desired effect. build  resources    resource      directorysrc/main/java/directory

How do I add a jar file to surefire runtime classpath?

2010-10-23 Thread kayvan kazeminejad
Hello all, First,I am new to maven and appreciate your help in advance. I need to add this jar file: glassfish-embedded-static-shell-3.1-b24.jar to surefire runtime so I can run my junit tests . Below configuration is not doing for me. build plugins plugin

Re: How do I add a jar file to surefire runtime classpath?

2010-10-23 Thread Rusty Wright
Have you tried adding it using the usual dependency element and using the scope tag with test? For example, here's how I add easymock for just testing: dependency groupIdorg.easymock/groupId artifactIdeasymock/artifactId

Re: How do I add a jar file to surefire runtime classpath?

2010-10-23 Thread Rusty Wright
Excellent free maven books: http://www.sonatype.com/books.html On 2010-10-23 15:09, kayvan kazeminejad wrote: Hello all, First,I am new to maven and appreciate your help in advance. I need to add this jar file: glassfish-embedded-static-shell-3.1-b24.jar to surefire runtime so I can run my

Re: How do I add a jar file to surefire runtime classpath?

2010-10-23 Thread kayvan kazeminejad
Thank you for your suggestion. I had tried that already. I finally found out what the problem was from this link: http://docs.sun.com/app/docs/doc/821-1754/gjxff?l=jaa=view On Oct 23, 2010, at 3:40 PM, Rusty Wright wrote: Have you tried adding it using the usual dependency element and

[eclipse:eclipse] AspectJ Dependencies Not Added to Classpath

2010-10-21 Thread Ole Ersoy
Hi, When I run eclipse:eclipse the following two dependencies do not get added to the classpath. dependency groupIdorg.aspectj/groupId artifactIdaspectjrt/artifactId version1.5.4/version

Re: [eclipse:eclipse] AspectJ Dependencies Not Added to Classpath

2010-10-21 Thread Rune Flobakk
This was fixed in version 2.8 of maven-eclipse-plugin: http://jira.codehaus.org/browse/MECLIPSE-594 - Rune Hi, When I run eclipse:eclipse the following two dependencies do not get added to the classpath. dependency groupIdorg.aspectj/groupId

Re: [eclipse:eclipse] AspectJ Dependencies Not Added to Classpath

2010-10-21 Thread Ole Ersoy
Indeed it is - I just added this to the pom's build plugins section: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId version2.8/version

Re: classpath issue accessing lib/*.jar in a jar

2010-10-02 Thread Barrie Treloar
: com.tssap.sap.libs.logging Bundle-Vendor: %provider.name Bundle-ClassPath: lib/sap.com~tc~exception~impl.jar Bundle-Version: 2.0.0.091202153157 Bundle-Localization: plugin Bundle-Name: %plugin.name Bundle-ManifestVersion: 2 Bundle-SymbolicName: com.sap.exception;singleton:=true =      is there a way

classpath issue accessing lib/*.jar in a jar

2010-10-01 Thread torsten . reinhard
Hi, acually I´m working on a SAP Web AS integration, so I need to access some classes from external 3rd party jars. these jars seem to be OSGI bundels, with a MANIFEST.MF containing for example: Require-Bundle: com.tssap.sap.libs.logging Bundle-Vendor: %provider.name Bundle-ClassPath: lib

Maven parent classpath issues

2010-08-26 Thread nishant . raj
Hi All, I am trying to build a project hierarchy. The structure looks something like this, RootProject (Pom packaging) Child Project (jar packaging) The child project uses a plugin which uses src/main/jibx/customization.xml file I can build the child project independently. The

Re: Maven parent classpath issues

2010-08-26 Thread Anders Hammar
I'm guessing that you have the plugin bound in the parent pom. Move it to the child project and you should be fine. /Anders On Thu, Aug 26, 2010 at 13:51, nishant@hsbcib.com wrote: Hi All, I am trying to build a project hierarchy. The structure looks something like this,

Re: Maven parent classpath issues

2010-08-26 Thread Aleksey Didik
Hello. Use ${basedir}/src/main/jibx/customization.xml instead your variant. By default work directory is a directory when you start mvn. Always use ${basedir} before you relative file paths. hth, Aleksey. 26.08.2010 15:51, nishant@hsbcib.com ?: src/main/jibx/customization.xml f

Re: Best way to get topologically sorted classpath?

2010-08-09 Thread Zac Thompson
On Fri, Aug 6, 2010 at 1:12 PM, Laird Nelson ljnel...@gmail.com wrote: I need (ultimately) a list of URLs corresponding to elements in a project's classpath, where that classpath has been sorted in dependency order.  (I don't actually care if it's sorted ascending or descending.) I need

Best way to get topologically sorted classpath?

2010-08-06 Thread Laird Nelson
I need (ultimately) a list of URLs corresponding to elements in a project's classpath, where that classpath has been sorted in dependency order. (I don't actually care if it's sorted ascending or descending.) I need this for a mojo that I'm working on that will be run as part of an ear project's

Re: Maven 2.2.1 - Test compilation classpath does not include dependencies with provided scope

2010-07-19 Thread Anders Hammar
I think a bug like this is very unlikely, as someone would have encountered it already. You could try Maven 3.0-beta-1 to see if it makes a difference. Or provide a sample project that illustrates the issue. /Anders On Sun, Jul 18, 2010 at 03:39, Olivier Dehon odn...@gmail.com wrote: Hello,

Maven 2.2.1 - Test compilation classpath does not include dependencies with provided scope

2010-07-17 Thread Olivier Dehon
Hello, I came across what I think is a bug introduced in maven 2.2.x. In my WAR project, I have a dependency with provided scope, which is needed by both my classes and test-classes. With maven 2.1.0, everything compiles ok, classes and test-classes alike. With maven 2.2.1, the test classes do

Modyfing classpath

2010-05-27 Thread D D
Hello Everyone, My earlier email regarding problems with WAS6 plugin didn't get any traction - leads me to believe that it's not a very popular plugin. So let me ask you this: How do I modify the java classpath so it includes artifacts my pom.xml depends on? I need to make those artifacts

Re: Modyfing classpath

2010-05-27 Thread Wayne Fay
How do I modify the java classpath so it includes artifacts my pom.xml depends on? I need to make those artifacts available to a shell script that is launched from maven/WAS6 plugin. Take a look at the dependency plugin, specifically the build-classpath mojo: http://maven.apache.org/plugins

Re: Modyfing classpath

2010-05-27 Thread D D
Thanks Wayne! So my preliminary plan is to dump this classpath to a file and then pick it up from a file through shell script. Is this a good approach? Is there a better way of doing it? Dave On Thu, May 27, 2010 at 11:38 AM, Wayne Fay wayne...@gmail.com wrote: How do I modify the java

Re: Modyfing classpath

2010-05-27 Thread Wayne Fay
So my preliminary plan is to dump this classpath to a file and then pick it up from a file through shell script. Is this a good approach? Is there a This is a good approach because many shells have limits on string lengths and you can quickly run into those limits when every jar starts with c

Re: Manipulating the build's classpath programmatically (in a custom mojo)

2010-05-07 Thread Jemos Infra
of jars to a build's classpath. The problem is those jars cannot be distributed in any way, and they are so many, that adding them as dependencies is just too overwhelming. Plus the jar names and/or number of jars can change at any time. I'm writing a little maven plugin for this, but I don't

Re: Manipulating the build's classpath programmatically (in a custom mojo)

2010-05-07 Thread Alex Ruiz
Thanks, but I think that that doesn't answer my question. I just need a programmatic way to add jars to the build classpath. Cheers, -Alex On Fri, May 7, 2010 at 1:21 AM, Jemos Infra jemos.in...@googlemail.comwrote: I think this question was answered recently in the list and involved using

Re: Manipulating the build's classpath programmatically (in a custom mojo)

2010-05-07 Thread Wayne Fay
Thanks, but I think that that doesn't answer my question. I just need a programmatic way to add jars to the build classpath. I doubt you'll find many (any?) people on this list who have done this. IMO you are better off simply deploying all those dependencies to a corporate repo and using

Re: Manipulating the build's classpath programmatically (in a custom mojo)

2010-05-07 Thread Ron Wheeler
be afraid that when it snaps back someone will get hurt. It is much better to go along with Maven's design. Ron On 07/05/2010 11:13 AM, Alex Ruiz wrote: Thanks, but I think that that doesn't answer my question. I just need a programmatic way to add jars to the build classpath. Cheers, -Alex

Re: Add .classes to compilation classpath

2010-05-06 Thread German Rodriguez
For me it worked adding the classes as resources. I hope it helps you dynnamitt wrote: Hi I managed alter the classpath like this: classpath./src/main/webapp/WEB-INF/lib/cocoon-2.1.11.jar${path.separator}./src/main/webapp/WEB-INF/lib/avalon-framework-api-4.3.jar/classpath

Re: Adding jars to the compiler plugin's classpath

2010-05-06 Thread Alex Ruiz
Maven's extensions to extend the build classpath http://maven.apache.org/pom.html#Extensions Is there a way to add jars to the compiler plugin's classpath without actually specifying as dependencies. For example, I need to specify to the Java compiler extra jars in certain directory. Since

Re: Adding jars to the compiler plugin's classpath

2010-05-06 Thread Michael Hüttermann
yes, have a look on the site I've pointed to: http://maven.apache.org/pom.html#Extensions You just need to define an extension (or multiple) inside the build element build extensions extension .. You must reference the classpath extension (i.e. the artifact) the Maven way, like you

Manipulating the build's classpath programmatically (in a custom mojo)

2010-05-06 Thread Alex Ruiz
Greetings, I know this is not the Maven way, but I need to add a bunch of jars to a build's classpath. The problem is those jars cannot be distributed in any way, and they are so many, that adding them as dependencies is just too overwhelming. Plus the jar names and/or number of jars can change

Adding jars to the compiler plugin's classpath

2010-05-05 Thread Alex Ruiz
Hello all, Is there a way to add jars to the compiler plugin's classpath without actually specifying as dependencies. For example, I need to specify to the Java compiler extra jars in certain directory. Since the number of jars is huge, and that might change in the future, I'd like to just say

Re: Adding jars to the compiler plugin's classpath

2010-05-05 Thread Anders Hammar
, May 6, 2010 at 07:43, Alex Ruiz alex.ruiz...@gmail.com wrote: Hello all, Is there a way to add jars to the compiler plugin's classpath without actually specifying as dependencies. For example, I need to specify to the Java compiler extra jars in certain directory. Since the number of jars

Re: Adding jars to the compiler plugin's classpath

2010-05-05 Thread Michael Hüttermann
you can use Maven's extensions to extend the build classpath http://maven.apache.org/pom.html#Extensions Is there a way to add jars to the compiler plugin's classpath without actually specifying as dependencies. For example, I need to specify to the Java compiler extra jars in certain

Re: Adding jars to the compiler plugin's classpath

2010-05-05 Thread Kalpak Gadre
to separately pick and choose what dependencies you bundle in your archive in your assembly descriptor. - Kalpak Hello all, Is there a way to add jars to the compiler plugin's classpath without actually specifying as dependencies. For example, I need to specify to the Java compiler extra jars

Re: Adding jars to the compiler plugin's classpath

2010-05-05 Thread Anders Hammar
. - Kalpak Hello all, Is there a way to add jars to the compiler plugin's classpath without actually specifying as dependencies. For example, I need to specify to the Java compiler extra jars in certain directory. Since the number of jars is huge, and that might change in the future, I'd

Maven SNAPSHOT's have no time information in classpath

2010-04-14 Thread Sager, Beat
Hello, I have the issue, that maven does not add the time information of snapshot artifacts to the class path. For example [INFO] [dependency:build-classpath {execution: default-cli}] [INFO] Dependencies classpath: /home/xxx/.m2/repository/com/foo/1.0.0-SNAPSHOT/bar-1.0.0-SNAPSHOT.jar

Problems with Dependencies and Classpath

2010-03-08 Thread Matthias Hofmann
.../mainClass addClasspathtrue/addClasspath /manifest /archive /configuration /plugin as buildoptions Any ideas concerning this issue? Most likely, sth. with the classpath is wrong, but i can't figure

Re: Problems with Dependencies and Classpath

2010-03-08 Thread Milos Kleint
concerning this issue? Most likely, sth. with the classpath is wrong, but i can't figure it out. Best regards and thank you, Matthias - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e

Re: Problems with Dependencies and Classpath

2010-03-08 Thread Shanbo Li
this issue? Most likely, sth. with the classpath is wrong, but i can't figure it out. Best regards and thank you, Matthias - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail

Re: Problems with Dependencies and Classpath

2010-03-08 Thread Tony Chemit
/plugin as buildoptions Any ideas concerning this issue? Most likely, sth. with the classpath is wrong, but i can't figure it out. Best regards and thank you, Matthias - To unsubscribe, e-mail: users-unsubscr

Re: Problems with Dependencies and Classpath

2010-03-08 Thread Matthias Hofmann
. with the classpath is wrong, but i can't figure it out. Best regards and thank you, Matthias - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

maven-dependency-plugin:build-classpath bug

2010-03-03 Thread David Hoffer
maven-dependency-plugin:build-classpath creates invalid property file on Windows platform. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId version2.1/version executions

Re: maven-dependency-plugin:build-classpath bug

2010-03-03 Thread Wayne Fay
Will create something like classpath=packages\foo.jar instead of classpath=packages\\foo.jar so it can't be read.  Is there a fix for I'd think the fix should be to make all the \'s into /'s which Java on Windows seems to deal with just fine... Wayne

Re: maven-dependency-plugin:build-classpath bug

2010-03-03 Thread David Hoffer
AM, Wayne Fay wayne...@gmail.com wrote: Will create something like classpath=packages\foo.jar instead of classpath=packages\\foo.jar so it can't be read.  Is there a fix for I'd think the fix should be to make all the \'s into /'s which Java on Windows seems to deal with just fine... Wayne

Does maven-dependency-plugin build-classpath create property?

2010-03-02 Thread David Hoffer
Does maven-dependency-plugin build-classpath create a maven property of the generated classpath so it can be used directly in the pom? Or do I have to write this to a file and read the contents? -Dave - To unsubscribe, e-mail

Runtime Classpath Problem

2010-02-26 Thread Peter Andreas Chronz
a ClassNotFoundException and a hint, that xbean.jar is not on the classpath. If I reference the exact same file (in my local repo) with eclipse directly everything runs smoothly (at least in eclipse). I have tried to declare this dependency's scope as runtime, which did not help. Thanks in Advance

Re: Runtime Classpath Problem

2010-02-26 Thread Wayne Fay
I have tried to declare this dependency's scope as runtime, which did not help. Could you try declaring it as compile, just to see if it resolves your problem? Sounds like you're missing an entry in Manifest.mf or something... Wayne

Re: Eear libraries classpath

2010-02-02 Thread Ron Wheeler
Maruf Aytekin wrote: Hi Wayne Thanks for your response on this. Is this a problem; having ModuleB as ModuleB.jar in ear package? Can ModuleA fsee ModuleB on the classpath? When you tested this EAR with your target Java EE app server, what happened? Did things deploy and work

Re: Eear libraries classpath

2010-02-01 Thread Maruf Aytekin
Hi Wayne Thanks for your response on this. Is this a problem; having ModuleB as ModuleB.jar in ear package? Can ModuleA fsee ModuleB on the classpath? When you tested this EAR with your target Java EE app server, what happened? Did things deploy and work properly, or no? No this did

Eear libraries classpath

2010-01-29 Thread Maruf Aytekin
-Vendor-Id: vendor id EAR PAckage: ModuleA.jar ModuleB.jar Is this a problem; having ModuleB as ModuleB.jar in ear package? Can ModuleA fsee ModuleB on the classpath? If the answer is no, how do I addd dependencies to the manifest.mf classpath without version numbers only

Re: Eear libraries classpath

2010-01-29 Thread Wayne Fay
Is this a problem; having ModuleB as ModuleB.jar in ear package? Can ModuleA fsee ModuleB on the classpath? When you tested this EAR with your target Java EE app server, what happened? Did things deploy and work properly, or no? If the answer is no, how do I addd dependencies

Add dependency to maven-compiler-plugin classpath

2010-01-20 Thread Jan-Kees van Andel
Hey, In my project I have a dependency that I only want to have on my compiler-plugin classpath, but not on my normal project classpath. This is my code: build ... plugins ... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId

Re: Add dependency to maven-compiler-plugin classpath

2010-01-20 Thread Anders Hammar
...@apache.org wrote: Hey, In my project I have a dependency that I only want to have on my compiler-plugin classpath, but not on my normal project classpath. This is my code: build ... plugins ... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler

Re: Add dependency to maven-compiler-plugin classpath

2010-01-20 Thread Stephen Connolly
scope=provided 2010/1/20 Jan-Kees van Andel jankeesvanan...@apache.org: Hey, In my project I have a dependency that I only want to have on my compiler-plugin classpath, but not on my normal project classpath. This is my code: build  ...  plugins   ...   plugin

Re: Add dependency to maven-compiler-plugin classpath

2010-01-20 Thread Jan-Kees van Andel
only one module, containing both the annotations, the processor class and a META-INF file to configure the processor... The annoying thing of this was that the compiler auto-detects any processors on the classpath and invokes them automatically. This is something I don't want, so I decided to split

Maven classpath question

2010-01-07 Thread laredotornado
) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654) ... 10 more -- View this message in context: http://old.nabble.com/Maven-classpath-question-tp27066744p27066744.html Sent from the Maven - Users mailing list archive at Nabble.com

Re: Maven classpath question

2010-01-07 Thread Wayne Fay
However, when I run my JUnit test, I get the ClassNotFoundException below. The reason it is strange is because that class exists within the dependency above.  Can you think of some ways I can troubleshoot this problem further? Download the jar and verify this file is inside the Jar before

adding not-relocatable relative dir to classpath

2009-12-10 Thread Andrew Gaydenko
Under development, for all run cases (exec:exec or surefire:test) I need a classpath be appended with a dir which has predefined location against project's basedir and *isn't* transitive (say, I can not use it as resources being copied to target/classes). How to append? Andrew

Re: adding not-relocatable relative dir to classpath

2009-12-10 Thread Jörg Schaible
Andrew Gaydenko wrote at Donnerstag, 10. Dezember 2009 18:49: Under development, for all run cases (exec:exec or surefire:test) I need a classpath be appended with a dir which has predefined location against project's basedir and *isn't* transitive (say, I can not use it as resources being

Re: adding not-relocatable relative dir to classpath

2009-12-10 Thread Andrew Gaydenko
On Friday 11 December 2009 09:44:06 Jörg Schaible wrote: Andrew Gaydenko wrote at Donnerstag, 10. Dezember 2009 18:49: Under development, for all run cases (exec:exec or surefire:test) I need a classpath be appended with a dir which has predefined location against project's basedir

Re: Modifying classpath

2009-12-09 Thread Stephen Connolly
http://www.ops4j.org/projects/pax/construct/maven-pax-plugin/ 2009/12/9 Jochen Mader pflanzenmoer...@gmail.com I am working on a little prove of concept for an OSGi build. (I know all the other plugins, Tycho is Maven 3 and therefore not usable in our environment and we want to avoid the meta

Re: Modifying classpath

2009-12-09 Thread Stephen Connolly
Not that I have used it... just skimmed a book on OSGi and it was using this plugin to do all the OSGi heavy lifting... skimming their website, they may not be doing everything the True Maven Way... but they are probably not a million miles off -Stephen 2009/12/9 Stephen Connolly

Re: Modifying classpath

2009-12-09 Thread Jochen Mader
Thanks for the answer Stephen but that's exactly the answer I wanted to avoid. I already tried pax construct and it's a good tool. As I stated in my email we want to do a proof of concept. The concept is supposed to be to get all dependencies from an OBR and to ensure that only OSGi versions of

Modifying classpath

2009-12-08 Thread Jochen Mader
I am working on a little prove of concept for an OSGi build. (I know all the other plugins, Tycho is Maven 3 and therefore not usable in our environment and we want to avoid the meta information duplication other tools cause) I got a plugin, I am accessing the context classloader. I created my

How to refer to project's classpath for plugin configuration?

2009-12-01 Thread David C. Hicks
I'm having a problem with the Liquibase plugin. A custom change set is unable to find a classpath resource in target/classes. I think it could be that the plugin isn't using the correct classpath. So, I'd like to configure it by hand. How can I refer to the Maven classpath for the project

Re: How to refer to project's classpath for plugin configuration?

2009-12-01 Thread Ryan Connolly
Did you try maven.compile.classpath instead of project.classpath? On 12/1/09, David C. Hicks dhi...@i-hicks.org wrote: I'm having a problem with the Liquibase plugin. A custom change set is unable to find a classpath resource in target/classes. I think it could be that the plugin isn't using

Re: How to refer to project's classpath for plugin configuration?

2009-12-01 Thread David C. Hicks
a problem with the Liquibase plugin. A custom change set is unable to find a classpath resource in target/classes. I think it could be that the plugin isn't using the correct classpath. So, I'd like to configure it by hand. How can I refer to the Maven classpath for the project/module

maven eclipse is not generating entire classpath

2009-11-10 Thread laredotornado
.classpath file is incomplete ... ?xml version=1.0 encoding=UTF-8? classpath classpathentry kind=src path=model/src/main/java/ classpathentry kind=src path=service/src/main/java/ classpathentry kind=src path=test/src/main/test/ classpathentry kind=src path=webapp/src

help getting classpath entry into manifest for jar-with-dependencies assembly

2009-11-03 Thread Mick Knutson
I want to add the jar dependencies into the jar manifest classpath entry for the jar-with-dependencies assembly plugin and I am having no luck: assembly xml: assembly idjar-with-dependencies/id formats formatjar/format /formats includeBaseDirectoryfalse/includeBaseDirectory fileSets

Is archiver with snapshot dependencies producing correct classpath

2009-10-21 Thread Tuomas Kiviaho
/artifactId/version-SNAPSHOT/artifactId-version-timestamp.jar would be the correct presentation? -- View this message in context: http://www.nabble.com/Is-archiver-with-snapshot-dependencies-producing-correct-classpath-tp25993024p25993024.html Sent from the Maven - Users mailing list archive

Altering the classpath used for unit testing...

2009-10-02 Thread David Sharp
I am attempting to use maven to run unit tests on a struts web application. Struts needs access to a resource file located in my ear project under src/main/application/. At run time, this file is in the classpath and all is good. At test time, however, it's not in the classpath. How can I add

Re: Altering the classpath used for unit testing...

2009-10-02 Thread Stephen Connolly
, this file is in the classpath and all is good. At test time, however, it's not in the classpath. How can I add this file to the classpath used for running unit tests? Thanks, Dave --- There are 10 types of people in the world, those that understand binary, and those that don't

Re: How can I add path in classpath entry in Manifest file?

2009-09-01 Thread Alexander Vaysberg
spaces. The application or extension class loader uses the value of this attribute to construct its internal search path. That means you can in Manifest only jars added, but not a classpath. The classpath you mast added if you call the java, or added the jars to Manifest. That alls

Re: How can I add path in classpath entry in Manifest file?

2009-09-01 Thread Marco Huber
Hi, I don't know if this is exactly what you are looking for, but I had to add a special path to my manifest classpath entry once. The solution was the following: plugin artifactIdmaven-jar-plugin/artifactId configuration archive manifest addClasspathtrue

Re: How can I add path in classpath entry in Manifest file?

2009-09-01 Thread Alexander Vaysberg
Hi, yes, that right. so you can added the jars to classpath with relative directory. Marco Huber schrieb: Hi, I don't know if this is exactly what you are looking for, but I had to add a special path to my manifest classpath entry once. The solution was the following: plugin

Re: How can I add path in classpath entry in Manifest file?

2009-09-01 Thread youhaodeyi
Yes that's what I am looking for. thanks for all your response. Zhao Yi Marco Huber wrote: Hi, I don't know if this is exactly what you are looking for, but I had to add a special path to my manifest classpath entry once. The solution was the following: plugin artifactIdmaven

How can I add path in classpath entry in Manifest file?

2009-08-31 Thread youhaodeyi
I have some resource files which should be defined in classpath entry in Manifest.mf in a jar. I found that I can use jar plugin to add dependency on classpath but I can't add a customize path on the classpath. How can I do this with maven? thanks. -- View this message in context: http

Re: How can I add path in classpath entry in Manifest file?

2009-08-31 Thread Alexander Vaysberg
files which should be defined in classpath entry in Manifest.mf in a jar. I found that I can use jar plugin to add dependency on classpath but I can't add a customize path on the classpath. How can I do this with maven? thanks

How to explicitly choose JUnit even if TestNG is in the classpath? (Surefire)

2009-08-31 Thread Alex Ruiz
Greetings, I have a project that has both TestNG and JUnit in the classpath. The project itself is a TestNG extension, but its tests are written in JUnit (mainly to keep consistency with other modules within the parent project.) When I run my tests using Surefire, it says that the project has 0

Re: How can I add path in classpath entry in Manifest file?

2009-08-31 Thread youhaodeyi
Hi, I have read this but this is not what I want. I want to add path on classpath. This only tells me how to add dependent on classpath. Alexander Vaysberg wrote: Hi, you can it's using this tutorial: - http://maven.apache.org/shared/maven-archiver/examples/classpath.html. The jar

Maven Ant Plugin and dependency classpath

2009-08-06 Thread Thomas Scheffler
Hi, I am developing my first maven plugin with an ant build file. Currently - and the docs do not say a word here - I am lost in finding out how to access the dependency classpath from within maven. How do I submit this info via the *.mojos.xml? regards Thomas

Referencing a peer module's classpath

2009-07-30 Thread Ryan Connolly
out just great, however in order for the JavaDocs to run I must duplicate the dependencies section of one of these peer modules. I was wondering if there was a property available that would enable me to reference the separate classpath scopes of this peer module much in the way the maven-antrun

RE: Putting instrumented classes on the classpath

2009-07-22 Thread lvdpal
Because I'm still looking for a solution to this prolem. It's such a shame to use Sonar when having tests and not getting any code coverage. lvdpal wrote: Nobody else has any ideas? -- View this message in context: http://www.nabble.com/Putting-instrumented-classes-on-the-classpath

RE: Putting instrumented classes on the classpath

2009-07-22 Thread Mohan KR
You have to give more information? I have looked at the thread..but if you were using the cobertura-maven-plugin and just have the intstrument goal, it *WILL* put the instrumented classes in the classpath. (i.e. classes/* will be redirected to generated-classes/*). Since plugin ordering varies

RE: Putting instrumented classes on the classpath

2009-07-22 Thread lvdpal
Thanks, this at least gives me a hint where to start looking. mkr wrote: You have to give more information? I have looked at the thread..but if you were using the cobertura-maven-plugin and just have the intstrument goal, it *WILL* put the instrumented classes in the classpath. (i.e

RE: Putting instrumented classes on the classpath

2009-07-22 Thread Mohan KR
np..I will have to reword that, it will redirect the project.build.outputDirectory from target/classes to target/generated-classes/cobertura. If the plugins are doing the correct thing when constructing the classpath, they should use the property project.build.outputDirectory. Thanks, mohan kr

Webapp classpath issues in multi-module project

2009-07-14 Thread Ian Petzer
Hi, We have a Maven project that is laid out as ./domainModule ./serviceModule ./baseModule (with parent pom) ./webAppModule ./module4 We can successfully generate eclipse projects for the module using mvn eclipse:eclipse from the baseModule which sets up the classpath correctly in eclipse

RE: Putting instrumented classes on the classpath

2009-07-10 Thread lvdpal
Nobody else has any ideas? -- View this message in context: http://www.nabble.com/Putting-instrumented-classes-on-the-classpath-tp24183679p24425518.html Sent from the Maven - Users mailing list archive at Nabble.com

Dependencies missing from classpath

2009-07-09 Thread dave.pickard
to the classpath, hence the compile of the Web Service fails. If you change the name of the client jar file in the repository the compile fails saying that it can't find a dependency. If you put the name back it then just 'ignores' it. Running with a -X on maven I can see the dependency listed

Maven ignores the system classpath

2009-07-08 Thread Chirag Trivedi
Hi, I need to access few files and I have added them in the CLASSPATH env variable, but Maven ignores it and gives me compilation error. Regards, Chirag Trivedi Looking for local information? Find it on Yahoo! Local http://in.local.yahoo.com

Putting instrumented classes on the classpath

2009-06-24 Thread lvdpal
Hello, I've tried to put the classes that were instrumented by Cobertura on the classpath so EasyB could find them. Just so Cobertura could see that my classes are in fact tested. I had found a solution based on the Maven Antrun plugin, but due to a bug in this plugin (which I reported in Jira

RE: Putting instrumented classes on the classpath

2009-06-24 Thread Mohan KR
Maybe you can put have *two* executions of the antrun plugin? But, going to the original issue, it appears that the instrumented cobertura classes *should* be in the classpath of the maven reactor? Because I look at the source for the instrumented goal..this is what it shows // Set

RE: Putting instrumented classes on the classpath

2009-06-24 Thread lvdpal
Hi Mohan, I'm not quite sure what you're saying, but yeah, as far as I know the instrumented files have to be on the classpath for EasyB to pick them up. -- View this message in context: http://www.nabble.com/Putting-instrumented-classes-on-the-classpath-tp24183679p24184602.html Sent from

Retrieving classpath during unit test

2009-06-22 Thread gags_78
Hey folks, I've been trying in vain to retrieve the classpath for the unit test I'm currently running. As part of the unit test there's a small element of generation and compilation for which I need the classpath. I'm using surefire. I did a thorough google for it and came across

Re: Exclude dependency from scope runtime test classpath

2009-06-04 Thread ljnelson
/Exclude-dependency-from-scope-runtime-test-classpath-tp23424431p23875222.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e

Re: Exclude dependency from scope runtime test classpath

2009-06-04 Thread Baptiste MATHUS
this that I know of inside my Maven project. Thoughts? Thanks, Laird -- View this message in context: http://www.nabble.com/Exclude-dependency-from-scope-runtime-test-classpath-tp23424431p23875222.html Sent from the Maven - Users mailing list archive at Nabble.com

Re: Exclude dependency from scope runtime test classpath

2009-06-04 Thread Baptiste MATHUS
://www.nabble.com/Exclude-dependency-from-scope-runtime-test-classpath-tp23424431p23875222.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org

Re: Exclude dependency from scope runtime test classpath

2009-06-04 Thread ljnelson
? Thanks, Laird -- View this message in context: http://www.nabble.com/Exclude-dependency-from-scope-runtime-test-classpath-tp23424431p23878578.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe

<    1   2   3   4   5   6   7   8   9   10   >