Re: Syncing our repository to the central repository
From [1]: Can I provide a sync for a groupId of a third party project? If the third party project is not willing to provide a repository to sync from, and you are a regular user of Maven and the third party project, the answer is yes. You can set up a repository as if the project were yours (see instructions above). Please create a JIRAhttp://jira.codehaus.org/secure/CreateIssue.jspa?pid=10367issuetype=5issue first describing what you are trying to do and why, and you may be designated the unofficial mantainer of the repository section associated with that project, and you will be responsible of publishing the new releases for that project in your repository if other users request it. You can opt out at any time. I'm about to go this route for Alfresco ECM [2] artifacts. Hope this helps, Gab [1] http://maven.apache.org/guides/mini/guide-central-repository-upload.html [2] http://www.alfresco.com/ 2009/3/23 Filippo De Luca dl.fili...@filosganga.it Hi maven users, It is possible to syncing our repository, to the central repository, also if the repository is hosted at domain different from groupId. The hosting domain is in any case our own. Thank you -- Filippo De Luca -- Email: dl.fili...@filosganga.it -- Gabriele Columbro Alfresco ECM Product Strategy Consultant +31 627 565 103 Sourcesense - Making sense of open Source (http://www.sourcesense.com)
Re: Plugin to validate the class file version of built artifacts?
Maybe you're referring to the maven-enforcer-plugin? [1] I've never used personally so not sure if it can accomplish your goal, but hopefully can help ;) Ciao! Gab [1] http://maven.apache.org/enforcer/enforcer-rules/requireJavaVersion.html 2009/3/17 Ringo De Smet ringo.des...@gmail.com Hello, Our current build system is based on JDK 1.4.2 and Maven 2.0.9. We are in the process of migrating from Continuum to Hudson. Hudson requires Java 1.5 for its Maven2 integration. I already updated the configuration of some of the plugins to make sure that 1.4 compatible bytecode is generated. Before I can really make the switch, I would like to be sure that my JAR files only contain Java 1.4 class files (class file version 48.0). Is anyone aware of a Maven plugin that I can run somewhere near the end of my build which checks the class file version of all classes in my built jar/war/ear files? I have the impression of someone mentioning such support, but I can't find it anymore (Google, mailing list archives) Thanks, Ringo - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Gabriele Columbro Alfresco ECM Product Strategy Consultant +31 627 565 103 Sourcesense - Making sense of open Source (http://www.sourcesense.com)
Re: Profile Inheritance
That is not correct, if I have a project structure like this: A |pom.xml --- B | pom.xml And I define the profile profile1 in A/pom.xml when running : B myuser$ mvn help:active-profiles -Pprofile1 [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'help'. [INFO] [INFO] Building Project B [INFO]task-segment: [help:active-profiles] (aggregator-style) [INFO] [INFO] [help:active-profiles] [INFO] Active Profiles for Project 'com.mycompany:b:jar:0.9.0-SNAPSHOT': The following profiles are active: - profile1 (source: pom) For more info [1] and [2] can also help. HTH, Gab [1] http://maven.apache.org/guides/introduction/introduction-to-profiles.html [2] http://mindthegab.com/2008/12/02/howto-give-your-multimodule-maven-build-subprojectenvironment-specific-behavior/ 2009/3/11 Roman Kournjaev kournj...@gmail.com Hi All I have done a little search on the net , and understood from it that a profile defined in the parent pom cant be explicitly invoked from when running the child pom. It just sound so unbelivable to me! So I just wanted to hear it from you guys too. Thanks in Advance. Roman -- Gabriele Columbro Alfresco ECM Product Strategy Consultant +31 627 565 103 Sourcesense - Making sense of open Source (http://www.sourcesense.com)
Re: Maven Meetup In Amsterdam?
Hi Bas, nice to hear you're coming. Should be no problem not to be subscribed to ApacheCon, since the meetup should be free of charge. Gab 2009/3/6 Kok, Bas b@marktplaats.nl Hi Gabriele, I might come and bring some of my colleagues, will also put the names on the wiki page when confirmed. I'm not planning to attend apachecon though, is that a problem? Cheers, Bas -Original Message- From: Gabriele Columbro [mailto:g.colum...@sourcesense.com] Sent: Thursday, March 05, 2009 10:29 AM To: Maven Developers List; Maven Users List Cc: Rogier Peters; m.pill...@sourcesense.com; nick.stolw...@gmail.com Subject: Re: Maven Meetup In Amsterdam? I'd reallly believe that a Maven Meetup in Amsterdam is a very good idea and a very nice place to share our Maven knowledge, too many times felt by junior developers as highly black magic ;) And for us (Sourcesense) to discuss some of our work in Sourcesense around Maven ALM support [1] and around Alfresco ECM Maven support [2]. Any other maven user/dev interested to join (I'm extending the request to the user list to get some more attendees)? I believe that getting to 15/20~ attendees is to be considered the treshold for organizing this. I will be also forwarding this email to my customers to get more attention around the topic. HTH, Gab [1] http://code.google.com/p/maven-calm [2] http://code.google.com/p/maven-alfresco-archetypes 2009/2/27 Rogier Peters rogier.pet...@gmail.com Hi Petar, Great idea. We're a couple (3-5) developers from Sourcesense NL, based in Amsterdam. We would be interested in coming, and also giving a short talk on Application Lifecycle Management with Maven. Since we're based in Amsterdam, we could also help organizing or drum up some more local developers. @nick you're probably there, more people from IProfs interested? Regards, Rogier On Wed, Feb 18, 2009 at 8:35 PM, Petar Tahchiev paranoia...@gmail.com wrote: Hi guys, I got an email from Arje Cahn with a proposal to make a Maven GetTogether/Meetup during the ApacheCON in Amsterdam. I am very interested in such an event but I do feel that it will only make sense if more of the Maven developers are present at the conference. I know for sure me, Carlos and Wendy are going to be there. Anybody else planning to attend? If we get there more people we can easily setup a wiki page and announce a few sessions there. What do you think? Here is the email from Arje: == Hi all, I'm sending you this email because we've done GetTogethers / Meetups together, or have spoken about them somewhere in the past. If you feel I should be addressing different people, or different projects, I'd be grateful if you could point me to the right project and/or person! :) As you are probably very much aware of, the ApacheCon Europe is in about 7 weeks, in Amsterdam. I got a really nice offer from the ApacheCon producers. The Matterhorn rooms are available in the evenings for Meetup / GetTogether style events. This means we can host up to 3 evening Meetups, from 18:00 - 22:00, with our own program, on Monday evening and Tuesday evening, all within the ApacheCon venue (the Movenpick). Meetups happen after the trainings. This is in my opinion a much better opportunity than we had last year where we were 1) in a different location 2) conflicting with the hackaton 3) conflicting with trainings Grant, I'd love to hear your thoughts from your Lucene perspective. I know last year was unclear and I hope to be able to straighten that out with you this year. We're *not* organizing Lucene meetups without having Lucene people on board :) Potentially, we could have 6 Meetups in total. The rooms can hold up to 100 people each. Wifi, beamers, etc, is all taken care of. The question I have for you all, is whether you think you and / or your project would be interested in filling an evening. Can you organize between 20 and 100 people from your project, and put up an agenda with speakers and talks? Also, we'll have to come up with some sponsors. To give you an idea - last years Meetups were sponsored by 2 to 4 sponsors per project, paying roughly 1000 euro each to cover all costs. These sponsors will then become official ApacheCon Meetup sponsors and get marketed like that on the ApacheCon website. Right now, the planners have asked me to come up with a list of Apache projects that would be interested in the idea. If you're interested, please let me know ASAP, as I need to follow up on Monday to be able to be in time with all the marketing stuff going on around ApacheCon. Hope you like this idea as much as I do! -- Kind regards, Arjé Cahn -- Regards, Petar! Karlovo, Bulgaria. - - - - - - - - | Author @ Manning Publications. | Senior Solution Architect @ Unic | BGJUG-Bulgarian Java
Re: Maven Meetup In Amsterdam?
I'd reallly believe that a Maven Meetup in Amsterdam is a very good idea and a very nice place to share our Maven knowledge, too many times felt by junior developers as highly black magic ;) And for us (Sourcesense) to discuss some of our work in Sourcesense around Maven ALM support [1] and around Alfresco ECM Maven support [2]. Any other maven user/dev interested to join (I'm extending the request to the user list to get some more attendees)? I believe that getting to 15/20~ attendees is to be considered the treshold for organizing this. I will be also forwarding this email to my customers to get more attention around the topic. HTH, Gab [1] http://code.google.com/p/maven-calm [2] http://code.google.com/p/maven-alfresco-archetypes 2009/2/27 Rogier Peters rogier.pet...@gmail.com Hi Petar, Great idea. We're a couple (3-5) developers from Sourcesense NL, based in Amsterdam. We would be interested in coming, and also giving a short talk on Application Lifecycle Management with Maven. Since we're based in Amsterdam, we could also help organizing or drum up some more local developers. @nick you're probably there, more people from IProfs interested? Regards, Rogier On Wed, Feb 18, 2009 at 8:35 PM, Petar Tahchiev paranoia...@gmail.comwrote: Hi guys, I got an email from Arje Cahn with a proposal to make a Maven GetTogether/Meetup during the ApacheCON in Amsterdam. I am very interested in such an event but I do feel that it will only make sense if more of the Maven developers are present at the conference. I know for sure me, Carlos and Wendy are going to be there. Anybody else planning to attend? If we get there more people we can easily setup a wiki page and announce a few sessions there. What do you think? Here is the email from Arje: == Hi all, I'm sending you this email because we've done GetTogethers / Meetups together, or have spoken about them somewhere in the past. If you feel I should be addressing different people, or different projects, I'd be grateful if you could point me to the right project and/or person! :) As you are probably very much aware of, the ApacheCon Europe is in about 7 weeks, in Amsterdam. I got a really nice offer from the ApacheCon producers. The Matterhorn rooms are available in the evenings for Meetup / GetTogether style events. This means we can host up to 3 evening Meetups, from 18:00 - 22:00, with our own program, on Monday evening and Tuesday evening, all within the ApacheCon venue (the Movenpick). Meetups happen after the trainings. This is in my opinion a much better opportunity than we had last year where we were 1) in a different location 2) conflicting with the hackaton 3) conflicting with trainings Grant, I'd love to hear your thoughts from your Lucene perspective. I know last year was unclear and I hope to be able to straighten that out with you this year. We're *not* organizing Lucene meetups without having Lucene people on board :) Potentially, we could have 6 Meetups in total. The rooms can hold up to 100 people each. Wifi, beamers, etc, is all taken care of. The question I have for you all, is whether you think you and / or your project would be interested in filling an evening. Can you organize between 20 and 100 people from your project, and put up an agenda with speakers and talks? Also, we'll have to come up with some sponsors. To give you an idea - last years Meetups were sponsored by 2 to 4 sponsors per project, paying roughly 1000 euro each to cover all costs. These sponsors will then become official ApacheCon Meetup sponsors and get marketed like that on the ApacheCon website. Right now, the planners have asked me to come up with a list of Apache projects that would be interested in the idea. If you're interested, please let me know ASAP, as I need to follow up on Monday to be able to be in time with all the marketing stuff going on around ApacheCon. Hope you like this idea as much as I do! -- Kind regards, Arjé Cahn -- Regards, Petar! Karlovo, Bulgaria. - - - - - - - - | Author @ Manning Publications. | Senior Solution Architect @ Unic | BGJUG-Bulgarian Java User Group Leader. | Apache Maven Developer. | Apache Jakarta PMC member. | Jakarta Cactus Lead Developer. | Codehaus Plexus Developer | Blogger: http://weblogs.java.net/blog/paranoiabla/ - - - - - - - - Public PGP Key at: https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611 Key Fingerprint: A369 A7EE 61BC 93A3 CDFF 55A5 1965 8550 C311 0611 -- Rogier Peters rog...@twitter, flickr, delicious -- Gabriele Columbro Alfresco ECM Product Strategy Consultant +31 627 565 103 Sourcesense - Making sense of open Source (http://www.sourcesense.com)
Re: Plugin calling shell script
What about packaging another jar which holds your script (s) (e.g. mojo-scritps.jar) and add this in the specific plugin dependencies section, something like: plugin dependencies dependency artifactIdmojo-scripts.jar/artifactId /dependency /dependencies /plugin Would this solve your problem? (not sure if I completely understood the problem) HTH, Gab 2009/1/29 Pankaj Tandon pankajtan...@gmail.com Hello, I have written a plugin that uses Wagon to remotely execute a command on a remote machine. But now I find that instead of executing a simple unix command, I need to execute a whole shell script. So I created a shell script and placed it in src/main/resources, so that it correctly gets bundled in the root of my plugin jar. However, the problem is that how do users of my plugin get at that shell script. My users have configured my plugin in their poms. The corporate maven repo holds my plugin jar also. But when they run the mvn command, and my plugin is dutifully downloaded from the corporate maven repo to their local repo. From there, however, things don't work. The plugin cannot find the shell script because altho the shell script is in the plugin jar (in their local repo), it is not in the classpath of the maven execution. So how do I invoke a shell script that is bundled as a part of the plugin? I even tried URL url = MultiplexerMojo.class.getResource(sql.bash); but url evaluates to null because sql.bash is not found (because the plugin jar is not in the cp). Is there anyway I can use plexus to inject the sql.bash into my plugin? Or somehow add to the classpath that is examined by maven ? Any help will be much appreciated! Thanks, Pankaj -- View this message in context: http://www.nabble.com/Plugin-calling-shell-script-tp21727380p21727380.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 -- Gabriele Columbro Alfresco ECM Product Strategy Consultant +31 627 565 103 Sourcesense - Making sense of open Source (http://www.sourcesense.com)
Re: ${pom.version} without the SNAPSHOT part.
Probably off topic as the issue is solved, but wanted to share my experience with you, as I found myself in the same need stated on the title of this thread. __Problem: - Due to an issue with the specific product I'm working on (Alfresco) for which its Alfresco Module Packages (no more than a type of Zip for which I defined a custom packaging type AMP) do not allow 'characters in the versions', - due to the fact I defined archetypes for AMP [3] packaging and want to use the filtering and SNAPSHOT capabilities of maven (read: filter ${project.version} into the technology specific module.properties file) I was unable to use SNAPSHOT versions in my AMP projects as they were breaking the runtime configuration (as in issue [4]). __Solution: An aggregated use of the: - maven-buildnumber-plugin (which pushes the ${buildNumber} variable in the POM - my homebrew 5 liner mojo (maven-nosnapshot-plugin in our repo here [2], as trivial as non documented) which just strips out the '-SNAPSHOT ' part of the version in case it exists and pushes it in the pom as ${noSnapshotVersion} This way I could filter my module properties with something like: module.version=${noSnapshotVersion}.$[buildNumber} avoiding the Alfresco specific problem while still keeping incremental versions (mimicking the SNAPSHOT behavior) of the modules during development. My 0.02€ (even if I admit that's a workaround ;) Ciao! Gab [1] http://www.alfresco.com [2] http://repository.sourcesense.com/maven2/com/sourcesense/maven/maven-nosnapshot-plugin/0.0.3-SNAPSHOT/ [3] http://repository.sourcesense.com/maven2-sites/maven-alfresco-amp-archetype/ [4] http://code.google.com/p/maven-alfresco-archetypes/issues/detail?id=15 2009/1/26 Thiago Moreira (timba) tmoreira2...@gmail.com Ok, I found the solution! To add the Eclipse plugins to the Maven repository you should use the maven-eclipse-plugin for it. The goal is eclipse:make-artifacts http://maven.apache.org/plugins/maven-eclipse-plugin/make-artifacts-mojo.html Cheers On Sun, Jan 25, 2009 at 1:05 PM, Thiago Moreira (timba) tmoreira2...@gmail.com wrote: Okay, I found the problem! Eclipse don't accept - on the name of the artifacs... so I changed the name to 1.2.3.SNAPSHOT and now I'm good to go. Another question, how can I reference a Eclipse dependency in the pom file?? Like org.eclipse.core.resources?? Cheers On Sun, Jan 25, 2009 at 8:44 AM, Rusty Wright rusty.wri...@gmail.com wrote: If I understand that OSGi version grammar, doesn't that mean that 1.2.3-SNAPSHOT is an invalid OSGi version number? I.e., only periods are allowed between the version parts, no dash, and there should be three periods, not two. E.g., 1.2.3.SNAPSHOT. Does the maven OSGi plugin transform the maven style version number to the OSGi style when creating the bundle/jar? I was reading about OSGi over the winter break and it looks like the answer for various problems. Baptiste MATHUS wrote: I don't think it is. But I'm not sure I understand what you want to do. If you're trying to build an eclipse plugin jar from some project, you shouldn't do it yourself. There's tools out there that will do it just fine: have a look at tycho, maven-bundle-plugin, or maven-pde-plugin (this last one is quite outdated, from what I remember). These tools will deal just fine with your version number. Fwiw, here's the OSGi versioning grammar: version::=major('.'minor('.'micro('.'qualifier)?)?)? major::=digit+ minor::=digit+ micro::=digit+ qualifier::=(alpha|digit|'_'|'-')+ digit::=[0..9] alpha::=[a..zA..Z] There must be no whitespace in version. Cheers 2009/1/25 Thiago Moreira (timba) tmoreira2...@gmail.com Hi there, Is there a way to get only the numbers of the ${pom.version} property?? Something like this: 1.2.3-SNAPSHOT, I want just the 1.2.3 part.I will use it to build a Eclipse plugin that don't accept Strings on the version property. Thanks Thiago Moreira - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Gabriele Columbro Alfresco ECM Product Strategy Consultant +31 627 565 103 Sourcesense - Making sense of open Source (http://www.sourcesense.com)
Re: How to install Maven plugins locally
2009/1/15 Guofeng Zhang guof...@radvision.com It would be simpler if you could install a Maven Repository Management in your Intranet, or copy the local repository from one machine to the build machine, then run maven offline. I agree with Zhang, this is the typical scenario for a Maven repository manager which proxies your calls to the internet. As an example, I'm having very good experiences with Nexus from Sonatype [1]. Isn't this an option? Hope this helps, Gab [1] http://nexus.sonatype.org/ -Original Message- From: Thummala, Sandhya [mailto:sandhya.thumm...@ca.com] Sent: Thursday, January 15, 2009 1:20 PM To: users@maven.apache.org Subject: How to install Maven plugins locally Hi All, I am using maven-surefire-report-plugin to generate unit test reports. Is there a way to install maven plugins locally? To explain further, if my build machine doesn't have internet access, I download the maven plugins that are required to run the reports manually, then install each of these plugins on the build machine using install-file goal, then use it to generate sure-fire reports. I tried doing this, maven-surefire-report-plugin is installed in my local repository using mvn install, but while executing the build, maven is not able to find this plugin. I am getting following error: [exec] [ERROR] BUILD ERROR [exec] [INFO] [exec] [INFO] The plugin 'org.apache.maven.plugins:maven-surefire-report-plugin' does not exist or no valid version could be found Any pointers would be appreciated. Thanks Sandhya Thummala - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Gabriele Columbro Alfresco ECM Product Strategy Consultant +31 627 565 103 Sourcesense - Making sense of open Source (http://www.sourcesense.com)
Re: Limiting Plugin Inheritence
. We've been developing an enterprise application in eclipse and have the following projects: projectname-beans (all session beans and dependent classes) projectname-entities (all jpa entities) projectname-lib (all remote interfaces and dto objects) projectname-client-api (the api that clients program against using dto) projectname-core (the ear definition) projectname-parent (the maven parent project) currently I have just about everything working (i think). i can build, test, and package just fine. i can even deploy the ear to glassfish using the glassfish plugin but this is where i'm trying to make some improvements to the build and coming up short... directory structure: projectname-parent/ projectname-beans/ projectname-entities/ projectname-lib/ projectname-client-api/ projectname-core/ beans, entities, lib, client-api, core are all modules or parent. I'm trying to define the glassfish plugin in the parent pom and be able to run: projectname-parent mvn glassfish:deploy and have it deploy the projectname-core.ear after succesfully deploying the ear it then tries to run the glassfish:deploy goal on each module (client-lib, api, beans, entites) which fails. (well, actually deploy doesn't fail - it doesn't do anything...but glassfish:undeploy does fail. in reality, the main problem is that glassfish plugin is running against all modules) how can I define a plugin in the parent that does not run against each child module? snip of parent pom: !-- parent pom snippet -- project ... build plugins plugin groupIdorg.glassfish.maven.plugin/groupId artifactIdmaven-glassfish-plugin/artifactId version2.1/version configuration glassfishDirectory${glassfish.home}/glassfishDirectory domainDirectory${dev.domain.dir}/domainDirectory autoCreatefalse/autoCreate echofalse/echo tersefalse/terse interactivefalse/interactive useradmin/user passwordFile${dev.domain.dir}/${dev.domain.name }/dev-domain-pw-file/passwordFile domain name${dev.domain.name}/name adminPort4848/adminPort httpPort8080/httpPort httpsPort8443/httpsPort iiopPort3700/iiopPort jmsPort7676/jmsPort /domain components component name${projectname.core.name}/name artifact${projectname.core.name}/${project.build.directory}/${ projectname.core.name}-${project.version}.ear/artifact /component /components /configuration /plugin /plugins /build ... /project -- View this message in context: http://www.nabble.com/Limiting-Plugin-Inheritence-tp20778618p20778618.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] -- Gabriele Columbro Alfresco ECM Product Strategy Consultant +31 627 565 103 Sourcesense - Making sense of open Source (http://www.sourcesense.com)
Re: Deploymen in Websphere via maven
Cargo JSR88 support has not yet been released. This issue http://jira.codehaus.org/browse/CARGO-147 seems to suggest (see last comment) that the WS 6.1 support can be achieved trough the patches attached to the other JSR88 related deployment issue ( http://jira.codehaus.org/browse/CARGO-146). For more info you may refer to : http://cargo.codehaus.org/JSR88 (where it says this support is not yet released) HTH, Gab 2008/11/27 Baeriswyl Kuno - Extern (IT-BA-MV) [EMAIL PROTECTED] there is a was6-plugin available that uses wsadmin under the hood. K -Ursprüngliche Nachricht- Von: Markus Jostock [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 27. November 2008 10:05 An: users@maven.apache.org Betreff: Deploymen in Websphere via maven Hi Would anyone happen to have a good example of how to use maven in order to deploy a generated WAR file in a (possibly remote) instance of IBM Websphere 7.0 ? (cargo-plugin or somenthing else) Any help would be welcome, since the IBM's wsadmin tool is not really a good solution ... Many thanks! Markus - 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] -- Gabriele Columbro Alfresco ECM Product Strategy Consultant +31 627 565 103 Sourcesense - Making sense of open Source (http://www.sourcesense.com)
Re: Jetty Plugin Heap Size
As a fast copy paste example, this is the line I use for running my Alfresco Maven powered projects (a 70MB webapp): MAVEN_OPTS=-Xms256m -Xmx512m -XX:PermSize=128m mvn jetty:run HTH, Gab 2008/11/26 Brett Porter [EMAIL PROTECTED] It runs within the same VM, so the standard MAVEN_OPTS variable used before Maven works. - Brett On 25/11/2008, at 6:36 AM, David C. Hicks wrote: Is there a way to control the heap size for the Jetty Plugin? I've been looking, but I don't see anything. Thanks, Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Brett Porter [EMAIL PROTECTED] http://blogs.exist.com/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gabriele Columbro Alfresco ECM Product Strategy Consultant +31 627 565 103 Sourcesense - Making sense of open Source (http://www.sourcesense.com)
Re: cargo and jboss. ERROR
AFAIK you need to specify the plugin version, unless the plugin resides in the groupId: org.apache.maven.plugins If adding the version (e.g. 1.0-beta-1 as latest in http://repo2.maven.org/maven2/org/codehaus/cargo/cargo-maven2-plugin/ ) does not help, then I'm stuck ;) Hope this helps, Gab 2008/11/25 [EMAIL PROTECTED] hello i am one mavien multiproject that has 2 web modules, 2 jar modules. into the ear module i have add the next but when i made mvn install apears the bellow error. Can you help me for solving this problem? thanks plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId configuration container containerIdjboss4x/containerId !--home${jboss.home}/home-- appendfalse/append /container configuration typeexisting/type home${jboss.home}\server\default/home properties cargo.logginghigh/cargo.logging cargo.rmi.port1099/cargo.rmi.port cargo.jboss.configurationdefault/cargo.jboss.configuration /properties /configuration deployer typeinstalled/type deployables deployable groupId${pom.groupId}/groupId artifactId${pom.artifactId}/artifactId type${pom.packaging}/type /deployable /deployables /deployer /configuration executions execution idstart-container/id phasepre-integration-test/phase goals goalstart/goal /goals /execution execution idstop-container/id phasepost-integration-test/phase goals goalstop/goal /goals /execution /executions /plugin /plugins /build properties jboss.homeC:\Ekirol\jboss-4.2.2.GA/jboss.home jboss.port8080/jboss.port /properties ###ERROR [INFO] [war:war] [INFO] Packaging webapp [INFO] Assembling webapp[myAppAdminWeb] in [C:\myApp\aplicacion\myApp\myAppAdminWeb\target\myAppAdminWeb] [INFO] Processing war project [INFO] Webapp assembled in[15 msecs] [INFO] Building war: C:\myApp\aplicacion\myApp\myAppAdminWeb\target\myAppAdminWeb.war [INFO] [install:install] [INFO] Installing C:\myApp\aplicacion\myApp\myAppAdminWeb\target\myAppAdminWeb.war to C:\Documents and Settings\user\.m2\repository\myAppGroup\myApp\ myAppAdminWeb\1.0\myAppAdminWeb-1.0.war [INFO] [INFO] Building myAppEar [INFO]task-segment: [install] [INFO] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.codehaus.cargo:cargo-maven2-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 4 seconds [INFO] Finished at: Tue Nov 25 13:10:07 CET 2008 [INFO] Final Memory: 13M/24M [INFO] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gabriele Columbro Alfresco ECM Product Strategy Consultant +31 627 565 103 Sourcesense - Making sense of open Source
Re: Release and Test version of same artifact...
I believe you should/could happily achieve what you need by attaching another WAR to your build using the maven-build-helper-plugin as described here: http://mojo.codehaus.org/build-helper-maven-plugin/usage.html Just configure: 1. maven-war-plugin execution (id=release) for the main WAR . This is the main artifact of your build and gets deployed with no classifier (only mywebapp.war) 2. maven-war-plugin execution (id=test) for the test WAR 3. Configure the build number plugin (order in POM *is* important, so after the war execution 'test') to pick up the WAR produced by the 2nd execution and attach it to the deployed artifacts (configure classifier = 'test' ) Hope this helps, Gab 2008/11/25 Raffaele [EMAIL PROTECTED] Hi all, I'm looking for a maven solution to do the following: I have a web-app, and so a war, containing some resource files, like repository.xml, hibernate.cfg etc... I've done two profiles, one for release and one for test which respectively put inside final war release resources and test resources Now, I would like to deploy my app, in two different folder, accordingly the executed profile, example: [url my repository]/my-webapp/release/my-webapp-release.war AND [url my repository]/my-webapp/test/my-webapp-test.war I have looked into documentation but I wasn't able to find any solution... Thanks in advance and best regards Raffaele Gambelli -- View this message in context: http://www.nabble.com/Release-and-Test-version-of-same-artifact...-tp20678109p20678109.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] -- Gabriele Columbro Alfresco ECM Product Strategy Consultant +31 627 565 103 Sourcesense - Making sense of open Source
Re: pom properties
I've noticed OS dependent effects in the expansion of such properties (I often saw also 'pom.*' notation used) . The one which IMHO seems to always work is though: ${project.*} HTH, Gab 2008/11/25 Randy Kamradt [EMAIL PROTECTED] There has been some confusion in the past about accessing pom properties using the ${} notation. I know that to access the project version you should use ${project.version}. But for pom defined properties is the project prefix required? for instance, in a pom.xml: properties one1/one /properties ${project.one} or ${one} either seems to work, but is there a preferred method? -- Gabriele Columbro Alfresco ECM Product Strategy Consultant +31 627 565 103 Sourcesense - Making sense of open Source
[ANNOUNCEMENT] - Alfresco AMP Plugin 2.0.0 released
The Alfresco AMP Plugin team is pleased to announce the maven-amp-plugin-2.0.0 release! This plugin defines a lifecycle for Alfresco ECM Modules packaging (.amp), handles AMP transitive dependencies from AMP and WAR projects, providing a more enterprise oriented support alternative to the Alfresco MMT (module management tool) usage. It is used by maven-alfresco-amp-archetype in order to package and test run an AMP and by the maven-alfresco-extension-archetype to depend transitively upon AMPs and WARs. It is a modification of the org.apache.maven.plugins:maven-war-plugin of which it uses the whole core infrastructure. Changes in this version include: New features: o Added documentation at http://wiki.alfresco.com/wiki/Managing_Alfresco_Lifecyle_with_Maven o Now consistent maven plugin properties usage and support for AMP overlays and full AMP lifecycle o Added UnArchiver to mimic MMT behavior. Not needed anymore as AMPs gets properly unpacked into a WAR artifact. o Added plugin site documentation o Deployed on maven repository: http://repository.sourcesense.com/maven2/org/alfresco/maven/plugins -- Gabriele Columbro Sourcesense - Making Sense of Opensource (+39) 3201612846 (+31) 627565103 Open Source Software Engineer (http://www.mindthegab.com) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANNOUNCEMENT] - Maven alfresco Extension archetype 1.1.0 released
The Maven alfresco Extension archetype team is pleased to announce the maven-alfresco-extension-archetype-1.1.0 release! This archetype developed aims to provide a standardized approach to development, release and deployment of Alfresco extensions (as opposed to AMP builds, to be released as a different artifact ). Using standard m2 lifecycle commands (mvn compile package deploy) and generally available plugins (cargo, release, assembly) we are able to cover a very high percentage of Alfresco lifecycle common use cases. It can be used both with Maven2 and Ant build systems, but it must be clear that *only* the Maven2 approach provides all the automation features we will describe in this website. In addition to that the m2 approach provides a zero-conf approach while ant requires (as usual) manual gathering and selection of required alfresco libraries and webapp (please refer to README-ant.txt for further info about the Ant build). Last but not the least, m2 build is more likely to be maintained and improved (especially in the likely case Alfresco moves to maven2). For more details on the m2 apprach please refer instead to README Section (or directly and to README-m2.txt of the generated project). Changes in this version include: New features: o Added documentation at http://wiki.alfresco.com/wiki/Managing_Alfresco_Lifecyle_with_Maven o Added full AMP lifecycle management. Have fun! -Maven alfresco Extension archetype team -- Gabriele Columbro Sourcesense - Making Sense of Opensource (+39) 3201612846 (+31) 627565103 Open Source Software Engineer (http://www.mindthegab.com) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANNOUNCEMENT] - Maven Alfresco Amp Archetype 1.0.0 released
The Maven Alfresco Amp Archetype team is pleased to announce the maven-alfresco-amp-archetype-1.0.0 release! This archetype aims to provide a standardized approach to development, release and deployment of Alfresco AMPs (as opposed to Alfresco extensions, released as a different artifact ). Using standard m2 lifecycle commands (mvn compile package deploy) and generally available plugins (cargo, release, assembly) we are able to cover a very high percentage of Alfresco lifecycle common use cases. You are able within minutes to have a compatible AMP module built and its lifecycle supported by Maven, in a fully transparent way also with open source available AMPs. Changes in this version include: New features: o Added documentation at http://wiki.alfresco.com/wiki/Managing_Alfresco_Lifecyle_with_Maven o Added full AMP lifecycle management -- Gabriele Columbro Sourcesense - Making Sense of Opensource (+39) 3201612846 (+31) 627565103 Open Source Software Engineer (http://www.mindthegab.com) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] maven-alfresco-extension-archetype 1.0.0 released
Hi devs, hi users, my first post on maven lists (after several months in read only mode) to announce the release under Apache2 license of an archetype to build Alfresco [1] customizations with maven2. It was developed within Sourcesense [2] and provides the framework with a full m2 based lifecycle management. You can find it on Alfresco forge here [3] or documented on Sourcesense repositories here [4]. As some of you may know, Alfresco is gaining a very nice market position with respect to the (even commercial) Enterprise Content Management alternatives and it's based on all opensource components, so we thought m2 could make a real improvement in the development and delivery of Alfresco (and the debate is lively on Alfresco forums, see [5] and [6]). That's why we decided to put effort in hosting a m2 repo layout for this project (which still not builds with maven) and provide it with all the (genius, have to say that :) capabilities that m2 provides for managing the whole application lifecycle (especially in enterprise contexts). Basically this archetype provides (with zero conf remote creation hosted in SS mvn repositorites) the following features amongst others: - Property filtering - Rapid prototyping (common properties already available to the - junior - developer rather than Spring conf files) - Releasing - Documentation site - LDAP configuration samples - Local/remote deploy on tomcat/jboss with cargo - jetty embedded run - ant support: ant mimics 'mvn package' behavior and produces a customized war which represents to me a great added value to manual procedures and ant based scripts (ant is supported anyways). The archetype has launched in the Alfresco community pretty recently so we'll see which feedback it can get, but it was to me a really important use case to prove maven flexibility and feasibility especially for complex environments: now the next steps will be to push Alfresco to build itself with maven, as ATM customization dependencies (WAR and JAR) are not produced by a m2 build process. Wrapping up, I'm writing (cross-posting actually, sorry for that) to both lists for : - users : if any Alfresco developer/partner gets interested and wants to provide feedback/suggestions on this one. Any help/comment would be delightful :) BTW, Source code is released together with archetype jar here [7], but an SCM will be opened soon in Alfresco forge (or Sourcesense repositories). - devs : to notify them of a possible typical complex maven use case (similar to the Apache Cocoon m10n which I followed pretty close) and maybe to see if there's still the possibility of a brief (BOF or Fast feather) talk about this experience / success story at the ongoing ApacheCon (I'm based in Netherlands). I will file the super late request to the organizers, but as a mere suggestion, do you think anyone can be interested at all? ;) Thanks and hope this helps. BTW, as per my first post, keep on the wonderful work you've been doing. Maven is an awesome piece of software. Ciao! Gabriele PS: Should this mail be sent to the announce mailing list or that's maven releases specific? [1] Opensource Enterprise Content Management - http://www.alfresco.com [2] Sourcesense - Making sense of opensource - http://www.sourcesense.com [3] http://forge.alfresco.com/projects/m2alfresco/ [4] http://repository.sourcesense.com/maven2-sites/maven-alfresco-extension-archetype-1.0.0/ [5] Maven for building Alfresco - http://forums.alfresco.com/viewtopic.php?f=14t=7619p=39188#p39188 [6] Library conventions - http://forums.alfresco.com/viewtopic.php?f=10t=1017p=39172#p39172 [7] http://repository.sourcesense.com/maven2/com/sourcesense/alfresco/maven-alfresco-extension-archetype/1.0.0 -- Gabriele Columbro Sourcesense - Making Sense of Opensource (http://www.sourcesense.com) (+39) 3201612846 (+31) 627565103 Open Source Software Engineer - ECM Specialist (http://www.mindthegab.com) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]