Re: Fatal error compiling: basedir .../target/generated-sources/annotations does not exist

2023-12-21 Thread Stanimir Stamenkov
Thu, 21 Dec 2023 09:10:44 +0100, /Slawomir Jaranowski/: Release under vote ... you can check candidate version: https://lists.apache.org/thread/scb8qw1or396l4hqgf5h78z5h0km60z4 Tried maven-compiler-plugin 3.12.1 from the staging repository – no error during the build. -- Stanimir

Re: Fatal error compiling: basedir .../target/generated-sources/annotations does not exist

2023-12-21 Thread Slawomir Jaranowski
Hi, Release under vote ... you can check candidate version: https://lists.apache.org/thread/scb8qw1or396l4hqgf5h78z5h0km60z4 śr., 20 gru 2023 o 21:04 Slawomir Jaranowski napisał(a): > Hi > > MCOMPILER-379 - was about missing SourcesDirectory and we have IT for it: >

Re: Fatal error compiling: basedir .../target/generated-sources/annotations does not exist

2023-12-20 Thread Slawomir Jaranowski
Hi MCOMPILER-379 - was about missing SourcesDirectory and we have IT for it: https://github.com/apache/maven-compiler-plugin/commit/6fd3a46885edd81e62ae62cfc798c1e1b903e170 MCOMPILER-567 - is for missing generated-sources/annotations - now we also have IT for it:

Re: Fatal error compiling: basedir .../target/generated-sources/annotations does not exist

2023-12-20 Thread Greg Chabala
Hello Sławomir, Do you know if MCOMPILER-379 is the same issue as MCOMPILER-567 ? If so, shouldn't the IT test in MCOMPILER-379 have caught it? Greg

RE: Fatal error compiling: basedir .../target/generated-sources/annotations does not exist

