Re: how to find group/artifactId for org.apache.http.client.methods.HttpPost
2015-03-16 10:39 GMT+01:00 Lin Ma lin...@gmail.com: A newbie question, how to find how to find group/artifactId for org.apache.http.client.methods.HttpPost. http://mvnrepository.com looks does not support for search for Class and Java package name? Thanks. Hello, use the official repository search engine: http://search.maven.org/#advancedsearch%7Cgav Antonio
Re: Plugin to invoke SQLLDR
2014-07-02 10:57 GMT+02:00 hanuman hanumannallap...@gmail.com: Thanks For your response Martin. https://www.google.it/search?q=martin+gainty+bot Have fun :-D Antonio
Re: Are skinny WARs still recommended?
2014-02-27 17:05 GMT+01:00 Martin Hoeller mar...@xss.co.at: I have another concrete example with a single WAR where OmniFaces is a dependency by the WAR and by some EJB JAR, both contained in the EAR. The OmniFaces JAR goes in the EARs lib folder and thus OmniFaces ist not fully usable without workarounds. See also my question on StackOverflow: http://stackoverflow.com/questions/22046464/how-to-correctly-use-omnifaces-in-an-ear Hi, the real question is: why do you want to use a JSF-specific library inside an EJB? I strongly suggest to avoid it. Antonio
Re: Are skinny WARs still recommended?
2014-02-27 17:26 GMT+01:00 Martin Hoeller mar...@xss.co.at: On 27 Feb 2014, Antonio Petrelli wrote: 2014-02-27 17:14 GMT+01:00 Martin Hoeller mar...@xss.co.at: On 27 Feb 2014, Antonio Petrelli wrote: 2014-02-27 17:05 GMT+01:00 Martin Hoeller mar...@xss.co.at: I have another concrete example with a single WAR where OmniFaces is a dependency by the WAR and by some EJB JAR, both contained in the EAR. The OmniFaces JAR goes in the EARs lib folder and thus OmniFaces ist not fully usable without workarounds. See also my question on StackOverflow: http://stackoverflow.com/questions/22046464/how-to-correctly-use-omnifaces-in-an-ear Hi, the real question is: why do you want to use a JSF-specific library inside an EJB? OmniFaces is a JSF library but not UI component focused like RichFaces. It hast some really nice classes like BeanManager that could be useful outside a JSF application. If it's really BeanManager or few classes that you need, I suggest to use the Shade plugin, to create an artifact with one (or few) classes, possibly moved to another package: http://maven.apache.org/plugins/maven-shade-plugin/examples/class-relocation.html I was already thinking of this :) However, I felt like there would be something wrong with this approach, as I usually just need to declare a dependency when I want to use a library. Not repackage it and include the classes twice in the EAR. In fact what I proposed is a workaround. Probably you could collaborate with OmniFaces to split the library into a common jar and a JSF-specific jar, so that the common can be safely put in the EAR. Antonio
Re: Tiles dependencies needed for Maven (UNCLASSIFIED)
Please ask the Tiles mailing list. Antonio 2013/2/12 Carter, Isaac S CTR USARMY HRC (US) isaac.s.carter@mail.mil Classification: UNCLASSIFIED Caveats: NONE Does anyone have a list of the dependencies necessary to use Tiles with Spring? Isaac Classification: UNCLASSIFIED Caveats: NONE
Re: How write maven plugin to read *.java (all sources) and generate some output?
2012/7/25 e92-33...@seznam.cz: Hm... i thought that I have found 2 candidates - javadoc plugin or source plugin. But when I have made checkout and seen plenty of classes and code... I think i will not understand it until next year :( isnt there any easy way how to go thru all source files and read lines? Take a look at Maven Autotag Plugin, of Tiles project: http://svn.apache.org/repos/asf/tiles/autotag/trunk/maven-autotag-plugin/ The CreateDescriptionMojo scans Java files, parsing them with qdox, to create a description XML file. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: migrating from Eclipse to a Maven build
2012/6/7 Ronald Albury ronalb...@gmail.com: I have the project layout pretty clean - with one artifact per project (jar library, executable jar, war/ear). There are three top level applications that come out of the workspace - an ear and two runnable jar files. The jar libraries are shared across the three applications. I have heard rumors that Maven will object to this sort of layout ... I'd be interested in your opinion on that subject. Don't care about those rumours, they must be Ant users :-D Seriously, the fact that you have alread one artifact per project it's a nice start. All you have to do is create a project of time pom to rule them all, and then a module for each artifact. The type of the modules must match the type of your project (jar, ear, war). Dependencies between modules are just like the other dependencies. However I disagree with Ron, once you move to Maven, you'd better move in a clean way, so it's better to move directory as the Maven standard layout suggests. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: convert Ant script to Maven
2012/5/10 chavanmukeshp mukesh.cha...@igate.com Hello Friends, Can you please suggest me how to convert below ant target into maven, target name=InitialiseContext java classname=quot;com.exceptions.ExceptionHandlerquot; lt;arg value=”initializeContext”lt;/ arg value=${bldReqPath}/ /java /target No straight conversion, but I suppose you need the Exec Maven plugin: http://mojo.codehaus.org/exec-maven-plugin/ Antonio
Re: How can Maven be used to prepare a complex, multi-module JavaEE app for release
2012/1/10 Glenn Silverman gsilver...@dispensingsolutionsinc.com Why not use the maven-release-plugin to eliminate the manual process, you might wonder? Great, then I have to modify each POMs scm element whenever I do a SNAPSHOT-to-RELEASE, and, unless I use module inheritance in my POMs at some point, the release plugin isn't going to recurse through all of the changed modules for me. I think you answered yourself. Move to a multi-module POM+. Moreover, you wrote about a complex application made up of several wars, besides other artifacts. Do you mean that, in the end, you have a single EAR? Antonio
Re: Adding a line in the MANIFEST.MF with maven3
2011/12/19 Oliver Zemann oliver.zem...@googlemail.com I dont want to change so much in the pom.xml, because i am new to maven and dont want to kill it, so i hoped there is something like just add this line and its done ;) It's wrong. It's better to use the correct Maven plugin. There's a great probability that the IDE will recognize it (I am pretty sure of it in Eclipse, but NetBeans was one of the first adopters of Maven). Moreover I noticed that you are using Felix for a thing that, sincerely, I cannot be able to read. Did you try using the Felix Maven plugin? http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html Antonio
Re: maven project with xml packaging
2011/8/30 frank vestris frank.vest...@gmail.com Hi Antonio, i have not written any plugin What is this xml packaging then? Antonio
Re: maven project with xml packaging
2011/8/29 frank vestris frank.vest...@gmail.com I would like to have a maven project where the packaging is xml (or another file type). Is it possible ? What do you mean by xml packaging? Did you write a plugin to manage it? Antonio
Re: Skip Resources for War
2011/7/6 Yuvaraj Vanarase yuvaraj.vanar...@synechron.com I have few XML files under src/main/resources. The project packging is War. I would like to avoid these files getting into War file. I could exclude them from being part of target/classes by using resources exclude inside build tag. Any clue how to skip them for war? Resources in src/main/resources will be put in WEB-INF/classes and they can be excluded like you did for Jar-packaged projects. Did you try it? Didn't it work? Antonio
Re: maven-gwt-plugin?
2011/5/26 Justin Edelson jus...@justinedelson.com Is this the first time Martin has posted a new thread to the list? IIRC, he has just been posting replies. I fear this means that SkyNet is coming... Surely it's not first, but you can count them on fingers of one hand. Antonio
Re: maven-gwt-plugin?
2011/5/26 Martin Gainty mgai...@hotmail.com as long as i can keep ahnold away from cyberdyne systems corp Surely it's the first time he's got some sense of humour :-D Antonio
Re: maven-gwt-plugin?
2011/5/26 Martin Gainty mgai...@hotmail.com anyone have 6 digit precision GPS lat/long coords for Tripoli? Only 4 digits sorry: 32.8761, 13.1876 I'm curious to see what happens next... Antonio
Re: How to compile twice
2011/5/25 Claves Do Amaral claves.doama...@iggroup.com -Original Message- From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] STOP FIGHTING MAVEN :) I will take the risky way, like Prometheus, and pay the consequences of my hubris. I hope that Maven will have mercy on me. Not much, Maven is very angry about it :-D Anyway, did you try, at least, to see if you can do a multimodule build? If not, what problems are you encountering in this step? Antonio
Re: How to compile twice
2011/5/25 Ron Wheeler rwhee...@artifact-software.com On 25/05/2011 10:58 AM, David McCabe wrote: In that case, how does one handle a single module build that produces multiple artefacts? Is this 'not the Maven way'? What about multi-platform builds? What about multiple output types (header files, DLLs, import libraries and JNI JARs)? I'm getting very confused by this, because the 'Maven way' seems to indicate that I should have the following: imaging-core-win32-x86-dll imaging-core-win32-x86-lib imaging-core-win32-x64-dll imaging-core-win32-x64-lib imaging-core-osx-x86-so imaging-core-osx-x64-so imaging-core-linux-glibc22-x86-so imaging-core-jar imaging-core-includes ... as separate *modules* and then build each of these separately, rather than simply building several things with different classifiers. That is a nightmare. Maven must surely be suitable for more than collections of JARs. What have I missed? In what sense is this a nightmare? You have to be smart about how you build up your application but in the end you have a neat structure that is easy to maintain since all of the Win32-x86 code is in one place and the windows version maintainer/developer does not have to worry about the core and includes since they are generic and can not break the linux or osx versions accidently. I disagree here. The concept of architecture is well established in the native compilation world. This is a thing that Maven does not understand, at least natively. IMHO the classifier could be used in this use case, and it is in fact used, for example, in maven-retrotranslator-plugin to provide Java 1.4-compatible packages of the same artifact. Antonio
Re: inheriting parent pom version X, but when downloading the site descriptor, maven looks for X+1-SNAPSHOT
2011/4/15 Simone Tripodi simonetrip...@apache.org Hi all guys, I have a parent pom[1] I use to play with small components that, after upgrading few plugins[2], introduced a strange behavior: the parent brings the site descriptor that is correctly included before the plugins upgrade, but after the upgrade (the parent has version 3), maven looks for dite descriptor of next snapshot (4-SNAPSHOT) release - that I didn't install neither deployed. Do you have any hint about what's happening? That's really wired and I'm not figuring out where the problem could be. Did you try to run dependency:tree? Antonio
Re: read password protected zip
2011/4/13 johnny989 john_jul...@uhc.com Is there a package in Maven that can open/read password protected (non AES) large (4GB+) zip files? I've searched through the repository but I wasn't able to find one. I know there are other commercial options external to maven but my team needs a solution soon and we have access to maven already. I don't think so, Stackoverflow question is self explaining: http://stackoverflow.com/questions/166340/write-a-password-protected-zip-file-in-java http://stackoverflow.com/questions/166340/write-a-password-protected-zip-file-in-java Antonio
Re: artifacts produced by assembly not signed
2011/4/11 Simone Tripodi simonetrip...@apache.org Hi all guys, I configured the assembly plugin to produce zip/tar.gz artifacts in a non default assembly outputDirectory. Assembly plugin configuration looks like: /executions configuration outputDirectory${project.build.directory}/XXX/bin/${project.version}/outputDirectory attachtrue/attach !-- not required but explicitly set -- descriptors descriptor${basedir}/src/main/assembly/bin.xml/descriptor /descriptors /configuration and *(zip|tar.gz).asc are not produced; just removing the outputDirectory, *(zip|tar.gz).asc are generated, but I need them in a different place :P Where do you want to put those assemblies? You might want to use the Maven Wagon plugin to copy them, instead of configuring the assembly plugin. Can you explain what you are trying to accomplish? Antonio
Re: artifacts produced by assembly not signed
2011/4/11 Simone Tripodi simonetrip...@apache.org I just need to put them in a different dir :) AFAIK you might find the signatures in target/gpg IIRC. Antonio
Re: Instantly check changes in submodules
2011/3/15 Matthias Müller pym...@yahoo.de: i set up a maven project with dependencies to multiple submodules. These sub modules contain resources and are developed by different persons. I want these developers to check changes they have made instantly. If i would be the only developer I would run the modules via mvn jetty:run from the command line of the project's root. Changes to the resources in the submodules would appear instantly (i use a reloading classloader mechanism). But I want the developers to only command their modules. Here's my only approach: - Developer A deploys his (changed) module to Nexus - Developer A tells me about the deployment - I have to run the modules. - Developer A checks the changes. Isn't there a less complicated way? Continuous integration? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Skin customization error
2011/3/13 Simone Tripodi simonetrip...@apache.org: Hi all guys, I'm developing a new site skin, imported, without altering, the default-site.vm[1], then installed the artifact locally; when using it to render the site, the error belowa occurs: [ERROR] org.apache.velocity.runtime.parser.ParseException: Encountered org at line 268, column 11. The strangest thing is that there is no org character sequence at 268,11, neither in trunk nor in 1.0.x branch. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [site] Where does the footer come from?
2011/3/11 Dennis Lundberg denn...@apache.org: On 2011-03-11 17:10, Antonio Petrelli wrote: Hi all I am writing because I am struggling to find out how the Maven site footer is generated. For example, at Tiles project site [1]: I see: Copyright © 2001-2010 Apache Software Foundation. All Rights Reserved. When generating locally, I see 2011 instead of 2010. How is it built? Is there a way to change it completely? I need it to comply to Apache branding requirements about trademarks It's currently built using data from the POM. There is a request to change this: http://jira.codehaus.org/browse/MSITE-549 Thanks Dennis. I noticed that the real problem is this issue: http://jira.codehaus.org/browse/DOXIA-421 I will try to create a patch if I can. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [site] Where does the footer come from?
2011/3/12 Antonio Petrelli antonio.petre...@gmail.com: 2011/3/11 Dennis Lundberg denn...@apache.org: On 2011-03-11 17:10, Antonio Petrelli wrote: Hi all I am writing because I am struggling to find out how the Maven site footer is generated. For example, at Tiles project site [1]: I see: Copyright © 2001-2010 Apache Software Foundation. All Rights Reserved. When generating locally, I see 2011 instead of 2010. How is it built? Is there a way to change it completely? I need it to comply to Apache branding requirements about trademarks It's currently built using data from the POM. There is a request to change this: http://jira.codehaus.org/browse/MSITE-549 Thanks Dennis. I noticed that the real problem is this issue: http://jira.codehaus.org/browse/DOXIA-421 I will try to create a patch if I can. Done, it was pretty easy, also because Maven makes contributing easy, especially with Eclipse+M2Eclipse :-) I know this is advertisment, but it is true. Best regards Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[site] Where does the footer come from?
Hi all I am writing because I am struggling to find out how the Maven site footer is generated. For example, at Tiles project site [1]: I see: Copyright © 2001-2010 Apache Software Foundation. All Rights Reserved. When generating locally, I see 2011 instead of 2010. How is it built? Is there a way to change it completely? I need it to comply to Apache branding requirements about trademarks [2] to put a completely different sentence. Thanks in Advance Antonio [1] http://tiles.apache.org/ [2]http://www.apache.org/foundation/marks/pmcs - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: adding a jar as resource to a webapp
2011/2/2 Hauschel Fred Robert fredrobert.hausc...@cirquent.de: The jar should not be added to the classpath at build, runtime! And it should not be included in WEB-INF/lib. Not at build, not at runtime and not in WEB-INF/lib? What do you need it for? Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to loose the /target/...
2011/1/25 martin krüger brainm...@googlemail.com: currently I try to copy some files with the maven-resources-plugin. Is there any chance to get rid of the /target/ folder during the copy of files? I'm using the following lines: resource filteringtrue/filtering directory${basedir}/src/site/directory targetPath${staging.dir}/bin/targetPath /resource and it results always in something like /target/myFolder/file. Strange, it should work. Are you sure your files are under src/site? Did you try using only: directorysrc/site/directory Or even better. Is there a chance to loose the whole folder structure during the copy action? If the source is something like +src +-main +--a.file +--b.file +--c.file --- result +mytarget +-a.file +-b.file +-c.file If the resource is correctly configured, this is the way it should work. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: One project per package or multiple packages in same project?
2011/1/25 Miguel Almeida migueldealme...@gmail.com: Is what you propose possible without repeating the War files? ie, I currently have *one* WAR project, where I have all the xml, jsp and java files for the web app. The only difference between the development and production environments is a few configs like: on line in the database.xml has jdbc:...db, the other has jdbcdb-test. Are you suggesting having one WAR with all the code, html and xmls, and then some void war projects that depend on it? I'm not even sure that would work in an IDE environment like Eclipse. No, he means (correct me if I am wrong) that you should have a war for each web application you have. Since you have *one* web application, one war is ok. Configuration like IP addresses, ports, etc. should be externalized and not put in the WAR at all. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven IDE
2011/1/11 Jason van Zyl ja...@maven.org: For those of you interested in Maven integration in Eclipse: http://www.sonatype.com/people/2011/01/maven-ide-the-year-of-maven-eclipse-2/ Wow, I think you read my mind, I always wanted a nicer integration between Eclipse, Maven, GWT and Android. What a great team you are! Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Create complicated client jar release target(s)
2010/12/9 fhomasp thomas.peet...@realdolmen.com: You're talking about Tiles and accessing the parent directory. Could you explain a bit further? I have a better idea, here is the source: http://svn.apache.org/repos/asf/tiles/framework/trunk/assembly/ And the idea of an extra distribution module, that's not the way to go then? I guess that *one* assembly module is enough. In Tiles, within that single module, we build source, library, documentation assemblies from one single module. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Create complicated client jar release target(s)
Start a new thread, I cannot help here. 2010/12/9 fhomasp thomas.peet...@realdolmen.com: I guess I'm going to go with the original approach seeing that I got allmost everything working. There is only one problem... I'll clarify. The 2.2 assembly plugin includes the projects artifacts by default in the dependencySet tag. However there is a tag that *should* resolve this. I've set it (useProjectArtifact set to false) but it does not help. So I figure I'll try a beta version but this has as major setback that the earlier tag useAllReactorProjects is now an unrecognized tag, breaking my build. If I omit it, none of my modules get built even if I include them. I mean, uhh. I'm at a loss here. Here's the moduleSet part of my assembly descriptor. Is this a bug or something? I thought backward compatibility was rather important. moduleSets moduleSet useAllReactorProjectstrue/useAllReactorProjects !--TODO: add future release modules here !?-- includes includecom.touchatag.ps.project.coa:JavaClientLauncher-releaseModule/include includecom.touchatag.ps.project.coa:SavingClient-releaseModule/include /includes binaries outputDirectory/common/lib/outputDirectory unpackfalse/unpack dependencySets dependencySet outputDirectory/common/lib/outputDirectory useTransitiveDependenciestrue/useTransitiveDependencies useProjectArtifactfalse/useProjectArtifact useProjectAttachmentsfalse/useProjectAttachments excludes excludecom.touchatag.ps.project.coa:JavaClientLauncher/exclude excludecom.touchatag.ps.project.coa:SavingClient/exclude /excludes /dependencySet /dependencySets /binaries /moduleSet /moduleSets -- View this message in context: http://maven.40175.n5.nabble.com/Create-complicated-client-jar-release-target-s-tp3295582p3299051.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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Create complicated client jar release target(s)
2010/12/8 fhomasp thomas.peet...@realdolmen.com: I've been looking at the example of building a distribution with a multimodule project http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html At this point I made a new module which will assemble the folders with their data in the correct structure. Now I want to build the whole distribution, which brought me to the above quoted page. The problem is, how do I get the newly created release modules' assembly in the distribution alongside with the dependencies in this distribution assembly? I already got the dependencies as explained in the link above, referencing an original jar (not the new assembly module). Because the new assembly modules are in packaging pom... I could switch to jar there too, but I'd have a jar included that is a dummy of some sort. I am thinking about excluding the jar, and also the original jar as well. This is because the former is a dummy and the latter is already included in the new assembly module, which might clash if it's twice on the classpath, right? This one of the reasons I told you to use a separate module, because you can include all the dependencies you need, filter them in assembly descriptors, include all the files you want, even in other modules (in Tiles we include sources from the other modules by accessing to the parent directory). I'm sorry so say it, but that link you posted is, essentially, worthless (in fact I wonder why it has not been removed yet). Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Invoking Maven Goals Prorammatically
2010/12/7 Harshana Eranga Martin harshan...@gmail.com: Hi All, I am trying to execute clean and install maven goals for a java project from another java project by launching maven builder programmatically. I have came across Maven Invoker plugin. But I could not find any example code used to Invoke maven goals from a java project. Can some one point me to an example how to get this done using this maven invoker plugin? Calling Maven from Java is definitely a job for Maven Embedder (e.g. m2eclipse uses it). I can't find docs about it, though. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Create complicated client jar release target(s)
2010/12/7 fhomasp thomas.peet...@realdolmen.com: I don't quite know how to put this, but I'll give it a shot. Basically there are 3 client applications with Swing UI that need to get released. These have common dependencies bundled in a common dir. For this part, I don't see much of a problem, I'll get a super pom to get that working, however I'm unsure which plugin I should use. The global release structure should look like this: \application 1 \application 2 \application 3 \common However each application also has an internal release structure, which is more or less similar for each of them. The client applications all have packaging jar. The target release dir structure should go like this: \bin (holds a service wrapper, and a .bat executable) \conf (holds property files) \lib (holds the actual application jar, so the actual mvn package target) \log (the log files) Use the maven-assembly-plugin in a separate module for each assembly you need to use: http://maven.apache.org/plugins/maven-assembly-plugin/ You can still use the appassembler plugin, but it is useful only to build launch scripts, not to create distributions. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Create complicated client jar release target(s)
2010/12/7 fhomasp thomas.peet...@realdolmen.com: That does make sense. So I'd create a release module that has a client application as dependency, that's what you mean? Exactly. So one release module for one application. Kind of like an ear packaging a war, in a broad analogy then? Very broad, since EAR has its own package type. In the super pom bundling the modules I then add these modules to the modulelist? Or only in a seperate profile meant for the release? Add new modules to the module list. This approach proved to be the best in the long term, especially if you have a very complicated list of dependencies to include in the assembly. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Create complicated client jar release target(s)
2010/12/7 fhomasp thomas.peet...@realdolmen.com: Ok, but that would mean that the extra release modules are built whenever a mvn package or clean or ... command is invoked on the parent pom. I'm quite sure that they won't like that. If you don't bind the assembly:single goal to the package phase, it won't be built in package phase. I suggest you to bind it in a specific profile, that is invoked when the release is done (I mean, when you use the Maven Release plugin). Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Create complicated client jar release target(s)
2010/12/7 Antonio Petrelli antonio.petre...@gmail.com: 2010/12/7 fhomasp thomas.peet...@realdolmen.com: Ok, but that would mean that the extra release modules are built whenever a mvn package or clean or ... command is invoked on the parent pom. I'm quite sure that they won't like that. If you don't bind the assembly:single goal to the package phase, it won't be built in package phase. Just forgot that, anyway, when you install the assembly module, it is still a POM-packaged Maven project, and it will be installed in the local repository, but I don't think it is much a problem, right? :-D Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Create complicated client jar release target(s)
2010/12/7 fhomasp thomas.peet...@realdolmen.com: I think I'm going to exclude the release modules from the module list, and include them in a seperate profile like this: profiles profile idrelease/id modules moduleapp1/module moduleapp2/module moduleapp3/module moduleapp1-release/module moduleapp2-release/module moduleapp3-release/module /modules /profile /profiles If the problem is the upload to the remote repository, simply skip deployment in those modules: http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html#skip Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Create complicated client jar release target(s)
2010/12/7 fhomasp thomas.peet...@realdolmen.com: Hmm.. I don't really understand. Could you elaborate? I guess that you don't want to see those assemblies in your enterprise Maven repository, right? In this case, in each assembly module, add: build plugins ... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-deploy-plugin/artifactId configuration skiptrue/skip /configuration /plugin ... /plugins /build When you will release or, at least, deploy your parent project, deployment of modules configured this way won't be deployed. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Create complicated client jar release target(s)
2010/12/7 fhomasp thomas.peet...@realdolmen.com: using an assembly descriptor in the maven-assembly-plugin, how would I go about getting property files from one my client apps? I mean... These property files are of course centralized in the resources dir of that module. I'd hate to have to tell my project manager that I'll have to get these property files reduntantly into this new module... If I understand you correctly, you want to copy a property inside one of your dependency inside a directory of your assembly, right? Then, prior to your assembly build, unpack part of your dependency: http://maven.apache.org/plugins/maven-dependency-plugin/examples/unpacking-artifacts.html After that, include it in your assembly. HTH Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: possible ${} expressions on MOJO parameters
2010/12/6 fhomasp thomas.peet...@realdolmen.com: If the File has already been written to the target folder (whatever that may be ^^ ) why would I need to add it as a Resource Object to the project? It's not in the target/classes folder, but in a folder of target, sibling of classes. You have to add it to the resources to be packaged together. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: possible ${} expressions on MOJO parameters
2010/12/6 Stephen Connolly stephen.alan.conno...@gmail.com: And the reason for adding it as a Resource in a separate folder is so that IDE's can recognise that the file is a source file but generated source. For example IntelliJ IDEA will give auto-completion of property names from .properties files if the property file is listed as a generated source root by using the Resource mechanism M2Eclipse does it too. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: possible ${} expressions on MOJO parameters
2010/12/3 fhomasp thomas.peet...@realdolmen.com: I simply want to add a property file during the phase generate-resources with the current version, on the classpath. Ideally it's located at the default resourcesdir. The name of the props file needs to be the name of the artifact (or the given name). You need to have the Maven Project: snip /** * @parameter expression=${project} * @required * @readonly */ private MavenProject project; /snip Then interate the resources: snip project.getResources() /snip However I support the suggestion of Stephen, create a new directory under target and add it as a resource. Oh, and I command you to follow the Maven way :-D Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: can we use maven in offline environment?
2010/12/1 maven apache apachemav...@gmail.com: Hi: Out work environment is offline,so I wonder if we can use maven. I know we can build our own repository ,then put the jars we are using in the repositoryl,however jars we are using are so many,it is not a simple work. ALso,even if we put all the jars in the repository,how about when a new depedency is required when building our project? Download the required jar then put it in the repository again and again? You can use: mvn dependency:go-offline to download any plugin and dependency in one shot, but you have still need to be online at least once. However I am a bit confused: without Maven, how do you download libraries you need? Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: can we use maven in offline environment?
2010/12/1 maven apache apachemav...@gmail.com: In a word,all development related machine can not access the internet. But they can access each other in the Local Area Network. I mean the build machine as my own work machine. It can access the repository machine through Local Area Network. But the repository machine should access the Internet at least once. Isn't it possible? Stupid security reasons :-D Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: can we use maven in offline environment?
2010/12/1 Antonio Petrelli antonio.petre...@gmail.com: 2010/12/1 maven apache apachemav...@gmail.com: In a word,all development related machine can not access the internet. But they can access each other in the Local Area Network. I mean the build machine as my own work machine. It can access the repository machine through Local Area Network. But the repository machine should access the Internet at least once. Isn't it possible? Stupid security reasons :-D Sorry I see your answer only now, but I have already pressed the send button :-) Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Creating a custom lifecycle
It's best to tell us what you want to accomplish. Fighting Maven is always a bad thing. Antonio 2010/12/1 Gajo Csaba csaba.g...@cosylab.com: Hello, I'm trying to create a custom lifecycle. In this case, I don't mean providing custom classes for one of the defined phases, but redefining the phases themselves. For example, the DefaultLifecycleMapping seems to support clean, compile, test etc... How can I, for example, make it so that the phases are deploy, clean, compile, install, test? Which component should I override to be able to do this? I see that there are 3 cases where this is done: clean, site and default. I've created by own class which implements LifecycleMapping. I wrote a components.xml and lifecycle.xml for it. When I observe the getPhases(String lifecycle) method, I see that the value of lifecycle is always default. I'm guessing that I need to define something so that this wouldn't be default, but my own lifecycle, for example apple. How to do this? Thanks, Csaba - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Creating a custom lifecycle
2010/12/1 Gajo Csaba csaba.g...@cosylab.com: I didn't try it yet, but I'll try it now. I think this will not solve the problem. If you write mvn deploy, you will probably have the compile, test etc. phases executed. What I need is, to not run any of these phases, but immediately print out this is not supported and end the execution. The only way to do is, as far as I know, is to create my own lifecycle. Sorry but I don't understand. What kind of project does not need to compile, test, etc.? What should mvn apple do? Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to make sure the local repository contains the latest version of a specific artifact?
2010/11/27 Ralph Pöllath li...@poellath.org: I'm looking for a simple way to make sure my local repository contains the latest version of a specific artifact (make Maven check the corporate repository and download a newer version if available). I guess I could create a POM containing a dependency on the artifact and build that, but since I'd like to script that task, I wonder whether there's a simpler solution, maybe through some plugin that I haven't seen so far. Aether might help: https://docs.sonatype.org/display/AETHER/Home Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Custom Lifecycle
2010/11/27 Greg Akins angryg...@gmail.com: Rather than just running the selenium goals, I'd like to keep the tomcat startup, cargo, junit execution and selenium server start in one tasks.. so I don't think it's enough to just run the selenium task. As Kalle said, use a profile for this. For a real world example, take a look at Tiles test webapp POM: http://svn.eu.apache.org/repos/asf/tiles/framework/trunk/tiles-test-pom/tiles-test/pom.xml In particular, see the run-selenium profile. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Need help with a dependency problem...
2010/11/25 Julien Martin bal...@gmail.com: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.6/source target1.6/target compilerArguments processorcom.jeanbaptistemartin.annotations.TestAnnotationsProcessor/processor /compilerArguments /configuration /plugin You cannot use a not-compiled processor when compiling the processor itself. You said that you have two classes in this project. Do you mean that you have *only* these two classes? If yes, remove the processor parameter. Otherwise, move these two classes to a separate project and include it as a dependency. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: multi-platform multi-module project/modules structure
2010/11/24 Javier Arias xavi_ari...@yahoo.com: So, here are my questions, I am new to maven, so some options may be just wong: + which would be the best project structure? - nine independent projects and two sepparate projects for the building? - three projects dividing by platform?(eg. cross-platform, j2me, j2se) each one with three modules? (frontend, commons, backend) - only one project with nine modules and two different build targets? + what are the best practices for this kind of problem? None of the above :-D I suppose that you want to maintain and release them at the same time. So create a project with: 1. the three crossplatform modules; 2. two modular modules, one for each platform, containing the specific j2se/j2me modules plus an assembly module. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: multi-platform multi-module project/modules structure
2010/11/26 Javier Arias xavi_ari...@yahoo.com: I didn't think on that option, why is it better than having nine modules? I just guessed that the j2me/j2se are very specific to the assemblies you want to create for j2me and j2se. IOW, I guessed that those modules will not be used elsewhere (am I right?). This deep-modular structure allows you to release the whole project in one go. This is correct if you *want* to manage them this way. You can still think about releasing some projects separately, it depends on your release cycle. on the other side, is it possible to specify that packaging for one module is just to compile (leave the .class files on the target) since packaging for each platform will be just one jar. How is it managed by maven? So, if I understood you well, you want to collect the classes in one big jar, right? You have two options: 1. using the pre-defined jar-with-dependencies assembly descriptor: http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html#jar-with-dependencies 2. using the Maven Shade plugin to create an Uberjar: http://maven.apache.org/plugins/maven-shade-plugin/ HTH Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: log4j:log4j:bundle:1.2.16 : Bundle or JAR ?
Definitely ask the Log4j team, we have no idea what they intended to do. Antonio 2010/11/26 raphael.jolivet raphael.joli...@gmail.com: Hello, In my project, I have a dependency over log4j 1.2.16. In maven central, it comes as a bundle package type : I'm not sure what it really is: Is it just a big jar with all dependencies included ? Anyway, I have added it to my POM, but maven fails at finding it on the repository. It searches for some log4J.version.bundle, whereas there is actually a log4J.version.jar. Here is a part of my POM: dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.16/version typebundle/type scopecompile/scope /dependency And the error I get (with mvn compile): [[INFO] Scanning for projects... [INFO] [INFO] Building sdr [INFO] task-segment: [compile] [INFO] [INFO] [resources:resources {execution: default-resources}] [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory d:\Users\raphael\eclipse-workspace\sdr\src\main\resources Downloading: http://download.java.net/maven/2//log4j/log4j/1.2.16/log4j-1.2.16.bundle [INFO] Unable to find resource 'log4j:log4j:bundle:1.2.16' in repository java.net (http://download.java.net/maven/2/) Downloading: file:///v:/maven/repositories/third-party//log4j/log4j/1.2.16/log4j-1.2.16.bundle [INFO] Unable to find resource 'log4j:log4j:bundle:1.2.16' in repository third-party (file:///v:/maven/repositories/third-party/) Downloading: http://repo1.maven.org/maven2/log4j/log4j/1.2.16/log4j-1.2.16.bundle [INFO] Unable to find resource 'log4j:log4j:bundle:1.2.16' in repository central (http://repo1.maven.org/maven2) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) log4j:log4j:bundle:1.2.16 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=log4j -DartifactId=log4j -Dversion=1.2.16 -Dpackaging=bundle -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=log4j -DartifactId=log4j -Dversion=1.2.16 -Dpackaging=bundle -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) fr.armines.anemos:sdr:jar:0.0.1-SNAPSHOT 2) log4j:log4j:bundle:1.2.16 -- 1 required artifact is missing. for artifact: fr.armines.anemos:sdr:jar:0.0.1-SNAPSHOT from the specified remote repositories: third-party (file:///v:/maven/repositories/third-party/), central (http://repo1.maven.org/maven2), java.net (http://download.java.net/maven/2/) = You can have a look at the central repository : http://repo1.maven.org/maven2/log4j/log4j/1.2.16/ The jar file is there, but there is not bundle file. In the POM (http://repo1.maven.org/maven2/log4j/log4j/1.2.16/log4j-1.2.16.pom), the packaging is reported as bundle. So who is right ? The central repository or my maven client ? Thanks in advance for your help, -- Raphael Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200) Java version: 1.6.0_21 Java home: c:\Program Files\Java\jre6 Default locale: fr_FR, platform encoding: Cp1252 OS name: windows xp version: 5.1 arch: x86 Family: windows -- View this message in context: http://maven.40175.n5.nabble.com/log4j-log4j-bundle-1-2-16-Bundle-or-JAR-tp3281135p3281135.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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Dependency with Parent Project (Packaging War)
2010/11/24 Michael Prieß mailingliste...@googlemail.com: Reason: Parent: org.geoserver:geoserver:war:2. 0.2 of project: org.geoserver:platform has wrong packaging: war. Must be 'pom'. for project org.geoserver:platform If i use maven3 everything is fine. How can i resolve this problem with maven2 ? In fact I think this is a Maven 3 bug! Contact the developer and tell him to fix it. Or build your own correct version and put it in your private Maven repository. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Missing File when building from archetype
2010/11/24 jschappet james-schap...@uiowa.edu: I have created an Archetype with the following files included: ./src/main/resources/archetype-resources/.settings/org.eclipse.jdt.core.prefs ./src/main/resources/archetype-resources/.settings/org.eclipse.wst.common.component ./src/main/resources/archetype-resources/.settings/org.eclipse.wst.common.project.facet.core.xml ./src/main/resources/archetype-resources/.settings/org.maven.ide.eclipse.prefs After installing from this Archetype I only get the following: Test5/.settings/org.eclipse.jdt.core.prefs Test5/.settings/org.maven.ide.eclipse.prefs Are they listed in archetype.xml? Anyway I think this is not the *real* problem. Why do you want to include Eclipse-specific files when there is m2eclipse that builds those for you? Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Fwd: Problem M2_HOME variabla
2010/11/22 Antonio Petrelli antonio.petre...@gmail.com: 2010/11/22 Blanca Hernández blancahdezni...@gmail.com: With the same error, just changing the path. Somebody told me the could be maybe Windows7 incompatibilities, do you think so?? No, however to be completely sure I have to check it at home this evening (CET) where I have a Win7 machine. Anyway, if someone here had experience with Maven+Win7, he/she is welcome. Tried on a Windows 7 64 bit machine, Oracle's JDK 1.6.0_22 32 bit, Maven 2.2.1 Everything works like a charme. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Fwd: Problem M2_HOME variabla
2010/11/23 Blanca Hernández blancahdezni...@gmail.com: Could you please paste me you enviroments variable configuration?? I have still the same problem. Thank you for your answers Sure, I'll take it from my own memory since I tried it at home, and now I am at work :-D JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0 (I changed the installation path) M2_HOME=C:\Program Files\apache-maven M2=%M2_HOME%\bin PATH=...;%M2% BTW, taking a look at your original post, you put a semicolon at the end of the Path variable, could it be the problem? Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Fwd: Problem M2_HOME variabla
2010/11/23 Blanca Hernández blancahdezni...@gmail.com: C:\Program Files (x86) The only difference I remember is this one (I'm also at work, not at home). I will try later, because my win7 is also 64. I installed the 32 bit version of JVM for memory reasons (yeah I know I can use compressed oops, but at the end this i will uninstalled ASAP, so I really don't care). Anyway the choice of a 64 bit JVM for Windows 7 64 bit is a right decision, so don't uninstall it. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Proper way to deploy properties files into WEB-INF/classes?
2010/11/23 KARR, DAVID (ATTSI) dk0...@att.com: In my src/main/java tree, I have properties files that need to be deployed into WEB-INF/classes. I thought these would be copied by default, but they are not. They didn't go into target/classes or WEB-INF/classes. I don't need to filter properties in it. I'm using version 2.1.1 of the maven-war-plugin. Follow the Maven way, put them in src/main/resources. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven to build thin war
2010/11/22 Kamran Yadav kamranya...@gmail.com: plugin artifactIdmaven-compiler-plugin/artifactId version2.0/version It seems a bit outdated, the latest version is 2.3.2. - The war file includes all the classes also but I don't want. I tried archiveClassestrue/archiveClasses also but then it includes the generated jar. I don't want that either. I'm confused, why did you put those source file in the war project? Do you mean that those classes are put inside the server? If this is the case, the best you can do is creating another project to put those classes and add a dependency with scope provided to the war project. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Fwd: Problem M2_HOME variabla
2010/11/22 Blanca Hernández blancahdezni...@gmail.com: Hi!, You are right, I tought I had attached one image. Here it goes. Apache Mailing lists do not support attachments. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Fwd: Problem M2_HOME variabla
2010/11/22 Blanca Hernández blancahdezni...@gmail.com: ERROR:M2_HOME is set to an invalid directory. M2_HOME = C:\Program Files\apache-maven-2.2.1 Just a shot in the dark: it may be the space in the path, can you try moving it in a different directory without spaces in the name? Notice that, if this solves your problem, it is definitely a Maven bug. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Fwd: Problem M2_HOME variabla
2010/11/22 Blanca Hernández blancahdezni...@gmail.com: With the same error, just changing the path. Somebody told me the could be maybe Windows7 incompatibilities, do you think so?? No, however to be completely sure I have to check it at home this evening (CET) where I have a Win7 machine. Anyway, if someone here had experience with Maven+Win7, he/she is welcome. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven to build thin war
2010/11/22 Kamran Yadav kamranya...@gmail.com: I am using 2.3.2 now but no improvement. I understand I can create a separate project for the classes only but that is not in my control. Anyway is there anyway to produce the compiled class outside of target/classes folder as in say C:\etc.etc. It's possible, but it won't help avoiding to include them in the war package. If you want to exclude something from the war, take a look at this: http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#packagingExcludes However this is highly discouraged: it's best not to fight Maven but to follow conventions and best practices. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Multiple packages with different configuration files
2010/11/22 ilya.may...@ubs.com: This app need to be packaged with different configuration files (server names/IP addresses) for Dev/QA/Prod environments. This kind of info are better put in the server. For example, for JBoss, you can create a .properties file and put it inside: jboss/server/yourserver/conf Everything in the conf directory is available in your classpath. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: The POM for com.google.gwt:gwt-incubator:jar:2.0.1
Ask the GWT incubator project: http://code.google.com/p/google-web-toolkit-incubator/ Antonio 2010/11/16 Daniel Oskarsson daniel.oskars...@gmail.com: Hi everyone. Has anyone else seen this: [WARNING] The POM for com.google.gwt:gwt-incubator:jar:2.0.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details browsing to: http://repo1.maven.org/maven2/com/google/gwt/gwt-incubator/2.0.1/gwt-incubator-2.0.1.pom will give this: This page contains the following errors: error on line 13 at column 60: StartTag: invalid element name Below is a rendering of the page up to the first error. This is because some unwanted characters in the closing description tag: t you are welcome to pull them from here to use today. /description Is there a way to get the current pom fixed, or do I have to look for other options? -- Daniel - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Head start with relatively simple EAR/WAR project?
2010/11/19 KARR, DAVID (ATTSI) dk0...@att.com: Related to this, is it possible to have a single project that constructs both an EAR and a WAR inside the EAR? The few examples I can find all have a parent project for the EAR and a subproject for the WAR. Is that partially why I'm having problems with this? No, you need to have a POM project with an EAR module, a WAR module, and an EJB module. Take a look at this archetype: http://code.google.com/p/javaee5-maven-archetype/ Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Forbid users to use a certain artifact and/or version
2010/11/17 Asmann, Roland roland.asm...@adesso.at: Does anybody have any ideas on how to do this? I was thinking about using a preant-POM and the enforcer-plugin, but as soon as I make an update, all projects would have to update their parents as well -- which is exactly what they don't want, otherwise they could've changed the dependencies themselves... The problem here is that the architecture-department wants to get rid of certain artifacts and the developers don't want to update their POMs... I know, it's not ideal, but I have to find some sort of solution for this... I'm sorry but I think that magic cannot happen, at least in Maven world. Either update your parent and encourage developers to change parent version, or encourage developers to change dependencies. I mean, if you update parent POM and it is not a SNAPSHOT version, and child POMs are not connected to this SNAPSHOT, then developers must change parent POM version. You can (very bad! don't do it!) modify the original deployed version of that parent POM to add those rules, developers should clean their local repository and redownload the parent POM. Anyway, you already found two good solutions to your problem. This kind of war is nonsense IMHO. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Forbid users to use a certain artifact and/or version
2010/11/17 Asmann, Roland roland.asm...@adesso.at: I fully agree with you, but as the saying goes 'the customer is king'... Just curious, the customer develops too? Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: release:prepare scm and cvs..
2010/11/16 jeb001 jeremy.jar...@gmail.com: I'm trying to build my first release using maven.. and I've got that error : Missing required setting: scm connection or developerConnection must be specified. So, I had in my main pom.xml those lines : scm connectionscm:cvs:pserver:user:@cvsIP:/cvs:moduleName/connection developerConnectionscm:cvs:pserver:user:@cvsIP:/cvs:moduleName/developerConnection tagHEAD/tag urlhttp://google.fr/url /scm I don't see anything wrong with it. What do you mean with main pom? Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven overrides up to date artifacts
2010/11/11 Moser, Christian c...@metrohm.com: I've got the following problem with maven 3.0 and artifactory 2.2.3 (2.2.1 won't let maven 3.0 deploy without legacy-mode flag -- metadata problem). A quick look in the maven output shows that at the beginning of the build maven downloads an old, already deployed version of Project B into the local repo and overrides in the process the version of project B with the new class installed -- so build fails! Curious. Can you post the dependency here? Is it a snapshot dependency? Did you try using -o parameter? Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Setting dependency with plugin generated jar
2010/11/12 Ron Wheeler rwhee...@artifact-software.com: The war can not be completely tested because it contains visual elements and navigation and flow that usually requires manual testing. Or automated integration/functional testing, for example via Selenium or Canoo WebTest. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Generating a POM or repository from an eclipse installation
2010/11/11 Gabriel Petrovay gabipetro...@gmail.com: - I don't want maven to get things from the internet because they are all local. With Maven, you need to do it at least once, just to call mvn dependency:go-offline to download all your dependencies (plugins and project dependencies) in one shot. - I was to define in my POM file something like: repositories repository idmy_local_repo/id urlfile://path/to/my/eclipse/installation//url layout???/layout /repository /repositories Useless. Do you know something that handles this case: a repository layout that can pick things from a local eclipse installation? Currently I use p2 repository layouts and I have to find/define/maintain every single Eclipse update site that I used to configure my Eclipse installation. Having such a solution in place I only have to instruct maven to pick all the dependencies form my local installation. An alternative equivalent solution would be to generate a POM file out of an eclipse installation. Any ideas? It's better doing the opposite: convert manually all your local libraries into dependencies, manually construct your pom and, when you're finished, use m2eclipse to manage your Maven project as an Eclipse project. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Generating a POM or repository from an eclipse installation
Sorry I completely missed the point. Please ignore me (only this time) Antonio 2010/11/11 Antonio Petrelli antonio.petre...@gmail.com: 2010/11/11 Gabriel Petrovay gabipetro...@gmail.com: - I don't want maven to get things from the internet because they are all local. With Maven, you need to do it at least once, just to call mvn dependency:go-offline to download all your dependencies (plugins and project dependencies) in one shot. - I was to define in my POM file something like: repositories repository idmy_local_repo/id urlfile://path/to/my/eclipse/installation//url layout???/layout /repository /repositories Useless. Do you know something that handles this case: a repository layout that can pick things from a local eclipse installation? Currently I use p2 repository layouts and I have to find/define/maintain every single Eclipse update site that I used to configure my Eclipse installation. Having such a solution in place I only have to instruct maven to pick all the dependencies form my local installation. An alternative equivalent solution would be to generate a POM file out of an eclipse installation. Any ideas? It's better doing the opposite: convert manually all your local libraries into dependencies, manually construct your pom and, when you're finished, use m2eclipse to manage your Maven project as an Eclipse project. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Problem with Maven and JDK
2010/11/11 AllLangsDevel jackieglea...@gmail.com: Of course tools.jar is not at this location but I don't even know why it needs it, isn't that just for J2EE? tools.jar contains, among other things, the compiler. So yes, you badly need it. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Setting dependency with plugin generated jar
2010/11/11 Ron Wheeler rwhee...@artifact-software.com: War project has almost no code or preferably no code . Code is in jar project. War project has WebContent stuff (configurations, XML, images, JSPs) and depends on your Jar project for its classes. It will create a WAR file with the classes from the dependencies. I disagree, you can put code in war projects, as long as it is tightly connected to the web project itself, e.g. actions in an MVC framework, servlets, etc. If you really like to pack all the code into a jar, see here: http://maven.apache.org/plugins/maven-war-plugin/faq.html#attached Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Problem downloading dependency hibernate 3.5.0
2010/11/11 Pradnya Gawade pgaw...@akazaresearch.com: repository idjboss-public-repository-group/id nameJBoss Public Repository Group/name urlhttp://repository.jboss.org/nexus/content/groups/public/url /repository repository idjboss-public-repository-group/id nameJBoss Public Repository Group/name urlhttps://repository.jboss.org/nexus/content/groups/public-jboss/org/ hibernate/hibernate/3.5.0-Final//url /repository These repositories are wrong, see here: http://mavensearch.net/search?q=group:org.hibernate+artifact:hibernate-annotations+version:3.5.0-Final Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Problem downloading dependency hibernate 3.5.0
2010/11/11 Pradnya Gawade pgaw...@akazaresearch.com: I have following repository too in my pom.xml, still it throws error: http://repository.jboss.com/maven2 Can you post the error please? Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Problem downloading dependency hibernate 3.5.0
2010/11/11 Wayne Fay wayne...@gmail.com: I am having problem downloading dependency for hibernate 3.5.0. After doing some search I can see that this problem was faced by other people The Maven Users list cannot possibly be responsible for every artifact in every repo in the world. Complain to the correct group -- in this case, the Hibernate team. They should know where you can download this artifact, I would hope. Wayne, don't be so harsh, it could be simply a mistake on the use of Maven. In this case we can help. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Setting dependency with plugin generated jar
2010/11/11 Ron Wheeler rwhee...@artifact-software.com: The point was to explain how not to have duplicate source code and how not to make jars depend on wars. Agreed Ron :-) When I saw your sentence I wrote that answer to be sure that a wrong message (don't ever put Java code in a war project) passes to the OP. Sorry having misunderstood your phrase. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Problem downloading dependency hibernate 3.5.0
2010/11/11 Pradnya Gawade pgaw...@akazaresearch.com: Downloading: http://repository.jboss.com/maven2//org/hibernate/hibernate/3.5.0-F inal/hibernate-3.5.0-Final.jar Heh, I guess I found your problem. org.hibernate:hibernate is pom packaged, so there is no jar. Thus, simply remove org.hibernate:hibernate and leave the rest. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Problem downloading dependency hibernate 3.5.0
2010/11/11 Wayne Fay wayne...@gmail.com: The Maven Users list cannot possibly be responsible for every artifact in every repo in the world. Wayne, don't be so harsh, it could be simply a mistake on the use of Maven. In this case we can help. I respectfully disagree. If we open the door to help everyone when they can't find a dependency (or can't configure a proper repository in their pom or settings despite all the documentation that exists), this list will quickly deteriorate. I agree, but this was not the case. If you see my answer, you'll notice that the OP wanted to include a pom-packaged dependency as a jar. This is a newbie mistake, but we were newbies too, weren't we? ;-) Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Eclipse multi-module project with maven
2010/11/10 jeb001 jeremy.jar...@gmail.com: Now, I'm looking for the best way to use maven profiles with my new project organisation.. I just wanna create 2 profiles, developpement and production, for each project. The production profile will have to package using src/main/resources-prod directory, and thes developpements one will package with the src/main/resources-dev directory.. Just curious, what are the differences between these two sets of resources? My best bet is that they differ in the addresses they point with essentially the same structure. If this is the case, you can filter your resources, using profiles only to add properties: http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html If you have a more complicated configuration, take a look at this: http://code.google.com/p/maven-config-processor-plugin/ Anyway the best option is to leave this kind of server-specific configuration on the server itself. For example, in JBoss under the directory: jboss/server/myserver/conf The files put there are accessible by Class.getResource Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven generating invalid eclipse projects
2010/11/10 emerson echofloripa.y...@gmail.com: When I import the project using eclipse2m, the source folder entry for the src/test/scenarios have Included: (All) and Excluded: ** Yes, it is annoying. There's an old JIRA issue for it: https://issues.sonatype.org/browse/MNGECLIPSE-784 Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Eclipse multi-module project with maven
2010/11/10 jeb001 jeremy.jar...@gmail.com: I've seen that I should use profiles et filters.. but I don't know exactly how, with my 4-part project? In which pom.xml have I to define thoses filters ? each one ? I'm not sure this is the best way to do it.. Yes, each one you have such configurable resources. 1. Just create all your profiles and, in each profile, put specific properties. 2. Replace all the addresses in your resources with ${...} placeholders connected to the property you defined in your poms. 3. Instruct Maven to filter resources (filtering is off by default): resources resource filteringtrue/filtering directorysrc/main/resources/directory /resource /resources As an option, you can think of *not* putting addresses in pom.xml, but inside your settings.xml and activated by specific profiles. However, take in consideration what I said before: leave this kind of configuration on the server itself. HTH Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Eclipse multi-module project with maven
2010/11/9 jeb001 jeremy.jar...@gmail.com: In my case, web and batch project needs Api jar file to work.. but, I should not consider the Api project as the parent ? No, it's a dependency. By the way, if create one aggregating Maven project listing 3 modules.. should I declare the sourceFolder in the eclipse classPath ? Do it in every single module or, better, use the standard directory (src/main/java). Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Best Practice for using maven for web sites
2010/11/5 Ron Wheeler rwhee...@artifact-software.com: Does anyone have any comments on using Maven to build static web sites. The graphic artists building our web sites have created massive projects full of lots of small graphics projects with various versions of things. It would seem reasonable to create small projects to create individual assets such as Flash animations, Photoshop collages, etc. If these assets were held in repo with a version, at least we could find the released assets with a known version. Why can't you use a CMS? Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to set some variables in archetypes?
2010/11/5 Sonja Stocker sonja.stoc...@gmx.de: I´m developing an archetype for out projects. Their general structure is Customer -- Project -- Submodule_1, ..., Submodule_n. For each project the customer and project vary. During the archetype generating I´m able to set the name of the top directory, customer. But after this I have to change the name of the project in the generated Maven project, in all subordinated directories. Is there a possibility to use place holder for this name which whould be replaced during the generating of the archetype? I´ve tried it with modules module${project}/module /modules in the upper POM and using archetype.properties where this property was declared: project=PROJECTNAME. But it didn´t work. Any other idea? I suppose that you are using create-from-project goal. You can have module names automatically replaced when module names are an extension to the name of the project. For example: my-project -- my-project-ear -- my-project-ejb -- my-project-war See here for more information: http://maven.apache.org/archetype/maven-archetype-plugin/examples/create-multi-module-project.html Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Best Practice for using maven for web sites
2010/11/5 Ron Wheeler rwhee...@artifact-software.com: Why can't you use a CMS? Not sure what you mean here. I need an environment that allows the creation of Flash animations using the Adobe tools, etc. which will create artifacts that can be assembled into a web site. So use Adobe tools and a VCS. Currently we do this manually in a way that is unacceptably unstructured but does work. I am not sure where a CMs fits into the scheme. I am not sure why you want to use Maven for this. At least a CMS lets you publish your final content where you want. What do you want Maven to do for you? Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Best practice re: releasing large assembly artifacts
2010/11/5 Marshall Schor m...@schor.com: This seems to require the least special maven POM code (essentially, none, I think - so that might qualify it as a maven best practice :-) ). Does anyone see a flaw in this approach? IMHO as a release manager I would hate it, since I have to do more manual steps. BTW, probably a good approach is specifying a different repository in distributionManagement just for the assembly project. This way you don't have to move them from the repository to people.a.o and you can move them with a simple mv. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Best practice re: releasing large assembly artifacts
2010/11/4 Marshall Schor m...@schor.com: Now, we are trying to better align with the Maven way, and are using Nexus. The default for assemblies will attach these 16 mb things as artifacts of the aggregation project, and mvn release:perform will put them into the Nexus repository. ... Is this OK for these big assemblies (both binary and source)? I would also copy these to the Apache distribution spot, to have them automatically mirrored, in addition. Is this the right approach? IMHO deploying assemblies in a Maven repository is entirely optional, since other developers rarely take these artifacts as a dependency. IOW, do it if you need it. I experimented with marking the binary assembly with the configuration attachfalse/attach - this works, and prevents it from going up to Nexus (and then on to Maven central), but has the bad side effect of preventing the maven-gpg-plugin from signing that artifact. This is because the maven gpg plugin only signs attached artifacts. There's another way, that I use with Tiles and Velocity: skip the deploy http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html#skip and, in the deploy phase, I use Wagon plugin, with some tricks (install signatures in local repository, copy from local repository installed artifacts to target folder), to upload assemblies to their final place. You can see it working here: http://svn.eu.apache.org/repos/asf/tiles/framework/trunk/assembly/pom.xml See the apache-release profile. HTH Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Best practice re: releasing large assembly artifacts
2010/11/4 Marshall Schor m...@schor.com: I not sure why you did the ant task to select/copy/rename some things - was that because you couldn't get the names right in the first place, or the wagon couldn't be configured to deploy just what you wanted? For renaming artifacts and to copy digests that otherwise are not accessible. Remember to activate this: http://maven.apache.org/plugins/maven-install-plugin/install-mojo.html#createChecksum Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Best practice re: releasing large assembly artifacts
2010/11/4 Marshall Schor m...@schor.com: On 11/4/2010 4:21 PM, Antonio Petrelli wrote: 2010/11/4 Marshall Schor m...@schor.com: I not sure why you did the ant task to select/copy/rename some things - was that because you couldn't get the names right in the first place, or the wagon couldn't be configured to deploy just what you wanted? For renaming artifacts and to copy digests that otherwise are not accessible. Remember to activate this: http://maven.apache.org/plugins/maven-install-plugin/install-mojo.html#createChecksum Just checking my understanding: The normal deploy operation (which here we've disabled by saying skiptrue/skip) adds checksums when uploading to a repository. The Wagon upload goal doesn't do this. The install plugin (which installs to your local repo) normally (by default) doesn't do checksums. The solution to get the Wagon goal to upload things with checksums, is as follows: 1) First have the install phase run, with an override configuration to generate the checksums. This results in your local .m2 repo having the checksums. 2) Configure the Wagon plugin to upload from the local repo spot, and run after the install phase. Check passed :-D Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Dependency problem with jasper
2010/11/2 Clément TRUNG clement.tr...@syntesys.eu: the maven-metadata file contains html code that Maven sure is unable to read. Obviously, I'm not Jasper forge administrator and can't change the way the site works, what are the solutions available to handle this kind of situation ? Simple, call the Jasper forge administrator and ask him/her to fix it. Other options are: 1. install locally Jasper Reports artifacts and say goodbye to Jasper repositories 2. install a Maven repository manager (e.g. Nexus) that can act as a proxy to Jasper Forge (however I don't know if it will work). Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Including scope:provided dependencies in a shaded jar ?
2010/10/29 Grégory Joseph greg@gmail.com: The only way I can get projectB's generated shaded jar to also include thirdParty is to redefine that dependency in projectB and change its scope. I think this point is right and was implicit in the creation of this special module for the shaded jar. After all, you have all the control on it. On of the reasons my dependencies are in scope:provided, is because we also build an assembly with the regular jar and a few text files. Dependencies don't need to be shipped with this; we use a common assembly descriptor where dependencies in scope:provided are excluded. Create another module for the assembly. This is a Maven best practice. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-eclipse-plugin Does not resolve workspace project name
2010/10/28 Wayne Fay wayne...@gmail.com: So how does one get ownership of the plugin? I've contributed 2 This is open source so no one is stopping you from creating a fork. Sorry to jump in but, in the Apache Committers' FAQ I read: http://www.apache.org/dev/committers.html#committer-responsibilities snip Applying patches In order to grow and maintain healthy communities, committers need to discuss, review and apply patches submitted by volunteers. The Committers are also responsible for the quality and IP clearance of the code that goes into ASF repositories. /snip If you don't want to apply patches to m.e.p, please deprecate it, move it to archive, and abandon it *explicitly*. Or, if you don't want it, you have the responsibility *at least* to discuss them. Otherwise, contributors and committers are simply wasting time. Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Problem with maven-war-plugin
2010/10/28 Marcin Trościańczyk mtros...@gmail.com: Unfotunetly, generated artifact (war) contains two web.xml. When I use maven-war-plugin version 2.0.1 all works fine (generated war archive contains one web.xml). How can I solve this problem. This is strange, do you see two WEB-INF/web.xml entries in the war file? If it is so, I think it's a bug and you can file an issue: http://jira.codehaus.org/browse/MWAR Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org