Re: adding directories to maven exec runtime classpath?

2013-08-29 Thread Wayne Fay
I had a question regarding adding 2 well known directories to the runtime classpath of the Exec Maven Plugin for the exec:exec action. I had found some tips that ultimately don't work in this case wherein a directory being added to the class path is a requirement. I might suggest using

Re: Does each maven goal have it's own classpath?

2013-08-14 Thread TenLeftFingers
-classpath-tp5767577p5767629.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-mail: users-h...@maven.apache.org

Does each maven goal have it's own classpath?

2013-08-13 Thread TenLeftFingers
of +test. When a dependency has a scope of test, it will not be available to the compile goal of the Compiler plugin. It will be added to the classpath for only the compiler:testCompile and surefire:test goals. This implies that each plugin goal can have it's own classpath. Is this correct

Re: Does each maven goal have it's own classpath?

2013-08-13 Thread Stephen Connolly
Ok, here is the mindf?ck... The strict answer to your exact question as worded (not the one you are trying to ask) is: yes, each mojo (a.k.a. plugin goal) invoked gets it's own classpath consisting of the core Maven classpath plus the dependencies of the plugin that declares the mojo

skinny WAR classpath includes timestamped entries for SNAPSHOT dependenencies

2013-08-02 Thread Jeffrey E Care
I have a large, multi-module project that includes WAR and EAR projects. We are using skinny WARs inside the EAR. I'm seeing a problem where the WAR manifest has timestamped classpath entries (e,g, research-jpa-1.0.0-20130802.22-177.jar) but the EAR contains SNAPSHOT files (e.g. research

Re: skinny WAR classpath includes timestamped entries for SNAPSHOT dependenencies

2013-08-02 Thread Wayne Fay
Is there a work-around for this problem? Is it a known issue or should I You mean other than this work-around that you already found?? example) are retrieved from the remote repo. The problem goes away if I mvn install the research-jpa project before building the WAR project. Wayne

Re: skinny WAR classpath includes timestamped entries for SNAPSHOT dependenencies

2013-08-02 Thread Jeffrey E Care
Wayne Fay wayne...@gmail.com wrote on 08/02/2013 12:24:14 PM: Is there a work-around for this problem? Is it a known issue or should I You mean other than this work-around that you already found?? example) are retrieved from the remote repo. The problem goes awayif I mvn install the

Re: skinny WAR classpath includes timestamped entries for SNAPSHOT dependenencies

2013-08-02 Thread Wayne Fay
Yes, sorry I wasn't clear. I don't want developers who never have to touch research-jpa to be forced to build that project everyday. I was thinking more along the lines of some sort of POM hack... Maven is diametrically opposed to hacks. If there is a good solution to your problem, it should

Re: skinny WAR classpath includes timestamped entries for SNAPSHOT dependenencies

2013-08-02 Thread Patrick Sansoucy
We use the skinny wars / ear and never had this issue. Maybe a dependency issue with your poms? It may sound stupid, but did you take a look at the dependency tree to make sure the resolution was OK ? On Aug 2, 2013 1:18 PM, Wayne Fay wayne...@gmail.com wrote: Yes, sorry I wasn't clear. I don't

Re: Module b needs jar from from Module a but needs to keep it _out_ of the classpath

2013-05-19 Thread Stephen Connolly
is a plugin for Apache Solr. 'Module B' is an integration test. It needs to copy that Module A jar file into a Solr installation tree and start Solr. It really, really, needs to not have that Module A jar file in its classpath. Is there a right way to do

How to add project classpath a to my Maven plugin

2013-04-28 Thread Mohammad Shamsi
Hi All, I'm developing a maven plugin and I need to access to the classpath of project that is using my plugin, including main classes, test classes and dependencies. To me it seems a very common scenario, but I couldn't find any solution for it in maven docs and other forums. Thank you

Re: How to add project classpath a to my Maven plugin

2013-04-28 Thread Thomas Broyer
to the classpath of project that is using my plugin, including main classes, test classes and dependencies. To me it seems a very common scenario, but I couldn't find any solution for it in maven docs and other forums. Thank you. Mohammad Shamsi -- Thomas Broyer /tɔ.ma.bʁwa.je

Re: How to add project classpath a to my Maven plugin

2013-04-28 Thread Mohammad Shamsi
, Mohammad Shamsi m.h.sh...@gmail.com wrote: Hi All, I'm developing a maven plugin and I need to access to the classpath of project that is using my plugin, including main classes, test classes and dependencies. To me it seems a very common scenario, but I couldn't find any solution

