Re: How to update property value of POM.xml in a maven plugin?
Thanks a lot! I have tried this method. But I have another problem: I declare the mojo in root pom.xml and the property added in mojo can be reference with ${propertyName}. But in the pom.xml of sub module, the property can't be referenced like this. It seems no such property added in mojo. What's the reason? Is there any solution? Stephen Connolly-2 wrote: 2009/1/16 Carlo Sciolla carlo.scio...@gmail.com Something like this: code // MyMojo.java /** * The Maven project * @parameter expression=${project} * @required */ private MavenProject project; [...] public void execute() throws MojoExecutionException { [...] project.getProperties().put(propertyAvailableHereafter, actualValue); [...] } } /code But note that this property will only be available to phases after your mojo has executed This can cause fun if you want to use the property value in the pom in an expression that is used when the initial model is being constructed (i.e. you cannot use the property in /project/artifactId, etc) Hope this helps, c. -- Carlo Sciolla - http://www.skuro.tk Software Engineer at Sourcesense - Making sense of open Source (http://www.sourcesense.com) Linux User #372086 \|/ -(o -- I'm a punk, dude! //\ V_/_ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/How-to-update-property-value-of-POM.xml-in-a-maven-plugin--tp21492944p21558582.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
Getting log4j output from ANT tasks to maven output
i'm using maven with antrun plugin. the ANT task i'm using uses log4j. however, logging output does not get into maven's output. instead i get this: log4j:WARN No appenders could be found for logger (com.i18n.Excel2Properties). log4j:WARN Please initialize the log4j system properly. what should i do? -- View this message in context: http://www.nabble.com/Getting-log4j-output-from-ANT-tasks-to-maven-output-tp21558678p21558678.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
Interdependencies between modules
Hi All, I've got a question about how maven works when there is a newer remote library than a locally installed artefact. Say I've got project A and project B. B depends on A. - I build A and install it, to test that B will work with the API changes in A. - If I build B it will use my locally built copy of A, everything is fine UNLESS: The continuous integration tool builds a new copy of A after I build A and install locally. When I come to build B it pulls in the remote copy of A and my local change in A is ignored. How can I stop this happening as it does not give a predicatable build? I really need to tell B to update its dependencies except for A. Thanks in advance, Rich
Re: Interdependencies between modules
Just a thought: use profile to disable your repository? Or simply work offline (mvn -o)? This way it will only use your local jar. Cheers. 2009/1/20 Richard Chamberlain richard.chamberl...@caplin.com Hi All, I've got a question about how maven works when there is a newer remote library than a locally installed artefact. Say I've got project A and project B. B depends on A. - I build A and install it, to test that B will work with the API changes in A. - If I build B it will use my locally built copy of A, everything is fine UNLESS: The continuous integration tool builds a new copy of A after I build A and install locally. When I come to build B it pulls in the remote copy of A and my local change in A is ignored. How can I stop this happening as it does not give a predicatable build? I really need to tell B to update its dependencies except for A. Thanks in advance, Rich -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
Re: AW: how to avoid build error if remote repository is nto available?
Maybe give us some precisions about which plugin you think is here that maven don't find. Show us your help:effective-settings output. Maybe you're not looking at the right local repository, couln't it be? Cheers 2009/1/19 jonathan14 jonjack...@cmpmedica.com Strub Thanks for that, Im still learning Maven commands etc.. Maven does report that its only using local artifacts when I run with switch but annoyingly I keep getting build errors because it cant seem to find plgunis etc that are actually there!! something wrong with my config. I know. Jon struberg wrote: mvn -o don't work? LieGrue, strub --- jonathan14 jonjack...@cmpmedica.com schrieb am Mo, 19.1.2009: Von: jonathan14 jonjack...@cmpmedica.com Betreff: Re: AW: how to avoid build error if remote repository is nto available? An: users@maven.apache.org Datum: Montag, 19. Januar 2009, 12:20 Hi strub, Thanks for your reply. Apologies I forgot to clarify that my 'remote repository' is indeed an instance of Artifactory but running in a managed service machine - I dont have a server available on my local/corporate network to install an instance of Artifactory unfortunately. Whats annoying is that Maven wont build my war since it complains it cant get the war plugin from my remote artifactory - since this network connection is down at present - but I have the plugin in my local machine $M2_HOME. So, my POM is missing some configuration I feel. Maven can definately access my local $M2_HOME since it installs my project artifacts there after a successful build. Thanks Jon struberg wrote: Occassionally our remote - central - repository is unavailable Do you already use some kind of caching proxy like e.g. Archiva, Artifactory, maven-proxy or Nexus? If you are in a company I would _highly_ recommend setting up such a proxy! 1.) no complaining about public repos being offline anymore 2.) you can backup the whole proxy cache and so your builds are also safe in the future. 3.) It will increase build times for your colleagues greatly. 4.) helps to relieve the central repo if not everyone is stressing the servers! LieGrue, strub --- jonathan14 jonjack...@cmpmedica.com schrieb am Mo, 19.1.2009: Von: jonathan14 jonjack...@cmpmedica.com Betreff: how to avoid build error if remote repository is nto available? An: users@maven.apache.org Datum: Montag, 19. Januar 2009, 11:38 Hello Occassionally our remote - central - repository is unavailable, and when this occurs a local build fails because my local Maven cannot get the remote artifacts - whether they be plugins or my project components ie. [WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-war-plugin' could not be retrieved from repository: central due to an error: Error transferring file Ive had a look at the onlnie documentation and a coupld of guides but cant figure out how to configure my project POM so that Maven can still build if it can find all the artifacts it needs in the local repository. I know the maven-war-plugin exists locally since I can see it in the file system. Further to this, can anyone tell me how in instruct Maven not to check remote repositories if it can find the artifact in the local one? Do I just make my local repository my default one? Thanks Jon -- View this message in context: http://www.nabble.com/how-to-avoid-build-error-if-remote-repository-is-nto-available--tp21540454p21540454.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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/how-to-avoid-build-error-if-remote-repository-is-nto-available--tp21540454p21541153.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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context:
Maven inheritence works with 2.1-SNAPSHOT but not with 2.0.9
Hi, i have a problem and i hope somebody can help me. I'm kinda new to this things so maybe my approach is generaly wrong. i'm having a parent for example like this: modelVersion4.0.0/modelVersion groupIdorg.test/groupId artifactIdparent/artifactId version1/version build plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId dependencies dependency groupId${pom.parent.groupId}/groupId artifactId${pom.parent.artifactId}/artifactId version${pom.parent.version}/version /dependency /dependencies /plugin reporting plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId configuration configLocationcheckstyle.xml/configLocation /configuration /plugin /plugins /reporting /project And a child like this: parent groupIdorg.test/groupId artifactIdparent/artifactId version1/version /parent modelVersion4.0.0/modelVersion groupIdorg.test/groupId artifactIdchild/artifactId When i use Maven 2.0.9 i get the error that parent packaging has to be pom. But it has to be jar so my child can access the checkstyle.xml which is in the parent projects resource folder. With Maven 2.1-SNAPSHOT it works as expected (checkstyle runs with my rules which are in the parents resource folder). Is there maybe a better way to solve this or somehow make it work with both versions? I don't want to use packaging jar, run clean install for my parent and then change it to pom so that it will work with 2.0.9. Thanks in advance kukudas
Re: A questionabout Error building POM (may not be this project's POM).
waitting for answer thomas2004 wrote: Hi all, As I build the project in Eclipse with mvn package, it is successful. But as I build it again in command prompt I got error as follow. I changed the 'jar' to 'pom' in the pom-file but I still get the same error. Someone has tips? * D:\Temp\MyProjects\jboss-seam-multi\jboss-seam-warmvn package [INFO] Scanning for projects... [INFO] [INFO] Building 1.0.0-1-SNAPSHOT jboss-seam-war [INFO]task-segment: [package] [INFO] [INFO] [resources:resources] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.richfaces.ui:richfaces-ui Reason: Parent: org.richfaces:ui:jar:3.2.2.SR1 of project: org.richfaces.ui:rich faces-ui has wrong packaging: jar. Must be 'pom'. for project org.richfaces.ui:r ichfaces-ui [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 3 seconds [INFO] Finished at: Fri Jan 16 10:18:17 CET 2009 [INFO] Final Memory: 6M/12M [INFO] -- View this message in context: http://www.nabble.com/A-questionabout-%22Error-building-POM-%28may-not-be-this-project%27s-POM%29.%22-tp21495408p21564589.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
RE: Interdependencies between modules
This is worse when incorporated into a multi-module build: When the reactor builds B it is not guaranteed to use locally built A. If someone deployed to the repository, then it would use that one. Is this an issue? Or have I missed something? -Original Message- From: bmat...@gmail.com [mailto:bmat...@gmail.com] On Behalf Of Baptiste MATHUS Sent: 20 January 2009 12:56 To: Maven Users List Subject: Re: Interdependencies between modules Just a thought: use profile to disable your repository? Or simply work offline (mvn -o)? This way it will only use your local jar. Cheers. 2009/1/20 Richard Chamberlain richard.chamberl...@caplin.com Hi All, I've got a question about how maven works when there is a newer remote library than a locally installed artefact. Say I've got project A and project B. B depends on A. - I build A and install it, to test that B will work with the API changes in A. - If I build B it will use my locally built copy of A, everything is fine UNLESS: The continuous integration tool builds a new copy of A after I build A and install locally. When I come to build B it pulls in the remote copy of A and my local change in A is ignored. How can I stop this happening as it does not give a predicatable build? I really need to tell B to update its dependencies except for A. Thanks in advance, Rich -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven inheritence works with 2.1-SNAPSHOT but not with 2.0.9
You found a bug in 2.1-SNAPSHOT. The parents must be pom packaging types. If you want to share checkstyle, just bundle it into a jar with assembly, and then you can add that jar as a dependency to your checkstyle config. You don't need to inherit from the checkstyle jar itself, Checkstyle will find the xml on the classpath. I wrote some examples about this here: http://blogs.sonatype.com/people/2008/04/how-to-share-resources-across-proje cts-in-maven/ http://blogs.sonatype.com/people/2008/04/how-to-override-a-plugins-dependenc y-in-maven/ --Brian On 1/20/09 8:03 AM, kukudas kukuda...@googlemail.com wrote: Hi, i have a problem and i hope somebody can help me. I'm kinda new to this things so maybe my approach is generaly wrong. i'm having a parent for example like this: modelVersion4.0.0/modelVersion groupIdorg.test/groupId artifactIdparent/artifactId version1/version build plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId dependencies dependency groupId${pom.parent.groupId}/groupId artifactId${pom.parent.artifactId}/artifactId version${pom.parent.version}/version /dependency /dependencies /plugin reporting plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId configuration configLocationcheckstyle.xml/configLocation /configuration /plugin /plugins /reporting /project And a child like this: parent groupIdorg.test/groupId artifactIdparent/artifactId version1/version /parent modelVersion4.0.0/modelVersion groupIdorg.test/groupId artifactIdchild/artifactId When i use Maven 2.0.9 i get the error that parent packaging has to be pom. But it has to be jar so my child can access the checkstyle.xml which is in the parent projects resource folder. With Maven 2.1-SNAPSHOT it works as expected (checkstyle runs with my rules which are in the parents resource folder). Is there maybe a better way to solve this or somehow make it work with both versions? I don't want to use packaging jar, run clean install for my parent and then change it to pom so that it will work with 2.0.9. Thanks in advance kukudas - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Interdependencies between modules
What do you mean by someone deployed to the repository. It has to be you, particularly if you're working offline. As the local maven repository is local, this should not be possible. You're not sharing your local repository with others are you? Did you try with mvn -o? You're not very clear about it in your last mail. Cheers 2009/1/20 Richard Chamberlain richard.chamberl...@caplin.com This is worse when incorporated into a multi-module build: When the reactor builds B it is not guaranteed to use locally built A. If someone deployed to the repository, then it would use that one. Is this an issue? Or have I missed something? -Original Message- From: bmat...@gmail.com [mailto:bmat...@gmail.com] On Behalf Of Baptiste MATHUS Sent: 20 January 2009 12:56 To: Maven Users List Subject: Re: Interdependencies between modules Just a thought: use profile to disable your repository? Or simply work offline (mvn -o)? This way it will only use your local jar. Cheers. 2009/1/20 Richard Chamberlain richard.chamberl...@caplin.com Hi All, I've got a question about how maven works when there is a newer remote library than a locally installed artefact. Say I've got project A and project B. B depends on A. - I build A and install it, to test that B will work with the API changes in A. - If I build B it will use my locally built copy of A, everything is fine UNLESS: The continuous integration tool builds a new copy of A after I build A and install locally. When I come to build B it pulls in the remote copy of A and my local change in A is ignored. How can I stop this happening as it does not give a predicatable build? I really need to tell B to update its dependencies except for A. Thanks in advance, Rich -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
RE: Interdependencies between modules
Apologies for not being clear. In my second mail i had thought of another situation where interdependencies between artefacts you have built cause an unpredictable build. Let me illustrate the problem clearer. Parent P Project A Project B Project C - depends on A mvn install My reactor build would do: - Build Project P - Build Project A - installed into local repo - Build project B - installed into local repo During the build of Project B, an updated Project A was put into the remote repository by, say an automated build - Build Project C (during build of project C it would have downloaded project A) Therefore project C would not build with my project A. I cannot use offline with this multi-module project as I want A, B and C to pull in any changes to third-party artefacts. I may have understood the way that maven works in this regards, please could you let me know if this is an issue. Regards, Richard -Original Message- From: bmat...@gmail.com [mailto:bmat...@gmail.com] On Behalf Of Baptiste MATHUS Sent: 20 January 2009 15:43 To: Maven Users List Subject: Re: Interdependencies between modules What do you mean by someone deployed to the repository. It has to be you, particularly if you're working offline. As the local maven repository is local, this should not be possible. You're not sharing your local repository with others are you? Did you try with mvn -o? You're not very clear about it in your last mail. Cheers 2009/1/20 Richard Chamberlain richard.chamberl...@caplin.com This is worse when incorporated into a multi-module build: When the reactor builds B it is not guaranteed to use locally built A. If someone deployed to the repository, then it would use that one. Is this an issue? Or have I missed something? -Original Message- From: bmat...@gmail.com [mailto:bmat...@gmail.com] On Behalf Of Baptiste MATHUS Sent: 20 January 2009 12:56 To: Maven Users List Subject: Re: Interdependencies between modules Just a thought: use profile to disable your repository? Or simply work offline (mvn -o)? This way it will only use your local jar. Cheers. 2009/1/20 Richard Chamberlain richard.chamberl...@caplin.com Hi All, I've got a question about how maven works when there is a newer remote library than a locally installed artefact. Say I've got project A and project B. B depends on A. - I build A and install it, to test that B will work with the API changes in A. - If I build B it will use my locally built copy of A, everything is fine UNLESS: The continuous integration tool builds a new copy of A after I build A and install locally. When I come to build B it pulls in the remote copy of A and my local change in A is ignored. How can I stop this happening as it does not give a predicatable build? I really need to tell B to update its dependencies except for A. Thanks in advance, Rich -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
debugging netbeans modules configured as maven projects
Hello, I would like to debug a maven netbeans module which plugs into a custom platform application. Can someone provide the action configuration to accomplish this? Nathan
Re: debugging netbeans modules configured as maven projects
what version of the nbm-maven-plugin are you using? there's nbm:run-ide goal that should allow debugging as well. http://mojo.codehaus.org/nbm-maven-plugin/run-ide-mojo.html Milos On Tue, Jan 20, 2009 at 7:49 PM, Nathan Rice exnihiloadnih...@gmail.com wrote: Hello, I would like to debug a maven netbeans module which plugs into a custom platform application. Can someone provide the action configuration to accomplish this? Nathan - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] TrueZip Maven Plugin 1.0 beta 1 released
The MOJO team is pleased to announce the first beta release of truezip-maven-plugin which is mainly used to manipulate archive files on the fly. The site is at http://mojo.codehaus.org/truezip-maven-plugin Enjoy Dan T. Tran - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: debugging netbeans modules configured as maven projects
The version of the plug-in I have was built on 11/10/08. I am trying to debug modules that plug into a 3rd party platform application. I specified the netbeans.installation parameter, however I was unsure of what to use for the clusterbuilddir and userbuilddir parameters, so I did not specify them. I had issues with the maven actions dialogue in the project properties stripping quotation marks and removing backslashes if not enclosed in quotes or escaped as well. When properly formed, with only the netbeans.installation parameter for the run-ide action, I get the following error: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.AbstractStringBuilder.deleteCharAt(AbstractStringBuilder.java:770) at java.lang.StringBuffer.deleteCharAt(StringBuffer.java:382) at org.codehaus.mojo.nbm.RunNetBeansMojo.execute(RunNetBeansMojo.java:118) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) Is this related to the fact that several parameters that were specified as required but were listed as having a default value were not passed? Nathan On Tue, Jan 20, 2009 at 12:05 PM, Milos Kleint mkle...@gmail.com wrote: what version of the nbm-maven-plugin are you using? there's nbm:run-ide goal that should allow debugging as well. http://mojo.codehaus.org/nbm-maven-plugin/run-ide-mojo.html Milos On Tue, Jan 20, 2009 at 7:49 PM, Nathan Rice exnihiloadnih...@gmail.com wrote: Hello, I would like to debug a maven netbeans module which plugs into a custom platform application. Can someone provide the action configuration to accomplish this? Nathan - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How to reference home directory in linux?
Hi, I want to set the local repository position with this expression ~/m2/repo, which is also used as an example in settings.xml. But it seems not working unless I change it into absolute path such as /home/abc/m2/repo. 1) Is it a bug of maven? 2) How can I do if a reference to home directory is needed here? Thanks! -- View this message in context: http://www.nabble.com/How-to-reference-home-directory-in-linux--tp21577957p21577957.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
RE: How to reference home directory in linux?
Try, properties my.rootC:/App/proj/my.root urlfile:///${my.root}/Maven/repository/url -Original Message- From: keepfocusing [mailto:keepfocus...@gmail.com] Sent: Wednesday, January 21, 2009 8:48 AM To: users@maven.apache.org Subject: How to reference home directory in linux? Hi, I want to set the local repository position with this expression ~/m2/repo, which is also used as an example in settings.xml. But it seems not working unless I change it into absolute path such as /home/abc/m2/repo. 1) Is it a bug of maven? 2) How can I do if a reference to home directory is needed here? Thanks! -- View this message in context: http://www.nabble.com/How-to-reference-home-directory-in-linux--tp21577957p21577957.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 Received via pineapp Sent via pineapp - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: A questionabout Error building POM (may not be this project's POM).
I solved the problem. thomas2004 wrote: Hi all, As I build the project in Eclipse with mvn package, it is successful. But as I build it again in command prompt I got error as follow. Someone has tips? * D:\Temp\MyProjects\jboss-seam-multi\jboss-seam-warmvn package [INFO] Scanning for projects... [INFO] [INFO] Building 1.0.0-1-SNAPSHOT jboss-seam-war [INFO]task-segment: [package] [INFO] [INFO] [resources:resources] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.richfaces.ui:richfaces-ui Reason: Parent: org.richfaces:ui:jar:3.2.2.SR1 of project: org.richfaces.ui:rich faces-ui has wrong packaging: jar. Must be 'pom'. for project org.richfaces.ui:r ichfaces-ui [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 3 seconds [INFO] Finished at: Fri Jan 16 10:18:17 CET 2009 [INFO] Final Memory: 6M/12M [INFO] -- View this message in context: http://www.nabble.com/A-questionabout-%22Error-building-POM-%28may-not-be-this-project%27s-POM%29.%22-tp21495408p21578112.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
Re: How to reference home directory in linux?
On Wed, Jan 21, 2009 at 8:47 AM, keepfocusing keepfocus...@gmail.comwrote: Hi, I want to set the local repository position with this expression ~/m2/repo, which is also used as an example in settings.xml. But it seems not working unless I change it into absolute path such as /home/abc/m2/repo. 1) Is it a bug of maven? 2) How can I do if a reference to home directory is needed here? I havn't tried it, but did you try referencing it by ${user.home}? Found this example here: http://maven.apache.org/settings.html ... profiles profile ... properties user.install${user.home}/our-project/user.install /properties ... /profile /profiles ... Bye Thanks! -- View this message in context: http://www.nabble.com/How-to-reference-home-directory-in-linux--tp21577957p21577957.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 -- Haim
compiltaion of .java problem
Hi, I have directory strucute like this a/b a/c a/d.java a/e.java I have one pom.xml under a directory .. Having code for compilation and redirecting directories from there Like m 4.0.0 a 1.0 pom b c ${TOPDIR}/${JAVA_CLASSES_SRC}/${CUR_DIR} -- all properties are defined ${TOPDIR}/${JAVA_CLASSES_DEST} ${basedir}/test ${TOPDIR}/${JAVA_CLASSES_DEST} --- code for compilation- maven-compiler-plugin What happen when I do mvn compile ,under a directory .. Directories b and c get compiled but not all .java files under a means a/d.java and a/e.java is not getting compild . WHY ? Plz help me -- View this message in context: http://www.nabble.com/compiltaion-of-.java-problem-tp21578305p21578305.html Sent from the Maven - Users mailing list archive at Nabble.com.
FW: Unsubscribe
Please unsubscribe me. not sure why this isn't getting thru From: Durbha, Praveen (GE Healthcare) Sent: Tuesday, January 20, 2009 2:43 AM To: 'users-unsubscr...@maven.apache.org' Subject: Unsubscribe Please unsubscribe me.. Thanks