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
-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
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
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
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
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
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
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
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
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
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
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
, 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
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
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
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
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
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
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
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
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
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
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
(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
-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
.
/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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
, 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
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
(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
) 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
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
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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
*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
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]
-
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
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
..
--
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
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
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
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
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
dinamically
classpath for point 1
[
e.g.
..
..
configuration
workingDirectory${project.build.directory}/workingDirectory
executablejava/executable
classpathScopecompile/classpathScope
arguments
argument-classpath/argument
!-- automatically
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
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
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
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
/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
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
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
...
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
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
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
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
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
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
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
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
101 - 200 of 1706 matches
Mail list logo