Re: How to add project classpath a to my Maven plugin

2013-04-28 Thread Mohammad Shamsi
Sorry, my question was clear enough. I need to get the project classpath and add it to current classloader. because the plugin needs to search and find some specific classes in the project. On Sun, Apr 28, 2013 at 5:11 PM, Mohammad Shamsi m.h.sh...@gmail.comwrote: How can then add them

Re: How to add project classpath a to my Maven plugin

2013-04-28 Thread Thomas Broyer
On Sun, Apr 28, 2013 at 11:40 AM, Mohammad Shamsi m.h.sh...@gmail.com wrote: Sorry, my question was clear enough. I need to get the project classpath and add it to current classloader. because the plugin needs to search and find some specific classes in the project. The way I do it (inspired

Re: How to add project classpath a to my Maven plugin

2013-04-28 Thread Mohammad Shamsi
Thanks Thomas, This is exactly what i needed. On Sun, Apr 28, 2013 at 5:56 PM, Thomas Broyer t.bro...@gmail.com wrote: On Sun, Apr 28, 2013 at 11:40 AM, Mohammad Shamsi m.h.sh...@gmail.com wrote: Sorry, my question was clear enough. I need to get the project classpath and add

Re: maven-compiler-plugin, fork, and Windows classpath length

2013-04-09 Thread Olivier Lamy
uhm maybe with setting env var CLASSPATH (I think surefire do that) BTW add a jira entry (note: I don't have windauze to test the change :-) ) 2013/3/23 Laird Nelson ljnel...@gmail.com: I am using maven-compiler-plugin version 3.0. We use fork=true. We are seeing (I am pretty certain

Re: maven-compiler-plugin, fork, and Windows classpath length

2013-04-09 Thread Kristian Rosenvold
I think we solved all of that with the CLASSPATH env var in surefire; I believe it pushes the limit to 64K. 64K must be enough for everyone :) Kristian 2013/4/9 Olivier Lamy ol...@apache.org: uhm maybe with setting env var CLASSPATH (I think surefire do that) BTW add a jira entry (note: I

Re: maven-compiler-plugin, fork, and Windows classpath length

2013-04-09 Thread Olivier Lamy
btw that will fix the issue for forked compilation only (not for in process compilations) 2013/4/9 Kristian Rosenvold kristian.rosenv...@gmail.com: I think we solved all of that with the CLASSPATH env var in surefire; I believe it pushes the limit to 64K. 64K must be enough for everyone

RE: maven-compiler-plugin, fork, and Windows classpath length

2013-04-09 Thread Martin Gainty
Laird and Team yep..known issue ...push any environment variable such as CLASSPATH over 64k or any build-string over 2k do a cmd.exe /C java.exe %MASSIVE_CLASSPATH% MyFile.java and watch the fireworks My workaround surefire limited to 2.4.2 ..anything above that and surefire will attempt

How to customize build-classpath goal?

2013-04-08 Thread David Hoffer
I need to build a property file that has all the classpath entries and build-classpath does that, but I also need to prefix the classpath with some custom entries, how can I do that? If build-classpath can't support this is there a way in maven were I could apply the custom changes after the file

maven-compiler-plugin, fork, and Windows classpath length

2013-03-22 Thread Laird Nelson
I am using maven-compiler-plugin version 3.0. We use fork=true. We are seeing (I am pretty certain; haven't sorted through the boatloads of -X output yet) that the classpath being supplied to the maven-compiler-plugin is too long for Windows. (We're getting some weird errors out

How to change the Manifest's ClassPath using Maven

2013-01-21 Thread JuanTortosa
Hello, Is posible to change the Manifest's ClassPath after use the Maven-Shade-Plugin? I need to include only the dependecies which have been excluded using the Maven-Shade-Plugin. If you know some solution for modify the Manifest's ClassPath using maven explain me it, please. Thank you very

Re: Maven (3.0.4) dependency plugin difference in ordering between build-classpath and tree

2013-01-17 Thread Anders Lindgren
(http://stackoverflow.com/questions/14336801/maven-dependency-plugin-difference-in-ordering-between-build-classpath-and-tree) and it was recommended that I ask it again on the user mailing list. Essentially I'm seeing a difference in the ordering of the output of tree and build-classpath

Re: Maven (3.0.4) dependency plugin difference in ordering between build-classpath and tree

2013-01-17 Thread Anders Hammar
-difference-in-ordering-between-build-classpath-and-tree) and it was recommended that I ask it again on the user mailing list. Essentially I'm seeing a difference in the ordering of the output of tree and build-classpath. Output from tree http://pastebin.com/J2Q6iTK6 Output from build-classpath

Re: Maven (3.0.4) dependency plugin difference in ordering between build-classpath and tree

2013-01-17 Thread Anders Lindgren
. /Anders On Wed, 2013-01-16 at 10:03 +0100, Pram wrote: Hi, I posted a question on Stackoverflow yesterday ( http://stackoverflow.com/questions/14336801/maven-dependency-plugin-difference-in-ordering-between-build-classpath-and-tree) and it was recommended that I ask it again

Modify ClassPath After Packaging With Maven-Shade-Plugin

2013-01-17 Thread JuanTortosa
Hello everyone. I'll explain you my problem: Firstly I compile the project with all its dependencies. Secondly I need to make a fatjar, thus I execute the Maven-Shade-Plugin, which includes all the necessary artifacts and excludes the rest. The problem is that the ClassPath Manifest's fatjar

Maven (3.0.4) dependency plugin difference in ordering between build-classpath and tree

2013-01-16 Thread Pram
Hi, I posted a question on Stackoverflow yesterday (http://stackoverflow.com/questions/14336801/maven-dependency-plugin-difference-in-ordering-between-build-classpath-and-tree) and it was recommended that I ask it again on the user mailing list. Essentially I'm seeing a difference

Re: snapshot versions and classpath stored in manifest

2013-01-10 Thread Anthony Dahanne
and dependencyB) To make my cli tool work in every environment, I rely on the manifest classpath, generated with : plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifest addClasspathtrue/addClasspath

Re: snapshot versions and classpath stored in manifest

2013-01-09 Thread Brian Fox
dependencyA and dependencyB) To make my cli tool work in every environment, I rely on the manifest classpath, generated with : plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifest addClasspathtrue

Re: snapshot versions and classpath stored in manifest

2013-01-09 Thread Anthony Dahanne
building a cli tool (let's call it cli) , which has dependencies on some other libraries (let's call them dependencyA and dependencyB) To make my cli tool work in every environment, I rely on the manifest classpath, generated with : plugin groupIdorg.apache.maven.plugins/groupId

snapshot versions and classpath stored in manifest

2013-01-07 Thread Anthony Dahanne
Hello all, I am using Maven 3 with Nexus 2. I am building a cli tool (let's call it cli) , which has dependencies on some other libraries (let's call them dependencyA and dependencyB) To make my cli tool work in every environment, I rely on the manifest classpath, generated with : plugin

RE: dependency:list and dependency:build-classpath produce a different version for SNAPSHOTS

2012-10-22 Thread Davide Silvestre
the version format? Thanks, Davide Hi, I've done an equivalent fix for copy-dependencies last week, so I'll do the same for build-classpath. Please check https://jira.codehaus.org/browse/MDEP-384 -Robert Op Fri, 19 Oct 2012 16:20:58 +0200 schreef Davide Silvestre d...@cdrator.com: Hi, I am

dependency:list and dependency:build-classpath produce a different version for SNAPSHOTS

2012-10-19 Thread Davide Silvestre
Hi, I am using version 2.5.1 of the maven-dependency-plugin. My project is buiding a zip file containing a set of dependency jars and i am also generating 2 files containing the classpath (generated using dependency:build-classpath) and the list of jars (generated using dependency:list

Re: dependency:list and dependency:build-classpath produce a different version for SNAPSHOTS

2012-10-19 Thread Robert Scholte
Hi, I've done an equivalent fix for copy-dependencies last week, so I'll do the same for build-classpath. Please check https://jira.codehaus.org/browse/MDEP-384 -Robert Op Fri, 19 Oct 2012 16:20:58 +0200 schreef Davide Silvestre d...@cdrator.com: Hi, I am using version 2.5.1

Re: Dependencies that should not be on the classpath

2012-10-15 Thread Chris Conroy
On Fri, Oct 12, 2012 at 11:22 PM, Barrie Treloar baerr...@gmail.com wrote: If you are just serving it from jetty you could use http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying-artifacts.html to copy the aggregate jar into the web directory? Trying to wedge

Re: Dependencies that should not be on the classpath

2012-10-15 Thread Chris Conroy
On Mon, Oct 15, 2012 at 12:19 PM, Chris Conroy ccon...@gmail.com wrote: On Fri, Oct 12, 2012 at 11:22 PM, Barrie Treloar baerr...@gmail.comwrote: If you are just serving it from jetty you could use http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying-artifacts.html to

Re: Dependencies that should not be on the classpath

2012-10-13 Thread Benson Margulies
There's a real maven design problem here, if you ask me. Maven overloads the 'type' of an artifact. A 'war' dependency is legitimate and a different thing from a 'jar' dependency. Sadly, though, all jar files are equally treated as the output of the standard java lifecycle, suitable for classpath

Re: Dependencies that should not be on the classpath

2012-10-12 Thread Benson Margulies
On Fri, Oct 12, 2012 at 3:59 PM, Chris Conroy ccon...@gmail.com wrote: Is there any way to specify that a dependency should not be on the build classpath? I am using the maven-javadoc-plugin to generate an aggregate javadoc jar for my top level project. In a sub-project, I have a dependency

Re: Dependencies that should not be on the classpath

2012-10-12 Thread Barrie Treloar
On Sat, Oct 13, 2012 at 6:29 AM, Chris Conroy ccon...@gmail.com wrote: Is there any way to specify that a dependency should not be on the build classpath? I am using the maven-javadoc-plugin to generate an aggregate javadoc jar for my top level project. In a sub-project, I have a dependency

RE: How to put a dependency in the classpath BEFORE jre.jar?

2012-09-26 Thread Markus KARG
in! :-) Regards Markus -Original Message- From: Mark Struberg [mailto:strub...@yahoo.de] Sent: Dienstag, 25. September 2012 21:48 To: Maven Users List Subject: Re: How to put a dependency in the classpath BEFORE jre.jar? I did not read through the whole thread, so maybe I missed

RE: How to put a dependency in the classpath BEFORE jre.jar?

2012-09-26 Thread Markus KARG
To: Maven Users List Subject: Re: How to put a dependency in the classpath BEFORE jre.jar? Markus, If you want to join in on the fun of the development community, please join us on the dev list. As you've heard on this thread, your particular concern smacks into a messy conundrum about our

Re: How to put a dependency in the classpath BEFORE jre.jar?

2012-09-26 Thread Wayne Fay
If there is a real interest in my participation I would be glad to join. But ... a consensus. So do you actually see any chances of a solution for the described problem? See, if not, it makes no sense that I add another thread on the dev list. I think there is genuine interest in pursuing

RE: How to put a dependency in the classpath BEFORE jre.jar?

2012-09-25 Thread Markus KARG
in the user classpath. I need to have it in the bootstrap classpath. This is why this thread is called How to put a dependency in the classpath BEFORE jre.jar? and the original problem that started it. It still sounds like an installation issue and Package is what an installer builder creates. If you

Re: How to put a dependency in the classpath BEFORE jre.jar?

2012-09-25 Thread Benson Margulies
Markus, If you want to join in on the fun of the development community, please join us on the dev list. As you've heard on this thread, your particular concern smacks into a messy conundrum about our desire to avoid breaking other people's tools that read poms -- no matter how poorly coded.

Re: How to put a dependency in the classpath BEFORE jre.jar?

2012-09-25 Thread Mark Struberg
a javax.* dependency in your plugin classpath. The only thing which is not allowed is to overwrite native SE stuff. LieGrue, strub - Original Message - From: Benson Margulies bimargul...@gmail.com To: Maven Users List users@maven.apache.org Cc: Sent: Tuesday, September 25, 2012 8:08 PM

Re: How to put a dependency in the classpath BEFORE jre.jar?

2012-09-24 Thread Stephen Connolly
, Maven could resolve the question Is this dependency to be put in the root classpath, or in the user classpath? automatically. Maven simply needs to ask the platform (using the new interface) what the right classpath is, and the platform would answer with either 'User' or 'System' (interface

Re: How to put a dependency in the classpath BEFORE jre.jar?

2012-09-24 Thread Benson Margulies
not only for the JREs but for all kinds of Platforms like .NET and Flash etc.). Using this interface, Maven could resolve the question Is this dependency to be put in the root classpath, or in the user classpath? automatically. Maven simply needs to ask the platform (using the new interface) what

Re: How to put a dependency in the classpath BEFORE jre.jar?

2012-09-24 Thread Stephen Connolly
(including some general Platform interface common not only for the JREs but for all kinds of Platforms like .NET and Flash etc.). Using this interface, Maven could resolve the question Is this dependency to be put in the root classpath, or in the user classpath? automatically. Maven simply

Re: How to put a dependency in the classpath BEFORE jre.jar?

2012-09-24 Thread Ron Wheeler
) into one single artifact which forms the JRE 6 Platform (including some general Platform interface common not only for the JREs but for all kinds of Platforms like .NET and Flash etc.). Using this interface, Maven could resolve the question Is this dependency to be put in the root classpath

RE: How to put a dependency in the classpath BEFORE jre.jar?

2012-09-24 Thread Markus KARG
general Platform interface common not only for the JREs but for all kinds of Platforms like .NET and Flash etc.). Using this interface, Maven could resolve the question Is this dependency to be put in the root classpath, or in the user classpath? automatically. Maven simply needs to ask

Re: How to put a dependency in the classpath BEFORE jre.jar?

2012-09-24 Thread Ron Wheeler
etc.). Using this interface, Maven could resolve the question Is this dependency to be put in the root classpath, or in the user classpath? automatically. Maven simply needs to ask the platform (using the new interface) what the right classpath is, and the platform would answer with either 'User

