Re: Depend on other files?
you can deploy the xml file have other project to use it as dependency. see build-helper-maven-plugin for deployment. -D On 11/8/06, jiangshachina [EMAIL PROTECTED] wrote: Hi, I have known that a project can depend on artifacts. The artifact can be pom or jar, and ear project can depend on war or ejb. Now, how about other files(e.g. xml)? Assumely, I have two Web application projects, the one wants to use some configuration files of the other one. How can I achieve the goal? Do I have to copy the files? Thanks! a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Depend-on-other-files--tf2600211s177.html#a7253822 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to configure ArchiveManager
Hi All, from assembly plugin home page : Currently it can create distributions in the following formats: * zip * tar.gz * tar.bz2 * jar * dir * war * and any other format that the ArchiveManager has been configured for My question is, how to configure the ArchiveManager ? I need to add my own format. Thanks a lot Ste - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-ejb-plugin : take too long
The maven-ejb-plugin when asked to addclasspath takes abnormal long time to complete. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId version2.1-SNAPSHOT/version configuration !-- This takes a lot of time -- archive indextrue/index manifest addClasspathtrue/addClasspath /manifest /archive generateClienttrue/generateClient clientExcludes clientExclude**/*.xml/clientExclude clientExclude**/*.properties/clientExclude /clientExcludes /configuration /plugin Has anyone faced the same problem? It seems it takes around 1 min more for the goal to complete. -- View this message in context: http://www.nabble.com/maven-ejb-plugin-%3A-take-too-long-tf2600393s177.html#a7254356 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: Too many jars added to lib?
You can certainly do whatever you want to your local repo, including moving artifacts to a new groupId and modifying the pom.xml files to suit your needs. Changing the groupId is not entirely uncommon -- sometimes you need to build a release of your own project but depend on a SNAPSHOT, and can't wait for a formal release of their code, so you release your own internal non-Snapshot version of the code under your own groupId. Or perhaps you have your own modifications to some open source code library and so you literally have a different artifact than what is being delivered by Central. Wayne On 11/9/06, jiangshachina [EMAIL PROTECTED] wrote: Hello, I have an idea, can I install jar files to local repository, and don't use the artifacts at central repository? I just use different groupId, but artifactId and version aren't changed. Namely, before start a project, I install the dependencies firstly. Because I exactly know which jar is my want, then I can set dependencies exactly. a cup of Java, cheers! Sha Jiang jiangshachina wrote: Dear Wayne, I have encountered some of the reasons you gave. But the reason why I release the topic is very simple :D I just think so many jar files are put at WEB-INF/lib would confused somebody. He/She would be puzzled why some many jars were used. And some of the files aren't associate with the project obviously. Additionally, according to the discussion, some files can be excluded surely. It means that the jars are not needed in runtime time(say nothing of compile time). Why the artifacts are at dependency element? I think the setting can be erased from the pom file. Or have other reasons? a cup of Java, cheers! Sha Jiang Wayne Fay wrote: There are numerous reasons for why you might want to exclude some dependencies of dependencies... Here are a few: 1. New version of artifact is available which is not automatically being found and used instead of the old version, resulting in 2 copies of the artifact with different versions attached. 2. GroupID of artifact has changed, resulting in 2 copies of the artifact with different versions attached. 3. An API which might have multiple vendors -- ie Sun API which requires click-wrap licensing and manual install into repo vs CDDL/GNU licensed version of the same API which is freely available in the repo. 4. An artifact that should have been marked optional but was not. 5. An artifact which is provided by your runtime container thus should not be included with your build. I'm sure there are many more reasons to use excludes, but these are a few I've run into myself in the last few months... Wayne On 11/8/06, jiangshachina [EMAIL PROTECTED] wrote: Automatically importing dependencies of dependencies is a great feature. But users have to know the dependency hierarchy, or we cannot exclude the artifacts exactly. And I'm puzzled that why can exclude some dependencies of dependencies? If a jar(artifact) is a dependency of our project's direct dependency, it means that we need it, but exclude it? a cup of Java, cheers! Sha Jiang struberg wrote: there is a syntax to exclude some transitive dependencies from the dependency-list: a small sample: dependency groupIdavalon-framework/groupId artifactIdavalon-framework-api/artifactId version4.3/version exclusions exclusion groupIdavalon-logkit/groupId artifactIdavalon-logkit/artifactId /exclusion /exclusions /dependency I guess this may solve your problems. best regards, strub --- Dmystery [EMAIL PROTECTED] schrieb: This should definitely remove all the unwanted dependencies. Even if they are dependencies of a dependency. I'm doing the same thing to remove all the unwanted files. Can you post your pom.xml? jiangshachina wrote: Hi Dmystery, Thanks for your help. I'm sorry that I cannot success with your instructions. And I also read the guide on maven-war-plugin, especially at http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html Unfortunately, I don't find the answer. The guide is on how to add or filter resources from standard/customized resource paths. But it's not on how to filter resources from the dependencies of dependencies. a cup of Java, cheers! Sha Jiang Dmystery wrote: Use maven-war-plugin. Due to transitive dependencies in M2, you need to remove them using the warSourceExcludes tag in the plugin as below. build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0.1/version configuration warSourceExcludes WEB-INF/lib/jar1,WEB-INF/lib/jar2, /warSourceExcludes /configuration /plugin /plugins /build
Re: [m2] eclipse:eclipse and checkstyle nature
I think Barrie would like the .eclipse to be created by the Eclipse (or Checkstyle ?) plugin according to the project checkstyle configuration. Nico. Rolf Strijdhorst a écrit : what do you need the .checkstyle file for. I mean eclipse finds it on its own. as soon as you include de builder and the nature. Rolf On 11/8/06, Barrie Treloar [EMAIL PROTECTED] wrote: I found one post here http://www.nabble.com/forum/ViewPost.jtp?post=2165470framed=yskin=177 which discussed creating the buildcommand, projectnature and additional .checkstyle file needed for configuring checkstyle in eclipse but this has yet made it back to the community. I can configure the checkstyle using the following: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId configuration downloadSourcestrue/downloadSources additionalBuildcommands buildcommand com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder /buildcommand /additionalBuildcommands additionalProjectnatures projectnature com.atlassw.tools.eclipse.checkstyle.CheckstyleNature /projectnature /additionalProjectnatures /configuration /plugin But I also need the ${project}/.checkstyle file. Anyone have recommendations on how to do this? Should eclipse:eclipse be extended to support this? Should eclipse:checkstyle be created instead? Cheers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-ejb-plugin : take too long
Run mvn -X -e ... and perhaps you'll see what's going on differently in the console when you add the addClasspath setting. Wayne On 11/9/06, Dmystery [EMAIL PROTECTED] wrote: The maven-ejb-plugin when asked to addclasspath takes abnormal long time to complete. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId version2.1-SNAPSHOT/version configuration !-- This takes a lot of time -- archive indextrue/index manifest addClasspathtrue/addClasspath /manifest /archive generateClienttrue/generateClient clientExcludes clientExclude**/*.xml/clientExclude clientExclude**/*.properties/clientExclude /clientExcludes /configuration /plugin Has anyone faced the same problem? It seems it takes around 1 min more for the goal to complete. -- View this message in context: http://www.nabble.com/maven-ejb-plugin-%3A-take-too-long-tf2600393s177.html#a7254356 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]
Passing Maven Variable as a system property to the tests
Hi all, The Surefire plugin documentation (http://maven.apache.org/plugins/maven-surefire-plugin/examples/system-properties.html) mentions: [snip] Take note that String valued properties can only be passed as system properties. Any attempt to pass any other maven variable type (i.e. List or a URL variable) will cause the variable expression to be passed literally (unevaluated). [/snip] In my test, I need to get the value of the maven variable ${project.build.outputDirectory} as a String (I need to generate some file at the end of the test, and I need to create this file in ${project.build.outputDirectory). How do I force the evaluation of the variable first, and then pass it to the test a system property? This was discussed in the thread http://www.nabble.com/Passing-maven-variables-as-system-properties-tf1256766s177.html#a3332659, but not properly answered. Thanks, Binil -- View this message in context: http://www.nabble.com/Passing-Maven-Variable-as-a-system-property-to-the-tests-tf2600462s177.html#a7254591 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: Puzzles on Standard Directory Structure?
Hello, I may have known the goal of src/main/assembly(assembly descriptor files used by maven-assembly-plugin). Now I want to ask what files should be put at src/main/conf? It seems that the folder would include configuration files, but which configuration files? To src/main/java, Maven just think there are Java source files in there. Then Maven compiles the source. To src/main/resources, Maven just think there are resource files associate with Java source files. Then Maven copy the files into jar(classes dir). Now, how do Maven to deal with src/main/conf? Maven would copy the files under the directory to somewhere? ... I find nothing is interesting :( a cup of Java, cheers! Sha Jiang jiangshachina wrote: Mergere's book Better Builds with Maven, appendix B.1 Standard Directory Structure. I don't understand some of directories. For example, src/main/filters and src/main/assembly. The descriptions in the book, the former is Standard location for resource filters, and the latter is Standard location for assembly filters. May I have less experience on Web/Java EE application development, then I can not understand the functions of the directories. Which files should be put into src/main/filters or src/main/assembly. For example, which directory I would put JavaScript files into? a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Puzzles-on-Standard-Directory-Structure--tf2519880s177.html#a7254600 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: maven-ejb-plugin : take too long
Nothing that i see in particular. [DEBUG] adding entry META-INF/maven/proj/proj-server-ejb/pom.xml [DEBUG] adding entry META-INF/maven/proj/proj-server-ejb/pom.properties Big pause ( 1) [DEBUG] adding entry META-INF/INDEX.LIST [INFO] Preparing weblogic:appc [DEBUG] maven-ejb-plugin: using locally installed snapshot [DEBUG] maven-ejb-plugin: using locally installed snapshot [DEBUG] weblogic-maven-plugin: using locally installed snapshot [WARNING] Removing: appc from forked lifecycle, to prevent recursive invocation. Wayne Fay wrote: Run mvn -X -e ... and perhaps you'll see what's going on differently in the console when you add the addClasspath setting. Wayne On 11/9/06, Dmystery [EMAIL PROTECTED] wrote: The maven-ejb-plugin when asked to addclasspath takes abnormal long time to complete. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId version2.1-SNAPSHOT/version configuration !-- This takes a lot of time -- archive indextrue/index manifest addClasspathtrue/addClasspath /manifest /archive generateClienttrue/generateClient clientExcludes clientExclude**/*.xml/clientExclude clientExclude**/*.properties/clientExclude /clientExcludes /configuration /plugin Has anyone faced the same problem? It seems it takes around 1 min more for the goal to complete. -- View this message in context: http://www.nabble.com/maven-ejb-plugin-%3A-take-too-long-tf2600393s177.html#a7254356 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] -- View this message in context: http://www.nabble.com/maven-ejb-plugin-%3A-take-too-long-tf2600393s177.html#a7254646 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: maven-ejb-plugin : take too long
Sounds like you'll need to debug the Maven process to see what's causing the pause, then. Wayne On 11/9/06, Dmystery [EMAIL PROTECTED] wrote: Nothing that i see in particular. [DEBUG] adding entry META-INF/maven/proj/proj-server-ejb/pom.xml [DEBUG] adding entry META-INF/maven/proj/proj-server-ejb/pom.properties Big pause ( 1) [DEBUG] adding entry META-INF/INDEX.LIST [INFO] Preparing weblogic:appc [DEBUG] maven-ejb-plugin: using locally installed snapshot [DEBUG] maven-ejb-plugin: using locally installed snapshot [DEBUG] weblogic-maven-plugin: using locally installed snapshot [WARNING] Removing: appc from forked lifecycle, to prevent recursive invocation. Wayne Fay wrote: Run mvn -X -e ... and perhaps you'll see what's going on differently in the console when you add the addClasspath setting. Wayne On 11/9/06, Dmystery [EMAIL PROTECTED] wrote: The maven-ejb-plugin when asked to addclasspath takes abnormal long time to complete. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId version2.1-SNAPSHOT/version configuration !-- This takes a lot of time -- archive indextrue/index manifest addClasspathtrue/addClasspath /manifest /archive generateClienttrue/generateClient clientExcludes clientExclude**/*.xml/clientExclude clientExclude**/*.properties/clientExclude /clientExcludes /configuration /plugin Has anyone faced the same problem? It seems it takes around 1 min more for the goal to complete. -- View this message in context: http://www.nabble.com/maven-ejb-plugin-%3A-take-too-long-tf2600393s177.html#a7254356 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] -- View this message in context: http://www.nabble.com/maven-ejb-plugin-%3A-take-too-long-tf2600393s177.html#a7254646 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: Too many jars added to lib?
Dear Wayne, You can certainly do whatever you want to your local repo, including moving artifacts to a new groupId and modifying the pom.xml files to suit your needs. I also think I have the free :D Changing the groupId is not entirely uncommon -- sometimes you need to build a release of your own project but depend on a SNAPSHOT, and can't wait for a formal release of their code, so you release your own internal non-Snapshot version of the code under your own groupId. Or perhaps you have your own modifications to some open source code library and so you literally have a different artifact than what is being delivered by Central. But I think my idea is uncommon :) The idea would make my local repository to stand alone mostly. Namely, I don't need Maven central repository(except for plugins). a cup of Java, cheers! Sha Jiang Wayne Fay wrote: You can certainly do whatever you want to your local repo, including moving artifacts to a new groupId and modifying the pom.xml files to suit your needs. Changing the groupId is not entirely uncommon -- sometimes you need to build a release of your own project but depend on a SNAPSHOT, and can't wait for a formal release of their code, so you release your own internal non-Snapshot version of the code under your own groupId. Or perhaps you have your own modifications to some open source code library and so you literally have a different artifact than what is being delivered by Central. Wayne On 11/9/06, jiangshachina [EMAIL PROTECTED] wrote: Hello, I have an idea, can I install jar files to local repository, and don't use the artifacts at central repository? I just use different groupId, but artifactId and version aren't changed. Namely, before start a project, I install the dependencies firstly. Because I exactly know which jar is my want, then I can set dependencies exactly. a cup of Java, cheers! Sha Jiang jiangshachina wrote: Dear Wayne, I have encountered some of the reasons you gave. But the reason why I release the topic is very simple :D I just think so many jar files are put at WEB-INF/lib would confused somebody. He/She would be puzzled why some many jars were used. And some of the files aren't associate with the project obviously. Additionally, according to the discussion, some files can be excluded surely. It means that the jars are not needed in runtime time(say nothing of compile time). Why the artifacts are at dependency element? I think the setting can be erased from the pom file. Or have other reasons? a cup of Java, cheers! Sha Jiang Wayne Fay wrote: There are numerous reasons for why you might want to exclude some dependencies of dependencies... Here are a few: 1. New version of artifact is available which is not automatically being found and used instead of the old version, resulting in 2 copies of the artifact with different versions attached. 2. GroupID of artifact has changed, resulting in 2 copies of the artifact with different versions attached. 3. An API which might have multiple vendors -- ie Sun API which requires click-wrap licensing and manual install into repo vs CDDL/GNU licensed version of the same API which is freely available in the repo. 4. An artifact that should have been marked optional but was not. 5. An artifact which is provided by your runtime container thus should not be included with your build. I'm sure there are many more reasons to use excludes, but these are a few I've run into myself in the last few months... Wayne On 11/8/06, jiangshachina [EMAIL PROTECTED] wrote: Automatically importing dependencies of dependencies is a great feature. But users have to know the dependency hierarchy, or we cannot exclude the artifacts exactly. And I'm puzzled that why can exclude some dependencies of dependencies? If a jar(artifact) is a dependency of our project's direct dependency, it means that we need it, but exclude it? a cup of Java, cheers! Sha Jiang struberg wrote: there is a syntax to exclude some transitive dependencies from the dependency-list: a small sample: dependency groupIdavalon-framework/groupId artifactIdavalon-framework-api/artifactId version4.3/version exclusions exclusion groupIdavalon-logkit/groupId artifactIdavalon-logkit/artifactId /exclusion /exclusions /dependency I guess this may solve your problems. best regards, strub --- Dmystery [EMAIL PROTECTED] schrieb: This should definitely remove all the unwanted dependencies. Even if they are dependencies of a dependency. I'm doing the same thing to remove all the unwanted files. Can you post your pom.xml? jiangshachina wrote: Hi Dmystery, Thanks for your help. I'm sorry that I cannot success with your
Re: [M2] move resource files
...some more info... The reason why I want to move the file 'fenix-servlet.xml' (a Spring bean definition file) from src/main/resources to WEB-INF: When running tests Spring cannot seem to find the 'fenix-servlet.xml' file when it resides in the WEB-INF folder (${project.build.directory}/${project.build.finalName}/WEB-INF does not seem to be on the classpath?), but the tests work fine when the file reside in the resources folder. Tomcat on the other hand does not find the file when the file reside in the classes folder when running the web app, but wants it in the WEB-INF folder... aXXa wrote: All, In vain I have tried to configure the maven-resources-plugin to move only ONE file from the resources directory ([project-root]/src/main/resources), but I always end up in moving all files and subdirectories or no files at all. Can some one please tell me what I'm doing wrong? Below is my attempt that resulted in ALL files and folders (including the excluded log4j.properties file) were moved to the WEB-INF directory build plugin artifactIdmaven-resources-plugin/artifactId configuration outputDirectory${project.build.directory}/${project.build.finalName}/WEB-INF//outputDirectory resources includes includefenix-servlet.xml/include /includes excludes excludelog4j.properties/exclude /excludes /resources /configuration /plugin /build -- View this message in context: http://www.nabble.com/-M2--move-resource-files-tf2600050s177.html#a7254955 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] move resource files
You can configure Spring to find it in WEB-INF/classes instead by using the following in your web.xml: context-param param-namecontextConfigLocation/param-name param-value/WEB-INF/classes/fenix-servlet.xml/param-value /context-param listener listener-class org.springframework.web.context.ContextLoaderListener/listener-class /listener or if it is the DispatcherServlet use: servlet-classorg.springframework.web.servlet.DispatcherServlet /servlet-class init-param param-namecontextConfigLocation/param-name param-value/WEB-INF/classes/fenix-servlet.xml/param-value /init-param So keep your file in src/main/resources/fenix-servlet.xml /Konstantin On 11/9/06, aXXa [EMAIL PROTECTED] wrote: ...some more info... The reason why I want to move the file 'fenix-servlet.xml' (a Spring bean definition file) from src/main/resources to WEB-INF: When running tests Spring cannot seem to find the 'fenix-servlet.xml' file when it resides in the WEB-INF folder (${project.build.directory}/${project.build.finalName}/WEB-INF does not seem to be on the classpath?), but the tests work fine when the file reside in the resources folder. Tomcat on the other hand does not find the file when the file reside in the classes folder when running the web app, but wants it in the WEB-INF folder... aXXa wrote: All, In vain I have tried to configure the maven-resources-plugin to move only ONE file from the resources directory ([project-root]/src/main/resources), but I always end up in moving all files and subdirectories or no files at all. Can some one please tell me what I'm doing wrong? Below is my attempt that resulted in ALL files and folders (including the excluded log4j.properties file) were moved to the WEB-INF directory build plugin artifactIdmaven-resources-plugin/artifactId configuration outputDirectory${project.build.directory}/${project.build.finalName }/WEB-INF//outputDirectory resources includes includefenix-servlet.xml/include /includes excludes excludelog4j.properties/exclude /excludes /resources /configuration /plugin /build -- View this message in context: http://www.nabble.com/-M2--move-resource-files-tf2600050s177.html#a7254955 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: Depend on other files?
Hi Dan, Thanks for your help. see build-helper-maven-plugin for deployment. I get the plugin at http://mojo.codehaus.org/build-helper-maven-plugin/index.html Unfortunately, I don't understand why the plugin can help me. In my mind, the plugin just add extra source directories to one project. What is the source directory? you can deploy the xml file have other project to use it as dependency Can I deploy xml file? Deploy to where? I don't understand :-( a cup of Java, cheers! Sha Jiang dan tran wrote: you can deploy the xml file have other project to use it as dependency. see build-helper-maven-plugin for deployment. -D On 11/8/06, jiangshachina [EMAIL PROTECTED] wrote: Hi, I have known that a project can depend on artifacts. The artifact can be pom or jar, and ear project can depend on war or ejb. Now, how about other files(e.g. xml)? Assumely, I have two Web application projects, the one wants to use some configuration files of the other one. How can I achieve the goal? Do I have to copy the files? Thanks! a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Depend-on-other-files--tf2600211s177.html#a7253822 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Depend-on-other-files--tf2600211s177.html#a7255352 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: dependency plugin
In fact I've already have a pom that describes the dependencies, as they are shared by many modules. Using artifactItems on this pom with unpack-dependencies will help me, except that I don't want the transitive dependencies from the pom dependencies to be copied... Can I use some sorts of exclusions tags with artifactItem ? Thanks for your help, Sebastien -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 08, 2006 7:18 PM To: Maven Users List Subject: Re: dependency plugin The main purpose of artifactItems is so that we dont need to use dependencies elements. perhaps, you need http://maven.apache.org/plugins/maven-dependency-plugin/unpack-dependenc ies-mojo.html -D On 11/8/06, Sebastien Brunot [EMAIL PROTECTED] wrote: Hi all, is it possible to parameterize the dependency plugin unpack goal so that it uses a pom dependencies section as input instead of an artifactItems list ? Thanks for your help, Sebastien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Aspectj compilation?
Not sure about that, but i'm using the 'aspectj-maven-plugin'. plugin groupIdorg.codehaus.mojo/groupId artifactIdaspectj-maven-plugin/artifactId configuration ajdtBuildDefFileajbuild.properties/ajdtBuildDefFile aspectLibraries aspectLibrary groupId/groupId artifactId/artifactId//aspects to use. /aspectLibrary /aspectLibraries weaveDependencies weaveDependency groupId/groupId artifactId/artifactId //jar for aspects to weave into. /weaveDependency /weaveDependencies /configuration executions execution goals goalcompile/goal /goals /execution /executions /plugin Wim Deblauwe wrote: Hi, Looking at http://maven.apache.org/plugins/maven-compiler-plugin/non-javac-compilers.html, it mentions an plexus-compiler-aspectj. Is this a replacement for the aspectj plugin? regards, Wim -- View this message in context: http://www.nabble.com/Aspectj-compilation--tf2600117s177.html#a7255429 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PMD-plugin doesn't verify automatically
Hi all, I've just started to use the PMD- (2.1), Cobertura- (2.0), and Checkstyle-Plugins (2.1) to verify some metrics on our internal projects. One strange thing with all these plugins though is, that despite of their documentation states, they would be invoked automatically during the Verify-phase, they actually don't. I use Maven 2.04. I can only make them do their work, if I explicitly define an execution, which invokes the check-goal during the verify-phase. What am I doing wrong? Any hints appreciated! -Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Resource filtering using environment variables
Hi All, Gunther Popp-2 wrote: - All (platform-specific) Environment variables (Just add the prefix env. For example ${env.M2_HOME} returns the Maven2 installation path). Has anyone actually been able to get this working? All of the filtering works fine for me, but the environment variable stuff does not. As a test I have a properties file that contains: ${env.JAVA_HOME} ${user.home} ${pom.version} After the process-resources phase (with filtering turn on in the pom), the file looks like this: ${env.JAVA_HOME} /home/build 1.2-SNAPSHOT JAVA_HOME is definitely set, is there something I am doing wrong, or does this just not work? Regards Gareth -- View this message in context: http://www.nabble.com/Resource-filtering-using-environment-variables-tf2600791s177.html#a7255537 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 to debug bundled dependencies?
On 08/11/06, Wayne Fay [EMAIL PROTECTED] wrote: Unfortunately it sounds like you're going to need to grok that 10k mvn -X debug command to find out why those extra dependencies are getting pulled in. Or wait for my MPH-14 patch that depends on MNG-2654 - makes the dependency tree slightly easier to read :) Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dependency plugin
artifactItem does not support transitive dependencies. so no need for exclusion. But you need to specify every item. -D On 11/9/06, Sebastien Brunot [EMAIL PROTECTED] wrote: In fact I've already have a pom that describes the dependencies, as they are shared by many modules. Using artifactItems on this pom with unpack-dependencies will help me, except that I don't want the transitive dependencies from the pom dependencies to be copied... Can I use some sorts of exclusions tags with artifactItem ? Thanks for your help, Sebastien -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 08, 2006 7:18 PM To: Maven Users List Subject: Re: dependency plugin The main purpose of artifactItems is so that we dont need to use dependencies elements. perhaps, you need http://maven.apache.org/plugins/maven-dependency-plugin/unpack-dependenc ies-mojo.html -D On 11/8/06, Sebastien Brunot [EMAIL PROTECTED] wrote: Hi all, is it possible to parameterize the dependency plugin unpack goal so that it uses a pom dependencies section as input instead of an artifactItems list ? Thanks for your help, Sebastien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Depend on other files?
the plugin also allows you to attach arbitrary artifact to maven to be deployed. - On 11/9/06, jiangshachina [EMAIL PROTECTED] wrote: Hi Dan, Thanks for your help. see build-helper-maven-plugin for deployment. I get the plugin at http://mojo.codehaus.org/build-helper-maven-plugin/index.html Unfortunately, I don't understand why the plugin can help me. In my mind, the plugin just add extra source directories to one project. What is the source directory? you can deploy the xml file have other project to use it as dependency Can I deploy xml file? Deploy to where? I don't understand :-( a cup of Java, cheers! Sha Jiang dan tran wrote: you can deploy the xml file have other project to use it as dependency. see build-helper-maven-plugin for deployment. -D On 11/8/06, jiangshachina [EMAIL PROTECTED] wrote: Hi, I have known that a project can depend on artifacts. The artifact can be pom or jar, and ear project can depend on war or ejb. Now, how about other files(e.g. xml)? Assumely, I have two Web application projects, the one wants to use some configuration files of the other one. How can I achieve the goal? Do I have to copy the files? Thanks! a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Depend-on-other-files--tf2600211s177.html#a7253822 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Depend-on-other-files--tf2600211s177.html#a7255352 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: dependency plugin
I think I didn't manage to express clearly my concern: I have a pom artifact that declare a list of (many) dependencies (let's name it the optimized-3dparties-dependencies pom). In another module (actually an EAR module), I want to pack the list of artifact declared in optimized-3dparties-dependencies and build a single jar that contains everything. I don't want transitivity on the dependencies declared in optimized-3dparties-dependencies. So I was wondering how to do this without re declaring my dependencies in an artifactItems tag. Do you think it is possible with the existing plugins ? Thanks for your help, Sebastien -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Thursday, November 09, 2006 11:17 AM To: Maven Users List Subject: Re: dependency plugin artifactItem does not support transitive dependencies. so no need for exclusion. But you need to specify every item. -D On 11/9/06, Sebastien Brunot [EMAIL PROTECTED] wrote: In fact I've already have a pom that describes the dependencies, as they are shared by many modules. Using artifactItems on this pom with unpack-dependencies will help me, except that I don't want the transitive dependencies from the pom dependencies to be copied... Can I use some sorts of exclusions tags with artifactItem ? Thanks for your help, Sebastien -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 08, 2006 7:18 PM To: Maven Users List Subject: Re: dependency plugin The main purpose of artifactItems is so that we dont need to use dependencies elements. perhaps, you need http://maven.apache.org/plugins/maven-dependency-plugin/unpack-depende nc ies-mojo.html -D On 11/8/06, Sebastien Brunot [EMAIL PROTECTED] wrote: Hi all, is it possible to parameterize the dependency plugin unpack goal so that it uses a pom dependencies section as input instead of an artifactItems list ? Thanks for your help, Sebastien - 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: dependency plugin
not possible. I have similar usecase and ended up to use artifactItems. Btw in artifactItem you dont need to define version, it will be looked in your dependency list. -D On 11/9/06, Sebastien Brunot [EMAIL PROTECTED] wrote: I think I didn't manage to express clearly my concern: I have a pom artifact that declare a list of (many) dependencies (let's name it the optimized-3dparties-dependencies pom). In another module (actually an EAR module), I want to pack the list of artifact declared in optimized-3dparties-dependencies and build a single jar that contains everything. I don't want transitivity on the dependencies declared in optimized-3dparties-dependencies. So I was wondering how to do this without re declaring my dependencies in an artifactItems tag. Do you think it is possible with the existing plugins ? Thanks for your help, Sebastien -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Thursday, November 09, 2006 11:17 AM To: Maven Users List Subject: Re: dependency plugin artifactItem does not support transitive dependencies. so no need for exclusion. But you need to specify every item. -D On 11/9/06, Sebastien Brunot [EMAIL PROTECTED] wrote: In fact I've already have a pom that describes the dependencies, as they are shared by many modules. Using artifactItems on this pom with unpack-dependencies will help me, except that I don't want the transitive dependencies from the pom dependencies to be copied... Can I use some sorts of exclusions tags with artifactItem ? Thanks for your help, Sebastien -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 08, 2006 7:18 PM To: Maven Users List Subject: Re: dependency plugin The main purpose of artifactItems is so that we dont need to use dependencies elements. perhaps, you need http://maven.apache.org/plugins/maven-dependency-plugin/unpack-depende nc ies-mojo.html -D On 11/8/06, Sebastien Brunot [EMAIL PROTECTED] wrote: Hi all, is it possible to parameterize the dependency plugin unpack goal so that it uses a pom dependencies section as input instead of an artifactItems list ? Thanks for your help, Sebastien - 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: Passing Maven Variable as a system property to the tests
${basedir}/target could be the work around -D On 11/9/06, Binil Thomas [EMAIL PROTECTED] wrote: Hi all, The Surefire plugin documentation ( http://maven.apache.org/plugins/maven-surefire-plugin/examples/system-properties.html ) mentions: [snip] Take note that String valued properties can only be passed as system properties. Any attempt to pass any other maven variable type (i.e. List or a URL variable) will cause the variable expression to be passed literally (unevaluated). [/snip] In my test, I need to get the value of the maven variable ${project.build.outputDirectory} as a String (I need to generate some file at the end of the test, and I need to create this file in ${project.build.outputDirectory). How do I force the evaluation of the variable first, and then pass it to the test a system property? This was discussed in the thread http://www.nabble.com/Passing-maven-variables-as-system-properties-tf1256766s177.html#a3332659 , but not properly answered. Thanks, Binil -- View this message in context: http://www.nabble.com/Passing-Maven-Variable-as-a-system-property-to-the-tests-tf2600462s177.html#a7254591 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 Do I Deploys The Sources To The Repository
[EMAIL PROTECTED] wrote: Adam Hardy [EMAIL PROTECTED] wrote on 11/08/2006 02:32:34 [EMAIL PROTECTED] wrote: mvn -DperformRelease=true deploy and you get both source and javadoc jars in the repository along with the main artifact. It also works with the install target. Very interesting. I just checked on the maven website and it's not mentioned as one of the optional parameters (only createChecksum and updateReleaseInfo are documented). But it works. I had looked that up at one point when I didn't understand much, but now I went after it again. It's defined in the superpom (which can be found in MAVEN_HOME/lib/maven-project-2.0.4.jar as org/apache/maven/project/pom-4.0.0.xml for the curious). Here's the magic: profile idrelease-profile/id activation property nameperformRelease/name valuetrue/value /property /activation build plugins plugin inheritedtrue/inherited groupIdorg.apache.maven.plugins/groupId artifactIdmaven-source-plugin/artifactId executions execution idattach-sources/id goals goaljar/goal /goals /execution /executions /plugin plugin inheritedtrue/inherited groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId executions execution idattach-javadocs/id goals goaljar/goal /goals /execution /executions /plugin plugin inheritedtrue/inherited groupIdorg.apache.maven.plugins/groupId artifactIdmaven-deploy-plugin/artifactId configuration updateReleaseInfotrue/updateReleaseInfo /configuration /plugin /plugins /build /profile I tried adding an activeProfiles section in my ~/.m2/settings.xml for release-profile with no luck. mvn -DperformRelease=true help:active-profiles returns no active profiles. It still doesn't all make sense to me. OK with that parameter being a profile-trigger, it's obvious why the parameter is not documented for install:install. Without checking up on the profile activation docs, I'd guess that the activation based on a property will then always depend on that property for activation. Or in other words, the property-based activation takes precedence over the listing in the active profiles. What would be easier for command line usage would be a custom goal that kicked off the same thing: mvn adamgoal:performRelease but I don't think maven has the capacity for configuring custom goals that easily - I'd have to write a plugin I think. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] XMLBeans Plugin
-Original Message- From: Pilgrim, Peter ==== I written my solution as a blog instead (How to use Maven 2.0 XMLBeans Plug-in) http://jroller.com/page/peter_pilgrim?entry=how_to_use_maven_2 One thing I did not quite figure out for myself. Why would people want to use `xmlbeans:xmlbeans-test' goal in the project? It might be considered OT for Maven 2 mailing list, but just what is the UseCase here for only test XML schema? -- Peter Pilgrim UBS Investment Bank, PTS Portal / IT FIRC OPS LDN, 100 Liverpool Street, London EC2M 2RH, United Kingdom +44 (0) 20 75 75692 :: Java EE / E-Commerce / Enterprise Integration / Development :: Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie help needed with Eclipse project
Hi Rick, it depends which maven plugin you are talking about. m2eclipse I assume. Have you tried browsing their mailing list: http://www.nabble.com/Maven-Eclipse---User-f14525.html You can use a standard maven heirarchical directory layout, but eclipse will not allow you to create a project for the parent project - but you're only missing out on the parent pom - it's no big deal. however the bigger issue is that the m2eclipse plugin won't compile the jar. You still need to run that from the command line. you could try a flat layout by referring to the child modules like this: module../hello/module but I haven't tried it. Adam Rick Debay wrote: I'm trying to set up a project from scratch using Maven 2 and Eclipse 3.2. I'm starting by working with the Quick Start to understand how a project with multiple modules should be structured to accommodate both systems. I understand that while Eclipse 3.2 now supports sub-projects, the Maven plugin doesn't. I tried to follow the example in Better Builds with Maven, but it looks like the J2EE example switches between flat and hierarchal layouts. Here are the POM files that I have. When I select External Tools compile or package, I get BUILD SUCCESSFUL but no class files or jar is written to the target directory. So what is the correct way to lay out a project that will consist of multiple modules? eclipse\workspace\hello-world\pom.xml 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 groupIdcom.accessrxs.hello/groupId artifactIdhello-world/artifactId packagingpom/packaging version1.0-SNAPSHOT/version nameMaven Quick Start Archetype/name urlhttp://maven.apache.org/url modules modulehello/module /modules dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies /project eclipse\workspace\hello-world\hello\pom.xml 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; parent groupIdcom.accessrxs.hello/groupId artifactIdhello-world/artifactId version1.0-SNAPSHOT/version /parent modelVersion4.0.0/modelVersion artifactIdhello/artifactId packagingjar/packaging nameMaven Quick Start Archetype submodule/name /project Thanks, Rick DeBay Disclaimer: This message (including attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. RxStrategies, Inc. shall not be liable for the improper or incomplete transmission of the information contained in this communication or for any delay in its receipt or damage to your system. RxStrategies, Inc. does not guarantee that the integrity of this communication has been maintained nor that this communication is free from viruses, interceptions or interference. - 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: [M2] move resource files
Konstantin, Brilliant! it works excellent when I added the init-param tag pointing out where to find the bean definition file in my servlet tag. Thanks! Konstantin Polyzois wrote: You can configure Spring to find it in WEB-INF/classes instead by using the following in your web.xml: context-param param-namecontextConfigLocation/param-name param-value/WEB-INF/classes/fenix-servlet.xml/param-value /context-param listener listener-class org.springframework.web.context.ContextLoaderListener/listener-class /listener or if it is the DispatcherServlet use: servlet-classorg.springframework.web.servlet.DispatcherServlet /servlet-class init-param param-namecontextConfigLocation/param-name param-value/WEB-INF/classes/fenix-servlet.xml/param-value /init-param So keep your file in src/main/resources/fenix-servlet.xml /Konstantin On 11/9/06, aXXa [EMAIL PROTECTED] wrote: ...some more info... The reason why I want to move the file 'fenix-servlet.xml' (a Spring bean definition file) from src/main/resources to WEB-INF: When running tests Spring cannot seem to find the 'fenix-servlet.xml' file when it resides in the WEB-INF folder (${project.build.directory}/${project.build.finalName}/WEB-INF does not seem to be on the classpath?), but the tests work fine when the file reside in the resources folder. Tomcat on the other hand does not find the file when the file reside in the classes folder when running the web app, but wants it in the WEB-INF folder... aXXa wrote: All, In vain I have tried to configure the maven-resources-plugin to move only ONE file from the resources directory ([project-root]/src/main/resources), but I always end up in moving all files and subdirectories or no files at all. Can some one please tell me what I'm doing wrong? Below is my attempt that resulted in ALL files and folders (including the excluded log4j.properties file) were moved to the WEB-INF directory build plugin artifactIdmaven-resources-plugin/artifactId configuration outputDirectory${project.build.directory}/${project.build.finalName }/WEB-INF//outputDirectory resources includes includefenix-servlet.xml/include /includes excludes excludelog4j.properties/exclude /excludes /resources /configuration /plugin /build -- View this message in context: http://www.nabble.com/-M2--move-resource-files-tf2600050s177.html#a7254955 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-M2--move-resource-files-tf2600050s177.html#a7256584 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: Executin a plugin goal from another plugin
Hi Any ideas how the following could be accomplished? br, Mikko Mikko wrote: Hi, What I'm getting at is that I have a multimodule build and that I would like to use the assembly plugin to assemble it and once I have the whole binary in one jar file I need to preverify it and sometimes obfuscate it (yes, MIDP development). Maybe I'm going about this the wring way, so any help would be appreciated. thanks, Mikko Jason van Zyl-2 wrote: On 19 Sep 06, at 2:20 AM 19 Sep 06, Mikko wrote: Hi, Is there a way to run another plugin goal from my own plugin by using the @execute goal= tag in my plugin. I would like to be able to run the assembly:assembly goal from my plugin. When I use @execute goal=assembly:assembly, the build process says that it can not be found. What are you trying to do? Generally this is not recommended. Jason. br, Mikko -- View this message in context: http://www.nabble.com/Executin-a- plugin-goal-from-another-plugin-tf2297411.html#a6383118 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] -- View this message in context: http://www.nabble.com/Executin-a-plugin-goal-from-another-plugin-tf2297411s177.html#a7256656 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: Unable to lookup ....pssForceAdminUserInterceptor ... plexus misconfiguration
Hi, just ran into the same problem. Made a clean install from svn, made everything mentioned on the getting started site to get archiva to work with tomcat. All I get is this error message and I think the following exception is causing it: Component Composition failed. No field of name: 'config' exists in component: role: 'org.codehaus.pexus.security.policy.UserSecurityPolica', implementation: 'org.codehaus.plexus.security.policy.DefaultUserSecurityPolicy', role hint: 'default' So what shall I do? Frank
RE: Maven 2, Eclipse WTP
Hi Sorry, I am using a newer version that obviously supports 1.5 (At least it does not complain when I specify that parameter). Use 1.0 instead then with your version. Hermod -Original Message- From: Daniel Serodio [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 07, 2006 2:47 PM To: Maven Users List Subject: Re: Maven 2, Eclipse WTP [EMAIL PROTECTED] wrote: Hi There is a typo here: the exact syntax is: mvn -Dwtpversion=1.0 eclipse:eclipse (You can also specify 1.5 and 0.7 for wtpversion) I tried using 1.5 but it gave me an error Unsupported WTP version: 1.5. This plugin currently supports only the following versions: 1.0 R7 none. Daniel Serodio -Original Message- From: Alexandre Touret [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 07, 2006 10:30 AM To: Maven Users List Subject: Re: Maven 2, Eclipse WTP Hello, I have already tried this. Regards, Alexandre [EMAIL PROTECTED] wrote: Hi Try: mvn -DwtpVersion=1.0 eclipse:eclipse Hermod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that DnB NOR cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mirror of Maven
Thanks for you replay. Shortly we'll start the mirror process. Best regards. Carlos Sanchez wrote: The central repository requires around 10 GB and growing, and it's updated every 4 hours. You can mirror the central repository using rsync with rsync -v -t -l -r ftp.ibiblio.org::maven2 /your/local/path Let us know what the url is and we'll add you to the list of mirrors. Thanks -- José Manuel Sánchez Bretones Aplicaciones de Red Centro Informático Científico de Andalucía (CICA) Avda. Reina Mercedes s/n - 41012 - Sevilla (Spain) Tfno.: +34 955 056 600 / FAX: +34 955 056 650 Consejería de Innovación, Ciencia y Empresa Junta de Andalucía - Este mensaje esta firmado digitalmente. Para poder reconocer la firma desde su cliente debera tener instalado el certificado raiz de la CA del CICA en el mismo. Puede descargarlo en: http://pki.cica.es/ - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
javadoc plugin failures and recent behaviour change
I have a build failure that's happening when creating javadoc and it seems to be due to a change in the javadoc plugin behaviour. Here is a mvn execution log that exhibits the problem https://svn.apache.org/repos/asf/incubator/tuscany/sandbox/kgoodson/javadocProblems/fresh.log Here are the logic steps that lead me to the conclusion that this is a plugin behaviour change 1) Building in my trunk started failing like this a few days ago 2) so I tried buiding an old unaltered release source tree which used to build fine, against my local repo and it failed in the same way 3) so I tried an offline build of the same release source on a different machine which had an old repository state, and it succeeded 4) so I zipped up the old repository from the 2nd machine and transferred it to the machine where the failures had started and did offline builds of both the release and of the trunk, which both succeeded --- at which point I could assert that it was the repository state that was at fault (see https://svn.apache.org/repos/asf/incubator/tuscany/sandbox/kgoodson/javadocProblems/dt_used_on_lt.log ) 5) so I completely removed my repository and did and online build of the trunk from fresh, which failed in the same way that I had seen in step 1 -- at which point I could assert that the problems were introduced by an artifact which had been freshly downloaded to my repository I see from the difference in the logs, that right at the start of the javadoc:javadoc phase there is behaviour difference, the one that succeeds begins in this way === [INFO] [javadoc:javadoc] Loading source files for package org.apache.tuscany.sdo... Loading source files for package org.apache.tuscany.sdo.codegen... Loading source files for package org.apache.tuscany.sdo.helper... Loading source files for package org.apache.tuscany.sdo.impl... Loading source files for package org.apache.tuscany.sdo.model... Loading source files for package org.apache.tuscany.sdo.model.impl... Loading source files for package org.apache.tuscany.sdo.model.java.impl... Loading source files for package org.apache.tuscany.sdo.model.java... Loading source files for package org.apache.tuscany.sdo.util... Loading source files for package org.apache.tuscany.sdo.util.metadata.impl.. . Loading source files for package org.apache.tuscany.sdo.util.metadata... Loading source files for package org.apache.tuscany.sdo.util.resource... Loading source files for package org.apache.tuscany.sdo.generate.adapter... Loading source files for package org.apache.tuscany.sdo.generate... Loading source files for package org.apache.tuscany.sdo.generate.templates.model... Loading source files for package org.apache.tuscany.sdo.generate.util... Loading source files for package org.eclipse.jdt.core.formatter... Loading source files for package org.apache.tuscany.sdo.plugin... whereas the one that fails begins in this way ... [INFO] [javadoc:javadoc] Loading source file C:/Development/Tortoise/distroTest3/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/AnyTypeDataObject.java... Loading source file C:/Development/Tortoise/distroTest3/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/codegen/BytecodeInterfaceGenerator.java... Loading source file C:/Development/Tortoise/distroTest3/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/codegen/GenerationException.java... Loading source file C:/Development/Tortoise/distroTest3/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/codegen/JavaInterfaceGenerator.java... Loading source file C:/Development/Tortoise/distroTest3/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/codegen/NoJavaImplementationException.java... Loading source file C:/Development/Tortoise/distroTest3/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/helper/CopyHelperImpl.java... Loading source file C:/Development/Tortoise/distroTest3/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/helper/CrossScopeCopyHelperImpl.java... Loading source file C:/Development/Tortoise/distroTest3/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/helper/DataFactoryImpl.java... Loading source file C:/Development/Tortoise/distroTest3/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/helper/DataHelperImpl.java... Loading source file C:/Development/Tortoise/distroTest3/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/helper/EqualityHelperImpl.java... Loading source file C:/Development/Tortoise/distroTest3/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/helper/HelperProviderImpl.java... == FYI, the poart of the log where failure occurs looks like this ... == Building index for all classes... Generating C:/Development/Tortoise/distroTest3/java/sdo/target/site/apidocs\allclasses- frame.html... Generating
Exception while registering Interceptor class pssForceAdminUserInterceptor
Hello, I've followed the archiva installation instruction as described on: http://maven.apache.org/archiva/guides/getting-started/index.html However I keep getting the same errors over and over. The first problem I encountered was when running plexus.bat (I'm on Windows XP), which resulted in: - Error 500 Unable to compile class for JSP I figured out quite quickly I had to add tools.jar to %archiva_home%\core, which solves that problem. Remark (when using %archiva_home%\bin\win32\run.bat I don't need the tools.jar). With both run.bat and plexus.bat (and also installed with tomcat) I always get the following stacktrace: Error 404 Caught Exception while registering Interceptor class pssForceAdminUserInterceptor HTTP ERROR: 404 Caught Exception while registering Interceptor class pssForceAdminUserInterceptor RequestURI=/index.action This results in an enormous log file (see bottom). The cause of this all seems to be: Caused by: org.codehaus.plexus.component.composition.CompositionException: Component Composition failed. No field of name: 'config' exists in component: role: ' org.codehaus.plexus.security.policy.UserSecurityPolicy', implementation: ' org.codehaus.plexus.security.policy.DefaultUserSecurityPolicy', role hint: 'default' How can I fix this? I already cleaned my local repository, but I got the same exception again. Any help would be appreciated. Thanks, Erik C:\javadev\tools\archiva\1.0.0-SNAPSHOT\bin\win32run.bat wrapper | -- Wrapper Started as Console wrapper | Launching a JVM... jvm 1| Wrapper (Version 3.1.2) http://wrapper.tanukisoftware.org jvm 1| jvm 1| [INFO] Loading on start [role,roleHint]: [ org.codehaus.plexus.naming.Naming,dataSources] jvm 1| [INFO] Services will be deployed in: '..\..\services'. jvm 1| [INFO] Applications will be deployed in: '..\..\apps'. jvm 1| [INFO] Service Supervisor is deploying plexus-appserver-service-jetty-2.0-alpha-3. jvm 1| [INFO] Removing old service. jvm 1| [INFO] Loading on start [role,roleHint]: [ org.codehaus.plexus.appserver.service.PlexusService,jetty] jvm 1| 09-Nov-2006 12:40:54 org.mortbay.http.HttpServer doStart jvm 1| INFO: Version Jetty/5.1.10 jvm 1| 09-Nov-2006 12:40:54 org.mortbay.util.Container start jvm 1| INFO: Started [EMAIL PROTECTED] jvm 1| [INFO] Application Supervisor is deploying archiva-plexus-application-1.0-SNAPSHOT. jvm 1| [INFO] Application 'archiva' already extracted. jvm 1| [INFO] Deploying application 'archiva' at 'C:\javadev\tools\archiva\1.0.0-SNAPSHOT\apps\archiva'. jvm 1| [INFO] Using application configurator file ..\..\apps\archiva\conf\application.xml. jvm 1| [INFO] Using appDir = ..\..\apps\archiva jvm 1| [INFO] Deploying C:\javadev\tools\archiva\1.0.0-SNAPSHOT\apps\archiva\webapp with context path of / jvm 1| [INFO] Using standard webapp classloader for webapp. jvm 1| [INFO] Deploying appserver 'archiva'. jvm 1| [INFO] Adding HTTP listener on *:8080 jvm 1| 09-Nov-2006 12:40:55 org.mortbay.http.SocketListener start jvm 1| INFO: Started SocketListener on 0.0.0.0:8080 jvm 1| [INFO] Starting Jetty Context / jvm 1| 09-Nov-2006 12:40:55 org.mortbay.util.FileResource clinit jvm 1| INFO: Checking Resource aliases jvm 1| 09-Nov-2006 12:40:55 org.mortbay.xml.XmlParser init jvm 1| WARNING: Schema validation may not be supported jvm 1| 09-Nov-2006 12:40:55 org.mortbay.util.Container start jvm 1| INFO: Started [EMAIL PROTECTED] jvm 1| 09-Nov-2006 12:40:55 org.mortbay.jetty.servlet.ServletHandler$Context log jvm 1| INFO: Loading plexus context properties from: '/WEB-INF/plexus.properties' jvm 1| 09-Nov-2006 12:40:55 org.mortbay.jetty.servlet.ServletHandler$Context log jvm 1| INFO: Could not load plexus context properties from: '/WEB-INF/plexus.properties' jvm 1| 2006-11-09 12:40:56,047 [WrapperSimpleAppMain] INFO PlexusContainer- Loading on start [role]: [ org.apache.maven.archiva.scheduler.RepositoryTaskScheduler] jvm 1| 2006-11-09 12:40:56,312 [WrapperSimpleAppMain] INFO RAMJobStore- RAMJobStore initialized. jvm 1| 2006-11-09 12:40:56,312 [WrapperSimpleAppMain] INFO StdSchedulerFactory- Quartz scheduler 'defaultScheduler' initialized from an externally provided properties instance. jvm 1| 2006-11-09 12:40:56,312 [WrapperSimpleAppMain] INFO StdSchedulerFactory- Quartz scheduler version: 1.4.5 jvm 1| 2006-11-09 12:40:56,312 [WrapperSimpleAppMain] INFO QuartzScheduler- Scheduler defaultScheduler_$_NON_CLUSTERED started. jvm 1| 2006-11-09 12:40:56,750 [WrapperSimpleAppMain] WARN ConfigurationStore - Configuration file: C:\Documents and Settings\mfr\.m2\archiva.xml not found. Using defaults. jvm 1| 2006-11-09 12:40:56,750 [WrapperSimpleAppMain] INFO RepositoryTaskScheduler- Not scheduling indexer - index path is not configured jvm 1| 2006-11-09
Re: [M2] move resource files
I hade the same problem a week ago :-) On 11/9/06, aXXa [EMAIL PROTECTED] wrote: Konstantin, Brilliant! it works excellent when I added the init-param tag pointing out where to find the bean definition file in my servlet tag. Thanks! Konstantin Polyzois wrote: You can configure Spring to find it in WEB-INF/classes instead by using the following in your web.xml: context-param param-namecontextConfigLocation/param-name param-value/WEB-INF/classes/fenix-servlet.xml/param-value /context-param listener listener-class org.springframework.web.context.ContextLoaderListener/listener-class /listener or if it is the DispatcherServlet use: servlet-classorg.springframework.web.servlet.DispatcherServlet /servlet-class init-param param-namecontextConfigLocation/param-name param-value/WEB-INF/classes/fenix-servlet.xml /param-value /init-param So keep your file in src/main/resources/fenix-servlet.xml /Konstantin On 11/9/06, aXXa [EMAIL PROTECTED] wrote: ...some more info... The reason why I want to move the file 'fenix-servlet.xml' (a Spring bean definition file) from src/main/resources to WEB-INF: When running tests Spring cannot seem to find the 'fenix-servlet.xml' file when it resides in the WEB-INF folder (${project.build.directory}/${project.build.finalName}/WEB-INF does not seem to be on the classpath?), but the tests work fine when the file reside in the resources folder. Tomcat on the other hand does not find the file when the file reside in the classes folder when running the web app, but wants it in the WEB-INF folder... aXXa wrote: All, In vain I have tried to configure the maven-resources-plugin to move only ONE file from the resources directory ([project-root]/src/main/resources), but I always end up in moving all files and subdirectories or no files at all. Can some one please tell me what I'm doing wrong? Below is my attempt that resulted in ALL files and folders (including the excluded log4j.properties file) were moved to the WEB-INF directory build plugin artifactIdmaven-resources-plugin/artifactId configuration outputDirectory${project.build.directory}/${project.build.finalName }/WEB-INF//outputDirectory resources includes includefenix-servlet.xml/include /includes excludes excludelog4j.properties/exclude /excludes /resources /configuration /plugin /build -- View this message in context: http://www.nabble.com/-M2--move-resource-files-tf2600050s177.html#a7254955 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-M2--move-resource-files-tf2600050s177.html#a7256584 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie question
Hi, I am trying to build a web application using Spring and Hibernate. All goes find except that my jsp pages and all the *.hbm.xml are not copied in the target war. The directory structure is the standard one for a web app as advised by maven book. Thanks for help. Gianfranco OLDANI _ Faites de MSN Search votre page d'accueil: Toutes les réponses en un clic! http://search.msn.ch/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question
your jsp pages should be in src/main/webapp/WEB-INF/jsp and your hbm.xml in src/main/resources given that you're using that directory layout, can you post your pom.xml ? On 11/9/06, Gianfranco Oldani [EMAIL PROTECTED] wrote: Hi, I am trying to build a web application using Spring and Hibernate. All goes find except that my jsp pages and all the *.hbm.xml are not copied in the target war. The directory structure is the standard one for a web app as advised by maven book. -- http://valerioschiavoni.blogspot.com http://jroller.com/page/vschiavoni
maven-clover-plugin excludes problem
Hi there, I am using the maven clover plugin 2.3 and am trying to exclude files from instrumentation. My package structure is the following : src\main\java\za\co\fnb\ssc\dynabob\atm\somepackage\page\*.java. I don't want the page package to be instrumented, so have added the following into my pom.xml: reporting plugins plugin artifactIdmaven-clover-plugin/artifactId configuration licenseFileclover.license/licenseFile excludes exclude**/page/*.java/exclude /excludes /configuration /plugin /plugins /reporting But it still instruments the code, which then becomes part of my report which then brings the code coverage percentage down. I have tried different paths, like **/*page/*.java, **/page/** etc, but nothing seems to work. I have been searching for answers on this site a.w.a the clover support site, tried some of the suggestions, but nothing works. Every time we do a build we do a clean install and have deleted the clover database and site folder manually, but this made no difference. Could someone please help me? Thank you very much!!! To read FirstRand Bank's Disclaimer for this email click on the following address or copy into your Internet browser: https://www.fnb.co.za/disclaimer.html If you are unable to access the Disclaimer, send a blank e-mail to [EMAIL PROTECTED] and we will send you a copy of the Disclaimer.
Creating MavenProject within plugin
Hi! This could be a no-no, but can I create a MavenProject object from a POM (other than the one executed) within my plugin? I've traversed the JavaDocs, but there is no obvious way (all methods require arguments I cannot provide, e.g. ProfileManager). /jonas Detta e-mail har blivit undersökt av http://www.virus112.se - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
EJB JAR Manifest
Hi all, how can one specify a Class-Path: entry in the manifest of an EJB jar ? Thanks for your help, Sebastien
RE: EJB JAR Manifest
Maybe I'm facing a bug similar to http://jira.codehaus.org/browse/PLX-158 ..., but with the EJB plugin ? Sebastien -Original Message- From: Sebastien Brunot [mailto:[EMAIL PROTECTED] Sent: Thursday, November 09, 2006 1:59 PM To: Maven Users List Subject: EJB JAR Manifest Hi all, how can one specify a Class-Path: entry in the manifest of an EJB jar ? Thanks for your help, Sebastien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question
Hi Valerio, Thanks for the advise. The hbm.xml are now copied ok. But the jsp aren't even if I put the jsp directory under WEB-INF. Attached my pom. Thanks for your help Gianfranco OLDANI Original Message Follows From: Valerio Schiavoni [EMAIL PROTECTED] Reply-To: Maven Users List users@maven.apache.org To: Maven Users List users@maven.apache.org, [EMAIL PROTECTED] Subject: Re: Newbie question Date: Thu, 9 Nov 2006 13:23:53 +0100 your jsp pages should be in src/main/webapp/WEB-INF/jsp and your hbm.xml in src/main/resources given that you're using that directory layout, can you post your pom.xml ? On 11/9/06, Gianfranco Oldani [EMAIL PROTECTED] wrote: Hi, I am trying to build a web application using Spring and Hibernate. All goes find except that my jsp pages and all the *.hbm.xml are not copied in the target war. The directory structure is the standard one for a web app as advised by maven book. -- http://valerioschiavoni.blogspot.com http://jroller.com/page/vschiavoni _ Sentez vous chez vous sur la page d'accueil MSN en personnalisant le contenu! http://fr.ch.msn.com/default.aspx?dc=true ?xml version=1.0?project modelVersion4.0.0/modelVersion groupIdcom.ibsc/groupId artifactIdqual/artifactId packagingwar/packaging nameQual online application/name version1.0-SNAPSHOT/version descriptionThe Qual application is intended to provide an online tool to TO DO.../description urlhttp://www.qual.com/url developers developer idgo/id nameGianfranco Oldani/name email[EMAIL PROTECTED]/email urlwww.ibsc.ch/url organizationIBSC/organization roles roleProject Manager/role roleJava Developer/role /roles timezone+1/timezone /developer developer idsc/id nameSteve Carrupt/name email[EMAIL PROTECTED]/email url/url organizationIBSC/organization roles roleJava Developer/role /roles timezone+1/timezone /developer /developers contributors contributor nameRobert Sanders/name email[EMAIL PROTECTED]/email urlwww.ibsc.ch/url organizationIBSC/organization organizationUrlwww.ibsc.ch/organizationUrl roles roleIBSC Director/role roleBusiness Analyst/role /roles timezone+1/timezone /contributor /contributors build sourceDirectoryD:\Java\projects\ibsc\qual\trunk\src\main\java/sourceDirectory scriptSourceDirectorysrc\main\scripts/scriptSourceDirectory testSourceDirectoryD:\Java\projects\ibsc\qual\trunk\src\test\java/testSourceDirectory outputDirectoryD:\Java\projects\ibsc\qual\trunk\target\classes/outputDirectory testOutputDirectoryD:\Java\projects\ibsc\qual\trunk\target\test-classes/testOutputDirectory resources resource directoryD:\Java\projects\ibsc\qual\trunk\src\main\resources/directory /resource /resources testResources testResource directoryD:\Java\projects\ibsc\qual\trunk\src\test\resources/directory /testResource /testResources directoryD:\Java\projects\ibsc\qual\trunk\target/directory finalNamequal/finalName plugins plugin artifactIdmaven-war-plugin/artifactId version2.0-beta-1/version configuration webXmlsrc/webapp/WEB-INF/web.xml/webXml /configuration /plugin plugin artifactIdmaven-compiler-plugin/artifactId version2.0/version configuration source1.5/source target1.5/target /configuration /plugin plugin artifactIdmaven-surefire-plugin/artifactId version2.1.1/version configuration includes include**/*.java/include /includes excludes exclude**/*Point*.java/exclude /excludes /configuration /plugin plugin artifactIdmaven-help-plugin/artifactId version2.0/version /plugin /plugins /build repositories repository releases enabledfalse/enabled /releases snapshots / idMaven Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2//url /repository repository snapshots enabledfalse/enabled /snapshots idcentral/id nameMaven Repository Switchboard/name urlhttp://repo1.maven.org/maven2/url /repository /repositories pluginRepositories pluginRepository releases enabledfalse/enabled /releases snapshots / idMaven Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2//url /pluginRepository pluginRepository releases updatePolicynever/updatePolicy /releases snapshots enabledfalse/enabled /snapshots idcentral/id nameMaven Plugin Repository/name
Re: maven-clover-plugin excludes problem
On 11/9/06, Van Niekerk, Ida [EMAIL PROTECTED] wrote: Hi there, I am using the maven clover plugin 2.3 and am trying to exclude files from instrumentation. My package structure is the following : src\main\java\za\co\fnb\ssc\dynabob\atm\somepackage\page\*.java. I don't want the page package to be instrumented, so have added the following into my pom.xml: reporting plugins plugin artifactIdmaven-clover-plugin/artifactId configuration licenseFileclover.license/licenseFile excludes exclude**/page/*.java/exclude /excludes /configuration /plugin /plugins /reporting But it still instruments the code, which then becomes part of my report which then brings the code coverage percentage down. I have tried different paths, like **/*page/*.java, **/page/** etc, but nothing seems to work. I have been searching for answers on this site a.w.a the clover support site, tried some of the suggestions, but nothing works. Every time we do a build we do a clean install and have deleted the clover database and site folder manually, but this made no difference. Could someone please help me? Thank you very much!!! Where's your pom.xml located? -- Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven-clover-plugin excludes problem
Thanks so much for your response. I have four projects and a pom.xml in each. So it will be something like c:\Somefolder\DynabobATM\pom.xml. Where DynabobATM is one of my projects. -Original Message- From: Jeff Mutonho [mailto:[EMAIL PROTECTED] Sent: 09 November 2006 03:09 PM To: Maven Users List Subject: Re: maven-clover-plugin excludes problem On 11/9/06, Van Niekerk, Ida [EMAIL PROTECTED] wrote: Hi there, I am using the maven clover plugin 2.3 and am trying to exclude files from instrumentation. My package structure is the following : src\main\java\za\co\fnb\ssc\dynabob\atm\somepackage\page\*.java. I don't want the page package to be instrumented, so have added the following into my pom.xml: reporting plugins plugin artifactIdmaven-clover-plugin/artifactId configuration licenseFileclover.license/licenseFile excludes exclude**/page/*.java/exclude /excludes /configuration /plugin /plugins /reporting But it still instruments the code, which then becomes part of my report which then brings the code coverage percentage down. I have tried different paths, like **/*page/*.java, **/page/** etc, but nothing seems to work. I have been searching for answers on this site a.w.a the clover support site, tried some of the suggestions, but nothing works. Every time we do a build we do a clean install and have deleted the clover database and site folder manually, but this made no difference. Could someone please help me? Thank you very much!!! Where's your pom.xml located? -- Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To read FirstRand Bank's Disclaimer for this email click on the following address or copy into your Internet browser: https://www.fnb.co.za/disclaimer.html If you are unable to access the Disclaimer, send a blank e-mail to [EMAIL PROTECTED] and we will send you a copy of the Disclaimer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: EJB JAR Manifest
Sebastien Brunot wrote on Thursday, November 09, 2006 1:59 PM: Hi all, how can one specify a Class-Path: entry in the manifest of an EJB jar ? You have to configure it: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient archive manifest addClasspathtrue/addClasspath /manifest /archive /configuration /plugin - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-clover-plugin excludes problem
On 11/9/06, Van Niekerk, Ida [EMAIL PROTECTED] wrote: Thanks so much for your response. I have four projects and a pom.xml in each. So it will be something like c:\Somefolder\DynabobATM\pom.xml. Where DynabobATM is one of my projects. I meant relative to src\main\java\za\co\fnb\ssc\dynabob\atm\somepackage\page\*.java. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [maven2] CruiseControl surfire reports
Hello Prasad, thanks for your answer and the complete list of references covering the dashboard problem. I am working with an m2-base build system of a product with 120+ maven projects. Hence the current lack of a dashboard is a big issue. I appreciate any approach to realize a dashboard feature -- even it's just a temporarily work-around solution. Maybe I can help to realize a solution... Best Regards, Alex prasad wrote: Hi Alex, AFAIK, there isn't any such thing right now to help us in this regard. I am looking for something like that too. The plugin at http://qalab.sourceforge.net doesn't track stats for surefire reports. The plugin at http://xradar.sourceforge.net isn't available for m2 yet. For what it's worth, here are some discussions that have been going on on the lists regarding this - http://docs.codehaus.org/display/MAVEN/Maven+Dashboard http://www.mail-archive.com/dev@maven.apache.org/msg60205.html http://www.mail-archive.com/dev@maven.apache.org/msg60537.html http://www.mail-archive.com/users@maven.apache.org/msg52186.html Cheers Prasad -- View this message in context: http://www.nabble.com/-maven2--CruiseControl---surfire-reports-tf2588912s177.html#a7258161 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: [maven2] CruiseControl surfire reports
On Tuesday November 07 2006 9:08 am, Alex Schwartz wrote: Hi, I am running a maven2 build with CruiseControl (http://cruisecontrol.sourceforge.net/). Now I would like to configure maven2 such that the surefire XML test reports are collected for CruiseControl and displayed on the corresponding Build Results page of CruiseControl. I assume I'm not the first one using this combination So, has someone a working configuration? Or any hints, even about failing approaches? We kind of accomplished it by using the ant builder to call to a small build.xml that forks MVN to do the build, but then collects the **/target/surefire-reports/*.xml files together into one place. https://svn.apache.org/repos/asf/incubator/cxf/trunk/build.xml Not exactly ideal, but if it works.. -- J. Daniel Kulp Principal Engineer IONA P: 781-902-8727C: 508-380-7194 F:781-902-8001 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [maven2] CruiseControl surfire reports
Hello everyone, I figured out a simple solution to display the surefire test results of a maven2 project in the CruiseControl build results page: The CruiseControl config contains an element merge which merges given test result XML files into the build result XML file. Configure the merge elment as follows: log merge dir=projects/${project.name} pattern=TEST-*.xml / /log This solution works even in the case of multimodule projects. (The implementation parses the given directory structure including the subdirectories. All test result files are selected by the given pattern.) Best Regards, Alex -- View this message in context: http://www.nabble.com/-maven2--CruiseControl---surfire-reports-tf2588912s177.html#a7258267 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: EJB JAR Manifest
Thanks for your help Jörg. Sebastien -Original Message- From: Jörg Schaible [mailto:[EMAIL PROTECTED] Sent: Thursday, November 09, 2006 2:20 PM To: Maven Users List Subject: RE: EJB JAR Manifest Sebastien Brunot wrote on Thursday, November 09, 2006 1:59 PM: Hi all, how can one specify a Class-Path: entry in the manifest of an EJB jar ? You have to configure it: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient archive manifest addClasspathtrue/addClasspath /manifest /archive /configuration /plugin - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven-clover-plugin excludes problem
Sorry bout that :), it's at the same level as the src directory. -Original Message- From: Jeff Mutonho [mailto:[EMAIL PROTECTED] Sent: 09 November 2006 03:32 PM To: Maven Users List Subject: Re: maven-clover-plugin excludes problem On 11/9/06, Van Niekerk, Ida [EMAIL PROTECTED] wrote: Thanks so much for your response. I have four projects and a pom.xml in each. So it will be something like c:\Somefolder\DynabobATM\pom.xml. Where DynabobATM is one of my projects. I meant relative to src\main\java\za\co\fnb\ssc\dynabob\atm\somepackage\page\*.java. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To read FirstRand Bank's Disclaimer for this email click on the following address or copy into your Internet browser: https://www.fnb.co.za/disclaimer.html If you are unable to access the Disclaimer, send a blank e-mail to [EMAIL PROTECTED] and we will send you a copy of the Disclaimer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PMD Plugin error during mvn site
Hi, Somebody can help me to fix that: Can't use JDK 1.5 for loop syntax when running in JDK 1.4 mode! I put in the plugin configuration section : targetjdk1.5/targetjdk but it's not enough. Thanks Gianfranco OLDANI _ Sentez vous chez vous sur la page d'accueil MSN en personnalisant le contenu! http://fr.ch.msn.com/default.aspx?dc=true - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: EJB JAR Manifest
I also tried with: configuration generateClienttrue/generateClient archive manifest manifestFilepath/to/my/file/manifestFile /manifest /archive /configuration But it break the build with message: Cause: Cannot find setter nor field in org.apache.maven.archiver.ManifestConfiguration for 'manifestFile' Any idea of how to provides one's own custom MANIFEST.MF file ? Sebastien -Original Message- From: Jörg Schaible [mailto:[EMAIL PROTECTED] Sent: Thursday, November 09, 2006 2:20 PM To: Maven Users List Subject: RE: EJB JAR Manifest Sebastien Brunot wrote on Thursday, November 09, 2006 1:59 PM: Hi all, how can one specify a Class-Path: entry in the manifest of an EJB jar ? You have to configure it: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient archive manifest addClasspathtrue/addClasspath /manifest /archive /configuration /plugin - Jörg - 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: Newbie question
you should remove your sourceDirectory tag as it specifies only the java part. The default value should fit in you case. Hope this helps Manu 2006/11/9, Gianfranco Oldani [EMAIL PROTECTED]: Hi Valerio, Thanks for the advise. The hbm.xml are now copied ok. But the jsp aren't even if I put the jsp directory under WEB-INF. Attached my pom. Thanks for your help Gianfranco OLDANI Original Message Follows From: Valerio Schiavoni [EMAIL PROTECTED] Reply-To: Maven Users List users@maven.apache.org To: Maven Users List users@maven.apache.org, [EMAIL PROTECTED] Subject: Re: Newbie question Date: Thu, 9 Nov 2006 13:23:53 +0100 your jsp pages should be in src/main/webapp/WEB-INF/jsp and your hbm.xml in src/main/resources given that you're using that directory layout, can you post your pom.xml ? On 11/9/06, Gianfranco Oldani [EMAIL PROTECTED] wrote: Hi, I am trying to build a web application using Spring and Hibernate. All goes find except that my jsp pages and all the *.hbm.xml are not copied in the target war. The directory structure is the standard one for a web app as advised by maven book. -- http://valerioschiavoni.blogspot.com http://jroller.com/page/vschiavoni _ Sentez vous chez vous sur la page d'accueil MSN en personnalisant le contenu! http://fr.ch.msn.com/default.aspx?dc=true - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Manu (:-Þ)
RE: EJB JAR Manifest
Ok, I've found the error (there should be no enclosing manifest tags around manifestFile). Sorry for the annoyance... Sebastien -Original Message- From: Sebastien Brunot [mailto:[EMAIL PROTECTED] Sent: Thursday, November 09, 2006 3:00 PM To: Maven Users List Subject: RE: EJB JAR Manifest I also tried with: configuration generateClienttrue/generateClient archive manifest manifestFilepath/to/my/file/manifestFile /manifest /archive /configuration But it break the build with message: Cause: Cannot find setter nor field in org.apache.maven.archiver.ManifestConfiguration for 'manifestFile' Any idea of how to provides one's own custom MANIFEST.MF file ? Sebastien -Original Message- From: Jörg Schaible [mailto:[EMAIL PROTECTED] Sent: Thursday, November 09, 2006 2:20 PM To: Maven Users List Subject: RE: EJB JAR Manifest Sebastien Brunot wrote on Thursday, November 09, 2006 1:59 PM: Hi all, how can one specify a Class-Path: entry in the manifest of an EJB jar ? You have to configure it: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient archive manifest addClasspathtrue/addClasspath /manifest /archive /configuration /plugin - Jörg - 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]
Pulling jars into local repository
I have a script now that picks a lot of OSGi bundles I've built myself from my local maven repository, and drops them into a directory together with the eclipse runtime (as proposed earlier on this list), that is used as the target location for eclipse plug-in development. Now I need to distributes some 3rdparty OSGi bundles, and we have a maven repository in the LAN for speeding up 3rdparty bundles, so dropping the bundles there seems like the simplest way to distribute them. My question is: what can I put in the top level pom.xml of the project that builds our own OSGi bundles, that will pull in these bundles from the company's central repository into developer's local repository. The natural thing would be to just put in a dependency there, but I worry that it might affect the OSGi plugins built here somehow. The OSGi plugin project doesn't really need these bundles. It's the eclipse run-time that needs them. Perhaps a scope of runtime will work...? http://docs.codehaus.org/display/MAVENUSER/Dependency+Scopes Thanx! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How Do I Deploys The Sources To The Repository
Hey greg, It doesn't seem to work with the install goal. It generates the javadoc sources file but doesn't deploy it to the local repo. It does work with the deploy goal. Thx. -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 7 november 2006 17:20 Aan: Maven Users List; [EMAIL PROTECTED] Onderwerp: Re: How Do I Deploys The Sources To The Repository Yves Van Steen [EMAIL PROTECTED] wrote on 11/07/2006 09:58:46 AM: I can generate a jar containing the source files of a project. But how do I configure it to deploy the source jar to the repo? I need this because I would like to use the download sources setting of the eclipse plugin for my own projects. So far I have found nothing that would accomplish this task. Somewhere deep in the plugins of maven adding a system property of performRelease=true causes both source and javadoc jars to be generated and deployed. It's not well documented. So you can do mvn -DperformRelease=true deploy and you get both source and javadoc jars in the repository along with the main artifact. It also works with the install target. -Greg Vaughn [EMAIL PROTECTED] == Confidentiality Notice: The information contained in and transmitted with this communication is strictly confidential, is intended only for the use of the intended recipient, and is the property of Countrywide Financial Corporation or its affiliates and subsidiaries. If you are not the intended recipient, you are hereby notified that any use of the information contained in or transmitted with the communication or dissemination, distribution, or copying of this communication is strictly prohibited by law. If you have received this communication in error, please immediately return this communication to the sender and delete the original message and any copy of it in your possession. == -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.0/524 - Release Date: 8/11/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.0/525 - Release Date: 9/11/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M1] QALab 0.9.1 and Maven plugin released
could you join this effort = http://jira.codehaus.org/browse/MSITE-189 ? Thanks David Benoitx wrote: Paul Could you show us your POM that generates the XML for Cobertura? We're working on the M2 plugin for QALab... Thanks Benoit Benoitx wrote: Paul Can you post this on the QALab Users list. We will look into it but could you confirm which JDK you are using? It is the first time we see that one... Regards Benoit Paul Balm wrote: Benoitx wrote: ObjectLab is pleased to announce the release of version 0.9.1 (slowly getting closer to v 1.0) of QALab and its Maven 1.x plugin. I'm trying to use this plug-in under Maven 1.1-beta2, to agregate stats from Cobertura and PMD, I'm getting parser errors on the XML output of pmd-raw-report.xml and cobertura.xml respectively. Because it happens on both these files, I think it's my maven set-up (the XML parser that I use e.g.), and that the PMD and Cobertura reports are fine. I can also see those when I generate maven site -- they are ok. I have the dependencies that QALab specificies in my project.xml (on http://qalab.sourceforge.net/maven/dependencies.html), but of course additionally a bunch of other stuff that my project needs, so I'm worried this might screw things up. Anyway, below this message I pasted the output with errors. I think it goes wrong 12 lines into the output that I'm showing (on the PMD XML(, and the same error two lines below that on the Cobertura XML. I also append a list of the libraries that I'm using (the dependencies from my project.xml). Any suggestions more than welcome, 'cause I'm stuck! Thanks! Paul maven cobertura pmd [...ok...] maven -e maven-qalab-plugin:report [...] maven-qalab-plugin:report: [echo] QALab Report. Tag library requested that is not present: 'qalab' in plugin: 'maven-qalab-plugin-0.9.0' maven-qalab-plugin:merge: [echo] QALab Merge!... [echo] No Checkstyle file to process (/home/pbalm/dev/isoc/simbad/target/checkstyle/checkstyle-raw-report.xml). [echo] QALab Merge! /home/pbalm/dev/isoc/simbad/target/pmd-raw-report.xml... [mergestat] org.xml.sax.SAXNotSupportedException: Feature: http://xml.org/sax/features/external-general-entities State: false [mergestat] Files: 0 Statistics:0 [echo] No FindBugs file to process (/home/pbalm/dev/isoc/simbad/target/findbugs-raw-report.xml). [echo] No Simian file to process (/home/pbalm/dev/isoc/simbad/target/simian-raw-report.xml). [echo] QALab Merge! /home/pbalm/dev/isoc/simbad/target/docs/cobertura/coverage.xml Line... [mergestat] org.xml.sax.SAXNotSupportedException: Feature: http://xml.org/sax/features/external-general-entities State: false [mergestat] Files: 0 Statistics:0 [echo] QALab Merge! /home/pbalm/dev/isoc/simbad/target/docs/cobertura/coverage.xml Branch... [mergestat] org.xml.sax.SAXNotSupportedException: Feature: http://xml.org/sax/features/external-general-entities State: false [mergestat] Files: 0 Statistics:0 Tag library requested that is not present: 'qalab' in plugin: 'maven-qalab-plugin-0.9.0' maven-qalab-plugin:charts: [echo] QALab CHARTS! [buildchart] java.lang.ClassNotFoundException: org/apache/xerces/parsers/SAXParser [echo] Cobertura Chart [buildchart] java.lang.ClassNotFoundException: org/apache/xerces/parsers/SAXParser [echo] QALab SUMMARY XDOC for CHARTS! ... BUILD FAILED org.apache.commons.jelly.JellyTagException: file:/home/pbalm/.maven/cache/maven-qalab-plugin-0.9.0/plugin-resources/qalab-chart-xdoc.jsl:35:-1: jsl:stylesheet file:/home/pbalm/.maven/cache/maven-qalab-plugin-0.9.0/plugin-resources/qalab-chart-xdoc.jsl:89:-1: x:sort You must define an attribute called 'list' for this tag. at org.apache.commons.jelly.tags.jsl.StylesheetTag.doTag(StylesheetTag.java:127) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:704) at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:668) at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:644) at org.apache.commons.jelly.tags.core.IncludeTag.doTag(IncludeTag.java:101) [...more...] == Dependencies: (declared in this order) !-- As required by QALab: -- artifactIdant/artifactId version1.6.4/version artifactIdjcommon/artifactId version0.9.6/version artifactIdjfreechart/artifactId version0.9.21/version groupIdnet.objectlab/groupId artifactIdqalab/artifactId version0.9.1/version artifactIdxalan/artifactId version2.7.0/version artifactIdxerces/artifactId version2.4.0/version artifactIdxercesImpl/artifactId version2.6.2/version !-- Private libraries -- (private code here) !--
Let Maven alter a config file
Hi I have Maven that has a dependency to Tomcat, i.e. retrieves Tomcat if it is not already installed. Unfortunately, I _must_ have some specific settings in the Tomcat configuration file (which is in XML). Is there any plugin that can check the files settings and alter it if necessary? Thanks for any hint! Greetings, Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie help needed with Eclipse project
Hi rick, try this link http://blogs.unixage.com/blojsom/blog/adam.kruszewski/eclipse/?permalink=Maven2-Eclipse-plugin-with-latest-WTP-from-callisto-update-site.html looks like an 'updated version' of maven2 plugin for eclipse... i m using it too.. even though i m running mvn from command line btw, since i m here, for anyone who runs maven via eclipse, where do you specify the profile? in the command line argument of the external task launched for running mvn? regards marco On 11/9/06, Adam Hardy [EMAIL PROTECTED] wrote: Hi Rick, it depends which maven plugin you are talking about. m2eclipse I assume. Have you tried browsing their mailing list: http://www.nabble.com/Maven-Eclipse---User-f14525.html You can use a standard maven heirarchical directory layout, but eclipse will not allow you to create a project for the parent project - but you're only missing out on the parent pom - it's no big deal. however the bigger issue is that the m2eclipse plugin won't compile the jar. You still need to run that from the command line. you could try a flat layout by referring to the child modules like this: module../hello/module but I haven't tried it. Adam Rick Debay wrote: I'm trying to set up a project from scratch using Maven 2 and Eclipse 3.2. I'm starting by working with the Quick Start to understand how a project with multiple modules should be structured to accommodate both systems. I understand that while Eclipse 3.2 now supports sub-projects, the Maven plugin doesn't. I tried to follow the example in Better Builds with Maven, but it looks like the J2EE example switches between flat and hierarchal layouts. Here are the POM files that I have. When I select External Tools compile or package, I get BUILD SUCCESSFUL but no class files or jar is written to the target directory. So what is the correct way to lay out a project that will consist of multiple modules? eclipse\workspace\hello-world\pom.xml 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 groupIdcom.accessrxs.hello/groupId artifactIdhello-world/artifactId packagingpom/packaging version1.0-SNAPSHOT/version nameMaven Quick Start Archetype/name urlhttp://maven.apache.org/url modules modulehello/module /modules dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies /project eclipse\workspace\hello-world\hello\pom.xml 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; parent groupIdcom.accessrxs.hello/groupId artifactIdhello-world/artifactId version1.0-SNAPSHOT/version /parent modelVersion4.0.0/modelVersion artifactIdhello/artifactId packagingjar/packaging nameMaven Quick Start Archetype submodule/name /project Thanks, Rick DeBay Disclaimer: This message (including attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. RxStrategies, Inc. shall not be liable for the improper or incomplete transmission of the information contained in this communication or for any delay in its receipt or damage to your system. RxStrategies, Inc. does not guarantee that the integrity of this communication has been maintained nor that this communication is free from viruses, interceptions or interference. - 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: [M1] QALab 0.9.1 and Maven plugin released
Dear David, We really need to have 188 fixed... http://jira.codehaus.org/browse/MSITE-188 It is the last hurdle for QALab. I will keep an eye on 189 too but we cannot become too specific to Maven 2, QALab works accross ant, Maven 1 and now (in beta soon) Maven 2. I find QALab complementary to the dashboard as we keep track of similar stats over time rather than snapshot. We've been using it for a few years and only released it open source in June 05. As I said, we will keep an eye but I prefer to be frank and say that it will be difficult to dedicate a lot of time to it due to massive amount of work (real work and open source: QALab, JTreeMap, ObjectLabKit etc all on sourceforge by the way...). Sorry, Benoit dvicente wrote: could you join this effort = http://jira.codehaus.org/browse/MSITE-189 ? Thanks David Benoitx wrote: Paul Could you show us your POM that generates the XML for Cobertura? We're working on the M2 plugin for QALab... Thanks Benoit Benoitx wrote: Paul Can you post this on the QALab Users list. We will look into it but could you confirm which JDK you are using? It is the first time we see that one... Regards Benoit Paul Balm wrote: Benoitx wrote: ObjectLab is pleased to announce the release of version 0.9.1 (slowly getting closer to v 1.0) of QALab and its Maven 1.x plugin. I'm trying to use this plug-in under Maven 1.1-beta2, to agregate stats from Cobertura and PMD, I'm getting parser errors on the XML output of pmd-raw-report.xml and cobertura.xml respectively. Because it happens on both these files, I think it's my maven set-up (the XML parser that I use e.g.), and that the PMD and Cobertura reports are fine. I can also see those when I generate maven site -- they are ok. I have the dependencies that QALab specificies in my project.xml (on http://qalab.sourceforge.net/maven/dependencies.html), but of course additionally a bunch of other stuff that my project needs, so I'm worried this might screw things up. Anyway, below this message I pasted the output with errors. I think it goes wrong 12 lines into the output that I'm showing (on the PMD XML(, and the same error two lines below that on the Cobertura XML. I also append a list of the libraries that I'm using (the dependencies from my project.xml). Any suggestions more than welcome, 'cause I'm stuck! Thanks! Paul maven cobertura pmd [...ok...] maven -e maven-qalab-plugin:report [...] maven-qalab-plugin:report: [echo] QALab Report. Tag library requested that is not present: 'qalab' in plugin: 'maven-qalab-plugin-0.9.0' maven-qalab-plugin:merge: [echo] QALab Merge!... [echo] No Checkstyle file to process (/home/pbalm/dev/isoc/simbad/target/checkstyle/checkstyle-raw-report.xml). [echo] QALab Merge! /home/pbalm/dev/isoc/simbad/target/pmd-raw-report.xml... [mergestat] org.xml.sax.SAXNotSupportedException: Feature: http://xml.org/sax/features/external-general-entities State: false [mergestat] Files: 0 Statistics:0 [echo] No FindBugs file to process (/home/pbalm/dev/isoc/simbad/target/findbugs-raw-report.xml). [echo] No Simian file to process (/home/pbalm/dev/isoc/simbad/target/simian-raw-report.xml). [echo] QALab Merge! /home/pbalm/dev/isoc/simbad/target/docs/cobertura/coverage.xml Line... [mergestat] org.xml.sax.SAXNotSupportedException: Feature: http://xml.org/sax/features/external-general-entities State: false [mergestat] Files: 0 Statistics:0 [echo] QALab Merge! /home/pbalm/dev/isoc/simbad/target/docs/cobertura/coverage.xml Branch... [mergestat] org.xml.sax.SAXNotSupportedException: Feature: http://xml.org/sax/features/external-general-entities State: false [mergestat] Files: 0 Statistics:0 Tag library requested that is not present: 'qalab' in plugin: 'maven-qalab-plugin-0.9.0' maven-qalab-plugin:charts: [echo] QALab CHARTS! [buildchart] java.lang.ClassNotFoundException: org/apache/xerces/parsers/SAXParser [echo] Cobertura Chart [buildchart] java.lang.ClassNotFoundException: org/apache/xerces/parsers/SAXParser [echo] QALab SUMMARY XDOC for CHARTS! ... BUILD FAILED org.apache.commons.jelly.JellyTagException: file:/home/pbalm/.maven/cache/maven-qalab-plugin-0.9.0/plugin-resources/qalab-chart-xdoc.jsl:35:-1: jsl:stylesheet file:/home/pbalm/.maven/cache/maven-qalab-plugin-0.9.0/plugin-resources/qalab-chart-xdoc.jsl:89:-1: x:sort You must define an attribute called 'list' for this tag. at org.apache.commons.jelly.tags.jsl.StylesheetTag.doTag(StylesheetTag.java:127) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:704) at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:668) at
RE: How Do I Deploys The Sources To The Repository
-Oorspronkelijk bericht- Van: Yves Van Steen [mailto:[EMAIL PROTECTED] Verzonden: donderdag 9 november 2006 15:33 Aan: 'Maven Users List' Onderwerp: RE: How Do I Deploys The Sources To The Repository Hey greg, Sorry for this wrong information it does seem to work with the install goal. I made a little error. Thx. -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 7 november 2006 17:20 Aan: Maven Users List; [EMAIL PROTECTED] Onderwerp: Re: How Do I Deploys The Sources To The Repository Yves Van Steen [EMAIL PROTECTED] wrote on 11/07/2006 09:58:46 AM: I can generate a jar containing the source files of a project. But how do I configure it to deploy the source jar to the repo? I need this because I would like to use the download sources setting of the eclipse plugin for my own projects. So far I have found nothing that would accomplish this task. Somewhere deep in the plugins of maven adding a system property of performRelease=true causes both source and javadoc jars to be generated and deployed. It's not well documented. So you can do mvn -DperformRelease=true deploy and you get both source and javadoc jars in the repository along with the main artifact. It also works with the install target. -Greg Vaughn [EMAIL PROTECTED] == Confidentiality Notice: The information contained in and transmitted with this communication is strictly confidential, is intended only for the use of the intended recipient, and is the property of Countrywide Financial Corporation or its affiliates and subsidiaries. If you are not the intended recipient, you are hereby notified that any use of the information contained in or transmitted with the communication or dissemination, distribution, or copying of this communication is strictly prohibited by law. If you have received this communication in error, please immediately return this communication to the sender and delete the original message and any copy of it in your possession. == -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.0/524 - Release Date: 8/11/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.0/525 - Release Date: 9/11/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.0/525 - Release Date: 9/11/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.0/525 - Release Date: 9/11/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M1] QALab 0.9.1 and Maven plugin released
Hi, I think that the idea is to choose a dashboard plugin (qalab for example) for maven 2 and all other developers help to improve it instead of to develop many plugins. If Qalab is the most advanced plugin, it can be choosen as dashboard reference for Maven 2. Benoitx wrote: Dear David, We really need to have 188 fixed... http://jira.codehaus.org/browse/MSITE-188 It is the last hurdle for QALab. I will keep an eye on 189 too but we cannot become too specific to Maven 2, QALab works accross ant, Maven 1 and now (in beta soon) Maven 2. I find QALab complementary to the dashboard as we keep track of similar stats over time rather than snapshot. We've been using it for a few years and only released it open source in June 05. As I said, we will keep an eye but I prefer to be frank and say that it will be difficult to dedicate a lot of time to it due to massive amount of work (real work and open source: QALab, JTreeMap, ObjectLabKit etc all on sourceforge by the way...). Sorry, Benoit dvicente wrote: could you join this effort = http://jira.codehaus.org/browse/MSITE-189 ? Thanks David Benoitx wrote: Paul Could you show us your POM that generates the XML for Cobertura? We're working on the M2 plugin for QALab... Thanks Benoit Benoitx wrote: Paul Can you post this on the QALab Users list. We will look into it but could you confirm which JDK you are using? It is the first time we see that one... Regards Benoit Paul Balm wrote: Benoitx wrote: ObjectLab is pleased to announce the release of version 0.9.1 (slowly getting closer to v 1.0) of QALab and its Maven 1.x plugin. I'm trying to use this plug-in under Maven 1.1-beta2, to agregate stats from Cobertura and PMD, I'm getting parser errors on the XML output of pmd-raw-report.xml and cobertura.xml respectively. Because it happens on both these files, I think it's my maven set-up (the XML parser that I use e.g.), and that the PMD and Cobertura reports are fine. I can also see those when I generate maven site -- they are ok. I have the dependencies that QALab specificies in my project.xml (on http://qalab.sourceforge.net/maven/dependencies.html), but of course additionally a bunch of other stuff that my project needs, so I'm worried this might screw things up. Anyway, below this message I pasted the output with errors. I think it goes wrong 12 lines into the output that I'm showing (on the PMD XML(, and the same error two lines below that on the Cobertura XML. I also append a list of the libraries that I'm using (the dependencies from my project.xml). Any suggestions more than welcome, 'cause I'm stuck! Thanks! Paul maven cobertura pmd [...ok...] maven -e maven-qalab-plugin:report [...] maven-qalab-plugin:report: [echo] QALab Report. Tag library requested that is not present: 'qalab' in plugin: 'maven-qalab-plugin-0.9.0' maven-qalab-plugin:merge: [echo] QALab Merge!... [echo] No Checkstyle file to process (/home/pbalm/dev/isoc/simbad/target/checkstyle/checkstyle-raw-report.xml). [echo] QALab Merge! /home/pbalm/dev/isoc/simbad/target/pmd-raw-report.xml... [mergestat] org.xml.sax.SAXNotSupportedException: Feature: http://xml.org/sax/features/external-general-entities State: false [mergestat] Files: 0 Statistics:0 [echo] No FindBugs file to process (/home/pbalm/dev/isoc/simbad/target/findbugs-raw-report.xml). [echo] No Simian file to process (/home/pbalm/dev/isoc/simbad/target/simian-raw-report.xml). [echo] QALab Merge! /home/pbalm/dev/isoc/simbad/target/docs/cobertura/coverage.xml Line... [mergestat] org.xml.sax.SAXNotSupportedException: Feature: http://xml.org/sax/features/external-general-entities State: false [mergestat] Files: 0 Statistics:0 [echo] QALab Merge! /home/pbalm/dev/isoc/simbad/target/docs/cobertura/coverage.xml Branch... [mergestat] org.xml.sax.SAXNotSupportedException: Feature: http://xml.org/sax/features/external-general-entities State: false [mergestat] Files: 0 Statistics:0 Tag library requested that is not present: 'qalab' in plugin: 'maven-qalab-plugin-0.9.0' maven-qalab-plugin:charts: [echo] QALab CHARTS! [buildchart] java.lang.ClassNotFoundException: org/apache/xerces/parsers/SAXParser [echo] Cobertura Chart [buildchart] java.lang.ClassNotFoundException: org/apache/xerces/parsers/SAXParser [echo] QALab SUMMARY XDOC for CHARTS! ... BUILD FAILED org.apache.commons.jelly.JellyTagException: file:/home/pbalm/.maven/cache/maven-qalab-plugin-0.9.0/plugin-resources/qalab-chart-xdoc.jsl:35:-1: jsl:stylesheet file:/home/pbalm/.maven/cache/maven-qalab-plugin-0.9.0/plugin-resources/qalab-chart-xdoc.jsl:89:-1: x:sort You must define an attribute called 'list' for this tag. at org.apache.commons.jelly.tags.jsl.StylesheetTag.doTag(StylesheetTag.java:127) at
Re: [M1] QALab 0.9.1 and Maven plugin released
at this time, my only solution is to generate in 2 phases mvn clean site = to generate the site with all links mvn dashboard-report:dashboard = to generate again the dashboard with good and last values of other reports Benoitx wrote: Dear David, We really need to have 188 fixed... http://jira.codehaus.org/browse/MSITE-188 It is the last hurdle for QALab. I will keep an eye on 189 too but we cannot become too specific to Maven 2, QALab works accross ant, Maven 1 and now (in beta soon) Maven 2. I find QALab complementary to the dashboard as we keep track of similar stats over time rather than snapshot. We've been using it for a few years and only released it open source in June 05. As I said, we will keep an eye but I prefer to be frank and say that it will be difficult to dedicate a lot of time to it due to massive amount of work (real work and open source: QALab, JTreeMap, ObjectLabKit etc all on sourceforge by the way...). Sorry, Benoit dvicente wrote: could you join this effort = http://jira.codehaus.org/browse/MSITE-189 ? Thanks David Benoitx wrote: Paul Could you show us your POM that generates the XML for Cobertura? We're working on the M2 plugin for QALab... Thanks Benoit Benoitx wrote: Paul Can you post this on the QALab Users list. We will look into it but could you confirm which JDK you are using? It is the first time we see that one... Regards Benoit Paul Balm wrote: Benoitx wrote: ObjectLab is pleased to announce the release of version 0.9.1 (slowly getting closer to v 1.0) of QALab and its Maven 1.x plugin. I'm trying to use this plug-in under Maven 1.1-beta2, to agregate stats from Cobertura and PMD, I'm getting parser errors on the XML output of pmd-raw-report.xml and cobertura.xml respectively. Because it happens on both these files, I think it's my maven set-up (the XML parser that I use e.g.), and that the PMD and Cobertura reports are fine. I can also see those when I generate maven site -- they are ok. I have the dependencies that QALab specificies in my project.xml (on http://qalab.sourceforge.net/maven/dependencies.html), but of course additionally a bunch of other stuff that my project needs, so I'm worried this might screw things up. Anyway, below this message I pasted the output with errors. I think it goes wrong 12 lines into the output that I'm showing (on the PMD XML(, and the same error two lines below that on the Cobertura XML. I also append a list of the libraries that I'm using (the dependencies from my project.xml). Any suggestions more than welcome, 'cause I'm stuck! Thanks! Paul maven cobertura pmd [...ok...] maven -e maven-qalab-plugin:report [...] maven-qalab-plugin:report: [echo] QALab Report. Tag library requested that is not present: 'qalab' in plugin: 'maven-qalab-plugin-0.9.0' maven-qalab-plugin:merge: [echo] QALab Merge!... [echo] No Checkstyle file to process (/home/pbalm/dev/isoc/simbad/target/checkstyle/checkstyle-raw-report.xml). [echo] QALab Merge! /home/pbalm/dev/isoc/simbad/target/pmd-raw-report.xml... [mergestat] org.xml.sax.SAXNotSupportedException: Feature: http://xml.org/sax/features/external-general-entities State: false [mergestat] Files: 0 Statistics:0 [echo] No FindBugs file to process (/home/pbalm/dev/isoc/simbad/target/findbugs-raw-report.xml). [echo] No Simian file to process (/home/pbalm/dev/isoc/simbad/target/simian-raw-report.xml). [echo] QALab Merge! /home/pbalm/dev/isoc/simbad/target/docs/cobertura/coverage.xml Line... [mergestat] org.xml.sax.SAXNotSupportedException: Feature: http://xml.org/sax/features/external-general-entities State: false [mergestat] Files: 0 Statistics:0 [echo] QALab Merge! /home/pbalm/dev/isoc/simbad/target/docs/cobertura/coverage.xml Branch... [mergestat] org.xml.sax.SAXNotSupportedException: Feature: http://xml.org/sax/features/external-general-entities State: false [mergestat] Files: 0 Statistics:0 Tag library requested that is not present: 'qalab' in plugin: 'maven-qalab-plugin-0.9.0' maven-qalab-plugin:charts: [echo] QALab CHARTS! [buildchart] java.lang.ClassNotFoundException: org/apache/xerces/parsers/SAXParser [echo] Cobertura Chart [buildchart] java.lang.ClassNotFoundException: org/apache/xerces/parsers/SAXParser [echo] QALab SUMMARY XDOC for CHARTS! ... BUILD FAILED org.apache.commons.jelly.JellyTagException: file:/home/pbalm/.maven/cache/maven-qalab-plugin-0.9.0/plugin-resources/qalab-chart-xdoc.jsl:35:-1: jsl:stylesheet file:/home/pbalm/.maven/cache/maven-qalab-plugin-0.9.0/plugin-resources/qalab-chart-xdoc.jsl:89:-1: x:sort You must define an attribute called 'list' for this tag. at org.apache.commons.jelly.tags.jsl.StylesheetTag.doTag(StylesheetTag.java:127) at
RE: Too many jars added to lib?
Sha Wayne: I would propose that a better idea would be that once things have been installed in your local repository, to change your settings.xml to offlinetrue/offline. That way you have limited your local repository to a desired set of artifacts, but still can reconnect up or upgrade without changing all your groupIds, when the time comes. (... for it certainly will.) Barrett Barrett Nuzum Consultant, Skill Development [EMAIL PROTECTED] T: +1 (918) 640 4414 F: +1 (972) 789 1340 Valtech 5080 Spectrum Drive Suite 700 West Addison, Texas 75001 USA T: +1 (972) 789 1200 From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Thu 11/9/2006 2:41 AM To: Maven Users List Subject: Re: Too many jars added to lib? You can certainly do whatever you want to your local repo, including moving artifacts to a new groupId and modifying the pom.xml files to suit your needs. Changing the groupId is not entirely uncommon -- sometimes you need to build a release of your own project but depend on a SNAPSHOT, and can't wait for a formal release of their code, so you release your own internal non-Snapshot version of the code under your own groupId. Or perhaps you have your own modifications to some open source code library and so you literally have a different artifact than what is being delivered by Central. Wayne On 11/9/06, jiangshachina [EMAIL PROTECTED] wrote: Hello, I have an idea, can I install jar files to local repository, and don't use the artifacts at central repository? I just use different groupId, but artifactId and version aren't changed. Namely, before start a project, I install the dependencies firstly. Because I exactly know which jar is my want, then I can set dependencies exactly. a cup of Java, cheers! Sha Jiang jiangshachina wrote: Dear Wayne, I have encountered some of the reasons you gave. But the reason why I release the topic is very simple :D I just think so many jar files are put at WEB-INF/lib would confused somebody. He/She would be puzzled why some many jars were used. And some of the files aren't associate with the project obviously. Additionally, according to the discussion, some files can be excluded surely. It means that the jars are not needed in runtime time(say nothing of compile time). Why the artifacts are at dependency element? I think the setting can be erased from the pom file. Or have other reasons? a cup of Java, cheers! Sha Jiang Wayne Fay wrote: There are numerous reasons for why you might want to exclude some dependencies of dependencies... Here are a few: 1. New version of artifact is available which is not automatically being found and used instead of the old version, resulting in 2 copies of the artifact with different versions attached. 2. GroupID of artifact has changed, resulting in 2 copies of the artifact with different versions attached. 3. An API which might have multiple vendors -- ie Sun API which requires click-wrap licensing and manual install into repo vs CDDL/GNU licensed version of the same API which is freely available in the repo. 4. An artifact that should have been marked optional but was not. 5. An artifact which is provided by your runtime container thus should not be included with your build. I'm sure there are many more reasons to use excludes, but these are a few I've run into myself in the last few months... Wayne On 11/8/06, jiangshachina [EMAIL PROTECTED] wrote: Automatically importing dependencies of dependencies is a great feature. But users have to know the dependency hierarchy, or we cannot exclude the artifacts exactly. And I'm puzzled that why can exclude some dependencies of dependencies? If a jar(artifact) is a dependency of our project's direct dependency, it means that we need it, but exclude it? a cup of Java, cheers! Sha Jiang struberg wrote: there is a syntax to exclude some transitive dependencies from the dependency-list: a small sample: dependency groupIdavalon-framework/groupId artifactIdavalon-framework-api/artifactId version4.3/version exclusions exclusion groupIdavalon-logkit/groupId artifactIdavalon-logkit/artifactId /exclusion /exclusions /dependency I guess this may solve your problems. best regards, strub --- Dmystery [EMAIL PROTECTED] schrieb: This should definitely remove all the unwanted dependencies. Even if they are dependencies of a dependency. I'm doing the same thing to remove all the unwanted files. Can you post your pom.xml? jiangshachina wrote: Hi Dmystery, Thanks for your help. I'm sorry that I cannot success with your instructions. And I also read the guide on maven-war-plugin, especially at
Re: Too many jars added to lib?
I certainly am not using any custom local repo w/custom artifacts etc except in extremely rare cases, and I really don't think anyone else should either just because it will be a management nightmare IMO. Someone else posted some similar questions/problems about a month or so ago -- it seems they had completely missed the boat on Maven automatically downloading and installing dependencies etc and had actually built out their own repo with artifacts under their own groupIds with modified poms etc. And then they started running into some problems... It sounded like hell to me and my suggestion was to throw it all away, RTFM and start over from scratch. But I'm happy to help Sha configure things as their organization requires... even if I think its a bad idea personally. Maven gives you enough rope to hang yourself, if you work hard at it and really want to. Wayne On 11/9/06, Barrett Nuzum [EMAIL PROTECTED] wrote: Sha Wayne: I would propose that a better idea would be that once things have been installed in your local repository, to change your settings.xml to offlinetrue/offline. That way you have limited your local repository to a desired set of artifacts, but still can reconnect up or upgrade without changing all your groupIds, when the time comes. (... for it certainly will.) Barrett Barrett Nuzum Consultant, Skill Development [EMAIL PROTECTED] T: +1 (918) 640 4414 F: +1 (972) 789 1340 Valtech 5080 Spectrum Drive Suite 700 West Addison, Texas 75001 USA T: +1 (972) 789 1200 From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Thu 11/9/2006 2:41 AM To: Maven Users List Subject: Re: Too many jars added to lib? You can certainly do whatever you want to your local repo, including moving artifacts to a new groupId and modifying the pom.xml files to suit your needs. Changing the groupId is not entirely uncommon -- sometimes you need to build a release of your own project but depend on a SNAPSHOT, and can't wait for a formal release of their code, so you release your own internal non-Snapshot version of the code under your own groupId. Or perhaps you have your own modifications to some open source code library and so you literally have a different artifact than what is being delivered by Central. Wayne On 11/9/06, jiangshachina [EMAIL PROTECTED] wrote: Hello, I have an idea, can I install jar files to local repository, and don't use the artifacts at central repository? I just use different groupId, but artifactId and version aren't changed. Namely, before start a project, I install the dependencies firstly. Because I exactly know which jar is my want, then I can set dependencies exactly. a cup of Java, cheers! Sha Jiang jiangshachina wrote: Dear Wayne, I have encountered some of the reasons you gave. But the reason why I release the topic is very simple :D I just think so many jar files are put at WEB-INF/lib would confused somebody. He/She would be puzzled why some many jars were used. And some of the files aren't associate with the project obviously. Additionally, according to the discussion, some files can be excluded surely. It means that the jars are not needed in runtime time(say nothing of compile time). Why the artifacts are at dependency element? I think the setting can be erased from the pom file. Or have other reasons? a cup of Java, cheers! Sha Jiang Wayne Fay wrote: There are numerous reasons for why you might want to exclude some dependencies of dependencies... Here are a few: 1. New version of artifact is available which is not automatically being found and used instead of the old version, resulting in 2 copies of the artifact with different versions attached. 2. GroupID of artifact has changed, resulting in 2 copies of the artifact with different versions attached. 3. An API which might have multiple vendors -- ie Sun API which requires click-wrap licensing and manual install into repo vs CDDL/GNU licensed version of the same API which is freely available in the repo. 4. An artifact that should have been marked optional but was not. 5. An artifact which is provided by your runtime container thus should not be included with your build. I'm sure there are many more reasons to use excludes, but these are a few I've run into myself in the last few months... Wayne On 11/8/06, jiangshachina [EMAIL PROTECTED] wrote: Automatically importing dependencies of dependencies is a great feature. But users have to know the dependency hierarchy, or we cannot exclude the artifacts exactly. And I'm puzzled that why can exclude some dependencies of dependencies? If a jar(artifact) is a dependency of our project's direct dependency, it means that we need it, but exclude it? a cup of Java, cheers! Sha Jiang struberg wrote: there is a syntax to exclude some transitive dependencies from the dependency-list: a small
Re: Let Maven alter a config file
On 11/9/06, Deluigi Marcus [EMAIL PROTECTED] wrote: I have Maven that has a dependency to Tomcat, i.e. retrieves Tomcat if it is not already installed. Unfortunately, I _must_ have some specific settings in the Tomcat configuration file (which is in XML). Is there any plugin that can check the files settings and alter it if necessary? You could keep the config file in your project, and filter the correct values in at build time. (In other words, don't check them, just put in the right values.) Also take a look at Cargo, which may either do what you need, or have some code you can use. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT][ANN] REMINDER: JAVAWUG BOF 23 / Skills Matter Sun London / 15 Sept 2006 @ 18:30 / Open Space Discussion
Hi I would like to formally announce that ``JAVAWUG'' (Java Web User Group) is holding the Twenty Third Birds-of-Feather at the Skills Matter's London Office on Wednesday, 15th Novemeber 2006 from 18:30. +-+--+ | TWO QUESTIONS | Open Space Technology Style Discussion | +-+--+ Concept to follow an open space technology discussion forum. There will be two themes for the night, about forty five minutes approximately for each one. --- Question 1: Okay. What Is the Future of Java Web Development? --- --- Question 2: How Are We Now Going to Architect the New Enterprise? --- ==== For more information go here http://jroller.com/page/javawug?entry=announcement_javawug_bof_23_skills To register go here http://www.skillsmatter.com/javawug Thanks very much -- Peter Pilgrim JUG Leader( JAVAWUG http://jroller.com/page/javawug ) Registration http://developers.sun.com/jugs/display/europe/gbr/london ) ( ( ( ( ( ( )\( ( )\)\))( ' ( )\ ) )_)( )\ )_)( ((_)()\ ))\(()/( ((_)\ _ )\((_)((_)\ _ )\_(())\_)()_ ((_)/(_))_ _ | (_)_\(_) \ / /(_)_\(_) \((_)/ / | | (_)) __| | || |/ _ \ \ V / / _ \ \ \/\/ /| |_| | | (_ | \__//_/ \_\ \_/ /_/ \_\ \_/\_/ \___/ \___| Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Resource filtering using environment variables
On Today at 2:08am, GT=Gareth Tilley [EMAIL PROTECTED] wrote: GT GT Hi All, GT GT Gunther Popp-2 wrote: GT - All (platform-specific) Environment variables (Just add the prefix GT env. For example ${env.M2_HOME} returns the Maven2 installation path). GT GT Has anyone actually been able to get this working? All of the filtering GT works fine for me, but the environment variable stuff does not. As a test I GT have a properties file that contains: GT ${env.JAVA_HOME} GT ${user.home} GT ${pom.version} GT GT After the process-resources phase (with filtering turn on in the pom), the GT file looks like this: GT ${env.JAVA_HOME} GT /home/build GT 1.2-SNAPSHOT GT GT JAVA_HOME is definitely set, is there something I am doing wrong, or does GT this just not work? GT GT Regards GT Gareth GT Hi Gareth, Environment variables tend to be second-class citizens in my experience. See my earlier post about profile activation based on environment variables: http://www.nabble.com/profile-activation-based-on-environment-variables-t2585492s177.html In addition, looking at the source for ResourcesMojo.java http://svn.apache.org/viewvc/maven/plugins/trunk/maven-resources-plugin/src/main/java/org/apache/maven/plugin/resources/ResourcesMojo.java?revision=422969view=markup we see that there is no mention of environment variables during filtering (just system properties and project properties): filterProperties = new Properties(); // System properties filterProperties.putAll( System.getProperties() ); // Project properties filterProperties.putAll( project.getProperties() ); I am not familiar with the maven codebase at all, but I might try my luck with figuring this out (when I get some spare time). Later, -- Haroon Rafique [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Testing Mojos
Hi, does anyone have a good documentation starting point regarding unit testing and integration testing of mojos ? Thanks for your help, Sebastien
RE: Let Maven alter a config file
I have Maven that has a dependency to Tomcat, i.e. retrieves Tomcat if it is not already installed. Unfortunately, I _must_ have some specific settings in the Tomcat configuration file (which is in XML). Is there any plugin that can check the files settings and alter it if necessary? You could keep the config file in your project, and filter the correct values in at build time. (In other words, don't check them, just put in the right values.) The config file should be placed into the downloaded and extracted directory, so I think filtering is not possible. Also take a look at Cargo, which may either do what you need, or have some code you can use. Cargo seems to have the desired functionality, but I couldn't figure out how to use it. The documentation is very limited. Could someone provide an example? Thanks! Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Let Maven alter a config file
You might have a better response to this question on the Cargo users mailing list... Wayne On 11/9/06, Deluigi Marcus [EMAIL PROTECTED] wrote: I have Maven that has a dependency to Tomcat, i.e. retrieves Tomcat if it is not already installed. Unfortunately, I _must_ have some specific settings in the Tomcat configuration file (which is in XML). Is there any plugin that can check the files settings and alter it if necessary? You could keep the config file in your project, and filter the correct values in at build time. (In other words, don't check them, just put in the right values.) The config file should be placed into the downloaded and extracted directory, so I think filtering is not possible. Also take a look at Cargo, which may either do what you need, or have some code you can use. Cargo seems to have the desired functionality, but I couldn't figure out how to use it. The documentation is very limited. Could someone provide an example? Thanks! Marcus - 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: Let Maven alter a config file
On 11/9/06, Deluigi Marcus [EMAIL PROTECTED] wrote: Cargo seems to have the desired functionality, but I couldn't figure out how to use it. The documentation is very limited. Could someone provide an example? I'm not yet sure what you need an example of. :) Please come join us on the Cargo user list, and ask there. http://cargo.codehaus.org/Mailing+Lists -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Testing Mojos
Sebastien: I don't think there is much mature info out there. Unit testing should be easy -- MOJOs are, after all, POJOs, so any unit testing strategy should work very well. If you want to have more in-depth testing, apparently the maven-plugin-testing-harness is designed to facilitate stubbing out and creation of test bases. http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Harness Barrett Barrett Nuzum Consultant, Skill Development [EMAIL PROTECTED] T: +1 (918) 640 4414 F: +1 (972) 789 1340 Valtech 5080 Spectrum Drive Suite 700 West Addison, Texas 75001 USA T: +1 (972) 789 1200 From: Sebastien Brunot [mailto:[EMAIL PROTECTED] Sent: Thu 11/9/2006 10:21 AM To: Maven Users List Subject: Testing Mojos Hi, does anyone have a good documentation starting point regarding unit testing and integration testing of mojos ? Thanks for your help, Sebastien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Resource filtering using environment variables
On Today at 11:20am, HR=Haroon Rafique [EMAIL PROTECTED] wrote: HR [..snip..] HR Something like the following should work (not tested): import org.codehaus.plexus.util.cli.CommandLineUtils; HR filterProperties = new Properties(); HR HR // System properties HR filterProperties.putAll( System.getProperties() ); HR HR // Project properties HR filterProperties.putAll( project.getProperties() ); HR follow the above two calls with: // Environment variables filterProperties.putAll( CommandLineUtils.getSystemEnvVars() ); Anyone willing to give it a try? Later, -- Haroon Rafique [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pulling jars into local repository
The maven dependency plugin is your friend: http://maven.apache.org/plugins/maven-dependency-plugin/resolve-mojo.html You can also use a different goal of the same plugin to copy them directly to the target location. Tom On 11/9/06, Steinar Bang [EMAIL PROTECTED] wrote: I have a script now that picks a lot of OSGi bundles I've built myself from my local maven repository, and drops them into a directory together with the eclipse runtime (as proposed earlier on this list), that is used as the target location for eclipse plug-in development. Now I need to distributes some 3rdparty OSGi bundles, and we have a maven repository in the LAN for speeding up 3rdparty bundles, so dropping the bundles there seems like the simplest way to distribute them. My question is: what can I put in the top level pom.xml of the project that builds our own OSGi bundles, that will pull in these bundles from the company's central repository into developer's local repository. The natural thing would be to just put in a dependency there, but I worry that it might affect the OSGi plugins built here somehow. The OSGi plugin project doesn't really need these bundles. It's the eclipse run-time that needs them. Perhaps a scope of runtime will work...? http://docs.codehaus.org/display/MAVENUSER/Dependency+Scopes Thanx! - 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: Properties/Variables in pom?
Hi! AFAIK, this only works _within_ the POM itself (i.e. in the configuration section of plugins). I don´t know if it works for the file-filtering stuff. CU, Gunther Gareth Tilley schrieb: Hi All, Gunther Popp-2 wrote: - All (platform-specific) Environment variables (Just add the prefix env. For example ${env.M2_HOME} returns the Maven2 installation path). Has anyone actually been able to get this working? All of the filtering works fine for me, but the environment variable stuff does not. As a test I have a properties file that contains: ${env.JAVA_HOME} ${user.home} ${pom.version} After the process-resources phase (with filtering turn on in the pom), the file looks like this: ${env.JAVA_HOME} /home/build 1.2-SNAPSHOT JAVA_HOME is definitely set, is there something I am doing wrong, or does this just not work? Regards Gareth Hi Andreas! Take a look at the Getting Started Guide (http://maven.apache.org/guides/getting-started/index.html), section How do I filter resource files?. It explains how to reference the elements of the pom.xml/settings.xml using property-names. I´m currently working on a book that covers Maven 2 as part of a pragmatic configuration management process and have done some research concerning the usage of properties. AFAIK, properties are resolved in the following order: - The (hard-coded) property ${basedir} (contains the path of the POM-file) - All Java System Properties defined by the JVM. - All properties defined in the properties-element of the POM. - All elements in pom.xml and settings.xml as stated above - All (platform-specific) Environment variables (Just add the prefix env. For example ${env.M2_HOME} returns the Maven2 installation path). I´m not 100% sure about the list and appreciate any additions/corrections. CU, Gunther - 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]
Examples of using Spring with JUnit
I am wondering if anyone has some examples of calling a test Spring resource (test/resources/applicationContext.xml) from JUnit to run when Maven is running my Unit tests... -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson
Re: Examples of using Spring with JUnit
Mick: Take a look at the source for appfuse2 David On 11/9/06, Mick Knutson [EMAIL PROTECTED] wrote: I am wondering if anyone has some examples of calling a test Spring resource (test/resources/applicationContext.xml) from JUnit to run when Maven is running my Unit tests... -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson
Re: Examples of using Spring with JUnit
Mick Knutson [EMAIL PROTECTED] wrote on 11/09/2006 01:11:38 PM: I am wondering if anyone has some examples of calling a test Spring resource (test/resources/applicationContext.xml) from JUnit to run when Maven is running my Unit tests... It's been really straightforward for me. Use AbstractDependencyInjectionSpringContextTests with protected String[] getConfigLocations() { return new String[] {/applicationContext.xml}; // in src/test/resources } -Greg Vaughn [EMAIL PROTECTED] == Confidentiality Notice: The information contained in and transmitted with this communication is strictly confidential, is intended only for the use of the intended recipient, and is the property of Countrywide Financial Corporation or its affiliates and subsidiaries. If you are not the intended recipient, you are hereby notified that any use of the information contained in or transmitted with the communication or dissemination, distribution, or copying of this communication is strictly prohibited by law. If you have received this communication in error, please immediately return this communication to the sender and delete the original message and any copy of it in your possession. ==
Re: Examples of using Spring with JUnit
Which appfuse has the Maven integration? On 11/9/06, David Whitehurst [EMAIL PROTECTED] wrote: Mick: Take a look at the source for appfuse2 David On 11/9/06, Mick Knutson [EMAIL PROTECTED] wrote: I am wondering if anyone has some examples of calling a test Spring resource (test/resources/applicationContext.xml) from JUnit to run when Maven is running my Unit tests... -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson
JSP pre-compilation
I am trying to use jspc-maven-plugin to precompile my JSP pages. The issue is that it creates its own web.xml, which is then to be used by the maven-war-plugin. Here, I have my own web.xml, so how do I pass my own web.xml to jspc-maven-plugin, so that I can use the generated web.xml in the maven-war-plugin? If you do not use this plugin, please let me know how you perform your pre-jsp compilation, so that I could maybe do it like you. Thanks. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
Re: JSP pre-compilation
You basically use your own web.xml, but add a declaration as to where the jspc to add the CFG: ?xml version = '1.0' encoding = 'windows-1252'? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; descriptionThump Radio Online Web Application/description welcome-file-list welcome-file/index.jsp/welcome-file /welcome-file-list !-- Used to pre-compile JSP's -- !-- [INSERT FRAGMENT HERE] -- .. On 11/9/06, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED] wrote: I am trying to use jspc-maven-plugin to precompile my JSP pages. The issue is that it creates its own web.xml, which is then to be used by the maven-war-plugin. Here, I have my own web.xml, so how do I pass my own web.xml to jspc-maven-plugin, so that I can use the generated web.xml in the maven-war-plugin? If you do not use this plugin, please let me know how you perform your pre-jsp compilation, so that I could maybe do it like you. Thanks. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson
Example POM for WebLogic servicegen needed
I need to create a WebService from a session bean using the WebLogic 8.1.4 servicegen ant task. Can anyone provide me a good example of a clean way to accomplish this in the POM? I'm successfully using the weblogic-maven-plugin to run appc, but the plugin does not yet support servicegen. Thanks, Jeff -- View this message in context: http://www.nabble.com/Example-POM-for-WebLogic-servicegen-needed-tf2604105s177.html#a7266146 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
anyone using XDoclet with Maven to generate Mock's with EasyMock?
anyone using XDoclet with Maven to generate Mock's with EasyMock? -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson
[ANN] Proximity RC6 is out!
Hi, Proximity RC6 is out, with a lot of fixes and few new features. There are a lot of bugfix and major refactorings. The indexer is now completely dissected from Proximity bean, which serves the essentials only (repo aggregation and request routing), the Repositories are simplified too (request serving only, caching). They are both Indexer agnostic now. Also, some requested functionalities are implemented like accessing password protected remote repositories See it in action: http://proximity.abstracthorizon.org:12000/px-webapp/ Have fun, ~t~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Assembling files
Anyone ? Maybe some explanations would help: Project layout: src/main/resources/File1: menuen til højre finder du en oversigt over de emner, vi har udgivet ${some.variable} håndbøger indenfor. Klik på emnet og se om der er nogle bøger, som har din interesse. Her kan du også bestille den ønskede publikation. src/main/resources/File2: Dansk Standard vil gerne være din totalleverandør af håndbøger. Vi er derfor også leveringsdygtige i andre danske publikationer og håndbøger, som har relation til standardisering. Blandt andet udvalgte My (dream of) plugin: plugin groupId... artifactId executions execution configuration directorysrc/main/resources/directory outputDirectory${builddir}/classes/outputDirectory /configuration goals goalmerge/goal /goals /execution /executions /plugin Somewhere else: properties some.variable${basedir}/src/main/resources/File1/some.variable /properties Result: target/classes/File1 menuen til højre finder du en oversigt over de emner, vi har udgivet Dansk Standard vil gerne være din totalleverandør af håndbøger. Vi er derfor også leveringsdygtige i andre danske publikationer og håndbøger, som har relation til standardisering. Blandt andet udvalgte håndbøger indenfor. Klik på emnet og se om der er nogle bøger, som har din interesse. Her kan du også bestille den ønskede publikation. thx for help, -- OQube software engineering \ génie logiciel Arnaud Bailly, Dr. \web http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Aggregate site generation
I have a parent POM which has two modules. Module A's sites get deployed to host/A/. Module B's sites get deployed to host/B/. What do I need to do in the parent POM so that I can have these modules show up in the modules section of the parent pom so that they could be accessed? Thanks. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
Plugin Annotation to control Inheritance
Hi Maven mavens. OK -- my turn for a query. I've written a plugin. I do *not* want that plugin to be inherited by children poms. Our design is like this: ParentPom \-- ProjectPom \-- ModulePom (1..n) I want my plugin to be executed by the ProjectPom but not seen by the ModulePoms. I can do this in XML in the POM by specifying inheritedfalse/inherited in ProjectPom. The problem is that we have 20-30 ProjectPoms for different projects and do not want to violate the DRY principle. I *cannot* seem to do so by specifying that in the pluginManagement section in ParentPom. That would be sufficient. Even more frustrating, it seems plugin.xml has an inheritedByDefault item -- I can't seem to put an annotation on the Mojo which is read by Maven which causes this to flip from true to false. @inheritedByDefault false should be enough, I would think! Why every plugin.xml entity doesn't have an associated annotation is beyond me. (I also tried making my own plugin.xml and flip it manually, but that didn't seem to work either - packaging maven-plugin overwrites it.) Can anyone provide any insight? Thanks in advance, Barrett Barrett Nuzum Consultant, Skill Development [EMAIL PROTECTED] T: +1 (918) 640 4414 F: +1 (972) 789 1340 Valtech 5080 Spectrum Drive Suite 700 West Addison, Texas 75001 USA T: +1 (972) 789 1200 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] eclipse:eclipse and checkstyle nature
On 11/9/06, Rolf Strijdhorst [EMAIL PROTECTED] wrote: what do you need the .checkstyle file for. I mean eclipse finds it on its own. as soon as you include de builder and the nature. The .checkstyle file does not exist. It is automatically created when you go into the preference pages and turn on checkstyle. I am attempting to get eclipse:eclipse to automatically turn on checkstyle for me, I can get the natures and builders but the .checkstyle file also needs to be created by the eclipse:eclipse plugin or checkstyle does not work. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Release Rollback
Hi All, Is it at all possible to rollback a release after calling release:perform? Thanks Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Performing tasks before a goal
That might work, but I think what I'd rather do is just create a one TestSuite that does the setup beforehand, then run the tests. I have noticed that maven seems to run the tests based on a naming convention, *Test.java gets run, but *Tests.java don't. Can I override this somehow? I'd like to make it so that only one specific test suite gets called, like AllTests.java, but then none of the other test get called. I suppose I could just call my test suite FullTest.java, and then name all my tests WhateverTests.java, but I'd like to explicitly define it if it is possible. On 11/8/06, Wayne Fay [EMAIL PROTECTED] wrote: Assuming you're using Maven2... Have you looked at the complete list of phases? http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html Sounds to me like you might want to use @process-test-resources. Wayne On 11/7/06, Paul Barry [EMAIL PROTECTED] wrote: Is there a way to perform a task before a goal executes? Specifically what I'm looking to do is load data into my test database before all my tests run. I'm using Spring's AbstractTransactionalDataSourceSpringContextTests, which rolls back all changes after each test, so that I don't have to re-load the data after every test. - 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: Creating MavenProject within plugin
Hi Jonas, There's a MavenProjectStub class available in the maven-plugin-testing-harness if you're interested. But its basically used for plugin testing. I'm not sure if it would be useful for you, but you can take a look at it here: http://svn.apache.org/repos/asf/maven/shared/trunk/maven-plugin-testing-harness Hope this helps! :-) Thanks, Deng Jonas Olsson wrote: Hi! This could be a no-no, but can I create a MavenProject object from a POM (other than the one executed) within my plugin? I've traversed the JavaDocs, but there is no obvious way (all methods require arguments I cannot provide, e.g. ProfileManager). /jonas Detta e-mail har blivit undersökt av http://www.virus112.se - 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: Performing tasks before a goal
On 11/9/06, Paul Barry [EMAIL PROTECTED] wrote: That might work, but I think what I'd rather do is just create a one TestSuite that does the setup beforehand, then run the tests. Are you using JUnit? It sounds like a TestSetup class would be useful here. I have noticed that maven seems to run the tests based on a naming convention, *Test.java gets run, but *Tests.java don't. Can I override this somehow? See: http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#includes The default includes are **/Test*.java **/*Test.java **/*TestCase.java You can override this (and excludes) in the plugin configuration. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Trunk build does not run in either plexus or tomcat
I get the following stack trace when trying to access Archiva for the first time when pulling new code from the trunk. It looks like some sort of configuration I missed. Can someone point me to the file I need to configure? Thanks jvm 1| [INFO] The appserver server has started. jvm 1| 2006-11-09 17:40:00,103 [SocketListener0-1] ERROR ObjectFactory:plexu s - Unable look up com.opensymphony.xwork.interceptor.Interceptor:pssF orceAdminUserInterceptor due to plexus misconfiguration. jvm 1| org.codehaus.plexus.xwork.ComponentCreationException: Unable look up com.opensymphony.xwork.interceptor.Interceptor:pssForceAdminUserIntercep tor due to plexus misconfiguration. jvm 1| at org.codehaus.plexus.xwork.PlexusObjectFactory.lookup(PlexusOb jectFactory.java:399) jvm 1| at org.codehaus.plexus.xwork.PlexusObjectFactory.loadComponentWi thPlexus(PlexusObjectFactory.java:346) jvm 1| at org.codehaus.plexus.xwork.PlexusObjectFactory.lookup(PlexusOb jectFactory.java:326) jvm 1| at org.codehaus.plexus.xwork.PlexusObjectFactory.buildBean(Plexu sObjectFactory.java:170) jvm 1| at org.codehaus.plexus.xwork.PlexusObjectFactory.buildIntercepto r(PlexusObjectFactory.java:99) jvm 1| at com.opensymphony.xwork.config.providers.InterceptorBuilder.co nstructInterceptorReference(InterceptorBuilder.java:48) jvm 1| at com.opensymphony.xwork.config.providers.XmlConfigurationProvi der.lookupInterceptorReference(XmlConfigurationProvider.java:702) jvm 1| at com.opensymphony.xwork.config.providers.XmlConfigurationProvi der.loadInterceptorStack(XmlConfigurationProvider.java:569) jvm 1| at com.opensymphony.xwork.config.providers.XmlConfigurationProvi der.loadInterceptorStacks(XmlConfigurationProvider.java:582) jvm 1| at com.opensymphony.xwork.config.providers.XmlConfigurationProvi der.loadInterceptors(XmlConfigurationProvider.java:603) jvm 1| at com.opensymphony.xwork.config.providers.XmlConfigurationProvi der.addPackage(XmlConfigurationProvider.java:204) jvm 1| at com.opensymphony.xwork.config.providers.XmlConfigurationProvi der.loadConfigurationFile(XmlConfigurationProvider.java:676) jvm 1| at com.opensymphony.xwork.config.providers.XmlConfigurationProvi der.loadConfigurationFile(XmlConfigurationProvider.java:679) jvm 1| at com.opensymphony.xwork.config.providers.XmlConfigurationProvi der.init(XmlConfigurationProvider.java:91) jvm 1| at com.opensymphony.xwork.config.impl.DefaultConfiguration.reloa d(DefaultConfiguration.java:85) jvm 1| at com.opensymphony.xwork.config.ConfigurationManager.getConfigu ration(ConfigurationManager.java:54) jvm 1| at com.opensymphony.xwork.DefaultActionProxy.init(DefaultActio nProxy.java:57) jvm 1| at com.opensymphony.xwork.DefaultActionProxyFactory.createAction Proxy(DefaultActionProxyFactory.java:46) jvm 1| at com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAc tion(DispatcherUtils.java:216) jvm 1| at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter (FilterDispatcher.java:202) jvm 1| at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.d oFilter(WebApplicationHandler.java:821) jvm 1| at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage( PageFilter.java:118) jvm 1| at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(P ageFilter.java:52) jvm 1| at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.d oFilter(WebApplicationHandler.java:821) jvm 1| at com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFi lter(ActionContextCleanUp.java:88) jvm 1| at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.d oFilter(WebApplicationHandler.java:821) jvm 1| at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebA pplicationHandler.java:471) jvm 1| at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandle r.java:568) jvm 1| at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) jvm 1| at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApp licationContext.java:633) jvm 1| at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) jvm 1| at org.mortbay.http.HttpServer.service(HttpServer.java:909) jvm 1| at org.mortbay.http.HttpConnection.service(HttpConnection.java:8 16) jvm 1| at org.mortbay.http.HttpConnection.handleNext(HttpConnection.jav a:982) jvm 1| at org.mortbay.http.HttpConnection.handle(HttpConnection.java:83 3) jvm 1| at org.mortbay.http.SocketListener.handleConnection(SocketListen er.java:244) jvm 1| at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:35 7) jvm 1| at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:53 4) jvm 1| Caused by: org.codehaus.plexus.component.repository.exception.Compone ntLookupException: Unable
Re: Depend on other files?
Hi dan, Thanks, I'll care the plugin. But its examples are very simple, the plugin would take me some time. a cup of Java, cheers! Sha Jiang dan tran wrote: the plugin also allows you to attach arbitrary artifact to maven to be deployed. - On 11/9/06, jiangshachina [EMAIL PROTECTED] wrote: Hi Dan, Thanks for your help. see build-helper-maven-plugin for deployment. I get the plugin at http://mojo.codehaus.org/build-helper-maven-plugin/index.html Unfortunately, I don't understand why the plugin can help me. In my mind, the plugin just add extra source directories to one project. What is the source directory? you can deploy the xml file have other project to use it as dependency Can I deploy xml file? Deploy to where? I don't understand :-( a cup of Java, cheers! Sha Jiang dan tran wrote: you can deploy the xml file have other project to use it as dependency. see build-helper-maven-plugin for deployment. -D On 11/8/06, jiangshachina [EMAIL PROTECTED] wrote: Hi, I have known that a project can depend on artifacts. The artifact can be pom or jar, and ear project can depend on war or ejb. Now, how about other files(e.g. xml)? Assumely, I have two Web application projects, the one wants to use some configuration files of the other one. How can I achieve the goal? Do I have to copy the files? Thanks! a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Depend-on-other-files--tf2600211s177.html#a7253822 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Depend-on-other-files--tf2600211s177.html#a7255352 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Depend-on-other-files--tf2600211s177.html#a7269825 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Regular Plugin parameters are not working
I have a short pom.xml. project artifactIda/artifactId groupIdagroupId version1.0/version build plugins plugin artifactIdb/artifactId groupIdb/groupId version2.0/version ... configuration my_artifact_id${project.artifactId}/my_artifact_id my_group_id${project.groupId}/my_group_id /configuration ... /plugin /plugins /build /project For some reason, the variables my_artifact_id and my_group_id are getting resolved by the plugin b-b-2.0 as null, so they are not being resolved correctly according to the configured values. I cannot see why what I am doing is wrong. May someone please tell me what is happening? Thanks. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
Re: Too many jars added to lib?
Dear friends, I really don't want to miss the boat on Maven. If cut the connection between Maven and my local repository, I'll miss some benefits provided by Maven. For example, I want to use Apache commons-configuration as dependency. [1]I just re-install all jars simply, and don't enhance theire pom files. Then I have to set commons-lang, commons-collections ... as dependencies manually. But with Maven central repository, I just need set commons-configuration as dependency, Maven would reference to other related artifacts automatically, since the pom of commons-configuration indicates the relation. [2]I re-install all jars, and enhance thiere pom files. The poms exactly set dependency relation. Of course, then I can use this commons-configuration as the same as that in Maven central repository. But it's duplicate work, which isn't my want. Undoubtedly, Maven central repository is crucial. My question just be why so many unessential artifacts are added to pom? May there are some reasons I don't know. Thanks! a cup of Java, cheers! Sha Jiang Wayne Fay wrote: I certainly am not using any custom local repo w/custom artifacts etc except in extremely rare cases, and I really don't think anyone else should either just because it will be a management nightmare IMO. Someone else posted some similar questions/problems about a month or so ago -- it seems they had completely missed the boat on Maven automatically downloading and installing dependencies etc and had actually built out their own repo with artifacts under their own groupIds with modified poms etc. And then they started running into some problems... It sounded like hell to me and my suggestion was to throw it all away, RTFM and start over from scratch. But I'm happy to help Sha configure things as their organization requires... even if I think its a bad idea personally. Maven gives you enough rope to hang yourself, if you work hard at it and really want to. Wayne On 11/9/06, Barrett Nuzum [EMAIL PROTECTED] wrote: Sha Wayne: I would propose that a better idea would be that once things have been installed in your local repository, to change your settings.xml to offlinetrue/offline. That way you have limited your local repository to a desired set of artifacts, but still can reconnect up or upgrade without changing all your groupIds, when the time comes. (... for it certainly will.) Barrett Barrett Nuzum Consultant, Skill Development [EMAIL PROTECTED] T: +1 (918) 640 4414 F: +1 (972) 789 1340 Valtech 5080 Spectrum Drive Suite 700 West Addison, Texas 75001 USA T: +1 (972) 789 1200 From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Thu 11/9/2006 2:41 AM To: Maven Users List Subject: Re: Too many jars added to lib? You can certainly do whatever you want to your local repo, including moving artifacts to a new groupId and modifying the pom.xml files to suit your needs. Changing the groupId is not entirely uncommon -- sometimes you need to build a release of your own project but depend on a SNAPSHOT, and can't wait for a formal release of their code, so you release your own internal non-Snapshot version of the code under your own groupId. Or perhaps you have your own modifications to some open source code library and so you literally have a different artifact than what is being delivered by Central. Wayne On 11/9/06, jiangshachina [EMAIL PROTECTED] wrote: Hello, I have an idea, can I install jar files to local repository, and don't use the artifacts at central repository? I just use different groupId, but artifactId and version aren't changed. Namely, before start a project, I install the dependencies firstly. Because I exactly know which jar is my want, then I can set dependencies exactly. a cup of Java, cheers! Sha Jiang jiangshachina wrote: Dear Wayne, I have encountered some of the reasons you gave. But the reason why I release the topic is very simple :D I just think so many jar files are put at WEB-INF/lib would confused somebody. He/She would be puzzled why some many jars were used. And some of the files aren't associate with the project obviously. Additionally, according to the discussion, some files can be excluded surely. It means that the jars are not needed in runtime time(say nothing of compile time). Why the artifacts are at dependency element? I think the setting can be erased from the pom file. Or have other reasons? a cup of Java, cheers! Sha Jiang Wayne Fay wrote: There are numerous reasons for why you might want to exclude some dependencies of dependencies... Here are a few: 1. New version of artifact is available which is not automatically being found and used instead of the old version, resulting in 2 copies of the artifact with different versions attached. 2. GroupID of artifact has changed, resulting in 2
Re: Too many jars added to lib?
On 11/9/06, jiangshachina [EMAIL PROTECTED] wrote: Undoubtedly, Maven central repository is crucial. My question just be why so many unessential artifacts are added to pom? May there are some reasons I don't know. The usual case is that the project in question is not using Maven, so the developers don't realize what happens when they leave all of their dependencies in the default (compile) scope. If you can identify the pom that's causing the problem, it's usually possible to work with the developers of that project to correct it for the next release. To correct the problem you're having now, I suggest correcting the poms in your internal corporate repository. (IMO, proxying the central repo internally is a good idea for several reasons, including including gaining control of the artifacts you're using and reducing traffic at the central repo.) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Depend on other files?
Perhaps you can contribute your more complex configuration(s) back for inclusion in future documentation efforts, once you have figured it out and completed your project with the configuration you are looking for etc? Wayne On 11/9/06, jiangshachina [EMAIL PROTECTED] wrote: Hi dan, Thanks, I'll care the plugin. But its examples are very simple, the plugin would take me some time. a cup of Java, cheers! Sha Jiang dan tran wrote: the plugin also allows you to attach arbitrary artifact to maven to be deployed. - On 11/9/06, jiangshachina [EMAIL PROTECTED] wrote: Hi Dan, Thanks for your help. see build-helper-maven-plugin for deployment. I get the plugin at http://mojo.codehaus.org/build-helper-maven-plugin/index.html Unfortunately, I don't understand why the plugin can help me. In my mind, the plugin just add extra source directories to one project. What is the source directory? you can deploy the xml file have other project to use it as dependency Can I deploy xml file? Deploy to where? I don't understand :-( a cup of Java, cheers! Sha Jiang dan tran wrote: you can deploy the xml file have other project to use it as dependency. see build-helper-maven-plugin for deployment. -D On 11/8/06, jiangshachina [EMAIL PROTECTED] wrote: Hi, I have known that a project can depend on artifacts. The artifact can be pom or jar, and ear project can depend on war or ejb. Now, how about other files(e.g. xml)? Assumely, I have two Web application projects, the one wants to use some configuration files of the other one. How can I achieve the goal? Do I have to copy the files? Thanks! a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Depend-on-other-files--tf2600211s177.html#a7253822 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Depend-on-other-files--tf2600211s177.html#a7255352 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Depend-on-other-files--tf2600211s177.html#a7269825 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]