RE: Admin account locked
Hi, I'm stuck once more with this problem. Restarting archiva doesn't help. This might be because I'm not restarting it using standard run script (no wrapper for my platform : IBM Aix). As I directly use plexus.sh script to start, I have to kill archiva when I want to restart it... Do you have a solution for this use case? Isn't there a file that I could delete manually that would let archiva restart and correctly unlock. And btw, is there a way to disable this security feature? Cheers. -Message d'origine- De : Wendy Smoak [mailto:[EMAIL PROTECTED] Envoyé : mercredi 6 février 2008 19:29 À : archiva-users@maven.apache.org Objet : Re: Admin account locked On Feb 6, 2008 11:19 AM, MATHUS Baptiste [EMAIL PROTECTED] wrote: It seems I f#^$d up something with my archiva instance. I wasn't able to remember my admin password, so I asked for a reset. I reset the account three or four times. Now, I'm locked, each time I try to log in, I've got the http://mvnrepo:4000/archiva/index.action?infoMessage=Account+L ocked url. What can I do ? Even server-side operation to unlock me would help :-). Stop Archiva, then re-start it. The admin account should unlock. If that doesn't work, you can connect to the users database directly and modify it. (You can safely ignore the NoSuchPropertyExceptions in the logs.) -- Wendy
RE: Admin account locked
OK, For the record: after killing Archiva (btw, if you have a better alternative than killing it, I'd be delighted to know about it. I have to use the exactly same approach to manage continuum...), go to $ARCHIVA_HOME/data/ recursively delete any .lck did the trick. $ rm -i `find data/ -name *.lck` Might not be the cleanest way, though :/ Cheers. -Message d'origine- De : MATHUS Baptiste [mailto:[EMAIL PROTECTED] Envoyé : lundi 7 avril 2008 15:34 À : archiva-users@maven.apache.org Objet : RE: Admin account locked Hi, I'm stuck once more with this problem. Restarting archiva doesn't help. This might be because I'm not restarting it using standard run script (no wrapper for my platform : IBM Aix). As I directly use plexus.sh script to start, I have to kill archiva when I want to restart it... Do you have a solution for this use case? Isn't there a file that I could delete manually that would let archiva restart and correctly unlock. And btw, is there a way to disable this security feature? Cheers. -Message d'origine- De : Wendy Smoak [mailto:[EMAIL PROTECTED] Envoyé : mercredi 6 février 2008 19:29 À : archiva-users@maven.apache.org Objet : Re: Admin account locked On Feb 6, 2008 11:19 AM, MATHUS Baptiste [EMAIL PROTECTED] wrote: It seems I f#^$d up something with my archiva instance. I wasn't able to remember my admin password, so I asked for a reset. I reset the account three or four times. Now, I'm locked, each time I try to log in, I've got the http://mvnrepo:4000/archiva/index.action?infoMessage=Account+L ocked url. What can I do ? Even server-side operation to unlock me would help :-). Stop Archiva, then re-start it. The admin account should unlock. If that doesn't work, you can connect to the users database directly and modify it. (You can safely ignore the NoSuchPropertyExceptions in the logs.) -- Wendy
Add Custom Pages
Hi, I'm wondering if there's a way to add custom pages to archiva, including adding links to such pages in the left-side menu. The pages don't necessarily need any functionality, just to be able to display information to users (e.g. help, about pages). If this is possible, how is it done? If it's not possible, is there somewhere where I can suggest adding such functionality as a future improvement? Thanks, Doron
Re: out put from POM
Some debug information(like whether particular phases are executed or not), I've noticed one of the plugins uses fail/fail, but I just need something like log/log. I'm having slight problems learning maven... On 7 Apr 2008, at 07:52, Wayne Fay wrote: I suppose you could do something with Antrun or a custom plugin, but I really have to ask, what arbitrary text exactly are you looking to output to CLI, and for what reason? Wayne On 4/6/08, Aleksander Valtyshev [EMAIL PROTECTED] wrote: Hello, How do I output arbitrary text to CLI from POM, like [INFO] and stuff? Regards, Alex - 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: Best practices for java version?
On Tue, Apr 1, 2008 at 1:54 AM, Dirk Olmes [EMAIL PROTECTED] wrote: Milos Kleint wrote: On Mon, Mar 31, 2008 at 2:57 AM, Dirk Olmes [EMAIL PROTECTED] wrote: Milos Kleint wrote: check the toolchains proposal that is supposed to address this issue. http://docs.codehaus.org/display/MAVEN/Toolchains The way the toolchain proposal chooses is somewhat doable with Maven right now: define a set of VM specific properties in each developers' settings.xml and use that in the config of the various plugins. toolchains also ensures that any plugin that understands toochains will ue them, thus instead of configuring compiler-plugin, surefire-plugin, javadoc-plugin etc. you just configure the toolchain. But I would still have to tell the plugins which jdk to use from the toolchain config, would I? you only tell the toolchains-plugin, the rest of the plugins grabs the active toolchain from build context. What I don't like about the appraoch is that one has to hand-maintain the properties/toolchain.xml still. If I update my JDK, I still have to remember updating the settings or the build will break. oh well, what do you mean by update my jdk? the default jdk you run stuff with on your computer? No, it's about the various JDKs that are needed to do the build. Example: you need JDK 1.4 and JDK 5 for building, that's currently jdk-1.4.2.17 and jdk-1.5.0.15 on my machine. I use both JDKs to build the software, only one at a time. That would mean including profile(s) with different toolchain-plugin configuration. I have to update the PATH, JAVA_HOME etc each time a JDK is updated (ok I'm on Gentoo so that's all done for my by the distro but for the sake of the discussion let's image I would be on windows). With the toolchain I don't only have to update my environment but also update the toolchain.xml and maybe even some more config locations e.g. netbeans' JDK config comes to mind. yes, you have to include the your build environment setup in the toolchains file, however you can avoid any updates with smart use of symlinks I guess. Have ~/javatools/jdk15 and ~/javatools/jdk14 symlinked to the latest and greatest stuff you have. The netbeans JDK config will by automatically synchronized with toolchains (actually that's why I actually wrote the toolchains, to have a way to figure what jdk is used in the project.) Milos -dirk - 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 change location of settings.xml
Now settings.xml is in {maven.folder}/conf. Yjw can i change this default locations? Thanks!!! -- View this message in context: http://www.nabble.com/How-change-location-of-settings.xml-tp16535853s177p16535853.html 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: How change location of settings.xml
author wrote: Now settings.xml is in {maven.folder}/conf. Yjw can i change this default locations? mvn -s /new/settings/location/settings.xml -dirk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Release:prepare and orphaned goals
Hello, I need to add a custom action executed during release:prepare and _only_ then. (What I actually want to do is generating a meta-data file containing information on the latest released version and upload it to some location). I did some research, and it seems I could run additional goals using preparationGoals http://maven.apache.org/plugins/maven-release-plugin/examples/run-goals-before-commit.html. My question is how to assure that those actions won't be triggered as a part of the standard maven lifecycle? What I would be interested in is having a custom goal (e.g. release_metadata_preparation), executed with preparationGoalsclean release_metadata_preparationpreparationGoals But release_metadata_preparation needs to be a goal _detached_ from the standard maven lifecycle. Is it possible to create such orphaned goals? Sorry if it is a newbie question. Cheers, Lukasz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Repository search
Hi! The maven repositories, like those mentioned below, are sure a great thing and massively useful. However, so far I found no way to search these repositories on line. These are the repositories I'd like to search, at the very least: http://repo1.maven.org/maven2/ http://repository.codehaus.org/ http://download.java.net/maven/2/ http://download.java.net/maven/1/ The maven homepage has this nice link to archiva, but so far I found no public archiva instance, and a private instance only seems to index mirrored artifacts. What I would really love would be some way to search the repositories for artifacts if you have an idea what they should do, but don't know the groupId and artifactId. I would want to search at least the artifactId, name and description fields of the POM, as well as filter for maven plugins (maven-*-plugin and *-maven-plugin). If this were done in some central location, such that file transfers are fast and access to the repositories is done only once for each artifact, then indexing the artifact contents would be great as well, so that you can search for artifacts containing a given class name or META-INF file. This could be used to find artifacts for third party projects with unclear group name, but also service provider interfaces for some service, in order to e.g. list all image writers. Is there some such public artifact search engine? If not, is there anybody willing to host one? How about people willing to help me write one? Greetings, Martin von Gagern signature.asc Description: OpenPGP digital signature
Re: Repository search
On 07/04/2008, Martin von Gagern [EMAIL PROTECTED] wrote: Hi! The maven repositories, like those mentioned below, are sure a great thing and massively useful. However, so far I found no way to search these repositories on line. you mean like: http://www.mvnrepository.com there's also the Nexus indexing tool, as used by various Maven IDE plugins: http://docs.codehaus.org/display/M2ECLIPSE/Nexus+indexer#NexusIndexer-indexer http://nexus.sonatype.org HTH These are the repositories I'd like to search, at the very least: http://repo1.maven.org/maven2/ http://repository.codehaus.org/ http://download.java.net/maven/2/ http://download.java.net/maven/1/ The maven homepage has this nice link to archiva, but so far I found no public archiva instance, and a private instance only seems to index mirrored artifacts. What I would really love would be some way to search the repositories for artifacts if you have an idea what they should do, but don't know the groupId and artifactId. I would want to search at least the artifactId, name and description fields of the POM, as well as filter for maven plugins (maven-*-plugin and *-maven-plugin). If this were done in some central location, such that file transfers are fast and access to the repositories is done only once for each artifact, then indexing the artifact contents would be great as well, so that you can search for artifacts containing a given class name or META-INF file. This could be used to find artifacts for third party projects with unclear group name, but also service provider interfaces for some service, in order to e.g. list all image writers. Is there some such public artifact search engine? If not, is there anybody willing to host one? How about people willing to help me write one? Greetings, Martin von Gagern -- Cheers, Stuart
Re: How change location of settings.xml
I use this command, but it is not work. C:\mvn -s C:\work\repository\set tings.xml [INFO] Scanning for projects... [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] You must specify at least one goal. Try 'mvn install' to build or 'mvn -?' for o ptions See http://maven.apache.org for more information. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Mon Apr 07 14:44:27 EEST 2008 [INFO] Final Memory: 1M/4M [INFO] C:\ -- View this message in context: http://www.nabble.com/How-change-location-of-settings.xml-tp16535853s177p16537259.html 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: How change location of settings.xml
author wrote: I use this command, but it is not work. C:\mvn -s C:\work\repository\set tings.xml [INFO] Scanning for projects... [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] You must specify at least one goal. Try 'mvn install' to build or 'mvn -?' for o ptions See http://maven.apache.org for more information. Your error is not related to settings.xml. Your error is You must specify at least one goal.. try C:\mvn -s C:\work\repository\settings.xml install Then, please read one of the excellent free online reference guides for Maven such as Maven: The Definitive Guide to better understand the command line options and the syntax of goals and phases. Good luck. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How change location of settings.xml
author wrote: I use this command, but it is not work. C:\mvn -s C:\work\repository\set tings.xml [INFO] Scanning for projects... [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] You must specify at least one goal. Try 'mvn install' to build or 'mvn -?' for o ptions See http://maven.apache.org for more information. obviously, you need to provide a goal i.e. run mvn -s C:\work\repository\settings.xml compile or something similar. -dirk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Release:prepare and orphaned goals
Actually I want the generated files with meta data to be uploaded to server on release:perform (not release:prepare as I said before) but this is a detail that doesn't affect my question, which stays valid. Lukasz Guminski pisze: Hello, I need to add a custom action executed during release:prepare and _only_ then. (What I actually want to do is generating a meta-data file containing information on the latest released version and upload it to some location). I did some research, and it seems I could run additional goals using preparationGoals http://maven.apache.org/plugins/maven-release-plugin/examples/run-goals-before-commit.html. My question is how to assure that those actions won't be triggered as a part of the standard maven lifecycle? What I would be interested in is having a custom goal (e.g. release_metadata_preparation), executed with preparationGoalsclean release_metadata_preparationpreparationGoals But release_metadata_preparation needs to be a goal _detached_ from the standard maven lifecycle. Is it possible to create such orphaned goals? Sorry if it is a newbie question. Cheers, Lukasz - 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]
Clover and multimodules jbi projects
Hi, I have a multimodule jbi project where some of the submodules do not have java sources. This generate and error with clover : *** ERROR: No source files specified USAGE: com.cenqua.clover.CloverInstr [OPTIONS] PARAMS [FILES...] Is there a way to prevent the clover plugin to generate an error when a project / module does not have java sources ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How should one handle 3rd party libraries in Maven2..
Hi, A question I'm sure have been on the mailing-lists before (but I could not find it) regarding how to handle 3rd party JARs: I am using some 3rd party JARs which does not exsist in the global Maven2 repository ( http://repo1.maven.org/maven2/). I've found some references on the web to using mvn install:install-file or mvn deploy:deploy-file to add these jars to my repository. The mvn install:install-file works OK to install in my local repository, but when I try installing to our company-wide repository using mvn deploy:deploy-file and an FTP-URL, I get an error about missing Wagon for FTP. Ideally, I would have liked to set up a Maven2 project holding the JAR in question (almost as a source), setting up all I need (groupID, artifactID, version etc.) in the project pom, and then do mvn deploy on the project, resulting in the correct JAR beeing deployed to our thirdparty repository. Whenever the thirdparty library changes (new version released etc.), I could download the new Jar, updated the version in my pom, and do a mvn deploy. This would mean a maven2 project with no source (java source). Would this work, and if so, how should I set up such a project ? ..or am I totally on the wrong path here ? Regards Arne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [2.0.9 RC8] Release Candidate testing
Thanks everyone for the testing. Nothing has turned up in several days so we'll move forward with the official release. --Brian -Original Message- From: Erez Nahir [mailto:[EMAIL PROTECTED] Sent: Monday, April 07, 2008 1:51 AM To: Maven Users List Subject: Re: [2.0.9 RC8] Release Candidate testing Just additinal confirmation - 2.0.9-RC7 works fine for our team. Erez. On Fri, Apr 4, 2008 at 1:46 AM, Kaizer H. Sogiawala [EMAIL PROTECTED] wrote: +1 I can confirm that the issue (http://jira.codehaus.org/browse/MNG-3498) is resolved in RC8. My projects are building fine. Thanks! On Thu, Apr 3, 2008 at 12:51 PM, Brian E. Fox [EMAIL PROTECTED] wrote: RC8 posted to solve this regression. http://people.apache.org/~brianf/staging-repository/org/apache/maven/apa che-maven/ -Original Message- From: Kaizer H. Sogiawala [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2008 2:51 PM To: Maven Users List Subject: Re: [2.0.9 RC7] Release Candidate testing I debugged through the source and can confirm directory${basedir}/directory is the issue. On Thu, Apr 3, 2008 at 8:42 AM, John Casey [EMAIL PROTECTED] wrote: FWIW, using: build directory${basedir}/directory /build will express this error. See http://jira.codehaus.org/browse/MNG-3498 I have the fix, just need to get it cleaned up and committed. -john On Apr 3, 2008, at 11:23 AM, Brett Porter wrote: -1 could be empty string, and there were some hacks in the project builder that set expressions to that. I know that the path translator was effected by interpolation changes, even though indirectly, because the values got interpolated after instead of before. I'd look at those changes - though a POM that reproduces it is probably necessary to do so. - Brett On 04/04/2008, Brian E. Fox [EMAIL PROTECTED] wrote: Do you have a way to reproduce this? The DefaultPathTranslator class hasn't changed since 2.0.6 so it must be a higher level change we're looking for. -Original Message- From: Kaizer H. Sogiawala [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2008 12:49 AM To: Maven Users List Subject: Re: [2.0.9 RC7] Release Candidate testing I am getting a strange behavior with apache-maven-2.0.9-RC* (all RC) builds. Here is what I see- --- SNIP --- + Error stacktraces are turned on. Maven version: 2.0.9-RC7 Java version: 1.5.0_12 OS name: windows xp version: 5.1 arch: x86 Family: windows [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\blip\.m2\plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: 'C:\Program Files\maven\bin\..\conf\plugin-registry.xml' [INFO] Scanning for projects... : : *blip blip* : [INFO] [ERROR] FATAL ERROR [INFO] [INFO] String index out of range: -1 [INFO] [DEBUG] Trace java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1768) at java.lang.String.substring(String.java:1735) at org.apache.maven.project.path.DefaultPathTranslator.stripBasedirToken(De faultPathTranslator.java:101) at org.apache.maven.project.path.DefaultPathTranslator.alignToBaseDirectory (DefaultPathTranslator.java:82) at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic( DefaultMavenProjectBuilder.java:992) at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Defaul tMavenProjectBuilder.java:867) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileI nternal(DefaultMavenProjectBuilder.java:495) at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenPr ojectBuilder.java:198) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at
RE: Compiling for API compliance
Because of the way maven uses an unnamed execution for command line and lifecycle bound plugins, you can't specify multiple fields for compile to use during the different executions. You'll want to watch MNG-3203 and MCOMPILER-15 -Original Message- From: Martin von Gagern [mailto:[EMAIL PROTECTED] Sent: Monday, April 07, 2008 6:31 AM To: Maven Users Subject: Compiling for API compliance Hi! I would like to compile code not only for a given class file format version, but also to the corresponding Java API specification. So I guess I'd need to set the bootclasspath of the compiler, which requires me to have a forking compiler. I would like each project to specify its version requirements in a simple way, preferrably in a pair of properties, e.g. main.java.version and test.java.version. There should be a separate version for the test code, as it can be useful to have a library conform to some early version, in order to increase its reusability, while on the other hand making use of recent additions, like varargs (source version), annotations for junit (source and target version) or printf (api version) in the test code. The test version should default to the main version, but this is a minor requirement. The bootclasspath of different java versions is installed in a system dependent path, so it should probably be specified in the user settings. If no bootclasspath is specified for the version requested, a warning would be nice, as the desired API compatibility cannot be guaranteed. I tried to achive these goals with current maven tools, but failed miserably. I tried to specify a property called bootclasspath.1.4 in my settings, and have a profile in the pom configure the compiler plugin accordingly if this property is set. No luck there, I guess the profiles in settings are only evaluated after the ones in the pom. I tried to create different configurations for different executions, but it seems impossible to modify an execution that is configured for the given packaging method by default. I tried to move my test code to an independent model, and tried to clear the compiler arguments there, but that seems impossible as well. Now I tend to write my own compiler plugin, derived from maven-compiler-plugin, but allowing for configuration using ${main.java.version} and ${test.java.version}, and some intelligent configuration element for giving the bootclasspaths for different API versions, which can be specified in settings. I guess I'd also need to provide my own packaging type, to bind my own compiler instead of maven-compiler-plugin to the appropriate lifecycle phases. I might even combine this with an extended lifecycle, as the packaging phase feels rather crowded for me, with jar packaging, signing, assembly, etc. Before I embark on this venture, I'd like to hear your opinions. Maybe there is a tricky way to do this with what maven has. Maybe someone already wrote a plugin to do pretty much what I suggest here. Or maybe you like the idea, and have additional suggestions, or even want to help code. Would you want this to be hosted in some sandbox? Greetings, Martin von Gagern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
multi module project and Eclipse - fsutil
Hi all, I'm using maven with my favorite ide, Eclipse. One of the problems is that there is nothing within Eclipse to host the parent pom of my multi-module application : As explained in http://maven.apache.org/plugins/maven-eclipse-plugin/examples/multi-module-projects.html, we always have to worry about duplicate folders. My idea to solve this problem is to use the fsutil dos command (description at http://www.ss64.com/nt/fsutil.html) to create a hardlink between the root pom.xml and a pom.xml inside a root directory, hosting my Eclipse project. The hierarchy would be as follow : | |--pom.xml |--root ||-- pom.xml (hardlinked to above pom.xml) ||-- .classpath ||-- .project | |--module1 ||-- pom.xml ||-- .classpath ||-- .project ||-- module1 hierarchy | |--module2 ||-- pom.xml ||-- .classpath ||-- .project ||-- module2 hierarchy Does somebody already use this tip ? How would it be managed with svn ? Thanks for your replies. Bernard -- View this message in context: http://www.nabble.com/multi-module-project-and-Eclipse---fsutil-tp16537505s177p16537505.html 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: Repository search
Stuart McCulloch wrote: you mean like: http://www.mvnrepository.com Yes, that looks pretty much what I wanted, although I miss information about that site itself, like what repositories it has indexed. That's a minor issue, though. there's also the Nexus indexing tool, as used by various Maven IDE plugins: http://docs.codehaus.org/display/M2ECLIPSE/Nexus+indexer#NexusIndexer-indexer http://nexus.sonatype.org That might be useful as well. Sadly, it looks like repo1.maven.org is the only repository from my list to actually provide this .index directory. And I'm still looking for a convenient way to use these indexes from the command line or a web interface. Thanks a lot, Martin von Gagern signature.asc Description: OpenPGP digital signature
Re: integration tests, packaging type pom and the maven-eclipse-plugin
Just change the packaging type temporarily from pom to jar and run mvn eclipse:eclipse. That said; we keep our integration tests with the modules and use naming conventions to differentiate between them and pure unit tests. Kalle On Mon, Apr 7, 2008 at 6:22 AM, Martin Höller [EMAIL PROTECTED] wrote: Ping! Nobody using the maven-eclipse-plugin with integration test modules? On Friday 04 April 2008 Martin Höller wrote: Hi! According to a wiki article [0], the two maven books, and some mails on this list it is best practice to put integration tests in one (or multiple) separate module(s). In all examples I could find, this IT-module is of packaging type pom, which IMO makes sense as I wouldn't need a JAR with the integration tests. However, I'm using the maven-eclipse-plugin to integrate my modules with Eclipse. Unfortunately, modules of type pom are ignored by this plugin and i can't produce a valid eclipse project configuration with the m-eclipse-p. There are already JIRA issues for this: MECLIPSE-94 [1] and duplicates which mention a parameter ${eclipse.alwaysWritePomProjects}, but I can't find documentation for this parameter. How do others solve this kind of problem? tia, - martin [0] http://docs.codehaus.org/display/MAVENUSER/Maven+and+Integration+Testing [1] http://jira.codehaus.org/browse/MECLIPSE-94
is there a way of adding metadata to a dependency
I want to be able to write in the project something like dependency properties some.keysome value/some.key /properties /dependency (or any other layout, maybe configuration instead of properties) So that my plugin can use the metadata to affect its behavior. How can I do that? If not possible, are there plans to add? Thank you, Ittay -- Ittay Dror [EMAIL PROTECTED] Tikal http://www.tikalk.com Tikal Project http://tikal.sourceforge.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Repository search
You can try http://searchj.org too Paul Le Monday 07 April 2008 12:02:39 Martin von Gagern, vous avez écrit : Hi! The maven repositories, like those mentioned below, are sure a great thing and massively useful. However, so far I found no way to search these repositories on line. These are the repositories I'd like to search, at the very least: http://repo1.maven.org/maven2/ http://repository.codehaus.org/ http://download.java.net/maven/2/ http://download.java.net/maven/1/ The maven homepage has this nice link to archiva, but so far I found no public archiva instance, and a private instance only seems to index mirrored artifacts. What I would really love would be some way to search the repositories for artifacts if you have an idea what they should do, but don't know the groupId and artifactId. I would want to search at least the artifactId, name and description fields of the POM, as well as filter for maven plugins (maven-*-plugin and *-maven-plugin). If this were done in some central location, such that file transfers are fast and access to the repositories is done only once for each artifact, then indexing the artifact contents would be great as well, so that you can search for artifacts containing a given class name or META-INF file. This could be used to find artifacts for third party projects with unclear group name, but also service provider interfaces for some service, in order to e.g. list all image writers. Is there some such public artifact search engine? If not, is there anybody willing to host one? How about people willing to help me write one? Greetings, Martin von Gagern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Repository search
As a customer of these repos, you have every right to ask for an index file. It is pretty easy for them to generate the file, and I think if you find the right person and ask nicely, they will do it. Ideally they'd add a cron job or something to autogenerate an updated list every day/week. Then you can ask the mvnrepository.com guys to add the ability to parse those other indexes rather than just repo1. Wayne On 4/7/08, Martin von Gagern [EMAIL PROTECTED] wrote: Stuart McCulloch wrote: you mean like: http://www.mvnrepository.com Yes, that looks pretty much what I wanted, although I miss information about that site itself, like what repositories it has indexed. That's a minor issue, though. there's also the Nexus indexing tool, as used by various Maven IDE plugins: http://docs.codehaus.org/display/M2ECLIPSE/Nexus+indexer#NexusIndexer-indexer http://nexus.sonatype.org That might be useful as well. Sadly, it looks like repo1.maven.org is the only repository from my list to actually provide this .index directory. And I'm still looking for a convenient way to use these indexes from the command line or a web interface. Thanks a lot, Martin von Gagern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is there a way of adding metadata to a dependency
Tell us more about what you want to do and why, and perhaps someone will have a better response to your question. Wayne On 4/7/08, Ittay Dror [EMAIL PROTECTED] wrote: I want to be able to write in the project something like dependency properties some.keysome value/some.key /properties /dependency (or any other layout, maybe configuration instead of properties) So that my plugin can use the metadata to affect its behavior. How can I do that? If not possible, are there plans to add? Thank you, Ittay -- Ittay Dror [EMAIL PROTECTED] Tikal http://www.tikalk.com Tikal Project http://tikal.sourceforge.net - 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]
Classpath Loader Differences between Surefire 2.3 and 2.4 causes tests to fail
Hi, We see a difference in classpath loading between Surefire 2.3 and 2.4. If we run the attached test against Surefire 2.3 and TestNG 5.1 we get the following output: mvn test -Pthree --- T E S T S --- Running ShowClassPathTest On my path:file:/C:/dev/svn.markettools.com/repos/dev/projects/problem/target/ test-classes/ On my path:file:/c:/m2/repo1/commons-collections/commons-collections/3.1/commo ns-collections-3.1.jar On my path:file:/C:/dev/svn.markettools.com/repos/dev/projects/problem/target/ classes/ On my path:file:/c:/m2/repo1/commons-io/commons-io/1.2/commons-io-1.2.jar On my path:file:/c:/m2/repo1/org/testng/testng/5.1/testng-5.1-jdk15.jar Number of elemenst on my path:5 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec Results : Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 If we run the same test with Surefire 2.4 and TestNG 5.7 we get a totally different classpath: mvn test -Pfour --- T E S T S --- Running TestSuite [Parser] Running: Command line suite On my path:file:/C:/Documents%20and%20Settings/aguther/Local%20Settings/Temp/s urefirebooter7279.jar On my path:file:/C:/usr/local/java/jdk1.5.0_10/jre/lib/ext/sunpkcs11.jar On my path:file:/C:/usr/local/java/jdk1.5.0_10/jre/lib/ext/dnsns.jar On my path:file:/C:/usr/local/java/jdk1.5.0_10/jre/lib/ext/sunjce_provider.jar On my path:file:/C:/usr/local/java/jdk1.5.0_10/jre/lib/ext/localedata.jar Number of elemenst on my path:5 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.235 sec Results : Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 Obviously in the second case none of the dependencies or compile directories are available. The different behavior gives us problems with the Web Framework we use (Stripes 1.4) and the associated tests which are not able to find any classes under Surefire 2.4. Stripes uses the following line to load the classes: ClassLoader loader = Thread.currentThread().getContextClassLoader(); Does anyone have an idea how to solve this issue and get the classes back on the path under Surefire 2.4? Thanks in advance for any help. Andreas project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdclassloader.problem/groupId artifactIdproblem/artifactId version1.0-SNAPSHOT/version nameArchetype - problem/name urlhttp://maven.apache.org/url dependencies dependency groupIdorg.testng/groupId artifactIdtestng/artifactId version${testing-testng-version}/version scopetest/scope classifierjdk15/classifier /dependency dependency groupIdcommons-collections/groupId artifactIdcommons-collections/artifactId version3.1/version /dependency dependency groupIdcommons-io/groupId artifactIdcommons-io/artifactId version1.2/version /dependency /dependencies build pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version${maven-surefire-plugin-version}/version /plugin /plugins /pluginManagement /build profiles profile idthree/id properties maven-surefire-plugin-version2.3.1/maven-surefire-plugin-version testing-testng-version5.1/testing-testng-version /properties /profile profile idfour/id properties maven-surefire-plugin-version2.4.2/maven-surefire-plugin-version testing-testng-version5.7/testing-testng-version /properties build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId configuration childDelegationtrue/childDelegation forkModepertest/forkMode argLine-enableassertions/argLine /configuration /plugin /plugins /build /profile /profiles /project - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
classloader testing
I've written a basic ClassLoader and can test it to my satisfaction by flipping the attribute for project/src/main/java to test source (in my IDE) so that the test-configured ClassLoader can get to the classes I need to test. Later on, I use my IDE to set it back to plain old source when all of my project/src/test/java tests have been passed. When I want to run the method than needs the ClassLoader, I fire up my class containing main(...), and everything works appropriately. The question is, how do I configure my pom to do a similar thing so that I'm not dependent upon my IDE at package-time? JPN
RE: classloader testing
Did you try to use different profiles? Andreas -Original Message- From: Jason Nerothin [mailto:[EMAIL PROTECTED] Sent: Monday, April 07, 2008 12:14 PM To: users@maven.apache.org Subject: classloader testing I've written a basic ClassLoader and can test it to my satisfaction by flipping the attribute for project/src/main/java to test source (in my IDE) so that the test-configured ClassLoader can get to the classes I need to test. Later on, I use my IDE to set it back to plain old source when all of my project/src/test/java tests have been passed. When I want to run the method than needs the ClassLoader, I fire up my class containing main(...), and everything works appropriately. The question is, how do I configure my pom to do a similar thing so that I'm not dependent upon my IDE at package-time? JPN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] maven-alfresco-extension-archetype 1.0.0 released
Hi devs, hi users, my first post on maven lists (after several months in read only mode) to announce the release under Apache2 license of an archetype to build Alfresco [1] customizations with maven2. It was developed within Sourcesense [2] and provides the framework with a full m2 based lifecycle management. You can find it on Alfresco forge here [3] or documented on Sourcesense repositories here [4]. As some of you may know, Alfresco is gaining a very nice market position with respect to the (even commercial) Enterprise Content Management alternatives and it's based on all opensource components, so we thought m2 could make a real improvement in the development and delivery of Alfresco (and the debate is lively on Alfresco forums, see [5] and [6]). That's why we decided to put effort in hosting a m2 repo layout for this project (which still not builds with maven) and provide it with all the (genius, have to say that :) capabilities that m2 provides for managing the whole application lifecycle (especially in enterprise contexts). Basically this archetype provides (with zero conf remote creation hosted in SS mvn repositorites) the following features amongst others: - Property filtering - Rapid prototyping (common properties already available to the - junior - developer rather than Spring conf files) - Releasing - Documentation site - LDAP configuration samples - Local/remote deploy on tomcat/jboss with cargo - jetty embedded run - ant support: ant mimics 'mvn package' behavior and produces a customized war which represents to me a great added value to manual procedures and ant based scripts (ant is supported anyways). The archetype has launched in the Alfresco community pretty recently so we'll see which feedback it can get, but it was to me a really important use case to prove maven flexibility and feasibility especially for complex environments: now the next steps will be to push Alfresco to build itself with maven, as ATM customization dependencies (WAR and JAR) are not produced by a m2 build process. Wrapping up, I'm writing (cross-posting actually, sorry for that) to both lists for : - users : if any Alfresco developer/partner gets interested and wants to provide feedback/suggestions on this one. Any help/comment would be delightful :) BTW, Source code is released together with archetype jar here [7], but an SCM will be opened soon in Alfresco forge (or Sourcesense repositories). - devs : to notify them of a possible typical complex maven use case (similar to the Apache Cocoon m10n which I followed pretty close) and maybe to see if there's still the possibility of a brief (BOF or Fast feather) talk about this experience / success story at the ongoing ApacheCon (I'm based in Netherlands). I will file the super late request to the organizers, but as a mere suggestion, do you think anyone can be interested at all? ;) Thanks and hope this helps. BTW, as per my first post, keep on the wonderful work you've been doing. Maven is an awesome piece of software. Ciao! Gabriele PS: Should this mail be sent to the announce mailing list or that's maven releases specific? [1] Opensource Enterprise Content Management - http://www.alfresco.com [2] Sourcesense - Making sense of opensource - http://www.sourcesense.com [3] http://forge.alfresco.com/projects/m2alfresco/ [4] http://repository.sourcesense.com/maven2-sites/maven-alfresco-extension-archetype-1.0.0/ [5] Maven for building Alfresco - http://forums.alfresco.com/viewtopic.php?f=14t=7619p=39188#p39188 [6] Library conventions - http://forums.alfresco.com/viewtopic.php?f=10t=1017p=39172#p39172 [7] http://repository.sourcesense.com/maven2/com/sourcesense/alfresco/maven-alfresco-extension-archetype/1.0.0 -- Gabriele Columbro Sourcesense - Making Sense of Opensource (http://www.sourcesense.com) (+39) 3201612846 (+31) 627565103 Open Source Software Engineer - ECM Specialist (http://www.mindthegab.com) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Downloading Apache Maven Repositories : Proxy Workaround
For demo purposes, I wanted to show the benefits of Apache Maven to a few others. There is a firewall and proxy over here that will not allow Maven to go get artifacts from the central maven repository and the networking guy will not provide the necessary authentication info to allow Maven to tunnel through the proxy. Is there a way to get an install of Maven which contains the latest artifact snapshots by default? Looking for a quick fix. Thanks in advance. Ed This e-mail transmission, and any documents, files or previous e-mail messages attached to it may contain confidential information that is legally privileged. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify me by reply e-mail and destroy the original transmission and its attachments without reading or saving in any manner. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is there a way of adding metadata to a dependency
The question was supposed to be general, since I think it's a generic issue that plugins may need. My scenario is this: I'm using the NAR plugin. This plugin packages native libraries and headers so they can be used as dependencies. Everything works great when generating the artifact. I can create shared and static libraries from the same project (as attached artifacts). However, when another project wants to use them as a dependency, there's a problem where that project can't define whether it wants to use the shared artifact or the static. Currently, this is determined by the dependency artifact. What I wanted was a way of defining the dependency so I can add a parameter defining 'shared' or 'static', which the NAR plugin will use to know what artifact to download and use. I found a workaround to this issue, by using the 'type' parameter in the artifact and having the plugin define ArtifactHandler components for the different types (if i just define 'type' as 'shared', this will be the extension of the artifact, which is not good, it should be 'jar'). This also means the plugin should be defined with 'extensions' true. All of this makes the plugin complex. Btw, using classifiers won't help here, since each dependency in fact defines several artifacts to use, depending on operating system. I don't think the explanation above made it clearer why I want this, since it requires knowing the NAR plugin and its requirements, however, as my analysis goes, if there was a way of defining metadata that is used by plugins, this case would have been solved in a simpler way I think. Thank you, Ittay Wayne Fay wrote: Tell us more about what you want to do and why, and perhaps someone will have a better response to your question. Wayne On 4/7/08, Ittay Dror [EMAIL PROTECTED] wrote: I want to be able to write in the project something like dependency properties some.keysome value/some.key /properties /dependency (or any other layout, maybe configuration instead of properties) So that my plugin can use the metadata to affect its behavior. How can I do that? If not possible, are there plans to add? Thank you, Ittay -- Ittay Dror [EMAIL PROTECTED] Tikal http://www.tikalk.com Tikal Project http://tikal.sourceforge.net - 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] -- Ittay Dror [EMAIL PROTECTED] Tikal http://www.tikalk.com Tikal Project http://tikal.sourceforge.net
Re: Multiple Executions with Hibernate3 Plugin
Wayne You could either include the full plugin config in the plugin or just a property value, whatever makes the most sense. Did you mean... You could either include the full plugin config in the *profile* or just a property value, whatever makes the most sense. Okay. So, there are profiles. I'll use that. I'm curious though, is there no way to create custom goals? I'm wondering how someone would use the antrun task more than once in their build. Let's say I had a foo tool and a bar tool, neither of which had a Maven plugin, but both of which had ant tasks. What if I wanted to create two goals. bar:run foo:run But those goals really where calling antrun:run , which would have to be used twice in the pom, once to define bar:run and once to define foo:run . Analogous, I suppose, to creating ant tasks in build.xml . Is there no way to create new goals short of creating a new plugin? Are profiles supposed to be the means to define new tasks? Alan On Apr 6, 2008, at 11:55 PM, Wayne Fay wrote: The best way to handle this is with multiple profiles. Then you activate one with -Pprofilename eg -Pdbupdate. You could either include the full plugin config in the plugin or just a property value, whatever makes the most sense. Wayne On 4/4/08, Alan Gutierrez [EMAIL PROTECTED] wrote: I have the maven plugin working with the following code. plugin groupIdorg.codehaus.mojo/groupId artifactIdhibernate3-maven-plugin/artifactId version2.0-alpha-2/version dependencies dependency groupIdmysql/groupId artifactIdmysql-connector-java/artifactId version5.1.3/version /dependency /dependencies configuration executions execution phaseprocess-resources/phase goals goalhbm2ddl/goal /goals /execution /executions componentProperties exportfalse/export !-- updatetrue/update -- ejb3true/ejb3 jdk5true/jdk5 formattrue/format outputfilenameschema.sql/outputfilename /componentProperties /configuration /plugin The executions section I've just added, but I'm not sure how to get to where I want to go. What I want is the ability to run this plugin with the update feature on, so that I can update the databases easily, when I'm in development mode. What XML do I add to create a new separate goal? I supposed I could toggle update using a commandline parameter, but I'm wondering, what are the ways to create a different configuration for a plugin? For the antrun plugin to be useful, it seems like you should be able to specify many different task configurations. -- Alan Gutierrez | [EMAIL PROTECTED] | http://blogometer.com/ | 504 717 1428 Think New Orleans | http://thinknola.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Downloading Apache Maven Repositories : Proxy Workaround
Just connect to the Maven repo before your demo and let it update. You may want to run with -o for offline so it doesn't try to update again during the demo. Or perhaps consider running Archiva locally (on the same laptop that you're demo'ing Maven with). That sounds easiest to me. You'll want to update Archiva before the demo, of course, but then you can delete ~/.m2/repository and show Maven auto-downloading from the Archiva repo etc. Wayne On 4/7/08, Edward Song [EMAIL PROTECTED] wrote: For demo purposes, I wanted to show the benefits of Apache Maven to a few others. There is a firewall and proxy over here that will not allow Maven to go get artifacts from the central maven repository and the networking guy will not provide the necessary authentication info to allow Maven to tunnel through the proxy. Is there a way to get an install of Maven which contains the latest artifact snapshots by default? Looking for a quick fix. Thanks in advance. Ed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven2 pom help
hi guys i'm very very new at this and i am having a bit of a problem getting things off the ground.. i'm just trying to create jar using maven2 and this is what i have in the build section build plugins plugin artifactIdmaven-jar-plugin/artifactId configuration includes include**/src/*/include /includes /configuration /plugin /plugins sourceDirectory${basedir}/src/*.*/sourceDirectory /build unfortunately..this is not including all the classes that it should in the jar... i have a .java file in the directory /src and then i have a whole bunch under /src/ca/java i would really appreciate some guidance here... thanks -- Urooj Khan
read scm connection url using svn info?
Hi all - Is there any way that the scm connection URL can automatically be read using svn info instead of putting it into the pom? For example, instead of writing: scm connectionscm:svn:http://my.svn.server/trunk/connection /scm You could just write something like: scm connectionscm:svn:auto/connection /scm and then the maven svn impl could just execute svn info and extract the URL string from the output. This would be very handy because you would never have to worry about whether the scm url is correct in the POM, in case the POM file is moved or copied/tagged in the repo. Ken
Re: maven2 pom help
Start over from scratch. Put all Java source files in main/src/java. You do not need to configure the jar plugin. If you cannot restructure your project, you will make things WAY harder than they need to be. So from my perspective, this is not an option for a new user. Restructure your project, make it work, then worry about changing the source directory layout if it is absolutely necessary. Wayne On 4/7/08, Urooj Khan [EMAIL PROTECTED] wrote: hi guys i'm very very new at this and i am having a bit of a problem getting things off the ground.. i'm just trying to create jar using maven2 and this is what i have in the build section build plugins plugin artifactIdmaven-jar-plugin/artifactId configuration includes include**/src/*/include /includes /configuration /plugin /plugins sourceDirectory${basedir}/src/*.*/sourceDirectory /build unfortunately..this is not including all the classes that it should in the jar... i have a .java file in the directory /src and then i have a whole bunch under /src/ca/java i would really appreciate some guidance here... thanks -- Urooj Khan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Maven Eclipse Plugin 2.5.1 Released
I just see that the doc isn't up-to-date but you have a wtpversion=2.0 for newest versions of eclipse For yur others projects you can have a look at the workspace property which allow the plugin to read your current parameters. On Sat, Apr 5, 2008 at 7:51 PM, Zemian Deng [EMAIL PROTECTED] wrote: Hi eclipse plugin users, I have couple feedback to the plugin. I used mvn eclipse:m2eclipse -Dwptversion=1.5 for all my webapp dev. Is there any update for wptversion that I should be aware of? The old one works fine, but using number 1.5 always make it seems it's outdated. Can it be set something like -Dwptversion=latest instead? Also, when use command above, there are two things I always need to set before an webapp can be run: 1) Enable the j2EE Dependecies checkbox for M2REPO library set in the project properties. 2) Add server library(Tomcat) to the classpath of the project. Are there way to auto set these? Thanks, Zemian Deng On Sat, Apr 5, 2008 at 3:09 AM, Arnaud HERITIER [EMAIL PROTECTED] wrote: The Maven team is pleased to announce the release of the Maven Eclipse Plugin, version 2.5.1 This plugin is used to generate Eclipse IDE files (*.classpath, *.wtpmodules and the .settings folder) for use with a project. http://maven.apache.org/plugins/maven-eclipse-plugin/ You can run mvn -up to get the latest version of the plugin, or specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId version2.5.1/version /plugin This release fixes several bugs. Release Notes - Maven 2.x Eclipse Plugin - Version 2.5.1 ** Bug * [MECLIPSE-266] - plugin applies java facet to ear project * [MECLIPSE-411] - manifest property usage is only for ogsi maifests * [MECLIPSE-412] - Generation of jst.java Facet for EAR packaging kills my RAD workspace * [MECLIPSE-413] - EclipseOSGiManifestWriter uses the artifact id and not the EclipseProjectName ** New Feature * [MECLIPSE-405] - to-maven target should allow to strip qualifier when creating artifacts from osgi bundles Enjoy, -The Maven team .. Arnaud HERITIER .. OCTO Technology - aheritier AT octo DOT com www.octo.com | blog.octo.com .. ASF - aheritier AT apache DOT org www.apache.org | maven.apache.org ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Zemian Deng -- .. Arnaud HERITIER .. OCTO Technology - aheritier AT octo DOT com www.octo.com | blog.octo.com .. ASF - aheritier AT apache DOT org www.apache.org | maven.apache.org ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Use assembly and deploy togeather
On 07/04/2008, at 11:14 PM, Michael Mühlebach wrote: I want to create an assembly and deploy it but I have some troubles with it. I tried it with the command: mvn assembly:single deploy I got almost what I expected except: All artifacts from my project, including the one I executed maven for, are snapshot versions! (have the classifier -SNAPSHOT instead of a build date and number). What have I done wrong or did I misunderstand the assembly/deploy build cycle?! I am not sure exactly what you are trying to do, but if you are trying to create another build artifact (such as a distribution zip or something) and have it deployed along side your built jars (or whatever) then you might want to look at the assembly:attached goal. http://maven.apache.org/plugins/maven-assembly-plugin/attached-mojo.html LD. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] jetty through cargo just as tomcat?
I have the following working with tomcat 5.5, and I want to know if I can use the same declaration as my tomcat: plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId version0.3.1/version configuration wait${cargo.wait}/wait container containerId${cargo.container}/containerId output${project.build.directory}/${cargo.container}.log/output log ${project.build.directory}/${cargo.container}-cargo.log /log zipUrlInstaller url${cargo.container.url}/url installDir${installDir}/installDir /zipUrlInstaller /container configuration home${project.build.directory}/${cargo.container}/container/home properties cargo.hostname${cargo.host}/cargo.hostname cargo.servlet.port${cargo.port}/cargo.servlet.port /properties /configuration /configuration executions execution idstart-container/id phasepre-integration-test/phase goals goalstart/goal /goals /execution execution idstop-container/id phasepost-integration-test/phase goals goalstop/goal /goals /execution /executions /plugin -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.linkedin.com/in/mickknutson http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com ---
Class Path Test Problem.
Hello All. I am having an issue in attempting to set up a consolidated dependencies POM. I am trying to set up a single POM that represents the DB2 Universal Drivers, which for me, basically consists of three different jars. Each of the three jars have been added into the repo and are working correctly. Everything works in my primary POM if I do this: dependency groupIdcom.ibm.db2.jcc/groupId artifactIddb2jcc/artifactId versionV8-FP15/version scoperuntime/scope /dependency dependency groupIdcom.ibm.db2.jcc/groupId artifactIddb2jcc_license_cisuz/artifactId versionV8-FP15/version scoperuntime/scope /dependency dependency groupIdcom.ibm.db2.jcc/groupId artifactIddb2jcc_license_cu/artifactId versionV8-FP15/version scoperuntime/scope /dependency I have set up a library POM, that is referenced like this: dependency groupIdcom.ibm.db2.jcc/groupId artifactIdlibrary/artifactId versionV8-FP15/version scopetest/scope typepom/type /dependency At this point it does not work. Interestingly enough, if I use the same library pom as a parent, it **DOES** work, which makes me think that everything in all of the POMs is actually correct. This is the parent section: parent groupIdcom.ibm.db2.jcc/groupId artifactIdlibrary/artifactId versionV8-FP15/version /parent If I run mvn dependency:tree I get: (either as the three individual deps or as a parent) [INFO] [INFO] Building test [INFO]task-segment: [dependency:tree] [INFO] [INFO] [dependency:tree] [INFO] au.com.warpspeed.test:test:jar:1.0-SNAPSHOT [INFO] +- com.ibm.db2.jcc:db2jcc:jar:V8-FP15:test [INFO] +- com.ibm.db2.jcc:db2jcc_license_cisuz:jar:V8-FP15:test [INFO] +- com.ibm.db2.jcc:db2jcc_license_cu:jar:V8-FP15:test [INFO] +- junit:junit:jar:3.8.1:test [INFO] +- jdom:jdom:jar:1.0:compile [INFO] +- log4j:log4j:jar:1.2.14:compile [INFO] +- javax.servlet:servlet-api:jar:2.4:provided [INFO] +- jboss:jboss-j2ee:jar:4.0.2:compile [INFO] +- maven-plugins:maven-cobertura-plugin:jar:1.4:compile [INFO] | +- net.sourceforge.cobertura:cobertura:jar:1.9:compile [INFO] | | \- org.apache.ant:ant:jar:1.7.0:compile [INFO] | | \- org.apache.ant:ant-launcher:jar:1.7.0:compile [INFO] | +- oro:oro:jar:2.0.8:compile [INFO] | +- asm:asm:jar:2.2.1:compile [INFO] | +- asm:asm-tree:jar:2.2.1:compile [INFO] | \- commons-jelly:commons-jelly-tags-log:jar:1.0:compile [INFO] +- javax.mail:mail:jar:1.4:compile [INFO] | \- javax.activation:activation:jar:1.1:compile [INFO] +- javax.servlet.jsp:jsp-api:jar:2.1:compile [INFO] +- au.com.warpspeed:kleinbottle:jar:0.1:test [INFO] +- Acme:Acme:jar:1.0:compile [INFO] \- com.javaexchange:dbConnectionBroker:jar:1.0:compile [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 7 seconds [INFO] Finished at: Tue Apr 08 03:56:02 GMT 2008 [INFO] Final Memory: 9M/17M [INFO] If I run the tree with the consolidated POM, I get: [INFO] [INFO] Building test [INFO]task-segment: [dependency:tree] [INFO] [INFO] [dependency:tree] [INFO] au.com.warpspeed.test:test:jar:1.0-SNAPSHOT [INFO] +- junit:junit:jar:3.8.1:test [INFO] +- jdom:jdom:jar:1.0:compile [INFO] +- log4j:log4j:jar:1.2.14:compile [INFO] +- javax.servlet:servlet-api:jar:2.4:provided [INFO] +- jboss:jboss-j2ee:jar:4.0.2:compile [INFO] +- maven-plugins:maven-cobertura-plugin:jar:1.4:compile [INFO] | +- net.sourceforge.cobertura:cobertura:jar:1.9:compile [INFO] | | \- org.apache.ant:ant:jar:1.7.0:compile [INFO] | | \- org.apache.ant:ant-launcher:jar:1.7.0:compile [INFO] | +- oro:oro:jar:2.0.8:compile [INFO] | +- asm:asm:jar:2.2.1:compile [INFO] | +- asm:asm-tree:jar:2.2.1:compile [INFO] | \- commons-jelly:commons-jelly-tags-log:jar:1.0:compile [INFO] +- javax.mail:mail:jar:1.4:compile [INFO] | \- javax.activation:activation:jar:1.1:compile [INFO] +- javax.servlet.jsp:jsp-api:jar:2.1:compile [INFO] +- au.com.warpspeed:kleinbottle:jar:0.1:test [INFO] +- Acme:Acme:jar:1.0:compile [INFO] +- com.javaexchange:dbConnectionBroker:jar:1.0:compile [INFO] \- com.ibm.db2.jcc:library:pom:V8-FP15:test [INFO]
Re: is there a way of adding metadata to a dependency
Ok, now I really need this mechanism. I want to be able to specify, per platform, the type of artifact to use. With properties, this would mean mapping each platform (aol in NAR lingo) to a type specifier. But with just 'type', I can't do that. Ittay Ittay Dror wrote: The question was supposed to be general, since I think it's a generic issue that plugins may need. My scenario is this: I'm using the NAR plugin. This plugin packages native libraries and headers so they can be used as dependencies. Everything works great when generating the artifact. I can create shared and static libraries from the same project (as attached artifacts). However, when another project wants to use them as a dependency, there's a problem where that project can't define whether it wants to use the shared artifact or the static. Currently, this is determined by the dependency artifact. What I wanted was a way of defining the dependency so I can add a parameter defining 'shared' or 'static', which the NAR plugin will use to know what artifact to download and use. I found a workaround to this issue, by using the 'type' parameter in the artifact and having the plugin define ArtifactHandler components for the different types (if i just define 'type' as 'shared', this will be the extension of the artifact, which is not good, it should be 'jar'). This also means the plugin should be defined with 'extensions' true. All of this makes the plugin complex. Btw, using classifiers won't help here, since each dependency in fact defines several artifacts to use, depending on operating system. I don't think the explanation above made it clearer why I want this, since it requires knowing the NAR plugin and its requirements, however, as my analysis goes, if there was a way of defining metadata that is used by plugins, this case would have been solved in a simpler way I think. Thank you, Ittay Wayne Fay wrote: Tell us more about what you want to do and why, and perhaps someone will have a better response to your question. Wayne On 4/7/08, Ittay Dror [EMAIL PROTECTED] wrote: I want to be able to write in the project something like dependency properties some.keysome value/some.key /properties /dependency (or any other layout, maybe configuration instead of properties) So that my plugin can use the metadata to affect its behavior. How can I do that? If not possible, are there plans to add? Thank you, Ittay -- Ittay Dror [EMAIL PROTECTED] Tikal http://www.tikalk.com Tikal Project http://tikal.sourceforge.net - 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] -- Ittay Dror [EMAIL PROTECTED] Tikal http://www.tikalk.com Tikal Project http://tikal.sourceforge.net -- Ittay Dror [EMAIL PROTECTED] Tikal http://www.tikalk.com Tikal Project http://tikal.sourceforge.net
Re: is there a way of adding metadata to a dependency
And also I now discovered that if I use type, then it has to be specified for the artifact both in dependencies and dependencyManagement. If I could use metadata, I would have expected to be able to define it in dependencyManagement and optionally override it in dependencies Ittay Dror wrote: Ok, now I really need this mechanism. I want to be able to specify, per platform, the type of artifact to use. With properties, this would mean mapping each platform (aol in NAR lingo) to a type specifier. But with just 'type', I can't do that. Ittay Ittay Dror wrote: The question was supposed to be general, since I think it's a generic issue that plugins may need. My scenario is this: I'm using the NAR plugin. This plugin packages native libraries and headers so they can be used as dependencies. Everything works great when generating the artifact. I can create shared and static libraries from the same project (as attached artifacts). However, when another project wants to use them as a dependency, there's a problem where that project can't define whether it wants to use the shared artifact or the static. Currently, this is determined by the dependency artifact. What I wanted was a way of defining the dependency so I can add a parameter defining 'shared' or 'static', which the NAR plugin will use to know what artifact to download and use. I found a workaround to this issue, by using the 'type' parameter in the artifact and having the plugin define ArtifactHandler components for the different types (if i just define 'type' as 'shared', this will be the extension of the artifact, which is not good, it should be 'jar'). This also means the plugin should be defined with 'extensions' true. All of this makes the plugin complex. Btw, using classifiers won't help here, since each dependency in fact defines several artifacts to use, depending on operating system. I don't think the explanation above made it clearer why I want this, since it requires knowing the NAR plugin and its requirements, however, as my analysis goes, if there was a way of defining metadata that is used by plugins, this case would have been solved in a simpler way I think. Thank you, Ittay Wayne Fay wrote: Tell us more about what you want to do and why, and perhaps someone will have a better response to your question. Wayne On 4/7/08, Ittay Dror [EMAIL PROTECTED] wrote: I want to be able to write in the project something like dependency properties some.keysome value/some.key /properties /dependency (or any other layout, maybe configuration instead of properties) So that my plugin can use the metadata to affect its behavior. How can I do that? If not possible, are there plans to add? Thank you, Ittay -- Ittay Dror [EMAIL PROTECTED] Tikal http://www.tikalk.com Tikal Project http://tikal.sourceforge.net - 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] -- Ittay Dror [EMAIL PROTECTED] Tikal http://www.tikalk.com Tikal Project http://tikal.sourceforge.net -- Ittay Dror [EMAIL PROTECTED] Tikal http://www.tikalk.com Tikal Project http://tikal.sourceforge.net -- Ittay Dror [EMAIL PROTECTED] Tikal http://www.tikalk.com Tikal Project http://tikal.sourceforge.net