RE: How to put a dependency in the classpath BEFORE jre.jar?

2012-09-22 Thread Markus KARG
of Platforms like .NET and Flash etc.). Using this interface, Maven could resolve the question Is this dependency to be put in the root classpath, or in the user classpath? automatically. Maven simply needs to ask the platform (using the new interface) what the right classpath is, and the platform

RE: How to put a dependency in the classpath BEFORE jre.jar?

2012-09-22 Thread Martin Gainty
Subject: RE: How to put a dependency in the classpath BEFORE jre.jar? Date: Sat, 22 Sep 2012 11:19:44 +0200 Stephen, if we would never address problems that seem hard to fix at first sight, then the Maven core would never evolve and other system would take over some day. So a discussion like

RE: How to put a dependency in the classpath BEFORE jre.jar?

2012-09-21 Thread Markus KARG
as endorsedtrue/endorsed. -Original Message- From: Claves Do Amaral [mailto:claves.doama...@igmarkets.com] Sent: Donnerstag, 20. September 2012 10:30 To: Maven Users List Subject: RE: How to put a dependency in the classpath BEFORE jre.jar? If I understand the problem well

Re: How to put a dependency in the classpath BEFORE jre.jar?

2012-09-21 Thread Stephen Connolly
a dependency in the classpath BEFORE jre.jar? If I understand the problem well, this is equivalent to provide endorsed libraries at runtime. I have found this resource, that looks a bit dated, but it may work. Not sure if Maven 3 offers a better solution http://www.mindbug.org/2009/02/adding

