Re: Error transfering file
I am having the exact same problem. When I copy and paste the link into the web browser I get: Error 404 Not Found Resource in error: http://trn-esv1:8080/archiva/repository/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom Exception details: it.could.webdav.DAVException: Not found at org.codehaus.plexus.webdav.simple.ReplacementGetMethod.process(ReplacementGetMethod.java:92) at it.could.webdav.DAVProcessor.process(DAVProcessor.java:79) at org.codehaus.plexus.webdav.simple.SimpleDavServerComponent.process(SimpleDavServerComponent.java:152) at org.apache.maven.archiva.web.repository.ProxiedDavServer.process(ProxiedDavServer.java:138) at org.codehaus.plexus.webdav.servlet.multiplexed.MultiplexedWebDavServlet.service(MultiplexedWebDavServlet.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830) at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:189) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39) 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) any ideas? (besides manually creating the pom.xml file :) ) Regards AB Stefan Hübner wrote: Hi Doug, You might need to change the mirror-URL in settings.xml to http://10.10.10.72:8080/archiva/proxy/internal. That might work. -Stefan 2006/12/15, dfischer [EMAIL PROTECTED]: I think that I have setup Archiva correctly however when I set up a project to use it as the remote repository (overriding central, I have central proxied through Archiva), I continually get errors like the following: Project ID: xml-security:xmlsec Reason: Error getting POM for 'xml-security:xmlsec' from the repository: Error transferring file xml-security:xmlsec:pom:1.3.0 from the specified remote repositories: central (http://10.10.10.72:8080/archiva/repository/internal) If I run the same install goal with the -o flag set, the build is successful. I am assuming that it is a network issue but I do not know how to fix it. I created a POM for xmlsec-1.3.0 and I am able to see it through Archiva but for some reason I cannot get it during the build. Thank you very much for your help. Doug -- View this message in context: http://www.nabble.com/Error-transfering-file-tf2827564.html#a7893175 Sent from the archiva-users mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Error-transfering-file-tf2827564.html#a11525909 Sent from the archiva-users mailing list archive at Nabble.com.
RE: Continuum Error : Cannot find parent
Hi; Have you tried to add the parent pom to continuum? It adds automatically all modules, at least it did it to me when i tried. Yes, I tried it, but i have the same problem,continuum can't find the modules: Could not download file:/C:/WINDOWS/TEMP/summit-1/../projectA/trunk/pom.xml: C:\WINDOWS\TEMP\summit-1\..\projectA\trunk\pom.xml (El sistema no puede hallar la ruta especificada) And the same for the project B. Any more idea??? thanks. Javier -- View this message in context: http://www.nabble.com/Continuum-Error---%3A--Cannot-find-parent-tf4049310.html#a11516134 Sent from the Continuum - Users mailing list archive at Nabble.com.
Re: Continuum Error : Cannot find parent
Where is your parent pom? In a remote repository? Emmanuel javijava a écrit : Hi; Have you tried to add the parent pom to continuum? It adds automatically all modules, at least it did it to me when i tried. Yes, I tried it, but i have the same problem,continuum can't find the modules: Could not download file:/C:/WINDOWS/TEMP/summit-1/../projectA/trunk/pom.xml: C:\WINDOWS\TEMP\summit-1\..\projectA\trunk\pom.xml (El sistema no puede hallar la ruta especificada) And the same for the project B. Any more idea??? thanks. Javier
Re: Continuum Error : Cannot find parent
If I try other structure,with poms in each level, continuum still can't add a project with more than one pom's level: repo | |-pom.xml | |-projectA | |-pom.xml | |-Trunk | |---pom.xml any one knows, how to add a project with this structure?? Thanks -- View this message in context: http://www.nabble.com/Continuum-Error---%3A--Cannot-find-parent-tf4049310.html#a11518418 Sent from the Continuum - Users mailing list archive at Nabble.com.
RE: Continuum Error : Cannot find parent
Are you uploading the parent pom? or using a url? -Mensaje original- De: javijava [mailto:[EMAIL PROTECTED] Enviado el: mar 10/07/2007 13:05 Para: continuum-users@maven.apache.org Asunto: Re: Continuum Error : Cannot find parent If I try other structure,with poms in each level, continuum still can't add a project with more than one pom's level: repo | |-pom.xml | |-projectA | |-pom.xml | |-Trunk | |---pom.xml any one knows, how to add a project with this structure?? Thanks -- View this message in context: http://www.nabble.com/Continuum-Error---%3A--Cannot-find-parent-tf4049310.html#a11518418 Sent from the Continuum - Users mailing list archive at Nabble.com. -- This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. Este mensaje y los ficheros adjuntos pueden contener informacion confidencial destinada solamente a la(s) persona(s) mencionadas anteriormente. Pueden estar protegidos por secreto profesional Si usted recibe este correo electronico por error, gracias de informar inmediatamente al remitente y destruir el mensaje. Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin no se hace responsable por su contenido. Su contenido no constituye ningun compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas partes. Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor no puede garantizar nada al respecto y no sera responsable de cualesquiera danos que puedan resultar de una transmision de virus --
RE: Continuum Error : Cannot find parent
Thats a good question!!! Uploading is only for single projects. using a url Continuum said: Missing artifact trying to build the POM. Check that its parent POM is available or add it first in Continuum. -- View this message in context: http://www.nabble.com/Continuum-Error---%3A--Cannot-find-parent-tf4049310.html#a11519465 Sent from the Continuum - Users mailing list archive at Nabble.com.
Re: How to add projects with modules????
is it Trunk or trunk ? javijava a écrit : Hi to all, I want add a M2 project to Continuum , the project..is some like this repo | |-pom.xml | |-projectA | |-pom.xml | |-Trunk | |---pom.xml If I try to add the super pom, continuum saids that SCM is missing, but if i try to add the pom of the project (http:/localhost/repo/projectA/trunk/pom.xml) continuum said: ' Missing artifact trying to build the POM. Check that its parent POM is available or add it first in Continuum' Nobody knows, how can I add the proyect with modules??, thanks Javier
Re: How to add projects with modules????
is it Trunk or trunk ? trunk -- View this message in context: http://www.nabble.com/How-to-add-projects-with-modules-tf4055384.html#a11520534 Sent from the Continuum - Users mailing list archive at Nabble.com.
Re: RE: Continuum Error : Cannot find parent
My svn repository is available on http. I add at the end..two projects, one have dependences with the other, I add the bottom level pom, http://localhost/repo/projectA/trunk/pom.xml. when I try to do a Build, continuum can't fiond the parent [INFO] Failed to resolve artifact. GroupId: groupid ArtifactId: dependency Version: SNAPSHOT Reason: Unable to download the artifact from any repository repo | |-pom.xml | |-projectA | |-pom.xml | |-Trunk | |---pom.xml You know whe is the problem? thanks -- View this message in context: http://www.nabble.com/Continuum-Error---%3A--Cannot-find-parent-tf4049310.html#a11521584 Sent from the Continuum - Users mailing list archive at Nabble.com.
Default java source version
Hi, i was wondering if i can change de default java source and target version for the compiler plugin to let's say 1.5 oder 1.6 globally in the settings.xml (or somewhere else), and only override it in the pom file if i need an older version. thanks! cheers, severin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Default java source version
On 7/10/07, Severin Ecker [EMAIL PROTECTED] wrote: i was wondering if i can change de default java source and target version for the compiler plugin to let's say 1.5 oder 1.6 globally in the settings.xml (or somewhere else), and only override it in the pom file if i need an older version. Create a profile in your settings with activeByDefault=true. In that profile, add a section build/plugins/plugin for the maven-compiler-plugin and configure it appropriately. Jochen -- Besides, manipulating elections is under penalty of law, resulting in a preventative effect against manipulating elections. The german government justifying the use of electronic voting machines and obviously believing that we don't need a police, because all illegal actions are forbidden. http://dip.bundestag.de/btd/16/051/1605194.pdf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot download parent pom from specified remote repository
Can we see you setting.xml ? It seems that you have not a mirror of central. Rémy
Re: Cannot download parent pom from specified remote repository
Here it is. But I do not see the point: how is the mirror involved? It seems that maven tries to download from repo1 and not from my company repo, where it is supposed to try first. Anyway, maybe I am missing some point here :) Thanks. On 7/10/07, Rémy Sanlaville [EMAIL PROTECTED] wrote: Can we see you setting.xml ? It seems that you have not a mirror of central. Rémy settings servers server server idsourcesense/id usernameusername/username passwordvery-secret/password /server server idtomcat-localhost/id usernameadmin/username passwordadmin/password /server /servers proxies proxy activefalse/active protocolhttps/protocol host10.11.2.100/host port80/port usernameuser/username passwordpass/password nonProxyHosts127.0.0.1|localhost/nonProxyHosts /proxy proxy activefalse/active protocolhttp/protocol host10.11.2.100/host port80/port usernameuser/username passwordpass/password nonProxyHosts127.0.0.1|localhost/nonProxyHosts /proxy proxy activefalse/active protocoldav/protocol host10.11.2.100/host port80/port usernameuser/username passwordpass/password nonProxyHosts127.0.0.1|localhost/nonProxyHosts /proxy /proxies /settings - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Continuum Error : Cannot find parent
No, I have a directory (working copy) called Repo ok inside, in the same level, i have the two projects and the parent directory with the superPom each project have a subdirectory trunk with their Pom repo | | |-projectA | |-Trunk | |---pom.xml |-projectB | |-Trunk | |---pom.xml | | |-parent |---pom.xml What do you think...is a good estructure? -- View this message in context: http://www.nabble.com/Continuum-Error---%3A--Cannot-find-parent-tf4049310.html#a11516414 Sent from the Continuum - Users mailing list archive at Nabble.com.
Re: Cannot download parent pom from specified remote repository
Hi, As I mentioned in my first post, try to add this in your setting.xml mirrors mirror idCorporate Proxy/id mirrorOfcentral/mirrorOf namemy corporate repository/name urlurl to your maven 2 proxy/url /mirror /mirrors This indicates to maven 2 to look at your maven 2 proxy instead of repo1. Normally your proxy is configure in order to look at maven 2 repository if needed It also depends on how your maven 2 proxy is configure. In your case, it seems that you also have to add your corporate repository in your pom.xml in order to find your pom corporate (I assume that you pom corporate is in your inhouse repository) : repositories repository idinhouse/id nameInhouse maven repository/name urlurl to your corporate repository/url releases enabledtrue/enabled /releases snapshots enabledfalse/enabled /snapshots /repository /repositories This indicates to maven 2 to look at your inhouse repository to find your pom corporate in order to download it in your local repository. Rémy
Re: Maven deploy problem
Hallo are you using webdav to deploy the file into the repository? if so has there been another deployment of that file from another location? 409 indicates versioning issues in webdav. but may not be related to webdav at all. i would try using file:// instead of the url or using the install: goal to resolve this. have you tried another name for group and artifactId? (just for testing) Alexandre Nshimiyimana schrieb: Hi, I get this error when I try to deploy manualy the quartz jar to my repository. : Unable to transfer file. HttpURLConnection returned the response code: 409 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Checkstyle report fails on release, not site
hallo well parent poms and relative paths. a long story. have you issued the site command from the sub-modules? but the release is done from the parent pom? it seems the checkstyle plugin is not aware of that difference and is looking at the wrong location. i do both site and release from the the parent pom and it works this way. but single module builds fail in my case. Jon Strayer schrieb: I have a parent pom that all my projects inherent. It configures the checkstyle plugin like this: configuration configLocation ../theteam/checkstyle.xml /configLocation headerLocation ../theteam/header.txt /headerLocation /configuration This works fine when I use mvn site, but when I use mvn release:prepare I get this error Embedded error: Error rendering Maven report: Unable to find configuration file location. Unable to find location '../theteam/checkstyle.xml' as URL, File or Resource. So, why can it find it for the first command but not the second? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Site-related question ... change default index.html
You could just use xdoc directly without the velocity pre-processing... (i.e. src/site/xdoc/index.xml). Andy On 8 Jul 2007, at 15:35, Giovanni Azua wrote: Hi all, I was trying to get the same effect as maven 2 website where there is a portlet on the right side including some adds and news information. I checked out their repository and found the following velocity template being included: $PROJECT_HOME/trunk/src/site/xdoc/index.xml.vm The problem is that such file does not get picked up automatically from my build process and the indication to maven of the existence of this file is not anywhere bellow the project directory structure so I presume should be somewhere in the settings.xml if so then how can I customize it myself? Many thanks in advance, 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: New maven user: The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found
And make sure you don't have any bad mirrors configured in your settings.xml :) Andy On 10 Jul 2007, at 02:29, Maria Odea Ching wrote: Hi Robert, Try cleaning out your repo by deleting all versions of the maven- archetype-plugin (including metadata and pom files). Then execute archetype:create again. Sometimes, its because the artifact or metadata got corrupted. HTH, Deng Robert Hadfield wrote: Hi, I have tried several times now to get maven, just to try it out. I've been pretty disappointed at not being able to get going after 5 or 6 attempts over the last few months. I have followed the steps in the 5 minute guide (and the quickstart - I seem to get the same problem whatever I try). Maven in 5 minutes: Installation - done: cpc1-reig2-0-0-cust1000:~/Documents/workspace robhadfield$ mvn -- version Maven version: 2.0.7 Java version: 1.5.0_07 OS name: mac os x version: 10.4.10 arch: i386 I have a direct (ISP) connection to the internet so I assume I don't need any special 'network setup' to be done. Next step, try mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app cpc1-reig2-0-0-cust1000:~/Documents/workspace robhadfield$ mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app [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] For more information, run Maven with the -e switch [INFO] - --- [INFO] Total time: 1 second [INFO] Finished at: Sun Jul 08 10:27:19 BST 2007 [INFO] Final Memory: 1M/2M [INFO] - --- env output shows: PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/bin/ maven-2.0.7/bin PWD=/Users/robhadfield/Documents/workspace JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home M2_HOME=/usr/local/bin/maven-2.0.7 I've found similar reports of these symptoms but occurring at the build stage (next step). I have no idea what I've done wrong here - everything looks like it is set correctly. I can't think of anything that should be different for my system. Can anyone help? - 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: Cannot download parent pom from specified remote repository
You may have indeed identified a problem there, but I do not see information about which maven version you are using (please forgive me if I missed it). Are you on the latest (2.0.7)? Andy On 9 Jul 2007, at 14:55, Daniele Dellafiore wrote: I know, there are a lot of dependencies that are downloaded from my company repository that is specified in the child project pom. As you can see in my log, there is a incoherence that I am trying to point out: Maven tries to download the parent pom just from repo1.maven.org: [INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/com/sourcesense/alfresco/ alfresco-base/1.0/alfresco-base-1.0.pom [INFO] --- and then give the Fatal Error. But after it tells that it cannot found artifact in both repos: -- from the specified remote repositories: central (http://repo1.maven.org/maven2), sourcesense (dav:https://dev.sourcesense.com/repos/dev/maven2) -- I suspect that it does not even try to download the parent pom artifact from my company repo. All other artifact are correclty downloaded and normally the download sequence is: first, specified repo, later the default repo, in fact this is a typical sequence: Downloading: https://dev.sourcesense.com/repos/dev/maven2/axis/axis- jaxrpc/1.4/axis-jaxrpc-1.4.pom Downloading: http://repo1.maven.org/maven2/axis/axis-jaxrpc/1.4/ axis-jaxrpc-1.4.pom Downloading: https://dev.sourcesense.com/repos/dev/maven2/axis/axis- saaj/1.4/axis-saaj-1.4.pom Downloading: http://repo1.maven.org/maven2/axis/axis-saaj/1.4/axis- saaj-1.4.pom Finally: or I am missing something in configuration or there is a bug in the sequence: maven does not look for repositories defined in pom before looking for the parent project artifact. In fact if I already have the artifact in local repo, everything works. On 7/9/07, Rémy Sanlaville [EMAIL PROTECTED] wrote: Hi, You parent pom is like any artifact and you have to indicate to maven 2 where to find it. Since you have a corporate repository (via a maven proxy) you have two solutions : 1. Either you add a reference to your corporate repository in your pom.xml repositories repository idinhouse/id nameInhouse maven repository/name urlurl to your corporate repository/url releases enabledtrue/enabled /releases snapshots enabledfalse/enabled /snapshots /repository 2. or by specifying your corporate repository to maven 2 in your setting.xml mirrors mirror idCorporate Proxy/id mirrorOfcentral/mirrorOf namemy corporate repository/name urlurl to your corporate repository/url /mirror It's important to use the token central for the node mirrorOf. In general, the second solution is better when using a maven 2 proxy. HTH, Rémy - 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]
Manifest customization: Where to find the docs?
Hi list, I want to know what is possible in manifest customization. I found examples on http://maven.apache.org/guides/mini/guide-manifest.html and http://maven.apache.org/plugins/maven-jar-plugin/examples/manifest-customization.html This latter page says For more info see the MavenArchiveConfiguration Javadocs with a hyperlink to http://maven.apache.org/ref/current/maven-archiver/apidocs/org/apache/maven/archiver/MavenArchiveConfiguration.html However, that page cannot be found. I also found a (rather dated) posting at http://www.nabble.com/-M2--Manifest.mf-tf149023s177.html#a413884 where Brett Porter gave the URL of the source: http://svn.apache.org/repos/asf/maven/components/trunk/maven-archiver/src/main/java/org/apache/maven/archiver/ManifestConfiguration.java That file isn't there anymore; there isn't even a component named maven-archiver in http://svn.apache.org/repos/asf/maven/components/trunk/ So where can I find the source or some javadoc covering manifest customization? -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 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: Default java source version
This particular bit of configuration is your friend. Put it in the plugins section of your POM: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin (I forgot to put it in yesterday and kept getting messages that -source 1.3 did not support generics and annotations). Jason -Original Message- From: Severin Ecker [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 10, 2007 2:12 AM To: Maven Users List Subject: Default java source version Hi, i was wondering if i can change de default java source and target version for the compiler plugin to let's say 1.5 oder 1.6 globally in the settings.xml (or somewhere else), and only override it in the pom file if i need an older version. thanks! cheers, severin - 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: Checkstyle report fails on release, not site
On 7/10/07, ossi petz [EMAIL PROTECTED] wrote: hallo well parent poms and relative paths. a long story. have you issued the site command from the sub-modules? but the release is done from the parent pom? Yes, the site is from the sub-modules, but the release is also from the sub modules. it seems the checkstyle plugin is not aware of that difference and is looking at the wrong location. i do both site and release from the the parent pom and it works this way. but single module builds fail in my case. Well, at least we are seeing the same thing. :-) Jon Strayer schrieb: I have a parent pom that all my projects inherent. It configures the checkstyle plugin like this: configuration configLocation ../theteam/checkstyle.xml /configLocation headerLocation ../theteam/header.txt /headerLocation /configuration This works fine when I use mvn site, but when I use mvn release:prepare I get this error Embedded error: Error rendering Maven report: Unable to find configuration file location. Unable to find location '../theteam/checkstyle.xml' as URL, File or Resource. So, why can it find it for the first command but not the second? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Esse Quam Videre To Be, rather than to Seem
Re: How to generate resources in test and include them into release JAR?
On Mon, Jul 09, 2007 at 05:31:16PM +0300, Eugeny N Dzhurinsky wrote: Hello! In my application some tests are performing lookup for test (sample) data, create and manage some mapping tables, which tables are verified by another tests and then needed to be included into main JAR file, generated by maven package/install goals. So I need to provide an ability to include some of files in src/test/resources into the main jar, could somebody please explain how would I do that? So is it possible to do such kind of trick - in the unit tests generate some resources and include them into JAR file generated by package/install goal? The main thing is the files will appear in the resources directory AFTER tests were invoked and completed. I assume this could be done with Ant task, but if it possible to achieve my goal w/o using ant - it would be great. -- Eugene N Dzhurinsky - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven deploy problem
Hello! We are using sometimes webdav. we tried another name for group and artifactId. Thanks. 2007/7/10, ossi petz [EMAIL PROTECTED]: Hallo are you using webdav to deploy the file into the repository? if so has there been another deployment of that file from another location? 409 indicates versioning issues in webdav. but may not be related to webdav at all. i would try using file:// instead of the url or using the install: goal to resolve this. have you tried another name for group and artifactId? (just for testing) Alexandre Nshimiyimana schrieb: Hi, I get this error when I try to deploy manualy the quartz jar to my repository. : Unable to transfer file. HttpURLConnection returned the response code: 409 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Default java source version
hi jason, yes i know that and i have that section in my POM. what i want is to override the default of java 1.3 so i don't have to do that in all my project POM files which is tedious. that's why i was asking for a way to configure it in the settings.xml. i suppose 1.3 is not hardcoded and can be changed via some property or some other configuration... no? cheers, severin Ferguson, Jason M TSgt 375 CSPTS/SCE wrote: This particular bit of configuration is your friend. Put it in the plugins section of your POM: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin (I forgot to put it in yesterday and kept getting messages that -source 1.3 did not support generics and annotations). Jason -Original Message- From: Severin Ecker [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 10, 2007 2:12 AM To: Maven Users List Subject: Default java source version Hi, i was wondering if i can change de default java source and target version for the compiler plugin to let's say 1.5 oder 1.6 globally in the settings.xml (or somewhere else), and only override it in the pom file if i need an older version. thanks! cheers, severin - 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: Continuum Error : Cannot find parent
Ah!, the repository where is placed the project is a subversion repository. The option URL is only for maven2 repositories? thanks -- View this message in context: http://www.nabble.com/Continuum-Error---%3A--Cannot-find-parent-tf4049310.html#a11521127 Sent from the Continuum - Users mailing list archive at Nabble.com.
Re: Checkstyle report fails on release, not site
well after reading along in the docs: http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html kinda solves this issue :) (havent tested it yet but it looks good) Jon Strayer schrieb: On 7/10/07, ossi petz [EMAIL PROTECTED] wrote: hallo well parent poms and relative paths. a long story. have you issued the site command from the sub-modules? but the release is done from the parent pom? Yes, the site is from the sub-modules, but the release is also from the sub modules. it seems the checkstyle plugin is not aware of that difference and is looking at the wrong location. i do both site and release from the the parent pom and it works this way. but single module builds fail in my case. Well, at least we are seeing the same thing. :-) Jon Strayer schrieb: I have a parent pom that all my projects inherent. It configures the checkstyle plugin like this: configuration configLocation ../theteam/checkstyle.xml /configLocation headerLocation ../theteam/header.txt /headerLocation /configuration This works fine when I use mvn site, but when I use mvn release:prepare I get this error Embedded error: Error rendering Maven report: Unable to find configuration file location. Unable to find location '../theteam/checkstyle.xml' as URL, File or Resource. So, why can it find it for the first command but not the second? - 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: Default java source version
What about creating a global parent pom containing the 1.5 config? On 7/10/07, Severin Ecker [EMAIL PROTECTED] wrote: hi jason, yes i know that and i have that section in my POM. what i want is to override the default of java 1.3 so i don't have to do that in all my project POM files which is tedious. that's why i was asking for a way to configure it in the settings.xml. i suppose 1.3 is not hardcoded and can be changed via some property or some other configuration... no? cheers, severin Ferguson, Jason M TSgt 375 CSPTS/SCE wrote: This particular bit of configuration is your friend. Put it in the plugins section of your POM: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin (I forgot to put it in yesterday and kept getting messages that -source 1.3 did not support generics and annotations). Jason -Original Message- From: Severin Ecker [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 10, 2007 2:12 AM To: Maven Users List Subject: Default java source version Hi, i was wondering if i can change de default java source and target version for the compiler plugin to let's say 1.5 oder 1.6 globally in the settings.xml (or somewhere else), and only override it in the pom file if i need an older version. thanks! cheers, severin - 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: Default java source version
We handled this problem by creating a parent POM that all of our projects inherit from with the following: plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin Then in the individual project you add: parent artifactIdparent-artifact-name/artifactId groupIdcom.my.group/groupId version1.0/version /parent In a couple of projects, we needed to use 1.6 instead of 1.5, so then you have to override the settings in a given child pom: build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.6/source target1.6/target forktrue/fork executable${JAVA_1_6_HOME}/bin/javac/executable compilerVersion1.6/compilerVersion /configuration /plugin /plugins /build Where JAVA_1_6_HOME is an environment variable that provides the home of a different java version. HTH, Trevor -Original Message- From: Severin Ecker [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 10, 2007 7:39 AM To: Maven Users List Subject: Re: Default java source version hi jason, yes i know that and i have that section in my POM. what i want is to override the default of java 1.3 so i don't have to do that in all my project POM files which is tedious. that's why i was asking for a way to configure it in the settings.xml. i suppose 1.3 is not hardcoded and can be changed via some property or some other configuration... no? cheers, severin Ferguson, Jason M TSgt 375 CSPTS/SCE wrote: This particular bit of configuration is your friend. Put it in the plugins section of your POM: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin (I forgot to put it in yesterday and kept getting messages that -source 1.3 did not support generics and annotations). Jason -Original Message- From: Severin Ecker [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 10, 2007 2:12 AM To: Maven Users List Subject: Default java source version Hi, i was wondering if i can change de default java source and target version for the compiler plugin to let's say 1.5 oder 1.6 globally in the settings.xml (or somewhere else), and only override it in the pom file if i need an older version. thanks! cheers, severin - 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]
How to download source code to repos?
I'm just wondering, how to use 'mvn install' command to also download the source code of a package? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to use dependency:purge-local-repository
I don't know if this will help, but I never use the dependency plugin to clean out the local repo... I always just delete the ~/.m2/repository/ folder (or some subfolder in it). HTH, Trevor -Original Message- From: Erez Nahir [mailto:[EMAIL PROTECTED] Sent: Monday, July 09, 2007 12:55 PM To: Maven Users List Subject: How to use dependency:purge-local-repository Hi, I'm trying to run mvn dependency:purge-local-repository -DreResolve=false and was expecting that my local repository will be cleaned up, but that's not happening. Am I missing something? Has someone have an example of using this goal? We use maven 2.0.5 on Linux. Thanks, Erez. - 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: How to download source code to repos?
On 7/10/07, Ren [EMAIL PROTECTED] wrote: I'm just wondering, how to use 'mvn install' command to also download the source code of a package? Do you mean upload, rather than download? Configure the maven-source-plugin in your POM with the property attached (may also be attach, written from memory). Jochen -- Besides, manipulating elections is under penalty of law, resulting in a preventative effect against manipulating elections. The german government justifying the use of electronic voting machines and obviously believing that we don't need a police, because all illegal actions are forbidden. http://dip.bundestag.de/btd/16/051/1605194.pdf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to download source code to repos?
Actually, I mean download, thanks On 7/11/07, Jochen Wiedmann [EMAIL PROTECTED] wrote: On 7/10/07, Ren [EMAIL PROTECTED] wrote: I'm just wondering, how to use 'mvn install' command to also download the source code of a package? Do you mean upload, rather than download? Configure the maven-source-plugin in your POM with the property attached (may also be attach, written from memory). Jochen -- Besides, manipulating elections is under penalty of law, resulting in a preventative effect against manipulating elections. The german government justifying the use of electronic voting machines and obviously believing that we don't need a police, because all illegal actions are forbidden. http://dip.bundestag.de/btd/16/051/1605194.pdf - 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: How to download source code to repos?
mvn dependency:sources - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Continuum Error : Cannot find parent
The parents Pom don't have SCM because only are used to solve dependency Between projects.The lowest Pom is the project byself. (continuum can't add a pom without SCM) repo | |-pom.xml | |-projectA | |-pom.xml | |-Trunk | |---pom.xml |-projectB | |-pom.xml | |-Trunk | |---pom.xml repo/pom only indicate that the two projects have dependency repo/projectA/pom repo/projectA/pom are only Bridges Between superpom and the projects repo/projectA/trunk/pom repo/projectA/trunk/pom are that I have added to continuum. How can I integrate t ocontinuum this projects with dependence? Thanks -- View this message in context: http://www.nabble.com/Continuum-Error---%3A--Cannot-find-parent-tf4049310.html#a11522459 Sent from the Continuum - Users mailing list archive at Nabble.com.
How to filter webapp files (not resources!)
Hi! Is there a way to filter files below the webapp directory, e.g. web.xml or context.xml? I don't want to externalize them into a separate ressources directory. Basically, what i'm looking for is setting filtering to true for webappDirectoryWebRoot/webappDirectory. Thanks for any help! Regards, Michael -- Michael Böckling Java Engineer dmc digital media center GmbH Rommelstraße 11 70376 Stuttgart (Germany) Telefon: +49 711 601747-0 Telefax: +49 711 601747-141 E-Mail: [EMAIL PROTECTED] Internet: www.dmc.de Handelsregister: AG Stuttgart HRB 18974 Geschäftsführer: Andreas Magg, Daniel Rebhorn, Andreas Schwend - Besseres E-Business. dmc ist die kreative Vernetzung von Agentur, Systemhaus und Service. Seit über 10 Jahren entwickeln und realisieren wir zukunftweisende und erfolgreiche E-Business-Lösungen. Zu unseren langjährigen Kunden zählen neckermann.de, Kodak und Telekom Training. dmc auf Platz 8 im aktuellen New Media Service Ranking. Als inhabergeführte und netzwerkunabhängige Agentur gehören wir mit einem Umsatz von 13,50 Mio. Euro zu den Top 10 der erfolgreichsten New Media Dienstleister in Deutschland. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Checkstyle report fails on release, not site
That should work for you, but it doesn't work for me. My other projects aren't modules of a parent project. The just inherit the pom to standardize things. On 7/10/07, ossi petz [EMAIL PROTECTED] wrote: well after reading along in the docs: http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html kinda solves this issue :) (havent tested it yet but it looks good) Jon Strayer schrieb: On 7/10/07, ossi petz [EMAIL PROTECTED] wrote: hallo well parent poms and relative paths. a long story. have you issued the site command from the sub-modules? but the release is done from the parent pom? Yes, the site is from the sub-modules, but the release is also from the sub modules. it seems the checkstyle plugin is not aware of that difference and is looking at the wrong location. i do both site and release from the the parent pom and it works this way. but single module builds fail in my case. Well, at least we are seeing the same thing. :-) Jon Strayer schrieb: I have a parent pom that all my projects inherent. It configures the checkstyle plugin like this: configuration configLocation ../theteam/checkstyle.xml /configLocation headerLocation ../theteam/header.txt /headerLocation /configuration This works fine when I use mvn site, but when I use mvn release:prepare I get this error Embedded error: Error rendering Maven report: Unable to find configuration file location. Unable to find location '../theteam/checkstyle.xml' as URL, File or Resource. So, why can it find it for the first command but not the second? - 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] -- Esse Quam Videre To Be, rather than to Seem
Re: Checkstyle report fails on release, not site
did i post that link? :) those instructions will create a cyclic reference for the mentioned 'build-tools' project. better do it this way: http://maven.apache.org/plugins/maven-checkstyle-plugin/tips.html works :) ossi petz schrieb: well after reading along in the docs: http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Continuum Error : Cannot find parent
All your POMs in your scm must have scm informations and must be in your Continuum or at least in your maven repository. javijava a écrit : The parents Pom don't have SCM because only are used to solve dependency Between projects.The lowest Pom is the project byself. (continuum can't add a pom without SCM) repo | |-pom.xml | |-projectA | |-pom.xml | |-Trunk | |---pom.xml |-projectB | |-pom.xml | |-Trunk | |---pom.xml repo/pom only indicate that the two projects have dependency repo/projectA/pom repo/projectA/pom are only Bridges Between superpom and the projects repo/projectA/trunk/pom repo/projectA/trunk/pom are that I have added to continuum. How can I integrate t ocontinuum this projects with dependence? Thanks
Re: Checkstyle report fails on release, not site
hallo well that should not matter. the checkstyle plugin dependency is resolved by its groupId/artifactId. as long as that jar is 'somewhere' it should be possible to include it as normal dependency without creating modules. so the plugin section for the checkstyle plugin gets a dependencies section. that should do the job? Jon Strayer schrieb: That should work for you, but it doesn't work for me. My other projects aren't modules of a parent project. The just inherit the pom to standardize things. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Lifecyle Question
It is a known issue with the way the reactor currently bundles projects. It's being worked on - but definitely cannot be fixed before 2.1. Eric On 7/9/07, Mykel Alvis [EMAIL PROTECTED] wrote: So why doesn't a multi-module build collect the test-jars into the reactor classpath? Is this a known issue of some sort? I managed to crash into this headlong today... :) On 6/7/07, Eric Redmond [EMAIL PROTECTED] wrote: Sounds like one of your modules has a dependency on a project that generates a test-jar. Sorry to say, but you actually have to run mvn install - so the test-jar can be packaged and installed so the module that requires it can access it. It works via mvn compile because no test is run, hence no test scope dependencies. Eric On 6/7/07, Mac Systems [EMAIL PROTECTED] wrote: Hello Maven Users, i'd like to how this can happen: I have an Multiprojekt: mvn compile work well, all is compiled! If i do mvn package i get an Error that some package and test-jar not found. Can someone explain a bit how this can happen ? greets, Jens - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eric Redmond http://www.sonatype.com -- My friends tell me I have an intimacy problem. But they don't really know me. -- Garry Shandling Anyone who has the power to make you believe absurdities has the power to make you commit injustices. -- Voltaire -- Eric Redmond http://www.sonatype.com
Re: Lifecyle Question
Sorry - not bundles projects but artifact resolution - meant to say projects need to be resolved beforehand - made sense in my head :) Eric On 7/10/07, Eric Redmond [EMAIL PROTECTED] wrote: It is a known issue with the way the reactor currently bundles projects. It's being worked on - but definitely cannot be fixed before 2.1. Eric On 7/9/07, Mykel Alvis [EMAIL PROTECTED] wrote: So why doesn't a multi-module build collect the test-jars into the reactor classpath? Is this a known issue of some sort? I managed to crash into this headlong today... :) On 6/7/07, Eric Redmond [EMAIL PROTECTED] wrote: Sounds like one of your modules has a dependency on a project that generates a test-jar. Sorry to say, but you actually have to run mvn install - so the test-jar can be packaged and installed so the module that requires it can access it. It works via mvn compile because no test is run, hence no test scope dependencies. Eric On 6/7/07, Mac Systems [EMAIL PROTECTED] wrote: Hello Maven Users, i'd like to how this can happen: I have an Multiprojekt: mvn compile work well, all is compiled! If i do mvn package i get an Error that some package and test-jar not found. Can someone explain a bit how this can happen ? greets, Jens - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eric Redmond http://www.sonatype.com -- My friends tell me I have an intimacy problem. But they don't really know me. -- Garry Shandling Anyone who has the power to make you believe absurdities has the power to make you commit injustices. -- Voltaire -- Eric Redmond http://www.sonatype.com -- Eric Redmond http://www.sonatype.com
Re: Manifest customization: Where to find the docs?
What exactly do you want to do in the manifest? What kind(s) of customization(s)? Wayne On 7/10/07, Gisbert Amm [EMAIL PROTECTED] wrote: Hi list, I want to know what is possible in manifest customization. I found examples on http://maven.apache.org/guides/mini/guide-manifest.html and http://maven.apache.org/plugins/maven-jar-plugin/examples/manifest-customization.html This latter page says For more info see the MavenArchiveConfiguration Javadocs with a hyperlink to http://maven.apache.org/ref/current/maven-archiver/apidocs/org/apache/maven/archiver/MavenArchiveConfiguration.html However, that page cannot be found. I also found a (rather dated) posting at http://www.nabble.com/-M2--Manifest.mf-tf149023s177.html#a413884 where Brett Porter gave the URL of the source: http://svn.apache.org/repos/asf/maven/components/trunk/maven-archiver/src/main/java/org/apache/maven/archiver/ManifestConfiguration.java That file isn't there anymore; there isn't even a component named maven-archiver in http://svn.apache.org/repos/asf/maven/components/trunk/ So where can I find the source or some javadoc covering manifest customization? -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
New Archetype Plugin
I've heard through the grapevine that a new Archetype plugin is soon going to be available. Does anyone know when that is? How can I find out when it is released? Do I have to periodically run the plugin and look at the output to see a new version downloaded? How does this (notification) work for other plugins? Any thoughts? -- View this message in context: http://www.nabble.com/New-Archetype-Plugin-tf4057063s177.html#a11524905 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: [m2] ejbModule artifact not a project dependency?
When I remove: modules ejbModule groupIdorg.delta.esp-dap.utilities .services/groupId artifactIdlogging-mdb/artifactId uri/uri /ejbModule /modules The logging-mdb-1.0.0.jar is included in my ear just fine. Can someone please help me on this one? On 7/9/07, Mick Knutson [EMAIL PROTECTED] wrote: I have an ejb module: dependency groupIdorg.delta.esp-dap.utilities.services/groupId artifactIdlogging-mdb/artifactId version 1.0.0.0/version typeejb/type /dependency That I am trying to include into an ear: plugin artifactIdmaven-ear-plugin/artifactId configuration version1.4/version archive manifest addClasspathtrue/addClasspath /manifest /archive modules ejbModule groupIdorg.delta.esp-dap.utilities.services /groupId artifactIdlogging-mdb/artifactId uri/uri /ejbModule /modules /configuration /plugin And I keep getting this: [ERROR] BUILD FAILURE [INFO] [INFO] Artifact[ejb:org.delta.esp-dap.utilities.services:logging-mdb] is not a dependency of the project. [INFO] [INFO] Trace org.apache.maven.BuildFailureException: Artifact[ejb: org.delta.esp-dap.utilities.services:logging-mdb] is not a dependency of the project. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals ( DefaultLifecycleExecutor.java:560) 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:330) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123) 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.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: org.apache.maven.plugin.MojoFailureException: Artifact[ejb: org.delta.esp-dap.utilities.services:logging-mdb] is not a dependency of the project at org.apache.maven.plugin.ear.AbstractEarModule.resolveArtifact( AbstractEarModule.java:109) at org.apache.maven.plugin.ear.AbstractEarMojo.execute( AbstractEarMojo.java:171) at org.apache.maven.plugin.ear.GenerateApplicationXmlMojo.execute( GenerateApplicationXmlMojo.java:96) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:420) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java :539) ... 16 more -- --- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/djmick_dot_com http://www.myspace.com/sexybeotches http://www.thumpradio.com --- -- --- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/djmick_dot_com http://www.myspace.com/sexybeotches http://www.thumpradio.com ---
RE: New Archetype Plugin
Whether or not you get a new plugin will depend on how you have your plugins defined in your pom -- if you've specified a specific version (probably a good idea) then you'll never get a newer one. If you don't specify a version, then you'll automatically get the latest version whenever it comes down (this burned me once). As for your other question, there is a subversion announce list you can subscribe to where you can find out about the latest major events (very light traffic on this list). To subscribe to the list, send a message to: [EMAIL PROTECTED] HTH, Trevor -Original Message- From: Clifton [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 10, 2007 10:54 AM To: users@maven.apache.org Subject: New Archetype Plugin I've heard through the grapevine that a new Archetype plugin is soon going to be available. Does anyone know when that is? How can I find out when it is released? Do I have to periodically run the plugin and look at the output to see a new version downloaded? How does this (notification) work for other plugins? Any thoughts? -- View this message in context: http://www.nabble.com/New-Archetype-Plugin-tf4057063s177.html#a11524905 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: Default java source version
Sent to the list... -Original Message- From: Severin Ecker [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 10, 2007 10:59 AM To: Trevor Spackman Subject: Re: Default java source version yes i could do that. thing is, many of my/our projects are unrelated and shouldn't have a common parent, i only wanted to change the default value of 1.3 to 1.5 or 1.6 but it seems that is is not possible without changing the compiler plugin source... oh well. thanks everyone. cheers, severin Trevor Spackman wrote: We handled this problem by creating a parent POM that all of our projects inherit from with the following: plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin Then in the individual project you add: parent artifactIdparent-artifact-name/artifactId groupIdcom.my.group/groupId version1.0/version /parent In a couple of projects, we needed to use 1.6 instead of 1.5, so then you have to override the settings in a given child pom: build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.6/source target1.6/target forktrue/fork executable${JAVA_1_6_HOME}/bin/javac/executable compilerVersion1.6/compilerVersion /configuration /plugin /plugins /build Where JAVA_1_6_HOME is an environment variable that provides the home of a different java version. HTH, Trevor -Original Message- From: Severin Ecker [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 10, 2007 7:39 AM To: Maven Users List Subject: Re: Default java source version hi jason, yes i know that and i have that section in my POM. what i want is to override the default of java 1.3 so i don't have to do that in all my project POM files which is tedious. that's why i was asking for a way to configure it in the settings.xml. i suppose 1.3 is not hardcoded and can be changed via some property or some other configuration... no? cheers, severin Ferguson, Jason M TSgt 375 CSPTS/SCE wrote: This particular bit of configuration is your friend. Put it in the plugins section of your POM: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin (I forgot to put it in yesterday and kept getting messages that -source 1.3 did not support generics and annotations). Jason -Original Message- From: Severin Ecker [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 10, 2007 2:12 AM To: Maven Users List Subject: Default java source version Hi, i was wondering if i can change de default java source and target version for the compiler plugin to let's say 1.5 oder 1.6 globally in the settings.xml (or somewhere else), and only override it in the pom file if i need an older version. thanks! cheers, severin - 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]
Problem during Ant Plugin development
Dear All! I'm investigating this manual about Developing Ant Plugins for Maven 2.x: http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html I try to create the easiest HelloWorld plugin. As described in this manual: 1) I create Ant script 2) I create mojo 3) I create pom 4) I build it and install (successfully) And than I try to run it: c:\ mvn org.myproject.plugins:hello-plugin:hello Here is what I got: [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null [INFO] [INFO] Trace java.lang.NullPointerException at org.apache.maven.plugin.descriptor.PluginDescriptor.getMojo(PluginDescriptor.java:262) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1529) 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:272) 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) [INFO] [INFO] Total time: 1 second [INFO] Finished at: Tue Jul 10 20:02:10 EEST 2007 [INFO] Final Memory: 1M/2M [INFO] It seems to me that it is a bug in maven or in developer's guide. How can I fix this ar walk around? With best regards, Anton Ananich Minsk, Belarus (GMT+2) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Manifest customization: Where to find the docs?
Folks stuck using ATG Dynamo need to customize manifest contents, as ATG stores 'module' configuration and dependency information there. On 7/10/07, Wayne Fay [EMAIL PROTECTED] wrote: What exactly do you want to do in the manifest? What kind(s) of customization(s)? Wayne On 7/10/07, Gisbert Amm [EMAIL PROTECTED] wrote: Hi list, I want to know what is possible in manifest customization. I found examples on http://maven.apache.org/guides/mini/guide-manifest.html and http://maven.apache.org/plugins/maven-jar-plugin/examples/manifest-customization.html This latter page says For more info see the MavenArchiveConfiguration Javadocs with a hyperlink to http://maven.apache.org/ref/current/maven-archiver/apidocs/org/apache/maven/archiver/MavenArchiveConfiguration.html However, that page cannot be found. I also found a (rather dated) posting at http://www.nabble.com/-M2--Manifest.mf-tf149023s177.html#a413884 where Brett Porter gave the URL of the source: http://svn.apache.org/repos/asf/maven/components/trunk/maven-archiver/src/main/java/org/apache/maven/archiver/ManifestConfiguration.java That file isn't there anymore; there isn't even a component named maven-archiver in http://svn.apache.org/repos/asf/maven/components/trunk/ So where can I find the source or some javadoc covering manifest customization? -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 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] - 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: Default java source version
hi, sry trevor, i mis-replied there ;) Heinrich Nirschl wrote: Severin, it's generally not a good idea to separate this information from the POM. It would make it harder to reproduce a build. Each member of the development team would get different results if not all have the same settings configuration. - Henry indeed that's probably not a good idea. but then again why is there a default value in the first place, one that's definitely been thought about (otherwise it would be 1.0 or some), and why can't i change that default (well i can it's just not documented anywhere else but the source...) so, if anyone's interested, checking said source i found out that one has to add the following to the profile one's using for a project: profiles profile properties maven.compiler.source1.x/maven.compiler.source maven.compiler.target1.x/maven.compiler.target /properties /profile /profiles cheers, severin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Use native CVS by default
Ah, thanks. I hadn't looked at that section. I found the property setting here: http://maven.apache.org/scm/cvs.html Might want a pointer on that page to the advanced features page. Thanks again. -- Daniel Siegmann FJA-US, Inc. 512 Seventh Ave., New York, NY 10018 (212) 840-2618 ext. 139 -Original Message- From: Steven Rowe [mailto:[EMAIL PROTECTED] Sent: Monday, July 09, 2007 6:59 PM To: Maven Users List Subject: Re: Use native CVS by default Hi Daniel, The plugin docs reveal all; from http://maven.apache.org/scm/plugins/examples/scm-advance-features.html : If you want to change the default scm provider implementation, for exemple you want to use the native cvs instead of the pure java implementation, you must configure your plugin like that: [...] build [...] plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId configuration providerImplementations cvscvs_native/cvs /providerImplementations /configuration /plugin [...] /plugins [...] /build [...] Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Manifest customization: Where to find the docs?
OK let's get a little more explicit... What are you currently getting out of Maven? What do you want to get out of Maven? What have you tried which did not work as you required? The final work-around is simply to write your own static Manifest file and tell Maven where it is, and it will use it instead of generating one itself. But this is a last-resort kind of thing, usually. Wayne On 7/10/07, Dave Levitt [EMAIL PROTECTED] wrote: Folks stuck using ATG Dynamo need to customize manifest contents, as ATG stores 'module' configuration and dependency information there. On 7/10/07, Wayne Fay [EMAIL PROTECTED] wrote: What exactly do you want to do in the manifest? What kind(s) of customization(s)? Wayne On 7/10/07, Gisbert Amm [EMAIL PROTECTED] wrote: Hi list, I want to know what is possible in manifest customization. I found examples on http://maven.apache.org/guides/mini/guide-manifest.html and http://maven.apache.org/plugins/maven-jar-plugin/examples/manifest-customization.html This latter page says For more info see the MavenArchiveConfiguration Javadocs with a hyperlink to http://maven.apache.org/ref/current/maven-archiver/apidocs/org/apache/maven/archiver/MavenArchiveConfiguration.html However, that page cannot be found. I also found a (rather dated) posting at http://www.nabble.com/-M2--Manifest.mf-tf149023s177.html#a413884 where Brett Porter gave the URL of the source: http://svn.apache.org/repos/asf/maven/components/trunk/maven-archiver/src/main/java/org/apache/maven/archiver/ManifestConfiguration.java That file isn't there anymore; there isn't even a component named maven-archiver in http://svn.apache.org/repos/asf/maven/components/trunk/ So where can I find the source or some javadoc covering manifest customization? -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 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] - 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]
Can Maven do this?
I have a complex of projects that I want to manage. Essentially, it consists of a number of master projects, each of which in turn consists of a number of builds. A rule that I need to follow is that if any two builds refer to the same artifact, they must use the same version - even if they do not depend on each other, or are in separate master projects. If master project A picks up a new version of master project B, and one of the latter's builds has move to a new version of one of its dependencies, the next time I build master project A, any of its builds that uses that dependency must also move to the new version. Now, I know of a way to do this using custom ant tasks and a new form of configuration file for the master project - but I would prefer not to re-invent the wheel if Maven already has a solution (or if not, is it a capability that Maven users would like...?) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Manifest customization: Where to find the docs?
Wayne Fay wrote: OK let's get a little more explicit... What are you currently getting out of Maven? What do you want to get out of Maven? What have you tried which did not work as you required? This, like many responses I've seen on this mailing list, is venturing into smarmy territory. Legitimate questions have been asked about a Maven component that is quite under-documented. The final work-around is simply to write your own static Manifest file and tell Maven where it is, and it will use it instead of generating one itself. But this is a last-resort kind of thing, usually. It's also usually helpful to point people toward resources that might help them decide whether or not they need to take this last-resort (oops, a smarmy response from me). I suggest that anyone interested in learning how to tweak their JAR manifests take a look at the source for MavenArchiveConfiguration and ManifestConfiguration in: http://svn.apache.org/viewvc/maven/shared/tags/maven-archiver-2.2/src/main/java/org/apache/maven/archiver/ Here's a very simple example: configuration archive !-- don't include the POM and stuff in the jar -- addMavenDescriptorfalse/addMavenDescriptor !-- add custom manifest entries to the main section -- manifestEntries Sealedtrue/Sealed Thishas a value/This Thathas another value/That TheOtheryou get the idea/TheOther !-- maven wants to put this stuff in, but i don't -- Built-By/ Build-Jdk/ /manifestEntries /archive !-- recreate the jar no matter what -- forceCreationtrue/forceCreation /configuration -- -Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can Maven do this?
On Tue, Jul 10, 2007 at 03:41:23PM -0400, Russell Gold spake thus: I have a complex of projects that I want to manage. Essentially, it consists of a number of master projects, each of which in turn consists of a number of builds. A rule that I need to follow is that if any two builds refer to the same artifact, they must use the same version - even if they do not depend on each other, or are in separate master projects. If master project A picks up a new version of master project B, and one of the latter's builds has move to a new version of one of its dependencies, the next time I build master project A, any of its builds that uses that dependency must also move to the new version. Now, I know of a way to do this using custom ant tasks and a new form of configuration file for the master project - but I would prefer not to re-invent the wheel if Maven already has a solution (or if not, is it a capability that Maven users would like...?) Sure, maven can do this. In fact, any project that contains multiple subprojects (which would include any project that produces more than a single artifact) is probably organized to take advantage of the feature. Basically, you declare your common dependencies (specifying version numbers, etc) in the 'dependencyManagement' section of a pom.xml file that your subproject builds reference as their parent (and override settings as necessary). The subproject builds declare their dependencies in the 'dependencies' section of their pom.xml files, and get the version specified in the parent pom.xml. Google for 'dependencyManagement', and you should find everything you need to get this going. HTH, -Al -- :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: Alan D. Salewski Software Developer Health Market Science, Inc. :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Manifest customization: Where to find the docs?
Sorry, I don't consider this smarmy... Let me refer to ESR's How to ask questions the smart way: http://www.catb.org/~esr/faqs/smart-questions.html If people won't provide the information needed to provide an answer, the only way you can get it is by explicitly asking for it... which is what I did. The other choice of course is to simply ignore these kinds of emails asking for help until/unless they provide sufficient information, which is IMO less helpful. Wayne On 7/10/07, Greg Thompson [EMAIL PROTECTED] wrote: Wayne Fay wrote: OK let's get a little more explicit... What are you currently getting out of Maven? What do you want to get out of Maven? What have you tried which did not work as you required? This, like many responses I've seen on this mailing list, is venturing into smarmy territory. Legitimate questions have been asked about a Maven component that is quite under-documented. The final work-around is simply to write your own static Manifest file and tell Maven where it is, and it will use it instead of generating one itself. But this is a last-resort kind of thing, usually. It's also usually helpful to point people toward resources that might help them decide whether or not they need to take this last-resort (oops, a smarmy response from me). I suggest that anyone interested in learning how to tweak their JAR manifests take a look at the source for MavenArchiveConfiguration and ManifestConfiguration in: http://svn.apache.org/viewvc/maven/shared/tags/maven-archiver-2.2/src/main/java/org/apache/maven/archiver/ Here's a very simple example: configuration archive !-- don't include the POM and stuff in the jar -- addMavenDescriptorfalse/addMavenDescriptor !-- add custom manifest entries to the main section -- manifestEntries Sealedtrue/Sealed Thishas a value/This Thathas another value/That TheOtheryou get the idea/TheOther !-- maven wants to put this stuff in, but i don't -- Built-By/ Build-Jdk/ /manifestEntries /archive !-- recreate the jar no matter what -- forceCreationtrue/forceCreation /configuration -- -Greg - 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: How to filter webapp files (not resources!)
Yes this is possible. I admit it was not easy to figure it out :) http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html Is a great place to start. Here is my config... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId executions execution goals goalwar/goal /goals configuration webResources resource directory${basedir}/src/main/webapp/directory filteringtrue/filtering includes include**/*.xml/include include**/*.js/include /includes /resource /webResources /configuration /execution /executions /plugin Just make sure you have your filters configured outside of this. Nathan On 7/10/07, Michael Böckling [EMAIL PROTECTED] wrote: Hi! Is there a way to filter files below the webapp directory, e.g. web.xml or context.xml? I don't want to externalize them into a separate ressources directory. Basically, what i'm looking for is setting filtering to true for webappDirectoryWebRoot/webappDirectory. Thanks for any help! Regards, Michael -- Michael Böckling Java Engineer dmc digital media center GmbH Rommelstraße 11 70376 Stuttgart (Germany) Telefon: +49 711 601747-0 Telefax: +49 711 601747-141 E-Mail: [EMAIL PROTECTED] Internet: www.dmc.de Handelsregister: AG Stuttgart HRB 18974 Geschäftsführer: Andreas Magg, Daniel Rebhorn, Andreas Schwend - Besseres E-Business. dmc ist die kreative Vernetzung von Agentur, Systemhaus und Service. Seit über 10 Jahren entwickeln und realisieren wir zukunftweisende und erfolgreiche E-Business-Lösungen. Zu unseren langjährigen Kunden zählen neckermann.de, Kodak und Telekom Training. dmc auf Platz 8 im aktuellen New Media Service Ranking. Als inhabergeführte und netzwerkunabhängige Agentur gehören wir mit einem Umsatz von 13,50 Mio. Euro zu den Top 10 der erfolgreichsten New Media Dienstleister in Deutschland. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem using custom announcement with changes plugin
That is a very good question. I'm afraid I don't know the answer to it. Since the changes-plugin is still in beta, I think that it would be possible to change the default location for the templates. The normal plugin behavior when it comes to configuration, is to start out from ${basedir}. Steven Rowe wrote: Hi Dennis, Why not use /src/changes/ instead of /src/main/resources/ ? By default, for jar packaging anyway, everything /src/main/resources/ will be put into the artifact, but why would anybody ever want an email announcement template in the artifact? Just curious, Steve Dennis Lundberg wrote: Hi Paul, I committed a new page for the site that explains how to create and use a custom template for the announcement. As you sort of figured out already, the templateDirectory starts from /src/main/resources, i.e. not from ${basedir}. I have not deployed a new site yet, but you can have a look at the apt file in svn, until the site is deployed: http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-changes-plugin/src/site/apt/examples/using-a-custom-announcement-template.apt Paul Spencer wrote: I am trying to configure the changes plugin, version 2.0-beta-2, to use a custom announcement.vm file. Setting templateDirectory in to /src/main/resources does not work. The command mvn changes:announcement-generate always fails with the following error message: ResourceManager : unable to find resource '/src/main/resources/announcement.vm' in any resource loader Belows is additional information related the the problem: *** * From POM.XML *** plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId configuration templateannouncement.vm/template templateDirectory/src/main/resources/templateDirectory /configuration /plugin *** * Directory output *** Directory of C:\cvs\reporting-jsf\src\main\resources 04/20/2007 01:45 PMDIR . 04/20/2007 01:45 PMDIR .. 04/20/2007 01:45 PM 1,848 announcement.vm 04/18/2007 10:01 AM69 application.properties 09/20/2006 11:56 AM 206 implementations.properties 04/12/2007 04:40 PM 1,109 log4j.xml 4 File(s) 3,232 bytes 2 Dir(s) 67,573,653,504 bytes free C:\cvs_apms\apms-reporting-jsf *** * Maven debug output *** [INFO] ** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.apache.maven.plugin.resource.loader.ProjectResourceLoader [INFO] ProjectResourceLoader : initialization starting. [INFO] path :C:\cvs\reporting-jsf\src\main\resources\ [INFO] ProjectResourceLoader : adding path 'C:\cvs\reporting-jsf\src\main\resources\' [INFO] ProjectResourceLoader : initialization complete. [INFO] Resource Loader Instantiated: org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader [INFO] ClasspathResourceLoader : initialization starting. [INFO] ClasspathResourceLoader : initialization complete. [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl) [INFO] Default ResourceManager initialization complete. [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach [INFO] Created: 20 parsers. [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : messages on : VM system will output logging messages [INFO] Velocimacro : autoload off : VM system will not automatically reload global library macros [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [DEBUG] Configuring mojo
Re: How to get a plugin to see my log4j.xml
A log4j configuration should be in src/main/resources for the plugin - not your own project. If xfire-maven-plugin uses log4j for logging it should provide some kind of configuration for it. You could build the plugin yourself and add a suitable logging configuration when you build it. Ryan Moquin wrote: I'm trying to generate classes for a wsdl using the xfire-maven-plugin but I'm running into trouble. I need to get my log4j.xml onto the plugins classpath so that I can see it's logging output, but it won't pick it up like I would have expected from the src/main/resources directory. Is there a way to get the plugin to see the log4j.xml in the src/main/resources directory? Or if it should do this, is there a way to confirm what I'm doing wrong? my other log4j settings appear to work as expected in my tests so I'm doubting it's a config issue. Thanks! Ryan -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Source XREF generation puzzle !
Hi, I got a legacy project where tests and application sources are under the same directory /src/com/... /test/... Enters maven-jxr-plugin. Which is called twice during site generation, once for the (app) sources and once for the tests. And I want to filter out src/test during the (app) sources Xref generation and to filter out src/com during the tests Xref generation. So I see a filter configuration configuration ... includes include**/include/*.java/include includes ... /configuration Makes me feel like I'm almost there, but, considering the absence of more settings, I suppose this applies to both jxr:jxr and jxr:test-jxr. Hence my question, how do I specify 2 configurations, one for the execution of jxr:jxr and the other for jxr-test-jxr? Thanks in advance Jerome Thibaud
Re: Checkstyle report fails on release, not site
ossi petz wrote: did i post that link? :) those instructions will create a cyclic reference for the mentioned 'build-tools' project. better do it this way: http://maven.apache.org/plugins/maven-checkstyle-plugin/tips.html This is an old page that shouldn't be used any more. Is the info on this page not included on the multi-module example page? works :) ossi petz schrieb: well after reading along in the docs: http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot download parent pom from specified remote repository
On 7/10/07, Andrew Williams [EMAIL PROTECTED] wrote: You may have indeed identified a problem there, but I do not see information about which maven version you are using (please forgive me if I missed it). Are you on the latest (2.0.7)? yes, 2.0.7 I will try tomorrow solutions proposed by Rémy. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
beginner to maven- problem with maven eclipse!!
hi, i'm very new to maven, i'm trying to create a servlet using maven eclipse to deploy on the tomcat container. However when i tried to import my maven project into eclipse, i got the following errors: unbound classpath variable unbound classpath container the project cannot be built until classpath errors are resolved. does anyone know what i may have done wrong? -- View this message in context: http://www.nabble.com/beginner-to-maven--problem-with-maven---eclipse%21%21-tf4059062s177.html#a11531484 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: [ANN] Maven Stylus Skin 1.0.1 Released
Dennis Lundberg wrote: Wim Deblauwe wrote: url of the website or the groupId/artifactId would be useful... There is no website for this skin. groupId:artifactId org.apache.maven.skins:maven-stylus-skin If you are using this skin you already have this configured in your site.xml file. regards, Wim 2007/5/31, Dennis Lundberg [EMAIL PROTECTED]: The Maven team is pleased to announce the release of Maven Stylus Skin, version 1.0.1. Release Notes - Maven Skins - Version stylus-1.0.1 ** Bug * [MSKINS-1] - Images are missing that are referenced in maven-theme.css - The Maven Team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] I don't use is but I'd like to check it out, where can I find the homepage? Srgjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginner to maven- problem with maven eclipse!!
Hi, hi, i'm very new to maven, i'm trying to create a servlet using maven eclipse to deploy on the tomcat container. However when i tried to import my maven project into eclipse, i got the following errors: unbound classpath variable unbound classpath container the project cannot be built until classpath errors are resolved. does anyone know what i may have done wrong? The first message should come from your project's .classpath file that is using the variable M2_REPO for specifying the location of some jar files in your local Maven repository. Check if M2_REPO is defined in your Eclipse configuration (Preferences - Java - Build Path - Classpath variables). If it is not listed there, you should add it by executing mvn -Declipse.workspace=path-to-workspace eclipse:add-maven-repo ([1]). Perhaps this already solves your other problem. If not, you can try mvn eclipse:clean eclise:eclipse (see also [2]) to recreate the project configuration files for Eclipse. [1] http://maven.apache.org/plugins/maven-eclipse-plugin/usage.html [2] http://maven.apache.org/plugins/maven-eclipse-plugin/ HTH Thorsten PGP.sig Description: Signierter Teil der Nachricht
Re: beginner to maven- problem with maven eclipse!!
Thanks very much for the reply :), I've added this now, but it hasn't solved the problem.. However i noticed something, when i started up eclipse, i got a warning saying Mylyn was installed but requires Java 5 or later to run, Please download and install the latest Java version and restart. The thing is, I have Java 6.. Have I to do something to have this compatible with eclipse or something Probably a completely stupid question but I really don't know.. and maybe that's what's causing the problem.. Thanks, Karen Thorsten Heit-3 wrote: Hi, hi, i'm very new to maven, i'm trying to create a servlet using maven eclipse to deploy on the tomcat container. However when i tried to import my maven project into eclipse, i got the following errors: unbound classpath variable unbound classpath container the project cannot be built until classpath errors are resolved. does anyone know what i may have done wrong? The first message should come from your project's .classpath file that is using the variable M2_REPO for specifying the location of some jar files in your local Maven repository. Check if M2_REPO is defined in your Eclipse configuration (Preferences - Java - Build Path - Classpath variables). If it is not listed there, you should add it by executing mvn -Declipse.workspace=path-to-workspace eclipse:add-maven-repo ([1]). Perhaps this already solves your other problem. If not, you can try mvn eclipse:clean eclise:eclipse (see also [2]) to recreate the project configuration files for Eclipse. [1] http://maven.apache.org/plugins/maven-eclipse-plugin/usage.html [2] http://maven.apache.org/plugins/maven-eclipse-plugin/ HTH Thorsten -- View this message in context: http://www.nabble.com/beginner-to-maven--problem-with-maven---eclipse%21%21-tf4059062s177.html#a11532311 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 Netbeans
Hello, I was just curious if it is possible to take an existing project in Netbeans and 'maven-ize' without starting from one of the archetypes and pasting my existing code into that project (as well as trying to figure out the dependencies and reverse engineer the project settings)? I have been tinkering with JSF as well as a Visual JSF web- application created using the Netbeans wizards. Thanks, -Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]