Re: RE : deploy .war to tomcat after continuum detects changes
Thanks all, I got it using Cargo. :) On 1/11/06, Arnaud HERITIER [EMAIL PROTECTED] wrote: you can also read this : http://blogs.codehaus.org/people/vmassol/archives/001307_cargo_v07_and_maven2_plugin_v01.html Arnaud On 1/11/06, Olivier Lamy [EMAIL PROTECTED] wrote: Look at the cargo m2 plugin. http://cargo.codehaus.org/Maven2+plugin Add in a profile in your pom which declare a cargo deploy. Attach this to a phase (package) and add -P profileid in your continuum build. - Olivier -Message d'origine- De : Punkin Head [mailto:[EMAIL PROTECTED] Envoyé : mercredi 11 janvier 2006 16:06 À : continuum-users@maven.apache.org Objet : deploy .war to tomcat after continuum detects changes Greetings: I am a first time user of Continuum. I have recently got it working and now would like it to deploy the snapshot .war to tomcat once a change is detected to continually have the most recent version of the project online. Is anyone aware of a way that this can be done? Thanks. Adam This e-mail, any attachments and the information contained therein (this message) are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. -- Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après le message ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. - -- www.punkinshred.net // punkin'head official homepage www.myspace.com/punkinhead -- for true shred
Re: Exception with Maven under MacOS X 10.4 -- solved
Hi, In fact I had a environment variable containing a carriage return :-( declare -x __CF_USER_TEXT_ENCODING=0x1F5:0:91\ I override its definition to: declare -x __CF_USER_TEXT_ENCODING=0x1F5:0:91 and now it works fine :-) But anyway, it's too bad that if any application defines an environment variable containing dots, spaces, or carriage returns then Maven will raise an exception :-( Thanks for your help ! Romain Le 10 janv. 06 à 17:42, Man-Chi Leung a écrit : I am running PB with 10.4 too but I do not have problem like yours my java -version: java version 1.5.0_05 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-64) Java HotSpot(TM) Client VM (build 1.5.0_05-43, mixed mode, sharing) I am able to execute this without a problem $ mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app another suggestion: u may checkout maven 2.1-SNAPSHOT and give a try ~manchi On Jan 11, 2006, at 12:22 AM, Romain Rouvoy wrote: I updated my environment to remove dots, spaces and carriage returns but the exception is still raised: $ export declare -x ANT_HOME=/Users/rouvoy/Developer/ant declare -x HOME=/Users/rouvoy declare -x JAVA_HOME=/Users/rouvoy/Developer/java declare -x M2_HOME=/Users/rouvoy/Developer/maven declare -x MAVEN_HOME=/Users/rouvoy/Developer/maven declare -x PATH=/Users/rouvoy/Developer/maven/bin:/Users/rouvoy/ Developer/ant/bin:/Users/rouvoy/Developer/java/bin:/usr/local/ bin:/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/teTeX/ bin/powerpc-apple-darwin-current At the following address (http://jira.codehaus.org/browse/ MNG-1819), I found this comment: Comment by Julien Dubois [17/Dec/05 10:08 AM] This is also a bug on Mac OS X. I tried to clean up my environement variables as said in this thread (no dots, no carriage returns, no spaces), without any success. But the bug is considered as closed. Thus anyone can explain me how to make it run ? Romain Le 10 janv. 06 à 15:53, Romain Rouvoy a écrit : Hi, Recently, I installed Maven 2.0.1 on my PowerBook running MacOS X 10.4 but I encountered some troubles :-/. I use the J2SDK 5.0 provided by Apple. $ java -version java version 1.5.0_05 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-83) Java HotSpot(TM) Client VM (build 1.5.0_05-48, mixed mode, sharing) Environment variable seems to be ok (according to maven documentation): $ export declare -x ANT_HOME=/Users/rouvoy/Developer/apache-ant-1.6.5 declare -x JAVA_HOME=/System/Library/Frameworks/ JavaVM.framework/Versions/1.5/Home declare -x M2_HOME=/Users/rouvoy/Developer/maven-2.0.1 declare -x MAVEN_HOME=/Users/rouvoy/Developer/maven-2.0.1 declare -x PATH=/Users/rouvoy/Developer/maven-2.0.1/bin:/Users/ rouvoy/Developer/apache-ant-1.6.5/bin:/System/Library/Frameworks/ JavaVM.framework/Versions/1.5/Home/bin:/usr/local/bin:/usr/local/ bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/teTeX/bin/powerpc- apple-darwin-current declare -x SHELL=/bin/bash Displaying maven version raises no exception: $ mvn --version Maven version: 2.0.1 But, executing a basic command fails :-( (executing a simple mvn command fails also): $ mvn archetype:create -DgroupId=com.mycompany.app - DartifactId=my-app [WARNING] Failed to initialize environment variable resolver. Skipping environment substitution in settings. [INFO] Scanning for projects... [INFO] --- - [ERROR] FATAL ERROR [INFO] --- - [INFO] String index out of range: -1 [INFO] --- - [INFO] Trace java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1768) at org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars (CommandLineUtils.java:188) at org.codehaus.plexus.util.interpolation.EnvarBasedValueSource.init (EnvarBasedValueSource.java:16) at org.apache.maven.project.interpolation.RegexBasedModelInterpolator. interpolate(RegexBasedModelInterpolator.java:86) at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectL ogic(DefaultMavenProjectBuilder.java:725) at org.apache.maven.project.DefaultMavenProjectBuilder.buildStandalone SuperProject(DefaultMavenProjectBuilder.java:1334) at org.apache.maven.DefaultMaven.getSuperProject (DefaultMaven.java:333) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:281) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke
Re: Experience with maven-proxy.rb
i found the site here: https://is-micro.myip.hu/projects/ismicro- commons/proximity/ btw, I just managed to get maven-proxy running. how different is Proximity vs Maven-proxy? ~manchi On Jan 11, 2006, at 3:45 PM, Jason Dillon wrote: FYI, I have been testing out Proximity today... And I noticed that it can get quite slow with many repositories listed. I also ran into some strange missing dependencies... That would go away and come back every other build or so. Might be better to let Maven 2 handle aggregation... Dunno. --jason -Original Message- From: Pablo Muñiz García To: Maven Users List Sent: Tue Jan 10 12:23:11 2006 Subject: Re: Experience with maven-proxy.rb Thanks Jason, Proximity was in the queue. I'll see if I can install it sucessfully. Greetings, Pablo. Jason Dillon wrote: I just got Proximity setup yesterday and so far I'm happy with it. Works for m1 and m2... And is much easier to style IMO. Sorry no URL... But google for proximity maven and you'll find it. For the record I've never heard of maven-proxy.rb so I can't say how they compair. --jason -Original Message- From: Pablo Muñiz García To: Maven Users List Sent: Tue Jan 10 11:58:06 2006 Subject: Experience with maven-proxy.rb Hi all! Lately I've been trying to find an alternative to codehaus maven-proxy that work with maven 2. After some Googling maven- proxy.rb (an script wirtten in Ruby) appeared. I've followed instructions detailed in the script, but I haven't been able to get it work under Apache. Anyone has experience on working with this project? Any success story? Maybe an alternative? Thanks in advance!! Greetings, Pablo. - 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] This email and any attachment(s) thereto, are intended for the use of the addressee(s) named herein and may contain legally privileged and or confidential information under applicable law. If you are not the intended recipient of this e-mail, you are hereby notified any dissemination, distribution or copying of this email, and any attachment(s) thereto, is strictly prohibited. If you have received this communication in error, please notify the sender at 415-281-2200 or via return e- mail at [EMAIL PROTECTED] and permanently delete the original copy and any copy of any e-mail, and any printout thereof. Thank you for your cooperation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Not possible to add multiple test resources
Thanks, it works in the way that M2 doesn't protest, but it still doesn't seems to include the additional directory in the classpath. Is there a way to debug and see what directories are included in the test classpath, or do the surefire plugin just use the local JUnit-settings? Regards, /B-E -Ursprungligt meddelande- Från: Doug Douglass [mailto:[EMAIL PROTECTED] Skickat: den 10 januari 2006 19:26 Till: Maven Users List Ämne: Re: Not possible to add multiple test resources I'm not using m2 in production yet, but with m1 you would define another resource (testResource in your case), one directory per resource. I don't think this model has changed. In other words: testResources testResource directorysrc/test/resources/directory /testResource testResource directorysrc/main/webapp/WEB-INF/directory /testResource /testResources Perhaps check the POM model. Doug Bengt-Erik Fröberg wrote: Hi again! Ive developed a taste for this mailing list Is it really true that this is not possible!? testResource directorysrc/test/resources/directory directorysrc/main/webapp/WEB-INF/directory /testResource M2 chokes on it... kinda' takes the greatness out of XML, don't you think? I need to add another directory to the test classpath how do I do? (Beginning to REALLY look forward to a comprehensive Maven2 book) Regards, /B-E - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] jxr plugin: wrong link to javadoc
Hi all, I installed the jxr-plugin. It create the report well, but in the report the link to view javadoc is wrong. Are they any other setting to put than the one on the web: http://mojo.codehaus.org/jxr-maven-plugin/howto.html any help welcome, thanks in advance. Alexandre. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Deploying 3 Party Jar to Maven-Proxy
but I do not understand why there are 2 different locations for getting m2 plugins? i could find some plugins in http://www.ibiblio.org/maven2/plugins/ but not in http://www.ibiblio.org/maven2 what is happening for this? ~manchi On Jan 11, 2006, at 2:35 AM, dan tran wrote: btw http://www.ibiblio.org/maven2/plugins/ is wrong it is http://www.ibiblio.org/maven2 On 1/10/06, dan tran [EMAIL PROTECTED] wrote: glad it works for you. and no you dont need to specify maven central plugin repo. Just add your maven-proxy entry in your pluginRepository in your root pom. Or in your settings.xml as part of default profile. -D On 1/10/06, Man-Chi Leung [EMAIL PROTECTED] wrote: hi Dan, Thanks so much. !! everything works fine now. I am so excited today! M2+Maven-Proxy are what I have been dreaming to have for long. Cool! I cannot wait to develop my next project based on this environment! frankly, I was nearly given up on maven-proxy some time ago but I came back for a try after your previous reply! thanks man. I love M2 btw, one quick question: do I need to specify repository for plugin URL in maven-proxy? http://www.ibiblio.org/maven2/plugins/ ~manchi On Jan 10, 2006, at 2:18 AM, dan tran wrote: http://maven.apache.org/guides/mini/guide-deploy-ssh-external.html there are plenty of examples looking at the root poms of existing projects -D On 1/9/06, Man-Chi Leung [EMAIL PROTECTED] wrote: hi Dan, thanks, it is great! deploy:deploy-file is working fine! I am able to deploy third party jar to my maven-proxy 's repository now, pls kindly guide me thru the next problem: how to deploy a snapshot plugin (e.g. maven-deploy-plugin) to my maven-proxy's repository? what is the configuration required? --- I added the following in maven-deploy-plugin's pom.xml --- /distributionManagement repository idmy-repository/id url scpexe://my_domain/maven-proxy/target/repo /url /repository /distributionManagement --- I added the following in ~/.m2/setting.xml --- servers server idmy-repository/id usernamemyname/username !-- Default value is ~/.ssh/id_dsa -- /server /servers --- $cd /maven-deploy-plugin $mvn deploy --- [WARNING] repository metadata for: 'snapshot org.apache.maven.plugins:maven-deploy-plugin:2.1-SNAPSHOT' could not be retrieved from repository: snapshots due to an error: Exit code: 1 - Host key verification failed. [INFO] Repository 'snapshots' will be blacklisted Uploading: scpexe://repo1.maven.org/home/projects/maven/ repository- staging/snapshots/maven2/org/apache/maven/plugins/maven-deploy- plugin/ 2.1-SNAPSHOT/maven-deploy-plugin-2.1-20060109.091301-4.jar [INFO] -- --- --- [ERROR] BUILD ERROR [INFO] -- --- --- [INFO] Error deploying artifact: Error executing command for transfer Exit code 255 - Host key verification failed. it seems that it is NOT deploying to my-repository at all. it is uploading to snapshots at repo1.maven.org. how can i change that? pls help! ~manchi On Jan 9, 2006, at 1:41 PM, Allan Ramirez wrote: Hi there, Copy your wagon-ssh-external jar to your %M2_HOME%/lib. Hope this works. -allan Man-Chi Leung wrote: hi Dan, thx for advice. according to your email: I checked out maven-deploy-plugin from svn $svn co https://svn.apache.org/repos/asf/maven/plugins/trunk/ maven- deploy-plugin maven-deploy-plugin $mvn install---ok! $more ~/.m2/settings.xml /servers server idmy-repository/id usernamemyname/username !-- Default value is ~/.ssh/id_dsa -- /server /servers $cd ~/Java/junitperf-1.9.1/lib $mvn deploy:deploy-file -U -DgroupId=com.clarkware.junitperf - DartifactId=junitperf -Dversion= 1.9.1 -Dpackaging=jar - Dfile=junitperf-1.9.1.jar -DrepositoryId=my-repository - Durl=scpexe:// mydomain/export/home/myname/maven-proxy/target/ repo [INFO] [deploy:deploy-file] [INFO] --- -- --- [ERROR] BUILD ERROR [INFO] --- -- --- [INFO] Error deploying artifact: Unsupported Protocol: 'scpexe': Cannot find wagon which supports the requested protocol: scpexe Component descriptor cannot be found in the component repository: org.apache.maven.wagon.Wagonscpexe . do u know what was the problem? ~manchi On Jan 4, 2006, at 3:15 PM, dan tran wrote: you definitely want to use deploy:file-deploy to do it, using install:install-file your maven-proxy host does not deploy
Re: [m2] Deploying 3 Party Jar to Maven-Proxy
http://www.ibiblio.org/maven2/plugins/ is old, all new plugins are in http://www.ibiblio.org/maven2/ -D On 1/11/06, Man-Chi Leung [EMAIL PROTECTED] wrote: but I do not understand why there are 2 different locations for getting m2 plugins? i could find some plugins in http://www.ibiblio.org/maven2/plugins/ but not in http://www.ibiblio.org/maven2 what is happening for this? ~manchi On Jan 11, 2006, at 2:35 AM, dan tran wrote: btw http://www.ibiblio.org/maven2/plugins/ is wrong it is http://www.ibiblio.org/maven2 On 1/10/06, dan tran [EMAIL PROTECTED] wrote: glad it works for you. and no you dont need to specify maven central plugin repo. Just add your maven-proxy entry in your pluginRepository in your root pom. Or in your settings.xml as part of default profile. -D On 1/10/06, Man-Chi Leung [EMAIL PROTECTED] wrote: hi Dan, Thanks so much. !! everything works fine now. I am so excited today! M2+Maven-Proxy are what I have been dreaming to have for long. Cool! I cannot wait to develop my next project based on this environment! frankly, I was nearly given up on maven-proxy some time ago but I came back for a try after your previous reply! thanks man. I love M2 btw, one quick question: do I need to specify repository for plugin URL in maven-proxy? http://www.ibiblio.org/maven2/plugins/ ~manchi On Jan 10, 2006, at 2:18 AM, dan tran wrote: http://maven.apache.org/guides/mini/guide-deploy-ssh-external.html there are plenty of examples looking at the root poms of existing projects -D On 1/9/06, Man-Chi Leung [EMAIL PROTECTED] wrote: hi Dan, thanks, it is great! deploy:deploy-file is working fine! I am able to deploy third party jar to my maven-proxy 's repository now, pls kindly guide me thru the next problem: how to deploy a snapshot plugin (e.g. maven-deploy-plugin) to my maven-proxy's repository? what is the configuration required? --- I added the following in maven-deploy-plugin's pom.xml --- /distributionManagement repository idmy-repository/id url scpexe://my_domain/maven-proxy/target/repo /url /repository /distributionManagement --- I added the following in ~/.m2/setting.xml --- servers server idmy-repository/id usernamemyname/username !-- Default value is ~/.ssh/id_dsa -- /server /servers --- $cd /maven-deploy-plugin $mvn deploy --- [WARNING] repository metadata for: 'snapshot org.apache.maven.plugins:maven-deploy-plugin:2.1-SNAPSHOT' could not be retrieved from repository: snapshots due to an error: Exit code: 1 - Host key verification failed. [INFO] Repository 'snapshots' will be blacklisted Uploading: scpexe://repo1.maven.org/home/projects/maven/ repository- staging/snapshots/maven2/org/apache/maven/plugins/maven-deploy- plugin/ 2.1-SNAPSHOT/maven-deploy-plugin-2.1-20060109.091301-4.jar [INFO] -- --- --- [ERROR] BUILD ERROR [INFO] -- --- --- [INFO] Error deploying artifact: Error executing command for transfer Exit code 255 - Host key verification failed. it seems that it is NOT deploying to my-repository at all. it is uploading to snapshots at repo1.maven.org. how can i change that? pls help! ~manchi On Jan 9, 2006, at 1:41 PM, Allan Ramirez wrote: Hi there, Copy your wagon-ssh-external jar to your %M2_HOME%/lib. Hope this works. -allan Man-Chi Leung wrote: hi Dan, thx for advice. according to your email: I checked out maven-deploy-plugin from svn $svn co https://svn.apache.org/repos/asf/maven/plugins/trunk/ maven- deploy-plugin maven-deploy-plugin $mvn install---ok! $more ~/.m2/settings.xml /servers server idmy-repository/id usernamemyname/username !-- Default value is ~/.ssh/id_dsa -- /server /servers $cd ~/Java/junitperf-1.9.1/lib $mvn deploy:deploy-file -U -DgroupId=com.clarkware.junitperf - DartifactId=junitperf -Dversion= 1.9.1 -Dpackaging=jar - Dfile=junitperf-1.9.1.jar -DrepositoryId=my-repository - Durl=scpexe:// mydomain/export/home/myname/maven-proxy/target/ repo [INFO] [deploy:deploy-file] [INFO] --- -- --- [ERROR] BUILD ERROR [INFO] --- -- --- [INFO] Error
Re: Maven 2 and Ant classpath issue
NB: Replaying message, as the mail client messed-up the xml extract of the previous message Hi Chris Had my first go at the lists, but hasn't been very lucky there :( I first tried this: ant antfile=build/ant-build.xml dir=${basedir} inheritRefs=true target name=generate-sources/ /ant It didn't work, so now I'm directly embedding my ant script inside the pom.xml. Which is: tasks scriptdef name=lc language=javascript attribute name=property/ attribute name=value/ project.setNewProperty(attributes.get(property), attributes.get(value).toLowerCase()); /scriptdef basename property=gw.name file=${basedir}/ lc property=gw.name.lc value=${gw.name}/ echogw.name=${gw.name}/echo echogw.name.lc=${gw.name.lc}/echo echofiltering.../echo fileset dir=${basedir}/ filterset filter token=CLIENT_NAME value=${gw.name}/ filter token=client_name value=${gw.name.lc}/ filter token=basedir value=${basedir}/ filter token=env value=${env}/ /filterset mapper type=regexp from=(.*)_GW(.*)\.(.*) to=\1${gw.name}_GW\2.\3/ echofiletering complete./echo /tasks The ant script is tested and works well standalone. Much appreciate your help. Hassan [EMAIL PROTECTED] 10/01/2006 16:34 Please respond to Maven Users List To: Maven Users List users@maven.apache.org cc: Subject:Re: Maven 2 and Ant classpath issue Hi Chris Had my first go at the lists, but hasn't been very lucky there :( I first tried this: ant antfile=build/ant-build.xml dir=${basedir} inheritRefs=true target name=generate-sources/ /ant It didn't work, so now I'm directly embedding my ant script inside the pom.xml. Which is: tasks scriptdef name=lc language=javascript attribute name=property/ attribute name=value/ .setNewProperty(attributes.get(property), .get(value).toLowerCase()); /scriptdef basename property=gw.name file=${basedir}/ lc property=gw.name.lc value=${gw.name}/ echogw.name=${gw.name}/echo echogw.name.lc=${gw.name.lc}/echo echofiltering.../echo fileset dir=${basedir}/ filterset filter token=CLIENT_NAME value=${gw.name}/ filter token=client_name value=${gw.name.lc}/ filter token=basedir value=${basedir}/ filter token=env value=${env}/ /filterset mapper type=regexp from=(.*)_GW(.*)\.(.*) to=\1${gw.name}_GW\2.\3/ echofiletering complete./echo /tasks The ant script is tested and works well standalone. Much appreciate your help. Hassan Chris Berry [EMAIL PROTECTED] 10/01/2006 15:37 Please respond to Maven Users List To: Maven Users List users@maven.apache.org cc: Subject:Re: Maven 2 and Ant classpath issue Hassan, Please search the list archives -- this has been covered many times recently. If that doesn't answer your question, then please post the POM snippet that shows the ant call. (You may have forgotten inheritRefs=true) Cheers, -- Chris On 1/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I'm using Maven 2.0.1 and trying to use a non-standard Ant task (scriptdef), in my pom.xml. It's giving me this error: Embedded error: Could not create task or type of type: scriptdef. Looks like the Maven classpath is not being used by Ant... Just to confirm, I have the required dependency jar in my pom.xml: dependency groupIdbsf/groupId artifactIdbsf/artifactId version2.3.0/version /dependency Your help is highly highly appreciated. Thanks Haz
Re: unit testing MOJOs
Hi, I had the same Problem and so I tried to use the Maven embedder, so the whole Plexus variable injection thing takes place, but unfortunately I did not manage to execute it successfully (I don't how mature the embedder is). Take a look: http://maven.apache.org/guides/mini/guide-embedding-m2.html Michael Böckling Hi, I would like to unit test my MOJO (Maven2 plugin). I could add a setter for each private instance variable, but I would like to have them injected (like when they run). What is the recommended way to unit test MOJOs? public class Instr extends AbstractMojo { /** * The artifact id * @parameter expression=${project.artifactId} */ private String artifactId; /** * The version * @parameter expression=${project.version} */ private String version; /** * The version * @parameter expression=${project.build.outputDirectory} */ private String outputDir; ... public class InstrTest { ... public final void testExecute() { try { instr.execute(); } catch (MojoExecutionException e) { Assert.fail(Not expecting a MojoExecutionException, e); } catch (MojoFailureException e) { Assert.fail(Not expecting a MojoFailureException, e); } } ... Thank you, Michael -- Giniality AG - Michael Böckling; Steinenberg 21, CH-4051 Basel P: +41 61 226 99 63 - F: +41 61 226 99 69 [EMAIL PROTECTED]; http://www.giniality.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
compile - removing source files from target directory
Hi, I'm new to Maven 2 - I was wondering if there was any setting you could add to the compiler to prevent source files being copied to the target directory, or removing them automatically after compilation. Do I need to use the process-classes phase and do something there with an additional goal, or can I actually prevent the source being copied cheers Sean
[Newbie]Mavan2 Proxies and settings and other questions
I started to build using maven having used ANT for sometime. I am using eclipse and have a load of libraries *.jar files that are in a local directory. Some of these are related to each other: JDOM.jar and JDOM-CONTRIB.jar but when I look in the repository I do not fing the JDOM-Contrib.jar. Also do I have to load all the *.jar as separate dependencies? Lastly from home the downloads worked but the proxy at work is blocking me. The settings file is: ?xml version=1.0? settings proxies proxy activetrue/active protocolhttp/protocol hostproxy.intra.bt.com/host port8080/port /proxy /proxies /settings But this does not seem to work Martin Roberts - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Where can I find this information?
Where can I find the Javadoc and other information about things like: import org.codehaus.plexus.archiver.jar.JarArchiver; import org.codehaus.plexus.util.FileUtils; ??? Also, where can I find the Javadoc and other information about things like: import org.apache.maven.archiver.MavenArchiveConfiguration; import org.apache.maven.archiver.MavenArchiver; ??? John Wells (Aziz) [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Where can I find this information?
John Wells a écrit : Where can I find the Javadoc and other information about things like: import org.codehaus.plexus.archiver.jar.JarArchiver; import org.codehaus.plexus.util.FileUtils; http://svn.codehaus.org/trunk/plexus-components/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java?rev=2436root=plexusview=auto http://svn.codehaus.org/trunk/plexus-utils/src/main/java/org/codehaus/plexus/util/FileUtils.java?rev=2931root=plexusview=auto Also, where can I find the Javadoc and other information about things like: import org.apache.maven.archiver.MavenArchiveConfiguration; import org.apache.maven.archiver.MavenArchiver; http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-archiver/src/main/java/org/apache/maven/archiver/ ??? John Wells (Aziz) [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] jxr plugin: wrong link to javadoc
I believe this is fixed in svn but has not been released yet. http://jira.codehaus.org/browse/JXR-6 -Original Message- From: Alexandre Russel [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 2:43 AM To: Maven Users List Subject: [m2] jxr plugin: wrong link to javadoc Hi all, I installed the jxr-plugin. It create the report well, but in the report the link to view javadoc is wrong. Are they any other setting to put than the one on the web: http://mojo.codehaus.org/jxr-maven-plugin/howto.html any help welcome, thanks in advance. Alexandre. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Unavoidable multiple source directories: src/sandbox/java
Hi, What is the best practice to add a second source directory? I am aware it is not recommended to have more then one, but it's unavoidable at this time in the project: src/main/java src/sandbox/java There are cyclic dependencies between both, so making a separate project for both is not an option it seems. -- With kind regards, Geoffrey De Smet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] child-level transitive dependency builds?
-Original Message- From: Edwin Punzalan [mailto:[EMAIL PROTECTED] Although, I have to say, when you did some changes on P4, you should be building it anyway, right? Because you'll need to run the tests, etc. and make sure that everything's still fine. But my IDE thinks this is all one big project. I may not have realized that I was making a change to P4. My smart IDE just took me to that source and I just fixed it. And even if I realized that my change was in a sibling project, well, that's what computers are for! :) The computer should do as much for me as it can. And when you build P4, you can just type mvn install and that would update your local repository. So that when you do try to build P1, mvn will get the latest jar in your local repo. Yes, that's what I do now. It just seems like an extra step that the computer should be able to do for me. It seems like all of the information is there to allow this to happen, we just have to make use of it. Well, uh, I suppose I could write the plugin. Hmmm... Christopher Cobb wrote: Is it expected/preferred that (all?) builds are normally be done from the top level? It doesn't seem that this works very well for situations where I have a specific plugin which should only be used for certain children. Even if I configure the plugin at the top level, it may not make sense/not work to invoke it on all the children. So I have been changing into the appropriate child directories to invoke some plugins, which leads to also doing iterative builds in those child directories. If it is expected that we will occasionally/frequently change into child project to invoke parts of the build (like I do now), then it seems like child-level builds should do transitive build dependency resolution. So if I am doing a build in P1, and P1 has some dependencies on P4, and something in P4 has changed, then P4 should also get built/installed when I am building P1. It seems like this could be done by adding something like a relativePathToProject tag within each dependency for which you would like build-time transitive dependency resolution. Or, I suppose it could also be figured out by navigating to the parent pom and examining the children. Then you could figure out which dependencies are actually project siblings and should be transitively built. It looks like sometimes/frequently you need to do child-level builds, and you may want/need dependent project siblings to be build when you do so. Is there a way to handle this now? Is this an enhancement request? - Attention: Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you received this in error, please contact the sender and delete the material from any system and destroy any copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Using variables from parent pom.xml - like version etc.
Once you've done that, you can leave off the child version/ elements, and the parent's version will be used. I'll add that it's common to inherit the group too. -Original Message- From: John Casey [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 11:56 PM To: Maven Users List Subject: Re: [m2] Using variables from parent pom.xml - like version etc. There are two requirements for versioning in this case: 1. The parent POM has to have a valid version/ element (no expressions here). 2. Each child POM must specify a parent/ element that refers to the parent POM explicitly, including the version declared in the parent POM (again, no expressions here). Once you've done that, you can leave off the child version/ elements, and the parent's version will be used. HTH, John Sanjay Choudhary wrote: Thanks for taking time to reply. Let me ask my question in different way Parent Project currentversion 4.0 project 1 - extends parent project project 2 - extends parent project project 3 - extends parent project and depends on project 1 and project 2 .. .. project 35 - extends parent project Parent project + project1..35 make an Application. Life cycle of the parent project + child project's is same as application. Let us say current version of the application 4.0. In maven 1.0.2 , we used to define tag currentVersion 4.0/currentVersionin parent project.xml Then in child projects, for example child project 3, that is dependendent on project 1 and project 2, We define dependency as artifactIdproject1/artifactId version${pom.currentVersion}/version artifactIdproject2/artifactId version${pom.currentVersion}/version Now if we hv. to release version 4.1 then all we need to do is change the parent project.xml - currentVersion attribute. We don't need to change all the 35 projects for the version. My question is how can a similar behavior achieved in M2. Thanks, Sanjay On 1/10/06, Napoleon Esmundo Ramirez [EMAIL PROTECTED] wrote: Hello, I just checked your pom's. Your parent pom seems to be okay. But I think your second pom isn't. When declaring parent projects in child projects (modules) you should explicitly define the version. Try setting it with 1.0-8, and let's see what happens. I hope it works this time. :) Cheers! Nap On 1/11/06, Allan Ramirez [EMAIL PROTECTED] wrote: Hi there, Try to use the dependencyManangement element. http://maven.apache.org/guides/introduction/introduction-to-dependenc y-mechanism.html Regards, -allan Sanjay Choudhary wrote: I tried using ${project.version} but got the following error [INFO] Trace org.apache.maven.reactor.MavenExecutionException: POM ' org.emember:org_kp_eme mber' not found in repository: org.kp.emember:org_kp_emember:pom:${project.version} project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion parent groupIdorg.emember/groupId artifactIdorg_emember/artifactId versionCAN I USE VERSION VARIABLE FROM POM? /version /parent On 1/10/06, Napoleon Esmundo Ramirez [EMAIL PROTECTED] wrote: Hello, Please try ${project.version}. Cheers! Nap On 1/11/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: I have parent pom.xml as below project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdorg.emember/groupId artifactIdorg_emember/artifactId packagingpom/packaging version1.0-8/version nameMaven Quick Start Archetype/name urlhttp://maven.apache.org/url dependencies /dependencies /project Then I have pom.xml for each module project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion parent groupIdorg.emember/groupId artifactIdorg_emember/artifactId versionCAN I USE VERSION VARIABLE FROM POM? /version /parent groupIdorg.kp.emember/groupId artifactIdkporgcommon/artifactId packagingjar/packaging versionCAN I USE VERSION VARIABLE FROM POM? /version in maven 1.0.2 we were able to use ${pom.currentVersion} but in maven 2.0. ${pom.version} doesn't work. In my build I don't want to update 35 pom.xmls. With maven 1.0.2, our scripts update parent pom and that was available in all the child projects. Please advice how we can use the variable from parent POM in M2 or if there is a alternate solution. -Sanjay No virus found in this incoming
RE: [m2 dependency plugin] updated dependency not copied
-Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] This is because the dependency plugin looks for the existing file before copying over. We originally had the ability to force an overwrite but took it out before release. The reasoning was that artifacts should be non-mutatable in the repo. Ie if we get v1 copied, we shouldn't copy v1 again. This probably doesn't fly well for snapshots though. We could possibly look for snapshots and always overwrite them, or maybe try something else. Anyone have suggestions? There are several new features in the svn version 1.1, I could get this added before the next release. In my case, P3 was part of my top-level-project, so there was some expectation that when that piece was modified/updated, this change would propagate to the rest of the project. I could see how you might want to treat a remote dependency a little more tentatively. Maybe if a dependency could be identified as a project sibling it could be treated more aggressively. I think the dependency plugin will commonly be used with sibling artifacts, and these should probably get overwritten when they get modified/updated. I agree that in general, to minimize surprise, you probably don't want to be updating artifacts unless you were asked to. But when an artifact is part of the same project, I think the surprise comes when it doesn't get updated. -Original Message- From: Christopher Cobb [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 10:31 AM To: 'Maven Users List' Subject: [m2 dependency plugin] updated dependency not copied P1 depends on P2 which depends upon P3. P1 uses the dependency plug in and P2.jar and P3.jar are successfully copied into P1's target tree. Now P3 changes and a new file (different size, different timestamp) is installed in the local repository. When P1 is built, the new version of P3.jar is not copied over the existing version. I briefly saw some similar traffic about the dependency plug in but I'm not sure if covered exactly this case so I thought I would mention it. - Attention: Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you received this in error, please contact the sender and delete the material from any system and destroy any copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2 dependency plugin] updated dependency not copied
So a simple overWrite flag per artifact would solve this for you? -Original Message- From: Christopher Cobb [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 8:41 AM To: 'Maven Users List' Subject: RE: [m2 dependency plugin] updated dependency not copied -Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] This is because the dependency plugin looks for the existing file before copying over. We originally had the ability to force an overwrite but took it out before release. The reasoning was that artifacts should be non-mutatable in the repo. Ie if we get v1 copied, we shouldn't copy v1 again. This probably doesn't fly well for snapshots though. We could possibly look for snapshots and always overwrite them, or maybe try something else. Anyone have suggestions? There are several new features in the svn version 1.1, I could get this added before the next release. In my case, P3 was part of my top-level-project, so there was some expectation that when that piece was modified/updated, this change would propagate to the rest of the project. I could see how you might want to treat a remote dependency a little more tentatively. Maybe if a dependency could be identified as a project sibling it could be treated more aggressively. I think the dependency plugin will commonly be used with sibling artifacts, and these should probably get overwritten when they get modified/updated. I agree that in general, to minimize surprise, you probably don't want to be updating artifacts unless you were asked to. But when an artifact is part of the same project, I think the surprise comes when it doesn't get updated. -Original Message- From: Christopher Cobb [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 10:31 AM To: 'Maven Users List' Subject: [m2 dependency plugin] updated dependency not copied P1 depends on P2 which depends upon P3. P1 uses the dependency plug in and P2.jar and P3.jar are successfully copied into P1's target tree. Now P3 changes and a new file (different size, different timestamp) is installed in the local repository. When P1 is built, the new version of P3.jar is not copied over the existing version. I briefly saw some similar traffic about the dependency plug in but I'm not sure if covered exactly this case so I thought I would mention it. - Attention: Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you received this in error, please contact the sender and delete the material from any system and destroy any copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: M2 multiprojects, build dependent projects builded too
Building dependent project is a planned feature : http://jira.codehaus.org/browse/CONTINUUM-58 and building when a dependency or parent change too : http://jira.codehaus.org/browse/CONTINUUM-232 Emmanuel Jens Zastrow a écrit : The multiproject structure. A (parent) B (extends A) C (extends B) Adding this M2-project to continuum result in having 3 separate projects - A,B,C not using the recursive build for A. Project A contains the whole directory-tree - including B,C too - which results - if one makes changes to B or C - in a new build to A because of the svn-change (IMHO useless). Project B or C get builded too, dependent where the change happend (IMHO a correct behavior). If now a change to A was made - i.e. adding new plugin or dependency to the pom.xml only A gets build but NOT B and C which depend on A - i.e. extending the pom.xml of A. Why continuum behaves like this? Are there some options to force the - case about project dependencies behavior? Thanks Jens Zastrow PS: Ive been using Cruisecontrol for a long time, and iam still new to Continuum.
RE: [m2] copy contents of maven.runtime.classpath for packaging
Thanks Yann, I'm now following the e-mail thread for building Eclipse plugins, features, and updates as that is my actual goal. The http://maven.apache.org/guides/mini/guide-assemblies.html shows the assembly file can include dependencySets based on scope, so I will be playing with that. -D -Original Message- From: Yann Le Du [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 5:52 PM To: Maven Users List Subject: Re: [m2] copy contents of maven.runtime.classpath for packaging Hi Darren, Maybe you can use http://mojo.codehaus.org/dependency-maven-plugin/ in a phase before the one where you run your ant-run ? HTH, -- Yann 2006/1/10, Darren Hartford [EMAIL PROTECTED]: Hey all, I have an ant-run task that helps to package a jar in a specific way. I would like to include all the runtime libs defined in the pom.xml into the /lib location (flattened) of the jar. How can I do this? When I make references to maven.runtime.classpath in build.xml, it's a path type construct and I can not use copy on it... Thanky, -D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Overwriting a goal in subproject
No, I rather don't know how to override a phase:goal written using maven-antrun-plugin. Could you give me an example? Thanks, Sandeep -Original Message- From: Henry Isidro [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 6:45 PM To: Maven Users List Subject: Re: Overwriting a goal in subproject Dixit, Sandeep (ProSource Solutions) wrote: How would that allow selective on and off? Wouldn't it set one value for all (parent and child projects)? Thanks, Sandeep Yup, sorry about that, I didn't fully understand your question. Have you tried overriding the property in the child pom? - Henry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- ***National City made the following annotations --- This communication is a confidential and proprietary business communication. It is intended solely for the use of the designated recipient(s). If this communication is received in error, please contact the sender and delete this communication. === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need help with ibiblio problems
Yes, it is working. Thanks for the prompt help. -chris -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 10:18 PM To: Maven Users List Subject: Re: Need help with ibiblio problems fixed. Not sure why it was working for other jars before with a leading slash, but it is now working for them all. - Brett On 1/11/06, Brett Porter [EMAIL PROTECTED] wrote: That's quite odd. The rule is there, but is not being picked up. I'll continue investigating. - Brett On 1/11/06, Helck, Christopher [EMAIL PROTECTED] wrote: I have issues If I browse to http://www.ibiblio.org/maven/jaxen/jars/ I can see my jar file. If I click on it I get a 404 error. If I click the other jar files on the page they seem ok. I'm not sure which jaxen file you special cased. Thanks, Christopher -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 4:51 PM To: Maven Users List Subject: Re: Need help with ibiblio problems The changes should be transparent. jaxen was one of the JARs I had special cased, but it was for a version of 1.0-FCS. This should be fixed now. Please let us know if there are any other issues. - Brett On 1/11/06, Helck, Christopher [EMAIL PROTECTED] wrote: What's happened to ibiblio/maven? Maven is unable to download jaxen-1.0-FCS-full.jar. Yet when I browse to the ibiblio it seems to be there and other jars download ok. I gather there is a restructuring of ibiblio going on for maven 2. Is this the issue? Is there a description of the changes anywhere? Thanks, C. Helck Thank you for being part of it. The information contained in this e-mail is confidential. This e-mail is intended only for the stated addressee. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this e-mail. if you have received this e-mail in error, please inform us immediately and delete it and all copies from your system. EBS Dealing Resources International Limited. Registered address: 10 Paternoster Square, London EC4M 7DY, United Kingdom. Registered number 2669861. EBS Dealing Resources, Inc, registered in Delaware. Address: 535 Madison Avenue, 24th Floor, New York, NY 10022, USA, and One upper Pond road, Building F - Floor 3, Parsippany, NJ 07054, USA. EBS Dealing Resources Japan Limited, a Japanese Corporation. Address: Asteer Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku, Tokyo 104-0033, Japan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need more help with broken ibiblio: 404 on werkz-1.0-beta-10.jar
I browse to http://www.ibiblio.org/maven/werkz/jars/ and werkz-1.0-beta-10.jar is visible, but when I click on it I get 404 error. Same is true for some some other files in the directory: werkz-1.0-beta-11.jar and werkz-1.0-beta-3.20020715.042250.jar to name a few. -chris Thank you for being part of it. The information contained in this e-mail is confidential. This e-mail is intended only for the stated addressee. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this e-mail. if you have received this e-mail in error, please inform us immediately and delete it and all copies from your system. EBS Dealing Resources International Limited. Registered address: 10 Paternoster Square, London EC4M 7DY, United Kingdom. Registered number 2669861. EBS Dealing Resources, Inc, registered in Delaware. Address: 535 Madison Avenue, 24th Floor, New York, NY 10022, USA, and One upper Pond road, Building F - Floor 3, Parsippany, NJ 07054, USA. EBS Dealing Resources Japan Limited, a Japanese Corporation. Address: Asteer Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku, Tokyo 104-0033, Japan.
Antw: [M2] loader constraints violated when linking org/xml/sax/InputSource class
Hello, I still have no idea, what the error described below is about. Is there anyone with any suggestions? Thank you, Stefan [EMAIL PROTECTED] 09.01.2006 15:58:31 Hello *, when running the JUnit tests of my project with maven, I get the following error (JUnit tests within Eclipse work fine): loader constraints violated when linking org/xml/sax/InputSource class On the internet I found some solutions (without detailed explanation) for maven 1, but I don't know what to do in Maven 2. First of all I would like to understand the reason of this error. The dependencies of my project are junit-3.8.1.jar weblogic-9.0.jar (It's the weblogic.jar of WLS 9 from my local repository) webserviceclient-ssl-9.0.jar (also from WLS 9) and I use JDK 1.5_05. The class org.xml.sax.InputSource is in both, the webserviceclient-ssl-9.0-jar and the JRE 1.5. Does it have anything to do with that? Thanks in advance for your help! Regards, Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Maven2 building Eclipse plugins, features, and update sites
I have tried the ANT-tasks that eclipse provides, and at least for plugin-packaging they seem over-complicated. I have had success (just recently based on the mini-guide for assembly) in packaging the update-jar for an eclipse plugin as follows: Pom.xml (note I'm specifying a MANIFEST.MF file) === !-- previously downloaded the eclipse jars into local repo and put in for compile-time dependency -- build sourceDirectorysrc/sourceDirectory plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifestFilesrc/main/resources/META-INF/MANIFEST.MF/manifestFile /archive /configuration /plugin plugin artifactIdmaven-assembly-plugin/artifactId configuration descriptorsrc/main/assembly/dep.xml/descriptor /configuration /plugin /plugins /build ===end pom.xml=== Src/main/assembly/dep.xml assembly !-- TODO: a jarjar format would be better -- iddep/id formats formatjar/format /formats fileSets fileSet outputDirectory//outputDirectory /fileSet !-- I think this is everyting based on eclipse workspace -- fileset dir=${basedir} includes=plugin.xml,META-INF/,null,icons/,pom.xml,toc.xml,html// /fileSets dependencySets dependencySet outputDirectory//outputDirectory unpacktrue/unpack scoperuntime/scope excludes excludejunit:junit/exclude /excludes /dependencySet /dependencySets /assembly ===end dep.xml=== I'm also interested in the features/update sites possibility, particuarly where I want to accomplish these tasks through autobuild instead of manually through Eclipse. I imagine something related to the :release maven plugin would come into play. P.s. I have also recently learned that the update-jar name does NOT seem to matter for Eclipse to load, so you can use the {artifactId}-{version}.jar for the eclipse-plugin-jar and deploy to repo. Again, only so-far, if there is something later that this may impact please let me know! -D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
deploy .war to tomcat after continuum detects changes
Greetings: I am a first time user of Continuum. I have recently got it working and now would like it to deploy the snapshot .war to tomcat once a change is detected to continually have the most recent version of the project online. Is anyone aware of a way that this can be done? Thanks. Adam
Re: [M2] loader constraints violated when linking org/xml/sax/InputSource class
Try forking the unit tests in maven, see surefire plugin docs On 1/11/06, Stefan Rademacher [EMAIL PROTECTED] wrote: Hello, I still have no idea, what the error described below is about. Is there anyone with any suggestions? Thank you, Stefan [EMAIL PROTECTED] 09.01.2006 15:58:31 Hello *, when running the JUnit tests of my project with maven, I get the following error (JUnit tests within Eclipse work fine): loader constraints violated when linking org/xml/sax/InputSource class On the internet I found some solutions (without detailed explanation) for maven 1, but I don't know what to do in Maven 2. First of all I would like to understand the reason of this error. The dependencies of my project are junit-3.8.1.jar weblogic-9.0.jar (It's the weblogic.jar of WLS 9 from my local repository) webserviceclient-ssl-9.0.jar (also from WLS 9) and I use JDK 1.5_05. The class org.xml.sax.InputSource is in both, the webserviceclient-ssl-9.0-jar and the JRE 1.5. Does it have anything to do with that? Thanks in advance for your help! Regards, Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Using variables from parent pom.xml - like version etc.
Does this really address the issue that Sanjay is trying to solve? If the parent definition requires the version to be added, then every time the version is incremented all child POMs must be updated to reflect the new parent version. This means that all POMs in the inheritance heirarchy must be updated for every version increment. I've seen some postings talking about using the release-plugin to automate this behavior (re-versioning all POMs), but haven't found any good docs on that particular plugin. Pointers would be appreciated. Seems odd that this very useful feature of M1 didn't make it into M2. --- Brian E. Fox [EMAIL PROTECTED] wrote: Once you've done that, you can leave off the child version/ elements, and the parent's version will be used. I'll add that it's common to inherit the group too. -Original Message- From: John Casey [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 11:56 PM To: Maven Users List Subject: Re: [m2] Using variables from parent pom.xml - like version etc. There are two requirements for versioning in this case: 1. The parent POM has to have a valid version/ element (no expressions here). 2. Each child POM must specify a parent/ element that refers to the parent POM explicitly, including the version declared in the parent POM (again, no expressions here). Once you've done that, you can leave off the child version/ elements, and the parent's version will be used. HTH, John Sanjay Choudhary wrote: Thanks for taking time to reply. Let me ask my question in different way Parent Project currentversion 4.0 project 1 - extends parent project project 2 - extends parent project project 3 - extends parent project and depends on project 1 and project 2 .. .. project 35 - extends parent project Parent project + project1..35 make an Application. Life cycle of the parent project + child project's is same as application. Let us say current version of the application 4.0. In maven 1.0.2 , we used to define tag currentVersion 4.0/currentVersionin parent project.xml Then in child projects, for example child project 3, that is dependendent on project 1 and project 2, We define dependency as artifactIdproject1/artifactId version${pom.currentVersion}/version artifactIdproject2/artifactId version${pom.currentVersion}/version Now if we hv. to release version 4.1 then all we need to do is change the parent project.xml - currentVersion attribute. We don't need to change all the 35 projects for the version. My question is how can a similar behavior achieved in M2. Thanks, Sanjay On 1/10/06, Napoleon Esmundo Ramirez [EMAIL PROTECTED] wrote: Hello, I just checked your pom's. Your parent pom seems to be okay. But I think your second pom isn't. When declaring parent projects in child projects (modules) you should explicitly define the version. Try setting it with 1.0-8, and let's see what happens. I hope it works this time. :) Cheers! Nap On 1/11/06, Allan Ramirez [EMAIL PROTECTED] wrote: Hi there, Try to use the dependencyManangement element. http://maven.apache.org/guides/introduction/introduction-to-dependenc y-mechanism.html Regards, -allan Sanjay Choudhary wrote: I tried using ${project.version} but got the following error [INFO] Trace org.apache.maven.reactor.MavenExecutionException: POM ' org.emember:org_kp_eme mber' not found in repository: org.kp.emember:org_kp_emember:pom:${project.version} project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion parent groupIdorg.emember/groupId artifactIdorg_emember/artifactId versionCAN I USE VERSION VARIABLE FROM POM? /version /parent On 1/10/06, Napoleon Esmundo Ramirez [EMAIL PROTECTED] wrote: Hello, Please try ${project.version}. Cheers! Nap On 1/11/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: I have parent pom.xml as below project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdorg.emember/groupId artifactIdorg_emember/artifactId packagingpom/packaging version1.0-8/version nameMaven Quick Start Archetype/name urlhttp://maven.apache.org/url dependencies /dependencies /project Then I have pom.xml for each module project === message truncated === __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around
Help manually building a debug jar
I'm looking for a way to manually build a debug jar for one of my projects in maven. I'm assuming there is a command somewhere to do this but I can't seem to find it. Currently I can manually build a jar from the command prompt on the build box by issuing the following commands cd\buildsystem\build\target\checkouts\module-ebsBook call maven jar This builds the jar fine but it does not include the java code in the jar only class files. Does anyone know the command to make this happen? Thanks for your help in advance. CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. --
[M1.1b2] Cyclic dependencies debugging
Hi, I'm getting a A cycle was detected message during a multi-project build. Running the build with -e and -X doesn't really tell me where the reactor thinks the problem is. I think I've found the dependency the reactor is complaining about. By process of elimination I was able to get the build to proceed by commenting out one dependency in one sub-project - but it just doesn't make sense. - The dependency is to a .tld file that's just used by this sub-project. - The sub-project's has a single output, which is used only by what I think would be the last sub-project. - Even when I comment out the dependency, the sub-project that it's in doesn't get picked up by the reactor. Does anyone have any ideas or suggestions on debugging issues like this? Thanks, Matthew Kleiderman Xerox Global Services Xerox Corporation 145 Federal St. Salem, MA 01970 USA Phone: 978.979.8726 [EMAIL PROTECTED] XEROX GLOBAL SERVICES Technology. Document Management. Consulting Services. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 2 and Ant classpath issue
http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html On 1/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: NB: Replaying message, as the mail client messed-up the xml extract of the previous message Hi Chris Had my first go at the lists, but hasn't been very lucky there :( I first tried this: ant antfile=build/ant-build.xml dir=${basedir} inheritRefs=true target name=generate-sources/ /ant It didn't work, so now I'm directly embedding my ant script inside the pom.xml. Which is: tasks scriptdef name=lc language=javascript attribute name=property/ attribute name=value/ project.setNewProperty(attributes.get(property), attributes.get(value).toLowerCase()); /scriptdef basename property=gw.name file=${basedir}/ lc property=gw.name.lc value=${gw.name}/ echogw.name=${gw.name}/echo echogw.name.lc=${gw.name.lc}/echo echofiltering.../echo fileset dir=${basedir}/ filterset filter token=CLIENT_NAME value=${gw.name}/ filter token=client_name value=${gw.name.lc}/ filter token=basedir value=${basedir}/ filter token=env value=${env}/ /filterset mapper type=regexp from=(.*)_GW(.*)\.(.*) to=\1${gw.name}_GW\2.\3/ echofiletering complete./echo /tasks The ant script is tested and works well standalone. Much appreciate your help. Hassan [EMAIL PROTECTED] 10/01/2006 16:34 Please respond to Maven Users List To: Maven Users List users@maven.apache.org cc: Subject:Re: Maven 2 and Ant classpath issue Hi Chris Had my first go at the lists, but hasn't been very lucky there :( I first tried this: ant antfile=build/ant-build.xml dir=${basedir} inheritRefs=true target name=generate-sources/ /ant It didn't work, so now I'm directly embedding my ant script inside the pom.xml. Which is: tasks scriptdef name=lc language=javascript attribute name=property/ attribute name=value/ .setNewProperty(attributes.get(property), .get(value).toLowerCase()); /scriptdef basename property=gw.name file=${basedir}/ lc property=gw.name.lc value=${gw.name}/ echogw.name=${gw.name}/echo echogw.name.lc=${gw.name.lc}/echo echofiltering.../echo fileset dir=${basedir}/ filterset filter token=CLIENT_NAME value=${gw.name}/ filter token=client_name value=${gw.name.lc}/ filter token=basedir value=${basedir}/ filter token=env value=${env}/ /filterset mapper type=regexp from=(.*)_GW(.*)\.(.*) to=\1${gw.name}_GW\2.\3/ echofiletering complete./echo /tasks The ant script is tested and works well standalone. Much appreciate your help. Hassan Chris Berry [EMAIL PROTECTED] 10/01/2006 15:37 Please respond to Maven Users List To: Maven Users List users@maven.apache.org cc: Subject:Re: Maven 2 and Ant classpath issue Hassan, Please search the list archives -- this has been covered many times recently. If that doesn't answer your question, then please post the POM snippet that shows the ant call. (You may have forgotten inheritRefs=true) Cheers, -- Chris On 1/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I'm using Maven 2.0.1 and trying to use a non-standard Ant task (scriptdef), in my pom.xml. It's giving me this error: Embedded error: Could not create task or type of type: scriptdef. Looks like the Maven classpath is not being used by Ant... Just to confirm, I have the required dependency jar in my pom.xml: dependency groupIdbsf/groupId artifactIdbsf/artifactId version2.3.0/version /dependency Your help is highly highly appreciated. Thanks Haz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deploy .war to tomcat after continuum detects changes
Hi Adam, We have the same needs here. Currently, we are using a shell script that is launched by Continuum (Shell Project). But we're looking forward to using http://mojo.codehaus.org/tomcat-maven-plugin/ HTH, -- Yann 2006/1/11, Punkin Head [EMAIL PROTECTED]: Greetings: I am a first time user of Continuum. I have recently got it working and now would like it to deploy the snapshot .war to tomcat once a change is detected to continually have the most recent version of the project online. Is anyone aware of a way that this can be done? Thanks. Adam
RE : deploy .war to tomcat after continuum detects changes
Look at the cargo m2 plugin. http://cargo.codehaus.org/Maven2+plugin Add in a profile in your pom which declare a cargo deploy. Attach this to a phase (package) and add -P profileid in your continuum build. - Olivier -Message d'origine- De : Punkin Head [mailto:[EMAIL PROTECTED] Envoyé : mercredi 11 janvier 2006 16:06 À : continuum-users@maven.apache.org Objet : deploy .war to tomcat after continuum detects changes Greetings: I am a first time user of Continuum. I have recently got it working and now would like it to deploy the snapshot .war to tomcat once a change is detected to continually have the most recent version of the project online. Is anyone aware of a way that this can be done? Thanks. Adam This e-mail, any attachments and the information contained therein (this message) are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. -- Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après le message ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. -
[m2] Repository download failure when defining an xdoclet2 dependency
Hi, When trying to compile my project, I got the following error :-( I added an xdoclet2 dependency but for now the build always fails ... :-/ If the download from the central fails, why does not it try tu use a mirror I defined in my settings.xml file ? Does anyone has a practical example of using xdoclet2 with maven2 ? Thanks, Romain $ mvn compile [INFO] Scanning for projects... [INFO] -- -- [INFO] Building Fractal Doclet Tool [INFO]task-segment: [compile] [INFO] -- -- [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. Downloading: http://www.ibiblio.org/maven2/generama/qdox/ 20051211.114207/qdox-20051211.114207.pom [WARNING] Unable to get resource from repository central (http:// repo1.maven.org/maven2) [WARNING] While downloading servletapi:servletapi:2.3 This artifact has been relocated to javax.servlet:servlet-api:2.3. [WARNING] While downloading xml-apis:xml-apis:2.0.2 This artifact has been relocated to xml-apis:xml-apis:1.0.b2. [WARNING] While downloading jstl:jstl:1.0.6 This artifact has been relocated to javax.servlet:jstl:1.0.6. [WARNING] While downloading xml-apis:xml-apis:2.0.2 This artifact has been relocated to xml-apis:xml-apis:1.0.b2. [WARNING] While downloading icu4j:icu4j:2.6.1 This artifact has been relocated to com.ibm.icu:icu4j:2.6.1. [WARNING] While downloading servletapi:servletapi:2.4 This artifact has been relocated to javax.servlet:servlet-api:2.4. [WARNING] While downloading tagsoup:tagsoup:0.9.7 This artifact has been relocated to org.ccil.cowan.tagsoup:tagsoup:0.9.7. Downloading: http://www.ibiblio.org/maven2/groovy/groovy-all/1.0- jsr-04/groovy-all-1.0-jsr-04.pom [WARNING] Unable to get resource from repository central (http:// repo1.maven.org/maven2) Downloading: http://www.ibiblio.org/maven2/xpp3/xpp3/1.1.3.4- RC8_min/xpp3-1.1.3.4-RC8_min.pom [WARNING] Unable to get resource from repository central (http:// repo1.maven.org/maven2) Downloading: http://www.ibiblio.org/maven2/freemarker/freemarker/ 2.3/freemarker-2.3.pom [WARNING] Unable to get resource from repository central (http:// repo1.maven.org/maven2) Downloading: http://www.ibiblio.org/maven2/xpp3/xpp3/1.1.3.4- RC8_min/xpp3-1.1.3.4-RC8_min.jar [WARNING] Unable to get resource from repository central (http:// repo1.maven.org/maven2) Downloading: http://www.ibiblio.org/maven2/freemarker/freemarker/ 2.3/freemarker-2.3.jar [WARNING] Unable to get resource from repository central (http:// repo1.maven.org/maven2) Downloading: http://www.ibiblio.org/maven2/generama/qdox/ 20051211.114207/qdox-20051211.114207.jar [WARNING] Unable to get resource from repository central (http:// repo1.maven.org/maven2) Downloading: http://www.ibiblio.org/maven2/groovy/groovy-all/1.0- jsr-04/groovy-all-1.0-jsr-04.jar [WARNING] Unable to get resource from repository central (http:// repo1.maven.org/maven2) [INFO] -- -- [ERROR] BUILD ERROR [INFO] -- -- [INFO] Failed to resolve artifact. required artifacts missing: xpp3:xpp3:jar:1.1.3.4-RC8_min freemarker:freemarker:jar:2.3 generama:qdox:jar:20051211.114207 groovy:groovy-all:jar:1.0-jsr-04 for the artifact: org.objectweb.fractal.doclet:fractal-doclet:jar:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) [INFO] -- -- [INFO] For more information, run Maven with the -e switch [INFO] -- -- [INFO] Total time: 45 seconds [INFO] Finished at: Wed Jan 11 16:30:51 CET 2006 [INFO] Final Memory: 3M/7M [INFO] -- -- Here is my pom file: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http:// maven.apache.org/maven-v4_0_0.xsd modelVersion4.0.0/modelVersion groupIdorg.objectweb.fractal.doclet/groupId artifactIdfractal-doclet/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameFractal Doclet Tool/name urlhttp://fractal.objectweb.org/url dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version /dependency dependency groupIdxdoclet/groupId artifactIdxdoclet/artifactId version2.0.4/version /dependency /dependencies /project - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Using variables from parent pom.xml - like version etc.
I agree with Sean, it will be a pain and time comsuming effort if all the child project's POM needs to be updated. -Sanjay On 1/11/06, Sean McNamara [EMAIL PROTECTED] wrote: Does this really address the issue that Sanjay is trying to solve? If the parent definition requires the version to be added, then every time the version is incremented all child POMs must be updated to reflect the new parent version. This means that all POMs in the inheritance heirarchy must be updated for every version increment. I've seen some postings talking about using the release-plugin to automate this behavior (re-versioning all POMs), but haven't found any good docs on that particular plugin. Pointers would be appreciated. Seems odd that this very useful feature of M1 didn't make it into M2. --- Brian E. Fox [EMAIL PROTECTED] wrote: Once you've done that, you can leave off the child version/ elements, and the parent's version will be used. I'll add that it's common to inherit the group too. -Original Message- From: John Casey [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 11:56 PM To: Maven Users List Subject: Re: [m2] Using variables from parent pom.xml - like version etc. There are two requirements for versioning in this case: 1. The parent POM has to have a valid version/ element (no expressions here). 2. Each child POM must specify a parent/ element that refers to the parent POM explicitly, including the version declared in the parent POM (again, no expressions here). Once you've done that, you can leave off the child version/ elements, and the parent's version will be used. HTH, John Sanjay Choudhary wrote: Thanks for taking time to reply. Let me ask my question in different way Parent Project currentversion 4.0 project 1 - extends parent project project 2 - extends parent project project 3 - extends parent project and depends on project 1 and project 2 .. .. project 35 - extends parent project Parent project + project1..35 make an Application. Life cycle of the parent project + child project's is same as application. Let us say current version of the application 4.0. In maven 1.0.2 , we used to define tag currentVersion 4.0/currentVersionin parent project.xml Then in child projects, for example child project 3, that is dependendent on project 1 and project 2, We define dependency as artifactIdproject1/artifactId version${pom.currentVersion}/version artifactIdproject2/artifactId version${pom.currentVersion}/version Now if we hv. to release version 4.1 then all we need to do is change the parent project.xml - currentVersion attribute. We don't need to change all the 35 projects for the version. My question is how can a similar behavior achieved in M2. Thanks, Sanjay On 1/10/06, Napoleon Esmundo Ramirez [EMAIL PROTECTED] wrote: Hello, I just checked your pom's. Your parent pom seems to be okay. But I think your second pom isn't. When declaring parent projects in child projects (modules) you should explicitly define the version. Try setting it with 1.0-8, and let's see what happens. I hope it works this time. :) Cheers! Nap On 1/11/06, Allan Ramirez [EMAIL PROTECTED] wrote: Hi there, Try to use the dependencyManangement element. http://maven.apache.org/guides/introduction/introduction-to-dependenc y-mechanism.html Regards, -allan Sanjay Choudhary wrote: I tried using ${project.version} but got the following error [INFO] Trace org.apache.maven.reactor.MavenExecutionException: POM ' org.emember:org_kp_eme mber' not found in repository: org.kp.emember:org_kp_emember:pom:${project.version} project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion parent groupIdorg.emember/groupId artifactIdorg_emember/artifactId versionCAN I USE VERSION VARIABLE FROM POM? /version /parent On 1/10/06, Napoleon Esmundo Ramirez [EMAIL PROTECTED] wrote: Hello, Please try ${project.version}. Cheers! Nap On 1/11/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: I have parent pom.xml as below project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdorg.emember/groupId artifactIdorg_emember/artifactId packagingpom/packaging
[m2] Jetty6 plugin new feature
Apologies for the noise, but as there's been some discussion about the jetty6 plugin lately I thought it may be useful to post this here: A new snapshot release 20060111.124832-7 is available of Jetty6 and the maven-jetty6-plugin from http://www.mortbay.com/maven2/snapshot/ The maven-jetty6-plugin contains the following changes: + you can optionally configure the location of the tmp directory used by the webapp. The default is target/jetty-tmp. + it no longer barfs if there is no target/classes directory so webapps can be composed of eg jsp/html files only. Full documentation for the plugin and all configurable properties is available from http://jetty.mortbay.org/jetty6/ Feedback on the plugin is welcome and should be posted to the [EMAIL PROTECTED] list. thanks Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2 dependency plugin] updated dependency not copied
That would work for me. -Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 8:49 AM To: Maven Users List Subject: RE: [m2 dependency plugin] updated dependency not copied So a simple overWrite flag per artifact would solve this for you? -Original Message- From: Christopher Cobb [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 8:41 AM To: 'Maven Users List' Subject: RE: [m2 dependency plugin] updated dependency not copied -Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] This is because the dependency plugin looks for the existing file before copying over. We originally had the ability to force an overwrite but took it out before release. The reasoning was that artifacts should be non-mutatable in the repo. Ie if we get v1 copied, we shouldn't copy v1 again. This probably doesn't fly well for snapshots though. We could possibly look for snapshots and always overwrite them, or maybe try something else. Anyone have suggestions? There are several new features in the svn version 1.1, I could get this added before the next release. In my case, P3 was part of my top-level-project, so there was some expectation that when that piece was modified/updated, this change would propagate to the rest of the project. I could see how you might want to treat a remote dependency a little more tentatively. Maybe if a dependency could be identified as a project sibling it could be treated more aggressively. I think the dependency plugin will commonly be used with sibling artifacts, and these should probably get overwritten when they get modified/updated. I agree that in general, to minimize surprise, you probably don't want to be updating artifacts unless you were asked to. But when an artifact is part of the same project, I think the surprise comes when it doesn't get updated. -Original Message- From: Christopher Cobb [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 10:31 AM To: 'Maven Users List' Subject: [m2 dependency plugin] updated dependency not copied P1 depends on P2 which depends upon P3. P1 uses the dependency plug in and P2.jar and P3.jar are successfully copied into P1's target tree. Now P3 changes and a new file (different size, different timestamp) is installed in the local repository. When P1 is built, the new version of P3.jar is not copied over the existing version. I briefly saw some similar traffic about the dependency plug in but I'm not sure if covered exactly this case so I thought I would mention it. - Attention: Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you received this in error, please contact the sender and delete the material from any system and destroy any copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Unavoidable multiple source directories: src/sandbox/java
http://mojo.codehaus.org/build-helper-maven-plugin/ On 1/11/06, Geoffrey [EMAIL PROTECTED] wrote: Hi, What is the best practice to add a second source directory? I am aware it is not recommended to have more then one, but it's unavoidable at this time in the project: src/main/java src/sandbox/java There are cyclic dependencies between both, so making a separate project for both is not an option it seems. -- With kind regards, Geoffrey De Smet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Repository download failure when defining an xdoclet2 dependency
Hi Romain, These dependencies / versions aren't in central, so they won't be in mirrors either. If you think you don't need these dependencies for xdoclet, you can : 1. exclude them : http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-CanIdisabletransitivedependencies%3Fhttp://maven.apache.org/maven-model/maven.html#class_dependency 2. Have xdoclet POM corrected in central (using e.g. optional) : http://maven.apache.org/guides/mini/guide-maven-evangelism.html If you really need these dependencies, you can : 1. Add - or correct - them manually in your repo : http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-HowdoIinstallafileinmylocalrepositoryalongwithmycustomizedPOM%3F http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html 2. Have them added - or corrected - in central : http://maven.apache.org/guides/mini/guide-ibiblio-upload.html -- Yann 2006/1/11, Romain Rouvoy [EMAIL PROTECTED] : Hi, When trying to compile my project, I got the following error :-( I added an xdoclet2 dependency but for now the build always fails ... :-/ If the download from the central fails, why does not it try tu use a mirror I defined in my settings.xml file ? Does anyone has a practical example of using xdoclet2 with maven2 ? Thanks, Romain $ mvn compile [INFO] Scanning for projects... [INFO] -- -- [INFO] Building Fractal Doclet Tool [INFO]task-segment: [compile] [INFO] -- -- [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. Downloading: http://www.ibiblio.org/maven2/generama/qdox/ 20051211.114207 /qdox-20051211.114207.pom [WARNING] Unable to get resource from repository central (http:// repo1.maven.org/maven2) http://repo1.maven.org/maven2%29 [WARNING] While downloading servletapi:servletapi:2.3 This artifact has been relocated to javax.servlet:servlet-api:2.3. [WARNING] While downloading xml-apis:xml-apis:2.0.2 This artifact has been relocated to xml-apis:xml-apis:1.0.b2. [WARNING] While downloading jstl:jstl:1.0.6 This artifact has been relocated to javax.servlet:jstl:1.0.6. [WARNING] While downloading xml-apis:xml-apis:2.0.2 This artifact has been relocated to xml-apis:xml-apis:1.0.b2. [WARNING] While downloading icu4j:icu4j: 2.6.1 This artifact has been relocated to com.ibm.icu:icu4j:2.6.1. [WARNING] While downloading servletapi:servletapi:2.4 This artifact has been relocated to javax.servlet:servlet-api:2.4 . [WARNING] While downloading tagsoup:tagsoup:0.9.7 This artifact has been relocated to org.ccil.cowan.tagsoup:tagsoup:0.9.7. Downloading: http://www.ibiblio.org/maven2/groovy/groovy-all/1.0- jsr-04/groovy-all-1.0-jsr-04.pom [WARNING] Unable to get resource from repository central (http:// repo1.maven.org/maven2) http://repo1.maven.org/maven2%29 Downloading: http://www.ibiblio.org/maven2/xpp3/xpp3/1.1.3.4- RC8_min/xpp3-1.1.3.4-RC8_min.pom [WARNING] Unable to get resource from repository central (http:// repo1.maven.org/maven2) http://repo1.maven.org/maven2%29 Downloading: http://www.ibiblio.org/maven2/freemarker/freemarker/ 2.3/freemarker-2.3.pom [WARNING] Unable to get resource from repository central (http:// repo1.maven.org/maven2) http://repo1.maven.org/maven2%29 Downloading: http://www.ibiblio.org/maven2/xpp3/xpp3/1.1.3.4- RC8_min/xpp3-1.1.3.4-RC8_min.jar [WARNING] Unable to get resource from repository central (http:// repo1.maven.org/maven2) http://repo1.maven.org/maven2%29 Downloading: http://www.ibiblio.org/maven2/freemarker/freemarker/ 2.3/freemarker-2.3.jar [WARNING] Unable to get resource from repository central (http:// repo1.maven.org/maven2) http://repo1.maven.org/maven2%29 Downloading: http://www.ibiblio.org/maven2/generama/qdox/ 20051211.114207 /qdox-20051211.114207.jar [WARNING] Unable to get resource from repository central (http:// repo1.maven.org/maven2) http://repo1.maven.org/maven2%29 Downloading: http://www.ibiblio.org/maven2/groovy/groovy-all/1.0- jsr-04/groovy-all-1.0-jsr-04.jar [WARNING] Unable to get resource from repository central (http:// repo1.maven.org/maven2) http://repo1.maven.org/maven2%29 [INFO] -- -- [ERROR] BUILD ERROR [INFO] -- -- [INFO] Failed to resolve artifact. required artifacts missing: xpp3:xpp3:jar:1.1.3.4-RC8_min freemarker:freemarker:jar:2.3 generama:qdox:jar:20051211.114207 groovy:groovy-all:jar:1.0-jsr-04 for the artifact: org.objectweb.fractal.doclet:fractal-doclet:jar:1.0-SNAPSHOT from the specified remote repositories: central ( http://repo1.maven.org/maven2) [INFO]
RE: [m2] copy contents of maven.runtime.classpath [dependency-maven-plugin]
I mis-spoke earlier, the assembly doesn't seem to do what I would want. I did try this: Pom.xml === plugin groupIdorg.codehaus.mojo/groupId artifactIddependency-maven-plugin/artifactId executions execution idcopy-dependencies/id phasecompile/phase goals goalcopy-dependencies/goal /goals configuration outputDirectorysrc/main/resources/lib/outputDirectory /configuration /execution /executions /plugin But even though I specify it in the compile-phase, the /lib dir is NOT included in the package...until the SECOND time package is run. Is that a bug? Also, there doesn't seem to be a configuration for scope, should there be or is that not the intent of this plugin? -D -Original Message- From: Yann Le Du [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 5:52 PM To: Maven Users List Subject: Re: [m2] copy contents of maven.runtime.classpath for packaging Hi Darren, Maybe you can use http://mojo.codehaus.org/dependency-maven-plugin/ in a phase before the one where you run your ant-run ? HTH, -- Yann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
C#
Does anybody have any experience with using maven with C# and Visual Studio? Are there best practices for directory layout, which files to store in CVS and which not, etcetera? Ok, I know a visual-studio plugin like the eclipse or netbeans plugin probably won't exist, but any experience would be helpful. x-tad-smallerMet vriendelijke groeten, Jan Dockx /x-tad-smallerx-tad-smaller PeopleWare NV - Head Office/x-tad-smallerx-tad-smaller Cdt.Weynsstraat 85 B-2660 Hoboken Tel: +32 3 448.33.38 Fax: +32 3 448.32.66 /x-tad-smallerx-tad-bigger /x-tad-biggerx-tad-smaller PeopleWare NV - Branch Office Geel/x-tad-smallerx-tad-smaller Kleinhoefstraat 5 B-2440 Geel Tel: +32 14 57.00.90 Fax: +32 14 58.13.25/x-tad-smallerx-tad-bigger /x-tad-biggerx-tad-smaller http://www.peopleware.be/ /x-tad-smallerx-tad-smallerhttp://www.mobileware.be//x-tad-smaller smime.p7s Description: S/MIME cryptographic signature
Re: C#
There were several threads in the mailing list about C# Some docs here: http://docs.codehaus.org/display/MAVEN/Support+for+other+languages On 1/11/06, ir. ing. Jan Dockx [EMAIL PROTECTED] wrote: Does anybody have any experience with using maven with C# and Visual Studio? Are there best practices for directory layout, which files to store in CVS and which not, etcetera? Ok, I know a visual-studio plugin like the eclipse or netbeans plugin probably won't exist, but any experience would be helpful. Met vriendelijke groeten, Jan Dockx PeopleWare NV - Head Office Cdt.Weynsstraat 85 B-2660 Hoboken Tel: +32 3 448.33.38 Fax: +32 3 448.32.66 PeopleWare NV - Branch Office Geel Kleinhoefstraat 5 B-2440 Geel Tel: +32 14 57.00.90 Fax: +32 14 58.13.25 http://www.peopleware.be/ http://www.mobileware.be/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Maven2 building Eclipse plugins, features, and update sites
Found a reference on the mevenide-user mailing list with some good info: http://www.nabble.com/-mevenide-user-Re%3A-Project-status-t481604.html#a 1310842 I'm still stuck on including runtime-scope dependencies into the packaged jar (under /lib). Maven-dependency-plugin seems to be the right approach, but 1. it doesn't differentiate scopes 2. isn't visible to the package-phase during that maven instance -- i.e., the second time you run package-phase will see where you put the jars. Just trying both JAR-package approach and assembly-style approach, one of them should work (one of the intents is to deploy to repo to support eclipse-pde-plugin-dependencies to other eclipse-pde-plugins, so focusing on JAR-package approach). -D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] copy contents of maven.runtime.classpath [dependency-maven-plugin]
Comments inline, -- Yann 2006/1/11, Darren Hartford [EMAIL PROTECTED] : I mis-spoke earlier, the assembly doesn't seem to do what I would want. I did try this: Pom.xml === plugin groupIdorg.codehaus.mojo/groupId artifactIddependency-maven-plugin/artifactId executions execution idcopy-dependencies/id phasecompile/phase goals goalcopy-dependencies/goal /goals configuration outputDirectorysrc/main/resources/lib/outputDirectory /configuration /execution /executions /plugin But even though I specify it in the compile-phase, the /lib dir is NOT included in the package...until the SECOND time package is run. Is that a bug? I think this is because the 'compile' phase happens too late. Try 'generate-resources' http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html Also, there doesn't seem to be a configuration for scope, should there be or is that not the intent of this plugin? http://jira.codehaus.org/browse/MOJO-213 -D -Original Message- From: Yann Le Du [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 5:52 PM To: Maven Users List Subject: Re: [m2] copy contents of maven.runtime.classpath for packaging Hi Darren, Maybe you can use http://mojo.codehaus.org/dependency-maven-plugin/ in a phase before the one where you run your ant-run ? HTH, -- Yann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Unavoidable multiple source directories: src/sandbox/java
I need to add the sources generated thru xdoclet (its in a separate folder).. is there a cleaner way of adding it, other than using this build-helper? On 1/11/06, dan tran [EMAIL PROTECTED] wrote: http://mojo.codehaus.org/build-helper-maven-plugin/ On 1/11/06, Geoffrey [EMAIL PROTECTED] wrote: Hi, What is the best practice to add a second source directory? I am aware it is not recommended to have more then one, but it's unavoidable at this time in the project: src/main/java src/sandbox/java There are cyclic dependencies between both, so making a separate project for both is not an option it seems. -- With kind regards, Geoffrey De Smet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Support for mojos written in Ant
Hi Michal, thank you for your information. Now I tried to do the same, and I get the exact same error as you. It seems the support for mojos written in ANT is unusable in its current state. Maybe some developer can say something? Regards, Michael -Original Message- From: Michael Böckling [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 1:56 PM To: Maven Users List Subject: Support for mojos written in Ant Hi, what happened to the maven-antfile-plugin? I can't find it anywhere... I figured it provides the possiblity to use ANT as mojo language, but the whole thing is a little unclear to me. My attention was raised by the 2.0.1 annoncement, and then I found this on the mailinglist: http://www.nabble.com/Support-for-mojos-written-in-Ant- t791610.html#a2080582 Would be great if someone could shed some light on this... I was trying to write a ant-mojo few weeks ago. I had similar problems with documentation. After little investigation I found the link below. I believe it will be helpful. http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-plugin-tools/maven-plugin-tools-ant/integration-tests/ I've tried to write my plugin basing on those test cases, but I'm having following exception. I've also tried to build those test cases, but the problem is the same. Maybe you will have more luck ;) [INFO] [plugin:descriptor] [INFO] [ERROR] FATAL ERROR [INFO] [INFO] org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor.extractMojoDescriptors(Ljava/util/Map;Lorg/apache/maven/plugin/descriptor/PluginDescriptor;)Ljava/util/List; [INFO] [INFO] Trace java.lang.AbstractMethodError: org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor.extractMojoDescriptors(Ljava/util/Map;Lorg/apache/maven/plugin/descri ptor/PluginDescriptor;)Ljava/util/List; at org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtrator.execute(AbstractScriptedMojoDescriptorExtractor.java:32) best regards, -- Michal Stochmialek IT Department, Technology Division Euro Bank S.A. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Giniality AG - Michael Böckling; Steinenberg 21, CH-4051 Basel P: +41 61 226 99 63 - F: +41 61 226 99 69 [EMAIL PROTECTED]; http://www.giniality.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Maven2 building Eclipse plugins, features, and update sites
So, the questions then are, (a) where and how do I specify the classifier, and (b) how do I write a custom plugin that creates a second artifact? Regarding the second, the source code for the Javadoc plugin was not terribly helpful because it uses a MavenProjectHelper class for which I could find no documentation (so I don't know what the parameters mean). In any case, because I have to get something done quickly, I am abandoning the effort of putting a second JAR in the repository. I'm going to hack around this and use a temporary directory for all the meta-JARs that I need, and then I'll have a feature build ANT goal that pulls from that directory before it starts packaging things up. This is certainly not even close to correct - it will only work because we only need to build one feature - but I'm just stymied at every turn by the lack of documentation right now. I know that the documentation situation will improve, but I've got to get something working by the end of the week. Hopefully, I'll have a chance to revisit this later after more documentation is in place. Jim Babka Senior Software Engineer Main: (512) 334 3200 Direct: (512) 334 3237 Email: [EMAIL PROTECTED] Webify Solutions Enabling the On Demand Enterprise(tm) www.webifysolutions.com -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 5:06 PM To: Maven Users List Subject: Re: [m2] Maven2 building Eclipse plugins, features, and update sites Hi Jim, Sorry I hadn't answered your other Q's yet, but this is what I meant. There is an assembly:attached goal in the next release of the assembly plugin that will enable you to do what javadoc and sources do. In the mean time, you need to use assembly:assembly install to generate and install both, or use a custom plugin that just creates the one. The name can be changed with finalName configuration to the assembly plugin. Note it only impacts the target/ generated file - it is still installed in the repository with artifactId-version-classifier as the name. - Brett On 1/11/06, Jim Babka [EMAIL PROTECTED] wrote: So, I've been told separately that it is possible to have a project generate multiple artifacts, because the sources and javadoc plugins do just that. The questions are (a) are they full artifacts that can be depended upon by other projects, and (b) can someone point me at the source code that does this? I see that there's an addAttachedArtifact method on MavenProject - is that what I need to use? Jim Babka Senior Software Engineer Main: (512) 334 3200 Direct: (512) 334 3237 Email: [EMAIL PROTECTED] Webify Solutions Enabling the On Demand Enterprise(tm) www.webifysolutions.com -Original Message- From: Jim Babka Sent: Monday, January 09, 2006 7:27 PM To: Maven Users List Subject: RE: [m2] Maven2 building Eclipse plugins, features, and update sites First of all, how do you tell the assembly plugin what name to give to the JAR it creates? Second, how do you get that jar to be an artifact that gets put into the repository? I may be misunderstanding something here, so please bear with me. I believe that the file names of any artifacts generated by a project are fixed to be {artifactId}-{version}, where artifactId and version come from the POM file - is this correct? If so, then the only thing you can do to create multiple artifacts is to have different file extensions for each - is that correct? If these are both correct, then you see my dilemma - I need the same project (i.e. the same pom.xml) to generate two artifacts: a JAR, and a JAR of JARs. I would love to be mistaken here - am I? Jim Babka Senior Software Engineer Main: (512) 334 3200 Direct: (512) 334 3237 Email: [EMAIL PROTECTED] Webify Solutions Enabling the On Demand Enterprise(tm) www.webifysolutions.com -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Monday, January 09, 2006 7:05 PM To: Maven Users List Subject: Re: [m2] Maven2 building Eclipse plugins, features, and update sites Those docs definitely look half-done. The latter parts are just pastes of the defaults. Documentation is high on the list for the next assembly plugin release. The assembly produced would have to have a different name to the original JAR which you are packaging up. The version would be the same, the name would just be different. However, you can create another plugin that does the custom behaviour and only produces one jar. I think that's what the felix osgi plugin does. - Brett On 1/10/06, Jim Babka [EMAIL PROTECTED] wrote: Thanks for getting back to me. I looked at assemblies, but quickly got stuck there as well. What does the assembly plugin do about a version number? Does it use the version number for the project? Since that is the same as the version number for the JAR, I would have do come up with a different name, right? But I can't do that because the name
Re: [m2] Unavoidable multiple source directories: src/sandbox/java
the xdocdet mojo, if available, will add the generated source automatically However, if you are using antrun plugin to generate source, it can do that for you http://maven.apache.org/plugins/maven-antrun-plugin/run-mojo.html -D On 1/11/06, Karthik V [EMAIL PROTECTED] wrote: I need to add the sources generated thru xdoclet (its in a separate folder).. is there a cleaner way of adding it, other than using this build-helper? On 1/11/06, dan tran [EMAIL PROTECTED] wrote: http://mojo.codehaus.org/build-helper-maven-plugin/ On 1/11/06, Geoffrey [EMAIL PROTECTED] wrote: Hi, What is the best practice to add a second source directory? I am aware it is not recommended to have more then one, but it's unavoidable at this time in the project: src/main/java src/sandbox/java There are cyclic dependencies between both, so making a separate project for both is not an option it seems. -- With kind regards, Geoffrey De Smet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Unavoidable multiple source directories: src/sandbox/java
I am using xdoclet from codehaus in the generate-sources phase... but durin the compile phase, i get errors that all those classes r missing ... On 1/11/06, dan tran [EMAIL PROTECTED] wrote: the xdocdet mojo, if available, will add the generated source automatically However, if you are using antrun plugin to generate source, it can do that for you http://maven.apache.org/plugins/maven-antrun-plugin/run-mojo.html -D On 1/11/06, Karthik V [EMAIL PROTECTED] wrote: I need to add the sources generated thru xdoclet (its in a separate folder).. is there a cleaner way of adding it, other than using this build-helper? On 1/11/06, dan tran [EMAIL PROTECTED] wrote: http://mojo.codehaus.org/build-helper-maven-plugin/ On 1/11/06, Geoffrey [EMAIL PROTECTED] wrote: Hi, What is the best practice to add a second source directory? I am aware it is not recommended to have more then one, but it's unavoidable at this time in the project: src/main/java src/sandbox/java There are cyclic dependencies between both, so making a separate project for both is not an option it seems. -- With kind regards, Geoffrey De Smet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Unavoidable multiple source directories: src/sandbox/java
The XDoclet plugin for Maven expects to place the generated sources in target/generated-sources/xdoclet and adds it to the compile source list. If you are specifying a different destination, that may be part of the problem if the plugin is not doing things quite right. Try changing your output directory to match the one mentioned above and see if that helps. BTW, it is not a good idea, usually, to place generated files in the src tree. -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 12:07 To: Maven Users List Subject: Re: [m2] Unavoidable multiple source directories: src/sandbox/java I am using xdoclet from codehaus in the generate-sources phase... but durin the compile phase, i get errors that all those classes r missing ... On 1/11/06, dan tran [EMAIL PROTECTED] wrote: the xdocdet mojo, if available, will add the generated source automatically However, if you are using antrun plugin to generate source, it can do that for you http://maven.apache.org/plugins/maven-antrun-plugin/run-mojo.html -D On 1/11/06, Karthik V [EMAIL PROTECTED] wrote: I need to add the sources generated thru xdoclet (its in a separate folder).. is there a cleaner way of adding it, other than using this build-helper? On 1/11/06, dan tran [EMAIL PROTECTED] wrote: http://mojo.codehaus.org/build-helper-maven-plugin/ On 1/11/06, Geoffrey [EMAIL PROTECTED] wrote: Hi, What is the best practice to add a second source directory? I am aware it is not recommended to have more then one, but it's unavoidable at this time in the project: src/main/java src/sandbox/java There are cyclic dependencies between both, so making a separate project for both is not an option it seems. -- With kind regards, Geoffrey De Smet - 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]
Wagon ssh external
We're migrating to Maven 2.1, and I am having a very difficult time utilizing an internal repository for deploying files. We are using windows clients and I need a hand getting things set up. I have plink, pscp, and pageant all in my path. I can load my key using pageant, then execute plink [EMAIL PROTECTED], and be authenticated via my key. I have included my settings.xml and the pom for the plugin I am trying to upload. I have a few questions. 1. Are the sshExecutable and scpExcecutable correct? 2. Do you have to specify each distro location in each POM, or can I specify all go to our internal repository in settings.xml? I receive this error when trying to execute the deploy target. I believe I'm missing the wagon-ssh-external plugin. The target plugin:install is gone in maven 2, how do I install the missing plugin? [ERROR] BUILD ERROR [INFO] - --- [INFO] Error deploying artifact: While configuring wagon for 'ata': Unable to ap ply wagon configuration. Cannot find setter nor field in org.apache.maven.wagon.providers.ssh.ScpWagon fo r 'sshExecutable' settings.xml settings servers server idata/id usernamec200506/username configuration sshExecutableplink/sshExecutable scpExecutablepscp/scpExecutable /configuration /server /servers profiles profile iddefault/id repositories repository idata/id nameATA Internal Project Repository/name urlhttp://sun10.ata.com:9200/Maven2/repository/url layoutdefault/layout /repository /repositories pluginRepositories pluginRepository idata/id nameATA Internal Plugin Repository/name urlhttp://sun10.ata.com:9200/Maven2/plugins/url layoutdefault/layout /pluginRepository /pluginRepositories /profile /profiles activeProfiles activeProfiledefault/activeProfile /activeProfiles /settings pom.xml project parent artifactIdmaven-plugin-parent/artifactId groupIdorg.apache.maven.plugins/groupId version2.0/version /parent modelVersion4.0.0/modelVersion artifactIdmaven-install-plugin/artifactId packagingmaven-plugin/packaging nameMaven Install Plugin/name version2.1/version inceptionYear2004/inceptionYear dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-project/artifactId /dependency dependency groupIdorg.apache.maven/groupId artifactIdmaven-artifact-manager/artifactId version2.0/version /dependency dependency groupIdorg.apache.maven/groupId artifactIdmaven-artifact/artifactId version2.0/version /dependency /dependencies distributionManagement repository idata/id nameATA Repository/name urlscp://sun10.ata.com/a01/proj/Maven2/plugins/url /repository /distributionManagement /project Thanks, Todd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] How to prevent transitive dependencies from a given dependency?
Hi, is there a way in maven2 to specify in my pom.xml that, for a given dependency, I want to get it alone and not all the dependencies it requires? Thanks in advance for any help -- Alessio Pace. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: C#
Hey Jan, I'm currently working on CSharp support in m2. There is a bug oustanding with maven core which is currently blocking beta release of my plugins: (see http://jira.codehaus.org/browse/MNG-1933 http://jira.codehaus.org/browse/MNG-1933 ) but I spoke to Brett today about it and he said he hopes to spend some time on it tommorrow. When this is fixed I expect to get a beta out within a week. You can check out the docco (though this depends on a resolution to the bug described above) here http://maven-csharp.javaforge.com http://maven-csharp.javaforge.com . You can also have a look through the source if you like, instructions on page. Let me know if you'd like to get involved in the beta. Chris _ From: ir. ing. Jan Dockx [mailto:[EMAIL PROTECTED] Sent: 11 January 2006 16:21 To: Maven Users List Subject: C# Does anybody have any experience with using maven with C# and Visual Studio? Are there best practices for directory layout, which files to store in CVS and which not, etcetera? Ok, I know a visual-studio plugin like the eclipse or netbeans plugin probably won't exist, but any experience would be helpful. Met vriendelijke groeten, Jan Dockx PeopleWare NV - Head Office Cdt.Weynsstraat 85 B-2660 Hoboken Tel: +32 3 448.33.38 Fax: +32 3 448.32.66 PeopleWare NV - Branch Office Geel Kleinhoefstraat 5 B-2440 Geel Tel: +32 14 57.00.90 Fax: +32 14 58.13.25 http://www.peopleware.be/ http://www.mobileware.be/ -- The information contained herein is confidential and is intended solely for the addressee. Access by any other party is unauthorised without the express written permission of the sender. If you are not the intended recipient, please contact the sender either via the company switchboard on +44 (0)20 7623 8000, or via e-mail return. If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender. 3166
RE: [m2] Maven2 building Eclipse plugins, features, and update sites
Maven is building the JAR that contains the compiled plugin code (which goes into the repository), and a zip file that contains the 3 things discussed below (which just sits in the target directory). The latter can be directly unzipped into an Eclipse plugins directory, but is not suitable for an update site. I'm not comfortable sharing what we've done at this point yet because it is very specific to our environment, and until I can actually build an update site, I can't be sure that it is correct. Once I can do that, I'll look into releasing something to the world. Jim Babka Senior Software Engineer Main: (512) 334 3200 Direct: (512) 334 3237 Email: [EMAIL PROTECTED] Webify Solutions Enabling the On Demand Enterprise(tm) www.webifysolutions.com -Original Message- From: Treloar, Barrie (SAPOL) [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 7:34 PM To: 'Maven Users List' Subject: RE: [m2] Maven2 building Eclipse plugins, features, and update sites Eclipse does provide some ant tasks, but they require that Eclipse is running. They have a way to run in headless mode, but you need to use a script that invokes Eclipse, and then tell Eclipse to run its antRunner process. As far as I can tell, there is no way to have ant run these Eclipse tasks without running ant from Eclipse (which we clearly can't do if we need to run ant from maven). Since I got no other replies, I assume that somehow, no one has done this before, so I need to dig into it. I have gotten to the following stopping point, and I need help. An Eclipse plugin consists of a JAR that contains 3 classes of items: 1. Another jar with the actual code. 2. The plugin.xml file 3. 0 or more JAR dependencies for the plugin. Maven builds item 1 without a problem, and we've hacked up a Mojo to update item 2. Then we have a separate ant goal that runs from Maven to copy all 3 to the target directory, then zip it all up. The problem is that we need to add a second artifact to the build once this ant step is complete, because we need both the original jar (for other project build dependencies) and the new jar (for the later Eclipse feature build that I need to write). Are you saying that you have gotten Maven to compile the eclipse plugin as well. Or are you still using Ant Tasks? In the last few weeks I've seen a few requests for Maven/Eclipse plugin or RCP support. Any chance you are able to share the work you have started? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Support for mojos written in Ant
I use Ant as a fundamental scripting language for Maven. I use the antrun plugin. I have a hacked up version that allows me to build Plugins that hold an Ant build file and a simple, thin Mojo that extends the Antrun base class. When executed this Plugin unpacks the Ant build.xml and executes targets against it. It works like a charm. The power of Ant plus the power of maven -- no reinventing the wheel... And AFAIK Jason, John, et al have incorporated my changes into the latest/greatest version -- though I've not tried it since my hacked up version is working fine for me... Cheers, -- Chris On 1/11/06, Michael Böckling [EMAIL PROTECTED] wrote: Hi Michal, thank you for your information. Now I tried to do the same, and I get the exact same error as you. It seems the support for mojos written in ANT is unusable in its current state. Maybe some developer can say something? Regards, Michael -Original Message- From: Michael Böckling [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 1:56 PM To: Maven Users List Subject: Support for mojos written in Ant Hi, what happened to the maven-antfile-plugin? I can't find it anywhere... I figured it provides the possiblity to use ANT as mojo language, but the whole thing is a little unclear to me. My attention was raised by the 2.0.1 annoncement, and then I found this on the mailinglist: http://www.nabble.com/Support-for-mojos-written-in-Ant- t791610.html#a2080582 Would be great if someone could shed some light on this... I was trying to write a ant-mojo few weeks ago. I had similar problems with documentation. After little investigation I found the link below. I believe it will be helpful. http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-plugin-tools/maven-plugin-tools-ant/integration-tests/ I've tried to write my plugin basing on those test cases, but I'm having following exception. I've also tried to build those test cases, but the problem is the same. Maybe you will have more luck ;) [INFO] [plugin:descriptor] [INFO] [ERROR] FATAL ERROR [INFO] [INFO] org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor.extractMojoDescriptors (Ljava/util/Map;Lorg/apache/maven/plugin/descriptor/PluginDescriptor;)Ljava/util/List; [INFO] [INFO] Trace java.lang.AbstractMethodError: org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor.extractMojoDescriptors (Ljava/util/Map;Lorg/apache/maven/plugin/descri ptor/PluginDescriptor;)Ljava/util/List; at org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtrator.execute (AbstractScriptedMojoDescriptorExtractor.java:32) best regards, -- Michal Stochmialek IT Department, Technology Division Euro Bank S.A. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Giniality AG - Michael Böckling; Steinenberg 21, CH-4051 Basel P: +41 61 226 99 63 - F: +41 61 226 99 69 [EMAIL PROTECTED]; http://www.giniality.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Unavoidable multiple source directories: src/sandbox/java
You were right. I had placed it in target/gen-src. It works now.. but is there a way to configure this? Thanks very much. On 1/11/06, Allison, Bob [EMAIL PROTECTED] wrote: The XDoclet plugin for Maven expects to place the generated sources in target/generated-sources/xdoclet and adds it to the compile source list. If you are specifying a different destination, that may be part of the problem if the plugin is not doing things quite right. Try changing your output directory to match the one mentioned above and see if that helps. BTW, it is not a good idea, usually, to place generated files in the src tree. -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 12:07 To: Maven Users List Subject: Re: [m2] Unavoidable multiple source directories: src/sandbox/java I am using xdoclet from codehaus in the generate-sources phase... but durin the compile phase, i get errors that all those classes r missing ... On 1/11/06, dan tran [EMAIL PROTECTED] wrote: the xdocdet mojo, if available, will add the generated source automatically However, if you are using antrun plugin to generate source, it can do that for you http://maven.apache.org/plugins/maven-antrun-plugin/run-mojo.html -D On 1/11/06, Karthik V [EMAIL PROTECTED] wrote: I need to add the sources generated thru xdoclet (its in a separate folder).. is there a cleaner way of adding it, other than using this build-helper? On 1/11/06, dan tran [EMAIL PROTECTED] wrote: http://mojo.codehaus.org/build-helper-maven-plugin/ On 1/11/06, Geoffrey [EMAIL PROTECTED] wrote: Hi, What is the best practice to add a second source directory? I am aware it is not recommended to have more then one, but it's unavoidable at this time in the project: src/main/java src/sandbox/java There are cyclic dependencies between both, so making a separate project for both is not an option it seems. -- With kind regards, Geoffrey De Smet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Maven2 building Eclipse plugins, features, and update sites
Looks interesting, but I think that this is causing the main plugin JAR to be replaced in the repository by the assembly. I can't do that - I must have the main plugin JAR in the repository because other projects have a compile-time dependency upon the code there. Jim Babka Senior Software Engineer Main: (512) 334 3200 Direct: (512) 334 3237 Email: [EMAIL PROTECTED] Webify Solutions Enabling the On Demand Enterprise(tm) www.webifysolutions.com -Original Message- From: Darren Hartford [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 9:05 AM To: Maven Users List Subject: RE: [m2] Maven2 building Eclipse plugins, features, and update sites I have tried the ANT-tasks that eclipse provides, and at least for plugin-packaging they seem over-complicated. I have had success (just recently based on the mini-guide for assembly) in packaging the update-jar for an eclipse plugin as follows: Pom.xml (note I'm specifying a MANIFEST.MF file) === !-- previously downloaded the eclipse jars into local repo and put in for compile-time dependency -- build sourceDirectorysrc/sourceDirectory plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifestFilesrc/main/resources/META-INF/MANIFEST.MF/manifestFile /archive /configuration /plugin plugin artifactIdmaven-assembly-plugin/artifactId configuration descriptorsrc/main/assembly/dep.xml/descriptor /configuration /plugin /plugins /build ===end pom.xml=== Src/main/assembly/dep.xml assembly !-- TODO: a jarjar format would be better -- iddep/id formats formatjar/format /formats fileSets fileSet outputDirectory//outputDirectory /fileSet !-- I think this is everyting based on eclipse workspace -- fileset dir=${basedir} includes=plugin.xml,META-INF/,null,icons/,pom.xml,toc.xml,html// /fileSets dependencySets dependencySet outputDirectory//outputDirectory unpacktrue/unpack scoperuntime/scope excludes excludejunit:junit/exclude /excludes /dependencySet /dependencySets /assembly ===end dep.xml=== I'm also interested in the features/update sites possibility, particuarly where I want to accomplish these tasks through autobuild instead of manually through Eclipse. I imagine something related to the :release maven plugin would come into play. P.s. I have also recently learned that the update-jar name does NOT seem to matter for Eclipse to load, so you can use the {artifactId}-{version}.jar for the eclipse-plugin-jar and deploy to repo. Again, only so-far, if there is something later that this may impact please let me know! -D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] How to prevent transitive dependencies from a given dependency?
http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-CanIdisabletransitivedependencies%3F 2006/1/11, Alessio Pace [EMAIL PROTECTED]: Hi, is there a way in maven2 to specify in my pom.xml that, for a given dependency, I want to get it alone and not all the dependencies it requires? Thanks in advance for any help -- Alessio Pace. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Support for mojos written in Ant
http://maven.apache.org/plugins/maven-antrun-plugin/introduction.html On 1/11/06, Chris Berry [EMAIL PROTECTED] wrote: I use Ant as a fundamental scripting language for Maven. I use the antrun plugin. I have a hacked up version that allows me to build Plugins that hold an Ant build file and a simple, thin Mojo that extends the Antrun base class. When executed this Plugin unpacks the Ant build.xml and executes targets against it. It works like a charm. The power of Ant plus the power of maven -- no reinventing the wheel... And AFAIK Jason, John, et al have incorporated my changes into the latest/greatest version -- though I've not tried it since my hacked up version is working fine for me... Cheers, -- Chris On 1/11/06, Michael Böckling [EMAIL PROTECTED] wrote: Hi Michal, thank you for your information. Now I tried to do the same, and I get the exact same error as you. It seems the support for mojos written in ANT is unusable in its current state. Maybe some developer can say something? Regards, Michael -Original Message- From: Michael Böckling [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 1:56 PM To: Maven Users List Subject: Support for mojos written in Ant Hi, what happened to the maven-antfile-plugin? I can't find it anywhere... I figured it provides the possiblity to use ANT as mojo language, but the whole thing is a little unclear to me. My attention was raised by the 2.0.1 annoncement, and then I found this on the mailinglist: http://www.nabble.com/Support-for-mojos-written-in-Ant- t791610.html#a2080582 Would be great if someone could shed some light on this... I was trying to write a ant-mojo few weeks ago. I had similar problems with documentation. After little investigation I found the link below. I believe it will be helpful. http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-plugin-tools/maven-plugin-tools-ant/integration-tests/ I've tried to write my plugin basing on those test cases, but I'm having following exception. I've also tried to build those test cases, but the problem is the same. Maybe you will have more luck ;) [INFO] [plugin:descriptor] [INFO] [ERROR] FATAL ERROR [INFO] [INFO] org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor.extractMojoDescriptors(Ljava/util/Map;Lorg/apache/maven/plugin/descriptor/PluginDescriptor;)Ljava/util/List; [INFO] [INFO] Trace java.lang.AbstractMethodError: org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor.extractMojoDescriptors(Ljava/util/Map;Lorg/apache/maven/plugin/descri ptor/PluginDescriptor;)Ljava/util/List; at org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtrator.execute (AbstractScriptedMojoDescriptorExtractor.java :32) best regards, -- Michal Stochmialek IT Department, Technology Division Euro Bank S.A. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Giniality AG - Michael Böckling; Steinenberg 21, CH-4051 Basel P: +41 61 226 99 63 - F: +41 61 226 99 69 [EMAIL PROTECTED]; http://www.giniality.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Filtering resources
In m2, how do I prevent some classes from being included to the final jar file? Also, I need to add some files (like the xmls generated by xdoclet) to the jar. These files go to the generated-sources directory and not to the src/main/resources. How do I add these to the final jar?
[maven1] Classes that use javax.xml.parsers.SAXParserFactory.setXIncludeAware(boolean) do not compile
Hi I have a class that uses the method setXIncludeAware(boolean) from javax.xml.parsers.SAXParserFactory (jdk1.5) The class compiles in eclipse. But when I run maven, maven does not compile the class, it says that this method does not exists. I tried in others machines, but the error is alwalys the same: C:\Mantissa\workspace\biogenie-client\src\java\br\com\mindsatwork\biogenie\ui\BioGenieApplication.java:1309: cannot find symbol symbol : method setXIncludeAware(boolean) location: class javax.xml.parsers.SAXParserFactory SAXParserFactory.newInstance().setXIncludeAware( false ); Does anyone know why this is happening?? PS: If I coment the line that uses the setXIncludeAware(boolean), maven compiles the class. PS2: The JAVA_HOME env var is set to the same JVM that I use in eclipse. PS3: I'm running maven 1.0.2 and eclipse 3.1, in windows XP []s Freddy
Re: Filtering resources
ok .. that 2nd question was silly .. i managed it ... pls help me wth the 1st one. On 1/11/06, Karthik V [EMAIL PROTECTED] wrote: In m2, how do I prevent some classes from being included to the final jar file? Also, I need to add some files (like the xmls generated by xdoclet) to the jar. These files go to the generated-sources directory and not to the src/main/resources. How do I add these to the final jar?
RE: [m2] copy contents of maven.runtime.classpath [dependency-maven-plugin]
Thank you Yann! The 'generate-resources' phase was the key - I had tried 'process-resources' and gave up after that, thank you for following up! And the fix for scope from http://jira.codehaus.org/browse/MOJO-213 is already available, very nice! -D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What's the reason for the following exception?
I'm new to Maven2 and this list and I'm having the following problem. When I run 'mvn test' I get the following output : [INFO]task-segment: [test] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] Compiling 45 source files to c:\development\maven\common\target\test-classes [INFO] [surefire:test] [INFO] Setting reports dir: c:\development\maven\common\target/surefire-reports [INFO] [ERROR] BUILD ERROR [INFO] --- constituent[0]: file:/c:/dev/maven-2.0/lib/commons-cli-1.0.jar constituent[1]: file:/c:/dev/maven-2.0/lib/doxia-sink-api-1.0-alpha-4.jar constituent[2]: file:/c:/dev/maven-2.0/lib/jsch-0.1.23.jar constituent[3]: file:/c:/dev/maven-2.0/lib/maven-artifact-2.0-1.jar constituent[4]: file:/c:/dev/maven-2.0/lib/maven-artifact-manager-2.0-1.jar constituent[5]: file:/c:/dev/maven-2.0/lib/maven-core-2.0.jar constituent[6]: file:/c:/dev/maven-2.0/lib/maven-error-diagnostics-2.0.jar constituent[7]: file:/c:/dev/maven-2.0/lib/maven-model-2.0.jar constituent[8]: file:/c:/dev/maven-2.0/lib/maven-monitor-2.0.jar constituent[9]: file:/c:/dev/maven-2.0/lib/maven-plugin-api-2.0.jar constituent[10]: file:/c:/dev/maven-2.0/lib/maven-plugin-descriptor-2.0.jar constituent[11]: file:/c:/dev/maven-2.0/lib/maven-plugin-parameter-documenter-2.0.jar constituent[12]: file:/c:/dev/maven-2.0/lib/maven-plugin-registry-2.0.jar constituent[13]: file:/c:/dev/maven-2.0/lib/maven-profile-2.0.jar constituent[14]: file:/c:/dev/maven-2.0/lib/maven-project-2.0-1.jar constituent[15]: file:/c:/dev/maven-2.0/lib/maven-reporting-api-2.0.jar constituent[16]: file:/c:/dev/maven-2.0/lib/maven-repository-metadata-2.0.jar constituent[17]: file:/c:/dev/maven-2.0/lib/maven-settings-2.0.jar constituent[18]: file:/c:/dev/maven-2.0/lib/plexus-interactivity-api-1.0-alpha-4.jar constituent[19]: file:/c:/dev/maven-2.0/lib/wagon-file-1.0-alpha-5.jar constituent[20]: file:/c:/dev/maven-2.0/lib/wagon-http-lightweight-1.0-alpha-5.jar constituent[21]: file:/c:/dev/maven-2.0/lib/wagon-provider-api-1.0-alpha-5.jar constituent[22]: file:/c:/dev/maven-2.0/lib/wagon-ssh-1.0-alpha-5.jar --- java.lang.NullPointerException at org.apache.maven.usability.diagnostics.DiagnosisUtils.appendRootCauseIfPresentAndUnique(DiagnosisUtils.java:89) at org.apache.maven.usability.MojoExecutionExceptionDiagnoser.diagnose(MojoExecutionExceptionDiagnoser.java:66) at org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(ErrorDiagnostics.java:81) at org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:693) at org.apache.maven.DefaultMaven.logError(DefaultMaven.java:640) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:119) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Is this being caused by an error coming from one of my tests, or do I have an old version of one of the plugins? I ran an 'mvn -U test' and after it updated all of the plugins, I got the same error. Thanks for any help you may be able to offer. Quenten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [maven1] Classes that use javax.xml.parsers.SAXParserFactory.setXIncludeAware(boolean) do not compile
Freddy, Add the following to you project.properties and try maven java:compile again: maven.compile.source=1.5 maven.compile.target=1.5 Doug Minds Work wrote: Hi I have a class that uses the method setXIncludeAware(boolean) from javax.xml.parsers.SAXParserFactory (jdk1.5) The class compiles in eclipse. But when I run maven, maven does not compile the class, it says that this method does not exists. I tried in others machines, but the error is alwalys the same: C:\Mantissa\workspace\biogenie-client\src\java\br\com\mindsatwork\biogenie\ui\BioGenieApplication.java:1309: cannot find symbol symbol : method setXIncludeAware(boolean) location: class javax.xml.parsers.SAXParserFactory SAXParserFactory.newInstance().setXIncludeAware( false ); Does anyone know why this is happening?? PS: If I coment the line that uses the setXIncludeAware(boolean), maven compiles the class. PS2: The JAVA_HOME env var is set to the same JVM that I use in eclipse. PS3: I'm running maven 1.0.2 and eclipse 3.1, in windows XP []s Freddy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Support for mojos written in Ant
John wrote up the Ant plugin integration (available in 2.0.1) yesterday: http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html - Brett On 1/12/06, Chris Berry [EMAIL PROTECTED] wrote: http://maven.apache.org/plugins/maven-antrun-plugin/introduction.html On 1/11/06, Chris Berry [EMAIL PROTECTED] wrote: I use Ant as a fundamental scripting language for Maven. I use the antrun plugin. I have a hacked up version that allows me to build Plugins that hold an Ant build file and a simple, thin Mojo that extends the Antrun base class. When executed this Plugin unpacks the Ant build.xml and executes targets against it. It works like a charm. The power of Ant plus the power of maven -- no reinventing the wheel... And AFAIK Jason, John, et al have incorporated my changes into the latest/greatest version -- though I've not tried it since my hacked up version is working fine for me... Cheers, -- Chris On 1/11/06, Michael Böckling [EMAIL PROTECTED] wrote: Hi Michal, thank you for your information. Now I tried to do the same, and I get the exact same error as you. It seems the support for mojos written in ANT is unusable in its current state. Maybe some developer can say something? Regards, Michael -Original Message- From: Michael Böckling [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 1:56 PM To: Maven Users List Subject: Support for mojos written in Ant Hi, what happened to the maven-antfile-plugin? I can't find it anywhere... I figured it provides the possiblity to use ANT as mojo language, but the whole thing is a little unclear to me. My attention was raised by the 2.0.1 annoncement, and then I found this on the mailinglist: http://www.nabble.com/Support-for-mojos-written-in-Ant- t791610.html#a2080582 Would be great if someone could shed some light on this... I was trying to write a ant-mojo few weeks ago. I had similar problems with documentation. After little investigation I found the link below. I believe it will be helpful. http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-plugin-tools/maven-plugin-tools-ant/integration-tests/ I've tried to write my plugin basing on those test cases, but I'm having following exception. I've also tried to build those test cases, but the problem is the same. Maybe you will have more luck ;) [INFO] [plugin:descriptor] [INFO] [ERROR] FATAL ERROR [INFO] [INFO] org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor.extractMojoDescriptors(Ljava/util/Map;Lorg/apache/maven/plugin/descriptor/PluginDescriptor;)Ljava/util/List; [INFO] [INFO] Trace java.lang.AbstractMethodError: org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor.extractMojoDescriptors(Ljava/util/Map;Lorg/apache/maven/plugin/descri ptor/PluginDescriptor;)Ljava/util/List; at org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtrator.execute (AbstractScriptedMojoDescriptorExtractor.java :32) best regards, -- Michal Stochmialek IT Department, Technology Division Euro Bank S.A. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Giniality AG - Michael Böckling; Steinenberg 21, CH-4051 Basel P: +41 61 226 99 63 - F: +41 61 226 99 69 [EMAIL PROTECTED]; http://www.giniality.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Using variables from parent pom.xml - like version etc.
As Sean said, the release plugin can do this. http://maven.apache.org/guides/mini/guide-releasing.html In 2.1, we are planning to make it automatic: MNG-624 You can emulate M1 behaviour by using a version of SNAPSHOT and never changing it. Building will always require the full checkout structure. - Brett On 1/12/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: I agree with Sean, it will be a pain and time comsuming effort if all the child project's POM needs to be updated. -Sanjay On 1/11/06, Sean McNamara [EMAIL PROTECTED] wrote: Does this really address the issue that Sanjay is trying to solve? If the parent definition requires the version to be added, then every time the version is incremented all child POMs must be updated to reflect the new parent version. This means that all POMs in the inheritance heirarchy must be updated for every version increment. I've seen some postings talking about using the release-plugin to automate this behavior (re-versioning all POMs), but haven't found any good docs on that particular plugin. Pointers would be appreciated. Seems odd that this very useful feature of M1 didn't make it into M2. --- Brian E. Fox [EMAIL PROTECTED] wrote: Once you've done that, you can leave off the child version/ elements, and the parent's version will be used. I'll add that it's common to inherit the group too. -Original Message- From: John Casey [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 11:56 PM To: Maven Users List Subject: Re: [m2] Using variables from parent pom.xml - like version etc. There are two requirements for versioning in this case: 1. The parent POM has to have a valid version/ element (no expressions here). 2. Each child POM must specify a parent/ element that refers to the parent POM explicitly, including the version declared in the parent POM (again, no expressions here). Once you've done that, you can leave off the child version/ elements, and the parent's version will be used. HTH, John Sanjay Choudhary wrote: Thanks for taking time to reply. Let me ask my question in different way Parent Project currentversion 4.0 project 1 - extends parent project project 2 - extends parent project project 3 - extends parent project and depends on project 1 and project 2 .. .. project 35 - extends parent project Parent project + project1..35 make an Application. Life cycle of the parent project + child project's is same as application. Let us say current version of the application 4.0. In maven 1.0.2 , we used to define tag currentVersion 4.0/currentVersionin parent project.xml Then in child projects, for example child project 3, that is dependendent on project 1 and project 2, We define dependency as artifactIdproject1/artifactId version${pom.currentVersion}/version artifactIdproject2/artifactId version${pom.currentVersion}/version Now if we hv. to release version 4.1 then all we need to do is change the parent project.xml - currentVersion attribute. We don't need to change all the 35 projects for the version. My question is how can a similar behavior achieved in M2. Thanks, Sanjay On 1/10/06, Napoleon Esmundo Ramirez [EMAIL PROTECTED] wrote: Hello, I just checked your pom's. Your parent pom seems to be okay. But I think your second pom isn't. When declaring parent projects in child projects (modules) you should explicitly define the version. Try setting it with 1.0-8, and let's see what happens. I hope it works this time. :) Cheers! Nap On 1/11/06, Allan Ramirez [EMAIL PROTECTED] wrote: Hi there, Try to use the dependencyManangement element. http://maven.apache.org/guides/introduction/introduction-to-dependenc y-mechanism.html Regards, -allan Sanjay Choudhary wrote: I tried using ${project.version} but got the following error [INFO] Trace org.apache.maven.reactor.MavenExecutionException: POM ' org.emember:org_kp_eme mber' not found in repository: org.kp.emember:org_kp_emember:pom:${project.version} project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion parent groupIdorg.emember/groupId artifactIdorg_emember/artifactId versionCAN I USE VERSION VARIABLE FROM POM? /version /parent On 1/10/06, Napoleon Esmundo Ramirez [EMAIL PROTECTED]
Problems with a not valide pom
Hi *, I started to migrate the structure of a project to maven 2.0.1. The project consists of three modules, like this: -Base -Main -Other Stuff However, the last two have a dependency to the base module. So, first task was to install a jar from base module to the local repository. This works fine, but while trying to compile the other two, there was the exception of a not valide pom. The pom was generated by maven from the first install corresponding to the base pom, right? But this one was valid. However, what could be the reason for the not validated pom? I have checked out myfaces, there i tried to build the project. Exception was: Not a v4.0.0 POM Do i miss a plugin? Thx for help, regards, Gerald -- Gerald Muellan Schelleingasse 2/11 1040 Wien 0043 699 11772506 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Build SLOW.
I have copied several third party jars ( Websphere application server Lib into the repository). I installed them using the following commiand Now when I build I get the following message call mvn install:install-file -Dfile=./filename -DgroupId=oracle -DartifactId=classes12 -Dversion=9.0.2.0.0 -Dpackaging=jar [WARNING] Unable to get resource from repository central ( http://repo1.maven.org /maven2) Downloading: http://repo1.maven.org/maven2/ibm/was/ras/was.5.0/ras-was.5.0.pom [WARNING] Unable to get resource from repository central ( http://repo1.maven.org /maven2) Downloading: http://repo1.maven.org/maven2/ibm/was/querymd/was.5.0/querymd-was.5 .0.pom When I run mvn -o package, it runs quite fast. But then I have a disadvantage of running in a disconnected state. Is there a way to fix the above warning? It is slowing down my build :-( Sanjay
Re: [M2] Build SLOW.
A new version of the install plugin will be released shortly that you can use: -DgeneratePom=true In the mean time, you can create a small POM in the local repository for the libraries. - Brett On 1/12/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: I have copied several third party jars ( Websphere application server Lib into the repository). I installed them using the following commiand Now when I build I get the following message call mvn install:install-file -Dfile=./filename -DgroupId=oracle -DartifactId=classes12 -Dversion=9.0.2.0.0 -Dpackaging=jar [WARNING] Unable to get resource from repository central ( http://repo1.maven.org /maven2) Downloading: http://repo1.maven.org/maven2/ibm/was/ras/was.5.0/ras-was.5.0.pom [WARNING] Unable to get resource from repository central ( http://repo1.maven.org /maven2) Downloading: http://repo1.maven.org/maven2/ibm/was/querymd/was.5.0/querymd-was.5 .0.pom When I run mvn -o package, it runs quite fast. But then I have a disadvantage of running in a disconnected state. Is there a way to fix the above warning? It is slowing down my build :-( Sanjay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Build SLOW.
yes, create a pom for that jar. On 1/11/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: I have copied several third party jars ( Websphere application server Lib into the repository). I installed them using the following commiand Now when I build I get the following message call mvn install:install-file -Dfile=./filename -DgroupId=oracle -DartifactId=classes12 -Dversion=9.0.2.0.0 -Dpackaging=jar [WARNING] Unable to get resource from repository central ( http://repo1.maven.org /maven2) Downloading: http://repo1.maven.org/maven2/ibm/was/ras/was.5.0/ras-was.5.0.pom [WARNING] Unable to get resource from repository central ( http://repo1.maven.org /maven2) Downloading: http://repo1.maven.org/maven2/ibm/was/querymd/was.5.0/querymd-was.5 .0.pom When I run mvn -o package, it runs quite fast. But then I have a disadvantage of running in a disconnected state. Is there a way to fix the above warning? It is slowing down my build :-( Sanjay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] war project and dll dependency
Hello, In my war project I use java library which requires native dll library. I created following: project modelVersion4.0.0/modelVersion groupIdcom.domain/groupId artifactIdlibraryx-api/artifactId packagingjar/packaging namelibraryx/name version1.0/version descriptionlibraryx/description dependencies dependency groupIdcom.domain/groupId artifactIdlibraryx-native/artifactId version1.0/version typedll/type /dependency /dependencies /project project modelVersion4.0.0/modelVersion groupIdcom.hugin/groupId artifactIdhugin-native/artifactId packagingdll/packaging nameHugin native library/name version6.3/version descriptionHugin native library/description /project I reference this library in my war project as: dependency groupIdcom.domain/groupId artifactIdlibraryx-api/artifactId version1.0/version /dependency Is this solution correct? What is the correct way to handle native libraries dependencies? Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [maven1] Classes that use javax.xml.parsers.SAXParserFactory.setXIncludeAware(boolean) do not compile
Hi Doug These property are already in my project.properties But these properties has nothing with classes or methods the compiler does not find. (For example, you can use classes/methods that only exists in Jdk1.5 (like java.util.Fotmatter) and compile with maven.compile.source=1.4 and maven.compile.target=1.4, it will compile, however it will not run correclty in a JVM 1.4, it will throw a Method/ClassNotFoundError) And I have other classes that use the new JDk1.5 source features (like ListE), those classes would not compile if the problem was source/target version. My Problem is that for some odd reason maven is using a different javax.xml.parsers.SAXParserFactory frm the one that exists in my JAVA_HOME jdk... I see this happen with no other class On 1/11/06, Doug Douglass [EMAIL PROTECTED] wrote: Freddy, Add the following to you project.properties and try maven java:compile again: maven.compile.source=1.5 maven.compile.target=1.5 Doug Minds Work wrote: Hi I have a class that uses the method setXIncludeAware(boolean) from javax.xml.parsers.SAXParserFactory ( jdk1.5) The class compiles in eclipse. But when I run maven, maven does not compile the class, it says that this method does not exists. I tried in others machines, but the error is alwalys the same: C:\Mantissa\workspace\biogenie-client\src\java\br\com\mindsatwork\biogenie\ui\BioGenieApplication.java:1309: cannot find symbol symbol : method setXIncludeAware(boolean) location: class javax.xml.parsers.SAXParserFactory SAXParserFactory.newInstance().setXIncludeAware( false ); Does anyone know why this is happening?? PS: If I coment the line that uses the setXIncludeAware(boolean), maven compiles the class. PS2: The JAVA_HOME env var is set to the same JVM that I use in eclipse. PS3: I'm running maven 1.0.2 and eclipse 3.1, in windows XP []s Freddy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need more help with broken ibiblio: 404 on werkz-1.0-beta-10.jar
Another strange one. They are there, and my local copy with near identical rules works. I'll investigate... - Brett On 1/12/06, Helck, Christopher [EMAIL PROTECTED] wrote: I browse to http://www.ibiblio.org/maven/werkz/jars/ and werkz-1.0-beta-10.jar is visible, but when I click on it I get 404 error. Same is true for some some other files in the directory: werkz-1.0-beta-11.jar and werkz-1.0-beta-3.20020715.042250.jar to name a few. -chris Thank you for being part of it. The information contained in this e-mail is confidential. This e-mail is intended only for the stated addressee. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this e-mail. if you have received this e-mail in error, please inform us immediately and delete it and all copies from your system. EBS Dealing Resources International Limited. Registered address: 10 Paternoster Square, London EC4M 7DY, United Kingdom. Registered number 2669861. EBS Dealing Resources, Inc, registered in Delaware. Address: 535 Madison Avenue, 24th Floor, New York, NY 10022, USA, and One upper Pond road, Building F - Floor 3, Parsippany, NJ 07054, USA. EBS Dealing Resources Japan Limited, a Japanese Corporation. Address: Asteer Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku, Tokyo 104-0033, Japan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Standard Directory Layout , src/main/config, and profiles
I've got a few questions on the Standard Directory Layout described here: http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html For the most part I assume that what makes them standard is having a maven plugin (i.e. one that works out of the box without a prefix for definitions sake...) that uses said directory as a default. By that logic, src/main/webapp needs to be on the list, and to the effect, I've opened a JIRA issue: http://jira.codehaus.org/browse/MNG-1953 My question, though, is what is src/main/config used for? Does any plugin use that directory? I've seem some suggestion that configuration files for build profiles be put here. I've also seen that suggested as src/main/profiles/profile-name Is there guidance on this? Additionally, for questions like this, can we indicate some difference between suggested guidelines for directories vs. actually used default directories? I think I'd like to see a document (possibly just modifying the current one) to indicate for each standard directory which plugins use it as a default. Maybe this should go into a directory guide, which would be longer and more detailed than the current Introduction. Any ideas? -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CheckStyle Report
When generating the RSS for the report, where does the plugin get the URL to use for the links? It looks like it's using the 'url' element from the POM, shouldn't it really be using the 'siteAddress' element? Bernie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Standard Directory Layout , src/main/config, and profiles
I agree with creating a more detailed document regarding directory conventions. I like the conventions documented so far, but there do seem to be some ambiguities and holes. I too have been unsure of the purpose of src/main/config. However, I have been putting design-time and build-time configuration files there. Here are some specific examples of what I have done: src/main/config/cactus cactus-web.xml jspRedirector.jsp (questionable) src/main/config/checkstyle checkstyle-header.txt checkstyle-suppressions.xml checkstyle.xml src/main/config/jalopy jalopy.xml src/main/config/pmd ruleset.xml src/main/config/xdoclet (XDoclet merge files) Here are the corresponding properties in project.properties: cactus.src.mergewebxml=${basedir}/src/main/config/cactus/cactus-web.xml maven.checkstyle.header.file=${basedir}/src/main/config/checkstyle/checkstyle-header.txt maven.checkstyle.properties=${basedir}/src/main/config/checkstyle/checkstyle.xml maven.checkstyle.suppressions.file=${basedir}/src/main/config/checkstyle/checkstyle-suppressions.xml maven.pmd.rulesetfiles=${basedir}/src/main/config/pmd/ruleset.xml maven.xdoclet.webdoclet.mergeDir=${basedir}/src/main/config/xdoclet There is no property for Jalopy here because I use the jalopy.xml file with the Jalopy plugin for Eclipse. I hope that helps. -- Chuck On 1/11/06, Stephen Duncan [EMAIL PROTECTED] wrote: I've got a few questions on the Standard Directory Layout described here: http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html For the most part I assume that what makes them standard is having a maven plugin (i.e. one that works out of the box without a prefix for definitions sake...) that uses said directory as a default. By that logic, src/main/webapp needs to be on the list, and to the effect, I've opened a JIRA issue: http://jira.codehaus.org/browse/MNG-1953 My question, though, is what is src/main/config used for? Does any plugin use that directory? I've seem some suggestion that configuration files for build profiles be put here. I've also seen that suggested as src/main/profiles/profile-name Is there guidance on this? Additionally, for questions like this, can we indicate some difference between suggested guidelines for directories vs. actually used default directories? I think I'd like to see a document (possibly just modifying the current one) to indicate for each standard directory which plugins use it as a default. Maybe this should go into a directory guide, which would be longer and more detailed than the current Introduction. Any ideas? -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Advanced File Modification Plugins (XSLT, XSLT Replacement, Regular Expression Replacement)
Stephen, Which app server are you using? I know that Tomcat allows you to override settings in web.xml with an environment-specific file (can't recall the name of the file). This allows you to deploy the same web.xml to each environment, but provide environment-specific overrides within each environment. This then obviates the need to do any sort of filtering during your build process. I believe WebLogic also provides an override mechanism. I would imagine that other app servers do as well. Therefore, my suggestion is to do a little research regarding this capability for your app server. If the capability exists, I would exploit it and scrap the need for filtering your web.xml file. -- Chuck On 1/11/06, Stephen Duncan [EMAIL PROTECTED] wrote: I've got the typical need to be able to build a war for different target environments where the difference between each environment is a few strings in configuration files for database dialect, logging levels, etc. Obviously, the typical solution is filtering, which is well supported in Maven. However, I prefer to develop my webapp by deploying to my web server straight from my source directory. So I use war:inplace, I have an inplace profile for my eclipse settings to target my output to src/main/webapp/classes, etc. Therefore I need to have some default value set in the source code, rather than a filter-string to be matched against by the resources plugin. Most of the files I care about are XML, so XSLT replacement would be ideal. I'd rather not maintain the XSLT files though, so I don't want a generic XSLT plugin so much (I think there's one of these in the Codehaus SVN). I want a plugin that uses XSLT or some other XML parsing to replace a given element in an XML file. That way I just configure the XPath expresion to match to replace against, and the new value. Obviously regular expression replacement is another option, though I'm more comfortable targetting using XPath. Does anybody else have better alternative suggestions, or know of plugins in existence or being developed to handle this? If it were to be developed, would it best belong in its own plugin, or would anybody support adding XPath replacement to the resources plugin to sit at the same level as basic filtering? Looking forward to any ideas or feedback. -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Build SLOW.
Hi Bret, Had it been handful files I would have created the POMs? Thanks for making the new plugin available. How will I know it is available? Also, how do I know that plug in is associated with which phase? Can I find this information somewhere? Regards, sanjay On 1/11/06, Brett Porter [EMAIL PROTECTED] wrote: A new version of the install plugin will be released shortly that you can use: -DgeneratePom=true In the mean time, you can create a small POM in the local repository for the libraries. - Brett On 1/12/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: I have copied several third party jars ( Websphere application server Lib into the repository). I installed them using the following commiand Now when I build I get the following message call mvn install:install-file -Dfile=./filename -DgroupId=oracle -DartifactId=classes12 -Dversion=9.0.2.0.0 -Dpackaging=jar [WARNING] Unable to get resource from repository central ( http://repo1.maven.org /maven2) Downloading: http://repo1.maven.org/maven2/ibm/was/ras/was.5.0/ras-was.5.0.pom [WARNING] Unable to get resource from repository central ( http://repo1.maven.org /maven2) Downloading: http://repo1.maven.org/maven2/ibm/was/querymd/was.5.0/querymd-was.5 .0.pom When I run mvn -o package, it runs quite fast. But then I have a disadvantage of running in a disconnected state. Is there a way to fix the above warning? It is slowing down my build :-( Sanjay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Build SLOW.
The plugin is not associated with a phase at present. It is available now, but needs to reach the mirrors before being announced. - Brett On 1/12/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: Hi Bret, Had it been handful files I would have created the POMs? Thanks for making the new plugin available. How will I know it is available? Also, how do I know that plug in is associated with which phase? Can I find this information somewhere? Regards, sanjay On 1/11/06, Brett Porter [EMAIL PROTECTED] wrote: A new version of the install plugin will be released shortly that you can use: -DgeneratePom=true In the mean time, you can create a small POM in the local repository for the libraries. - Brett On 1/12/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: I have copied several third party jars ( Websphere application server Lib into the repository). I installed them using the following commiand Now when I build I get the following message call mvn install:install-file -Dfile=./filename -DgroupId=oracle -DartifactId=classes12 -Dversion=9.0.2.0.0 -Dpackaging=jar [WARNING] Unable to get resource from repository central ( http://repo1.maven.org /maven2) Downloading: http://repo1.maven.org/maven2/ibm/was/ras/was.5.0/ras-was.5.0.pom [WARNING] Unable to get resource from repository central ( http://repo1.maven.org /maven2) Downloading: http://repo1.maven.org/maven2/ibm/was/querymd/was.5.0/querymd-was.5 .0.pom When I run mvn -o package, it runs quite fast. But then I have a disadvantage of running in a disconnected state. Is there a way to fix the above warning? It is slowing down my build :-( Sanjay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Maven2 building Eclipse plugins, features, and update si tes
In any case, because I have to get something done quickly, I am abandoning the effort of putting a second JAR in the repository. I'm going to hack around this and use a temporary directory for all the meta-JARs that I need, and then I'll have a feature build ANT goal that pulls from that directory before it starts packaging things up. This is certainly not even close to correct - it will only work because we only need to build one feature - but I'm just stymied at every turn by the lack of documentation right now. I know that the documentation situation will improve, but I've got to get something working by the end of the week. Hopefully, I'll have a chance to revisit this later after more documentation is in place. I'm doing something like this for my plugin: The non-eclipse dependencies are captured in the Maven pom.xml dependencies. To create a local copy of these libraries for inclusion in the project use the following command: +--- mvn dependency:copy-dependencies -DstripVersion=true -DoutputDirectory=lib +--- The libraries themselves should not be checked into CVS. Then in the MANIFEST.MF/plugin.xml editor I ensure that the Classpath entries on the Runtime tab include the libs just created. The .classpath and .project files are checked into CVS. So when the plugin is checked out it won't build since the libs are not there. After running the dependency:copy-dependencies command I can build the plugin. Of course I have not yet got to the point of automating all this. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Newbie]Mavan2 Proxies and settings and other questions
?xml version=1.0? settings proxies proxy activetrue/active protocolhttp/protocol hostproxy.intra.bt.com/host port8080/port /proxy /proxies /settings But this does not seem to work Your settings.xml looks fine. What errors are you getting? Does your proxy server require a username/password? Is your proxy server a Microsoft ISA proxy and hence needs NTLM? (If it needs NTLM then Maven does not support this yet, you will need to use NTLMAPS http://ntlmaps.sourceforge.net/ and configure your proxy setting like: proxy idLocal NTLMAPS/id activetrue/active protocolhttp/protocol username/username password/password hostlocalhost/host port5865/port nonProxyHosts10.105.49.175/nonProxyHosts /proxy ) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Build SLOW.
Brett, Thanks once again. My question on plugin and phase association was generic. For example, if I want to know ejb plugin is associated with which phase. Where do I find this information? (I know from mailing list that is associated with package phase). Thanks, sanjay On 1/11/06, Brett Porter [EMAIL PROTECTED] wrote: The plugin is not associated with a phase at present. It is available now, but needs to reach the mirrors before being announced. - Brett On 1/12/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: Hi Bret, Had it been handful files I would have created the POMs? Thanks for making the new plugin available. How will I know it is available? Also, how do I know that plug in is associated with which phase? Can I find this information somewhere? Regards, sanjay On 1/11/06, Brett Porter [EMAIL PROTECTED] wrote: A new version of the install plugin will be released shortly that you can use: -DgeneratePom=true In the mean time, you can create a small POM in the local repository for the libraries. - Brett On 1/12/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: I have copied several third party jars ( Websphere application server Lib into the repository). I installed them using the following commiand Now when I build I get the following message call mvn install:install-file -Dfile=./filename -DgroupId=oracle -DartifactId=classes12 -Dversion=9.0.2.0.0 -Dpackaging=jar [WARNING] Unable to get resource from repository central ( http://repo1.maven.org /maven2) Downloading: http://repo1.maven.org/maven2/ibm/was/ras/was.5.0/ras-was.5.0.pom [WARNING] Unable to get resource from repository central ( http://repo1.maven.org /maven2) Downloading: http://repo1.maven.org/maven2/ibm/was/querymd/was.5.0/querymd-was.5 .0.pom When I run mvn -o package, it runs quite fast. But then I have a disadvantage of running in a disconnected state. Is there a way to fix the above warning? It is slowing down my build :-( Sanjay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Build SLOW.
Actually, we aren't currently putting that in the documentation, so you'd need to see the source code. A worthy feature request. - Brett On 1/12/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: Brett, Thanks once again. My question on plugin and phase association was generic. For example, if I want to know ejb plugin is associated with which phase. Where do I find this information? (I know from mailing list that is associated with package phase). Thanks, sanjay On 1/11/06, Brett Porter [EMAIL PROTECTED] wrote: The plugin is not associated with a phase at present. It is available now, but needs to reach the mirrors before being announced. - Brett On 1/12/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: Hi Bret, Had it been handful files I would have created the POMs? Thanks for making the new plugin available. How will I know it is available? Also, how do I know that plug in is associated with which phase? Can I find this information somewhere? Regards, sanjay On 1/11/06, Brett Porter [EMAIL PROTECTED] wrote: A new version of the install plugin will be released shortly that you can use: -DgeneratePom=true In the mean time, you can create a small POM in the local repository for the libraries. - Brett On 1/12/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: I have copied several third party jars ( Websphere application server Lib into the repository). I installed them using the following commiand Now when I build I get the following message call mvn install:install-file -Dfile=./filename -DgroupId=oracle -DartifactId=classes12 -Dversion=9.0.2.0.0 -Dpackaging=jar [WARNING] Unable to get resource from repository central ( http://repo1.maven.org /maven2) Downloading: http://repo1.maven.org/maven2/ibm/was/ras/was.5.0/ras-was.5.0.pom [WARNING] Unable to get resource from repository central ( http://repo1.maven.org /maven2) Downloading: http://repo1.maven.org/maven2/ibm/was/querymd/was.5.0/querymd-was.5 .0.pom When I run mvn -o package, it runs quite fast. But then I have a disadvantage of running in a disconnected state. Is there a way to fix the above warning? It is slowing down my build :-( Sanjay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Maven2 building Eclipse plugins, features, and update sites
Hi Jim, Actually putting the eclipse-pde-plugin-jar in my repo is also one of my goals. The recommendation I offered using the assembly-mode was based on a 'dirty' environment and once I figured out what was going on, this will not work as expected. What I have gone forward with is using a combination of marking resources in the build-section of the pom.xml, utilizing maven-dependency-plugin to download libs, an ant-call to do a 'pde-prep' ANT target, and the maven-jar-plugin configuration to include the MANIFEST. So far, this combination seems to be o.k. but I feel it is shaky. This approach I'm actually using the 'mvn deploy' task to put the pde-plugin into the repo (using the ${artifactId}-${version}.jar approach, note the dash instead of underscore). I have not solved the two-places-to-keep-your-version-numbers-in-sync problem however (plugin.xml and pom.xml). -D -Original Message- From: Jim Babka [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 12:34 PM To: Maven Users List Subject: RE: [m2] Maven2 building Eclipse plugins, features, and update sites Looks interesting, but I think that this is causing the main plugin JAR to be replaced in the repository by the assembly. I can't do that - I must have the main plugin JAR in the repository because other projects have a compile-time dependency upon the code there. Jim Babka Senior Software Engineer Main: (512) 334 3200 Direct: (512) 334 3237 Email: [EMAIL PROTECTED] Webify Solutions Enabling the On Demand Enterprise(tm) www.webifysolutions.com -Original Message- From: Darren Hartford [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 9:05 AM To: Maven Users List Subject: RE: [m2] Maven2 building Eclipse plugins, features, and update sites I have tried the ANT-tasks that eclipse provides, and at least for plugin-packaging they seem over-complicated. I have had success (just recently based on the mini-guide for assembly) in packaging the update-jar for an eclipse plugin as follows: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [maven1] Classes that use javax.xml.parsers.SAXParserFactory.setXIncludeAware(boolean) do not compile
Any ideas on when 1.1-beta 3 will be? On 1/12/06, Arnaud HERITIER [EMAIL PROTECTED] wrote: Maven 1.0 bundles xerces which is not the case in the maven 1.1. The compatibility with the jdk 5 will be better if you use maven 1.1. You can try the beta 2 or this snapshot to see if it fixes your problem : http://people.apache.org/~aheritier/maven/1.X/snapshots/ Arnaud On 1/11/06, Minds Work [EMAIL PROTECTED] wrote: Hi Doug These property are already in my project.properties But these properties has nothing with classes or methods the compiler does not find. (For example, you can use classes/methods that only exists in Jdk1.5 (like java.util.Fotmatter) and compile with maven.compile.source=1.4 and maven.compile.target=1.4, it will compile, however it will not run correclty in a JVM 1.4, it will throw a Method/ClassNotFoundError) And I have other classes that use the new JDk1.5 source features (like ListE), those classes would not compile if the problem was source/target version. My Problem is that for some odd reason maven is using a different javax.xml.parsers.SAXParserFactory frm the one that exists in my JAVA_HOME jdk... I see this happen with no other class On 1/11/06, Doug Douglass [EMAIL PROTECTED] wrote: Freddy, Add the following to you project.properties and try maven java:compile again: maven.compile.source=1.5 maven.compile.target=1.5 Doug Minds Work wrote: Hi I have a class that uses the method setXIncludeAware(boolean) from javax.xml.parsers.SAXParserFactory ( jdk1.5) The class compiles in eclipse. But when I run maven, maven does not compile the class, it says that this method does not exists. I tried in others machines, but the error is alwalys the same: C:\Mantissa\workspace\biogenie-client\src\java\br\com\mindsatwork\biogenie\ui\BioGenieApplication.java:1309: cannot find symbol symbol : method setXIncludeAware(boolean) location: class javax.xml.parsers.SAXParserFactory SAXParserFactory.newInstance().setXIncludeAware( false ); Does anyone know why this is happening?? PS: If I coment the line that uses the setXIncludeAware(boolean), maven compiles the class. PS2: The JAVA_HOME env var is set to the same JVM that I use in eclipse. PS3: I'm running maven 1.0.2 and eclipse 3.1, in windows XP []s Freddy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.multitask.com.au/people/dion/ You are going to let the fear of poverty govern your life and your reward will be that you will eat, but you will not live. - George Bernard Shaw - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with a not valide pom
Can you copy one of the pom? Hard to tell without any information. On 1/11/06, Gerald Müllan [EMAIL PROTECTED] wrote: Hi *, I started to migrate the structure of a project to maven 2.0.1. The project consists of three modules, like this: -Base -Main -Other Stuff However, the last two have a dependency to the base module. So, first task was to install a jar from base module to the local repository. This works fine, but while trying to compile the other two, there was the exception of a not valide pom. The pom was generated by maven from the first install corresponding to the base pom, right? But this one was valid. However, what could be the reason for the not validated pom? I have checked out myfaces, there i tried to build the project. Exception was: Not a v4.0.0 POM Do i miss a plugin? Thx for help, regards, Gerald -- Gerald Muellan Schelleingasse 2/11 1040 Wien 0043 699 11772506 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Alexandre Poitras Québec, Canada
Re: jar plugin, how can i set Main-Class: at MANIFEST.MF
From this guide : http://maven.apache.org/guides/mini/guid-manifest.html plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifest mainClasscom.mycompany.app.App/mainClass /manifest /archive /configuration /plugin There you go :) On 1/11/06, Uijin Hong [EMAIL PROTECTED] wrote: dear maven community. i wonder how can i set Main-Class: at MANIFEST.MF. i consulted jar plugin's site already but, i can find nothing about this issue. it was not that difficult when i was using maven 1.x. but 2.0 is totally new to me. can someone please give me a hint? thanks. -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [maven1] Classes that use javax.xml.parsers.SAXParserFactory.setXIncludeAware(boolean) do not compile
Unfortunately no :-( We are very few to work on it and we don't have a lot of free time to spend on it. We have a lot of plugins to release and some important bugs in the core. For example we have MAVEN-1691 which is certainly related to Jelly. Thus we'll need to fix them in Jelly before to be able to release the beta 3. ( If you want to come back I were happy ;-) ) Arnaud On 1/11/06, Dion Gillard [EMAIL PROTECTED] wrote: Any ideas on when 1.1-beta 3 will be? On 1/12/06, Arnaud HERITIER [EMAIL PROTECTED] wrote: Maven 1.0 bundles xerces which is not the case in the maven 1.1. The compatibility with the jdk 5 will be better if you use maven 1.1. You can try the beta 2 or this snapshot to see if it fixes your problem : http://people.apache.org/~aheritier/maven/1.X/snapshots/ Arnaud On 1/11/06, Minds Work [EMAIL PROTECTED] wrote: Hi Doug These property are already in my project.properties But these properties has nothing with classes or methods the compiler does not find. (For example, you can use classes/methods that only exists in Jdk1.5(like java.util.Fotmatter) and compile with maven.compile.source=1.4 and maven.compile.target=1.4, it will compile, however it will not run correclty in a JVM 1.4, it will throw a Method/ClassNotFoundError) And I have other classes that use the new JDk1.5 source features (like ListE), those classes would not compile if the problem was source/target version. My Problem is that for some odd reason maven is using a different javax.xml.parsers.SAXParserFactory frm the one that exists in my JAVA_HOME jdk... I see this happen with no other class On 1/11/06, Doug Douglass [EMAIL PROTECTED] wrote: Freddy, Add the following to you project.properties and try maven java:compile again: maven.compile.source=1.5 maven.compile.target=1.5 Doug Minds Work wrote: Hi I have a class that uses the method setXIncludeAware(boolean) from javax.xml.parsers.SAXParserFactory ( jdk1.5) The class compiles in eclipse. But when I run maven, maven does not compile the class, it says that this method does not exists. I tried in others machines, but the error is alwalys the same: C:\Mantissa\workspace\biogenie-client\src\java\br\com\mindsatwork\biogenie\ui\BioGenieApplication.java:1309: cannot find symbol symbol : method setXIncludeAware(boolean) location: class javax.xml.parsers.SAXParserFactory SAXParserFactory.newInstance().setXIncludeAware( false ); Does anyone know why this is happening?? PS: If I coment the line that uses the setXIncludeAware(boolean), maven compiles the class. PS2: The JAVA_HOME env var is set to the same JVM that I use in eclipse. PS3: I'm running maven 1.0.2 and eclipse 3.1, in windows XP []s Freddy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.multitask.com.au/people/dion/ You are going to let the fear of poverty govern your life and your reward will be that you will eat, but you will not live. - George Bernard Shaw - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with a not valide pom
Yes, sure; you are absolutely right :) original pom is: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdat.oekb.adas/groupId artifactIdadasBase/artifactId packagingjar/packaging versionSNAPSHOT/version nameADAS II - AdasBase/name urlhttp://www.oekb.at/url description This is the Base Bundle needed for AdasMain and AdasScheduler /description dependencies ... /dependencies build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin /plugins /build repositories repository idibiblio/id urlhttp://www.ibiblio.org/maven2/url /repository /repositories /project Nothing special in here i think. The dependencies are hardcopied with system scope and are located in a own lib directory. The generated pom is: ?xml version=1.0?project modelVersion4.0.0/modelVersion groupIdat.oekb.adas/groupId artifactIdadasBase/artifactId nameADAS II - AdasBase/name versionSNAPSHOT/version descriptionThis is the Base Bundle needed for AdasMain and AdasScheduler/description urlhttp://www.oekb.at/url build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin /plugins /build repositories repository idibiblio/id urlhttp://www.ibiblio.org/maven2/url /repository /repositories dependencies ... /dependencies distributionManagement statusdeployed/status /distributionManagement /project I miss the schema definition, but normally there is no need to touch the file, isn't it? Thanks, regards, Gerald On 1/11/06, Alexandre Poitras [EMAIL PROTECTED] wrote: Can you copy one of the pom? Hard to tell without any information. On 1/11/06, Gerald Müllan [EMAIL PROTECTED] wrote: Hi *, I started to migrate the structure of a project to maven 2.0.1. The project consists of three modules, like this: -Base -Main -Other Stuff However, the last two have a dependency to the base module. So, first task was to install a jar from base module to the local repository. This works fine, but while trying to compile the other two, there was the exception of a not valide pom. The pom was generated by maven from the first install corresponding to the base pom, right? But this one was valid. However, what could be the reason for the not validated pom? I have checked out myfaces, there i tried to build the project. Exception was: Not a v4.0.0 POM Do i miss a plugin? Thx for help, regards, Gerald -- Gerald Muellan Schelleingasse 2/11 1040 Wien 0043 699 11772506 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Alexandre Poitras Québec, Canada -- Gerald Muellan Schelleingasse 2/11 1040 Wien 0043 699 11772506 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Using variables from parent pom.xml - like version etc.
I agree. See here and vote: http://jira.codehaus.org/browse/MNG-624 -Original Message- From: Sean McNamara [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 10:20 AM To: Maven Users List Subject: RE: [m2] Using variables from parent pom.xml - like version etc. Does this really address the issue that Sanjay is trying to solve? If the parent definition requires the version to be added, then every time the version is incremented all child POMs must be updated to reflect the new parent version. This means that all POMs in the inheritance heirarchy must be updated for every version increment. I've seen some postings talking about using the release-plugin to automate this behavior (re-versioning all POMs), but haven't found any good docs on that particular plugin. Pointers would be appreciated. Seems odd that this very useful feature of M1 didn't make it into M2. --- Brian E. Fox [EMAIL PROTECTED] wrote: Once you've done that, you can leave off the child version/ elements, and the parent's version will be used. I'll add that it's common to inherit the group too. -Original Message- From: John Casey [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 11:56 PM To: Maven Users List Subject: Re: [m2] Using variables from parent pom.xml - like version etc. There are two requirements for versioning in this case: 1. The parent POM has to have a valid version/ element (no expressions here). 2. Each child POM must specify a parent/ element that refers to the parent POM explicitly, including the version declared in the parent POM (again, no expressions here). Once you've done that, you can leave off the child version/ elements, and the parent's version will be used. HTH, John Sanjay Choudhary wrote: Thanks for taking time to reply. Let me ask my question in different way Parent Project currentversion 4.0 project 1 - extends parent project project 2 - extends parent project project 3 - extends parent project and depends on project 1 and project 2 .. .. project 35 - extends parent project Parent project + project1..35 make an Application. Life cycle of the parent project + child project's is same as application. Let us say current version of the application 4.0. In maven 1.0.2 , we used to define tag currentVersion 4.0/currentVersionin parent project.xml Then in child projects, for example child project 3, that is dependendent on project 1 and project 2, We define dependency as artifactIdproject1/artifactId version${pom.currentVersion}/version artifactIdproject2/artifactId version${pom.currentVersion}/version Now if we hv. to release version 4.1 then all we need to do is change the parent project.xml - currentVersion attribute. We don't need to change all the 35 projects for the version. My question is how can a similar behavior achieved in M2. Thanks, Sanjay On 1/10/06, Napoleon Esmundo Ramirez [EMAIL PROTECTED] wrote: Hello, I just checked your pom's. Your parent pom seems to be okay. But I think your second pom isn't. When declaring parent projects in child projects (modules) you should explicitly define the version. Try setting it with 1.0-8, and let's see what happens. I hope it works this time. :) Cheers! Nap On 1/11/06, Allan Ramirez [EMAIL PROTECTED] wrote: Hi there, Try to use the dependencyManangement element. http://maven.apache.org/guides/introduction/introduction-to-dependenc y-mechanism.html Regards, -allan Sanjay Choudhary wrote: I tried using ${project.version} but got the following error [INFO] Trace org.apache.maven.reactor.MavenExecutionException: POM ' org.emember:org_kp_eme mber' not found in repository: org.kp.emember:org_kp_emember:pom:${project.version} project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion parent groupIdorg.emember/groupId artifactIdorg_emember/artifactId versionCAN I USE VERSION VARIABLE FROM POM? /version /parent On 1/10/06, Napoleon Esmundo Ramirez [EMAIL PROTECTED] wrote: Hello, Please try ${project.version}. Cheers! Nap On 1/11/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: I have parent pom.xml as below project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdorg.emember/groupId artifactIdorg_emember/artifactId packagingpom/packaging version1.0-8/version nameMaven Quick Start Archetype/name
RE: [m2] copy contents of maven.runtime.classpath [dependency-maven-plugin]
I can't say why it doesn't get included until the second pass, but the scope filtering has been added to 1.1-SNAPSHOT. See the mojo page for how to get this out of the repo. -Original Message- From: Darren Hartford [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 11:16 AM To: Maven Users List Subject: RE: [m2] copy contents of maven.runtime.classpath [dependency-maven-plugin] I mis-spoke earlier, the assembly doesn't seem to do what I would want. I did try this: Pom.xml === plugin groupIdorg.codehaus.mojo/groupId artifactIddependency-maven-plugin/artifactId executions execution idcopy-dependencies/id phasecompile/phase goals goalcopy-dependencies/goal /goals configuration outputDirectorysrc/main/resources/lib/outputDirectory /configuration /execution /executions /plugin But even though I specify it in the compile-phase, the /lib dir is NOT included in the package...until the SECOND time package is run. Is that a bug? Also, there doesn't seem to be a configuration for scope, should there be or is that not the intent of this plugin? -D -Original Message- From: Yann Le Du [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 5:52 PM To: Maven Users List Subject: Re: [m2] copy contents of maven.runtime.classpath for packaging Hi Darren, Maybe you can use http://mojo.codehaus.org/dependency-maven-plugin/ in a phase before the one where you run your ant-run ? HTH, -- Yann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Using variables from parent pom.xml - like version etc.
maven-release-plugin will do all that update for you -D On 1/11/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: I agree with Sean, it will be a pain and time comsuming effort if all the child project's POM needs to be updated. -Sanjay On 1/11/06, Sean McNamara [EMAIL PROTECTED] wrote: Does this really address the issue that Sanjay is trying to solve? If the parent definition requires the version to be added, then every time the version is incremented all child POMs must be updated to reflect the new parent version. This means that all POMs in the inheritance heirarchy must be updated for every version increment. I've seen some postings talking about using the release-plugin to automate this behavior (re-versioning all POMs), but haven't found any good docs on that particular plugin. Pointers would be appreciated. Seems odd that this very useful feature of M1 didn't make it into M2. --- Brian E. Fox [EMAIL PROTECTED] wrote: Once you've done that, you can leave off the child version/ elements, and the parent's version will be used. I'll add that it's common to inherit the group too. -Original Message- From: John Casey [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 11:56 PM To: Maven Users List Subject: Re: [m2] Using variables from parent pom.xml - like version etc. There are two requirements for versioning in this case: 1. The parent POM has to have a valid version/ element (no expressions here). 2. Each child POM must specify a parent/ element that refers to the parent POM explicitly, including the version declared in the parent POM (again, no expressions here). Once you've done that, you can leave off the child version/ elements, and the parent's version will be used. HTH, John Sanjay Choudhary wrote: Thanks for taking time to reply. Let me ask my question in different way Parent Project currentversion 4.0 project 1 - extends parent project project 2 - extends parent project project 3 - extends parent project and depends on project 1 and project 2 .. .. project 35 - extends parent project Parent project + project1..35 make an Application. Life cycle of the parent project + child project's is same as application. Let us say current version of the application 4.0. In maven 1.0.2 , we used to define tag currentVersion 4.0/currentVersionin parent project.xml Then in child projects, for example child project 3, that is dependendent on project 1 and project 2, We define dependency as artifactIdproject1/artifactId version${pom.currentVersion}/version artifactIdproject2/artifactId version${pom.currentVersion}/version Now if we hv. to release version 4.1 then all we need to do is change the parent project.xml - currentVersion attribute. We don't need to change all the 35 projects for the version. My question is how can a similar behavior achieved in M2. Thanks, Sanjay On 1/10/06, Napoleon Esmundo Ramirez [EMAIL PROTECTED] wrote: Hello, I just checked your pom's. Your parent pom seems to be okay. But I think your second pom isn't. When declaring parent projects in child projects (modules) you should explicitly define the version. Try setting it with 1.0-8, and let's see what happens. I hope it works this time. :) Cheers! Nap On 1/11/06, Allan Ramirez [EMAIL PROTECTED] wrote: Hi there, Try to use the dependencyManangement element. http://maven.apache.org/guides/introduction/introduction-to-dependenc y-mechanism.html Regards, -allan Sanjay Choudhary wrote: I tried using ${project.version} but got the following error [INFO] Trace org.apache.maven.reactor.MavenExecutionException: POM ' org.emember:org_kp_eme mber' not found in repository: org.kp.emember:org_kp_emember:pom:${project.version} project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion parent groupIdorg.emember/groupId artifactIdorg_emember/artifactId versionCAN I USE VERSION VARIABLE FROM POM? /version /parent On 1/10/06, Napoleon Esmundo Ramirez [EMAIL PROTECTED] wrote: Hello, Please try ${project.version}. Cheers! Nap On 1/11/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: I have parent pom.xml as below project
Re: Overwriting a goal in subproject
I mean try placing this in the child pom: plugin ... configuration inherited${inheritGoal}/inherited /configuration /plugin It might override the parent's setting. HTH, Henry Dixit, Sandeep (ProSource Solutions) wrote: No, I rather don't know how to override a phase:goal written using maven-antrun-plugin. Could you give me an example? Thanks, Sandeep -Original Message- From: Henry Isidro [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 6:45 PM To: Maven Users List Subject: Re: Overwriting a goal in subproject Dixit, Sandeep (ProSource Solutions) wrote: How would that allow selective on and off? Wouldn't it set one value for all (parent and child projects)? Thanks, Sandeep Yup, sorry about that, I didn't fully understand your question. Have you tried overriding the property in the child pom? - Henry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: compile - removing source files from target directory
Hi Sean, Can you explain what you mean by source files being copied to the target directory? AFAIK, this isn't the case, source files are never copied to the target directory. Regards, Henry Sean Clarkson wrote: Hi, I'm new to Maven 2 - I was wondering if there was any setting you could add to the compiler to prevent source files being copied to the target directory, or removing them automatically after compilation. Do I need to use the process-classes phase and do something there with an additional goal, or can I actually prevent the source being copied cheers Sean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help manually building a debug jar
Are you using Maven 2 or Maven 1? On 1/11/06, Greene,Darren [EMAIL PROTECTED] wrote: I'm looking for a way to manually build a debug jar for one of my projects in maven. I'm assuming there is a command somewhere to do this but I can't seem to find it. Currently I can manually build a jar from the command prompt on the build box by issuing the following commands cd\buildsystem\build\target\checkouts\module-ebsBook call maven jar This builds the jar fine but it does not include the java code in the jar only class files. Does anyone know the command to make this happen? Thanks for your help in advance. CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. -- -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help manually building a debug jar
Dumb*. Maven 1 I can see it from your command line. Sorry I can't help you with Maven 1, I have never used it. On 1/11/06, Alexandre Poitras [EMAIL PROTECTED] wrote: Are you using Maven 2 or Maven 1? On 1/11/06, Greene,Darren [EMAIL PROTECTED] wrote: I'm looking for a way to manually build a debug jar for one of my projects in maven. I'm assuming there is a command somewhere to do this but I can't seem to find it. Currently I can manually build a jar from the command prompt on the build box by issuing the following commands cd\buildsystem\build\target\checkouts\module-ebsBook call maven jar This builds the jar fine but it does not include the java code in the jar only class files. Does anyone know the command to make this happen? Thanks for your help in advance. CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. -- -- Alexandre Poitras Québec, Canada -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Overwriting a goal in subproject
oops make that: inheritedfalse/inherited -Henry Henry Isidro wrote: I mean try placing this in the child pom: plugin ... configuration inherited${inheritGoal}/inherited /configuration /plugin It might override the parent's setting. HTH, Henry Dixit, Sandeep (ProSource Solutions) wrote: No, I rather don't know how to override a phase:goal written using maven-antrun-plugin. Could you give me an example? Thanks, Sandeep -Original Message- From: Henry Isidro [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 6:45 PM To: Maven Users List Subject: Re: Overwriting a goal in subproject Dixit, Sandeep (ProSource Solutions) wrote: How would that allow selective on and off? Wouldn't it set one value for all (parent and child projects)? Thanks, Sandeep Yup, sorry about that, I didn't fully understand your question. Have you tried overriding the property in the child pom? - Henry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Newbie]Mavan2 Proxies and settings and other questions
On 1/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I started to build using maven having used ANT for sometime. I am using eclipse and have a load of libraries *.jar files that are in a local directory. Some of these are related to each other: JDOM.jar and JDOM-CONTRIB.jar but when I look in the repository I do not fing the JDOM-Contrib.jar. Also do I have to load all the *.jar as separate dependencies? No you don't need to load them all as separate dependencies. You just have to declare you are really using directly. The transitive dependencies, ie the depencies used by our dependencies, will be added by Maven :) It's one of the best feature in my mind of Maven 2. Lastly from home the downloads worked but the proxy at work is blocking me. The settings file is: ?xml version=1.0? settings proxies proxy activetrue/active protocolhttp/protocol hostproxy.intra.bt.com/host port8080/port /proxy /proxies /settings But this does not seem to work Martin Roberts - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Alexandre Poitras Québec, Canada