Re: Failed to init Classpath for jar file C:\apache-maven-3.9.6\boot\plexus-classworlds.license during compilation

2024-03-01 Thread Tamás Cservenák
clipse [debug:lines,vars,source parameters release > 21] to target\classes > *Failed to init Classpath for jar file > C:\apache-maven-3.9.6\boot\plexus-classworlds.license* > java.util.zip.ZipException: zip END header not found > at java.base/java.util.zip.ZipFile$Source.fi

Failed to init Classpath for jar file C:\apache-maven-3.9.6\boot\plexus-classworlds.license during compilation

2024-03-01 Thread Václav Haisman
of changed source code. [INFO] Compiling with eclipse [debug:lines,vars,source parameters release 21] to target\classes *Failed to init Classpath for jar file C:\apache-maven-3.9.6\boot\plexus-classworlds.license* java.util.zip.ZipException: zip END header not found at java.base/java.util.zip.ZipFile

Re: Re: How to add a library to the classpath

2023-01-06 Thread Siddharth Jain
rote: > > > Hi All, > > > > Thanks for your help. To keep the discussion focused, the ask is how to > add > > additional dependencies/jars to the classpath when running a program > using > > mvn exec:java and from what i understand it is not possible. > > &

Re: Re: How to add a library to the classpath

2023-01-06 Thread Delany
t; Thanks for your help. To keep the discussion focused, the ask is how to add > additional dependencies/jars to the classpath when running a program using > mvn exec:java and from what i understand it is not possible. > > I am using mvn dependency:build-classpath to get the full

Re: Re: How to add a library to the classpath

2023-01-06 Thread Laird Nelson
On Fri, Jan 6, 2023 at 8:57 AM Laird Nelson wrote: > On Fri, Jan 6, 2023 at 8:55 AM Siddharth Jain wrote: > >> Thanks for your help. To keep the discussion focused, the ask is how to >> add >> additional dependencies/jars to the classpath when running a program using &

Re: Re: How to add a library to the classpath

2023-01-06 Thread Laird Nelson
On Fri, Jan 6, 2023 at 8:55 AM Siddharth Jain wrote: > Thanks for your help. To keep the discussion focused, the ask is how to add > additional dependencies/jars to the classpath when running a program using > mvn exec:java and from what i understand it is not possible. >

Re: Re: How to add a library to the classpath

2023-01-06 Thread Siddharth Jain
Hi All, Thanks for your help. To keep the discussion focused, the ask is how to add additional dependencies/jars to the classpath when running a program using mvn exec:java and from what i understand it is not possible. I am using mvn dependency:build-classpath to get the full CP

Re: Re: How to add a library to the classpath

