Re: omitting -tests.jar for pom modules
Hi Wayne, thx for your answer. But i believe that your approach does not work in my case: as mentioned i have some general projects (that have no sources/test sources) while others do have test sources. if i would use this two-base parents approach, lets say... - maven-base (does not use the jar plugin) - maven-base-with-tests (would use the jar plugin to build a -tests.jar) ... i could use them both for single-module projects. but then if i would have a multi-module project: - sandbox (derived from maven-base, since it is has no tests, and is of packaging type pom) = sandbox-core (is derived from sandbox, since it is the natural parent) = sandbox-service (is derived from sandbox, since it is the natural parent) ... i could not really inherit from maven-base-with-jar (in multi-module projects), because i want my pluginManagement and dependencyManagement sections to be derived from my parent (e.g. sandbox) But what i can do, is overwrite the config for the plugin in each module individually, thus overwritting the pluginManagement in the maven-base. Still looking for an automated way, or some kind of conditional configuration. br R.C. -- View this message in context: http://maven.40175.n5.nabble.com/omitting-tests-jar-for-pom-modules-tp4935461p4943180.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
omitting -tests.jar for pom modules
Hi, my current configuration of the maven-jar-plugin in my base-pom automatically generates a -tests.jar file in the target folder (that is exactly what i want, for most of my projects). plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version${jar.plugin.version}/version executions execution goals goaltest-jar/goal /goals /execution /executions /plugin It is also deployed to the remote repository as desired. All my projects are derived from this parent-pom. The only problem is, that with this config the -tests.jar will ALWAYS be generated, even if there are no test sources available. (It just contains the META-INF folder with the MANIFEST.MF plus the pom.xml and the pom.properties.) Can i configure it anyhow, to automatically detect that the project has a packagingpom/packaging and thus has no tests at all, or to take a look into the test/sources/ folder and find out it is not available or the folder is empty? In fact, i would like to skip the generation of the -tests.jar for those general projects: - maven-base (our base project) - maven-archetype (our companies general archetype) - maven-site-skin (our company site skin) and as well for multi-module parents - sandbox (itself is a pom, with some sub-modules) The only thing that comes to my mind right now, is that i could define a property (in every project/module) that would for e.g. set the goal jar.plugin.goalnone/jar.plugin.goal or jar.plugin.goaltest-jar/jar.plugin.goal. But then i need to set this property in every module of all my projects. I just wonder if there is any better solution, with some automated way. Thanks for help in advance! br R.C. -- View this message in context: http://maven.40175.n5.nabble.com/omitting-tests-jar-for-pom-modules-tp4935461p4935461.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
where to put common dependecies in multi-module project
Hi, i'm wondering where to put my common dependenies in my multimodule project. Let's say, we have a project called sandbox, with three submodules. - sandbox-core - sandbox-service - sandbox-web Existing dependencies: - sandbox-service has a dependency to sandbox-core - sandbox-web has a dependency to sandbox-service So practically, all dependencies of sandbox-core, will be transitive dependencies for the other modules. Let's say i want to use slf4j as logging framework, which should probable be used in all modules and all of them should also use the same version. I see different approaches on this: - i could add the dependencies to the parent pom (sandbox) - i could also only define a property for the version, e.g. ${slf4j.dependency.version} in the parent pom (sandbox) and actually add the dependency on core level (sandbox-core) - i could also simply add the dependency (plus version) to the core level (sandbox-core) I already had some problems, when not building the whole project (on sandbox) level, that not all dependencies have been resolved in my leave module (sandbox-web). So i assume when putting the dependencies in the sandbox-core, one will always have to build the whole project in order to have a working sandbox-web module, while when putting them into the parent directly, the dependencies would be retrieved by maven correctly anyway, since the parent-poms are always taken intoconsideration, even when only the sandbox-web is built. So, what would be the best-practice on that? What exact differences would be there between direct dependencies and transitive dependencies? Where should i put those common dependencies? br R.C. -- View this message in context: http://maven.40175.n5.nabble.com/where-to-put-common-dependecies-in-multi-module-project-tp4931654p4931654.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: where to put common dependecies in multi-module project
Hi Martin, thanks for your hint to the pluginManagement section. But actually, that is not exaclty what i want. Since i do not want to repeat defining each common dependency separately for each sub-module. This approach would be ideal, if i want to use this dependency in many sub-modules (but not all), so i could skip the definition in those sub-modules, where i do not need it. If a want to have a new common dependecy which shall be used for all sub-modules, i could simply add this dependency to the parent-pom, right? Why would i rather put in it each module individually, what would be the benefits? And why not put it into the core module (e.g. sandbox-core) , since all other sub-modules would use the core anyway? br R.C. -- View this message in context: http://maven.40175.n5.nabble.com/where-to-put-common-dependecies-in-multi-module-project-tp4931654p4931809.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: where to put common dependecies in multi-module project
Hi Jan, i get it now, declaring the dependencies in the parent-pom (or directly in each module's pom, where it will be used) leads to a proper binding of the library to the modules, and everybody who changes this dependency, should then be aware of the influences on the code. While using transitive dependencies seem to be more or less hidden to those developers only using e.g. the web module. I also see the disadvantages (of the parent-pom approach) when you need to create some assembled artifacts. thanks for your help on this. br R.C. -- View this message in context: http://maven.40175.n5.nabble.com/where-to-put-common-dependecies-in-multi-module-project-tp4931654p4932859.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Error during release:perform with multi-module git project on Windows
Hi, we currently experience the same problem. running mvn release:prepare (on a Windows 7 machine from a cygwin console) in a module-project fails with the following error: [INFO] Executing: cmd.exe /X /C git add -- pom.xml C:\DATA\Workspace\sandbox\sandbox-module1\pom.xml C:\DATA\Workspace\sandbox\sandbox-module2\pom.xml C:\DATA\Workspace\sandbox\sandbox-module2\sandbox-module2-submodule1\pom.xml [INFO] Working directory: c:\DATA\Workspace\sandbox [INFO] [INFO] Reactor Summary: [INFO] [INFO] Smart Engine - Sandbox FAILURE [0.547s] [INFO] Smart Engine - Sandbox - First Module . SKIPPED [INFO] Smart Engine - Sandbox - Second Module SKIPPED [INFO] Smart Engine - Sandbox - Second Module's First Submodule SKIPPED [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 1.221s [INFO] Finished at: Thu Oct 20 11:00:00 CEST 2011 [INFO] Final Memory: 22M/981M [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.2.1:rollback (default-cli) on project sandbox: Unable to commit files [ERROR] Provider message: [ERROR] The git-add command failed. [ERROR] Command output: [ERROR] fatal: 'C:\DATA\Workspace\sandbox\sandbox-module1\pom.xml' is outside repository We are using the latest release version of the maven-release-plugin: properties release.plugin.version2.2.1/release.plugin.version /properties plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-release-plugin/artifactId version${release.plugin.version}/version /plugin And yes, the parent project is a git repository: myusername@mymachine /c/DATA/Workspace/sandbox (release/1.0) $ git status # On branch release/1.0 nothing to commit (working directory clean) Are there any workarounds or any solutions yet? br R.C. -- View this message in context: http://maven.40175.n5.nabble.com/Error-during-release-perform-with-multi-module-git-project-on-Windows-tp4610985p4920884.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Error during release:perform with multi-module git project on Windows
Hi James, thx for your hint. when running the maven command (mvn release:prepare release:perform) in a cmd.exe (rather than in a cygwin/GitBash) it works for me. br Roman -- View this message in context: http://maven.40175.n5.nabble.com/Error-during-release-perform-with-multi-module-git-project-on-Windows-tp4610985p4921875.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: correct section for plugins-definitons
Hi Dennis, thx for the poiner to the JIRA issue. br Roman -- View this message in context: http://maven.40175.n5.nabble.com/correct-section-for-plugins-definitons-tp4849832p4852030.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
correct section for plugins-definitons
Hi everybody, I'm currently reworking my master pom to use the pluginManagement section as proposed. For me it is still unclear which parts of a plugin-definition need to be placed in which section? (pluginManagment, plugins, reporting) As i would interpret, the default config for a plugin should be placed into the pluginManagement section, for example with the maven-javadoc-plugin: 1. i would place this under pluginManagement: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId version${javadoc.plugin.version}/version configuration source${java.source.version}/source /configuration executions execution phasedeploy/phase goals goaljar/goal /goals /execution /executions /plugin in order to automatically create a -javadoc.jar everytime the deploy phase is executed. 2. in the plugins section, i would only place this: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId /plugin to enable the javadoc plugin for my project (the version and configuration would be taken from the section above). 3. also in the reporting section, i would place: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId configuration source${java.source.version}/source minmemory128m/minmemory maxmemory512m/maxmemory quiettrue/quiet /configuration /plugin for the site generation. Is this right? I also wonder, if those plugins only needed for the site generation, should be configured in the pluginManagement section as well? for example: the maven-jxr-plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jxr-plugin/artifactId version${jxr.plugin.version}/version configuration linkJavadoctrue/linkJavadoc /configuration /plugin i would appreciate any help, or a link to the corresponding maven documentation, since everything i could find was not that helpful. br Roman -- View this message in context: http://maven.40175.n5.nabble.com/correct-section-for-plugins-definitons-tp4849832p4849832.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[M2] best-practice to retrieve the version of a webapp?
Hi, Some days ago i had some problems with a webapp of mine, deployed at a test-server. The reason was a wrong version (properties for localhost). Now i wonder if there exists any plugin that generates some kind of version info, that can be retrieved from a running webapp (or at least the webapp should log this information to the logger). What i exactly have in mind, would be... - artifactId-version-buildnumber (eg: SVN Revision) - it would be also nice, if the name (respectively id) of the maven profile would be added as well, since i use multiple profiles to include the corresponding properties, using... profile idlocalhost/id build resources resource directorysrc/main/resources.localhost/directory /resource /resources /build /profile profile idlive-server/id build resources resource directorysrc/main/resources.live/directory /resource /resources /build /profile profile idtest-server/id build resources resource directorysrc/main/resources.test/directory /resource /resources /build /profile My approach would be to write a plugin, that reads out this information (at build-time) and generate a buildinfo.properties (buildinfo.txt) file that is put into the classpath (e.g.: .WAR file), and can than be read out through a small service that can be integrated into a webapp (or CLI as well). any hints, thoughts, ideas are very welcome. best regards R.C. -- View this message in context: http://www.nabble.com/-M2--best-practice-to-retrieve-the-version-of-a-webapp--tp18087164p18087164.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: [M2] best-practice to retrieve the version of a webapp?
Hi Christian, thanks for the description of your approach, this sounds very nice to me, and i will try it out soon. best regards R.C. christian domsch (innoWake gmbh) wrote: Hi R.C., This is more or less the same we do in our project. I use the buildnumber-plugin to generate a buildnumber and write this information inside the generated MANIFEST.MF on each jar building process (jar, war, ear). Then I use the war overlay mechanism to join my project war with a util-war that just adds a library.jsp page, that iterates over all METAINF.MF files in the classpath and looks for that property and writes it to a page. Greetings, Christian. -- christian domsch [software developer] innoWake gmbh innovative.software.development(); graf-arco-strasse 18 | 89079 ulm-donautal fon: +49 (0)7 31 - 5 50 27 - 0 fax: +49 (0)7 31 - 5 50 27 - 20 [EMAIL PROTECTED] www.innowake.de innoWake gmbh hrb ulm 4584 geschäftsführer: thorsten bernecker This e-mail may contain confidential information. If you are not the intended recipient please notify the sender immediately and destroy this e-mail. -Ursprüngliche Nachricht- Von: CodingPlayer [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 24. Juni 2008 11:20 An: users@maven.apache.org Betreff: [M2] best-practice to retrieve the version of a webapp? Hi, Some days ago i had some problems with a webapp of mine, deployed at a test-server. The reason was a wrong version (properties for localhost). Now i wonder if there exists any plugin that generates some kind of version info, that can be retrieved from a running webapp (or at least the webapp should log this information to the logger). What i exactly have in mind, would be... - artifactId-version-buildnumber (eg: SVN Revision) - it would be also nice, if the name (respectively id) of the maven profile would be added as well, since i use multiple profiles to include the corresponding properties, using... profile idlocalhost/id build resources resource directorysrc/main/resources.localhost/directory /resource /resources /build /profile profile idlive-server/id build resources resource directorysrc/main/resources.live/directory /resource /resources /build /profile profile idtest-server/id build resources resource directorysrc/main/resources.test/directory /resource /resources /build /profile My approach would be to write a plugin, that reads out this information (at build-time) and generate a buildinfo.properties (buildinfo.txt) file that is put into the classpath (e.g.: .WAR file), and can than be read out through a small service that can be integrated into a webapp (or CLI as well). any hints, thoughts, ideas are very welcome. best regards R.C. -- View this message in context: http://www.nabble.com/-M2--best-practice-to-retrieve-the-version-of-a-webapp--tp18087164p18087164.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-M2--best-practice-to-retrieve-the-version-of-a-webapp--tp18087164p18089825.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] directory layout: where to store example data?
Hi, i just looked up the maven standard directory layout: http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html trying to find out where to store example data, but i could not find anything about it. in detail, i have data examples (of .csv files) which i would like to store in the projects folder, but they are not needed at runtime. These are just examples for a better understanding. so where should i store these files: - /examples/data/.csv files - /src/examples/data/.csv files - /data/.csv files would it make any difference at all or does maven ignore all non-maven structured directories? thx in advance R.C. -- View this message in context: http://www.nabble.com/-M2--directory-layout%3A-where-to-store-example-data--tp15502114s177p15502114.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] multiple source directories for -sources.jar?
Hi, i currently try to bundle all my sources together with generated sources from the jaxws-maven-plugin (for the use of webservices). my own sources are in the default directory: src/main/java/ and the jaxws-maven.plugin is configured to store the generated sources into the following directory: target/jaxws/wsgen/java how can i configure the maven-sources-plugin to put all sources from both locations into the -sources.jar file? as far as i found out, neither the maven sourcesDirectory nor the maven-sources-plugins can deal with multiple source directories. http://maven.apache.org/ref/2.0.7/maven-model/maven.html#class_build http://maven.apache.org/plugins/maven-source-plugin/index.html appreciating any ideas thx R.C. -- View this message in context: http://www.nabble.com/-M2--multiple-source-directories-for--sources.jar--tf4957408s177.html#a14196924 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] multiple source directories for -sources.jar?
this works great, simple added: plugin groupIdorg.codehaus.mojo/groupId artifactIdbuild-helper-maven-plugin/artifactId version1.0/version executions execution idadd-source/id phasegenerate-sources/phase goals goaladd-source/goal /goals configuration sources sourcetarget/jaxws/wsgen/java/source /sources /configuration /execution /executions /plugin nothing else. thx 4 help R.C. Mick Knutson-4 wrote: plugin groupIdorg.codehaus.mojo/groupId artifactIdbuild-helper-maven-plugin/artifactId executions execution idadd-source/id phasegenerate-sources/phase goals goaladd-source/goal /goals configuration sources source${basedir}/src/main/generated-sources/source source${basedir}/src/main/java/source /sources artifacts artifact file*/file typejava/type classifierrequired/classifier /artifact artifact file${basedir}/src/main/generated-sources//file typexml/type classifierrequired/classifier /artifact /artifacts /configuration /execution /executions /plugin On Dec 6, 2007 9:22 AM, CodingPlayer [EMAIL PROTECTED] wrote: Hi, i currently try to bundle all my sources together with generated sources from the jaxws-maven-plugin (for the use of webservices). my own sources are in the default directory: src/main/java/ and the jaxws-maven.plugin is configured to store the generated sources into the following directory: target/jaxws/wsgen/java how can i configure the maven-sources-plugin to put all sources from both locations into the -sources.jar file? as far as i found out, neither the maven sourcesDirectory nor the maven-sources-plugins can deal with multiple source directories. http://maven.apache.org/ref/2.0.7/maven-model/maven.html#class_build http://maven.apache.org/plugins/maven-source-plugin/index.html appreciating any ideas thx R.C. -- View this message in context: http://www.nabble.com/-M2--multiple-source-directories-for--sources.jar--tf4957408s177.html#a14196924 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com --- -- View this message in context: http://www.nabble.com/-M2--multiple-source-directories-for--sources.jar--tf4957408s177.html#a14197494 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] maven-dependency-plugin vs. dependency-maven-plugin
hi, does anyone know which of these plugins is still maintained? (meaning what plugin should i use, and which is the current version?) http://mirrors.ibiblio.org/pub/mirrors/maven2/maven/maven-dependency-plugin/ http://mirrors.ibiblio.org/pub/mirrors/maven2/org/codehaus/mojo/dependency-maven-plugin/ since both of them seem to be quite old, i wonder if there is a newer release version somewhere? thx 4 help R.C. -- View this message in context: http://www.nabble.com/-M2--maven-dependency-plugin-vs.-dependency-maven-plugin-tf4842466s177.html#a13854145 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] repositories (central, codehaus, java.net)
Hi, i currently reorganize my repositories within my artifactory installation (artifact cache). and i wonder which of these repositories is correct: * central o http://www.ibiblio.org/pub/packages/maven2/ o http://www.ibiblio.org/maven2 o http://repo1.maven.org/maven2 (mirror of ibiblio) o http://mirrors.ibiblio.org/pub/mirrors/maven2 * codehaus o release + http://dist.codehaus.org + http://repository.codehaus.org o snapshot + http://snapshots.repository.codehaus.org * java.net o maven1 (still some artifacts are found in the old legacy repo) + https://maven-repository.dev.java.net/repository/ x http mirror: http://download.java.net/maven/1 o maven2 + http://download.java.net/maven/2 it would be nice if someone could tell me which of these repositories are kept up-to-date and which of them are old URLs/domains. (or mirrors of others). do i miss some (important) repositories (not listed above)? thx 4 help R.C. -- View this message in context: http://www.nabble.com/-M2--repositories-%28central%2C-codehaus%2C-java.net%29-tf4842621s177.html#a13854510 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] jaxws-maven-plugin vs. ant-task using wsgen
hi dan, thx for your help. i already figured out, that there are several problems (broken poms): - the jaxws-api-2.1.pom at the the central repo is broken. http://repo1.maven.org/maven2/javax/xml/ws/jaxws-api/2.1/jaxws-api-2.1.pom there are three dependencies missing (saaj-api, jsr250-api, jsr181-api) - the jaxws-api-2.1-1.pom is also broken!!! http://repo1.maven.org/maven2/javax/xml/ws/jaxws-api/2.1-1/jaxws-api-2.1-1.pom it points to groupIdjavax.jws/groupId artifactIdjsr181/artifactId version1.0/version which doesn't exist, should be groupIdjavax.jws/groupId artifactIdjsr181-api/artifactId version1.0-MR1/version - there exists a working pom for the jaxws-api (at java.net dev repo) https://maven-repository.dev.java.net/repository/javax.xml.ws/poms/jaxws-api-2.1.pom it seems that this new version was uploaded the last night, before it was broken as well. my problem is now, that i need the central repo (to retrieve other artifacts), and don't know how to tell maven, to skip downloading the jaxws-api-2.1 from central, and download it from java-net dev repo instead. my next approach is to download it manually and deploy it to my artifact cache (artifactory). but if there is another solution, to tell maven explicitly from where to download missing artifacts pls let me know. regards R.C. Dan Tran wrote: jaxws-api 2.2-1 is at http://repo1.maven.org/maven2/javax/xml/ws/jaxws-api/2.1-1/ the plugin is at http://download.java.net/maven/2 The rest of required artifacts are at the java.net maven.1 legacy repo http://download.java.net/maven/1 So you need 2 maven2 repos and 1 maven repo to get it to work :-) -D On Nov 15, 2007 2:14 AM, CodingPlayer [EMAIL PROTECTED] wrote: hi wayne, thx for your hint. just posted the thread at the users forum. but since i couldn't find any users forum / mailing list (at java.net) https://jax-ws-commons.dev.java.net/jaxws-maven-plugin/mail-lists.html i decided to post it to the (old) codehaus mailinglist. http://mojo.codehaus.org/jaxws-maven-plugin/mail-lists.html best regards R.C. Wayne Fay wrote: You should probably also post this request on the jaxws plugin users/dev list. Since there is a lower chance that someone here is using jaxws and will respond, but a very high chance that someone on that list is using jaxws. Wayne On 11/14/07, CodingPlayer [EMAIL PROTECTED] wrote: Hi There, I'm an absolute noob to webservices, who is currently trying to compile a webservice annotated class, with the actual jaxws-maven-plugin. i already lost 3 days, and still didn't find a way to get it running properly. to find the error i stepped back, and simply tried to get the wsgen example running: https://jax-ws-commons.dev.java.net/source/browse/*checkout*/jax-ws-commons/trunk/jaxws-maven-plugin/src/it/wsgen/pom.xml?content-type=text%2Fplainrev=110 after removing the version (which points to a SNAPSHOT which can't be downloaded) i have the following pom.xml: ?xml version=1.0 encoding=UTF-8 ? 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 groupIdorg.codehaus.mojo.jaxws.it/groupId artifactIdhelloworldws/artifactId version1.0-SNAPSHOT/version packagingwar/packaging namehelloworld/name dependencies dependency groupIdcom.sun.xml.ws/groupId artifactIdjaxws-rt/artifactId version2.1/version /dependency /dependencies !-- temporary only until java.net maven2 repo is ready-- repositories repository idjava.net/id urlhttps://maven-repository.dev.java.net/nonav/repository//url layoutlegacy/layout /repository /repositories build finalName${artifactId}/finalName plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration executions execution idcompile/id goals goalcompile/goal /goals phaseinitialize/phase /execution /executions /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdjaxws-maven-plugin/artifactId executions execution goals goalwsgen/goal /goals phasegenerate-sources/phase configuration seiorg.codehaus.mojo.jaxws.it.HelloWorldImpl/sei genWsdltrue/genWsdl !-- for demo purpose only, the wepapp does not need those the generated wsdl
Re: [M2] jaxws-maven-plugin vs. ant-task using wsgen
i finally did it. added a cache for the java-net dev repo to my artifactory settings and exluded javax/xml/ws/** for the two central repos (repo1 and ibiblio). maven now always retrieves the correct (working) jaxws-api-2.1.pom from the java-net dev repo. here is my FULL (working) pom.xml: ?xml version=1.0 encoding=UTF-8 ? 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; !-- this parent project is needed in order to use my artifact cache (artifactory), didn't find any solution without a cache yet -- parent artifactIdsat-base-project/artifactId groupIdat.researchstudio.sat/groupId version1.2/version /parent modelVersion4.0.0/modelVersion groupIdorg.codehaus.mojo.jaxws.it/groupId artifactIdhelloworldws/artifactId version1.0-SNAPSHOT/version packagingwar/packaging namehelloworld/name dependencies dependency groupIdjavax.xml.ws/groupId artifactIdjaxws-api/artifactId version2.1/version /dependency /dependencies build finalName${artifactId}/finalName plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration executions execution idcompile/id goals goalcompile/goal /goals phaseinitialize/phase /execution /executions /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdjaxws-maven-plugin/artifactId version1.7/version executions execution goals goalwsgen/goal /goals configuration seiorg.codehaus.mojo.jaxws.it.HelloWorldImpl/sei genWsdltrue/genWsdl verbosetrue/verbose /configuration /execution /executions /plugin plugin groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty-plugin/artifactId version6.0.1/version configuration scanIntervalSeconds10/scanIntervalSeconds contextPath//contextPath !--jettyEnvXml${basedir}/src/jetty-env.xml/jettyEnvXml-- connectors connector implementation=org.mortbay.jetty.nio.SelectChannelConnector port9090/port maxIdleTime6/maxIdleTime /connector /connectors /configuration /plugin /plugins /build repositories !-- needed to retrieve a working jaxws-api-2.1.pom -- repository idjava.net - Dev/id urlhttps://maven-repository.dev.java.net/repository/url layoutlegacy/layout /repository !-- needed for the jaxws-maven-plugin -- repository idjava.net - Maven2/id urlhttp://download.java.net/maven/2/url layoutlegacy/layout /repository /repositories /project thx again to all those who helped me to get this running. best regards R.C. CodingPlayer wrote: hi dan, thx for your help. i already figured out, that there are several problems (broken poms): - the jaxws-api-2.1.pom at the the central repo is broken. http://repo1.maven.org/maven2/javax/xml/ws/jaxws-api/2.1/jaxws-api-2.1.pom there are three dependencies missing (saaj-api, jsr250-api, jsr181-api) - the jaxws-api-2.1-1.pom is also broken!!! http://repo1.maven.org/maven2/javax/xml/ws/jaxws-api/2.1-1/jaxws-api-2.1-1.pom it points to groupIdjavax.jws/groupId artifactIdjsr181/artifactId version1.0/version which doesn't exist, should be groupIdjavax.jws/groupId artifactIdjsr181-api/artifactId version1.0-MR1/version - there exists a working pom for the jaxws-api (at java.net dev repo) https://maven-repository.dev.java.net/repository/javax.xml.ws/poms/jaxws-api-2.1.pom it seems that this new version was uploaded the last night, before it was broken as well. my problem is now, that i need the central repo (to retrieve other artifacts), and don't know how to tell maven, to skip downloading the jaxws-api-2.1 from central, and download it from java-net dev repo instead. my next approach is to download it manually and deploy it to my artifact cache (artifactory). but if there is another solution, to tell maven explicitly from where to download missing artifacts pls let me know. regards R.C. Dan Tran wrote: jaxws-api 2.2-1 is at http://repo1.maven.org/maven2/javax/xml/ws/jaxws-api/2.1-1/ the plugin is at http://download.java.net
Re: [M2] jaxws-maven-plugin vs. ant-task using wsgen
hi dan, thx for your reply. i currently use version 1.7. but i'm not sure if i have the correct repository: this one is from the jaxws example: repository idjava.net/id urlhttps://maven-repository.dev.java.net/nonav/repository//url layoutlegacy/layout /repository but i only found actual versions here, but they couldn't be resolved from there http://download.java.net/maven/2 maybe you have the correct url for the java.net repo for me? according jaxws-api-2.1.1, i added this dependency: dependency groupIdjavax.xml.ws/groupId artifactIdjaxws-api/artifactId version2.1.1/version /dependency but couldn't find the release version 2.1.1 anywhere. (only release version i could find was version 2.1) adding jaxws-api 2.1 as dependency didn't help either, still getting the same error. thx 4 help R.C. Dan Tran wrote: what version of jaxws-plugin do you use? Try the released version at java.net also, you must use jaxws-api-2.1.1 -D On Nov 14, 2007 7:44 AM, Wayne Fay [EMAIL PROTECTED] wrote: You should probably also post this request on the jaxws plugin users/dev list. Since there is a lower chance that someone here is using jaxws and will respond, but a very high chance that someone on that list is using jaxws. Wayne On 11/14/07, CodingPlayer [EMAIL PROTECTED] wrote: Hi There, I'm an absolute noob to webservices, who is currently trying to compile a webservice annotated class, with the actual jaxws-maven-plugin. i already lost 3 days, and still didn't find a way to get it running properly. to find the error i stepped back, and simply tried to get the wsgen example running: https://jax-ws-commons.dev.java.net/source/browse/*checkout*/jax-ws-commons/trunk/jaxws-maven-plugin/src/it/wsgen/pom.xml?content-type=text%2Fplainrev=110 after removing the version (which points to a SNAPSHOT which can't be downloaded) i have the following pom.xml: ?xml version=1.0 encoding=UTF-8 ? 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 groupIdorg.codehaus.mojo.jaxws.it/groupId artifactIdhelloworldws/artifactId version1.0-SNAPSHOT/version packagingwar/packaging namehelloworld/name dependencies dependency groupIdcom.sun.xml.ws/groupId artifactIdjaxws-rt/artifactId version2.1/version /dependency /dependencies !-- temporary only until java.net maven2 repo is ready-- repositories repository idjava.net/id urlhttps://maven-repository.dev.java.net/nonav/repository//url layoutlegacy/layout /repository /repositories build finalName${artifactId}/finalName plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration executions execution idcompile/id goals goalcompile/goal /goals phaseinitialize/phase /execution /executions /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdjaxws-maven-plugin/artifactId executions execution goals goalwsgen/goal /goals phasegenerate-sources/phase configuration seiorg.codehaus.mojo.jaxws.it.HelloWorldImpl/sei genWsdltrue/genWsdl !-- for demo purpose only, the wepapp does not need those the generated wsdl files-- keeptrue/keep /configuration /execution /executions /plugin plugin groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty-plugin/artifactId version6.0.1/version configuration scanIntervalSeconds10/scanIntervalSeconds contextPath//contextPath !--jettyEnvXml${basedir}/src/jetty-env.xml/jettyEnvXml-- connectors connector implementation=org.mortbay.jetty.nio.SelectChannelConnector port9090/port maxIdleTime6/maxIdleTime /connector /connectors /configuration /plugin /plugins /build /project when running 'mvn install -X -e' from the command line i get the following error: [DEBUG] jaxws:wsgen args: [-keep, -d, C:\projects\jax-ws\target\classes, -cp, C:\projects\jax-ws\target\classes;D:\data Maven_repository\javax\xml\bind\jaxb-api\2.1
Re: [M2] jaxws-maven-plugin vs. ant-task using wsgen
hi wayne, thx for your hint. just posted the thread at the users forum. but since i couldn't find any users forum / mailing list (at java.net) i decided to post it to the (old) codehaus mailinglist. best regards R.C. Wayne Fay wrote: You should probably also post this request on the jaxws plugin users/dev list. Since there is a lower chance that someone here is using jaxws and will respond, but a very high chance that someone on that list is using jaxws. Wayne On 11/14/07, CodingPlayer [EMAIL PROTECTED] wrote: Hi There, I'm an absolute noob to webservices, who is currently trying to compile a webservice annotated class, with the actual jaxws-maven-plugin. i already lost 3 days, and still didn't find a way to get it running properly. to find the error i stepped back, and simply tried to get the wsgen example running: https://jax-ws-commons.dev.java.net/source/browse/*checkout*/jax-ws-commons/trunk/jaxws-maven-plugin/src/it/wsgen/pom.xml?content-type=text%2Fplainrev=110 after removing the version (which points to a SNAPSHOT which can't be downloaded) i have the following pom.xml: ?xml version=1.0 encoding=UTF-8 ? 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 groupIdorg.codehaus.mojo.jaxws.it/groupId artifactIdhelloworldws/artifactId version1.0-SNAPSHOT/version packagingwar/packaging namehelloworld/name dependencies dependency groupIdcom.sun.xml.ws/groupId artifactIdjaxws-rt/artifactId version2.1/version /dependency /dependencies !-- temporary only until java.net maven2 repo is ready-- repositories repository idjava.net/id urlhttps://maven-repository.dev.java.net/nonav/repository//url layoutlegacy/layout /repository /repositories build finalName${artifactId}/finalName plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration executions execution idcompile/id goals goalcompile/goal /goals phaseinitialize/phase /execution /executions /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdjaxws-maven-plugin/artifactId executions execution goals goalwsgen/goal /goals phasegenerate-sources/phase configuration seiorg.codehaus.mojo.jaxws.it.HelloWorldImpl/sei genWsdltrue/genWsdl !-- for demo purpose only, the wepapp does not need those the generated wsdl files-- keeptrue/keep /configuration /execution /executions /plugin plugin groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty-plugin/artifactId version6.0.1/version configuration scanIntervalSeconds10/scanIntervalSeconds contextPath//contextPath !--jettyEnvXml${basedir}/src/jetty-env.xml/jettyEnvXml-- connectors connector implementation=org.mortbay.jetty.nio.SelectChannelConnector port9090/port maxIdleTime6/maxIdleTime /connector /connectors /configuration /plugin /plugins /build /project when running 'mvn install -X -e' from the command line i get the following error: [DEBUG] jaxws:wsgen args: [-keep, -d, C:\projects\jax-ws\target\classes, -cp, C:\projects\jax-ws\target\classes;D:\data Maven_repository\javax\xml\bind\jaxb-api\2.1\jaxb-api-2.1.jar;D:\data\Maven_repository\javax\xml\ws\jaxws-api\2.1\jaxws api-2.1.jar;D:\data\Maven_repository\javax\xml\soap\saaj-api\1.3\saaj-api-1.3.jar;D:\data\Maven_repository\com\sun\xml\ essaging\saaj\saaj-impl\1.3\saaj-impl-1.3.jar;D:\data\Maven_repository\com\sun\xml\stream\buffer\streambuffer\0.4\strea buffer-0.4.jar;D:\data\Maven_repository\com\sun\xml\stream\sjsxp\1.0\sjsxp-1.0.jar;D:\data\Maven_repository\com\sun\xml bind\jaxb-impl\2.1.2\jaxb-impl-2.1.2.jar;D:\data\Maven_repository\com\sun\xml\ws\jaxws-rt\2.1\jaxws-rt-2.1.jar;D:\data\ aven_repository\javax\xml\stream\stax-api\1.0\stax-api-1.0.jar;D:\data\Maven_repository\javax\activation\activation\1.1 activation-1.1.jar;D:\data\Maven_repository\org\jvnet\staxex\stax-ex\1.0\stax-ex-1.0.jar, -wsdl, -r, C:\projects\jax-ws target\jaxws\wsgen\wsdl, org.codehaus.mojo.jaxws.it.HelloWorldImpl] [INFO] [ERROR] BUILD ERROR [INFO
[M2] jaxws-maven-plugin vs. ant-task using wsgen
Hi There, I'm an absolute noob to webservices, who is currently trying to compile a webservice annotated class, with the actual jaxws-maven-plugin. i already lost 3 days, and still didn't find a way to get it running properly. to find the error i stepped back, and simply tried to get the wsgen example running: https://jax-ws-commons.dev.java.net/source/browse/*checkout*/jax-ws-commons/trunk/jaxws-maven-plugin/src/it/wsgen/pom.xml?content-type=text%2Fplainrev=110 after removing the version (which points to a SNAPSHOT which can't be downloaded) i have the following pom.xml: ?xml version=1.0 encoding=UTF-8 ? 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 groupIdorg.codehaus.mojo.jaxws.it/groupId artifactIdhelloworldws/artifactId version1.0-SNAPSHOT/version packagingwar/packaging namehelloworld/name dependencies dependency groupIdcom.sun.xml.ws/groupId artifactIdjaxws-rt/artifactId version2.1/version /dependency /dependencies !-- temporary only until java.net maven2 repo is ready-- repositories repository idjava.net/id urlhttps://maven-repository.dev.java.net/nonav/repository//url layoutlegacy/layout /repository /repositories build finalName${artifactId}/finalName plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration executions execution idcompile/id goals goalcompile/goal /goals phaseinitialize/phase /execution /executions /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdjaxws-maven-plugin/artifactId executions execution goals goalwsgen/goal /goals phasegenerate-sources/phase configuration seiorg.codehaus.mojo.jaxws.it.HelloWorldImpl/sei genWsdltrue/genWsdl !-- for demo purpose only, the wepapp does not need those the generated wsdl files-- keeptrue/keep /configuration /execution /executions /plugin plugin groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty-plugin/artifactId version6.0.1/version configuration scanIntervalSeconds10/scanIntervalSeconds contextPath//contextPath !--jettyEnvXml${basedir}/src/jetty-env.xml/jettyEnvXml-- connectors connector implementation=org.mortbay.jetty.nio.SelectChannelConnector port9090/port maxIdleTime6/maxIdleTime /connector /connectors /configuration /plugin /plugins /build /project when running 'mvn install -X -e' from the command line i get the following error: [DEBUG] jaxws:wsgen args: [-keep, -d, C:\projects\jax-ws\target\classes, -cp, C:\projects\jax-ws\target\classes;D:\data Maven_repository\javax\xml\bind\jaxb-api\2.1\jaxb-api-2.1.jar;D:\data\Maven_repository\javax\xml\ws\jaxws-api\2.1\jaxws api-2.1.jar;D:\data\Maven_repository\javax\xml\soap\saaj-api\1.3\saaj-api-1.3.jar;D:\data\Maven_repository\com\sun\xml\ essaging\saaj\saaj-impl\1.3\saaj-impl-1.3.jar;D:\data\Maven_repository\com\sun\xml\stream\buffer\streambuffer\0.4\strea buffer-0.4.jar;D:\data\Maven_repository\com\sun\xml\stream\sjsxp\1.0\sjsxp-1.0.jar;D:\data\Maven_repository\com\sun\xml bind\jaxb-impl\2.1.2\jaxb-impl-2.1.2.jar;D:\data\Maven_repository\com\sun\xml\ws\jaxws-rt\2.1\jaxws-rt-2.1.jar;D:\data\ aven_repository\javax\xml\stream\stax-api\1.0\stax-api-1.0.jar;D:\data\Maven_repository\javax\activation\activation\1.1 activation-1.1.jar;D:\data\Maven_repository\org\jvnet\staxex\stax-ex\1.0\stax-ex-1.0.jar, -wsdl, -r, C:\projects\jax-ws target\jaxws\wsgen\wsdl, org.codehaus.mojo.jaxws.it.HelloWorldImpl] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to execute wsgen Embedded error: javax/jws/WebService [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute wsgen at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564) at
[M2] maven plugin for Java6 wsgen tool?
Hi, is there currently any plugin that uses the java jdk6 wsgen tool? which plugin can i use to generate my .wsdl file from webservice annotated java classes? thx 4 help R.C. -- View this message in context: http://www.nabble.com/-M2--maven-plugin-for-Java6-wsgen-tool--tf4790424s177.html#a13703879 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] maven-release-plugin: debug vs. release version
Hi, i recently asked myself, if there is any possibility to discriminate between a debug and a release version (like in the old C++ days). what i mean exactly is, that when releasing a project, i would like to have the possibility to decide to either generate a debug-version: - containing full debug information (javac -g) - containing a -sources.jar - no obfuscation - active assertions and runtime checks or a release-version: - no debug information (javac -g:none) - NO -sources.jar - obfuscated classes - no assertions and runtime checks an example: - lets say i want to release 'myproject' current snapshot 2.0-SNAPSHOT - i would like to release a debug release (2.0) to my companies (internal) remote repository (for other developers to have all sources, and see line numbers and so on) - and additionally i would like to release the same version (2.0) to an (external) repository but containing a release version (obfuscated, no line numbers, ...) but i don't want to generate two version numbers (because those users depending on 'myproject' using the latest version, should always retrieve either the 'debug' or the 'release' version, depending whether they are in my company and can access the internal repository, or not) my only thoughts point to a solution, where i generate a profile for each type of release, configuring plugins to generate different artifacts (JARs) and running only the release:prepare command, then manually run the deploy phase (with the external profile: other repository, changed compiler settings, ...) and then executing release:perform (for the default release to my remote repository). maybe someone knows about a better way of doing so. thx 4 help R.C. -- View this message in context: http://www.nabble.com/-M2--maven-release-plugin%3A-debug-vs.-release-version-tf4311221s177.html#a12273307 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] obfuscating plugin
Hi, does anyone know about a nice obfuscator plugin for Maven2?? (pls post your configuration as well) thx 4 help R.C. -- View this message in context: http://www.nabble.com/-M2--obfuscating-plugin-tf4311244s177.html#a12273396 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] obfuscating plugin
Hi Tim, proguard looks 'nice' enough for my needs ;D thx 4 your reply. R.C. Tim Kettler wrote: Hi, what's your definition of 'nice' :-) http://pyx4me.com/pyx4me-maven-plugins/proguard-maven-plugin/introduction.html -Tim CodingPlayer schrieb: Hi, does anyone know about a nice obfuscator plugin for Maven2?? (pls post your configuration as well) thx 4 help R.C. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-M2--obfuscating-plugin-tf4311244s177.html#a12275252 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Maven2 integration for JBuilder X (and higher)
Hi All, - is there any working plugin for the JBuilder IDE that supports Maven2? i already posted this question about one year ago: http://www.nabble.com/JBuilder-Plugin-for-Maven2-tf2009003s177.html#a5519383 just wanted to check if somebody has implemented it yet, and might want to let us know. - is the maven-jbuilder-plugin working with Maven2? AFAIK the project only supports Maven1. http://repo1.maven.org/maven2/maven/maven-jbuilder-plugin/ thx 4 help R.C. -- View this message in context: http://www.nabble.com/-M2--Maven2-integration-for-JBuilder-X-%28and-higher%29-tf4266890s177.html#a12143238 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[1.0.3] how do i resume/abort a stuck build
Hi, i'm using Continuum 1.0.3 (as continuous integration). after creating a new project the first build stuck during the site:deploy-phase. last lines of the build output: [INFO] [site:deploy] Using private key: /home/continuum/.ssh/id_dsa now the build is stuck. How do i reset the build? (Stopping and restarting the continuum server didn't help.) How can i abort a running build process?? What could be the problem? Do i need to create the directories manually (at the server). Is it possible that some user rights are missing? thx 4 help R.C. -- View this message in context: http://www.nabble.com/-1.0.3--how-do-i-resume-abort-a-stuck-build-tf4096967.html#a11649508 Sent from the Continuum - Users mailing list archive at Nabble.com.
Re: [M2] j2me-maven-plugin: preverification error
Hi Damien, i just found some time to try out your hint (configuring the compile plugin to use a bootclasspath). here is the config, that worked for me finally: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration compilerArguments bootclasspath${env.WTK_HOME}/lib/cldcapi11.jar;${env.WTK_HOME}/lib/midpapi20.jar/bootclasspath /compilerArguments compilerArgument-Xlint:-serial/compilerArgument /configuration /plugin also important is the -Xlint:-serial argument, because in my case my pom is inherited from a parent pom (with very strict compiler arguments, checking several warnings). but since there is no Serializable class in the J2ME API one has to leave out the check against an existing serialVersionID. thx 4 your hint regards R.C. Damien Lecan-2 wrote: u might have misunderstood my problem: - in the J2ME API java.io.DataInputStream IS INCLUDED. Ok You need to change compiler bootclasspath, with J2ME API classes. In my company, we are using our own J2ME API jars, but Pyx4me provides J2ME API jars you can add in your compiler bootclasspath. Example (not tested) plugin ... groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.3/source target1.1/target compilerArguments bootclasspath${settings.localRepository}/org/microemu/microemu-cldc/2.0.1/microemu-cldc-2.0.1.jar/bootclasspath /compilerArguments /configuration dependencies dependency groupIdorg.microemu/groupId artifactIdmicroemu-cldc/artifactId version2.0.1/version /dependency /dependencies ... /plugin Notice the path to jar relative to Maven repository and the dependency tag which allows Maven to download used libraries in bootclasspath. It works with our internal J2ME jars, it should work with those from pyx4me. Other jars : http://repo1.maven.org/maven2/org/microemu/ Good luck Damien Lecan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-M2--j2me-maven-plugin%3A-preverification-error-tf3975257s177.html#a11338624 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] j2me-maven-plugin: preverification error
Hi Damien, thx for this hint. i already tried ${settings.localRepository} but since i use the default (and no ${settings.localRepository} is specified in my settings.xml) maven can't resolve the property. and the second reason why i didn't investigate more time to get rid of the ${env.WTK_HOME} variable, is that one needs to specify the WTK_HOME for the j2me-maven-plugin anyway. plugin groupIdcom.pyx4me/groupId artifactIdj2me-maven-plugin/artifactId version2.0.1/version executions execution goals goalpackage/goal /goals /execution /executions configuration j2meConfigurationCLDC-1.1/j2meConfiguration j2meProfileMIDP-2.0/j2meProfile useWtkLibstrue/useWtkLibs wtkHome${env.WTK_HOME}/wtkHome !-- environment variable needed here -- proguardIncludeproguard.conf/proguardInclude proguardtrue/proguard obfuscatetrue/obfuscate jadAttributes ... /jadAttributes midlets MIDlet ... /MIDlet /midlets /configuration /plugin is it possible to pass some libs, instead of the WTK_HOME? AFAIK the plugin also needs an executable for the preverification. regards R.C. Damien Lecan-2 wrote: compilerArguments bootclasspath${env.WTK_HOME}/lib/cldcapi11.jar;${env.WTK_HOME }/lib/midpapi20.jar/bootclasspath /compilerArguments Glad to see that working. At least, if you have an internal maven repository, you might have a more portable build system. You could deploy cldcapi11.jar and midpapi20.jar into your internal repository, and then use combination of ${settings.localRepository}/path/to/dependency and dependency declaration. This is how we do where I'm working. Nothing more than Maven has be installed to develop J2ME applications (no more wtk installation) Damien -- View this message in context: http://www.nabble.com/-M2--j2me-maven-plugin%3A-preverification-error-tf3975257s177.html#a11339623 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] cobertura-maven-plugin: cobertura.ser does not exist
Hi, i'm trying to run 'mvn site' for my archetype-project, but always get the following error. The archetype itself has no REAL sources, but defines some source templates. I believe the cobertura-maven-plugin detects those sources and beliefs that they are part of the project. [INFO] [INFO] Building Project Archetype [INFO]task-segment: [clean, deploy, site, site:deploy] [INFO] [INFO] [clean:clean] [INFO] Deleting directory /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target [INFO] Deleting directory /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/classes [INFO] Deleting directory /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/test-classes [INFO] Deleting directory /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/site [INFO] [cobertura:clean {execution: clean}] [INFO] artifact org.apache.maven.plugins:maven-plugin-plugin: checking for updates from sat-maven-repository-http [INFO] artifact org.apache.maven.plugins:maven-plugin-plugin: checking for updates from central [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from sat-maven-repository-http [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from central [INFO] [plugin:descriptor] [INFO] Using 2 extractors. [INFO] Applying extractor for language: java [INFO] Extractor for language: java found 0 mojo descriptors. [INFO] Applying extractor for language: bsh [INFO] Extractor for language: bsh found 0 mojo descriptors. [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:test] [INFO] Surefire report directory: /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/surefire-reports --- T E S T S --- There are no tests to run. Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] [jar:jar] [INFO] Building jar: /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/sat-archetype-1.1-SNAPSHOT.jar [INFO] [plugin:addPluginArtifactMetadata] [INFO] [jar:test-jar {execution: default}] [INFO] Building jar: /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/sat-archetype-1.1-SNAPSHOT-tests.jar [INFO] Preparing source:jar [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation. [INFO] No goals needed for project - skipping [INFO] [source:jar {execution: attach-sources}] [INFO] Building jar: /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/sat-archetype-1.1-SNAPSHOT-sources.jar [INFO] Preparing source:test-jar [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation. [WARNING] Removing: test-jar from forked lifecycle, to prevent recursive invocation. [INFO] No goals needed for project - skipping [INFO] [source:test-jar {execution: attach-sources}] [INFO] Building jar: /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/sat-archetype-1.1-SNAPSHOT-test-sources.jar [INFO] [install:install] [INFO] Installing /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/sat-archetype-1.1-SNAPSHOT.jar to /home/continuum/.m2/repository/at/researchstudio/sat/sat-archetype/1.1-SNAPSHOT/sat-archetype-1.1-SNAPSHOT.jar [INFO] Installing /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/sat-archetype-1.1-SNAPSHOT-tests.jar to /home/continuum/.m2/repository/at/researchstudio/sat/sat-archetype/1.1-SNAPSHOT/sat-archetype-1.1-SNAPSHOT-tests.jar [INFO] Installing /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/sat-archetype-1.1-SNAPSHOT-sources.jar to /home/continuum/.m2/repository/at/researchstudio/sat/sat-archetype/1.1-SNAPSHOT/sat-archetype-1.1-SNAPSHOT-sources.jar [INFO] Installing /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/sat-archetype-1.1-SNAPSHOT-test-sources.jar to /home/continuum/.m2/repository/at/researchstudio/sat/sat-archetype/1.1-SNAPSHOT/sat-archetype-1.1-SNAPSHOT-test-sources.jar [INFO] [plugin:updateRegistry] [INFO] [deploy:deploy] altDeploymentRepository = null [INFO] Retrieving previous build number from sat-maven-repository Uploading: scp://satsrv03.researchstudio.at/var/www/mvn/internal/repository//at/researchstudio/sat/sat-archetype/1.1-SNAPSHOT/sat-archetype-1.1-20070628.140149-14.jar 4/14K 8/14K 12/14K 14/14K 14K uploaded [INFO] Retrieving previous metadata from sat-maven-repository [INFO] Uploading repository metadata for: 'at.researchstudio.sat' [INFO] Retrieving previous metadata from sat-maven-repository [INFO] Uploading repository metadata
Re: [M2] j2me-maven-plugin: preverification error
thx, i'll try this out very soon, and let u know if it worked. Damien Lecan-2 wrote: u might have misunderstood my problem: - in the J2ME API java.io.DataInputStream IS INCLUDED. Ok You need to change compiler bootclasspath, with J2ME API classes. In my company, we are using our own J2ME API jars, but Pyx4me provides J2ME API jars you can add in your compiler bootclasspath. Example (not tested) plugin ... groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.3/source target1.1/target compilerArguments bootclasspath${settings.localRepository}/org/microemu/microemu-cldc/2.0.1/microemu-cldc-2.0.1.jar/bootclasspath /compilerArguments /configuration dependencies dependency groupIdorg.microemu/groupId artifactIdmicroemu-cldc/artifactId version2.0.1/version /dependency /dependencies ... /plugin Notice the path to jar relative to Maven repository and the dependency tag which allows Maven to download used libraries in bootclasspath. It works with our internal J2ME jars, it should work with those from pyx4me. Other jars : http://repo1.maven.org/maven2/org/microemu/ Good luck Damien Lecan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-M2--j2me-maven-plugin%3A-preverification-error-tf3975257s177.html#a11302366 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] maven-cobertura-plugin: cobertura.ser
Hi, i just wonder why the cobertura.ser file is not in the \target folder (since it is generated). do i need to check it in to my SCM (Subversion), is it updated when executing later builds? (or can i put it on the ignore list? and add it to the maven-clean-plugin configuration?) thx 4 help R.C. -- View this message in context: http://www.nabble.com/-M2--maven-cobertura-plugin%3A-cobertura.ser-tf3981334s177.html#a11302424 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] mvn-qalab-plugin: qalab.xml
Hi, i just wonder why the qalab.xml file is not in the \target folder (since it is generated). do i need to check it in to my SCM (Subversion), is it updated when executing later builds? (does the plugin store the history of previous builds in this file?) or can i put it on the ignore list? and add it to the maven-clean-plugin configuration? thx 4 help R.C. -- View this message in context: http://www.nabble.com/-M2--mvn-qalab-plugin%3A-qalab.xml-tf3981348s177.html#a11302455 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] mvn-qalab-plugin: qalab.xml
Hi, thx for this hint. i finally found a nice description (about dealing with the qalab.xml file) in the plugins FAQ: http://qalab.sourceforge.net/multiproject/maven2-qalab-plugin/faq.html#what-scm regards R.C. Dimitris Kapanidis-2 wrote: CodingPlayer wrote: Hi, i just wonder why the qalab.xml file is not in the \target folder (since it is generated). do i need to check it in to my SCM (Subversion), is it updated when executing later builds? (does the plugin store the history of previous builds in this file?) or can i put it on the ignore list? and add it to the maven-clean-plugin configuration? thx 4 help R.C. The file is used for historical data. Each report is aggregating the previous data and adding the new ones in the file. There is a goal in the plugin that can automatically submit the file to subversion. -- Dimitris Kapanidis Software Q.A. Manager Scytl Secure Electronic Voting Tuset 20 · 08006 Barcelona Phone:+ 34 934 230 324 Fax + 34 933 251 028 http://www.scytl.com NOTICE: The information in this e-mail and in any of its attachments is confidential and intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, any disclosure, copying, distribution or retaining of this message or any part of it, without the prior written consent of Scytl Secure Electronic Voting, SA is prohibited and may be unlawful. If you have received this in error, please contact the sender and delete the material from any computer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-M2--mvn-qalab-plugin%3A-qalab.xml-tf3981348s177.html#a11305399 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] j2me-maven-plugin: preverification error
Hi, i just try to get my J2ME application running under Maven2. here is my pom: ... properties java.source.version1.3/java.source.version java.target.version1.1/java.target.version /properties . plugin groupIdcom.pyx4me/groupId artifactIdj2me-maven-plugin/artifactId version2.0.1/version executions execution goals goalpackage/goal /goals /execution /executions configuration wtkHomeC:\Programme\Java\J2ME/wtkHome proguardIncludeproguard.conf/proguardInclude proguardtrue/proguard obfuscatefalse/obfuscate jadAttributes MIDlet-Vendor${project.organization.name}/MIDlet-Vendor Created-By.../Created-By /jadAttributes midlets MIDlet nameMGBL/name icon/img/logo.png/icon classat.researchstudio.sat.mgbl.AheadOfTheGame/class /MIDlet /midlets /configuration /plugin i get the following error: Error preverifying class at.researchstudio.sat.mgbl.model.Settings VERIFIER ERROR at/researchstudio/sat/mgbl/model/Settings.init([B)V: Cannot find class java/io/FilterInputStream i'm using a java.io.DataInputStream in my application, which is derived from: Object - InputStream - FilterInputStream (in JDK 1.3) but only Object - InputStream (in J2ME) So how can i tell the maven-compile-plugin, to use the J2ME API insteaed of JDK? (When compiling with my old eclipseME-plugin, everything works fine, for JDK 1.3) thx 4 help R.C. -- View this message in context: http://www.nabble.com/-M2--j2me-maven-plugin%3A-preverification-error-tf3975257s177.html#a11284159 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] j2me-maven-plugin: Configuration
Hi, since i tried the whole day, to get my J2ME application running using the j2me-maven-plugin to create the JAR and the JAD file, and didn't succeed, i would love if anyone using this plugin could post a working configuration here. finally i had my application running in the emulator, and on one mobile phone, but some other mobile phones couldn't start the application. many thanks R.C. -- View this message in context: http://www.nabble.com/-M2--j2me-maven-plugin%3A-Configuration-tf3976742s177.html#a11288115 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] j2me-maven-plugin: preverification error
Hi Damien, u might have misunderstood my problem: - in the J2ME API java.io.DataInputStream IS INCLUDED. - the problem is that the J2ME is derived from an old JDK 1.1 (just slightly changed), and therefore the inheritence structure for the java.io.DataInputStream (in J2ME) is: java.lang.Object | +java.io.InputStream | +java.io.DataInputStream but in the JDK 1.3 (which is usually the source version): java.lang.Object | +java.io.InputStream | +java.io.FilterInputStream | +java.io.DataInputStream and actually the problem is, that the plugin seems to use 1.3 to compile the classes, but can not run a pre-verification, since the java.io.FilterInputStream is missing. hope that clarifies my problem R.C. Damien Lecan-2 wrote: Hello, i'm using a java.io.DataInputStream in my application, which is derived from: So how can i tell the maven-compile-plugin, to use the J2ME API insteaed of JDK? (When compiling with my old eclipseME-plugin, everything works fine, for JDK 1.3) Your question is not clear :) You want to use java.io.DataInputStream, available only in J2SE API but at the same time you want compile with J2ME API. What do you want to do ? Damien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-M2--j2me-maven-plugin%3A-preverification-error-tf3975257s177.html#a11289592 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] taglist-maven-plugin: casing?
Hi, i just discovered this nice taglist-maven-plugin listing several tags in a nice report. My question is, if it is possible to ignore the casing (for the match)?? i would love to see: - TODO, todo, Todo, (and several casing variations) in the same list. - same for @TODO and @todo it would be even nicer, to specify classes of tags (that should be clustered to the same category). something like: tagclasses tagclass name=todo ignorecasing=true tagTODO/tag tag@todo/tag /tagclass tagclass name=fixme ignorecasing=true tagFIXME/tag tagFIX/tag /tagclass tag@deprecated/tag /tagclasses /configuration thx 4 help R.C. -- View this message in context: http://www.nabble.com/-M2--taglist-maven-plugin%3A-casing--tf3951704s177.html#a11211222 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] maven-deploy-plugin: is it possibly to deploy sources?
Hi, i just want to deploy a 3rd party jar file to my remote repository, and wonder if it is possible to deploy the source.jar as well? i couldn't find any parameter/switch doing this. mvn deploy:deploy-file -Dfile=3rdparty.jar -DgroupId=com.3rdparty.app -DartifactId=3rdparty -Dversion=1.1 -Dpackaging=jar -DrepositoryId=myremote-repository -Durl=scp://path-to-remote-repository that's all i found irght now. thx 4 any help R.C. -- View this message in context: http://www.nabble.com/-M2--maven-deploy-plugin%3A-is-it-possibly-to-deploy-sources--tf3452866s177.html#a9631930 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] maven-deploy-plugin: is it possibly to deploy sources?
Hi, i just found a solution to this: simply add -Dclassifier=sources, that's it. mvn deploy:deploy-file -Dfile=3rdparty-sources.jar -DgroupId=com.3rdparty.app -DartifactId=3rdparty -Dversion=1.1 -Dpackaging=jar -DrepositoryId=myremote-repository -Durl=scp://path-to-remote-repository -Dclassifier=sources R.C. CodingPlayer wrote: Hi, i just want to deploy a 3rd party jar file to my remote repository, and wonder if it is possible to deploy the source.jar as well? i couldn't find any parameter/switch doing this. mvn deploy:deploy-file -Dfile=3rdparty.jar -DgroupId=com.3rdparty.app -DartifactId=3rdparty -Dversion=1.1 -Dpackaging=jar -DrepositoryId=myremote-repository -Durl=scp://path-to-remote-repository that's all i found irght now. thx 4 any help R.C. -- View this message in context: http://www.nabble.com/-M2--maven-deploy-plugin%3A-is-it-possibly-to-deploy-sources--tf3452866s177.html#a9632348 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] maven-deploy-plugin: is it possibly to deploy sources?
thx, i just found out the same^^ R.C. Valerio Schiavoni wrote: try adding -Dclassifier=sources -Dfile=3rdparty-src.jar On 3/23/07, CodingPlayer [EMAIL PROTECTED] wrote: Hi, i just want to deploy a 3rd party jar file to my remote repository, and wonder if it is possible to deploy the source.jar as well? i couldn't find any parameter/switch doing this. mvn deploy:deploy-file -Dfile=3rdparty.jar -DgroupId=com.3rdparty.app -DartifactId=3rdparty -Dversion=1.1 -Dpackaging=jar -DrepositoryId=myremote-repository -Durl=scp://path-to-remote-repository that's all i found irght now. thx 4 any help R.C. -- View this message in context: http://www.nabble.com/-M2--maven-deploy-plugin%3A-is-it-possibly-to-deploy-sources--tf3452866s177.html#a9631930 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://valerioschiavoni.blogspot.com http://jroller.com/page/vschiavoni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-M2--maven-deploy-plugin%3A-is-it-possibly-to-deploy-sources--tf3452866s177.html#a9632365 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Overview of common plugins?
Hi, i wonder if anyone has a nice list of useful common maven2 plugins? all i found is this outdated list: http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Matrix thx 4 help R.C. -- View this message in context: http://www.nabble.com/-M2--Overview-of-common-plugins--tf3453450s177.html#a9633592 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] maven-release-plugin and javadoc @version tags
Hi All, i just was wondering if there is any possibility to tell the maven-release-plugin, to change ALL the source files as well? i mean, it would be nice, if the @version javadoc tag would be automatically changed for each class. For e.g. when releasing version 1.7 and changing to 1.8-SNAPSHOT, all @version tags (for each class) should be changed to 1.8 (right after the release). If someone knows a way to do this pls let me know. Maybe there is another plugin that is capable of this functionality? thx R.C. -- View this message in context: http://www.nabble.com/-M2--maven-release-plugin-and-javadoc-%40version-tags-tf3414345s177.html#a9513881 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] maven-release-plugin and javadoc @version tags
I'm sorry but i don't know anything about filtering? What do you mean exactly? i thought maven-properties are only accessible within the pom.xml file? What i need is a plugin, that looks at the ${pom.version} and the walks through all my packages (in my source folder) and change the @version javadoc tag in every single java class file. I couldn't find any plugin doing this. Maybe this filtering you mentioned can help? thx R.C. Rémy Sanlaville wrote: Hi, Isn't possible to use filtering with ${pom.version} ? Rémy 2007/3/16, CodingPlayer [EMAIL PROTECTED]: Hi All, i just was wondering if there is any possibility to tell the maven-release-plugin, to change ALL the source files as well? i mean, it would be nice, if the @version javadoc tag would be automatically changed for each class. For e.g. when releasing version 1.7 and changing to 1.8-SNAPSHOT, all @version tags (for each class) should be changed to 1.8 (right after the release). If someone knows a way to do this pls let me know. Maybe there is another plugin that is capable of this functionality? thx R.C. -- View this message in context: http://www.nabble.com/-M2--maven-release-plugin-and-javadoc-%40version-tags-tf3414345s177.html#a9513881 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--maven-release-plugin-and-javadoc-%40version-tags-tf3414345s177.html#a9514526 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] extending profiles from parent pom - BUG in maven-help-plugin??
Hi all, i just split my parent pom into two distinct poms. One containing only generic informations, like used plugins, repositories (maven, codehaus), ...), while the second one contains company specific settings (issues, developers, organization, ...) Some of the elements are needed in both poms, like properties, repositories, pluginRepo. and profiles. Everything works fine except, except there seems to be a BUG with the maven-help-plugin. when executing: mvn help:effective-pom the inherited profiles are NEVER shown. Only the leaf-profiles are displayed. But all profiles are currently existing, and can be activated. Maybe this is no bug, and the inherited profiles are left out (when displaying) for a reason, if someone knows more pls let me know. thx R.C. -- View this message in context: http://www.nabble.com/-M2--extending-profiles-from-parent-pom--%3E-BUG-in-maven-help-plugin---tf3388700s177.html#a9432359 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] jxr doesn't work with latest findbugs
Hi, I use the findbugs and JXR plugins from codehaus, but the cross reference linking doesn't work for findbugs. (but it works properly for other plugins, e.g. PMD) here is my pom.xml snipet: reporting plugin groupIdorg.codehaus.mojo/groupId artifactIdfindbugs-maven-plugin/artifactId version1.0.0/version /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdjxr-maven-plugin/artifactId version2.0-beta-1/version /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.1/version /plugin /reporting since the source references work for PMD and JXR, but do not work for findbugs and JXR i believe that there is a bug within the findbugs plugin? (just a guess^^) maybe i use the worng versions or even the wrong plugins (maybe i should use apache.maven.plugins instead of codehaus.mojos??) I'm thankful 4 any idea. thx R.C. -- View this message in context: http://www.nabble.com/-M2--jxr-doesn%27t-work-with-latest-findbugs-tf3122453s177.html#a8651525 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] checkstyle plugin - correct groupid?
to look at the url was a very good tip. thx 4 your help. R.C. Wendy Smoak-3 wrote: On 12/5/06, CodingPlayer [EMAIL PROTECTED] wrote: i just found out about the existence of two checkstyle plugins: http://mirrors.ibiblio.org/pub/mirrors/maven2/maven/maven-checkstyle-plugin/ http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/maven-checkstyle-plugin/ i found (a relative) new version for both: maven: 3.0 (16-Nov-2006) org.apache.maven.plugins: 2.1 (14-May-2006) The first one is a Maven 1 plugin. (You can tell from the url in the pom.) The second one (in org.apache.maven.plugins) is the Maven 2 version. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-M2--checkstyle-plugin---correct-groupid--tf2762404s177.html#a7716284 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] checkstyle plugin - correct groupid?
hi, i just found out about the existence of two checkstyle plugins: http://mirrors.ibiblio.org/pub/mirrors/maven2/maven/maven-checkstyle-plugin/ http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/maven-checkstyle-plugin/ i found (a relative) new version for both: maven: 3.0 (16-Nov-2006) org.apache.maven.plugins: 2.1 (14-May-2006) does anybody know, which one is still supported? which one should i use? thx 4 help R.C. -- View this message in context: http://www.nabble.com/-M2--checkstyle-plugin---correct-groupid--tf2762404s177.html#a7701728 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] list of available goals (for all plugins)?
Hi, i'm searching for a plugin that lists all available goals of ALL Maven2 plugins? If this feature is not implemented yet, will it be taken into consideration? i know about the 'maven-projecthelp-plugin' and the 'maven-help-plugin', but they don't show available goals... thx 4 help R.C. -- View this message in context: http://www.nabble.com/-M2--list-of-available-goals-%28for-all-plugins%29--tf2753173s177.html#a7678351 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] different maven-...help-plugins?
Hi, does anyone know about the difference of these two plugins? http://maven.apache.org/plugins/maven-help-plugin/ http://maven.apache.org/plugins/maven-projecthelp-plugin/ Which one is used most common? thx R.C. -- View this message in context: http://www.nabble.com/-M2--different-maven-...help-plugins--tf2753567s177.html#a7678912 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] list of available goals (for all plugins)?
hi, What i mean is, that i would love to write something like, e.g. mvn list-goals and get an output like: phase: XXX goals: AAA, BBB, CCC phase: YYY goals: DDD, EEE e.g.: phase: compile goals: compile, test-compile, ... ... phase: package goals: package, jar:jar, jar:test-jar, source:jar, source:test-jar, the plugin should not only point out the corresponding lifecycle-phase, it should also list ALL goals for each plugin... Since most of the plugins provide more than one goal, a COMPLETE list would be nice. The fact is, that when the developers team of a company switches lets say, from ant to maven2, every single developer has to know quite a lot about maven, to simple find out how to build and run the project. Therefore such a simple command to list all available goals (of all plugins, correlated to the corresponding life-cycle-phase) would help quite a lot. thx 4 help R.C. ir. ing. Jan Dockx wrote: Define ALL Maven2 plugins. Since Maven is an open system of plugins, the best answer is probably Google ;-). If you mean all build lifecycle phases, they are static, and can be found at http:// cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html and at other places. On 4 Dec 2006, at 15:15, CodingPlayer wrote: Hi, i'm searching for a plugin that lists all available goals of ALL Maven2 plugins? If this feature is not implemented yet, will it be taken into consideration? i know about the 'maven-projecthelp-plugin' and the 'maven-help- plugin', but they don't show available goals... thx 4 help R.C. -- View this message in context: http://www.nabble.com/-M2--list-of- available-goals-%28for-all-plugins%29--tf2753173s177.html#a7678351 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/-M2--list-of-available-goals-%28for-all-plugins%29--tf2753173s177.html#a7679539 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] different maven-...help-plugins?
Mark, thx 4 help, that was what i expected. R.C. Mark Hobson wrote: On 04/12/06, CodingPlayer [EMAIL PROTECTED] wrote: does anyone know about the difference of these two plugins? http://maven.apache.org/plugins/maven-help-plugin/ http://maven.apache.org/plugins/maven-projecthelp-plugin/ maven-projecthelp-plugin was renamed to maven-help-plugin a while back. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-M2--different-maven-...help-plugins--tf2753567s177.html#a7679766 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] pluginManagement vs. plugin in parent pom.xml
Hi, i just found out about the existence of the pluginManagement section in a pom.xml. But i wonder, what is the difference to a plugin section?? Until now, i only use a plugin section in my parent pom.xml, and all of the plugins still work in my sub-projects. So, why should i put these plugins under the pluginManagement section? thx 4 help R.C. -- View this message in context: http://www.nabble.com/-M2--%3CpluginManagement%3E-vs.-%3Cplugin%3E-in-parent-pom.xml-tf2754489s177.html#a7680557 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] IssueManagement - how configure no issue management in child-project, when parent project has an issue managament?
Hi, i currently use a master pom.xml from which all of my other project poms are derived. in this master i use an issue management block: issueManagement systemMantis/system urlhttp://anyurl/url /issueManagement but in my child pom i DON'T HAVE an issue management. parent artifactIdmyartifactid/artifactId groupIdmygroupid/groupId version1.0-SNAPSHOT/version /parent so how do i configure that? just using empty tag: issueManagement/ didn't work, M2 still believes i have one. Can i explicitely omit a specific tag (from the derived base pom) thx 4 your help R.C. -- View this message in context: http://www.nabble.com/-M2--IssueManagement---how-configure-%22no-issue-management%22-in-child-project%2C-when-parent-project-has-an-issue-managament--tf2650777s177.html#a7397281 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] omitting elements from parent pom?
Hi, I'm using a parent pom.xml for my project poms. parent artifactIdmyartifactid/artifactId groupIdmygroupid/groupId version1.0-SNAPSHOT/version /parent I just wonder, how can i get rid of an element that is declared in the parent pom, but should not appear in the child pom? is there any possibility to exclude specific elements/tags that should not be derived? Something like override emtpy? my special interest is on the element 'issueManagement'. thx 4 help R.C. -- View this message in context: http://www.nabble.com/-M2--omitting-elements-from-parent-pom--tf2652504s177.html#a7401756 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] properties from parent-pom expanded wrongly in child-pom
Hi, i use a parent-pom from which my child-poms are derived. and i wonder if i can get rid of entries in my child poms, that only differ in the artifactId. for example, in my parent pom i use: urlhttp://192.168.22.5/projects/base-project//url scm connectionscm:svn:https://myserver/svn/base-project/trunk/connection developerConnectionscm:svn:https://myserver/svn/base-project/trunk/developerConnection urlhttps://myserver/wsvn/base-project/trunk/url /scm while in the child-pom, i use: urlhttp://192.168.22.5/projects/child-project//url scm connectionscm:svn:https://myserver/svn/child-project/trunk/connection developerConnectionscm:svn:https://myserver/svn/child-project/trunk/developerConnection urlhttps://myserver/wsvn/child-project/trunk/url /scm so i tried to use the ${project.artifactId} property instead. urlhttp://192.168.22.5/projects/${project.artifactId}//url scm connectionscm:svn:https://myserver/svn/${project.artifactId}/trunk/connection developerConnectionscm:svn:https://myserver/svn/${project.artifactId}/trunk/developerConnection urlhttps://myserver/wsvn/${project.artifactId}/trunk/url /scm when i use this proerties in the child-pom, everything works fine. but as soon as i use the same properties in the parent-pom, the following happens: urlhttp://192.168.22.5/projects/child-project/child-project/url scm connectionscm:svn:https://myserver/svn/child-project/trunk/child-project/connection developerConnectionscm:svn:https://myserver/svn/child-project/trunk/child-project/develope rConnection urlhttps://myserver/wsvn/child-project/trunk/child-project/url /scm it seems like properties in child-poms are expanded differently, than properties that are derived from a parent-pom. thx 4 any ideas R.C. -- View this message in context: http://www.nabble.com/-M2--properties-from-parent-pom-expanded-wrongly-in-child-pom-tf2506650.html#a6989102 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] maven-cargo-plugin, no longer supported?
Hi, I lately started with my first webapp using Maven2. And i heard that the maven-cargo-plugin would work best, but the website seems to be down: http://cargo.codehaus.org/Maven2+plugin has the plugin moved? Or is it no longer supported? Which other plugins work good for developing webapps under Maven2? - maven-tomcat-plugin - maven-jetty6-plugin thx 4 help R.C. -- View this message in context: http://www.nabble.com/-M2--maven-cargo-plugin%2C-no-longer-supported--tf2500251.html#a6969876 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] plugin repositories
Hi, I use several plugins in my parent-pom. Some of them are release versions, others are snapshot-versions. And they are both, from apache and codehaus. So i configured the pluginRepos for both of them (as well as my internal repo). pluginRepositories pluginRepository idapache-snapshots/id nameApache snapshots/name urlhttp://people.apache.org/repo/m2-snapshot-repository/url /pluginRepository pluginRepository idcodehaus-snapshots/id nameCodehaus snapshots/name urlhttp://snapshots.maven.codehaus.org/maven2/url /pluginRepository pluginRepository idinternal-maven-repository-http/id nameInternal Maven Repository/name url${repository.url.http}/url /pluginRepository /pluginRepositories The problem is that maven tries to download some of the release plugins from the snapshot repos first, instead of the central repo. in my settings.xml i have configured some mirrors as well: settings mirrors mirror !-- The Netherlands, Amsterdam -- idggi-project.org/id urlhttp://ftp.ggi-project.org/pub/packages/maven2/url mirrorOfcentral/mirrorOf /mirror mirror !-- The Netherlands, Amsterdam -- idsateh.com/id urlhttp://maven.sateh.com/repository/url mirrorOfcentral/mirrorOf /mirror mirror !-- Denmark -- iddotsrc.org/id urlhttp://mirrors.dotsrc.org/maven2/url mirrorOfcentral/mirrorOf /mirror mirror !-- Denmark -- idsunsite.dk/id urlhttp://mirrors.sunsite.dk/maven2/url mirrorOfcentral/mirrorOf /mirror mirror !-- Australia, Queensland -- idplanetmirror.com/id urlhttp://downloads.planetmirror.com/pub/maven2/url mirrorOfcentral/mirrorOf /mirror mirror !-- United States, Louisiana -- idlsu.edu/id urlhttp://ibiblio.lsu.edu/main/pub/packages/maven2/url mirrorOfcentral/mirrorOf /mirror mirror !-- United States, North Carolina -- idibiblio.net/id urlhttp://www.ibiblio.net/pub/packages/maven2/url mirrorOfcentral/mirrorOf /mirror /mirrors /settings but how can i define the order in which the repositories are looked up?? Do i need to configre the central repository separately? Maybe in a repository block?? like: repositories repository idcentral/id nameCentral Repository/name urlhttp://www.ibiblio.net/pub/packages/maven2/url /repository /repositories thx 4 help R.C. -- View this message in context: http://www.nabble.com/-M2--plugin-repositories-tf2500971.html#a6971849 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] maven-changelog-plugin, apache plugin repo down?
Hi, i currently have the following problem: [INFO] snapshot org.apache.maven.plugins:maven-changelog-plugin:2.0-SNAPSHOT: checking for updates from apache-snapshots [WARNING] repository metadata for: 'snapshot org.apache.maven.plugins:maven-changelog-plugin:2.0-SNAPSHOT' could not be retrieved from repository: apache-snapshots due to an error: Error transferring file [INFO] Repository 'apache-snapshots' will be blacklisted Downloading: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/plugins/maven-changelog-plugin/2.0-SNAPSHOT/mav en-changelog-plugin-2.0-SNAPSHOT.pom [WARNING] Unable to get resource from repository codehaus-snapshots (http://snapshots.maven.codehaus.org/maven2) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.maven.plugins ArtifactId: maven-changelog-plugin Version: 2.0-SNAPSHOT Reason: Unable to download the artifact from any repository org.apache.maven.plugins:maven-changelog-plugin:pom:2.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), apache-snapshots (http://people.apache.org/maven-snapshot-repository), codehaus-snapshots (http://snapshots.maven.codehaus.org/maven2), it seems to me that the apache-snapshot-repo URL has changed, or it is currently down, or the plugin is not supported any more. here is my repo-config: repositories repository idcentral/id nameMaven Central Repository/name urlhttp://repo1.maven.org/maven2/url snapshots enabledfalse/enabled /snapshots releases updatePolicynever/updatePolicy /releases /repository /repositories pluginRepositories pluginRepository idcentral/id nameCentral Repository/name urlhttp://repo1.maven.org/maven2/url snapshots enabledfalse/enabled /snapshots releases updatePolicynever/updatePolicy /releases /pluginRepository pluginRepository idapache-snapshots/id nameApache snapshots/name urlhttp://people.apache.org/maven-snapshot-repository/url !--urlhttp://people.apache.org/repo/m2-snapshot-repository/url-- snapshots enabledtrue/enabled /snapshots /pluginRepository pluginRepository idcodehaus-snapshots/id nameCodehaus snapshots/name urlhttp://snapshots.maven.codehaus.org/maven2/url snapshots enabledtrue/enabled /snapshots /pluginRepository /pluginRepositories Anybody here, who knows more? thx 4 help R.C. -- View this message in context: http://www.nabble.com/-M2--maven-changelog-plugin%2C-apache-plugin-repo-down--tf2501455.html#a6973271 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] maven-changelog-plugin - no changes in list?
Thanks Ryan, the snapshot plugin from apache works fine for me. regards R.C. Ryan Slobojan wrote: Hi, Try using: groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changelog-plugin/artifactId version2.0-SNAPSHOT/version The plugin apparently switched locations from Codehaus to Apache, and the newest version is located there. Don't forget to add the Apache snapshot repository (http://people.apache.org/repo/m2-snapshot-repository) to your repository list since the plugin's not yet released. Thanks, Ryan Slobojan -Original Message- From: CodingPlayer [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 17, 2006 8:39 AM To: users@maven.apache.org Subject: [m2] maven-changelog-plugin - no changes in list? Hi, I'm currently trying to use the maven-changelog-plugin. But there are no changes in the report, and no error in the build log. my configuration is: pom.xml: /reporting /plugins plugin !-- Changelog Reports (from SCM) -- groupIdorg.codehaus.mojo/groupId artifactIdchangelog-maven-plugin/artifactId reportSets reportSet iddual-report/id configuration typerange/type range30/range /configuration reports reportchangelog/report reportfile-activity/report reportdev-activity/report /reports /reportSet /reportSets /plugin /plugins /reporting scm connection scm:svn:https://host/svn/sat/pom/trunk/ /connection developerConnection scm:svn:https://host/svn/sat/pom/trunk/ /developerConnection url http://host/viewcvs.cgi/pom/trunk/ /url /scm Any ideas, why the report is empty? thx 4 help R.C. -- View this message in context: http://www.nabble.com/-m2--maven-changelog-plugin---no-changes-in-list-- tf2460389.html#a6857883 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/-m2--maven-changelog-plugin---no-changes-in-list--tf2460389.html#a6871691 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] maven-changelog-plugin - no changes in list?
Hi, I'm currently trying to use the maven-changelog-plugin. But there are no changes in the report, and no error in the build log. my configuration is: pom.xml: /reporting /plugins plugin !-- Changelog Reports (from SCM) -- groupIdorg.codehaus.mojo/groupId artifactIdchangelog-maven-plugin/artifactId reportSets reportSet iddual-report/id configuration typerange/type range30/range /configuration reports reportchangelog/report reportfile-activity/report reportdev-activity/report /reports /reportSet /reportSets /plugin /plugins /reporting scm connection scm:svn:https://host/svn/sat/pom/trunk/ /connection developerConnection scm:svn:https://host/svn/sat/pom/trunk/ /developerConnection url http://host/viewcvs.cgi/pom/trunk/ /url /scm Any ideas, why the report is empty? thx 4 help R.C. -- View this message in context: http://www.nabble.com/-m2--maven-changelog-plugin---no-changes-in-list--tf2460389.html#a6857883 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Single assembly descriptor.xml for several child-projects
Hi, i'm trying to use some assembly descriptor.xml files to generate some jar files (with, without dependencies, ...). My problem is: that i would like to use the same descriptors for all of my child-projects. Currently all of my poms are derived from a parent-pom. i would love, if i could configure all my assemblies in the parent-pom, without the need of configuring the assemblies for each project separatly. the first approach was to make a project for the descriptors, put them all in a jar/zip file, define this file as an extension in the parent-pom, and reference to the descriptors from within the maven-assembly-plugin configuration block. Probleme here is that the descriptors within my jar file are not found. any ideas? thanks R.C. -- View this message in context: http://www.nabble.com/-M2--Single-assembly-descriptor.xml-for-several-child-projects-tf2338848.html#a6508337 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] list of built-in properties
Hi, i'm currently looking for a complete list of built-in properties for Maven2. the only list i could find, was this: http://maven.apache.org/maven-1.x/reference/properties.html which is only for Maven 1.x, and i'm not sure if all of these properties are still valid/used. maybe someone has an actual list for M2? thx 4 help R.C. -- View this message in context: http://www.nabble.com/-M2--list-of-built-in-properties-tf2311429.html#a6426513 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] maven-jxr-plugin
i didn't specify any version in the master POM. reporting plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jxr-plugin/artifactId /plugin /reporting but in my local repository i found: .m2\repository\org\apache\maven\plugins\maven-jxr-plugin\2.0\maven-jxr-plugin-2.0.jar + *.pom + ... thx 4 your help diroussel wrote: What version are you using? I'm using jxr-maven-plugin\2.0-beta-1 and I don't seem to have that problem. CodingPlayer wrote: Hi All, I'm currently trying to get the maven-jxr-plugin running. But there seems to be a bug in the plugIn or something missing in my configuration. The Source Reference Pages are generated (when i run mvn site:site), but the packackge-frame.html and the package-summary.html are stored in a different folder as the class.html files. This problems ends up with missing links to the class.html files. in detail: the package-frame.html... is stored at \target\site\xref\com\company\sub-package but the class.html files are stored at \target\site\xref\java\com\company\sub-package Since i'm new to Maven2, i couldn't find out how to configure the plugIn correctly. I even tried to pass a destDir${project.build.directory}/site/xref/destDir but the problem still occurs. thankful 4 any help R.C. -- View this message in context: http://www.nabble.com/-M2--maven-jxr-plugin-tf2299647.html#a6403861 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] maven-jxr-plugin
thx, for your reply. i just ask myself, is there any project.property that points to the current source directory? Since i'm using a parent POM (where i define my plugIns) and some child-poms that are derived from that parent, i can not declare absolute pathes to the source-directory. i would need something like this: reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jxr-plugin/artifactId configuration sourceDirs${project.compileSourceRoots}/sourceDirs /configuration /plugin /plugins /reporting but the ${project.compileSourceRoots} property doesn't work. i found this property here: http://maven.apache.org/plugins/maven-jxr-plugin/jxr-mojo.html thankful 4 any help Fabrice BELLINGARD wrote: Hi, one guy on this mailing list already had such a case: the problem would come from the fact that he didn't specify his source directory properly in his POM. And you problem is probably the same: I can see that because the generated HTML files are place in the folder \target\site\xref\java. So I guess your POM is not correct. HTH, Fabrice. On 9/19/06, CodingPlayer [EMAIL PROTECTED] wrote: Hi All, I'm currently trying to get the maven-jxr-plugin running. But there seems to be a bug in the plugIn or something missing in my configuration. The Source Reference Pages are generated (when i run mvn site:site), but the packackge-frame.html and the package-summary.html are stored in a different folder as the class.html files. This problems ends up with missing links to the class.html files. in detail: the package-frame.html... is stored at \target\site\xref\com\company\sub-package but the class.html files are stored at \target\site\xref\java\com\company\sub-package Since i'm new to Maven2, i couldn't find out how to configure the plugIn correctly. I even tried to pass a destDir${project.build.directory}/site/xref/destDir but the problem still occurs. thankful 4 any help R.C. -- View this message in context: http://www.nabble.com/-M2--maven-jxr-plugin-tf2299647.html#a6390324 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--maven-jxr-plugin-tf2299647.html#a6409005 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] maven-jxr-plugin
thanks that information helped me out. Simply changed: build sourceDirectorysrc/main/sourceDirectory testSourceDirectorysrc/test/testSourceDirectory /build to: build sourceDirectorysrc/main/java/sourceDirectory testSourceDirectorysrc/test/java/testSourceDirectory /build now everything works fine. Fabrice BELLINGARD wrote: Hi, one guy on this mailing list already had such a case: the problem would come from the fact that he didn't specify his source directory properly in his POM. And you problem is probably the same: I can see that because the generated HTML files are place in the folder \target\site\xref\java. So I guess your POM is not correct. HTH, Fabrice. On 9/19/06, CodingPlayer [EMAIL PROTECTED] wrote: Hi All, I'm currently trying to get the maven-jxr-plugin running. But there seems to be a bug in the plugIn or something missing in my configuration. The Source Reference Pages are generated (when i run mvn site:site), but the packackge-frame.html and the package-summary.html are stored in a different folder as the class.html files. This problems ends up with missing links to the class.html files. in detail: the package-frame.html... is stored at \target\site\xref\com\company\sub-package but the class.html files are stored at \target\site\xref\java\com\company\sub-package Since i'm new to Maven2, i couldn't find out how to configure the plugIn correctly. I even tried to pass a destDir${project.build.directory}/site/xref/destDir but the problem still occurs. thankful 4 any help R.C. -- View this message in context: http://www.nabble.com/-M2--maven-jxr-plugin-tf2299647.html#a6390324 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--maven-jxr-plugin-tf2299647.html#a6409209 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] maven-jxr-plugin
Hi All, I'm currently trying to get the maven-jxr-plugin running. But there seems to be a bug in the plugIn or something missing in my configuration. The Source Reference Pages are generated (when i run mvn site:site), but the packackge-frame.html and the package-summary.html are stored in a different folder as the class.html files. This problems ends up with missing links to the class.html files. in detail: the package-frame.html... is stored at \target\site\xref\com\company\sub-package but the class.html files are stored at \target\site\xref\java\com\company\sub-package Since i'm new to Maven2, i couldn't find out how to configure the plugIn correctly. I even tried to pass a destDir${project.build.directory}/site/xref/destDir but the problem still occurs. thankful 4 any help R.C. -- View this message in context: http://www.nabble.com/-M2--maven-jxr-plugin-tf2299647.html#a6390324 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Oracle JDBC Dependency
Hi, i'm currently looking for the correct dependency (for my pom.xml) to the Oracle JDBC Driver 10.2.0.1.0 (ojdbc14-10.2.0.1.0.jar). I couldn't find it in the central repository (ibiblio). Do i have to install it manually? Or does anyone know if it is hosted somewhere else, and if so, tell me the correct dependency? regards R.C. -- View this message in context: http://www.nabble.com/Oracle-JDBC-Dependency-tf2050925.html#a5649463 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven2 - Where to put script files?
Hi, i just browsed through the standard directory layout for Maven2. http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html here I still could not find out where to put my shell-scripts (batch-files), that for example start my application from the CLI. If anyone knows what is the best practice where to put these additional .bat and .sh files, pls let me know. (Since they are not needed in the classpath, i guess it is wrong to put them into the resources directory.) i would just need them for some assemblies, e.g. an assembly for a LINUX OS would include some shell scripts (.sh), while an assembly for a WINDOWS OS would include some batch files (.bat). Both of them would start up my application/singular services. regards R.C. -- View this message in context: http://www.nabble.com/Maven2---Where-to-put-script-files--tf2033674.html#a5594755 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven2 - Where to put script files?
thx for your reply, but i'm not sure what exactly you mean: project_name/scripts or (since the scripts belong to the whole project) project_name/src/scripts or (since scripts are part of the source) project_name/src/main/scripts and project_name/src/test/scripts (since scripts for runtime and tests should be divided apart) -- View this message in context: http://www.nabble.com/Maven2---Where-to-put-script-files--tf2033674.html#a5596294 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JBuilder Plugin for Maven2
Since im currently migrating all of my projects to Maven2, i ask myself if there is a plugin for the JBuilder X IDE, that supports Maven2. The only thing i could find out is that there exists a plugin for Maven1, which is no longer supported and will not be extended to work for Maven2 as well. http://mevenide.codehaus.org/download.html Now my questions: - Has someone taken over the development of the mevenide plugin? - Has anyone adapted the plugin for him-/herself to get it running for Maven2 projects? - Does anybody know about another plugin that supports Maven2 for the JBuilder X IDE? - If there is no plugin for the JBuilder X IDE available at the moment, how did you (JBuilder Users) manage the problem of configuring the required libraries for a project, without the need of passing the whole local repository as required lib, and need to reload the classpath each time a new dependency is added (and installed into the local rep.) for that project? thx R.C. -- View this message in context: http://www.nabble.com/JBuilder-Plugin-for-Maven2-tf2009003.html#a5519261 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Include Depending JARs (Assembly plugin)
Hi, Since i'm quite new to Maven2 i still haven't found out how to solve all of my questions. I just wonder how do i generate a single JAR, containing all of the dependend JARs declared in the pom.xml. What i mean is, after the build i get my JAR which contains just the class files for my project. But when i would like to deploy it to a third party i want all the necessary libs deployed with my classes, so that the person who uses it, can simply run it without having to download all the JARs him-/herself. So far i found out, that there is a plugin called maven-assembly-plugin. But is it the Best Practice to do so, and if how can i configure that plugin? I might think absolutely the wrong way, and maybe i just need to change some maven settings (e.g. scope), so that all dependend JAR-files are packed within the projects JAR-file. All informations are welcome on this. R.C. -- View this message in context: http://www.nabble.com/Include-Depending-JARs-%28Assembly-plugin%29-tf2009061.html#a5519446 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: findbugs plugin for Maven2
Hi Dennis, thx for your help. i tried what u told me, but still get the following error message: [INFO] [ERROR] FATAL ERROR [INFO] [INFO] org/jaxen/JaxenException [INFO] [INFO] Trace java.lang.NoClassDefFoundError: org/jaxen/JaxenException at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230) at org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207) at org.dom4j.tree.AbstractNode.valueOf(AbstractNode.java:189) at edu.umd.cs.findbugs.PluginLoader.init(PluginLoader.java:125) at edu.umd.cs.findbugs.PluginLoader.init(PluginLoader.java:88) at edu.umd.cs.findbugs.DetectorFactoryCollection.loadPlugins(DetectorFactoryCollection.java:188) at edu.umd.cs.findbugs.DetectorFactoryCollection.init(DetectorFactoryCollection.java:52) at edu.umd.cs.findbugs.DetectorFactoryCollection.instance(DetectorFactoryCollection.java:73) at edu.umd.cs.findbugs.config.UserPreferences.enableAllDetectors(UserPreferences.java:314) at org.codehaus.mojo.findbugs.FindBugsMojo.initialiseFindBugs(FindBugsMojo.java:312) at org.codehaus.mojo.findbugs.FindBugsMojo.executeReport(FindBugsMojo.java:254) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98) at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:73) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav a:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] [INFO] Total time: 10 seconds [INFO] Finished at: Tue Jul 25 11:08:36 CEST 2006 [INFO] Final Memory: 9M/17M [INFO] It seems to me that there is another plugIn missing. I already tried a dependency to xalan, which i read in another post: dependency groupIdjaxen/groupId artifactIdjaxen/artifactId version1.1-beta-8/version scopecompile/scope /dependency but then i get some strange errors: [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure could not parse error message: warning: [path] bad path element C:\Dokumente und Einstellungen\rcerny\.m2\repository\xa lan\xalan\2.6.0\xercesImpl.jar: no such file or directory warning: [path] bad path element C:\Dokumente und Einstellungen\rcerny\.m2\repository\xalan\xalan\2.6.0\xml-apis.jar: no such file or directory [INFO] [INFO] Trace org.apache.maven.BuildFailureException: Compilation failure at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:47 5) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav a:306) at
findbugs plugin for Maven2
Hi all, i currently investigate my time migrating my projects to Maven2. But i still haven't found out how to get the findbugs plugin running. From what i found out, after reading through several posts and google searches, there seem to be 2 different plugIns (i tried them both): there is one at codehaus: http://mojo.codehaus.org/findbugs-maven-plugin/howto.html http://mojo.codehaus.org/findbugs-maven-plugin/howto.html pluginRepositories pluginRepository idcodehaus-snapshot-plugins/id namecodehaus-shapshot-plugins/name url http://snapshots.maven.codehaus.org/maven2//url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /pluginRepository /pluginRepositories reporting plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdfindbugs-maven-plugin/artifactId version1.0-SNAPSHOT/version /plugin /plugins /reporting the other one is at sourceforge: http://maven-plugins.sourceforge.net/maven-findbugs-plugin/index.html http://maven-plugins.sourceforge.net/maven-findbugs-plugin/index.html reporting plugins plugin groupIdmaven-plugins/groupId artifactIdmaven-findbugs-plugin/artifactId version1.0-SNAPSHOT/version /plugin /plugins /reporting Now my questions: - Which one of them is the correct one for Maven2? (correct groupId, artifactId, version PLS) - Where is the correct download location? - Do i need to download (and install it manually) or should it work automatically, like for most of the other plugIns? - How do i exactly configure it correctly, since i get errors for both of them. thx for your help, kindly regards R.C. -- View this message in context: http://www.nabble.com/findbugs-plugin-for-Maven2-tf1992888.html#a5469179 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]