How to put a dependency in the classpath BEFORE jre.jar?

2012-09-20 Thread Markus Karg
I have a dependency on javaee.jar, which provides newer versions for classes found in JRE's jre.jar (particularly the @Resource annotation). But javaee.jar is always appended to the classpath, while to be able to load the newer version, I need to PREFIX it before jre.jar instead. How can I

Re: How to put a dependency in the classpath BEFORE jre.jar?

2012-09-20 Thread Anders Hammar
annotation). But javaee.jar is always appended to the classpath, while to be able to load the newer version, I need to PREFIX it before jre.jar instead. How can I configure this in the POM? - To unsubscribe, e-mail: users

RE: How to put a dependency in the classpath BEFORE jre.jar?

2012-09-20 Thread Markus KARG
So there is no pure Maven support for this? -Original Message- From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf Of Anders Hammar Sent: Donnerstag, 20. September 2012 11:46 To: Maven Users List Subject: Re: How to put a dependency in the classpath BEFORE

RE: How to put a dependency in the classpath BEFORE jre.jar?

2012-09-20 Thread Claves Do Amaral
-Original Message- From: Markus Karg [mailto:k...@quipsy.de] Sent: 20 September 2012 09:22 To: users@maven.apache.org Subject: How to put a dependency in the classpath BEFORE jre.jar? I have a dependency on javaee.jar, which provides newer versions for classes found in JRE's jre.jar