2023-12-20 Thread Stefan CORDES
Hi, I faced the similar error [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.12.0:testCompile (default-testCompile) Fatal error compiling: basedir ...\target\generated-test-sources\test-annotations-java does not exist -> [Help 1] and investigating I

Re: Fatal error compiling: basedir .../target/generated-sources/annotations does not exist

2023-12-20 Thread Slawomir Jaranowski
.. > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:3.12.0:compile > (java9-compile) on project xbrz-core: Fatal error compiling: basedir > C:\...\xbrz-java\xbrz-core\target\generated-sources\annotations does not > exist -> [Help 1] > > that

Fatal error compiling: basedir .../target/generated-sources/annotations does not exist

2023-12-19 Thread Stanimir Stamenkov
"windows" ... [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.12.0:compile (java9-compile) on project xbrz-core: Fatal error compiling: basedir C:\...\xbrz-java\xbrz-core\target\generated-sources\annotations does not exist -> [Help 1] tha

How to exclude directory in Maven in basedir from adding sources to release?

2015-01-29 Thread Stefan Miklosovic
Hi, I have parent pom.xml and I have modules there, structure is like this: pom.xml module1/ module2/ module3/ some_dir1/ some_dir2/ README.adoc When I want to release this project, I do it like mvn release:prepare release:perform What it does is that when I look into sources of parent

Re: How to exclude directory in Maven in basedir from adding sources torelease?

2015-01-29 Thread Bernd Eckenfels
users@maven.apache.org Betreff: How to exclude directory in Maven in basedir from adding sources torelease? Hi, I have parent pom.xml and I have modules there, structure is like this: pom.xml module1/ module2/ module3/ some_dir1/ some_dir2/ README.adoc When I want to release this project, I do

Re: How to exclude directory in Maven in basedir from adding sources torelease?

2015-01-29 Thread Stefan Miklosovic
Betreff: How to exclude directory in Maven in basedir from adding sources torelease? Hi, I have parent pom.xml and I have modules there, structure is like this: pom.xml module1/ module2/ module3/ some_dir1/ some_dir2/ README.adoc When I want to release this project, I do it like

Re: Is it possible to execute a POM with a different basedir?

2013-06-14 Thread David P. Caldwell
Replies: To Jeff: Yes, that doesn't work; it still assumes the basedir is the parent directory of the POM. To Baptiste: I'll look into it, thanks for the pointer. On Thu, Jun 13, 2013 at 8:13 PM, David P. Caldwell da...@code.davidpcaldwell.com wrote: The use case is that I have a project

Re: Is it possible to execute a POM with a different basedir?

2013-06-14 Thread Jörg Schaible
Maven, and then overwriting the updates with the original (hope the process doesn't crash in a way that prevents me from restoring the original). I'd probably lean toward the last but it's more cumbersome and error-prone than I'd like. Is what I'd like possible? You cannot modify the basedir, i.e

Re: Is it possible to execute a POM with a different basedir?

2013-06-14 Thread Ron Wheeler
and error-prone than I'd like. Is what I'd like possible? You cannot modify the basedir, i.e your generated POM has to be at same location with a different name. You might select a name pattern that is ignored by your SCM e.g. pom.tmp. As Jeff said, call Maven like mvn -f pom.tmp However, keep

Re: Is it possible to execute a POM with a different basedir?

2013-06-14 Thread David P. Caldwell
Ron asks: Why? What is the problem that you are actually trying to solve? I explained it at more length in the original question, but more succinctly: I want to be able to execute a project with an arbitrary POM file without modifying the original source repository or source working directory in

Re: Is it possible to execute a POM with a different basedir?

2013-06-14 Thread Ron Wheeler
development need. If you can tell us this, there might be a solution that builds the artifacts that you need and does not require changing the basedir. Ron On Thu, Jun 13, 2013 at 8:13 PM, David P. Caldwell da...@code.davidpcaldwell.com wrote: The use case is that I have a project (actually

Is it possible to execute a POM with a different basedir?

2013-06-13 Thread David P. Caldwell
The use case is that I have a project (actually, many projects, so I want to be able to do this in bulk) that are source-controlled and I'd like to be able to create a modified version of the POM in a temporary directory and then execute that modified POM, but against the original base directory

Re: Is it possible to execute a POM with a different basedir?

2013-06-13 Thread Jeff Jensen
Have you tried the mvn -f param? mvn -f path/to/pom/generated.pom from the source tree base dir. Inverts what you are thinking of... On Thu, Jun 13, 2013 at 7:13 PM, David P. Caldwell da...@code.davidpcaldwell.com wrote: The use case is that I have a project (actually, many projects, so I

Re: Is it possible to execute a POM with a different basedir?

2013-06-13 Thread Baptiste Mathus
I think this is what the sonar maven plugin does. Maybe you should have a look at its sources. My 2 cents. Cheers Le 14 juin 2013 03:20, Jeff Jensen jeffjen...@upstairstechnology.com a écrit : Have you tried the mvn -f param? mvn -f path/to/pom/generated.pom from the source tree base dir.

Re: maven-antrun-plugin and ant basedir question

2013-05-10 Thread Luis Lopez
:Re: maven-antrun-plugin and ant basedir question I am trying to do a custom build of Dojo using Maven and the Dojo supplied build.xml file. I have managed to get most of the pieces that I need into the pom.xml file to where the ant clean task works and the default task starts

Re: maven-antrun-plugin and ant basedir question

2013-05-10 Thread Wayne Fay
The build.xml file is part of the Dojo distribution. I would like to avoid modifying their files as Dojo is being updated all the time. So I strongly doubt their build.xml file is being updated all the time. I would just edit this one spot and then keep an eye for changes to this file so you

maven-antrun-plugin and ant basedir question

2013-05-09 Thread Luis Lopez
of basedir which is set to . at the top of the build.xml file (project name=dojo default=cldr basedir=.). Since Maven is not running from the directory where the build.xml file is at, all the paths are wrong. In my pom.xml file I have tried to override this value by adding, property name=basedir

Re: maven-antrun-plugin and ant basedir question

2013-05-09 Thread Wayne Fay
I am trying to do a custom build of Dojo using Maven and the Dojo supplied build.xml file. I have managed to get most of the pieces that I need into the pom.xml file to where the ant clean task works and the default task starts. Unfortunately the default task depends on the value of basedir

maven3 - maven-checkstyle-plugin:2.5 - Property ${basedir} has not been set

2011-02-16 Thread Hauschel Fred Robert
generation: Error rendering Maven report: Failed during checkstyle execution: Failed during checkstyle configuration: unable to read D:\IDE\workspaces\current\score_common\target\checkstyle-checker.xml - unable to parse configuration stream - Property ${basedir} has not been set - [Help 1

Re: setting permissions of basedir in maven-assembly-plugin

2011-02-16 Thread Steve Cohen
On 02/15/2011 12:58 PM, Steve Cohen wrote: I can set the permissions of fileSets and moduleSets and dependencySets in the maven-assembly-plugin, but it seems from the online documentation that I can't do so on the baseDir. What is more, when assembling a zip format, the perms default to 777

setting permissions of basedir in maven-assembly-plugin

2011-02-15 Thread Steve Cohen
I can set the permissions of fileSets and moduleSets and dependencySets in the maven-assembly-plugin, but it seems from the online documentation that I can't do so on the baseDir. What is more, when assembling a zip format, the perms default to 777. At least that's what I get when I unzip

Re: Passing ${basedir} into Exec plugin

2010-07-05 Thread cowwoc
Andreas Sewe wrote: Hi, I need to invoke an external command using the Exec plugin, with one of the arguments equal to ${basedir}/target. The problem is that under Windows this expands to c:\\temp\\project/target because ${basedir} uses Windows-style slashes whereas the rest

Re: Passing ${basedir} into Exec plugin

2010-07-05 Thread lukewpatterson
cowwoc wrote: ... one of the arguments equal to ${basedir}/target. maybe I'm missing something here, but why won't ${project.build.directory} work? -- View this message in context: http://maven.40175.n5.nabble.com/Passing-basedir-into-Exec-plugin-tp512272p696566.html Sent from the Maven

Re: Passing ${basedir} into Exec plugin

2010-07-05 Thread cowwoc
cowwoc wrote: Andreas Sewe wrote: Hi, I need to invoke an external command using the Exec plugin, with one of the arguments equal to ${basedir}/target. The problem is that under Windows this expands to c:\\temp\\project/target because ${basedir} uses Windows-style slashes whereas

Re: Passing ${basedir} into Exec plugin

2010-07-05 Thread lukewpatterson
lukewpatterson wrote: cowwoc wrote: ... one of the arguments equal to ${basedir}/target. maybe I'm missing something here, but why won't ${project.build.directory} work? nevermind, I see what you are saying now, you want a general way to create a String parameter value

Re: Passing ${basedir} into Exec plugin

2010-07-05 Thread lukewpatterson
/browse/mojo/trunk/mojo/exec-maven-plugin/src/main/java/org/codehaus/mojo/exec/AbstractExecMojo.java?r=HEAD#l155 try (with the quotes) ${basedir}${file.separator}target${file.separator}lib interestingly though, \ or \a or a\ throw error args contains not properly formatted string but a\a is ok

Re: Passing ${basedir} into Exec plugin

2010-07-05 Thread cowwoc
lukewpatterson wrote: ok, and then the plugin does some massaging, and '\' is an escape character http://fisheye.codehaus.org/browse/mojo/trunk/mojo/exec-maven-plugin/src/main/java/org/codehaus/mojo/exec/AbstractExecMojo.java?r=HEAD#l155 try (with the quotes) ${basedir

Re: Passing ${basedir} into Exec plugin

2010-07-05 Thread lukewpatterson
to be fixed too. Either way, might as well file the bug so you can leave some clues to follow for others experiencing the same obstacle. -- View this message in context: http://maven.40175.n5.nabble.com/Passing-basedir-into-Exec-plugin-tp512272p704257.html Sent from the Maven - Users mailing list

Re: Passing ${basedir} into Exec plugin

2010-07-01 Thread Andreas Sewe
Hi, I need to invoke an external command using the Exec plugin, with one of the arguments equal to ${basedir}/target. The problem is that under Windows this expands to c:\\temp\\project/target because ${basedir} uses Windows-style slashes whereas the rest of the argument uses Unix-style slashes

Re: Passing ${basedir} into Exec plugin

2010-07-01 Thread Dan Tran
ah, that is really overkill :-) On Thu, Jul 1, 2010 at 12:08 AM, Andreas Sewe s...@st.informatik.tu-darmstadt.de wrote: Hi, I need to invoke an external command using the Exec plugin, with one of the arguments equal to ${basedir}/target. The problem is that under Windows this expands to c

Passing ${basedir} into Exec plugin

2010-06-30 Thread cowwoc
Hi, I need to invoke an external command using the Exec plugin, with one of the arguments equal to ${basedir}/target. The problem is that under Windows this expands to c:\\temp\\project/target because ${basedir} uses Windows-style slashes whereas the rest of the argument uses Unix-style slashes

Re: Passing ${basedir} into Exec plugin

2010-06-30 Thread Dan Tran
lookup maven profile where you can configure your properties to ${basedir}\\target when on windows platform -D On Wed, Jun 30, 2010 at 9:26 PM, cowwoc cow...@bbs.darktech.org wrote: Hi, I need to invoke an external command using the Exec plugin, with one of the arguments equal to ${basedir

Re: $basedir in pom.xml

2010-06-01 Thread Aravi
hi lakshmi, try this properties basedirYOUR DIRECTORY HERE/basedir /properties is this what you are looking for? Thanks aravi Lakshmi Kurella wrote: Can someone tell me what path $basedir points to and how can I alter this. Thank you, LK -- View

Re: Backslash colon problem with ${basedir} using maven-plugin-tools-ant

2009-06-22 Thread Blackbird
Hasn't anyone faced this problem? I really need some help there.. -- View this message in context: http://www.nabble.com/Backslash-colon-problem-with-%24%7Bbasedir%7D-using-maven-plugin-tools-ant-tp24111308p24142465.html Sent from the Maven - Users mailing list archive at Nabble.com.

Re: Backslash colon problem with ${basedir} using maven-plugin-tools-ant

2009-06-22 Thread Blackbird
=== Problem solved === The ${basedir} variable was replaced because in the project's POM I had specified filteringtrue/filtering for the directory enclosing the Ant script file. I still think there is a bug in the Ant plugin (adding the backslash before the colon). -- View this message

Backslash colon problem with ${basedir} using maven-plugin-tools-ant

2009-06-19 Thread Blackbird
basedir=. target name=info mkdir dir=${basedir}/foo / /target /project Upon calling mvn clean package, this file is copied in the target/classes directory, with the following content: project name=build_foo default=info basedir=. target name=info

Re: Backslash colon problem with ${basedir} using maven-plugin-tools-ant

2009-06-19 Thread Blackbird
Why does mvn package transform ${basedir} to a hard-coded directory anyway? I don't see any particular reason for doing this... -- View this message in context: http://www.nabble.com/Backslash-colon-problem-with-%24%7Bbasedir%7D-using-maven-plugin-tools-ant-tp24111308p24111587.html Sent from

Overriding basedir

2009-05-26 Thread raghu guru
tried defining property in pom.xml as shown below properties basedirC:\src\main\java/basedir /properties but still it didn't work, I also use some systempath variables in my dependency as shown below dependency groupIdjavax/groupId artifactIdj2ee

Re: Overriding basedir

2009-05-26 Thread Brian Fox
\pom.xml it was reading this file. but its taking base dir has C:\my-mvn\pom.xml i tried defining property in pom.xml as shown below properties basedirC:\src\main\java/basedir /properties but still it didn't work, I also use some systempath variables in my dependency as shown below

Filter a javascript file within maven-war-plugin webResources - basedir does not exist

2009-03-12 Thread ez
] [INFO] [ERROR] FATAL ERROR [INFO] [INFO] basedir C:\dev\workspace\dashboard-web\src\main\webapp\js? does not exist [INFO

$basedir in pom.xml

2008-08-07 Thread Lakshmi Kurella
Can someone tell me what path $basedir points to and how can I alter this. Thank you, LK

Re: $basedir in pom.xml

2008-08-07 Thread Wendy Smoak
On Thu, Aug 7, 2008 at 8:06 PM, Lakshmi Kurella [EMAIL PROTECTED] wrote: Can someone tell me what path $basedir points to and how can I alter this. $basedir is the root of the project that's being built. I'm not sure you can change it. What problem are you trying to solve? There's probably

javadoc and doclet : escaping the basedir variable ?

2008-06-11 Thread Christophe Couronne
Hi the list, I'm trying to use the Maven Javadoc Plugin to generate a documentation using a custom Java doclet. A trouble persists. My pom uses an additionalparam section to configure the doclet as below : additionalparam -index ${basedir}/src/site/docbook/reference/index.xml

Re: maven-checkstyle-plugin basedir

2008-04-26 Thread Dennis Lundberg
Are you using the text ${basedir} in your Checkstyle configuration file? Hart, Leo wrote: I'm trying to migrating my build process from Ant to Maven and have been struggling quite a bit so far. I want to integrate CheckStyle into the build, so I've added the following: reporting plugins

RE: maven-checkstyle-plugin basedir

2008-04-25 Thread Hart, Leo
Brian, I did as you suggested and changed configLocation to: configLocation${basedir}/config/checkstyle-rules.xml/configLocation I'm getting the same message: C:\workspace\sharesmvn checkstyle:check -e + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching

maven-checkstyle-plugin basedir

2008-04-24 Thread Hart, Leo
] An error has occurred in Checkstyle report generation. Embedded error: Failed during checkstyle configuration Property ${basedir} has not been set [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException

RE: maven-checkstyle-plugin basedir

2008-04-24 Thread Brian E. Fox
That is a weird one, but try changing your configLocation to : configLocation${basedir}/config/CheckStyle Rules.xml/configLocation This will give an absolute path to checkstyle. You also might want to get rid of the space in the file name. -Original Message- From: Hart, Leo [mailto

Files copied from basedir to target/classes

2008-01-28 Thread John Coleman
Hi, Maybe I'm not understanding something basic here, but in my JAR project I am finding that folders in my basedir are getting copied into target/classes when I compile. I really didn't expect this behaviour. I thought target/classes only loaded up with stuff under src? Any ideas please? TIA

RE: Files copied from basedir to target/classes

2008-01-28 Thread John Coleman
igore this post ty Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into

[m2] How do I get ${basedir} information in junit tests?

2008-01-17 Thread Mick Knutson
I want to convert: fileString = FileUtils.getStringFromFile( C:\\viewstore\\esp_lynx_dap\\esp\\dap\\utilities\\common\\common-jar\\src\\test\\resources\\test.txt); into something like: fileString = FileUtils.getStringFromFile( ${basedir}\\src\\test

Re: [m2] How do I get ${basedir} information in junit tests?

2008-01-17 Thread Wayne Fay
\\common\\common-jar\\src\\test\\resources\\test.txt); into something like: fileString = FileUtils.getStringFromFile( ${basedir}\\src\\test\\resources\\test.txt); inside my junit test. Is there a way to do this? -- Thanks, Mick Knutson http

Re: Ant basedir

2007-12-12 Thread Luis Roberto P. Paula
What would you want to use this basedir property for? Maven has a different mindset for referencing resources within a project than ant. I'm sure if you describe your use case here someone will show you the maven way to do things. I'm using maven to call a ant-build file that is in another

RE: Ant basedir

2007-12-12 Thread Gargan, Stephen
Users List Subject: Re: Ant basedir What would you want to use this basedir property for? Maven has a different mindset for referencing resources within a project than ant. I'm sure if you describe your use case here someone will show you the maven way to do things. I'm using maven to call a ant

Ant basedir

2007-12-11 Thread Luis Roberto P. Paula
Hi, How do I set ant basedir from maven? I was trying something like that: *ant basedir=/tmp/test antfile=build.xml* but there is no basedir attribute. Thanks, Luis

RE: Ant basedir

2007-12-11 Thread Gargan, Stephen
What would you want to use this basedir property for? Maven has a different mindset for referencing resources within a project than ant. I'm sure if you describe your use case here someone will show you the maven way to do things. Rgds, ste -Original Message- From: Luis Roberto P

Re: Referring to basedir

2007-10-28 Thread Nicole Lacoste
Hi Yaakov, Not sure if this is your problem, but ${project.build.directory} refers to the target directory. ${project.directory} refers to the directory that contains the src directory. Also I am wondering why you have the context.xml file where you do in src/resources, and not in

Re: Referring to basedir

2007-10-28 Thread Yaakov Chaikin
I got mixed up when typing up the email. I do have the context.xml in src/test/resources. Either way, I am not sure why the FileNotFoundException cites the literal string: ${project.build.directory} and not the absolute path. Yaakov. On 10/28/07, Nicole Lacoste [EMAIL PROTECTED] wrote: Hi

Re: Referring to basedir

2007-10-28 Thread Nicole Lacoste
Hi Yaakov, Do I understand right that the ${project.build.directory} in in a file that is not a pom? I don't think that if gets resolved outside of pom files. Try just the name of the file aim-validator.properties instead of ${ project.build.directory}/aim-validator.properties. If it is in

Re: Referring to basedir

2007-10-28 Thread Yaakov Chaikin
Wait a second... If I am pretty new to maven, so... I did tell maven in my pom.xml that I want the directory src/test/resources filtered. So, why wouldn't it filter it? OR are you saying that I have to create a 'filters' directory and place a property file there and use THAT to filter things?

Re: Referring to basedir

2007-10-28 Thread Nicole Lacoste
I don't know about filters. But maven sees src/test/resources, so you can refer to stuff directly. Did you try it? Are you still getting the same error? Nicole On 28/10/2007, Yaakov Chaikin [EMAIL PROTECTED] wrote: Wait a second... If I am pretty new to maven, so... I did tell maven in

Re: Referring to basedir

2007-10-28 Thread Dan Kigelman
A nice test to do would be: constructor-arg index=0 value=${pom.artifactId}/aim-validator.properties / That way, if you get FileNotFoundException citing the file location your-artifact-id/aim-validator.properties, then the problem is (somehow) with the ${project.build.directory}. If you get a

Re: Referring to basedir

2007-10-28 Thread Greg Morgan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yaakov Chaikin wrote: Wait a second... If I am pretty new to maven, so... I did tell maven in my pom.xml that I want the directory src/test/resources filtered. So, why wouldn't it filter it? OR are you saying that I have to create a 'filters'

Re: How can I get the path for a root pom.xml's basedir in a multimodule project with pom inheritance

2007-10-27 Thread Jörg Schaible
clamb wrote: Jörg Schaible-2 wrote: Why don't you simply keep those filters in an own module and pack them into an archive? Every other project that needs to access them may declare a dep on that artifact and can user the build-helper plugin to unpack them into a temporary location.

Referring to basedir

2007-10-27 Thread Yaakov Chaikin
Hi, I have a spring context XML file in src/resourses/context.xml. I need to refer to a property file inside the context.xml file, so I have the following line there: constructor-arg index=0 value=${project.build.directory}/aim-validator.properties/ I also have this in my pom.xml: build

Re: How can I get the path for a root pom.xml's basedir in a multimodule project with pom inheritance

2007-10-26 Thread clamb
OK, i've been fighting this battle for a few days now and have a fairly ugly solution. in every pom.xml define a common root property: properties rootPOM${basedir}/..//rootPOM /properties Ensure that you have enough ../ to reference the rootPOM directory. Everywhere you need to refer

Re: How can I get the path for a root pom.xml's basedir in a multimodule project with pom inheritance

2007-10-26 Thread Matthew McCullough
deep tree of projects? Sincerely, Matthew McCullough Managing Partner Ambient Ideas, LLC clamb wrote: OK, i've been fighting this battle for a few days now and have a fairly ugly solution. in every pom.xml define a common root property: properties rootPOM${basedir}/..//rootPOM

Re: How can I get the path for a root pom.xml's basedir in a multimodule project with pom inheritance

2007-10-26 Thread clamb
defs${rootPOM}/genericFilters/defs /configuration ... /plugin /plugins /pluginManagement /build -MatthewsProject rootPOM${basedir}/rootPOM +Core

Re: How can I get the path for a root pom.xml's basedir in a multimodule project with pom inheritance

2007-10-26 Thread Jörg Schaible
clamb wrote: Matthew McCullough wrote: This is a creative idea, but appears only to work if your leaf nodes of the project are all at the same level so that the ../../ is consistently just the right amount back up the directory tree. Yeah ... that is a limitation. However, once you

Re: How can I get the path for a root pom.xml's basedir in a multimodule project with pom inheritance

2007-10-26 Thread clamb
('cause i need to filter them) for all 12 of my sub-projects vs: have my sub-project simply point to the filter in the parent. -- View this message in context: http://www.nabble.com/How-can-I-get-the-path-for-a-root-pom.xml%27s-basedir-in-a-multimodule-project-with-pom-inheritance-tf4577123s177.html

Re: How can I get the path for a root pom.xml's basedir in a multimodule project with pom inheritance

2007-10-08 Thread Philippe Le Marchand
a solution in the thread though: http://mail-archives.apache.org/mod_mbox/maven-continuum-users/200701.mbox/[EMAIL PROTECTED] Matthew McCullough wrote: Maven users, Is there a way to retrieve the super, or super-super pom.xml's ${basedir} such that it consistently returns the rootmost

Re: How can I get the path for a root pom.xml's basedir in a multimodule project with pom inheritance

2007-10-08 Thread Matthew McCullough
. Can't find a solution in the thread though: http://mail-archives.apache.org/mod_mbox/maven-continuum-users/200701.mbox/[EMAIL PROTECTED] Matthew McCullough wrote: Maven users, Is there a way to retrieve the super, or super-super pom.xml's ${basedir} such that it consistently returns

How can I get the path for a root pom.xml's basedir in a multimodule project with pom inheritance

2007-10-05 Thread Matthew McCullough
Maven users, Is there a way to retrieve the super, or super-super pom.xml's ${basedir} such that it consistently returns the rootmost pom.xml's path? It appears that ${basedir} is always the leafmost pom's path when running a multimodule build. So, for example: 1) I have a pom.xml at the root

Re: How can I get the path for a root pom.xml's basedir in a multimodule project with pom inheritance

2007-10-05 Thread Matthew McCullough
, or super-super pom.xml's ${basedir} such that it consistently returns the rootmost pom.xml's path? It appears that ${basedir} is always the leafmost pom's path when running a multimodule build. So, for example: 1) I have a pom.xml at the root of my tree. 2) I have pom.xmls

Re: ${basedir} Windows and ${file.separator}

2007-09-10 Thread Roland Asmann
Shouldn't ${basedir} be resolved correctly on both windows and *nix? If that's the case, you could try using the '/' separator, since this works both on *nix and windows... However, if ${basedir} is not correctly resolved, you will probably still have the same issues... On Friday 07 September

${basedir} Windows and ${file.separator}

2007-09-07 Thread Andrew Leer
Hello all, I am using Maven2 on Windows XP Lets say that I have this property in my pom.xml file: log.app.directory${basedir}${file.separator}log${file.separator}/log.app.directory This property is being used to write the location of a directory for holding log files, to a log4j.xml

Re: ${basedir} Windows and ${file.separator}

2007-09-07 Thread Andrew Leer
Hello, Use 2 profiles that are auto-activated based on OS and hard-code the proper value in both. Wayne Doesn't the defeat the purpose of having an environment portable build? And when I use ${basedir} I can't insert two ${file.separator}'s inside of that variable. I.E. ${basedir}=C

Re: ${basedir} Windows and ${file.separator}

2007-09-07 Thread Wayne Fay
Use 2 profiles that are auto-activated based on OS and hard-code the proper value in both. Wayne On 9/7/07, Andrew Leer [EMAIL PROTECTED] wrote: Hello all, I am using Maven2 on Windows XP Lets say that I have this property in my pom.xml file: log.app.directory${basedir}${file.separator

Re: ${basedir} Windows and ${file.separator}

2007-09-07 Thread Wayne Fay
: Hello, Use 2 profiles that are auto-activated based on OS and hard-code the proper value in both. Wayne Doesn't the defeat the purpose of having an environment portable build? And when I use ${basedir} I can't insert two ${file.separator}'s inside of that variable. I.E. ${basedir}=C

Re: ${basedir} Windows and ${file.separator}

2007-09-07 Thread Andrew Leer
the purpose of having an environment portable build? And when I use ${basedir} I can't insert two ${file.separator}'s inside of that variable. I.E. ${basedir}=C:\workspace\dev\projectTest (under windows) I can't add an extra path separator that way Thank you, Andrew J

How to set variables like ${basedir}

2007-06-20 Thread capira
Hi! I have read some documents and books about Maven and I am not able to find a list which describes variables like ${basedir}. Regards, Raul -- View this message in context: http://www.nabble.com/How-to-set-variables-like-%24%7Bbasedir%7D-tf3950655s177.html#a11208298 Sent from the Maven

Re: How to set variables like ${basedir}

2007-06-20 Thread Andrew Williams
http://sonatype.com/book/properties.html Andy On 20 Jun 2007, at 08:08, capira wrote: Hi! I have read some documents and books about Maven and I am not able to find a list which describes variables like ${basedir}. Regards, Raul -- View this message in context: http://www.nabble.com

RE: Parent POM and basedir

2007-05-15 Thread Chris Helck
-Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] Sent: Monday, May 14, 2007 7:06 PM To: Maven Users List Subject: RE: Parent POM and basedir Can PMD find things on the classpath the way Checkstyle can? In that case, deploy a jar with your rules, and add it as a build extension so

Re: Parent POM and basedir

2007-05-15 Thread Wendy Smoak
On 5/15/07, Chris Helck [EMAIL PROTECTED] wrote: Can you explain what you mean? I've already set things up with the extension but I'd rather change it now if that is the right thing to do. How can I make my rules file be a dependency of the PMD plugin? Do I have to recreate my own version of

RE: Parent POM and basedir

2007-05-14 Thread Brian E. Fox
Can PMD find things on the classpath the way Checkstyle can? In that case, deploy a jar with your rules, and add it as a build extension so it's available on the classpath. Yes it can. Although the preferred method is to make it a dependency of the PMD plugin. Extensions work, but it's

Parent POM and basedir

2007-05-10 Thread Chris Helck
linkXreftrue/linkXref sourceEncodingutf-8/sourceEncoding minimumTokens100/minimumTokens rulesets ruleset${basedir}/src/site/pmd.xml/ruleset /rulesets /configuration /plugin The line ruleset${basedir}/src/site/pmd.xml/ruleset causes problems

Re: Parent POM and basedir

2007-05-10 Thread Wendy Smoak
targetJdk1.5/targetJdk linkXreftrue/linkXref sourceEncodingutf-8/sourceEncoding minimumTokens100/minimumTokens rulesets ruleset${basedir}/src/site/pmd.xml/ruleset /rulesets /configuration /plugin The line ruleset

[M1] multiproject basedir not changing in subprojects?

2007-04-20 Thread matthewadams
Hi all, I've got some unit tests in a subproject of a multiproject that run fine when building from the subproject's basedir, but when the subproject is built as part of the multiproject build (that is, maven is launched in the parent directory), the basedir is that of the parent directory

Re: [M1] multiproject basedir not changing in subprojects?

2007-04-20 Thread Arnaud HERITIER
the subproject's basedir, but when the subproject is built as part of the multiproject build (that is, maven is launched in the parent directory), the basedir is that of the parent directory, and my unit tests fail to find the resources they need to test (some xml files). How does Maven 1 handle setting

Re: maven basedir

2007-01-18 Thread cl29
cl29 wrote: Good day to you, Franz! Good day to Arnaud! Thanks for your fast reply and sorry for my late reply. I have tested this with Maven2 now, and basedir properties in conf/pom.xml as you mentioned below, but scm:update announces as workingdir project/conf and by this does

[FAQ] Question about ${basedir}

2007-01-17 Thread Andy Pippin
I'm trying to build a multi-module project that requires some resources (an xsl file) to complete. The location of the XSL file is relative to ${basedir}, which changes based on whether I am in the sub-module or at the top level. As a result, the processing can find the necessary

Re: maven basedir

2007-01-14 Thread franz see
, I am not sure if I understand your situation perfectly ( your post seems to be wrapped into one long line ). But you may want to try adding project ... properties basedir!-- your path --/basedir /properties /project See [1] for more info. Cheers, Franz [1] http

Re: maven basedir

2007-01-13 Thread franz see
Good day to you, cl29, I am not sure if I understand your situation perfectly ( your post seems to be wrapped into one long line ). But you may want to try adding project ... properties basedir!-- your path --/basedir /properties /project See [1] for more info. Cheers, Franz [1

Re: maven basedir

2007-01-13 Thread Arnaud HERITIER
... properties basedir!-- your path --/basedir /properties /project See [1] for more info. Cheers, Franz [1] http://maven.apache.org/ref/2.0.4/maven-model/maven.html cl29 wrote: we are going to change our cvs, splitting our project into modules and for this reason project.xml

maven basedir

2007-01-12 Thread cl29
|_ New structure: |_ conf |_build.properties |_project.properties |_project.xml |_ src |_ tools |_ ...So files - usually corresponding to ${basedir} - are no longer in the top level directory and goals like scm:update for example working recursive start in directory conf and miss

Re: basedir

2006-10-27 Thread Geoffrey De Smet
Basedir depends entirely on where you are executing Maven from... AFAIK, ${basedir} actually resolves to the current pom.xml's directory, so if yo run mvn install on a multimodule project, the submodules have a basedir still set to their own directories, not the one of the multimodule

basedir

2006-10-25 Thread EJ Ciramella
Is there some property readily available that represents the directory from which maven was run from? Something like ${basedir} in ant?

  1   2   >