Re: uploading jars to a internal repository using "mvn deploy"
I think the purpose of http://proximity.abstracthorizon.org/ Proximity is to do just that - act as a mirror and be an inhouse repository? Have I got it wrong? Owen Jacobson-2 wrote: > > > On 28-Sep-07, at 1:10 AM, owen_moony wrote: > >> I have just created an internal maven repository using proximity >> (http://proximity.abstracthorizon.org). Everything is great, its >> acting as a >> proxy and getting the jars from the internet and caching them - >> brilliant! >> My only question is how do I upload my own jars created by me? > > Upload them to a bog-standard maven repository using, for example, > scp or webdav. Maven repos are just directory trees of a known > structure. > >> Is there an easier way to create an internal repository (forget >> proximity), >> so that you can use the "mvn deploy" command and get the thing to >> act as a >> proxy and cache to the internet jars? > > Maintain your in-house repository in parallel to your mirror, rather > than trying to use one repo for both tasks. > > Cheers, > Owen > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/uploading-jars-to-a-internal-repository-using-%22mvn-deploy%22-tf4533027s177.html#a12993245 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: access to MavenProject help
I see 1 typo that would explain the problem: parameter instead of @parameter regards, Hervé Le mardi 2 octobre 2007, Mark Russell a écrit : > I am trying to develop a plugin and get access to the MavenProject. Here > is my code: /** > * parameter expression="${project}" > */ > private MavenProject mavenProject; > > . . . > if (mavenProject != null) { > List repositories = mavenProject.getRepositories(); > for (Object object : repositories) { > getLog().info(object.getClass().getName()); > } > } > else { > getLog().info("no project"); > } > > All I ever get printed out is the no project message. I also tried with > artifact repository and get the same results. Here is my dependencies in > my pom: > > > org.apache.maven > maven-plugin-api > 2.0 > > > org.apache.maven > maven-project > 2.0 > > > org.apache.maven > maven-artifact > 2.0 > > > > I would like any help on this that I could get. I need to get this code up > and running I have several people waiting for this. I have read the book > "Better Builds with Maven" and the MOJO Developer's handbook and can not > seem to get this working. > > thanks for your help in advance! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multi-module unit testing
Hi Eric, Thank you for your reply. Your solution is definitly getting me there but I am still a little bit confused about dependencies of these projects. Won't you run into a cirucular dependency issue between common test project and the library it support? From example, A, B are lib projects and C is app project, currently test setup classes are in A and B and are used by A and B test classes. So in theory, say you create a test project T, C will depend on A, B and T, T depends on A and B but A and B also depend on T. Maybe I am thinking too much? My head is definitly hurting %-| Thanks again, Pierre Eric Daigneault-2 wrote: > > Hi Pierre, > > The way I solved this for myself was to create a test project and put all > the common test code in it (as normal stuff, not as test stuff) then I > used > the test project in all other projects as a dependency. This way I have > access to the common test stuff. then to ensure that the extra project > (jar) does not make it in the final package I declared it as test in it`s > dependency scope. > > Extending the above principle I usually have two such jars for my > projects, > one that is all the common code used in all tests, there I place all the > generic stuff that can be reusable and is not specific. Another I will > put > all the mocks stubs and other such classes that are specific to the high > level project. This way all modules will have access to them and I only > code my stuff once. Great thing about this is that I can then code unit > tests on the test classes. May sound a bit excessive but when people > lives > depend on the code you produce a bit of paranoia actually help to protect > ones sanity. > > Of course for the stubs parts, to prevent circular dependencies you may > have > to separate the interface for your library from the implementation, which > in > time makes for more stable code. The downside is the multiplication of > modules. > > I hope this helps > > Éric :D. > > > On 10/1/07, Awaragi <[EMAIL PROTECTED]> wrote: >> >> >> Hi All, >> >> i hope that this question was not asked before as I am new to maven and >> to >> this forum. I am trying to build a multi-module project with three >> modules: >> libraries A and B and application C which depends on A and B. Libraries A >> and B have their unit testing classes which use a setup class to load >> testing resources, setup database connection, etc. This works all fine >> and >> nice for A and B. Now I am in the process of writting unit tests for >> application module C and i don't want to do copy/paste of the setup >> classes >> of A and B but I cannot find a way to make unit test classes of C to >> depend >> on unit test classes of A and B. >> >> I thought of moving some of these setup classes to main as a workaround >> but >> then i have to add quite a few test libraries to these modules and to the >> web-inf/lib folder of the final war file. Including a database jdbc >> driver >> is not acceptable so this workaround is not the way to go. >> >> Can anyone please help me with this setup? >> >> Pierre >> -- >> View this message in context: >> http://www.nabble.com/multi-module-unit-testing-tf4551612s177.html#a12989166 >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/multi-module-unit-testing-tf4551612s177.html#a12993076 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
access to MavenProject help
I am trying to develop a plugin and get access to the MavenProject. Here is my code: /** * parameter expression="${project}" */ private MavenProject mavenProject; . . . if (mavenProject != null) { List repositories = mavenProject.getRepositories(); for (Object object : repositories) { getLog().info(object.getClass().getName()); } } else { getLog().info("no project"); } All I ever get printed out is the no project message. I also tried with artifact repository and get the same results. Here is my dependencies in my pom: org.apache.maven maven-plugin-api 2.0 org.apache.maven maven-project 2.0 org.apache.maven maven-artifact 2.0 I would like any help on this that I could get. I need to get this code up and running I have several people waiting for this. I have read the book "Better Builds with Maven" and the MOJO Developer's handbook and can not seem to get this working. thanks for your help in advance! -- Mark Russell Instantiations, Inc. 724-368-3331 (land line) http://www.instantiations.com smime.p7s Description: S/MIME Cryptographic Signature
How to always get latest version of the dependency?
How do I always download the latest version of the dependency? So far, I've always had to specify the version of the dependency I want. Thanks, Siegfried
Re: uploading jars to a internal repository using "mvn deploy"
cstamas wrote: > > you could try to use WebDAV (confgure it as build extension in mvn > 2.0.7) and point the repo URL to address: > http://devserver1:/px-webapp/dav/inhouse > Thank you so much for that suggestion!! it got me that little closer to the answer, which seems to be (notice the 'dav:http://' rather than just 'http://'): deployserver dav:http://devserver1:9990/px-webapp/dav/inhouse Although, i managed to do the same thing using: scpexe://192.168.0.157/home/owen/proximity/inhouse.snapshot/storage and having a http://maven.apache.org/ref/current/maven-settings/settings.html#class_server server defined in my setting.xml with the location of my public key (NOTE: password would not work in this server tag when doing a deploy, i think its a bug). But using scp is a pain, because you have to create scp accounts and keys etc. The only thing is, for some strange reason, the dav seems to take a lot longer - like 2min instead of scp, which takes a few seconds to deploy the jars to the company repository. And for those who have stumbled over this looking for help, to use the distributionManagement tag mentioned above, you will need to also add to the pom.xml the following: org.apache.maven.wagon wagon-ssh-external 1.0-alpha-5 org.apache.maven.wagon wagon-webdav 1.0-beta-2 Thanks, Owen. -- View this message in context: http://www.nabble.com/uploading-jars-to-a-internal-repository-using-%22mvn-deploy%22-tf4533027s177.html#a12992552 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HOW TO RUN MULTIPLE PACKAGING USING DIFFERENT ENV?
I am trying to implement packaging multiple into multiple ear files using profile activation, using classifier. for example mvn package -DEnv=Alpha maven package into file-0.5-snapshot-alpha.ear and then mvn package -DEnv=Delta maven package into file-0.5-snapshot-delta.ear but I need to do multiple packaging which is do something like mvn package -DEnv=Delta package -DEnv=Alpha, so it can package twice in the same process and with different Env profile, Hopefully this is doable. --Ming -- View this message in context: http://www.nabble.com/HOW-TO-RUN-MULTIPLE-PACKAGING-USING-DIFFERENT-ENV--tf4552478s177.html#a12991651 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setup gotchya
Why are you trying to connect to ibiblio at all? Just use the standard repo1.maven.org as suggested by John. Additionally, try adding -U to force updates of artifacts. And/or delete the ~/.m2/repository directory to get rid of "bad metadata" and try again with a -U. Wayne On 10/1/07, John Quinn <[EMAIL PROTECTED]> wrote: > Why not try commenting ibiblio out in your settings.xml to check your > theory. > > Then downloads would come from the central repository: > > http://repo1.maven.org/maven2 > > On 10/1/07, Jason Nerothin <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > I've been trying to get maven 2 working for a while now, and have had next > > to zero luck doing so. I suspect has something to do with codehaus servers > > being down, which maven apparently wishes to contact for downloading from > > "central". I've tried forcing mvn to contact a mirror in place of central, > > also to no avail. I'm hoping that someone can point me in the right > > direction and will point me at the gotchya I'm missing here. > > > > Debug info follows: > > > > [INFO] > > > > [EMAIL PROTECTED]:~$ mvn --version > > Maven version: 2.0.7 > > Java version: 1.6.0 > > OS name: "linux" version: "2.6.20-16-generic" arch: "i386" > > > > [EMAIL PROTECTED]:~$ mvn archetype:create > > -DgroupId=com.whatever-DartifactId=whatever -e > > + Error stacktraces are turned on. > > [INFO] Scanning for projects... > > [INFO] Searching repository for plugin with prefix: 'archetype'. > > [INFO] > > > > [ERROR] BUILD ERROR > > [INFO] > > > > [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does > > not > > exist or no valid version could be found > > [INFO] > > > > [INFO] Trace > > org.apache.maven.lifecycle.LifecycleExecutionException: The plugin ' > > org.apache.maven.plugins:maven-archetype-plugin' does not exist or no > > valid > > version could be found > >at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin > > ( > > DefaultLifecycleExecutor.java:1286) > >at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor( > > DefaultLifecycleExecutor.java:1522) > >at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds > > (DefaultLifecycleExecutor.java:386) > >at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( > > DefaultLifecycleExecutor.java:138) > >at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) > >at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) > >at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) > >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >at sun.reflect.NativeMethodAccessorImpl.invoke( > > NativeMethodAccessorImpl.java:39) > >at sun.reflect.DelegatingMethodAccessorImpl.invoke( > > DelegatingMethodAccessorImpl.java:25) > >at java.lang.reflect.Method.invoke(Method.java:597) > >at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java > > :315) > >at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > >at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java > > :430) > >at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > > Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: > > The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not > > exist > > or no valid version could be found > >at > > > > org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion > > (DefaultPluginVersionManager.java:228) > >at > > > > org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion > > (DefaultPluginVersionManager.java:90) > >at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin( > > DefaultPluginManager.java:166) > >at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin > > ( > > DefaultLifecycleExecutor.java:1257) > >... 14 more > > [INFO] > > > > [INFO] Total time: < 1 second > > [INFO] Finished at: Mon Oct 01 16:06:18 CDT 2007 > > [INFO] Final Memory: 1M/4M > > [INFO] > > > > > > DIFFERENT FLAG > > > > [EMAIL PROTECTED]:~$ mvn archetype:create > > -DgroupId=com.whatever-DartifactId=whatever -X > > + Error stacktraces are turned on. > > Maven version: 2.0.7 > > Java version: 1.6.0 > > OS name: "linux" version: "2.6.20-16-generic" arch: "i386" > > [DEBUG] Building Maven user-level plugin registry from: > > '/home/jason/.m2/plugin-registry.xml' > > [DE
RE: How to fabricate class path and execute program from Maven (RE: How to run maven goals from Eclipse?)
There is something called the exec plugin I believe and I think something also called the app-builder. Try searching using the google search on the maven.apache.org page. The dependency plugin can output the classpath to a file for later execution. -Original Message- From: siegfried [mailto:[EMAIL PROTECTED] Sent: Monday, October 01, 2007 6:13 PM To: 'Maven Users List' Subject: How to fabricate class path and execute program from Maven (RE: How to run maven goals from Eclipse?) I believe Carlos already responded to my question below. I think he said to google search for the plug in (I could not find his response, maybe I deleted it). Well I did some searching and successfully demonstrated the anttasks features at http://maven.apache.org/plugins/maven-antrun-plugin/examples/tasksAttrib utes .html. This is close, but not exactly what I had in mind: this will allow me to execute additional commands as part of an existing goal like test or compile or deploy. Since I'm not allowed to create a custom goal like "execute", is there a plug-in that I can invoke like (see http://maven.apache.org/guides/plugin/guide-java-plugin-development.html ) "mvn hello:execute". This seems like a very easy plug in to write and I'm surprised I am having such a hard time finding it. Surely someone has already written this? What should I search for? I tried ant, execute, run, and no luck so far. Thanks, Siegfried > (3) Now in the Maven 1 book (that one with the purple cover from the > Developers Notebook series), there was a jelly script to fabricate the class > path so I could run a java application implemented in the maven project. Is > there a maven plug-in counter part to this jelly script so I can see my main > programs run? Will that same jelly script still run in Maven 2? > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multi-module unit testing
Hi Pierre, The way I solved this for myself was to create a test project and put all the common test code in it (as normal stuff, not as test stuff) then I used the test project in all other projects as a dependency. This way I have access to the common test stuff. then to ensure that the extra project (jar) does not make it in the final package I declared it as test in it`s dependency scope. Extending the above principle I usually have two such jars for my projects, one that is all the common code used in all tests, there I place all the generic stuff that can be reusable and is not specific. Another I will put all the mocks stubs and other such classes that are specific to the high level project. This way all modules will have access to them and I only code my stuff once. Great thing about this is that I can then code unit tests on the test classes. May sound a bit excessive but when people lives depend on the code you produce a bit of paranoia actually help to protect ones sanity. Of course for the stubs parts, to prevent circular dependencies you may have to separate the interface for your library from the implementation, which in time makes for more stable code. The downside is the multiplication of modules. I hope this helps Éric :D. On 10/1/07, Awaragi <[EMAIL PROTECTED]> wrote: > > > Hi All, > > i hope that this question was not asked before as I am new to maven and to > this forum. I am trying to build a multi-module project with three > modules: > libraries A and B and application C which depends on A and B. Libraries A > and B have their unit testing classes which use a setup class to load > testing resources, setup database connection, etc. This works all fine and > nice for A and B. Now I am in the process of writting unit tests for > application module C and i don't want to do copy/paste of the setup > classes > of A and B but I cannot find a way to make unit test classes of C to > depend > on unit test classes of A and B. > > I thought of moving some of these setup classes to main as a workaround > but > then i have to add quite a few test libraries to these modules and to the > web-inf/lib folder of the final war file. Including a database jdbc driver > is not acceptable so this workaround is not the way to go. > > Can anyone please help me with this setup? > > Pierre > -- > View this message in context: > http://www.nabble.com/multi-module-unit-testing-tf4551612s177.html#a12989166 > Sent from the Maven - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
multi-module unit testing
Hi All, i hope that this question was not asked before as I am new to maven and to this forum. I am trying to build a multi-module project with three modules: libraries A and B and application C which depends on A and B. Libraries A and B have their unit testing classes which use a setup class to load testing resources, setup database connection, etc. This works all fine and nice for A and B. Now I am in the process of writting unit tests for application module C and i don't want to do copy/paste of the setup classes of A and B but I cannot find a way to make unit test classes of C to depend on unit test classes of A and B. I thought of moving some of these setup classes to main as a workaround but then i have to add quite a few test libraries to these modules and to the web-inf/lib folder of the final war file. Including a database jdbc driver is not acceptable so this workaround is not the way to go. Can anyone please help me with this setup? Pierre -- View this message in context: http://www.nabble.com/multi-module-unit-testing-tf4551612s177.html#a12989166 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to fabricate class path and execute program from Maven (RE: How to run maven goals from Eclipse?)
I believe Carlos already responded to my question below. I think he said to google search for the plug in (I could not find his response, maybe I deleted it). Well I did some searching and successfully demonstrated the anttasks features at http://maven.apache.org/plugins/maven-antrun-plugin/examples/tasksAttributes .html. This is close, but not exactly what I had in mind: this will allow me to execute additional commands as part of an existing goal like test or compile or deploy. Since I'm not allowed to create a custom goal like "execute", is there a plug-in that I can invoke like (see http://maven.apache.org/guides/plugin/guide-java-plugin-development.html) "mvn hello:execute". This seems like a very easy plug in to write and I'm surprised I am having such a hard time finding it. Surely someone has already written this? What should I search for? I tried ant, execute, run, and no luck so far. Thanks, Siegfried > (3) Now in the Maven 1 book (that one with the purple cover from the > Developers Notebook series), there was a jelly script to fabricate the class > path so I could run a java application implemented in the maven project. Is > there a maven plug-in counter part to this jelly script so I can see my main > programs run? Will that same jelly script still run in Maven 2? > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What value do I set M2_REPO to?
Your Maven 2 repository which on windows would be: C:\Documents and Settings\\.m2\repository etc. -aps On 10/1/07, siegfried <[EMAIL PROTECTED]> wrote: > > > > I've been reading http://mojo.codehaus.org/pde-maven-plugin/ and > http://maven.apache.org/guides/mini/guide-ide-eclipse.html and I'm not > sure > which page I want. > > > > What does the latter page mean when it says "Eclipse needs to know the > path > to the local maven repository. Therefore the classpath variable M2_REPO > has > to be set." > > > > Can someone explain this? What is M2_REPO and what value should I set it > to? > > > > I downloaded the code for the book "Spring in Action" Edition 2 > and noticed > "mvn test" successfully downloaded the necessary files and ran the unit > tests. I want to use eclipse to look at the source code and maybe edit it. > Is http://maven.apache.org/guides/mini/guide-ide-eclipse.html the page I > want? > > > > Thanks, > > siegfried > > -- "What lies behind us and what lies in front of us is of little concern to what lies within us." -Ralph Waldo Emerson
What value do I set M2_REPO to?
I've been reading http://mojo.codehaus.org/pde-maven-plugin/ and http://maven.apache.org/guides/mini/guide-ide-eclipse.html and I'm not sure which page I want. What does the latter page mean when it says "Eclipse needs to know the path to the local maven repository. Therefore the classpath variable M2_REPO has to be set." Can someone explain this? What is M2_REPO and what value should I set it to? I downloaded the code for the book "Spring in Action" Edition 2 and noticed "mvn test" successfully downloaded the necessary files and ran the unit tests. I want to use eclipse to look at the source code and maybe edit it. Is http://maven.apache.org/guides/mini/guide-ide-eclipse.html the page I want? Thanks, siegfried
Re: Setup gotchya
Why not try commenting ibiblio out in your settings.xml to check your theory. Then downloads would come from the central repository: http://repo1.maven.org/maven2 On 10/1/07, Jason Nerothin <[EMAIL PROTECTED]> wrote: > > Hello, > > I've been trying to get maven 2 working for a while now, and have had next > to zero luck doing so. I suspect has something to do with codehaus servers > being down, which maven apparently wishes to contact for downloading from > "central". I've tried forcing mvn to contact a mirror in place of central, > also to no avail. I'm hoping that someone can point me in the right > direction and will point me at the gotchya I'm missing here. > > Debug info follows: > > [INFO] > > [EMAIL PROTECTED]:~$ mvn --version > Maven version: 2.0.7 > Java version: 1.6.0 > OS name: "linux" version: "2.6.20-16-generic" arch: "i386" > > [EMAIL PROTECTED]:~$ mvn archetype:create > -DgroupId=com.whatever-DartifactId=whatever -e > + Error stacktraces are turned on. > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'archetype'. > [INFO] > > [ERROR] BUILD ERROR > [INFO] > > [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does > not > exist or no valid version could be found > [INFO] > > [INFO] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: The plugin ' > org.apache.maven.plugins:maven-archetype-plugin' does not exist or no > valid > version could be found >at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin > ( > DefaultLifecycleExecutor.java:1286) >at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor( > DefaultLifecycleExecutor.java:1522) >at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds > (DefaultLifecycleExecutor.java:386) >at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( > DefaultLifecycleExecutor.java:138) >at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) >at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) >at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >at sun.reflect.NativeMethodAccessorImpl.invoke( > NativeMethodAccessorImpl.java:39) >at sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:25) >at java.lang.reflect.Method.invoke(Method.java:597) >at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java > :315) >at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) >at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java > :430) >at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: > The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not > exist > or no valid version could be found >at > > org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion > (DefaultPluginVersionManager.java:228) >at > > org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion > (DefaultPluginVersionManager.java:90) >at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin( > DefaultPluginManager.java:166) >at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin > ( > DefaultLifecycleExecutor.java:1257) >... 14 more > [INFO] > > [INFO] Total time: < 1 second > [INFO] Finished at: Mon Oct 01 16:06:18 CDT 2007 > [INFO] Final Memory: 1M/4M > [INFO] > > > DIFFERENT FLAG > > [EMAIL PROTECTED]:~$ mvn archetype:create > -DgroupId=com.whatever-DartifactId=whatever -X > + Error stacktraces are turned on. > Maven version: 2.0.7 > Java version: 1.6.0 > OS name: "linux" version: "2.6.20-16-generic" arch: "i386" > [DEBUG] Building Maven user-level plugin registry from: > '/home/jason/.m2/plugin-registry.xml' > [DEBUG] Building Maven global-level plugin registry from: > '/home/jason/programs/maven-2.0.7/conf/plugin-registry.xml' > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'archetype'. > [DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins > [DEBUG] Loading plugin prefixes from group: org.codehaus.mojo > [DEBUG] maven-archetype-plugin: using locally installed snapshot > [DEBUG] Artifact not found - using stub model: Unable to determine the > latest version > org.apache.maven.plugins:maven-ar
Setup gotchya
Hello, I've been trying to get maven 2 working for a while now, and have had next to zero luck doing so. I suspect has something to do with codehaus servers being down, which maven apparently wishes to contact for downloading from "central". I've tried forcing mvn to contact a mirror in place of central, also to no avail. I'm hoping that someone can point me in the right direction and will point me at the gotchya I'm missing here. Debug info follows: [INFO] [EMAIL PROTECTED]:~$ mvn --version Maven version: 2.0.7 Java version: 1.6.0 OS name: "linux" version: "2.6.20-16-generic" arch: "i386" [EMAIL PROTECTED]:~$ mvn archetype:create -DgroupId=com.whatever-DartifactId=whatever -e + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin ' org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin( DefaultLifecycleExecutor.java:1286) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor( DefaultLifecycleExecutor.java:1522) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds (DefaultLifecycleExecutor.java:386) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:138) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java :315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java :430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion (DefaultPluginVersionManager.java:228) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion (DefaultPluginVersionManager.java:90) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin( DefaultPluginManager.java:166) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin( DefaultLifecycleExecutor.java:1257) ... 14 more [INFO] [INFO] Total time: < 1 second [INFO] Finished at: Mon Oct 01 16:06:18 CDT 2007 [INFO] Final Memory: 1M/4M [INFO] DIFFERENT FLAG [EMAIL PROTECTED]:~$ mvn archetype:create -DgroupId=com.whatever-DartifactId=whatever -X + Error stacktraces are turned on. Maven version: 2.0.7 Java version: 1.6.0 OS name: "linux" version: "2.6.20-16-generic" arch: "i386" [DEBUG] Building Maven user-level plugin registry from: '/home/jason/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/home/jason/programs/maven-2.0.7/conf/plugin-registry.xml' [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins [DEBUG] Loading plugin prefixes from group: org.codehaus.mojo [DEBUG] maven-archetype-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the latest version org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST [DEBUG] maven-archetype-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the release version org.apache.maven.plugins:maven-archetype-plugin:pom:RELEASE [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-archetype-
Re: Maven JavaScript Plugin 1.2 released
I removed the tags that seem to have been causing the problem. If the problem still persists, enter it as an issue and I'll fix it ASAP. Thanks, Adam Altemus http://www.mobilvox.com On 10/1/07, Insitu <[EMAIL PROTECTED]> wrote: > > >> Adam Altemus wrote: > >> > Can you give me some information on your environment? I'm pretty > sure I > >> > know what the error is but, I need to make sure. > >> > >> Looks like a java 1.4 environment trying to compile java 1.5 to me ;-) > >> > >> > >> Manos > > hello, > This problem has sometimes bitten me in the past and is due to qdox > library not being able to handle java5 language constructs. I think > the problem may depends on the qdox version used which itself depends > on the maven-plugin-plugin used. Or so I believe... > > $ java -version > java version "1.6.0" > Java(TM) SE Runtime Environment (build 1.6.0-b105) > Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode) > > $ mvn -v > Maven version: 2.0.6 > > Regards > -- > OQube < software engineering \ génie logiciel > > Arnaud Bailly, Dr. > \web> http://www.oqube.com > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
Re: Improving the documentation of plugins (was maven is hard)
Hi, the dashboard plugin is still snapshot and reside in the mojo sandbox. It not yet being released. Raphaël 2007/10/1, Brian E. Fox <[EMAIL PROTECTED]>: > > The mojo project has mailing lists > (http://mojo.codehaus.org/mail-lists.html) for those projects. > > -Original Message- > From: Tristan Cebulla [mailto:[EMAIL PROTECTED] > Sent: Monday, October 01, 2007 9:55 AM > To: users@maven.apache.org > Subject: Re: Improving the documentation of plugins (was maven is hard) > > > > Dennis Lundberg-2 wrote: > > > > Now on to the first question for all users out there: > > > > Which of the numbered items above needs more work? > > > > Please be either concrete with examples like: > >"option A for goal B in plugin C is really bad" > > or give more general thoughts that are valid for all plugins [3] at > the > > Maven project. > > > > Please try to keep this thread on topic. > > > > Hi there, > > I'm using the dashboard-maven-plugin > (http://mojo.codehaus.org/dashboard-maven-plugin/) , but I didn't find > any > useful/complete documentation about the plugin configuration parameters, > especially for XML usage in a pom.xml/master POM. > > Stupid trying out can be very tedious and I don't want to sit eight > hours > every day long testing options/parameters to get it work properly ;) > > > Regards, > Tristan Cebulla > -- > View this message in context: > http://www.nabble.com/Improving-the-documentation-of-plugins-%28was-mave > n-is-hard%29-tf4537045s177.html#a12979567 > Sent from the Maven - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Improving the documentation of plugins (was maven is hard)
Tristan Cebulla wrote: Dennis Lundberg-2 wrote: Now on to the first question for all users out there: Which of the numbered items above needs more work? Please be either concrete with examples like: "option A for goal B in plugin C is really bad" or give more general thoughts that are valid for all plugins [3] at the Maven project. Please try to keep this thread on topic. Hi there, I'm using the dashboard-maven-plugin (http://mojo.codehaus.org/dashboard-maven-plugin/) , but I didn't find any useful/complete documentation about the plugin configuration parameters, especially for XML usage in a pom.xml/master POM. Stupid trying out can be very tedious and I don't want to sit eight hours every day long testing options/parameters to get it work properly ;) Regards, Tristan Cebulla Hi, I had a quick glance and it seems that this plugin, which belongs to the Mojo project over at the Codehaus, has not been released yet. It is still in their sandbox. I guess you can expect the docs to be in the same state as the plugin - not yet finished. -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Improving the documentation of plugins (was maven is hard)
The mojo project has mailing lists (http://mojo.codehaus.org/mail-lists.html) for those projects. -Original Message- From: Tristan Cebulla [mailto:[EMAIL PROTECTED] Sent: Monday, October 01, 2007 9:55 AM To: users@maven.apache.org Subject: Re: Improving the documentation of plugins (was maven is hard) Dennis Lundberg-2 wrote: > > Now on to the first question for all users out there: > > Which of the numbered items above needs more work? > > Please be either concrete with examples like: >"option A for goal B in plugin C is really bad" > or give more general thoughts that are valid for all plugins [3] at the > Maven project. > > Please try to keep this thread on topic. > Hi there, I'm using the dashboard-maven-plugin (http://mojo.codehaus.org/dashboard-maven-plugin/) , but I didn't find any useful/complete documentation about the plugin configuration parameters, especially for XML usage in a pom.xml/master POM. Stupid trying out can be very tedious and I don't want to sit eight hours every day long testing options/parameters to get it work properly ;) Regards, Tristan Cebulla -- View this message in context: http://www.nabble.com/Improving-the-documentation-of-plugins-%28was-mave n-is-hard%29-tf4537045s177.html#a12979567 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven 2.1 release
Thx Daniel! MG -- Martin Goulet, B.Sc. * Vice President, Java Architecture, CSA * SunGard [EMAIL PROTECTED] * http://www.sungard.com/csa -Original Message- From: Siegmann Daniel, NY [mailto:[EMAIL PROTECTED] Sent: Monday, October 01, 2007 12:10 To: Maven Users List Subject: RE: Maven 2.1 release > Does anyone know when Maven 2.1. is intended to be released? > Is there a project roadmap published somewhere that I could > have a look at? IIRC work is being done to determine what issues should go to 2.1, and which should be later. It is also planned to release an alpha soon (I would expect w/in the next two months). You can see what issues are currently scheduled: http://jira.codehaus.org/browse/MNG You should also find some info on the wiki (http://docs.codehaus.org/display/MAVENUSER/Home), but my connection to that site is very slow right now, so I can't give you a direct link. :-/ -- Daniel Siegmann FJA-US, Inc. 512 7th Ave. 15th Flr. New York, NY 10018 (212) 840-2618 x139 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven 2.1 release
I'm looking for this fix: http://jira.codehaus.org/browse/MNG-553 MG -- Martin Goulet, B.Sc. * Vice President, Java Architecture, CSA * SunGard [EMAIL PROTECTED] * http://www.sungard.com/csa -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Monday, October 01, 2007 12:28 To: Maven Users List Subject: Re: Maven 2.1 release What in particular do you need/want that is available in 2.1 and not in 2.0? Or is this more of a general roadmap question. Wayne On 10/1/07, Siegmann Daniel, NY <[EMAIL PROTECTED]> wrote: > > Does anyone know when Maven 2.1. is intended to be released? > > Is there a project roadmap published somewhere that I could > > have a look at? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: custom jar contents?
Simple answer : If you need two jars then your project needs to be broken into two separate projects. To get a better understanding I would like to know why you require to have two jars ? different configurations ? optional components ? Believe me here I got through this a while ago on Maven and the best answer I found was to rethink long and hard as to why I needed this done, and the answer was that, in all things were made a lot simpler if I simple split the project in two separate jars then have a top level project to generate the actual package. Sometimes this top level package does not contain code at all, just POM and other declarations to determine the final packaging. For this I use the assembly plugin ( http://maven.apache.org/plugins/maven-assembly-plugin/) and generate a zip file with all needed for the software in a single archive. This being said... if you absolutely neeed the extra jars and spliting the code makes absolutely no sense the it is most probably possible to use the assembly plugin to bend the one project one jar rule. to summarize, at first I found Maven very frustrating to use until I found out that rethinking the way a project should be laid-out and how it should be built and packaged to follow Maven's philosophy it made things much more simple in the long run. After I changed to bend my habits to maven instead of the opposite I discovered I was spending MUCH less time managing the projects and packages and much more time actually coding and getting things done. On 10/1/07, Sonar, Nishant <[EMAIL PROTECTED]> wrote: > > Hi > > I have a structure as > > MyAppModule > > Src > > Main > > Java > > Com > > Myapp > > Bankapplication > > Some classes > > Utilities > > FormulaCalc > > someclasses > > DateCalc > > Someclasses > > Pom.xml > > > > I need top have 2 jars as utilitied and myappmodule. What can I do for > such a case where there's a single pom to generate 2 jars comprising > selective classes? > > > > -Nishant > >
Re: custom jar contents?
Your email lost its formatting. Please post on pastebin or a similar site and send the url as it is unclear what you are working with. In general, if you want 2 jars, you should make 2 modules which means 2 poms and 2 directories. If one set of files depends on the other (impl dep on api), then you should set dependencies between them etc as needed. Wayne On 10/1/07, Sonar, Nishant <[EMAIL PROTECTED]> wrote: > Hi > > I have a structure as > > MyAppModule > > Src > >Main > >Java > > Com > > Myapp > > Bankapplication > >Some classes > > Utilities > >FormulaCalc > >someclasses > >DateCalc > >Someclasses > > Pom.xml > > > > I need top have 2 jars as utilitied and myappmodule. What can I do for > such a case where there's a single pom to generate 2 jars comprising > selective classes? > > > > -Nishant > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
custom jar contents?
Hi I have a structure as MyAppModule Src Main Java Com Myapp Bankapplication Some classes Utilities FormulaCalc someclasses DateCalc Someclasses Pom.xml I need top have 2 jars as utilitied and myappmodule. What can I do for such a case where there's a single pom to generate 2 jars comprising selective classes? -Nishant
Re: "compilerArguments" for maven-compiler-plugin
Maven does not really "like" passing things via arguments -- this is the exception rather than the norm. You could probably use -Dmy.arg="blah blah" and then in the m-compiler-p set ${my.arg}. But this is not the "right" way to use Maven. If you have a few different sets of arguments, you should declare them in a profile, and set one to be active by default. Wayne On 10/1/07, Yan Huang <[EMAIL PROTECTED]> wrote: > Hello, > > Regarding maven-compiler-plugin, is there a way to pass compiler arguments > on the command line rather than through pom.xml? I don't find "expression" > defined in its manual page though. > > Thanks > Yan > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error when project group has trailing spaces..
Hi Emmanuel, See below the whole output report Thanks for the help, Regards, Iker Online report : http://continuum_server:8080/continuum/buildResult.action?buildId=1740&projectId=211 Build statistics: State: Failed Previous State: Failed Started at: Sun 30 Sep 2007 19:51:34 -0700 Finished at: Sun 30 Sep 2007 19:51:37 -0700 Total time: 2s Build Trigger: Forced Build Number: 0 Exit code: 100 Building machine hostname: localhost.localdomain Operating system : Linux(unknown) Java Home version : java version "1.5.0_08" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03) Java HotSpot(TM) Server VM (build 1.5.0_08-b03, mixed mode) Builder version : Maven version: 2.0.7 Java version: 1.5.0_08 OS name: "linux" version: "2.4.21-50.elsmp" arch: "i386" SCM Changes: Changed: no author @ no date Comment: no comment Files changed: /pom.xml ( no revision ) .. Dependencies Changes: No dependencies changed Test Summary: Tests: 0 Failures: 0 Total time: 0 Output: --- constituent[0]: file:/usr/local/maven/lib/maven-core-2.0.7-uber.jar --- java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.AbstractStringBuilder.setLength(AbstractStringBuilder.java :146) at java.lang.StringBuffer.setLength(StringBuffer.java:154) at org.apache.maven.cli.MavenCli$CLIManager.cleanArgs(MavenCli.java:796) at org.apache.maven.cli.MavenCli$CLIManager.parse(MavenCli.java:749) at org.apache.maven.cli.MavenCli.main(MavenCli.java:98) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) On 10/1/07, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: > > What do you get in the build output? > > Emmanuel > > Iker Almandoz a écrit : > > Hi All, > > > > I am using continuum 1.1-beta2 with maven 2.0.7. > > > > I am getting the following error when building one of my applications: > > > > > > > > > Output: > > > > > > > > > --- > > > > constituent[0]: > > file:/usr/local/maven/lib/maven-core-2.0.7-uber.jar > > > > > --- > > > > java.lang.StringIndexOutOfBoundsException: String index out of range: -1 > > > > at java.lang.AbstractStringBuilder.setLength( > > AbstractStringBuilder.java:146) > > > > at java.lang.StringBuffer.setLength(StringBuffer.java:154) > > > > at org.apache.maven.cli.MavenCli$CLIManager.cleanArgs( > MavenCli.java > > :796) > > > > at org.apache.maven.cli.MavenCli$CLIManager.parse(MavenCli.java > :749) > > > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:98) > > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > > at sun.reflect.NativeMethodAccessorImpl.invoke( > > NativeMethodAccessorImpl.java:39) > > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > > DelegatingMethodAccessorImpl.java:25) > > > > at java.lang.reflect.Method.invoke(Method.java:585) > > > > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java > :315) > > > > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > > > > at org.codehaus.classworlds.Launcher.mainWithExitCode( > Launcher.java > > :430) > > > > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > > > > > > > > > > > > > > > > > I am trying to build a file with pom with maven > > targets
Re: Is there equivalent maven 2 tag for the dependency property tag from maven 1
As far as I know, no such tag exists in M2. I'm still not sure why (or even if) you need it. Wayne On 10/1/07, Yan Huang <[EMAIL PROTECTED]> wrote: > This tag is for maven 1 eclipse plug-in and used for defining dependencies > as eclipse projects. > > By default, the dependencies defined in the POM would be in jars format. > However, they can be projects in the eclipse workspace. If a dependency is > an eclipse project, a property needs to be added to that dependency to > indicate so. > > > >group >artifact >version > > true > > > > This indicates that the dependency is another project in the workspace. Note > that the name of the referenced project is the artifactId. > > The inverse also works. If you have included extra jars that shouldn't be in > the eclipse classpath, then you can set eclipse.dependency=false > > > On 9/28/07, Wayne Fay <[EMAIL PROTECTED]> wrote: > > > > For those of us unfamiliar with M1 (or who are simply getting old and > > forgetful), can you remind us what this tag does for you? > > > > Wayne > > > > On 9/28/07, Yan Huang <[EMAIL PROTECTED]> wrote: > > > Hello, > > > > > > On maven 1, we have this tag for a dependency > > > > > > > > >mygroupID > > >myexmapleID > > >1.0.0.0 > > >jar > > > > > >true > > >true > > > > > > > > > > > > Is there equivalent stuff on maven 2? > > > > > > Thanks > > > Yan > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error when project group has trailing spaces..
What do you get in the build output? Emmanuel Iker Almandoz a écrit : Hi All, I am using continuum 1.1-beta2 with maven 2.0.7. I am getting the following error when building one of my applications: Output: --- constituent[0]: file:/usr/local/maven/lib/maven-core-2.0.7-uber.jar --- java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.AbstractStringBuilder.setLength( AbstractStringBuilder.java:146) at java.lang.StringBuffer.setLength(StringBuffer.java:154) at org.apache.maven.cli.MavenCli$CLIManager.cleanArgs(MavenCli.java :796) at org.apache.maven.cli.MavenCli$CLIManager.parse(MavenCli.java:749) at org.apache.maven.cli.MavenCli.main(MavenCli.java:98) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java :430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) I am trying to build a file with pom with maven targets mvn clean site site:deploy** If I run the targets from the continuum working directory using maven directly, the build is successful. However, if I try to force the build, I get the above exception everytime My guess is that the problem is happening because the group name has a trailing space, in my case "Aggregators ". This is what I get from the continuum log files INFO | jvm 1| 2007/09/30 20:27:23 | 2007-09-30 20:27:23,334 [pool-1-thread-1] INFO BuildController:default- Performing action execute-builder INFO | jvm 1| 2007/09/30 20:27:23 | 2007-09-30 20:27:23,621 [pool-1-thread-1] INFO ShellCommandHelper:default - Executing: /bin/bash -c 'cd /usr/local/continuum-1.1-beta-2/apps/continuum/webapp/WEB-INF/working-directory/279 && /usr/local/bin/mvn --batch-mode --non-recursive - Dcontinuum.project.lastBuild.state=3 -Dcontinuum.project.nextBuild.number=1"- Dcontinuum.project.group.name=Aggregators " - Dcontinuum.project.lastBuild.number=0 clean site site:deploy' INFO | jvm 1| 2007/09/30 20:27:23 | 2007-09-30 20:27:23,622 [pool-1-thread-1] INFO ShellCommandHelper:default - Working directory: /usr/local/continuum-1.1-beta-2 /apps/continuum/webapp/WEB-INF/working-directory/279 INFO | jvm 1| 2007/09/30 20:26:36 | 2007-09-30 20:26:36,214 [pool-1-thread-1] DEBUG ShellCommandHelper:default - EnvironmentVariables [MAVEN_TERMINATE_CMD=on, DISPLAY=:0.0, SSH_AUTH_SOCK=/tmp/ssh-Tow21658/agent.21658, TOOLS_JAR=/usr/java/jdk1.5.0_08/lib/tools.jar, G_BROKEN_FILENAMES=1, LESSOPEN=|/usr/bin/lesspipe.sh %s, XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt, PATH=.:/usr/local/ant/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/oracle/product/10.2.0/db_1/bin:/opt/SUNWappserver/bin:/home/tester/bin, LOGNAME=tester, COLORTERM=gnome-terminal, SHLVL=3, HISTSIZE=1000, ANT_HOME=/usr/local/ant, XAUTHORITY=/home/tester/.Xauthority, GTK_RC_FILES=/etc/gtk/gtkrc:/home/tester/.gtkrc-1.2-gnome2, TOMCAT_HOME=/usr/local/tomcat, INPUTRC=/etc/inputrc, SHELL=/bin/bash, AXIS2_HOME=/usr/local/axis2, GNOME_DESKTOP_SESSION_ID=Default, [EMAIL PROTECTED], HOSTNAME=localhost.localdomain, WRAPPER_BITS=32, SESSION_MANAGER=local/localhost.localdomain:/tmp/.ICE-unix/21658, SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass, WRAPPER_FILE_SEPARATOR=/, WINDOWID=29360196, MAIL=/var/spool/mail/tester, LANG=en_US.UTF-8, LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:, CVS_RSH=ssh, LD_LIBRARY_PATH=/usr/java/jdk1.5.0_08/jre/lib/i386/server:/usr/java/jdk1.5.0_08/jre/lib/i386:/usr/java/jdk1.5.0_08/jre/../lib/i386, OLDPWD=/usr/local/continuum/bin/linux-x86-32, HOME=/home/tester, WRAPPER_ARCH=x86, PLEXUS_HOME=/usr/local/continuum, PWD=/usr/local/continuum-1.1-beta-2/bin/linux-x86-32, CVSROOT=: ext:[EMAIL PROTECTED]:/cvs, WRAPPER_OS=windows, WRAPPER_PATH_SEPARATOR=:, J2EE_HOME=/opt/SUNWappserver,
Re: Weird behavior in user management
You can upgrade your continuum to 1.1-beta-3, some issues in redback (security framework) are fixed. Emmanuel Iker Almandoz a écrit : Hi All, I'm using continuum-1.1-beta-2 with maven 7. I am running the system as admin and i am getting a project group twice when i look at my permission list: * Project Administrator - Aggregators * Project User - Aggregators * Project Administrator - Aggregators * Project Developer - Aggregators * Project User - Aggregators * Project Developer - Aggregators When i try to add a new project into this group, i am getting the following error: * You are not authorized to access this page. Please contact your administrator to be granted the appropriate permissions. However, i am the admin of the continuum installation. Here is part of my log: INFO | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,818 [SocketListener0-0] INFO DispatcherUtils- Unable to find ' webwork.multipart.saveDir' property setting. Defaulting to javax.servlet.context.tempdir INFO | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,821 [SocketListener0-0] WARN MultiPartRequest - Item is a file upload of 0 size, ignoring INFO | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,821 [SocketListener0-0] ERROR DispatcherUtils- Error setting character encoding to 'UTF-8' - ignoring. INFO | jvm 1| 2007/10/01 10:21:18 | java.lang.IllegalStateException: getReader() or getInputStream() called INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.jetty.servlet.ServletHttpRequest.setCharacterEncoding( ServletHttpRequest.java:602) INFO | jvm 1| 2007/10/01 10:21:18 | at javax.servlet.ServletRequestWrapper.setCharacterEncoding( ServletRequestWrapper.java:112) INFO | jvm 1| 2007/10/01 10:21:18 | at com.opensymphony.webwork.dispatcher.DispatcherUtils.prepare( DispatcherUtils.java:392) INFO | jvm 1| 2007/10/01 10:21:18 | at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter( FilterDispatcher.java:160) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter( WebApplicationHandler.java:821) INFO | jvm 1| 2007/10/01 10:21:18 | at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java :118) INFO | jvm 1| 2007/10/01 10:21:18 | at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java :52) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter( WebApplicationHandler.java:821) INFO | jvm 1| 2007/10/01 10:21:18 | at com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter( ActionContextCleanUp.java:88) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter( WebApplicationHandler.java:821) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch( WebApplicationHandler.java:471) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.jetty.servlet.WebApplicationContext.handle( WebApplicationContext.java:633) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.http.HttpServer.service(HttpServer.java:909) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) INFO | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,823 [SocketListener0-0] DEBUG MemoryStore- keysCacheCache: keysCacheMemoryStore miss for fcd7b8abc5014db6b27279795e8a5862 INFO | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,823 [SocketListener0-0] DEBUG Cache - keysCache cache - Miss INFO | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,826 [SocketListener0-0] DEBUG MemoryStore- keysCacheCache: keysCacheMemoryStore miss for 6565ca2206354041b6ab9963fe682141 INFO | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,826 [SocketListener0-0] DEBUG Cache
"compilerArguments" for maven-compiler-plugin
Hello, Regarding maven-compiler-plugin, is there a way to pass compiler arguments on the command line rather than through pom.xml? I don't find "expression" defined in its manual page though. Thanks Yan
Weird behavior in user management
Hi All, I'm using continuum-1.1-beta-2 with maven 7. I am running the system as admin and i am getting a project group twice when i look at my permission list: * Project Administrator - Aggregators * Project User - Aggregators * Project Administrator - Aggregators * Project Developer - Aggregators * Project User - Aggregators * Project Developer - Aggregators When i try to add a new project into this group, i am getting the following error: * You are not authorized to access this page. Please contact your administrator to be granted the appropriate permissions. However, i am the admin of the continuum installation. Here is part of my log: INFO | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,818 [SocketListener0-0] INFO DispatcherUtils- Unable to find ' webwork.multipart.saveDir' property setting. Defaulting to javax.servlet.context.tempdir INFO | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,821 [SocketListener0-0] WARN MultiPartRequest - Item is a file upload of 0 size, ignoring INFO | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,821 [SocketListener0-0] ERROR DispatcherUtils- Error setting character encoding to 'UTF-8' - ignoring. INFO | jvm 1| 2007/10/01 10:21:18 | java.lang.IllegalStateException: getReader() or getInputStream() called INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.jetty.servlet.ServletHttpRequest.setCharacterEncoding( ServletHttpRequest.java:602) INFO | jvm 1| 2007/10/01 10:21:18 | at javax.servlet.ServletRequestWrapper.setCharacterEncoding( ServletRequestWrapper.java:112) INFO | jvm 1| 2007/10/01 10:21:18 | at com.opensymphony.webwork.dispatcher.DispatcherUtils.prepare( DispatcherUtils.java:392) INFO | jvm 1| 2007/10/01 10:21:18 | at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter( FilterDispatcher.java:160) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter( WebApplicationHandler.java:821) INFO | jvm 1| 2007/10/01 10:21:18 | at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java :118) INFO | jvm 1| 2007/10/01 10:21:18 | at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java :52) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter( WebApplicationHandler.java:821) INFO | jvm 1| 2007/10/01 10:21:18 | at com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter( ActionContextCleanUp.java:88) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter( WebApplicationHandler.java:821) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch( WebApplicationHandler.java:471) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.jetty.servlet.WebApplicationContext.handle( WebApplicationContext.java:633) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.http.HttpServer.service(HttpServer.java:909) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) INFO | jvm 1| 2007/10/01 10:21:18 | at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) INFO | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,823 [SocketListener0-0] DEBUG MemoryStore- keysCacheCache: keysCacheMemoryStore miss for fcd7b8abc5014db6b27279795e8a5862 INFO | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,823 [SocketListener0-0] DEBUG Cache - keysCache cache - Miss INFO | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,826 [SocketListener0-0] DEBUG MemoryStore- keysCacheCache: keysCacheMemoryStore miss for 6565ca2206354041b6ab9963fe682141 INFO | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,826 [SocketListener0-0] DEBUG Cache - keysCache cache - Miss INFO | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,828 [SocketListener0-0] DE
Re: Is there equivalent maven 2 tag for the dependency property tag from maven 1
This tag is for maven 1 eclipse plug-in and used for defining dependencies as eclipse projects. By default, the dependencies defined in the POM would be in jars format. However, they can be projects in the eclipse workspace. If a dependency is an eclipse project, a property needs to be added to that dependency to indicate so. group artifact version true This indicates that the dependency is another project in the workspace. Note that the name of the referenced project is the artifactId. The inverse also works. If you have included extra jars that shouldn't be in the eclipse classpath, then you can set eclipse.dependency=false On 9/28/07, Wayne Fay <[EMAIL PROTECTED]> wrote: > > For those of us unfamiliar with M1 (or who are simply getting old and > forgetful), can you remind us what this tag does for you? > > Wayne > > On 9/28/07, Yan Huang <[EMAIL PROTECTED]> wrote: > > Hello, > > > > On maven 1, we have this tag for a dependency > > > > > >mygroupID > >myexmapleID > >1.0.0.0 > >jar > > > >true > >true > > > > > > > > Is there equivalent stuff on maven 2? > > > > Thanks > > Yan > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Maven String Argument
Are you talking about a property? Like: mvn compile -Dmyprop=value POM: ... ... ${myprop} Like that? -- Eric Redmond http://coderoshi.blogspot.com/ On 10/1/07, morrison19 <[EMAIL PROTECTED]> wrote: > > > Is it possible to pass in a custom argument to maven that could be used > through out the pom files? I'm struggling with finding documentation if > this > is a possibility or not. > -- > View this message in context: > http://www.nabble.com/Maven-String-Argument-tf4549492s177.html#a12982863 > Sent from the Maven - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Maven String Argument
Is it possible to pass in a custom argument to maven that could be used through out the pom files? I'm struggling with finding documentation if this is a possibility or not. -- View this message in context: http://www.nabble.com/Maven-String-Argument-tf4549492s177.html#a12982863 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is this a bug (Maven needs pom to read global settings.xml)?
done.. On 10/1/07, Gisbert Amm <[EMAIL PROTECTED]> wrote: > > Vote for it ... > > -Gisbert > > Vanja Petreski wrote: > > Yes! > > > > V > > > > On 10/1/07, Gisbert Amm <[EMAIL PROTECTED]> wrote: > > > >>This one? > >> > >>http://jira.codehaus.org/browse/ARCHETYPE-81 > >> > >>-Gisbert > >> > >>Vanja Petreski wrote: > >> > >>>Hello, > >>> > >>>I have Maven 2.0.7 installation on the SVN with configured settings.xml > , > >> > >>so > >> > >>>every developer can update changes (for example, about repo, etc..). > >>> > >>>I am using Artifactory for repository management and everything work > >>>perfectly until now. > >>> > >>>If I use, for example, mvn archetype:create > >>>-DgroupId=com.blah-DartifactId=modulX in a folder that doesn't contain > >>>pom.xml, Maven stucks at "update blah blah from central", where central > >> > >>is > >> > >>>my Artifactory cache repo. I thought that there is a problem with > >>>Artifactory, but after an hour of experimenting I realized when I use > >> > >>the > >> > >>>same command in a directory that contains pom.xml, it works. > >>> > >>>So, in the first case, Maven doesn't recognize global settings.xml!? > >>> > >>>Can somebody explain this strange behaviour or this is a bug? > >>> > >>>V > >>> > >> > >> > > > > -- > Gisbert Amm > Softwareentwickler Infrastruktur > Telefon: (0721) 91374 - 4224 > Telefax: (0721) 91374 - 2740 > E-Mail: [EMAIL PROTECTED] > Internet: www.1und1.de > > 1&1 Internet AG > Elgendorfer Strasse 57 > 56410 Montabaur > > Amtsgericht Montabaur HRB 6484 > > Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger > (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim > Weiss, Robert Hoffmann, > Aufsichtsratsvorsitzender: Michael Scheeren > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Maven 2.1 release
What in particular do you need/want that is available in 2.1 and not in 2.0? Or is this more of a general roadmap question. Wayne On 10/1/07, Siegmann Daniel, NY <[EMAIL PROTECTED]> wrote: > > Does anyone know when Maven 2.1. is intended to be released? > > Is there a project roadmap published somewhere that I could > > have a look at? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
The build classpath
Hello, Is there a maven property which I can get the build classpath for a project? the ${java.class.path} doesn't provide that. Or, I have to write a mojo to get it through the call to MavenProject.get*ClasspathElements()? Thanks Yan
Error when project group has trailing spaces..
Hi All, I am using continuum 1.1-beta2 with maven 2.0.7. I am getting the following error when building one of my applications: Output: --- constituent[0]: file:/usr/local/maven/lib/maven-core-2.0.7-uber.jar --- java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.AbstractStringBuilder.setLength( AbstractStringBuilder.java:146) at java.lang.StringBuffer.setLength(StringBuffer.java:154) at org.apache.maven.cli.MavenCli$CLIManager.cleanArgs(MavenCli.java :796) at org.apache.maven.cli.MavenCli$CLIManager.parse(MavenCli.java:749) at org.apache.maven.cli.MavenCli.main(MavenCli.java:98) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java :430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) I am trying to build a file with pom with maven targets mvn clean site site:deploy** If I run the targets from the continuum working directory using maven directly, the build is successful. However, if I try to force the build, I get the above exception everytime My guess is that the problem is happening because the group name has a trailing space, in my case "Aggregators ". This is what I get from the continuum log files INFO | jvm 1| 2007/09/30 20:27:23 | 2007-09-30 20:27:23,334 [pool-1-thread-1] INFO BuildController:default- Performing action execute-builder INFO | jvm 1| 2007/09/30 20:27:23 | 2007-09-30 20:27:23,621 [pool-1-thread-1] INFO ShellCommandHelper:default - Executing: /bin/bash -c 'cd /usr/local/continuum-1.1-beta-2/apps/continuum/webapp/WEB-INF/working-directory/279 && /usr/local/bin/mvn --batch-mode --non-recursive - Dcontinuum.project.lastBuild.state=3 -Dcontinuum.project.nextBuild.number=1"- Dcontinuum.project.group.name=Aggregators " - Dcontinuum.project.lastBuild.number=0 clean site site:deploy' INFO | jvm 1| 2007/09/30 20:27:23 | 2007-09-30 20:27:23,622 [pool-1-thread-1] INFO ShellCommandHelper:default - Working directory: /usr/local/continuum-1.1-beta-2 /apps/continuum/webapp/WEB-INF/working-directory/279 INFO | jvm 1| 2007/09/30 20:26:36 | 2007-09-30 20:26:36,214 [pool-1-thread-1] DEBUG ShellCommandHelper:default - EnvironmentVariables [MAVEN_TERMINATE_CMD=on, DISPLAY=:0.0, SSH_AUTH_SOCK=/tmp/ssh-Tow21658/agent.21658, TOOLS_JAR=/usr/java/jdk1.5.0_08/lib/tools.jar, G_BROKEN_FILENAMES=1, LESSOPEN=|/usr/bin/lesspipe.sh %s, XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt, PATH=.:/usr/local/ant/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/oracle/product/10.2.0/db_1/bin:/opt/SUNWappserver/bin:/home/tester/bin, LOGNAME=tester, COLORTERM=gnome-terminal, SHLVL=3, HISTSIZE=1000, ANT_HOME=/usr/local/ant, XAUTHORITY=/home/tester/.Xauthority, GTK_RC_FILES=/etc/gtk/gtkrc:/home/tester/.gtkrc-1.2-gnome2, TOMCAT_HOME=/usr/local/tomcat, INPUTRC=/etc/inputrc, SHELL=/bin/bash, AXIS2_HOME=/usr/local/axis2, GNOME_DESKTOP_SESSION_ID=Default, [EMAIL PROTECTED], HOSTNAME=localhost.localdomain, WRAPPER_BITS=32, SESSION_MANAGER=local/localhost.localdomain:/tmp/.ICE-unix/21658, SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass, WRAPPER_FILE_SEPARATOR=/, WINDOWID=29360196, MAIL=/var/spool/mail/tester, LANG=en_US.UTF-8, LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:, CVS_RSH=ssh, LD_LIBRARY_PATH=/usr/java/jdk1.5.0_08/jre/lib/i386/server:/usr/java/jdk1.5.0_08/jre/lib/i386:/usr/java/jdk1.5.0_08/jre/../lib/i386, OLDPWD=/usr/local/continuum/bin/linux-x86-32, HOME=/home/tester, WRAPPER_ARCH=x86, PLEXUS_HOME=/usr/local/continuum, PWD=/usr/local/continuum-1.1-beta-2/bin/linux-x86-32, CVSROOT=: ext:[EMAIL PROTECTED]:/cvs, WRAPPER_OS=windows, WRAPPER_PATH_SEPARATOR=:, J2EE_HOME=/opt/SUNWappserver, ORACLE_SID=SID, PLEXUS_BASE=/usr/local/continuum, ORACLE_HOME=/oracle/prod
RE: Maven 2.1 release
> Does anyone know when Maven 2.1. is intended to be released? > Is there a project roadmap published somewhere that I could > have a look at? IIRC work is being done to determine what issues should go to 2.1, and which should be later. It is also planned to release an alpha soon (I would expect w/in the next two months). You can see what issues are currently scheduled: http://jira.codehaus.org/browse/MNG You should also find some info on the wiki (http://docs.codehaus.org/display/MAVENUSER/Home), but my connection to that site is very slow right now, so I can't give you a direct link. :-/ -- Daniel Siegmann FJA-US, Inc. 512 7th Ave. 15th Flr. New York, NY 10018 (212) 840-2618 x139 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven 2.1 release
Hello all, Does anyone know when Maven 2.1. is intended to be released? Is there a project roadmap published somewhere that I could have a look at? Thx! MG -- Martin Goulet, B.Sc. * Vice President, Java Architecture, CSA * SunGard [EMAIL PROTECTED] * http://www.sungard.com/csa CONFIDENTIALITY: This e-mail (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this e-mail in error, please notify the sender and delete this e-mail from your system. P Think before you print.
Re: Optional Mojo Execution?
Hello Tim, Many thanks for your email. Tim Kettler wrote: Ah, it wasn't clear from you original mail that you are talking about report plugins. Yeah sorry about that :-/ The proper way of excluding certain reports from rendering is however, to specify a configuration in the plugin configuration. See the example in the project-info-reports [2]. I was looking at exactly this about an hour ago and, going over the xref pages, could not figure out how the implementation for the reportSet works (or even where it is); is this something i have to implement by myself or...? Many thanks again, Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven multilple dependency
Hello, In our project, we have two different modules separated into two eclipse projects. We use ant for project compilation, packaging and deployment. Dependency management is achieved using maven inside ant build.xml script. One of the modules depends on the other, i.e. module B depends on module A. Therefore, in the pom.xml file of module B we have something like: my.company moduleA 1.0.0 compile When we want module B to use the new features we implemented in module A, we have to change the version of module A in pom.xml file and deploy module A in the local maven repository. After that, when module B calculates dependencies, it takes the newest version of module A. That's ok for production environment, but during development it is unconfortable to work in that way. We would like to include dependencies of module A in module B with no need to deploy it in the maven repository. In order to achieve that we would like to include module A's pom file as an "include" in the pom file of module B. That way, module B can compute and gather all the dependencies (needed libraries at runtime) taking into account dependencies of module A. After that, using ant tasks, we could include moduleA.jar file in the classpath of module B. We are looking for a way to achieve this. Any other way to avoid deploying of moduleA is also welcome. Any help would be appreciated. Thank you very much in advance, -- Eguzki Astiz Lezaun Departamento de Sociedad Conectada Mail: [EMAIL PROTECTED] TELEFONICA I+D Tel: +34 93 29 56384 C\ VIA AUGUSTA, 177 www.tid.es 08021 BARCELONA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Optional Mojo Execution?
Ah, it wasn't clear from you original mail that you are talking about report plugins. Manos Batsis schrieb: Manos Batsis wrote: According to the documentation, this seems irrelevant to my original question, which is, how to make reporting mojo execution optional, i.e. not happen unless the user specifies an execution for it. Maybe i need to override canGenerateReport[1] for this and try to figure out if an execution exists from there? canGenerateReport() is meant to give feedback if a report is able to render itself in the current context. The reports that can not render themself are filtered out here [1] in filterReports(). So yes, you can use it to disable reports. The proper way of excluding certain reports from rendering is however, to specify a configuration in the plugin configuration. See the example in the project-info-reports [2]. -Tim [1] https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/AbstractSiteRenderingMojo.java [2] http://maven.apache.org/plugins/maven-project-info-reports-plugin/examples/selective-project-info-reports.html [1] http://maven.apache.org/ref/current/maven-reporting/maven-reporting-api/apidocs/org/apache/maven/reporting/MavenReport.html#canGenerateReport() Thanks, Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Improving the documentation of plugins (was maven is hard)
Tristan Cebulla wrote: > > Stupid trying out can be very tedious and I don't want to sit eight hours > every day long testing options/parameters to get it work properly ;) > > > Regards, > Tristan Cebulla > Just to correct my last post: it was not intended to sound rigorous, I'm just looking for some way to get the plugin work by instancing it from a (master) pom.xml for all projects linked to that master POM. I did not find something about that in the usage documentation so it would be nice if there would be some :) Regards, Tristan Cebulla -- View this message in context: http://www.nabble.com/Improving-the-documentation-of-plugins-%28was-maven-is-hard%29-tf4537045s177.html#a12980823 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ghost dependencies
Thanks Nick, that helped. I was confused because the dependency tree from the command line in my site was not showing this transitive dependency. Darren Nick Stolwijk-3 wrote: > > Could you run mvn -X install on your project and search the output for > this dependency. Maybe that will clear things up? > > Hth, > > Nick Stolwijk > > > Darren Salomons wrote: >> When I package up my WAR file I get a jar file(avalon-framework) bundled >> up >> with it that is not a dependency nor a transitive dependency. Running >> dependency:resolve it mysteriously shows up as a compile time dependency >> but >> when I run the dependency:tree it doesn't show up. I did a full text >> search >> for avalon-framework in my pom files in my local repo and the only hit is >> the avalon-framework pom. The jar is not in my WEB-INF/lib in case >> you're >> wondering. How could this be happening? >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/ghost-dependencies-tf4548553s177.html#a12980808 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tutorial doxia and maven plugin
It is just this: Page Title John Doe Page Title Hi! ciao ciao gio And I just run the command: "mvn doxia:render-books" If I do use it to "mvn site" it works fine and generates an html file. -Original Message- From: Lukas Theussl This is a simple xml parsing error, nothing to do with doxia. Your input document src\site\xdoc\bindings.xml is not well-formed (is it being processed by the site plugin?). -Lukas > > [INFO] Error while generating book in format 'pdf'. > > Embedded error: Error while parsing document: > F:\projects\Gio\gioMaven\src\site\xdoc\bindings.xml. > only whitespace content allowed before start tag and not t (position: > START_DOCUMENT seen t... @1:1) > "La presente comunicazione elettronica contiene informazioni aziendali non private. Eventuali risposte alla presente potrebbero essere conosciute, per motivi organizzativi e di sicurezza, dal personale di Postecom S.p.a."
Re: Using maven for JavaScript projects
I plan to add support for the yahoo compressor. I have some issues with the dojo one (needs to reset the rhino context, and found no way to do so) I'll look at the plugin you pointed, thanks. 2007/10/1, Haroon Rafique <[EMAIL PROTECTED]>: > > On Today at 9:56am, HR=>Haroon Rafique <[EMAIL PROTECTED]> wrote: > > HR> > HR> Hi Nico, > HR> > HR> Could you add another js tool to the list? I haven't started using it, > but > HR> it also looks promising in the link/compress category. > HR> > HR> Its the yuicompressor-maven-plugin > HR> http://alchim.sourceforge.net/yuicompressor-maven-plugin/overview.html > HR> based on YUICompressor: > HR> > http://www.julienlecomte.net/blog/2007/09/28/yui-compressor-version-221-now-available/ > HR> http://www.julienlecomte.net/yuicompressor/ > HR> > > Sorry for the noise. I looked up my sourceforge ID and reset the password > and updated the wiki with an entry for YUI Compressor Maven Plugin. > > Cheers, > -- > Haroon Rafique > <[EMAIL PROTECTED]> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Unusual error from JavaMojoDescriptorExtractor
Double oops. Apparently I've left my good typing hands at home :). The real error was here for (int i = 0; i < files.length; i++)// Forget the brace resulting in a missing right hand brace at the end of the file. Sorry about that. Robert Egan [EMAIL PROTECTED] wrote on 10/01/2007 10:15:00 AM: > Greetings, > > I made a transpositional error in the execute method of my Mojo, and > produced some rather unusual diagnostics. Since the root cause was "user > error" there may not be any great interest in looking further, but I'll > post it here anyway... > > getLog().info("Files to be deleted: " + files.length); // correct > line > getLog().info("Files to be deleted" : files.length); // Oops! > > com.thoughtworks.qdox.parser.ParseException: syntax error @[64,1] in > ExcludesP > lugin.java > at > com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:638) > at > com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java(Compiled > Code)) > at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:619) > at > com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:300) > at > com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:316) > at > com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:312) > at > com.thoughtworks.qdox.JavaDocBuilder$1.visitFile(JavaDocBuilder.java:369) > at > com.thoughtworks.qdox.directorywalker.DirectoryScanner. > walk(DirectoryScanner.java:43) > at > com.thoughtworks.qdox.directorywalker.DirectoryScanner. > walk(DirectoryScanner.java:34) > at > com.thoughtworks.qdox.directorywalker.DirectoryScanner. > scan(DirectoryScanner.java:52) > at > com.thoughtworks.qdox.JavaDocBuilder.addSourceTree(JavaDocBuilder.java:366) > at > org.apache.maven.tools.plugin.extractor.java. > JavaMojoDescriptorExtractor.execute(JavaMojoDescriptorExtractor.java:544) > at > org.apache.maven.tools.plugin.scanner.DefaultMojoScanner. > populatePluginDescriptor(DefaultMojoScanner.java:84) > at > org.apache.maven.plugin.plugin.AbstractGeneratorMojo. > execute(AbstractGeneratorMojo.java:135) > at > org.apache.maven.plugin.DefaultPluginManager. > executeMojo(DefaultPluginManager.java:443) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor. > executeGoals(DefaultLifecycleExecutor.java:539) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor. > executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor. > executeGoal(DefaultLifecycleExecutor.java:459) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor. > executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor. > executeTaskSegments(DefaultLifecycleExecutor.java:278) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor. > execute(DefaultLifecycleExecutor.java:143) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58) > at > sun.reflect.DelegatingMethodAccessorImpl. > invoke(DelegatingMethodAccessorImpl.java:60) > at java.lang.reflect.Method.invoke(Method.java:391) > at > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > > > Robert Egan > > This email message and any attachments may contain confidential, > proprietary or non-public information. The information is intended solely > for the designated recipient(s). If an addressing or transmission error > has misdirected this email, please notify the sender immediately and > destroy this email. Any review, dissemination, use or reliance upon this > information by unintended recipients is prohibited. Any opinions > expressed in this email are those of the author personally.
Re: Incorrect Build state with Maven2
If you run mvn 2.0.7, you can fix it with this fixed version: http://svn.apache.org/repos/asf/maven/components/branches/maven-2.0.x/maven-core/src/bin/ Emmanuel [EMAIL PROTECTED] a écrit : Hi, I 've tried the tipp from the FAQs, and added if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERRORLEVEL% to my mvn.bat file, but it still does not recognize the return code. I had the same behaviour wit 1.0.3 , but could solve it with the above mentioned fix, but this time it does not help. For testing I temporarily changed the maven configuration to be sure to get an ERROR Currently I'm running continuum 1.1b3 this is the maven outout: [INFO] Scanning for projects... [INFO] [INFO] Building testproject [INFO]task-segment: [clean, compile] [INFO] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: < 1 second [INFO] Finished at: Mon Oct 01 15:31:33 CEST 2007 [INFO] Final Memory: 1M/4M [INFO] Greetings from Germany Manuel
Re: Maven JavaScript Plugin 1.2 released
>> Adam Altemus wrote: >> > Can you give me some information on your environment? I'm pretty sure I >> > know what the error is but, I need to make sure. >> >> Looks like a java 1.4 environment trying to compile java 1.5 to me ;-) >> >> >> Manos hello, This problem has sometimes bitten me in the past and is due to qdox library not being able to handle java5 language constructs. I think the problem may depends on the qdox version used which itself depends on the maven-plugin-plugin used. Or so I believe... $ java -version java version "1.6.0" Java(TM) SE Runtime Environment (build 1.6.0-b105) Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode) $ mvn -v Maven version: 2.0.6 Regards -- OQube < software engineering \ génie logiciel > Arnaud Bailly, Dr. \web> http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using maven for JavaScript projects
On Today at 9:56am, HR=>Haroon Rafique <[EMAIL PROTECTED]> wrote: HR> HR> Hi Nico, HR> HR> Could you add another js tool to the list? I haven't started using it, but HR> it also looks promising in the link/compress category. HR> HR> Its the yuicompressor-maven-plugin HR> http://alchim.sourceforge.net/yuicompressor-maven-plugin/overview.html HR> based on YUICompressor: HR> http://www.julienlecomte.net/blog/2007/09/28/yui-compressor-version-221-now-available/ HR> http://www.julienlecomte.net/yuicompressor/ HR> Sorry for the noise. I looked up my sourceforge ID and reset the password and updated the wiki with an entry for YUI Compressor Maven Plugin. Cheers, -- Haroon Rafique <[EMAIL PROTECTED]> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unusual error from JavaMojoDescriptorExtractor
Greetings, I made a transpositional error in the execute method of my Mojo, and produced some rather unusual diagnostics. Since the root cause was "user error" there may not be any great interest in looking further, but I'll post it here anyway... getLog().info("Files to be deleted: " + files.length); // correct line getLog().info("Files to be deleted" : files.length); // Oops! com.thoughtworks.qdox.parser.ParseException: syntax error @[64,1] in ExcludesP lugin.java at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:638) at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java(Compiled Code)) at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:619) at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:300) at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:316) at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:312) at com.thoughtworks.qdox.JavaDocBuilder$1.visitFile(JavaDocBuilder.java:369) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:43) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.scan(DirectoryScanner.java:52) at com.thoughtworks.qdox.JavaDocBuilder.addSourceTree(JavaDocBuilder.java:366) at org.apache.maven.tools.plugin.extractor.java.JavaMojoDescriptorExtractor.execute(JavaMojoDescriptorExtractor.java:544) at org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePluginDescriptor(DefaultMojoScanner.java:84) at org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(AbstractGeneratorMojo.java:135) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Robert Egan This email message and any attachments may contain confidential, proprietary or non-public information. The information is intended solely for the designated recipient(s). If an addressing or transmission error has misdirected this email, please notify the sender immediately and destroy this email. Any review, dissemination, use or reliance upon this information by unintended recipients is prohibited. Any opinions expressed in this email are those of the author personally.
Re: ghost dependencies
Is it possible that you used to have a dependency on it (perhaps transitively), and haven't run "mvn clean" to remove it from target, so it is still getting bundled in the WAR? Wayne On 10/1/07, Darren Salomons <[EMAIL PROTECTED]> wrote: > > When I package up my WAR file I get a jar file(avalon-framework) bundled up > with it that is not a dependency nor a transitive dependency. Running > dependency:resolve it mysteriously shows up as a compile time dependency but > when I run the dependency:tree it doesn't show up. I did a full text search > for avalon-framework in my pom files in my local repo and the only hit is > the avalon-framework pom. The jar is not in my WEB-INF/lib in case you're > wondering. How could this be happening? > -- > View this message in context: > http://www.nabble.com/ghost-dependencies-tf4548553s177.html#a12979835 > Sent from the Maven - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ghost dependencies
Could you run mvn -X install on your project and search the output for this dependency. Maybe that will clear things up? Hth, Nick Stolwijk Darren Salomons wrote: When I package up my WAR file I get a jar file(avalon-framework) bundled up with it that is not a dependency nor a transitive dependency. Running dependency:resolve it mysteriously shows up as a compile time dependency but when I run the dependency:tree it doesn't show up. I did a full text search for avalon-framework in my pom files in my local repo and the only hit is the avalon-framework pom. The jar is not in my WEB-INF/lib in case you're wondering. How could this be happening? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ghost dependencies
When I package up my WAR file I get a jar file(avalon-framework) bundled up with it that is not a dependency nor a transitive dependency. Running dependency:resolve it mysteriously shows up as a compile time dependency but when I run the dependency:tree it doesn't show up. I did a full text search for avalon-framework in my pom files in my local repo and the only hit is the avalon-framework pom. The jar is not in my WEB-INF/lib in case you're wondering. How could this be happening? -- View this message in context: http://www.nabble.com/ghost-dependencies-tf4548553s177.html#a12979835 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can plugins call other plugins
I am writing a maven plugin that at execute time needs to call another maven plugin. How do I do that? -- Mark Russell Instantiations, Inc. 724-368-3331 (land line) http://www.instantiations.com smime.p7s Description: S/MIME Cryptographic Signature
Re: Using maven for JavaScript projects
On Today at 7:09am, ndl=>nicolas de loof <[EMAIL PROTECTED]> wrote: ndl> I've created a wiki entry ndl> (http://hammerfest.wiki.sourceforge.net/mavan-javascript-tools) ndl> to resume the ideas exposed in this thread. ndl> ndl> please be nice and don't blame me for my ugly english ;-) ndl> (any native english reader is welcome to fix my linguistics errors) ndl> Hi Nico, Could you add another js tool to the list? I haven't started using it, but it also looks promising in the link/compress category. Its the yuicompressor-maven-plugin http://alchim.sourceforge.net/yuicompressor-maven-plugin/overview.html based on YUICompressor: http://www.julienlecomte.net/blog/2007/09/28/yui-compressor-version-221-now-available/ http://www.julienlecomte.net/yuicompressor/ ndl> Nico ndl> Later, -- Haroon Rafique <[EMAIL PROTECTED]> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How does a plugin unpack a needed resoure
The dependency plugin has a few unpack goals: http://maven.apache.org/plugins/maven-dependency-plugin -Original Message- From: Mark Russell [mailto:[EMAIL PROTECTED] Sent: Sunday, September 30, 2007 11:12 PM To: users@maven.apache.org Subject: How does a plugin unpack a needed resoure I'm new to maven plugin development. I have not been able to get an answer to this so is I missed something please point me to it. I have server that needs to be unpacked to the disk to run (it is not tomcat or any app server). I have a plugin that holds the server executables and config. I would like the user of this plugin to be able to call a goal in this plugin and have the server get unpacked to disk and executed. Please point me to examples of this kind of plugin. Since I'm new to Maven please feel free to make suggestions on how to do this (even if they are you are going about this completely wrong) Thanks in advance for your help! -- Mark Russell Instantiations, Inc. 724-368-3331 (land line) http://www.instantiations.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Improving the documentation of plugins (was maven is hard)
Dennis Lundberg-2 wrote: > > Now on to the first question for all users out there: > > Which of the numbered items above needs more work? > > Please be either concrete with examples like: >"option A for goal B in plugin C is really bad" > or give more general thoughts that are valid for all plugins [3] at the > Maven project. > > Please try to keep this thread on topic. > Hi there, I'm using the dashboard-maven-plugin (http://mojo.codehaus.org/dashboard-maven-plugin/) , but I didn't find any useful/complete documentation about the plugin configuration parameters, especially for XML usage in a pom.xml/master POM. Stupid trying out can be very tedious and I don't want to sit eight hours every day long testing options/parameters to get it work properly ;) Regards, Tristan Cebulla -- View this message in context: http://www.nabble.com/Improving-the-documentation-of-plugins-%28was-maven-is-hard%29-tf4537045s177.html#a12979567 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Optional Mojo Execution?
Manos Batsis wrote: According to the documentation, this seems irrelevant to my original question, which is, how to make reporting mojo execution optional, i.e. not happen unless the user specifies an execution for it. Maybe i need to override canGenerateReport[1] for this and try to figure out if an execution exists from there? [1] http://maven.apache.org/ref/current/maven-reporting/maven-reporting-api/apidocs/org/apache/maven/reporting/MavenReport.html#canGenerateReport() Thanks, Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 1.1-beta-3 LDAP
We do not allow guest accounts on our LDAP server. If I remove the 'redback.default.guest' configuration I see this exception below. Is there a way to bypass that? I would like all users with an LDAP sign-on to be considered a registered user once signed in and then administer their access rights at that point. 69711 [SocketListener0-1] ERROR com.opensymphony.webwork.dispatcher.DispatcherUtils - Could not find action Caught Exception while registering Interceptor class redbackEnvironmentCheckInterceptor - Class: org.codehaus.plexus.redback.xwork.checks.security.GuestUserEnvironmentCheck File: GuestUserEnvironmentCheck.java Method: validateEnvironment Line: 100 - org/codehaus/plexus/redback/xwork/checks/security/GuestUserEnvironmentCheck.java:100:-1 at org.codehaus.plexus.xwork.PlexusObjectFactory.buildInterceptor(PlexusObjectFactory.java:152) at com.opensymphony.xwork.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:56) at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.lookupInterceptorReference(XmlConfigurationProvider.java:701) at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.loadInterceptorStack(XmlConfigurationProvider.java:568) at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.loadInterceptorStacks(XmlConfigurationProvider.java:581) at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.loadInterceptors(XmlConfigurationProvider.java:602) at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:204) at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.loadConfigurationFile(XmlConfigurationProvider.java:675) at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.loadConfigurationFile(XmlConfigurationProvider.java:678) at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:91) at com.opensymphony.xwork.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:86) at com.opensymphony.xwork.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55) at com.opensymphony.xwork.DefaultActionProxy.(DefaultActionProxy.java:60) at com.opensymphony.xwork.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:46) at com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:264) at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:202) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:88) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) Caused by: java.lang.NullPointerException at org.codehaus.plexus.redback.xwork.checks.security.GuestUserEnvironmentCheck.validateEnvironment(GuestUserEnvironmentCheck.java:100) at org.codehaus.plexus.redback.xwork.interceptor.EnvironmentCheckInterceptor.init(EnvironmentCheckInterceptor.java:77) at org.codehaus.plexus.xwork.PlexusObjectFactory.buildInterceptor(PlexusObjectFactory.java:119) ... 33 more -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Saturday, September 29, 2007 3:54 AM To: [EMAIL PROTECTED] Subject: Re: 1.1-beta-3 LDAP Madsen,Bryan a écrit : > I trudged through configuring LDAP and am now able to log on with my > sign on and password. I think I sti
Re: Optional Mojo Execution?
Manos Batsis wrote: Suppose i bundle several mojos under one plugin artifactId, how can i make their execution optional? In other words, I only want to run a specific mojo when there is an execution element is present for it's goal in the plugin configuration. Isn't that the default behaviour? You may want to look at the sources of the dependency- or assembly-plugin, both contain multiple mojo's and only those you specify in an execution element will be invoked. I still cannot figure it out (or how much of it applies to Reporting mojos). Can someone please explain the difference, if any, between /* @goal foo * @phase site */ and /* @goal foo * @execute phase="site" */ According to the documentation, this seems irrelevant to my original question, which is, how to make reporting mojo execution optional, i.e. not happen unless the user specifies an execution for it. Thanks for your help, Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Incorrect Build state with Maven2
Hi, I 've tried the tipp from the FAQs, and added if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERRORLEVEL% to my mvn.bat file, but it still does not recognize the return code. I had the same behaviour wit 1.0.3 , but could solve it with the above mentioned fix, but this time it does not help. For testing I temporarily changed the maven configuration to be sure to get an ERROR Currently I'm running continuum 1.1b3 this is the maven outout: [INFO] Scanning for projects... [INFO] [INFO] Building testproject [INFO]task-segment: [clean, compile] [INFO] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: < 1 second [INFO] Finished at: Mon Oct 01 15:31:33 CEST 2007 [INFO] Final Memory: 1M/4M [INFO] Greetings from Germany Manuel
Re: Maven JavaScript Plugin 1.2 released
I was thinking that as well. The errors seem to be occurring at the @override tags that were added in during the creation of the code in Eclipse. I removed them because I have seen other instances where they have been problematic and it is fine without them. On 10/1/07, Manos Batsis <[EMAIL PROTECTED]> wrote: > > Adam Altemus wrote: > > Can you give me some information on your environment? I'm pretty sure I > > know what the error is but, I need to make sure. > > Looks like a java 1.4 environment trying to compile java 1.5 to me ;-) > > > Manos > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Adam Altemus Software Engineer
Re: tutorial doxia and maven plugin
This is a simple xml parsing error, nothing to do with doxia. Your input document src\site\xdoc\bindings.xml is not well-formed (is it being processed by the site plugin?). -Lukas Giovanni Pedone wrote: I just tried with a simple txt file to be converted to PDF, but I get this error: [INFO] Error while generating book in format 'pdf'. Embedded error: Error while parsing document: F:\projects\Gio\gioMaven\src\site\xdoc\bindings.xml. only whitespace content allowed before start tag and not t (position: START_DOCUMENT seen t... @1:1) Where can I find some documentation about all this? The web site is not very helpful :( thank you
RE: indiscriminate dependencies ...
Try mvn dependency:analyze It will tell you when you are not using dependencies and also when you haven't declared things you are directly using. -Original Message- From: Giovanni Azua [mailto:[EMAIL PROTECTED] Sent: Sunday, September 30, 2007 8:27 AM To: 'Maven Users List' Subject: indiscriminate dependencies ... Hi all, I get very frustrated when I would like to quickly build some project X and I see maven downloading half internet just because one of the developers of project X thought that some of the dependencies might be needed at some point but not now. This also happens when you develop project A that depend on B but then someday you don't depend on B anymore and you forget getting rid of the dependency entry B in A's pom.xml I know it is not Maven's fault. It is just that maven makes it very easy to depend on anything. Is there any way perhaps some fancy plugin that will prevent maven from downloading every little single dependency but only those actually used by the project X ... kind of lazy dependency resolution, so developers suggest but do not command what dependencies are required by the build ... You get the idea. regards, Giovanni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven JavaScript Plugin 1.2 released
Adam Altemus wrote: Can you give me some information on your environment? I'm pretty sure I know what the error is but, I need to make sure. Looks like a java 1.4 environment trying to compile java 1.5 to me ;-) Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tutorial doxia and maven plugin
I just tried with a simple txt file to be converted to PDF, but I get this error: [INFO] Error while generating book in format 'pdf'. Embedded error: Error while parsing document: F:\projects\Gio\gioMaven\src\site\xdoc\bindings.xml. only whitespace content allowed before start tag and not t (position: START_DOCUMENT seen t... @1:1) Where can I find some documentation about all this? The web site is not very helpful :( thank you -Original Message- From: Lukas Theussl [mailto:[EMAIL PROTECTED] Sent: Monday, October 01, 2007 2:43 PM To: [EMAIL PROTECTED] Subject: Re: tutorial doxia and maven plugin difficult to say with the information... it seems that you have docbook sources, the docbook parser is not very well supported. I can generate pdf and rtf from simple documents, so I know it works. You could try to start with some simplified source files to rule out any parser/sink issues. If you can't get it to work, open a JIRA ticket [1] and attach a reproducible test case. Cheers, -Lukas [1] http://jira.codehaus.org/browse/DOXIA Giovanni Pedone wrote: > thanks much, that helped. > I got to generate the book in xdoc format. > > Instead, if I try to add the pdf or rtf format (adding the > corresponding into the pom.xml), I get that ERROR Exception. > > What am I missing? > > thank you > Giovanni > > > > -Original Message- > From: Lukas Theussl [mailto:[EMAIL PROTECTED] > Sent: Monday, October 01, 2007 12:35 PM > To: [EMAIL PROTECTED] > Subject: Re: tutorial doxia and maven plugin > > See http://maven.apache.org/doxia/book/index.html > > The section titles need to match the source documents name, eg > > >section-1 > > > will get the source from a file apt/section-1.apt, or > xdoc/section-1.xml, etc. You don't have to specify a title tag inside > a section, the title will be taken from the source document. Actually > I don't know what the file tag is for, you certainly don't need it... > > HTH, > -Lukas > > > Giovanni Pedone wrote: > >>hello, >>may you please publish a quick tutorial on how to set up dozia and use >>it > > ? > >>I have a maven project with documentantion generated by "maven site" >>given a set of xdoc documents under src/site/xdoc with a maven >>site.xml for generation. >> >>I would like to generate the same docs thru doxia maven plugin and get >>the output into different formats. >> >>How can I do that? >>I dont understand if I need to have the content files named exactly >>like the sections id defined in the book.xml. >>Also do I MUST specify title and file tags elements inside the section >>element of book.xml ? >> >>When I tried the following then I got this error: >> >>[INFO] [doxia:render-books] >>[INFO] >>-- >>-- >>[ERROR] FATAL ERROR >>[INFO] >>-- >>-- >>[INFO] null >>[INFO] >>-- >>-- >>[INFO] Trace >>java.lang.reflect.UndeclaredThrowableException >>at $Proxy0.text(Unknown Source) >>at >>org.apache.maven.doxia.module.docbook.DocBookParser.handleText(DocBook >>Parser >>.java:686) >>at >>org.apache.maven.doxia.parser.AbstractXmlParser.parseXml(AbstractXmlPa >>rser.j >>ava:96) >>at >>org.apache.maven.doxia.parser.AbstractXmlParser.parse(AbstractXmlParse >>r.java >>:53) >>at org.apache.maven.doxia.DefaultDoxia.parse(DefaultDoxia.java:59) >>at >>org.apache.maven.doxia.book.services.renderer.AbstractITextBookRendere >>r.rend >>erSection(AbstractITextBookRenderer.java:260) >>at >>org.apache.maven.doxia.book.services.renderer.AbstractITextBookRendere >>r.rend >>erChapter(AbstractITextBookRenderer.java:216) >>at >>org.apache.maven.doxia.book.services.renderer.AbstractITextBookRendere >>r.rend >>erBook(AbstractITextBookRenderer.java:142) >>at >>org.apache.maven.doxia.book.DefaultBookDoxia.renderBook(DefaultBookDox >>ia.jav >>a:126) >>at >>org.apache.maven.doxia.plugin.DoxiaRenderBooksMojo.execute(DoxiaRender >>BooksM >>ojo.java:214) >>at >>org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugin >>Manage >>r.java:443) >>at >>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defau >>ltLife >>cycleExecutor.java:539) >>at >>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneG >>oal(De >>faultLifecycleExecutor.java:493) >>at >>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defaul >>tLifec >>ycleExecutor.java:463) >>at >>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand >>leFail >>ures(DefaultLifecycleExecutor.java:311) >>at >>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment >>s(Defa >>ultLifecycleExecutor.java:278) >>at >>org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLif >>ecycle >
Re: Maven JavaScript Plugin 1.2 released
Can you give me some information on your environment? I'm pretty sure I know what the error is but, I need to make sure. Thanks, Adam On 10/1/07, Insitu <[EMAIL PROTECTED]> wrote: > > Hello, > When trying to build it from sources, I got: > [INFO] Scanning for projects... > [INFO] > > > [INFO] Building MobilVox Maven JavaScript Plugin > [INFO]task-segment: [install] > [INFO] > > > Downloading: > > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-scm-plugin/1.0-beta-2/maven-scm-plugin-1.0-beta-2.pom > 1K downloaded > Downloading: > > http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm/1.0-beta-2/maven-scm-1.0-beta-2.pom > 4K downloaded > Downloading: > > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-scm-plugin/1.0-beta-2/maven-scm-plugin-1.0-beta-2.jar > 21K downloaded > [INFO] [plugin:descriptor] > [INFO] Using 2 extractors. > [INFO] Applying extractor for language: java > [INFO] > > [ERROR] FATAL ERROR > [INFO] > > [INFO] syntax error @[317,10] in > > file:/old/home/nono/soft/javascript/maven-js-plugin/src/main/java/com/mobilvox/ossi/mojo/js/compression/JsCompressor.java > [INFO] > > [INFO] Trace > com.thoughtworks.qdox.parser.ParseException: syntax error @[317,10] in > > file:/old/home/nono/soft/javascript/maven-js-plugin/src/main/java/com/mobilvox/ossi/mojo/js/compression/JsCompressor.java > at > com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:504) > at > com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:610) > at > com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:488) > at > com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java > :296) > at > com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java > :312) > at > com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java > :308) > at > com.thoughtworks.qdox.JavaDocBuilder$1.visitFile( > JavaDocBuilder.java:365) > at > com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk( > DirectoryScanner.java:43) > at > com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk( > DirectoryScanner.java:34) > at > com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk( > DirectoryScanner.java:34) > at > com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk( > DirectoryScanner.java:34) > at > com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk( > DirectoryScanner.java:34) > at > com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk( > DirectoryScanner.java:34) > at > com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk( > DirectoryScanner.java:34) > at > com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk( > DirectoryScanner.java:34) > at > com.thoughtworks.qdox.directorywalker.DirectoryScanner.scan( > DirectoryScanner.java:52) > at > com.thoughtworks.qdox.JavaDocBuilder.addSourceTree( > JavaDocBuilder.java:362) > at > > org.apache.maven.tools.plugin.extractor.java.JavaMojoDescriptorExtractor.execute > (JavaMojoDescriptorExtractor.java:477) > at > > org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePluginDescriptor > (DefaultMojoScanner.java:69) > at > org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute( > AbstractGeneratorMojo.java:99) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo( > DefaultPluginManager.java:443) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( > DefaultLifecycleExecutor.java:539) > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle > (DefaultLifecycleExecutor.java:480) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( > DefaultLifecycleExecutor.java:459) > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures > (DefaultLifecycleExecutor.java:311) > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( > DefaultLifecycleExecutor.java:278) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( > DefaultLifecycleExecutor.java:143) > at > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) > at > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:
Re: Optional Mojo Execution?
Tim Kettler wrote: Hi, Manos Batsis schrieb: Suppose i bundle several mojos under one plugin artifactId, how can i make their execution optional? In other words, I only want to run a specific mojo when there is an execution element is present for it's goal in the plugin configuration. Isn't that the default behaviour? You may want to look at the sources of the dependency- or assembly-plugin, both contain multiple mojo's and only those you specify in an execution element will be invoked. I still cannot figure it out (or how much of it applies to Reporting mojos). Can someone please explain the difference, if any, between /* @goal foo * @phase site */ and /* @goal foo * @execute phase="site" */ ?? Many thanks, Manos Many thanks, Manos -Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Including JavaScript in xdoc
This is probably useless to the OP, but we also wanted to use scripts and went directly for a custom site skin. Cheers, Manos Lukas Theussl wrote: That doesn't work either, we have already opened some JIRA tickets: http://jira.codehaus.org/browse/DOXIA-154 http://jira.codehaus.org/browse/MSITE-257 Cheers, -Lukas Damien Lecan wrote: I tried putting " in the xdoc, but it still comes out as " in the html, and the alert box doesn't work. Any ideas? And with xml CDATA tag ? Hello You should see a JavaScript alert... ? Damien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Including JavaScript in xdoc
That doesn't work either, we have already opened some JIRA tickets: http://jira.codehaus.org/browse/DOXIA-154 http://jira.codehaus.org/browse/MSITE-257 Cheers, -Lukas Damien Lecan wrote: I tried putting " in the xdoc, but it still comes out as " in the html, and the alert box doesn't work. Any ideas? And with xml CDATA tag ? Hello You should see a JavaScript alert... ? Damien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Including JavaScript in xdoc
> I tried putting " in the xdoc, but it still comes out as " > in the html, and the alert box doesn't work. > Any ideas? And with xml CDATA tag ? Hello You should see a JavaScript alert... ? Damien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: continuum with oracle
yes - that should work for 1.0.3. but in addition to this with 1.1 versions we had other problems: INFO | jvm 1| 2007/08/08 14:05:04 | 2007-08-08 14:05:04,897 [WrapperSimpleAppMain] ERROR RDBMS - An exception was thrown while adding/validating class(es) ORA-00904: "CHECKOUT_RESULT_SCMRESULN2_OID": invalid identifier INFO | jvm 1| 2007/08/08 14:05:04 | INFO | jvm 1| 2007/08/08 14:05:04 | java.sql.SQLException: ORA-00904: "CHECKOUT_RESULT_SCMRESULN2_OID": invalid identifier cheers cla Quoting Emmanuel Venisse <[EMAIL PROTECTED]>: Actually, oracle db isn't supported due to some field lengths. A patch similar to the one for mssql can be done: http://svn.apache.org/repos/asf/maven/continuum/trunk/continuum-model/src/main/resources/package-mssql.orm Emmanuel Cla Monsch a écrit : hi it's an unlovely story! with 1.0.3 it was possible to use an oracle db. there you had to adjust some mappings within the package.jdo file in the jpox jar. we also tried to switch the 1.1-alpha2 version to oracle but we gave it up due to problems between jpox and oracle. i suspect there isn't any documentation about this topic. cheers cla Quoting I am Who i am <[EMAIL PROTECTED]>: Is there anywhere any documenation for switching continuum database to something different than the default one?/ i want to have oracle db, is there any migration scritps, or anything If any one knows please let me know
Re: Is this a bug (Maven needs pom to read global settings.xml)?
Vote for it ... -Gisbert Vanja Petreski wrote: Yes! V On 10/1/07, Gisbert Amm <[EMAIL PROTECTED]> wrote: This one? http://jira.codehaus.org/browse/ARCHETYPE-81 -Gisbert Vanja Petreski wrote: Hello, I have Maven 2.0.7 installation on the SVN with configured settings.xml, so every developer can update changes (for example, about repo, etc..). I am using Artifactory for repository management and everything work perfectly until now. If I use, for example, mvn archetype:create -DgroupId=com.blah-DartifactId=modulX in a folder that doesn't contain pom.xml, Maven stucks at "update blah blah from central", where central is my Artifactory cache repo. I thought that there is a problem with Artifactory, but after an hour of experimenting I realized when I use the same command in a directory that contains pom.xml, it works. So, in the first case, Maven doesn't recognize global settings.xml!? Can somebody explain this strange behaviour or this is a bug? V -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 1&1 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven JavaScript Plugin 1.2 released
Hello, When trying to build it from sources, I got: [INFO] Scanning for projects... [INFO] [INFO] Building MobilVox Maven JavaScript Plugin [INFO]task-segment: [install] [INFO] Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-scm-plugin/1.0-beta-2/maven-scm-plugin-1.0-beta-2.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm/1.0-beta-2/maven-scm-1.0-beta-2.pom 4K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-scm-plugin/1.0-beta-2/maven-scm-plugin-1.0-beta-2.jar 21K downloaded [INFO] [plugin:descriptor] [INFO] Using 2 extractors. [INFO] Applying extractor for language: java [INFO] [ERROR] FATAL ERROR [INFO] [INFO] syntax error @[317,10] in file:/old/home/nono/soft/javascript/maven-js-plugin/src/main/java/com/mobilvox/ossi/mojo/js/compression/JsCompressor.java [INFO] [INFO] Trace com.thoughtworks.qdox.parser.ParseException: syntax error @[317,10] in file:/old/home/nono/soft/javascript/maven-js-plugin/src/main/java/com/mobilvox/ossi/mojo/js/compression/JsCompressor.java at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:504) at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:610) at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:488) at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:296) at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:312) at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:308) at com.thoughtworks.qdox.JavaDocBuilder$1.visitFile(JavaDocBuilder.java:365) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:43) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.scan(DirectoryScanner.java:52) at com.thoughtworks.qdox.JavaDocBuilder.addSourceTree(JavaDocBuilder.java:362) at org.apache.maven.tools.plugin.extractor.java.JavaMojoDescriptorExtractor.execute(JavaMojoDescriptorExtractor.java:477) at org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePluginDescriptor(DefaultMojoScanner.java:69) at org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(AbstractGeneratorMojo.java:99) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.Delegating -- OQube < software engineering \ génie logiciel > Arnaud Bailly, Dr. \web> http://www.oqube.com - To unsubscribe, e-mail: [EM
Re: Optional Mojo Execution?
Hi, Manos Batsis schrieb: Suppose i bundle several mojos under one plugin artifactId, how can i make their execution optional? In other words, I only want to run a specific mojo when there is an execution element is present for it's goal in the plugin configuration. Isn't that the default behaviour? You may want to look at the sources of the dependency- or assembly-plugin, both contain multiple mojo's and only those you specify in an execution element will be invoked. Many thanks, Manos -Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can properties in settings.xml be used inside settings.xml ?
Hi A quick semi-newbie question: If I define a property within settings.xml (the one found at /conf), can that property be used within the same setting.xml file ? Example: http://${server.root}/maven2 .. mycompany.thirdparty MyCompany Internal Thirdparty Repository ${mavenrepos.httpurl}/Thirdparty default ... . I've tried this, and it seems that the properties are not substituted with their values when I use ${mavenrepos.httpurl} as in the -section. Is this correct, or have I missed out on something here ? Regards Arne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is this a bug (Maven needs pom to read global settings.xml)?
Yes! V On 10/1/07, Gisbert Amm <[EMAIL PROTECTED]> wrote: > > This one? > > http://jira.codehaus.org/browse/ARCHETYPE-81 > > -Gisbert > > Vanja Petreski wrote: > > Hello, > > > > I have Maven 2.0.7 installation on the SVN with configured settings.xml, > so > > every developer can update changes (for example, about repo, etc..). > > > > I am using Artifactory for repository management and everything work > > perfectly until now. > > > > If I use, for example, mvn archetype:create > > -DgroupId=com.blah-DartifactId=modulX in a folder that doesn't contain > > pom.xml, Maven stucks at "update blah blah from central", where central > is > > my Artifactory cache repo. I thought that there is a problem with > > Artifactory, but after an hour of experimenting I realized when I use > the > > same command in a directory that contains pom.xml, it works. > > > > So, in the first case, Maven doesn't recognize global settings.xml!? > > > > Can somebody explain this strange behaviour or this is a bug? > > > > V > > > >
Re: [maven]Problem with settings.xml
zhongliang zhang schrieb: So,if I did not create manually,it will use the ${MAVEN_HOME}\conf\settings.xml by default,is it right? It is used even when you create a private settings.xml in ~/.m2. The content of the two files is merged, with settings in your private one taking precedence. In addition,I set the following property in the settings.xml C:/maven-2.0.7/sample/.m2/repository so,the local repository will be changed to the directory specified. Yes. BTW,I have set the true but it still does not work when I run mvn with no connection to the Internet(at home),unless I add the -o option that to make it work.why the settings not work? thanks again. I have personally never used one of mavens offline features. Try searching the archives of this mailinglist ([1], [2]), there are many threads about this topic. If you still have questions after reading the existing threads ask them in a new thread. -Tim [1] http://www.nabble.com/Maven---Users-f178.html [2] http://mail-archives.apache.org/mod_mbox/maven-users/ On 29/09/2007, Tim Kettler <[EMAIL PROTECTED]> wrote: Hi, You have to create it by hand if you want to configure something. As it would be empty by default it is just not created automatically. -Tim zhongliang zhang schrieb: I get the information from the maven site like the following: You can specify your user configuration in ${user.home}/.m2/settings.xml . But I can not find such file in my system,the os of my system is windows,so it should be located at c:\document and settings\administrator\.m2\settings.xml when I start the maven turorial,I run the command: mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app and then maven generates the .\m2\reposity direcotry automatically,and download some files into it. I think the file ${MAVEN_HOME}\conf\settings.xml is on work,because I need a proxy to connect to the Internet to download dependency files,I configured the proxy in the ${MAVEN_HOME}\conf\settings.xml,and it works. But I still can not find the settings.xml file in the ~\.m2 folder. Am I setting something wrong? Thanks for any advice and instructions. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tutorial doxia and maven plugin
See http://maven.apache.org/doxia/book/index.html The section titles need to match the source documents name, eg section-1 will get the source from a file apt/section-1.apt, or xdoc/section-1.xml, etc. You don't have to specify a title tag inside a section, the title will be taken from the source document. Actually I don't know what the file tag is for, you certainly don't need it... HTH, -Lukas Giovanni Pedone wrote: hello, may you please publish a quick tutorial on how to set up dozia and use it ? I have a maven project with documentantion generated by "maven site" given a set of xdoc documents under src/site/xdoc with a maven site.xml for generation. I would like to generate the same docs thru doxia maven plugin and get the output into different formats. How can I do that? I dont understand if I need to have the content files named exactly like the sections id defined in the book.xml. Also do I MUST specify title and file tags elements inside the section element of book.xml ? When I tried the following then I got this error: [INFO] [doxia:render-books] [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null [INFO] [INFO] Trace java.lang.reflect.UndeclaredThrowableException at $Proxy0.text(Unknown Source) at org.apache.maven.doxia.module.docbook.DocBookParser.handleText(DocBookParser .java:686) at org.apache.maven.doxia.parser.AbstractXmlParser.parseXml(AbstractXmlParser.j ava:96) at org.apache.maven.doxia.parser.AbstractXmlParser.parse(AbstractXmlParser.java :53) at org.apache.maven.doxia.DefaultDoxia.parse(DefaultDoxia.java:59) at org.apache.maven.doxia.book.services.renderer.AbstractITextBookRenderer.rend erSection(AbstractITextBookRenderer.java:260) at org.apache.maven.doxia.book.services.renderer.AbstractITextBookRenderer.rend erChapter(AbstractITextBookRenderer.java:216) at org.apache.maven.doxia.book.services.renderer.AbstractITextBookRenderer.rend erBook(AbstractITextBookRenderer.java:142) at org.apache.maven.doxia.book.DefaultBookDoxia.renderBook(DefaultBookDoxia.jav a:126) at org.apache.maven.doxia.plugin.DoxiaRenderBooksMojo.execute(DoxiaRenderBooksM ojo.java:214) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage r.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife cycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(De faultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec ycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail ures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa ultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle Executor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.doxia.sink.PipelineSink.invoke(PipelineSink.java:55) ... 28 more Caused by: java.util.EmptyStackException at java.util.Stack.peek(Stack.java:79) at org.apache.maven.doxia.module.itext.SinkActionContext.getCurrentAction(SinkA ctionContext.java:83) at org.apache.maven.doxia.module.itext.ITextSink.text(ITextSink.java:1354) ... 33 more This is waht I tried: --- pom.xml --- org.apache.maven.doxia doxia-maven-plugin 1.0-alpha-9 pre-site render-books
Re: Is this a bug (Maven needs pom to read global settings.xml)?
This one? http://jira.codehaus.org/browse/ARCHETYPE-81 -Gisbert Vanja Petreski wrote: Hello, I have Maven 2.0.7 installation on the SVN with configured settings.xml, so every developer can update changes (for example, about repo, etc..). I am using Artifactory for repository management and everything work perfectly until now. If I use, for example, mvn archetype:create -DgroupId=com.blah-DartifactId=modulX in a folder that doesn't contain pom.xml, Maven stucks at "update blah blah from central", where central is my Artifactory cache repo. I thought that there is a problem with Artifactory, but after an hour of experimenting I realized when I use the same command in a directory that contains pom.xml, it works. So, in the first case, Maven doesn't recognize global settings.xml!? Can somebody explain this strange behaviour or this is a bug? V -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 1&1 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tutorial doxia and maven plugin
hello, may you please publish a quick tutorial on how to set up dozia and use it ? I have a maven project with documentantion generated by "maven site" given a set of xdoc documents under src/site/xdoc with a maven site.xml for generation. I would like to generate the same docs thru doxia maven plugin and get the output into different formats. How can I do that? I dont understand if I need to have the content files named exactly like the sections id defined in the book.xml. Also do I MUST specify title and file tags elements inside the section element of book.xml ? When I tried the following then I got this error: [INFO] [doxia:render-books] [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null [INFO] [INFO] Trace java.lang.reflect.UndeclaredThrowableException at $Proxy0.text(Unknown Source) at org.apache.maven.doxia.module.docbook.DocBookParser.handleText(DocBookParser .java:686) at org.apache.maven.doxia.parser.AbstractXmlParser.parseXml(AbstractXmlParser.j ava:96) at org.apache.maven.doxia.parser.AbstractXmlParser.parse(AbstractXmlParser.java :53) at org.apache.maven.doxia.DefaultDoxia.parse(DefaultDoxia.java:59) at org.apache.maven.doxia.book.services.renderer.AbstractITextBookRenderer.rend erSection(AbstractITextBookRenderer.java:260) at org.apache.maven.doxia.book.services.renderer.AbstractITextBookRenderer.rend erChapter(AbstractITextBookRenderer.java:216) at org.apache.maven.doxia.book.services.renderer.AbstractITextBookRenderer.rend erBook(AbstractITextBookRenderer.java:142) at org.apache.maven.doxia.book.DefaultBookDoxia.renderBook(DefaultBookDoxia.jav a:126) at org.apache.maven.doxia.plugin.DoxiaRenderBooksMojo.execute(DoxiaRenderBooksM ojo.java:214) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage r.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife cycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(De faultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec ycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail ures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa ultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle Executor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.doxia.sink.PipelineSink.invoke(PipelineSink.java:55) ... 28 more Caused by: java.util.EmptyStackException at java.util.Stack.peek(Stack.java:79) at org.apache.maven.doxia.module.itext.SinkActionContext.getCurrentAction(SinkA ctionContext.java:83) at org.apache.maven.doxia.module.itext.ITextSink.text(ITextSink.java:1354) ... 33 more This is waht I tried: --- pom.xml --- org.apache.maven.doxia doxia-maven-plugin 1.0-alpha-9 pre-site render-books src/site src/site/book.xml xdoc pdf rtf --- book.xml: --- doxia-example-book XFire User Manual bind Bindings bindings --- bindings.xml: ---
Re: Do WAR overlays merge web.xml entries?
On 10/1/07, Manos Batsis <[EMAIL PROTECTED]> wrote: > > Subject says it all :-) With war - nop. But - maybe this: http://cargo.codehaus.org/Merging+WAR+files will help. Note that this is not a part of [EMAIL PROTECTED], it's a separate project ([EMAIL PROTECTED]) providing a plugin for maven2. Regards, Tomek > > Thanks, > > Manos > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Do WAR overlays merge web.xml entries?
It seems not. When I tried this the dependency WARs web.xml file is lost, you just get the web.xml of the project you are building. That was what I wanted, so I was happy. But I was unhappy that I had to put an empty web.xml in my dependency WAR just to conform to standards. John -Original Message- From: Manos Batsis [mailto:[EMAIL PROTECTED] Sent: 01 October 2007 10:35 To: Maven Users List Subject: Do WAR overlays merge web.xml entries? Subject says it all :-) Thanks, Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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 any contractual obligations in respect of any part of its business in any E-mail. Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you receive this transmission in error, please notify us immediately, and then delete this E-mail. Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan any attachments. Eurobase Systems Limited is the main trading company in the Eurobase International Group; registered in England and Wales as company number 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex CM2 0RE, UK. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Do WAR overlays merge web.xml entries?
Subject says it all :-) Thanks, Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is this a bug (Maven needs pom to read global settings.xml)?
Hello, I have Maven 2.0.7 installation on the SVN with configured settings.xml, so every developer can update changes (for example, about repo, etc..). I am using Artifactory for repository management and everything work perfectly until now. If I use, for example, mvn archetype:create -DgroupId=com.blah-DartifactId=modulX in a folder that doesn't contain pom.xml, Maven stucks at "update blah blah from central", where central is my Artifactory cache repo. I thought that there is a problem with Artifactory, but after an hour of experimenting I realized when I use the same command in a directory that contains pom.xml, it works. So, in the first case, Maven doesn't recognize global settings.xml!? Can somebody explain this strange behaviour or this is a bug? V
Re: continuum with oracle
Actually, oracle db isn't supported due to some field lengths. A patch similar to the one for mssql can be done: http://svn.apache.org/repos/asf/maven/continuum/trunk/continuum-model/src/main/resources/package-mssql.orm Emmanuel Cla Monsch a écrit : hi it's an unlovely story! with 1.0.3 it was possible to use an oracle db. there you had to adjust some mappings within the package.jdo file in the jpox jar. we also tried to switch the 1.1-alpha2 version to oracle but we gave it up due to problems between jpox and oracle. i suspect there isn't any documentation about this topic. cheers cla Quoting I am Who i am <[EMAIL PROTECTED]>: Is there anywhere any documenation for switching continuum database to something different than the default one?/ i want to have oracle db, is there any migration scritps, or anything If any one knows please let me know
Re: ?Project build start & successful build finish hooks?
jep a écrit : I am in the process of converting a large project from Subversion/Ant/CruiseControl to Subversion/Maven/Continuum(1.1-beta-2). 1.1-beta-3 is released. One of the things done on the CruiseControl machine is to restore a database to a known state before the build starts (so the integration tests run during the build start with a known state, and it is only done once per build for performance reasons). Another thing done currently, is that if the build is successful, then a Subversion copy of the source tree is saved as the last known successful build (from which tags and branches are created when needed). Under Continuum, is there a prescribed way to perform such one time, pre- and post-build work? I have currently placed the pre-build work in the 'root' pom.xml file (is there a better way?), but haven't figured how to gain control after a build completes and test if was successful and perform the svn copy. Actually, it isn't possible to add pre-post actions in continuum. We'll add this feature in a future version with some continuum plugins. For the moment, the best way is to add some maven plugins attached to the maven phases in your pom. If you don't want those plugins in your dev builds but only in CI builds, put them in a profile activated only in Continuum Emmanuel
RE: Duplicate jars/dependencies when building war module
Kjartan Aanestad wrote on Friday, September 28, 2007 11:50 AM: > Hi, > > We have a strange issue when building the war module. We have a > couple of common modules that are built by continuum and used as > dependencies in our project. Somehow these dependecies sometimes end > up twice in the war file (WEB-INF\lib), ie: > > [DEBUG] adding entry WEB-INF/lib/customer-proxy- > beans-1.0-20070917.11-39.jar > [DEBUG] adding entry WEB-INF/lib/customer-proxy-beans-1.0-SNAPSHOT.jar > > and > > [DEBUG] adding entry > WEB-INF/lib/ws-remoting-1.1-20070917.11-30.jar > [DEBUG] adding entry > WEB-INF/lib/ws-remoting-1.1-20070917.11-32.jar > > They are defined like this: > > >nn.common.proxy.beans >customer-proxy-beans >1.0-SNAPSHOT > > > >nn.common.remoting >ws-remoting >1.1-SNAPSHOT > > > Anyone have any suggestions what might be the problem? I you use war overlays, anything from the overlayed war is blindly copied over. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using maven for JavaScript projects
I've created a work-in-progress page : http://hammerfest.wiki.sourceforge.net/maven-javascript-plugin++Work+in+Progress The proposed lifecycle is : process-sources : ability to merge multiple individual js files into one (or more ?) js using a assembly schema. compile : copy js to target/scripts test : run jsunit (or other ?) tests package : archiva target/scripts into a custom .jsar archive format install deploy also provide a copydependency mojo to be used in web application to handle jsar dependencies. 2007/10/1, Richard Chamberlain <[EMAIL PROTECTED]>: > This looks good. I'm looking forward to contributing. If we can produce > a unified view on how to develop js I don't see any reason not to adopt > this. > > Rich > > -Original Message- > From: nicolas de loof [mailto:[EMAIL PROTECTED] > Sent: 01 October 2007 06:10 > To: Maven Users List > Subject: Re: Using maven for JavaScript projects > > I've created a wiki entry > (http://hammerfest.wiki.sourceforge.net/mavan-javascript-tools) > to resume the ideas exposed in this thread. > > please be nice and don't blame me for my ugly english ;-) > (any native english reader is welcome to fix my linguistics errors) > > Nico > > 2007/9/27, Adam Altemus <[EMAIL PROTECTED]>: > > Hey all, > > > > Sorry for coming into this discussion late. If anyone wants to use > anything > > from our JavaScript plugin, feel free to help yourself. It can be > found at > > http://ossi.mobilvox.com/maven-js-plugin or > > http://sf.net/projects/maven-js-plugin We're using a modded version > of > > JsMin, which has shown a higher compression ratio than DOJO's > Shrinksafe. > > Also, we put in a few other features to customize the compression and > what > > can be done with it. > > > > I'd like to contribute more to > > this but, time "is not on my side" so to speak right now. This is > > definitely cool stuff though. > > > > Thanks, > > > > Adam > > http://www.mobilvox.com > > > > On 9/27/07, Harlan Iverson <[EMAIL PROTECTED]> wrote: > > > > > > Yea, definitely alright and encouraged :) The first project is GPL > soon to > > > be LGPL, but the POM I'd consider to be whatever Selenium is since I > > > mostly > > > took my executions from there; and the second is MIT. > > > > > > Harlan > > > > > > On 9/27/07, nicolas de loof <[EMAIL PROTECTED]> wrote: > > > > > > > > Thanks a lot for those links, i'll take a look tomorow. > > > > > > > > Is it ok with you that I pick up code and/or ideas from this > projects > > > > ? I didn't found a License notice on the first one. The second one > is > > > > MIT-licensed, not sure if I can get code an re-package it under > apache > > > > license ? > > > > > > > > Nico. > > > > > > > > 2007/9/27, Harlan Iverson <[EMAIL PROTECTED]>: > > > > > It looks like there is a good array of tools coming to light > from this > > > > > thread. I, myself, have been tackling the problem of making JS > library > > > > > development more like Java development, as far as automated > running of > > > > unit > > > > > tests, documentation, packaging, etc, in recent months. > > > > > > > > > > I see a growing demand for a nice tool chain of things like > jslint, > > > > > shrinksafe, jsunit + jscoverage, selenium, jsdoc, and dependency > > > > management. > > > > > Maybe it's because I just came back to JS after several years > with a > > > > bunch > > > > > of Java development under my belt; but I see all these tools and > feel > > > > like > > > > > they should be integrated. Especially when I make the connection > > > between > > > > > web2.0 and people who promote Agile development practice. JS > tools are > > > > > hardly in the state to accommodate good Agile, IMO. If > integration > > > were > > > > > better, it would be a different story. > > > > > > > > > > My original approach was to create an Ant script that would > download > > > > various > > > > > things using the task, and use Maven Antlib for JSUnit, > Selenium > > > > and > > > > > ShrinkSafe dependencies. But now I am getting to the point where > I > > > want > > > > to > > > > > break my library into multiple parts (project-core, project-ext, > > > > > project-ext-gui, etc) and Maven seems like the natural answer. > And of > > > > course > > > > > when Maven comes into the picture, I want to manage my other JS > > > > dependencies > > > > > as such. > > > > > > > > > > So last night I gave it a shot, and it seems to work well using > war > > > > > packaging and their built-in overlay behavior. There are a few > kinks > > > to > > > > work > > > > > out, and probably Mojos to write, but I think it will work. > > > > > > > > > > My immediate need is for JSUnit, which I have hacked into a > series of > > > > > executions (see pom link below). I'll definitely be looking at > some of > > > > these > > > > > tools and seeing how I can use them (namely the ShrinkSafe > mojo!), and > > > > > hopefully getting a JSUnit mojo out of them at the very least. > I've > > > > never > > > > > writte
Re: Mavenide clashes with NB checkstyle plugin
You haven't included any details, but I assume I've seen myself something similar as well, with some reports. I suppose the issue will go away once we upgrade the maven embedder in use for project loading/building. in the meantime the workaround is to use the command line maven instance for building. (In 6.0 beta1, go to Tools/Options menu and under Miscelaneous find the maven2 tab) Regards Milos On 10/1/07, John Coleman <[EMAIL PROTECTED]> wrote: > Hi, > > > > We managed to get the Maven sites checkstyle report crashing when run > from Netbeans with the checkstyle plugin installed. Some kind of > classpath clash I suspect. > > > > We fixed this by removing the NB checkstyle plugin, I just wondered if > others have seen this or had any comments? It would be nice if we could > still have the plugin enabled for NB. > > > > Regards, > > John > > > > > > > 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 any contractual obligations > in respect of any part of its business in any E-mail. > > Privileged / confidential information may be contained in this message and > /or any attachments. This E-mail is intended for the use of the addressee(s) > only and may contain confidential information. If you are not the / an > intended recipient, you are hereby notified that any use or dissemination of > this communication is strictly prohibited. If you receive this transmission > in error, please notify us immediately, and then delete this E-mail. > > Neither the sender nor Eurobase accepts any liability whatsoever for any > defects of any kind either in or arising from this E-mail transmission. > E-Mail transmission cannot be guaranteed to be secure or error-free, as > messages can be intercepted, lost, corrupted, destroyed, contain viruses, or > arrive late or incomplete. Eurobase does not accept any responsibility for > viruses and it is your responsibility to scan any attachments. > > Eurobase Systems Limited is the main trading company in the Eurobase > International Group; registered in England and Wales as company number > 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex > CM2 0RE, UK. > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mavenide clashes with NB checkstyle plugin
Hi, We managed to get the Maven sites checkstyle report crashing when run from Netbeans with the checkstyle plugin installed. Some kind of classpath clash I suspect. We fixed this by removing the NB checkstyle plugin, I just wondered if others have seen this or had any comments? It would be nice if we could still have the plugin enabled for NB. Regards, John 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 any contractual obligations in respect of any part of its business in any E-mail. Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you receive this transmission in error, please notify us immediately, and then delete this E-mail. Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan any attachments. Eurobase Systems Limited is the main trading company in the Eurobase International Group; registered in England and Wales as company number 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex CM2 0RE, UK.
RE: Using maven for JavaScript projects
This looks good. I'm looking forward to contributing. If we can produce a unified view on how to develop js I don't see any reason not to adopt this. Rich -Original Message- From: nicolas de loof [mailto:[EMAIL PROTECTED] Sent: 01 October 2007 06:10 To: Maven Users List Subject: Re: Using maven for JavaScript projects I've created a wiki entry (http://hammerfest.wiki.sourceforge.net/mavan-javascript-tools) to resume the ideas exposed in this thread. please be nice and don't blame me for my ugly english ;-) (any native english reader is welcome to fix my linguistics errors) Nico 2007/9/27, Adam Altemus <[EMAIL PROTECTED]>: > Hey all, > > Sorry for coming into this discussion late. If anyone wants to use anything > from our JavaScript plugin, feel free to help yourself. It can be found at > http://ossi.mobilvox.com/maven-js-plugin or > http://sf.net/projects/maven-js-plugin We're using a modded version of > JsMin, which has shown a higher compression ratio than DOJO's Shrinksafe. > Also, we put in a few other features to customize the compression and what > can be done with it. > > I'd like to contribute more to > this but, time "is not on my side" so to speak right now. This is > definitely cool stuff though. > > Thanks, > > Adam > http://www.mobilvox.com > > On 9/27/07, Harlan Iverson <[EMAIL PROTECTED]> wrote: > > > > Yea, definitely alright and encouraged :) The first project is GPL soon to > > be LGPL, but the POM I'd consider to be whatever Selenium is since I > > mostly > > took my executions from there; and the second is MIT. > > > > Harlan > > > > On 9/27/07, nicolas de loof <[EMAIL PROTECTED]> wrote: > > > > > > Thanks a lot for those links, i'll take a look tomorow. > > > > > > Is it ok with you that I pick up code and/or ideas from this projects > > > ? I didn't found a License notice on the first one. The second one is > > > MIT-licensed, not sure if I can get code an re-package it under apache > > > license ? > > > > > > Nico. > > > > > > 2007/9/27, Harlan Iverson <[EMAIL PROTECTED]>: > > > > It looks like there is a good array of tools coming to light from this > > > > thread. I, myself, have been tackling the problem of making JS library > > > > development more like Java development, as far as automated running of > > > unit > > > > tests, documentation, packaging, etc, in recent months. > > > > > > > > I see a growing demand for a nice tool chain of things like jslint, > > > > shrinksafe, jsunit + jscoverage, selenium, jsdoc, and dependency > > > management. > > > > Maybe it's because I just came back to JS after several years with a > > > bunch > > > > of Java development under my belt; but I see all these tools and feel > > > like > > > > they should be integrated. Especially when I make the connection > > between > > > > web2.0 and people who promote Agile development practice. JS tools are > > > > hardly in the state to accommodate good Agile, IMO. If integration > > were > > > > better, it would be a different story. > > > > > > > > My original approach was to create an Ant script that would download > > > various > > > > things using the task, and use Maven Antlib for JSUnit, Selenium > > > and > > > > ShrinkSafe dependencies. But now I am getting to the point where I > > want > > > to > > > > break my library into multiple parts (project-core, project-ext, > > > > project-ext-gui, etc) and Maven seems like the natural answer. And of > > > course > > > > when Maven comes into the picture, I want to manage my other JS > > > dependencies > > > > as such. > > > > > > > > So last night I gave it a shot, and it seems to work well using war > > > > packaging and their built-in overlay behavior. There are a few kinks > > to > > > work > > > > out, and probably Mojos to write, but I think it will work. > > > > > > > > My immediate need is for JSUnit, which I have hacked into a series of > > > > executions (see pom link below). I'll definitely be looking at some of > > > these > > > > tools and seeing how I can use them (namely the ShrinkSafe mojo!), and > > > > hopefully getting a JSUnit mojo out of them at the very least. I've > > > never > > > > written a plugin (beyond hello world), but I'm eager to give it a > > shot. > > > > > > > > I have high hopes that Maven can bring the state of JS development up > > to > > > par > > > > with the Agile way that so many web2.0 people want to develop. I'm > > > looking > > > > forward to hearing more of everyone's great ideas! > > > > > > > > Harlan > > > > > > > > ps. > > > > Here's my main POM with JSUnit (in-progress proof of concept, by no > > > means a > > > > final product). The executions for JSUnit are basically a copy of > > > > Selenium's: > > > > http://soashable.googlecode.com/svn/xmpp4js/branches/maven/pom.xml > > > > > > > > And here's my old Ant script "JSLibBuilder": > > > > http://soashable.googlecode.com/svn/jslibbuilder/trunk/ > > > > > > > > > > > > On 9/27/07, nicolas de loof <[EMAIL PROTECTED]> wrote: > > >
Re: Not downloading dependencies from managed repository via HTTP
Hi, The problem is fixed: To get to the external internet we use an organizational http proxy, and in my settings.xml I had this http proxy configured. The server where I ve installed archiva was inside the internal network, and therefore not accesible via http via the proxy I deactivate the proxy in settings.xml and works fine. My fault ;) Cheers! Cheers. -- View this message in context: http://www.nabble.com/Not-downloading-dependencies-from-managed-repository-via-HTTP-tf4535097s177.html#a12974844 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Doubt about settings.xml and properties
Hi all, I tried to follow an example found in chapter 7 of Better Builds with Maven free book. In particular, I have defined a settings.xml in "conf" folder of maven's installation directory, the following is a piece of that file: ... private-internal-repository ${website.username} password ... Then I have defined a settings.xml in my USER_HOME/.m2, the following is that file: property-overrides admin At this point, I tried to deploy my artifact using this configuration, but I had a 401 error during deploy. Moreover executing the mvn help:effective-settings command the output showed me that the property "${website.username}" wasn't resolved. Obviously, substituting ${website.username} with admin WORKS!!! Why the book's example doesn't work? Thanks in advance and best regards. Raffaele -- View this message in context: http://www.nabble.com/Doubt-about-settings.xml-and-properties-tf4546756s177.html#a12974745 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Site] Deployment on a network drive
Hi all, I have a project with several modules: myProject myProject/commons myProject/business ... I want to deploy my site on a network drive, for example "\\\y", in a directory "site\my-site". If this network drive (e.g. F:\site\my-site), then I have no problem to deploy it using the following code in pom.xml (the parent one): website file://F:/site/my-site Now, imagine that my network drive is not mapped. I update my distributionManagement definition, as explained in the page http://www.sonatype.com/book/repository.html: website file://\\site\my-site\site\my-site When I try to deploy my site, I get no error (the logs seem correct), but my site is not deployed correctly : The site of the parent is indeed deployed in the correct place (i.e. \\site\my-site\site\my-site\myProject), but all modules of this parent project are deployed in my C:\ directory. It seems to be a bug. I found a way to make the deployment works: For each modules, I redefine the distributionManagement. For example, for the module "Commons", its pom.xml contains: website file://\\site\my-site\site\my-site\commons As my project contains 13 modules, I need to define 14 times the distributionManagement !! Can you confirm that it is a bug, or did I do something wrong? ps: I use the version 2.0-beta5 of Maven Site plugin. -- View this message in context: http://www.nabble.com/-Site--Deployment-on-a-network-drive-tf4546753s177.html#a12974726 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Improving Maven Site Docs (was maven is hard)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian E. Fox wrote: > A common theme in the "maven is hard" thread is bad documentation and > > > Lets list some positive improvements that can be made to the existing > Maven site in this thread. I started to respond to this thread. Then decided to scrap that. There are some navigation issues and the like. The biggest problem that I see is that a document doesn't exist for a new Maven user so that they see the vision of the designers of the core Maven features and plugins of any kind. Part of that comes from missing documentation in the code and documentation that gets going but stops i.e. there's tons of I just figured out Maven and here's my spin on the 5 minute guide. Perhaps part of the site issues are from the Maven 1.x to Maven 2.x transition. I am about a year old Maven user. I am very excited about Maven because it will replace my shell scripts. Yes, I don't have the ANT baggage and the POM thing feels my needs. The biggest plus is the network repository and pulling down jars that I need. "That's Hot" I think I have finally hit critical mass. The hard part is putting that in a form that other people can understand. Maven uses decoupling and indirection. I finally see how to put that together. It's difficult to find a way to explain some of concepts. Non the less, I making my attempt. Please see http://jira.codehaus.org/browse/MNGSITE-27 with this description: Create Maven Build Host guide. "I am putting Maven together in my head. I am working it out in how to configure a Maven centric build host. Draft one is very rough. Major areas of thought and configuration have been sketched out. It may not be ready for publication yet. To use: Download draft Crate maven site project. copy unzipped files in mytestprog/src/site cd mytestprog mvn site:run There lot's of work left for what I am attempting. I'd love to hear your feedback if you have time to download and unzip the files into a simple site project. The feedback will help me see if you're getting what I see too. Please remember that I have attached a draft one zip file. There's lot's of todo sections as I have fleshed out a beginning to end layout. However, there are some sections of the document that are already quite mature. Ohh and I am quite dyslexic so bear with me on the spelling and phrasing. I prefer to just toss out ideas so things will look ugly to many people. ;-( HeeHee. No it won't die here. I have to understand these issues at home so I can slog through it at work on Solaris. I am motivated contributor. ;-) HTH, Greg -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFHAKGvxyxe5L6mr7IRAjpnAJ0bD1LGLYuySGl3S2moYNO/UEwZfgCfWG12 Pu1Azo4axQmrOPiLuMu3UoY= =irI/ -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]