Re: How to add a directory first on the classpath using launch4j and maven?

2012-07-18 Thread Wayne Fay
groupIdcom.akathist.maven.plugins.launch4j/groupId artifactIdlaunch4j-maven-plugin/artifactId ... What I was hoping that would happen is that the 'config' directory would be first on the classpath, but the jar that contains my main class is always put first

Re: How to add a directory first on the classpath using launch4j and maven?

2012-07-18 Thread Wim Deblauwe
groupIdcom.akathist.maven.plugins.launch4j/groupId artifactIdlaunch4j-maven-plugin/artifactId ... What I was hoping that would happen is that the 'config' directory would be first on the classpath, but the jar that contains my main class is always put first on the classpath. I want to put the config dir first

Re: Custom Plugin adding project dependencies to Plugin classpath

2012-05-04 Thread Wayne Fay
How do I enhance my plugin classpath with the project dependencies? I found some old posts none of them seem to work. Can you not specify them yourself manually? If the plugin needs them, it needs to declare that somewhere so Maven can provide them at the proper time. Wayne

dependency:build-classpath and new line as the pathSeparator ( -Dmdep.pathSeparator )

2012-04-26 Thread Jason Pyeron
I have driven myself bonkers on this one. I seem to be able to set the path separator as any value except the new line character. Is there a limitation I should be aware of? I am trying via the bash prompt. My tests with shell scripts seem to show I have actually passed in the new line, but maven