2023-01-06 Thread Eric Bresie
Would using basic batch/shell specifying the dependencies with the Java classpath argument (without maven run) and the main runtime class be the alternative? Kind of a side question…when building with maven does it automate the addition dependencies within the META-INF/MANIFEST.MF (1

Re: How to add a library to the classpath

2023-01-06 Thread Mantas Gridinas
I'm confused. Why would your users write additional entries intk your pom? On Fri, Jan 6, 2023, 10:33 Delany wrote: > Could this help? > > https://maven.apache.org/plugins/maven-dependency-plugin/build-classpath-mojo.html > Delany > > On Fri, 6 Jan 2023 at 05:30, Sid

Re: How to add a library to the classpath

2023-01-06 Thread Delany
Could this help? https://maven.apache.org/plugins/maven-dependency-plugin/build-classpath-mojo.html Delany On Fri, 6 Jan 2023 at 05:30, Siddharth Jain wrote: > thanks. unfortunately this is exactly what i don't want to do. i am looking > for a command line solution. i don't want my

Re: How to add a library to the classpath

2023-01-05 Thread Arnaud bourree
write a > pom.xml to add additional dependencies to the classpath. > > On Thu, Jan 5, 2023 at 5:16 PM Greg Chabala > wrote: > > > Try searching for an example: > > > > > https://github.com/search?l=Maven+POM=additionalClasspathElements=Code > > > >

Re: How to add a library to the classpath

2023-01-05 Thread Siddharth Jain
thanks. unfortunately this is exactly what i don't want to do. i am looking for a command line solution. i don't want my users to have to write a pom.xml to add additional dependencies to the classpath. On Thu, Jan 5, 2023 at 5:16 PM Greg Chabala wrote: > Try searching for an example: > &

Re: How to add a library to the classpath

2023-01-05 Thread Siddharth Jain
in fact i don't think it works at all. tried using it like -Dexec.additionalClasspathElements and doesn't work. i notice the documentation only says: Additional elements to be appended to the classpath. for rest of the options the documentation also says: *User property is*: exec.arguments

Re: How to add a library to the classpath

2023-01-05 Thread Greg Chabala
Laird Nelson wrote: > > > On Thu, Jan 5, 2023 at 3:20 PM Siddharth Jain > wrote: > > > > > I am using mvn exec:java to run a program. […] I want to add some more > > > libraries that I have > > > installed in M2 repository to the classpath at runtime an

Re: How to add a library to the classpath

2023-01-05 Thread Siddharth Jain
raries that I have > > installed in M2 repository to the classpath at runtime and I do NOT want > to > > list them in the project's pom.xml. How can I do this? I tried searching > > online but could not find an answer. > > > > The documentation for the exe

Re: How to add a library to the classpath

2023-01-05 Thread Laird Nelson
On Thu, Jan 5, 2023 at 3:20 PM Siddharth Jain wrote: > I am using mvn exec:java to run a program. […] I want to add some more > libraries that I have > installed in M2 repository to the classpath at runtime and I do NOT want to > list them in the project's pom.xml. How can I do t

How to add a library to the classpath

2023-01-05 Thread Siddharth Jain
Hello, I am using mvn exec:java to run a program. It automatically adds all the dependencies defined in the project's pom.xml to the Java classpath at runtime which is good but I want to add some more libraries that I have installed in M2 repository to the classpath at runtime and I do NOT want

Re: Compile classpath in case of dependency conflict

2022-04-12 Thread Alexander Kriegisch
classpath in case of dependency conflict Hello Tamas,Thank you for the reply.Reordering of dependencies includes guava-30.1-jre.jar into compileclasspath.Dependency tree:org.example:dependency-conflict-example:jar:1.0-SNAPSHOT+- com.google.inject:guice:jar:5.1.0:compile

Re: Compile classpath in case of dependency conflict

2022-04-12 Thread Rimvydas Vaidelis
Hello Tamas, Thank you for the reply. Reordering of dependencies includes guava-30.1-jre.jar into compile classpath. Dependency tree: org.example:dependency-conflict-example:jar:1.0-SNAPSHOT +- com.google.inject:guice:jar:5.1.0:compile | +- javax.inject:javax.inject:jar:1:compile

Re: Compile classpath in case of dependency conflict

2022-04-12 Thread Tamás Cservenák
va:30.1-jre:compile > > During compiling of the module (mvn compile) the compile classpath contains > guava-11.0.2.jar. Why? It seems > that occurrence of version conflict changes the scope of the transitive > dependency com.google.guava:guava:jar:11.0.2 to compile. > Is this an expected

Compile classpath in case of dependency conflict

2022-04-12 Thread Rimvydas Vaidelis
compiling of the module (mvn compile) the compile classpath contains guava-11.0.2.jar. Why? It seems that occurrence of version conflict changes the scope of the transitive dependency com.google.guava:guava:jar:11.0.2 to compile. Is this an expected behavior? Dependency tree: org.example:dependency

Re: Using Apache Maven, what is the simplest way to include /lib/ directory in the classpath in the pom.xml

2020-10-17 Thread Jürgen Weber
you could add the whole tomcat.zip to nexus, unpack it before compile and install-file to local repository. I had a similar problem, I needed to have the jars of an resource adapter rar on the classpath: > I was thinking of adapting maven-warpath-plugin, but in the end I built an > ub

Re: Using Apache Maven, what is the simplest way to include /lib/ directory in the classpath in the pom.xml

2020-10-16 Thread Greg Chabala
I appreciate that you're trying to use Maven to build software, but you've framed your question unfairly. What is the simplest way to specify a directory (and all jars underneath > this directory) to be in the maven classpath when it compiles .java classes > and builds a .jar? > Mav

Re: Using Apache Maven, what is the simplest way to include /lib/ directory in the classpath in the pom.xml

2020-10-16 Thread /dev /local/ca
llo, > > It is really not a good idea to fight maven. If you need something in the > classpath for compile, specify it as dependency in the Pom. Otherwise your > build cannot be repeated and the project is hard to set up. > > All tomcat libraries needed to compile should be in

Re: Using Apache Maven, what is the simplest way to include /lib/ directory in the classpath in the pom.xml

2020-10-16 Thread Bernd Eckenfels
Hello, It is really not a good idea to fight maven. If you need something in the classpath for compile, specify it as dependency in the Pom. Otherwise your build cannot be repeated and the project is hard to set up. All tomcat libraries needed to compile should be in the maven repository

Using Apache Maven, what is the simplest way to include /lib/ directory in the classpath in the pom.xml

2020-10-16 Thread /dev /local/ca
What is the simplest way to specify a directory (and all jars underneath this directory) to be in the maven classpath when it compiles .java classes and builds a .jar? The directory is not in my git repo or any directory under my IDE project files. I have a requirement to create a pom.xml

Re: Access or generate a classpath for dependency not in any scope but attached to plugin.

2020-06-26 Thread LINUS FERNANDES
here I will be there the whole day (Paris timezone) to help > people > wanting to contribute: > see https://paris2020.hack-commit-pu.sh/ > > Regards, > > Hervé > > Le vendredi 26 juin 2020, 03:21:33 CEST LINUS FERNANDES a écrit : > > While the exec maven plugin will sat

Re: Access or generate a classpath for dependency not in any scope but attached to plugin.

2020-06-26 Thread Hervé BOUTEMY
t tomorrow, where I will be there the whole day (Paris timezone) to help people wanting to contribute: see https://paris2020.hack-commit-pu.sh/ Regards, Hervé Le vendredi 26 juin 2020, 03:21:33 CEST LINUS FERNANDES a écrit : > While the exec maven plugin will satisfy the reduced classp

Re: Access or generate a classpath for dependency not in any scope but attached to plugin.

2020-06-25 Thread LINUS FERNANDES
While the exec maven plugin will satisfy the reduced classpath requirements, I'm constricted by the requirement of the Checkstyle CLI that requires a list of source files as a parameter to be passed; it doesn't accept a directory and maven apparently works best with directories. There appears

Re: Access or generate a classpath for dependency not in any scope but attached to plugin.

2020-06-25 Thread LINUS FERNANDES
Thu, 25 Jun 2020, 13:39 Benjamin Marwell, wrote: >> >>> Feature requests can be created here: >>> https://issues.apache.org/jira/projects/MCHECKSTYLE >>> >>> You are welcome to create a pull request. >>> >>> Looking at the ant configura

Re: Access or generate a classpath for dependency not in any scope but attached to plugin.

2020-06-25 Thread LINUS FERNANDES
u, 25 Jun 2020, 13:39 Benjamin Marwell, wrote: > >> Feature requests can be created here: >> https://issues.apache.org/jira/projects/MCHECKSTYLE >> >> You are welcome to create a pull request. >> >> Looking at the ant configuration, you could jus

Re: Access or generate a classpath for dependency not in any scope but attached to plugin.

2020-06-25 Thread LINUS FERNANDES
pull request. > > Looking at the ant configuration, you could just use the plugin > classpath in your java task: > > https://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.html > > > Am Do., 25. Juni 2020 um 09:16 Uhr schrieb LINUS FERNANDES > : > >

Re: Access or generate a classpath for dependency not in any scope but attached to plugin.

2020-06-25 Thread Benjamin Marwell
Feature requests can be created here: https://issues.apache.org/jira/projects/MCHECKSTYLE You are welcome to create a pull request. Looking at the ant configuration, you could just use the plugin classpath in your java task: https://maven.apache.org/plugins/maven-antrun-plugin/examples

Re: Access or generate a classpath for dependency not in any scope but attached to plugin.

2020-06-25 Thread LINUS FERNANDES
As you can see, I'm using the build-classpath goal to generate the classpath to be used by the Java ant task. Unfortunately, filtering by artifactIds on the goal gives me only the main Checkstyle jar and not the path to the supporting jars. Is there any way around specifying the full classpath

Re: Access or generate a classpath for dependency not in any scope but attached to plugin.

2020-06-25 Thread LINUS FERNANDES
5. Juni 2020 um 03:49 Uhr schrieb LINUS FERNANDES > : > > > > My usecase is that I need to execute a feature available in Checkstyle > > that's not provided as a goal in its plugin. > > > > For that, I need access to the dependency classpath (latest ve

Re: Access or generate a classpath for dependency not in any scope but attached to plugin.

2020-06-25 Thread Benjamin Marwell
S : > > My usecase is that I need to execute a feature available in Checkstyle > that's not provided as a goal in its plugin. > > For that, I need access to the dependency classpath (latest version > always). > > Then I can execute the feature using the Ant Run plugin. &g

Re: Access or generate a classpath for dependency not in any scope but attached to plugin.

2020-06-24 Thread LINUS FERNANDES
My usecase is that I need to execute a feature available in Checkstyle that's not provided as a goal in its plugin. For that, I need access to the dependency classpath (latest version always). Then I can execute the feature using the Ant Run plugin. On Thu, 25 Jun 2020, 06:51 LINUS FERNANDES

Access or generate a classpath for dependency not in any scope but attached to plugin.

2020-06-24 Thread LINUS FERNANDES
Is it possible to generate a classpath for a dependency not placed in the dependencyManagement and/or dependencies section but is attached to a plugin used by the project? I know it's possible to generate a path to the local repository and look for the latest version directory and specify

How maven assembly plugin auto-resolves classpath conflicts (example case)

2018-05-22 Thread Michał Siatkowski
Hello. I have found this to be an issue while migrating a project from Maven to SBT. SBT is only here for reference since it reports what I think should be reported. To describe the problem I have created an example project with dependencies that I found to behave differently, depending on the

Re: maven parallel build has intermittent compile error, dependency not added to classpath

2018-05-17 Thread Vivi An
Thanks Dan. Figured out there is a maven-install-plugin:install-files in a child pom. So far builds going well. Regards, ~ Vivi On 5/16/18, 9:26 PM, "Vivi An" wrote: Great info. Thanks a lot Dan! I don’t see we use any plugin with aggregate goal though, we have

Re: maven parallel build has intermittent compile error, dependency not added to classpath

2018-05-16 Thread Vivi An
Great info. Thanks a lot Dan! I don’t see we use any plugin with aggregate goal though, we have around 120 modules. Wondering how did you pinpoint an internal aggregated plugin? Thanks again. Regards, ~ Vivi On 5/16/18, 8:30 PM, "Dan Tran" wrote: this may help

Re: maven parallel build has intermittent compile error, dependency not added to classpath

2018-05-16 Thread Dan Tran
this may help http://maven.40175.n5.nabble.com/Hickup-in-multi-thread-build-td5865974.html#a5866778 -D On Wed, May 16, 2018 at 1:49 PM, Vivi An wrote: > Hi all, > > Hit intermittent compile error after enabling maven parallel build, > complains about symbol not found. Checked

maven parallel build has intermittent compile error, dependency not added to classpath

2018-05-16 Thread Vivi An
Hi all, Hit intermittent compile error after enabling maven parallel build, complains about symbol not found. Checked the log, it’s not caused by racing issue of multithread downloading, though that’s another problem even with Takari extension. Problem is in case of failure, the dependency in

download dependencies and ouput build classpath

2018-03-27 Thread Jon Harper
Hi list, Is there a way to tell maven to download all dependencies and output a classpath for a given artifact (or a list of artifacts) without having to create a project and its pom ? The use case is to prototype or check classes with jshell. I would ideally want something like https

Re: maven-artifact-transfer: How to build the classpath for arbitrary GAVs?

2017-11-22 Thread Andreas Sewe
Hi Robert, > have a look at > https://maven.apache.org/shared/maven-artifact-transfer/comparison.html > that should explain the difference between type/package/file-extension > > If it is still not clear enough, please help imrpove the documentation. One way to improve the documentation is to

Re: maven-artifact-transfer: How to build the classpath for arbitrary GAVs?

2017-11-21 Thread Robert Scholte
I want to built (and resolve) the test-scoped classpath of org.apache.maven.shared:maven-artifact-transfer:0.9.1. All I have is this coordinate. What I do: DefaultDependableCoordinate coord = new DefaultDependableCoordinate(); coord.setGroupId("org.apache.maven.shared"); coord.s

Re: maven-artifact-transfer: How to build the classpath for arbitrary GAVs?

2017-11-21 Thread Andreas Sewe
Hi Robert, thank you for the pointer. > This should be the information you were looking for, Alas, the information doesn't quite solve my problems -- but maybe I'm just being obtuse. Let's say I want to built (and resolve) the test-scoped classpath of org.apache.maven.shared:maven-artif

Re: maven-artifact-transfer: How to build the classpath for arbitrary GAVs?

2017-11-20 Thread Robert Scholte
struct the compile- or test-scoped flat classpath for that GAV. DependencyResolver seems to be the class I am after, but I haven't found out whether to use the Dependency-based or DependableCoordinate-based overload of resolveDependencies (the Model-based overload won't work, as I have just a GAV and no

maven-artifact-transfer: How to build the classpath for arbitrary GAVs?

2017-11-20 Thread Andreas Sewe
Hi, I am currently struggling with the maven-artifact-transfer 0.9.1 API. Here's what I am trying to accomplish: Given an arbitrary GAV and a scope (compile or test), construct the compile- or test-scoped flat classpath for that GAV. DependencyResolver seems to be the class I am after, but I

RE: How to add class file to build & classpath?

2017-04-06 Thread Robert Patrick
xt module in the reactor is processed. Subsequent modules should explicitly declare their dependencies on previously built modules in the normal way and these dependencies come from the local Maven repository when the Classpath is built. What am I missing? Robert C:\test\maven-test\multi-module-test&

Re: How to add class file to build & classpath?

2017-04-06 Thread David Hoffer
gt; having can be solved by simply moving the exec-maven-plugin execution to > the process-resources phase? > > > > -Original Message- > From: David Hoffer [mailto:dhoff...@gmail.com] > Sent: Thursday, April 06, 2017 12:45 PM > To: Maven Users List > Subject: Re:

RE: How to add class file to build & classpath?

2017-04-06 Thread Robert Patrick
To: Maven Users List Subject: Re: How to add class file to build & classpath? Yes that is the location the class file(s) are being created in. And yes I am binding the exec-maven-plugin to the compile phase in my pom (see prior email). Also the class(s) file is being included in the resulting

Re: How to add class file to build & classpath?

2017-04-06 Thread Curtis Rueden
m (see prior > email). Also the class(s) file is being included in the resulting jar. > However all this is not sufficient for Maven to notice the class(s) file > was generated and add to the build and classpath. > > I think part of the reason is that in multi-module maven builds

Re: How to add class file to build & classpath?

2017-04-06 Thread Russell Gold
e needs to know that the class > exists. I've added that module/artifact as a dependency but the build and > the runtime classpath has no idea that class exists. > > How do I add it to the build and runtime classpath? > > -Dave ---

Re: How to add class file to build & classpath?

2017-04-06 Thread David Hoffer
was generated and add to the build and classpath. I think part of the reason is that in multi-module maven builds it does not use the jars for the classpath but rather the pre-jar content (not 100% certain of that). However I don't know why Maven doesn't add/use all files in the ./target/classes

RE: How to add class file to build & classpath?

2017-04-06 Thread Robert Patrick
Can't you generated class files in the expected location (in ${project.build.directory}/classes directory) during the compile phase? I would expect these classes to be included in classpath for later pahses and in the JAR created during the packaging phase of the module build (assuming

Re: How to add class file to build & classpath?

2017-04-06 Thread David Hoffer
gt; > > However the rest of the build and other code needs to know that the class > > exists. I've added that module/artifact as a dependency but the build > and > > the runtime classpath has no idea that class exists. > > > > How do I add it to the build and runtime classpath? > > > > -Dave > > >

Re: How to add class file to build & classpath?

2017-04-06 Thread Curtis Rueden
get/classes folder so it gets included in the modules normal > binary jar. > > However the rest of the build and other code needs to know that the class > exists. I've added that module/artifact as a dependency but the build and > the runtime classpath has no idea that class exis

How to add class file to build & classpath?

2017-04-06 Thread David Hoffer
that the class exists. I've added that module/artifact as a dependency but the build and the runtime classpath has no idea that class exists. How do I add it to the build and runtime classpath? -Dave

Re: Maven Jar Plugin - Custom classpath with different style

2017-02-07 Thread Robert Scholte
<rolf.rosenb...@sdbn-solutions.de> wrote: Hi, i have a question concerning the Maven Jar Plugin. Is it possible to create a classpath entry in the Manifest, which contains version numbers for foreign depencies ans no version number for dependencies of my own modules of a multi module p

Maven Jar Plugin - Custom classpath with different style

2017-02-06 Thread Rolf Rosenbaum, sdbn Solutions GmbH
Hi, i have a question concerning the Maven Jar Plugin. Is it possible to create a classpath entry in the Manifest, which contains version numbers for foreign depencies ans no version number for dependencies of my own modules of a multi module project? E.g.: Class-Path: module1.jar module2.jar

mvn dependency:build-classpath not considering includeScope parameter

2017-02-04 Thread salilsurendran
`mvn dependency:build-classpath -DincludeScope=test` doesn't show test jars that have been added to the pom.xml org.apache.spark spark-streaming_${scala.binary.version} ${project.version} org.apache.spark spark-streaming_

Re: Compiler plugin & JDK 9 & classpath/modulepath question

2016-11-11 Thread Robert Scholte
`requires` formulas) into module-info.java on the one dependency I have there. I managed to make it compile in the end, but I was wondering about the following: => Is there a way to tell Maven, that I want to add this dependency (and all it brings in transitively) to CLASSPATH instead of

Compiler plugin & JDK 9 & classpath/modulepath question

2016-11-09 Thread Matej Novotny
ake it compile in the end, but I was wondering about the following: => Is there a way to tell Maven, that I want to add this dependency (and all it brings in transitively) to CLASSPATH instead of module path? - that would effectively mean there would be no automatic module (so I wouldn'

Re: maven dependency plugin - build-classpath goal

2016-11-09 Thread Dagan Sandler
Hi, Can you show your pom and what's the result you're getting? I have just tested with a sample project and it looks fine: junit junit 4.11 sources org.apache.maven.plugins maven-dependency-plugin 2.10 Command line: mvn dependency:build-classpath -Dmdep.stripClassifier=true

maven dependency plugin - build-classpath goal

2016-11-03 Thread LEBOULANGER Aurélien
Hello, I’m trying to use the maven-dependency plugin (2.10) with the build-classpath goal. I want to strip the classifier but it’s not work: mvn dependency:build-classpath -Dmdep.stripClassifier=true I also add the option -Dmdep.prefix="foo" (needed regarding the documentation)

Removing classpath entries for shaded aritfacts

2016-04-16 Thread tic01
Hello Maven team, I have the following scenario. I have several libraries which I am building, and an application which depends on those libraries. While I am building using the maven-jar-plugin, a manifest is created with several entries, including the classpath, which naturally include all

Re: How to run jar dependent on maven repo jars? How to extract dependent jars into folder to include in classpath?

2015-05-11 Thread Mark Eggers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 5/11/2015 12:46 PM, Richard Catlin wrote: I built a jar using a pom. The jar depends on jars in the maven repository. How do I run my jar and include the jars in the maven repository in the classpath? If it possible to extract all

Re: How to run jar dependent on maven repo jars? How to extract dependent jars into folder to include in classpath?

2015-05-11 Thread Anders Hammar
: I built a jar using a pom. The jar depends on jars in the maven repository. How do I run my jar and include the jars in the maven repository in the classpath? If it possible to extract all the dependent jars into a /lib directory that I can add to my classpath at runtime? Thanks

How to run jar dependent on maven repo jars? How to extract dependent jars into folder to include in classpath?

2015-05-11 Thread Richard Catlin
I built a jar using a pom. The jar depends on jars in the maven repository. How do I run my jar and include the jars in the maven repository in the classpath? If it possible to extract all the dependent jars into a /lib directory that I can add to my classpath at runtime? Thanks. Richard

Re: Resolving classpath hell issues by allowing libraries to only use the version they request?

2015-01-06 Thread Stephen Connolly
cassandra so I can test it but it’s conflicting with spark. Cassandra is not really designed for embedding. Better to start it in a separate JVM which would allow controlling the classpath Take a look at Cassandra-maven-plugin either as a solution or for some example code for forking a JVM

Re: Resolving classpath hell issues by allowing libraries to only use the version they request?

2015-01-05 Thread Mark Derricutt
On 6 Jan 2015, at 12:29, Kevin Burton wrote: I agree. in this case the issue is testing. I need to embed cassandra so I can test it but it’s conflicting with spark. As a total side issue - have you considered using Docker?

Re: Resolving classpath hell issues by allowing libraries to only use the version they request?

2015-01-05 Thread Ron Wheeler
On 05/01/2015 4:03 PM, Kevin Burton wrote: I spent a ton of time tonight in classpath hell. Basically, Apache Spark, Cassandra, and Cassandra Unit, and Guava, Jackson JSON, and Jetty have an INSANE dependency graph. They're all trampling on each other with broken dependencies. This results in a lot

Re: Resolving classpath hell issues by allowing libraries to only use the version they request?

2015-01-05 Thread Curtis Rueden
... Regards, Curtis On Mon, Jan 5, 2015 at 3:20 PM, Steven Schlansker stevenschlans...@gmail.com wrote: On Jan 5, 2015, at 1:03 PM, Kevin Burton bur...@spinn3r.com wrote: I spent a ton of time tonight in classpath hell. Basically, Apache Spark, Cassandra, and Cassandra Unit, and Guava

Re: Resolving classpath hell issues by allowing libraries to only use the version they request?

2015-01-05 Thread Kevin Burton
Breaking your application into smaller independent services may give you a way to reduce the number of conflicts related to these different transitive dependencies but that may not be as easy as testing your app with the updated versions or doing some research with the teams that are building

Re: Resolving classpath hell issues by allowing libraries to only use the version they request?

2015-01-05 Thread Ron Wheeler
On 05/01/2015 6:29 PM, Kevin Burton wrote: Breaking your application into smaller independent services may give you a way to reduce the number of conflicts related to these different transitive dependencies but that may not be as easy as testing your app with the updated versions or doing some

Re: Resolving classpath hell issues by allowing libraries to only use the version they request?

2015-01-05 Thread Barrie Treloar
On 6 January 2015 at 14:50, Ron Wheeler rwhee...@artifact-software.com wrote: On 05/01/2015 6:29 PM, Kevin Burton wrote: Breaking your application into smaller independent services may give you a way to reduce the number of conflicts related to these different transitive dependencies but

Resolving classpath hell issues by allowing libraries to only use the version they request?

2015-01-05 Thread Kevin Burton
I spent a ton of time tonight in classpath hell. Basically, Apache Spark, Cassandra, and Cassandra Unit, and Guava, Jackson JSON, and Jetty have an INSANE dependency graph. They're all trampling on each other with broken dependencies. This results in a lot of exclusion work to get them to use

Re: Resolving classpath hell issues by allowing libraries to only use the version they request?

2015-01-05 Thread Steven Schlansker
On Jan 5, 2015, at 1:03 PM, Kevin Burton bur...@spinn3r.com wrote: I spent a ton of time tonight in classpath hell. Basically, Apache Spark, Cassandra, and Cassandra Unit, and Guava, Jackson JSON, and Jetty have an INSANE dependency graph. They're all trampling on each other with broken

RE: Classpath issue in custom maven plugin

2014-09-16 Thread Martin Gainty
From: mgai...@hotmail.com To: users@maven.apache.org Subject: RE: Classpath issue in custom maven plugin Date: Mon, 15 Sep 2014 18:49:41 -0400 Date: Mon, 15 Sep 2014 19:06:56 +0530 Subject: Classpath issue in custom maven plugin From: kavita.gpt1...@gmail.com To: users

Classpath issue in custom maven plugin

2014-09-15 Thread Kavita Gupta
Hi! I have created my own custom maven plugin(api-docs) for developing apiary blueprint. While triggering my custom plugin using m2Eclipse I am getting a classpath issue that classPath.getresources is fetching resources from plexus jar, while when I debug the swagger plugin (which I am taking

Re: Classpath issue in custom maven plugin

2014-09-15 Thread shailesh mangal
triggering my custom plugin using m2Eclipse I am getting a classpath issue that classPath.getresources is fetching resources from plexus jar, while when I debug the swagger plugin (which I am taking as a reference) it is picking up the resources from rt.jar. In swagger I am getting web/target/classes

RE: Classpath issue in custom maven plugin

2014-09-15 Thread Martin Gainty
Date: Mon, 15 Sep 2014 19:06:56 +0530 Subject: Classpath issue in custom maven plugin From: kavita.gpt1...@gmail.com To: users@maven.apache.org CC: shailesh.man...@gmail.com Hi! I have created my own custom maven plugin(api-docs) for developing apiary blueprint. While triggering my custom

antrun classpath with taskdef

2014-07-24 Thread Mansour Al Akeel
taskdef name=ddlToDatabase classname=org.apache.ddlutils.task.DdlToDatabaseTask classpathref=current.classpath !-- classpath refid=current.classpath / -- /taskdef property name

Re: antrun classpath with taskdef

2014-07-24 Thread Ron Wheeler
=current.classpath !-- classpath refid=current.classpath / -- /taskdef property name=current_classpath refid=current.classpath / !-- pathconvert pathsep=${line.separator

Re: antrun classpath with taskdef

2014-07-24 Thread Mansour Al Akeel
Let me make sure I understand what you suggest. You are suggesting to add all available JDBC drivers to the plugin dependencies list. This should solve the problem. It might be a work around, but wondering if there's a solution that allows me to access maven pom dependencies from taskdef, for the

Re: antrun classpath with taskdef

2014-07-24 Thread Ron Wheeler
On 24/07/2014 5:52 PM, Mansour Al Akeel wrote: Let me make sure I understand what you suggest. You are suggesting to add all available JDBC drivers to the plugin dependencies list. This should solve the problem. It also allows the system administrator to select the database at installation

Re: Netbeans maven project with invalid POM/classpath problem

2014-05-01 Thread Glenn Brown
/configuration /plugin I've set the classpath environment variable to include the driver jar and I've tried running appclient with the -classpath option but I cannot seem to set the appropriate classpath for appclient no matter what I try. 2 weeks of misguided hacking

Re: Netbeans maven project with invalid POM/classpath problem

2014-05-01 Thread Glenn Brown
/archive /configuration /plugin I've set the classpath environment variable to include the driver jar and I've tried running appclient with the -classpath option but I cannot seem to set the appropriate classpath for appclient no matter what I try. 2

Netbeans maven project with invalid POM/classpath problem

2014-04-30 Thread Mark
manifest addClasspathtrue/addClasspath /manifest /archive /configuration /plugin I've set the classpath environment variable to include the driver jar and I've tried running

Re: Netbeans maven project with invalid POM/classpath problem

2014-04-30 Thread Barrie Treloar
On 1 May 2014 06:48, Mark mark@gmail.com wrote: Browsing the local Maven repository using Netbeans I find the following if I right-click on the ojdbc 11.2.0 jar and select 'View Details' -- org.apache.maven.project.InvalidProjectModelException: 1 problem was encountered while

Excluding the main compile class from the classpath in failsafe

2014-04-11 Thread Benson Margulies
Strange as it might seem, I need to exclude the main compiled artifact from the classpath while running an integration test. The integration test is testing a framework that has it's own way to get the stuff into the classpath. Obviously, I want to keep the _test_. Will http://maven.apache.org

Adding a classpath element within a Mojo

2014-01-19 Thread William Ferguson
I have a Mojo which needs to add an element to the compile time classpath for future Mojos. I'm struggling to find any doco that points in the right direction. Is it possible? If so, how should I go about it? William

Re: Adding a classpath element within a Mojo

2014-01-19 Thread Anders Hammar
Do you want to change the classpath of the project or of other mojos? Don't think either is possible. And if it was, I don't think it's wise. The dependencies of the project should be declared and not magically added. /Anders On Sun, Jan 19, 2014 at 1:18 PM, William Ferguson william.fergu

Re: Adding a classpath element within a Mojo

2014-01-19 Thread William Ferguson
is the maven-compiler-plugin. We want to add the classes contained in the AAR dependencies to the compile classpath so that the maven-compiler-plugin can compile our classes against the classes from the AARs. How do we do that? William On Mon, Jan 20, 2014 at 1:14 AM, Anders Hammar

Re: Adding a classpath element within a Mojo

2014-01-19 Thread Ron Wheeler
want to add the classes contained in the AAR dependencies to the compile classpath so that the maven-compiler-plugin can compile our classes against the classes from the AARs. How do we do that? William On Mon, Jan 20, 2014 at 1:14 AM, Anders Hammar and...@hammar.net wrote: Do you want

Re: Adding a classpath element within a Mojo

2014-01-19 Thread William Ferguson
-artifacts including a classes jar). My Mojo unpacks the AAR artifacts and makes the sub-artifacts available to other build components. One of those build components is the maven-compiler-plugin. We want to add the classes contained in the AAR dependencies to the compile classpath so that the maven

Re: dependency build-classpath returns wrong order

2013-10-21 Thread dsilve
I have been able to understand where the issue is, but not how to solve it. The wrong classpath is generated when I use the configuration property excludeScope=provided. So if I run: mvn dependency:build-classpath I get the correct classpath, but if I run: mvn dependency:build-classpath

dependency build-classpath returns wrong order

2013-10-18 Thread dsilve
Hi, I am using the maven-dependency-plugin version 2.8. If I run mvn dependency:build-classpath for one of my project I get the correct order of the dependencies, but if I generate the classpath in the maven build itself of my project then the order is messed up. The plugin configuration I am

adding directories to maven exec runtime classpath?

2013-08-29 Thread Karl Gierach
Greetings! 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. The various

  1   2   3   4   5   6   7   8   9   10   >