Re: dependency:build-classpath and new line as the pathSeparator ( -Dmdep.pathSeparator )

2012-04-26 Thread Wayne Fay
I have driven myself bonkers on this one. I seem to be able to set the path separator as any value except the new line character. Is there a limitation I have no idea if there is a limitation or not, but it seems to me that using new line as a path separator is a bad character to use. Can you

Can Maven tell Eclipse/m2eclipse to include generated code in classpath?

2012-03-12 Thread Ward, Nathan
I'm using the cxf-codegen-plugin to generate code from wsdl. The generated code goes into /target/generated/cxf. Is there a way to specify in the pom file that this code should be included in the Eclipse classpath? I need to reference this code from my code, but I don't want to put

Re: Can Maven tell Eclipse/m2eclipse to include generated code in classpath?

2012-03-12 Thread Barrie Treloar
On Tue, Mar 13, 2012 at 6:49 AM, Ward, Nathan nw...@merlin-intl.com wrote: I'm using the cxf-codegen-plugin to generate code from wsdl. The generated code goes into /target/generated/cxf. Is there a way to specify in the pom file that this code should be included in the Eclipse classpath? I

Re: maven-shade-plugin classpath

2012-03-08 Thread Wayne Fay
I would also like to add the classpath and set a classpathprefix like you can do using the normal maven jar.    addClasspathtrue/addClasspath    classpathPrefixlib//classpathPrefix Is there a way to do this with the shade plugin? Generally, the thinking with Shade is that you are building

Re: maven-shade-plugin classpath

2012-03-08 Thread Ryan Wexler
On Thu, Mar 8, 2012 at 8:36 AM, Wayne Fay wayne...@gmail.com wrote: I would also like to add the classpath and set a classpathprefix like you can do using the normal maven jar. addClasspathtrue/addClasspath classpathPrefixlib//classpathPrefix Is there a way to do

Re: maven-shade-plugin classpath

2012-03-08 Thread Ron Wheeler
Sound interesting but what are you trying to make in the end? What is the 30,000 ft view of the problem? Ron On 08/03/2012 12:03 PM, Ryan Wexler wrote: On Thu, Mar 8, 2012 at 8:36 AM, Wayne Faywayne...@gmail.com wrote: I would also like to add the classpath and set a classpathprefix like

Re: maven-shade-plugin classpath

2012-03-08 Thread Ryan Wexler
to reference all the dependencies in the classpath with the prefix 'lib'. On Mar 8, 2012 9:21 AM, Ron Wheeler rwhee...@artifact-software.com wrote: Sound interesting but what are you trying to make in the end? What is the 30,000 ft view of the problem? Ron On 08/03/2012 12:03 PM, Ryan Wexler wrote

Re: maven-shade-plugin classpath

2012-03-08 Thread Ron Wheeler
the same code and the manifest needs to reference all the dependencies in the classpath with the prefix 'lib'. On Mar 8, 2012 9:21 AM, Ron Wheeler rwhee...@artifact-software.com mailto:rwhee...@artifact-software.com wrote: Sound interesting but what are you trying to make in the end? What

Re: maven-shade-plugin classpath

2012-03-08 Thread Ryan Wexler
no classpath or main class referenced in the manifest and trying to convert it into an executable code that also references its dependencies in the manifest's classpath. There are several variations of this result so that is why the original jar and its manifest is so generic . What I can see from

Re: maven-shade-plugin classpath

2012-03-08 Thread Ron Wheeler
for maven executable jar gives lots of listings including this gem. http://maven.apache.org/plugins/maven-shade-plugin/examples/executable-jar.html The shade plugin adds the main class to the manifest perfectly, but I don't see how I can add the classpath reference? -- Ron Wheeler President

maven-shade-plugin classpath

2012-03-07 Thread Ryan Wexler
I am using the ManifestResourceTransformer of the maven shade plugin to create an executable jar from an existing jar. I would also like to add the classpath and set a classpathprefix like you can do using the normal maven jar. addClasspathtrue/addClasspath classpathPrefixlib

Re: AppAssembler and very long classpath

2012-02-29 Thread Thorsten Heit
*bump* Anyone? Thorsten Heit thorsten.h...@vkb.de schrieb am 13.02.2012 17:30:44: Von: Thorsten Heit thorsten.h...@vkb.de An: Maven Users List users@maven.apache.org Datum: 13.02.2012 17:31 Betreff: AppAssembler and very long classpath Hi, I'm using the appassembler plugin to generate

Re: AppAssembler and very long classpath

2012-02-29 Thread Wayne Fay
The mojo's FAQ page says that to solve this problem, one has to use booter-windows and/or booter-unix platforms. But how exactly do I have to do this? Inserting these values as platform names results in an error: Non-valid default platform declared, supported types are: [windows, unix] -

AppAssembler and very long classpath

2012-02-13 Thread Thorsten Heit
Hi, I'm using the appassembler plugin to generate executable scripts for Windows and Unix machines. The resulting structure is basically the following: myapp +- bin +- lib +- log My pom.xml contains: plugin groupIdorg.codehaus.mojo/groupId artifactIdappassembler-maven-plugin/artifactId

Re: Re : Re : A classpath issue ?

2012-02-05 Thread Stephane-3
this message in context: http://maven.40175.n5.nabble.com/A-classpath-issue-tp3300543p5459421.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org

Re: Re : Re : A classpath issue ?

2012-02-05 Thread Stephane-3
.. -- View this message in context: http://maven.40175.n5.nabble.com/A-classpath-issue-tp3300543p5459429.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org

Maven 3.0.3 generated different runtime classpath with the same POM

2012-01-31 Thread Julie Chi
I'm upgrading Maven from 2.2.1 to 3.0.3, it BUILD SUCCESS. However the runtime classpath(xxx.war \WEB-INF\lib) are generated differently. Ex. We defined version 3.2.1.ga for hibernate-annotations, Maven2.2.1 generates version as it's defined 3.2.1.ga.jar. However Maven 3.0.3 generated

Re: Maven 3.0.3 generated different runtime classpath with the same POM

2012-01-31 Thread Sebastian Otaegui
You can try doing 'mvn dependency:tree' to look at the artifact resolution tree with both versions. On Tue, Jan 31, 2012 at 10:57 AM, Julie Chi julie@so.mnscu.edu wrote: I'm upgrading Maven from 2.2.1 to 3.0.3, it BUILD SUCCESS. However the runtime classpath(xxx.war \WEB-INF\lib

Re: Maven 3.0.3 generated different runtime classpath with the same POM

2012-01-31 Thread Jörg Schaible
Sebastian Otaegui wrote: You can try doing 'mvn dependency:tree' to look at the artifact resolution tree with both versions. This does not help, since the plugin uses a dependency resolution algorithm similar to M2. - Jörg

Re: Maven 3.0.3 generated different runtime classpath with the same POM

2012-01-31 Thread Sebastian Otaegui
Can you post your pom? On Feb 1, 2012 1:15 AM, Jörg Schaible joerg.schai...@scalaris.com wrote: Sebastian Otaegui wrote: You can try doing 'mvn dependency:tree' to look at the artifact resolution tree with both versions. This does not help, since the plugin uses a dependency resolution

Into exec:exec goal is possible to customize classpath?

2011-11-29 Thread Winch
dinamically classpath for point 1 [ e.g. .. .. configuration workingDirectory${project.build.directory}/workingDirectory executablejava/executable classpathScopecompile/classpathScope arguments argument-classpath/argument !-- automatically

Classpath and Properties Files

2011-11-23 Thread Ari King
I've configured my application to search for configuration details in properties files located on the classpath. Does anyone know how to configure maven so that when jetty:run is executed it looks for properties files in ${user.home}/${project.artifactId}/? Thanks. -Ari

Re: Get java.lang.NoClassDefFoundError though the class is in the classpath

2011-09-09 Thread Thomas Chang
But using the option -X doesn't tell me to move the dependency/ into the plugin/ section, right? :-/ --- Wayne Fay wayne...@gmail.com schrieb am Do, 8.9.2011: Von: Wayne Fay wayne...@gmail.com Betreff: Re: Get java.lang.NoClassDefFoundError though the class is in the classpath An: Maven

Re: Get java.lang.NoClassDefFoundError though the class is in the classpath

2011-09-09 Thread Stephen Coy
tell me to move the dependency/ into the plugin/ section, right? :-/ --- Wayne Fay wayne...@gmail.com schrieb am Do, 8.9.2011: Von: Wayne Fay wayne...@gmail.com Betreff: Re: Get java.lang.NoClassDefFoundError though the class is in the classpath An: Maven Users List users

Re: Get java.lang.NoClassDefFoundError though the class is in the classpath

2011-09-09 Thread Thomas Chang
is in the classpath An: Maven Users List users@maven.apache.org Datum: Freitag, 9. September, 2011 09:24 Uhr Hi Thomas, I've been following this thread across from the m2e users list. As you appear to be using Java 7, you had a long list of dependencies in your pom that are not needed, as they are provided

Re: Get java.lang.NoClassDefFoundError though the class is in the classpath

2011-09-08 Thread Thomas Chang
        /plugins     /build ... --- Wayne Fay wayne...@gmail.com schrieb am Mi, 7.9.2011: Von: Wayne Fay wayne...@gmail.com Betreff: Re: Get java.lang.NoClassDefFoundError though the class is in the classpath An: Maven Users List users@maven.apache.org Datum: Mittwoch, 7. September, 2011 16:18 Uhr I

Re: Get java.lang.NoClassDefFoundError though the class is in the classpath

2011-09-08 Thread Thomas Chang
Hi, You are right. After I move the dependency into the plugin section, it works. Many thanks! Thomas --- Wayne Fay wayne...@gmail.com schrieb am Mi, 7.9.2011: Von: Wayne Fay wayne...@gmail.com Betreff: Re: Get java.lang.NoClassDefFoundError though the class is in the classpath An: Maven

Re: Get java.lang.NoClassDefFoundError though the class is in the classpath

2011-09-08 Thread Wayne Fay
You are right. After I move the dependency into the plugin section, it works. For future use, the -X is a parameter that turns on debug mode. So instead of mvn compile you run mvn -X compile. The error message you got said basically you didn't tell me what to do with this project so I will quit

Get java.lang.NoClassDefFoundError though the class is in the classpath

2011-09-07 Thread Thomas Chang
... As I run mvn dependency:build-classpath to check the included jars I can see the tools.jar in included. Why I still get the ClassNotFoundException ? Regards Thomas

Re: Get java.lang.NoClassDefFoundError though the class is in the classpath

2011-09-07 Thread Wayne Fay
I know the class com.sun.mirror.apt.AnnotationProcessorFactory is in the tools.jar so I've add the dependency in the pom.xml as follow:             systemPathC:/Program Files/Java/jdk1.7.0/lib/tools.jar/systemPath As I run mvn dependency:build-classpath to check the included jars I can

How to add a folder to the classpath used during maven build

2011-08-31 Thread Benjamin Dreux
Hi I want to add a folder to the classpath used during the maven build (verify pase to be precise) This folder must not be in the project (not inside src or any other child) How could i add something to the classpath used my maven. I've seen solution using the pom.xml, be since the folder

Re: How to add a folder to the classpath used during maven build

2011-08-31 Thread Brian Topping
Dreux wrote: Hi I want to add a folder to the classpath used during the maven build (verify pase to be precise) This folder must not be in the project (not inside src or any other child) How could i add something to the classpath used my maven. I've seen solution using the pom.xml

Re: How to add a folder to the classpath used during maven build

2011-08-31 Thread Benjamin Dreux
might be what you are looking for? If not, there are a lot of other goals in that plugin that have similar functionality, maybe one of them is better suited. On Aug 31, 2011, at 10:34 AM, Benjamin Dreux wrote: Hi I want to add a folder to the classpath used during the maven build (verify

Re: How to add a folder to the classpath used during maven build

2011-08-31 Thread Andy Glick
this not recommended practice is to modify the pom in some way to handle your special case. The build-helper-maven-plugin was written to allow people to solve this class of problem. It would see particularly appropriate when you only want to add the external artifact to the classpath for a single phase. I'm

Re: How to add a folder to the classpath used during maven build

2011-08-31 Thread Benjamin Dreux
environement. But i need to add this file to the classpath for the tests. And for the moment i can't Here is the issue. Since i'm using some profile for each environment, i could add some task to the profiles. Any other idea ? 2011/8/31 Andy Glick andygl...@gmail.com: Hi, I'm sorry to say

Re: How to add a folder to the classpath used during maven build

2011-08-31 Thread Brian Topping
are looking for? If not, there are a lot of other goals in that plugin that have similar functionality, maybe one of them is better suited. On Aug 31, 2011, at 10:34 AM, Benjamin Dreux wrote: Hi I want to add a folder to the classpath used during the maven build (verify pase to be precise

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