Re: [M2] Problem with maven-ear-plugin: Artifact[_:_:ejb] is not a dependency of the project.
Hi, You will also need to specify version2.1/version in the dependency declaration. That worked for me, Claudio Henry S. Isidro wrote: Hi Stefan, Try adding typeejb/type in your dependency declarations. HTH, Henry Stefan Rademacher wrote: Hello, I have a problem, when I try creating an EAR file, that includes two EJB modules. Nobody else seems to have this issue, so there might be an easy solution... I have a project with packaging=ear and two projects with packaging=ejb. When I package the ejb projects separately, there are no errors. But when I want to package the ear-project (see pom below), I get the error Artifact[de.hhla.smd:hhla.smd.bwaclient:ejb] is not a dependency of the project. But I added the two ejb projects as dependencies of my ear project. Could anybody tell me, what I'm doing wrong? Thanks a lot for your help! Regards, Stefan POM of the EAR project: 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 groupIdde.hhla.smd/groupId artifactIdhhla.smd.provider/artifactId namehhla.smd.provider/name version1.0-beta-1-SNAPSHOT/version packagingear/packaging dependencies dependency groupIdde.hhla.smd/groupId artifactIdhhla.smd.aisclient/artifactId version1.0-beta-1-SNAPSHOT/version /dependency dependency groupIdde.hhla.smd/groupId artifactIdhhla.smd.bwaclient/artifactId version1.0-beta-1-SNAPSHOT/version /dependency /dependencies build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ear-plugin/artifactId configuration modules ejbModule groupIdde.hhla.smd/groupId artifactIdhhla.smd.bwaclient/artifactId /ejbModule ejbModule groupIdde.hhla.smd/groupId artifactIdhhla.smd.aisclient/artifactId /ejbModule /modules /configuration /plugin /plugins /build /project - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-M2--Problem-with-maven-ear-plugin%3A-Artifact-_%3A_%3Aejb--is-not-a-dependency-of-the-project.-tf927556s177.html#a7450410 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: execute project
I think, you are looking for the exec-maven-plugin http://mojo.codehaus.org/exec-maven-plugin/index.html Rémy 2006/11/20, Neeraj Bisht [EMAIL PROTECTED]: On 11/20/06, tohid noroozi [EMAIL PROTECTED] wrote: i am using maven2 and have successfull in build my project. after the compile , i want to run my project by maven , but i dont know what i have to do . i search the internet and can't find any useful help . my project is desktop application . and i want to maven run it . can any body help me ? what actully u want to do with maven ,i am unable to understand plz clerify ur question
Re: Maven cyclic dependecy issue
Christian Goetze wrote: The trouble is that you need a -reference- to the parent's version in the children, and that reference does not seem to resolve any ${...} substitutions, so it needs to be hard coded. Hmm... Was this the intended design or could this be fixed up in later revisions? Just seems that defining a top-level property should be viewable/overriden by every child pom and hence conforming to the *inheritance* contract touted by Maven. -los _ Get the latest Windows Live Messenger 8.1 Beta version. Join now. http://ideas.live.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apply license to all java files?
It is a checkstyle feature. It is probably possible to do it with this plugin alex On Tuesday 21 November 2006 12:16, Wim Deblauwe wrote: Hi, does anybody know of a Maven plugin (or some other tool) that makes sure the approperiate header for a certain license is present in every java file? I could ofcourse manually add the notice to every file, but this seems like such a common thing that somebody must have made something already. regards, Wim pgptgIWPOtgTx.pgp Description: PGP signature
debian start up
I am having problems getting continuum (v1.0.3) to start on a debian (sarge v3.1) system. If the server is restarted continuum tries to start up, but receives a shutdown signal from something I can not find. After I log back in I can start up continuum without any problems at all. Has anyone had any issues with the server start process? Tony
Re: Instrument code for integration test with Cobertura and Cargo
I rewrite my question. I want a code coverage for my integration test (the integration test with selenium instruments the war module). I have a it (integration test) module and i want a dashboard on code coverage for my sources on my war module. How you do that? Thanks Grégory gbois wrote: Hi, I use Maven 2 with Cargo and Corbertura (for the moment). I want a dashboard on code coverage for my intergration test (my integration test is selenium test). I have bind my integration test to the test phase. My code is plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId version0.3-SNAPSHOT/version executions execution idstart-container/id phaseprocess-test-sources/phase goals goalstart/goal goaldeploy/goal /goals configuration deployer deployables deployable groupIdmyproj/groupId artifactIdmyproj_ear/artifactId typeear/type pingURLhttp://localhost:8080//pingURL pingTimeout54/pingTimeout /deployable /deployables /deployer waitfalse/wait container containerIdjboss4x/containerId homeC:\tools\jboss-4.0.2/home timeout18/timeout /container /configuration /execution execution idstop-container/id phasetest/phase goals goalstop/goal /goals /execution /executions /plugin mvn test works and with mvn site fails When cobertura instruments the code, second execution of the tests because the cargo start fail. Because, the first step of Cobertura doesn't stop it. I suppose Cobertura uses his own life cycle. Have you got an idea to solve my problem? Thanks a lot. Grégory BOISSINOT BP2S PARIS -- View this message in context: http://www.nabble.com/Instrument-code-for-integration-test-with-Cobertura-and-Cargo-tf2679754s177.html#a7474962 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Archetype Question
Found out there is a filtered and a encoding attribute on the resource tag. Had to read through the source code though. Michael Schlotfeldt wrote: Easy questions (hopefully): 1. When creating a custom archetype how do you list resources to *not *replace variables from? Or in other words not modify instances of ${blah}. It would be nice to not only be able to escape individual instances in a file but also files completely for things like images. 2. Why the different tags? Or in other words why not just have resources? What does testResources do differently? You still need to write the entire relative path. 3. Why must all resources be list in archetype.xml? What is the purpose? When would you not list a file? Thank you for all the help. Also there is an error on: http://maven.apache.org/guides/mini/guide-creating-archetypes.html About half way down tags are listed with hyphens instead of capitals between words (eg. test-resources instead of testResources). Once again, thanks! - Michael - 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] NP when developing a plugin
Hi! Under development, when I develop my maven plugin, I run mvn clean install in the plugin dev dir, and then mvn goal in another directory which contains my test pom.xml. But, if I switch fast beween building/installing the plugin and trying it out, I get a nullpointer exception. I would guess it is some option I could set in the pom to avoid this. The exception I get is: java.lang.NullPointerException at org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:292) at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:198) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:163) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1252) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1517) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:381) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:135) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Thanks in advance, Rohnny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Surefire and ClassLoading with URLS SystemClassLoader
I've noticed a lot of discussion on ClassLoading with respect to resources, but little on loading classes themselves. Of the following tests, only the test useObjectClassLoader() works in surefire. In normal TestNG both tests will pass. I've noticed a test using URLClassloader (ie plugin system loading jars) also fails with the same problem. Is there a different URL required for system classloader when running surefire?, or is there a configuration setting I need to get surefire to treat the URLs as it does at the command line? Thanks. @Test public void useObjectClassLoader() throws ClassNotFoundException { Class type = getClass().getClassLoader().loadClass( com.oculus.test.TestObject); // works Assert.assertEquals(type, TestObject.class); } @Test public void useSystemClassLoader() throws ClassNotFoundException { // thows exeception here Class type = ClassLoader.getSystemClassLoader().loadClass( com.oculus.test.TestObject); Assert.assertEquals(type, TestObject.class); } Oh and TestObject is in the same package as the tests. Here is the exception: java.lang.ClassNotFoundException: TestObject at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at com.oculus.test.Runner.useSystemClassLoader(Runner.java:20) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Surefire and ClassLoading with URLS SystemClassLoader
Maybe you should try to play with the forkMode. See http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#forkMode. By default it is once, so a classloader is created for tests. Maybe with never it would works. I have not tried that one. Robert Harper-2 wrote: I've noticed a lot of discussion on ClassLoading with respect to resources, but little on loading classes themselves. Of the following tests, only the test useObjectClassLoader() works in surefire. In normal TestNG both tests will pass. I've noticed a test using URLClassloader (ie plugin system loading jars) also fails with the same problem. Is there a different URL required for system classloader when running surefire?, or is there a configuration setting I need to get surefire to treat the URLs as it does at the command line? Thanks. @Test public void useObjectClassLoader() throws ClassNotFoundException { Class type = getClass().getClassLoader().loadClass( com.oculus.test.TestObject); // works Assert.assertEquals(type, TestObject.class); } @Test public void useSystemClassLoader() throws ClassNotFoundException { // thows exeception here Class type = ClassLoader.getSystemClassLoader().loadClass( com.oculus.test.TestObject); Assert.assertEquals(type, TestObject.class); } Oh and TestObject is in the same package as the tests. Here is the exception: java.lang.ClassNotFoundException: TestObject at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at com.oculus.test.Runner.useSystemClassLoader(Runner.java:20) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Surefire-and-ClassLoading-with-URLS-SystemClassLoader-tf2679845s177.html#a7477728 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven cyclic dependecy issue
Its a chicken and egg problem. If you don't hard-code parent version in child = which parent version should I use? Keep in mind the /parent/module layout in the filesystem (with relativePath) is not an absolute requirement ie parent poms could/should be checked into a Maven repo and resolved from there. The fact that ../pom.xml usually works to find the parent is just an enhancement to the functionality. So assuming I have 3 parent pom versions in my Maven repo, how does Maven know which one is right without being told? Wayne On 11/21/06, Los Morales [EMAIL PROTECTED] wrote: Christian Goetze wrote: The trouble is that you need a -reference- to the parent's version in the children, and that reference does not seem to resolve any ${...} substitutions, so it needs to be hard coded. Hmm... Was this the intended design or could this be fixed up in later revisions? Just seems that defining a top-level property should be viewable/overriden by every child pom and hence conforming to the *inheritance* contract touted by Maven. -los _ Get the latest Windows Live Messenger 8.1 Beta version.Join now. http://ideas.live.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]
Modifying dependency tree
Hello, I have a M2 project and I want to create a zip with dependencies using assembly. Let's say that one of transitive dependencies is org.springframework:spring-beans. However, spring-beans with all its dependencies will be provided by the runtime environment so I don't need them to be packaged in the result zip file. I tried to set org.springframework:spring-beans's scope to 'provided' but it does not work as expected - all its dependencies's scopes are reverted back to 'compile' as specified in [1]. So, is there some way to remove a dependency and its transitive dependencies from the project's dependency tree? I'd really hate to enumerate all transitive dependencies manually in the exclude element of the assembly descriptor. Thank you very much! [1] http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict +Resolution#DependencyMediationandConflictResolution-Scoperesolution - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Loading a POM from the Respository
Read 'specifying a new packaging' in the 'Introduction to the lifecycle' http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html Don't forget to set extensionstrueextensions on the plugin defining your new lifecycle. Tom On 11/21/06, Ole Ersoy [EMAIL PROTECTED] wrote: Wow, Tom - It certainly looks like you hit the nail right on the head there. Terrific. Would you by chance happen to know how I go about configuring the project lifecycle to support a a different artifact type as well? I'm writing a mojo for the JPackage project, and creating a corresponding archetype so that JPackagers can generate RPMS quickly from Maven projects, and I'd like to have the packaging element set to jpackage. However if I do this I get an exception like this one: [INFO] Cannot find lifecycle mapping for packaging: 'jpackage'. Component descriptor cannot be found in the component repository: org.apache.maven.lifecycle.mapping.LifecycleMappingjpackage. Brilliant work on the cookbook. Thanks again! - Ole --- Tom Huybrechts [EMAIL PROTECTED] wrote: If you want to do this in a mojo, look at 'resolving an artifact' in the Mojo Developer Cookbook: http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook Use an artifact of type 'pom'. On 11/21/06, Ole Ersoy [EMAIL PROTECTED] wrote: Hi, I need to to create a path string representing a location of a pom in the local maven repository on Linux. What is the best way of going about this? One thought I had was to just get the USER environment variable and construct the repository path manually, but that assumes that the repository is located under /home/$user/.m2/repository And ideally Maven would be able to inject a parameter telling the plugin where the plugin what the path to the local repository base directory is. ideas? Thanks, - Ole Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.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] Sponsored Link Online degrees - find the right program to advance your career. www.nextag.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: Maven cyclic dependecy issue
Wayne Fay wrote: Its a chicken and egg problem. If you don't hard-code parent version in child = which parent version should I use? Keep in mind the /parent/module layout in the filesystem (with relativePath) is not an absolute requirement ie parent poms could/should be checked into a Maven repo and resolved from there. The fact that ../pom.xml usually works to find the parent is just an enhancement to the functionality. So assuming I have 3 parent pom versions in my Maven repo, how does Maven know which one is right without being told? It could be told by setting -Dmy_version=version and using ${my_version} in the parent reference. But not even that works. -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Archetype Question
On 11/21/06, Michael Schlotfeldt [EMAIL PROTECTED] wrote: Found out there is a filtered and a encoding attribute on the resource tag. Had to read through the source code though. This still doesn't address the problem of filtering some, but not all, expressions in a file, right? Has anyone found a way to escape expressions in Velocity, so it will pass them through? -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven release plugin question
Is it required to have SNAPSHOT in the version number of the Maven project in order to use the Maven release plugin with it? For example, if I have a version like 2.0.0 and I would like to create a tag called 2.0.0.0, it looks like I am not able to do this using the plugin. Is this correct? This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
Error when generating Dependencies report (SNAPSHOT)
Hi, This morning, I try to generate my project site and it failed. Yesterday it works... Any idea? ++ Julien [INFO] Generate Dependencies report. [INFO] [ERROR] FATAL ERROR [INFO] [INFO] org/apache/maven/shared/jar/Jar [INFO] [INFO] Trace java.lang.NoClassDefFoundError: org/apache/maven/shared/jar/Jar at org.apache.maven.report.projectinfo.dependencies.Dependencies.init(Dependencies.java:74) at org.apache.maven.report.projectinfo.DependenciesReport.executeReport(DependenciesReport.java:126) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:101) at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:67) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:239) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:115) at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:124) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com
[M2] Assembly Multi Modules
Hi I got a multi-module project that looks like this: Top | +build/master || |\--pom.xml |\--src/assembly/dep.xml | +adapters | +---Core | +--foo1 | | | \--pom.xml | +--foo2 | | | \--pom.xml | +--foo3 | \--pom.xml I am looking to create a backup of the source code using the master project `build/master/pom.xml'. Can the assembly plug-in handle changing directory `upwards' e.g. cd ../.. From the information at http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodu le/module-source-inclusion-simple.html Can you the assembly Plugin now do this? It is not clear if it can. Or is the zip-plugin a better option? TIA -- Peter Pilgrim UBS Investment Bank, PTS Portal / IT FIRC OPS LDN, 100 Liverpool Street, London EC2M 2RH, United Kingdom +44 (0) 20 75 75692 :: Java EE / E-Commerce / Enterprise Integration / Development :: Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using the assembly plugin to build a stand-alone application
Hmm, no, not really. I have dependencies on oracle (ojdbc), spring, mail, activation, commons-net, log4j, ibatis-common, and ibatis-sqlmap in my project. I want to have my jar, and all of the jars required to run it somewhere in the target directory. Larry On 11/20/06, pjungwir [EMAIL PROTECTED] wrote: Hi Larry, I believe the descriptorId is required. You must also reference assembly.xml from your POM by giving the assembly plugin a configuration like this: configuration descriptorassembly.xml/descriptor /configuration But the 4 files result is correct, I think. What's in them? The jar should contain only your current project's classes. That is not the result of the assembly plugin, but of the jar plugin (probably running automatically on account of jar packaging). The other three files are coming from the assembly plugin. What's in them? You should see your jar plus your dependency jars. That's what you wanted, right? Paul Larry Meadors-2 wrote: Thanks, Paul - I added that as a file named assembly.xml in the directory with my pom.xml in it. I then added this to my pom (in the build/plugins section): === plugin artifactIdmaven-assembly-plugin/artifactId version2.0-beta-1/version configuration descriptorIdbin/descriptorId descriptors descriptor./assembly.xml/descriptor /descriptors finalNamemarcdelivery/finalName outputDirectorytarget/assembly/outputDirectory workDirectorytarget/assembly/work/workDirectory /configuration /plugin === But it still only creates 4 files: - target/marc-delivery-1.0-SNAPSHOT.jar - target/assembly/marcdelivery-bin.tar.gz - target/assembly/marcdelivery-bin.tar.bz2 - target/assembly/marcdelivery-bin.zip If I remove the descriptorIdbin/descriptorId line from the pom, I get only one file (target/marc-delivery-1.0-SNAPSHOT.jar) and an error. :( How do you have this in your project? Larry On 11/20/06, pjungwir [EMAIL PROTECTED] wrote: Hi Larry, I'm doing this, too. I think you'll need to create your own assembly descriptor. Here is mine: assembly idbin/id formats formattar.gz/format formatzip/format /formats fileSets fileSet directorytarget/directory outputDirectory/outputDirectory includes include*.jar/include !-- the jar of this project's classes -- /includes /fileSet fileSet directorytarget/scripts/directory outputDirectory/outputDirectory includes include*/include !-- clui scripts to launch the main java class -- /includes fileMode755/fileMode /fileSet fileSet directorytarget/doc/directory outputDirectory/outputDirectory includes include*/include /includes /fileSet /fileSets files file sourceREADME/source outputDirectory//outputDirectory fileMode644/fileMode !-- broken. see http://jira.codehaus.org/browse/MASSEMBLY-153 -- /file /files dependencySets dependencySet /dependencySet /dependencySets /assembly Paul Larry Meadors-2 wrote: Hi, I am using maven for the first time, so I apologize if this is a retarded question, but I can't find it anywhere in the docs. I have an app that is a command line app. I want to create an assembly that has my jar, along with the other jars that are listed as dependencies on it. I tried the jar-with-dependencies approach, and that *almost* works, but one of the jars i am including has some added files in the META-INF directory, and they do not end up getting included, so the app fails. Bummer. :( So, I guess i am looking for one of two things: 1) how can I get *all* the files in the uber jar. -or- 2) how can I get the assembly to just put all the individual dependent jars in a directory somewhere? I think I'd prefer #2, but at this point... I'll take what I can get! :-) TIA, Larry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Using-the-assembly-plugin-to-build-a-stand-alone-application-tf2670816s177.html#a7448665 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using the assembly plugin to build a stand-alone application
OK, I got it. I added a section to my pom for snapshot plugins like this: project ... ... pluginRepositories pluginRepository idmaven-snaps/id urlhttp://people.apache.org/repo/m2-snapshot-repository/url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /pluginRepository /pluginRepositories ... /project Then to build, I do this: mvn install dependency:copy-dependencies That does a totally adequate job of putting everything out in my target directory for me. Thanks for your help, people. Larry On 11/20/06, Barrie Treloar [EMAIL PROTECTED] wrote: On 11/21/06, Larry Meadors [EMAIL PROTECTED] wrote: Hi, I am using maven for the first time, so I apologize if this is a retarded question, but I can't find it anywhere in the docs. I have an app that is a command line app. I want to create an assembly that has my jar, along with the other jars that are listed as dependencies on it. See * http://www.nabble.com/forum/ViewPost.jtp?post=5936062framed=yskin=177 * http://www.nabble.com/forum/ViewPost.jtp?post=5954911framed=yskin=177 for an example of how to do this. - 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: Loading a POM from the Respository
If you want to do this in a mojo, look at 'resolving an artifact' in the Mojo Developer Cookbook: http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook Use an artifact of type 'pom'. On 11/21/06, Ole Ersoy [EMAIL PROTECTED] wrote: Hi, I need to to create a path string representing a location of a pom in the local maven repository on Linux. What is the best way of going about this? One thought I had was to just get the USER environment variable and construct the repository path manually, but that assumes that the repository is located under /home/$user/.m2/repository And ideally Maven would be able to inject a parameter telling the plugin where the plugin what the path to the local repository base directory is. ideas? Thanks, - Ole Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.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: Can't get javadoc plugin to work for multimodule project
Thanks for the suggestions guys, but I eventually did figure out my problem after much suffering. It looks to me like the javadoc plugin has a bug where it gives very misleading error messages. The source of all my errors seems to have been an invalid package.html file somewhere in one of my modules. This apparently caused the javadoc plugin to generate lots of bogus error messages about not being able to find dependent classes. I opened a JIRA issue: http://jira.codehaus.org/browse/MJAVADOC-102. -Adam On 11/19/06, diroussel [EMAIL PROTECTED] wrote: Do your module names match the directory names which match the artifact ids? Adam Lally-2 wrote: On 11/16/06, Marc Prud'hommeaux [EMAIL PROTECTED] wrote: Adam- I've experienced that as well. My workaround is to first run mvn install and then mvn javadoc:javadoc, and it seems to work. Thanks, that got my simple test case with just one module to work. My multimodule build is still failing with missing dependencies, though. mvn install runs fine, but mvn javadoc:javadoc gives errors. :( I will try to simplify my build and see when it stops breaking. But in the meantime if anyone can enlighten me as to reasons why mvn install might work while mvn javadoc:javadoc doesn't, I'd appreciate it. -Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Can%27t-get-javadoc-plugin-to-work-for-multimodule-project-tf2647522s177.html#a7429647 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using the assembly plugin to build a stand-alone application
Hi, I am using maven for the first time, so I apologize if this is a retarded question, but I can't find it anywhere in the docs. I have an app that is a command line app. I want to create an assembly that has my jar, along with the other jars that are listed as dependencies on it. I tried the jar-with-dependencies approach, and that *almost* works, but one of the jars i am including has some added files in the META-INF directory, and they do not end up getting included, so the app fails. Bummer. :( So, I guess i am looking for one of two things: 1) how can I get *all* the files in the uber jar. -or- 2) how can I get the assembly to just put all the individual dependent jars in a directory somewhere? I think I'd prefer #2, but at this point... I'll take what I can get! :-) TIA, Larry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Don't add dependency?
Hi Sha Jiang, Did you declare this dependency in your pom? If so, please show us a snippet of your pom.xml. Thanks, Dawn jiangshachina wrote: Hi guys, I have a Web application project. I added javax.transaction:jta:jta-1.0.1B.jar to dependency, but in fact my project doesn't need the jar. Namely, I don't need it on compile-time, test-time or runtime. I run mvn package, and the build was sucessful. I checked WEB-INF/lib directory, but don't find jta-1.0.1B.jar. I always think that Maven would add any jar file in dependencies. But the case means that I'm wrong. I don't believe one case, please show me clearly. Maven can identify any useless jar and doesn't add it to war file? a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Don%27t-add-dependency--tf2677027s177.html#a7469026 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: generating site from parent
Wayne Fay wrote: This is discussed a couple times every week. Please search this list for parent site or just check out this recent thread: from Morgovsky, Alexander (US - Glen Mills) to users@maven.apache.org date Nov 9, 2006 4:03 PM subject Aggregate site generation I did that, and it doesn't work. I get a menu with the sub project names, but no links. The project summary seems to give me links, but they link back to the top. It is really weird. -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Compiler Plugin Extension
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Group, is there a way for a custom plugin to add some internal dependencies to the compiler classpath which are not available as maven plugins? In other words is there an API to dynamically add external jars to the compiler classpath? Thanks for any hint Markus Wolf - -- __ Markus Wolf Wedeler Landstrasse 63 22559 Hamburg tel: (+49) 40 / 550 083 70 mob: (+49) 177 / 288 48 67 web: http://www.matrixweb.de icq: #109622365 pgp: http://wwwkeys.de.pgp.net __ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFY2PwYuGbqyQxpHcRAtraAJ9J0G4rqpkcL2RRu31LjDC7GIhNNQCfbEb8 UsILepXMPDOdFcPkTL7WRRc= =AsER -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Forced builds
Thanks for the good news. -Original Message- From: Christian Edward Gruber [mailto:[EMAIL PROTECTED] Sent: Monday, November 20, 2006 4:20 PM To: continuum-users@maven.apache.org Subject: Re: Forced builds Complex projects with lots of external dependencies, particularly dependencies on external snapshot versions of code. Also, we run a nightly integration test against external systems (we only run Unit tests on the normal non-forced build, or they'd take too long), and changes in the underlying database, or changes in the test data would cause test failures that need to be identified. I feel that this attitude Wayne cites (no delta, no build) is quite common, but makes a lot of assumptions about one's environment, and I think is unrealistic in many large-scale development environments. It may be perfectly reasonable in Wayne's context, or many others, mind you. But especially in large, highly interconnected development environments (like a big bank), you want to have relevant information communicated between groups and architectural layers as quickly as possible to identify any defect or change in assumptions, so a set of system/integration tests run on a schedule (hourly, daily, whatever) are entirely appropriate, and may identify defects regardless of code-changes. The good news, Alexander, is that 1.1 will have such a feature (Jesse committed this a few weeks ago - not so much a forced build, but a fresh cut of the workspace, which has the same effect), so when 1.1 is released you can do exactly this. I frankly run a trunk build, because for all its little instabilities, it's so feature-superior to 1.0.3 that for me it's worth the hassle. One of the main gets for our organization is the forced scheduled build. Continuum (1.1-SNAPSHOT) has proven to be quite handy at decreasing latency in communication of API changes, underlying business cases (test data), or other issues by forcing the issues faster, when used this way... even when humans forget to talk to humans. Cheers, Christian. Wayne Fay wrote: No changes in code == no reason to build, right? I don't see the usefulness of this enhancement, personally... Unless of course some PHB has laid down a build all projects every 3 hrs kind of mandate in your organization. Wayne On 11/20/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: Not yet, why? Emmanuel Morgovsky, Alexander (US - Glen Mills) a écrit : Is it possible to have Continuum force build every n hours even if the code in the source code repository hasn't changed? This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] -- *christian** gruber + process coach and architect* *Israfil Consulting Services Corporation* *email** [EMAIL PROTECTED] + bus 905.640.1119 + mob 416.998.6023*
calling an archetype goal from embedder
Hello List, How can I call an archetype:create goal using the embedder? Do I have to have a fake pom.xml for that? how can I pass the parameters? (archetypeGroupId, for example) Thanks, -- Israel Klein
Re: Don't add dependency?
Hi guys, I found the key. In management-1.0.pom, I excludes jta from hibernate dependency. At beginning, I didn't use jta-1.0.1B, but j2ee-1.4.jar, because jta-1.0.1B.jar isn't at central repository. But jta is transitive dependency of yy another dependency hibernate-3.0.jar, so I excludes it. Serval days later, I wanted to use jta directly and installed jta-1.0.1B.jar by manual. Unfortunately, I didn't remove the statements of excluding. According to the case, it seems that excluding scripts have higher priority. a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hi Dawn, Thanks for your reply. I have three POM files, and all of them are very simply. I show the snippets of them. managment-1.0.pom just includes dependency management. modelVersion4.0.0/modelVersion groupIdmygroup/groupId artifactIdmanagement/artifactId packagingpom/packaging version1.0/version dependencyManagement dependencies dependency groupIdjavax.transaction/groupId artifactIdjta/artifactId version1.0.1B/version /dependency dependencies dependencyManagement dependency-1.0.pom just includes dependencies, which are declared in managment-1.0.pom. And the POM extends managment-1.0.pom. parent groupIdcn.net.ce.sod.operation.super/groupId artifactIdsuper-management/artifactId version1.0/version /parent modelVersion4.0.0/modelVersion groupIdmygroup/groupId artifactIddependency/artifactId packagingpom/packaging version1.0/version dependencies dependency groupIdjavax.transaction/groupId artifactIdjta/artifactId /dependency dependencies myapp pom.xml parent groupIdmygroup/groupId artifactIddependency/artifactId version1.0/version /parent modelVersion4.0.0/modelVersion groupIdmygroup/groupId artifactIdmyapp/artifactId packagingwar/packaging namemyapp/name a cup of Java, cheers! Sha Jiang dawn.angelito wrote: Hi Sha Jiang, Did you declare this dependency in your pom? If so, please show us a snippet of your pom.xml. Thanks, Dawn jiangshachina wrote: Hi guys, I have a Web application project. I added javax.transaction:jta:jta-1.0.1B.jar to dependency, but in fact my project doesn't need the jar. Namely, I don't need it on compile-time, test-time or runtime. I run mvn package, and the build was sucessful. I checked WEB-INF/lib directory, but don't find jta-1.0.1B.jar. I always think that Maven would add any jar file in dependencies. But the case means that I'm wrong. I don't believe one case, please show me clearly. Maven can identify any useless jar and doesn't add it to war file? a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Don%27t-add-dependency--tf2677027s177.html#a7483860 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Trouble with aggregate javadoc
running the javadoc plugin with aggregate set to true fails with unresolved dependency errors. I note that the unresolved dependencies stem from a portion of the source tree to be compiled and run with the 1.4 JRE. Could that affect javadoc and how can I fix it? Here are the types of messages I see: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] An error has occurred in JavaDocs report generation. Embedded error: Exit code: 1 - /local/home/cg/a/main/src/java/common/src/main/java/com/sensage/util/EmailUtil.java:4: package javax.mail.internet does not exist import javax.mail.internet.InternetAddress; The project builds, of course, and the dependency is declared... -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven cyclic dependecy issue
Hi, Im a bit frustrated on how Maven cycles through its dependency. Currently I have a project consisting of multiple sub projects2 levels deep. Heres a hierarchy: --main -- sub1 -- sub1sub1 -- sub1sub2 -- sub2 The main project has a POM looking like this: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.project.main/groupId artifactIdmain/artifactId version1.0-SNAPSHOT/version nameMain Project/name urlhttp://maven.apache.org/url packagingpom/packaging properties main.version1.0-SNAPSHOT/main.version /properties modules modulesub1/module modulesub2/module /modules ... /project Now say my sub2 project looks like this: project parent artifactIdmain/artifactId groupIdcom.project.main/groupId version1.0-SNAPSHOT/version /parent modelVersion4.0.0/modelVersion groupIdcom.project.main.core/groupId artifactIdmain-core-api/artifactId nameMain Core API/name version${main.version}/version packagingjar/packaging /project Sub project 1 and its repective subprojects are similar. Now, from my root project (main), I run any mvn command, I get the following error: ### [INFO] Error building POM (may not be this project's POM). Project ID: com.project.main.sub1.sub2:main-sub1-sub2:jar:${main.version} Reason: Cannot find parent: com.project.main.sub1:main-sub1 for project: com.project.main.sub1.sub2:main-sub1-sub2:jar:${main.version} So I go to my sub2 project and run any mvn command, I get the same error. Looks like its not able to figure out the runtime value of {main.version}. Hence I can not continue with any build process. Any help would be appreciated. Thanks in advance. -los _ Fixing up the home? Live Search can help http://imagine-windowslive.com/search/kits/default.aspx?kit=improvelocale=en-USsource=hmemailtaglinenov06FORM=WLMTAG - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Generate Script or Batch file
Hi, I am evaluating maven2 to replace our mixture of a custom build tool and ant files. Therefore I have a couple of questions which I could answer by reading manuals and mailing lists posts. We have used a few scripts and batch files (for Windows) to call certain main classes in our project. Inside the script the classpath has been created by refering to all component and all external jar files. With Maven, all jar files have version numbers, so I cannot use a static script. I know that I could install the jar files in a certain location and cut of the version information in the filenames, but maybe there is another possibility? How do you guys do or would something like that? Regards Mirko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What's the easiest way to deploy an existing project to a different server?
THATS IT?? good news. Thanks again, Tom. Forgive my novice question. Josh On 11/18/06, Tom Huybrechts [EMAIL PROTECTED] wrote: Use an alternate deployment repository: mvn deploy -DaltDeploymentRepository=myrepo::default::myurl See http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html On 11/17/06, Josh Long [EMAIL PROTECTED] wrote: I wuld like to deploy an open source project that publishes dependencies and has source code available to my repository. The project uses maven 2, and I use maven 2. When I invoke maven deploy, maven gleefully attempts to deploy it to the projects repository and then fails (naturally) as it can't authenticate. I don't want to have to (as I tend to svn update their code frequently) modify their pom to configure a second repository/server. what's the best way to introduce a seperate server into the deployment process without really touching their code? Thanks, Josh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven cyclic dependecy issue
Eric Redmond wrote: I see what you are trying to do... but why? If you do not define a child project's version, it automatically inherits from its parent. Just take version${main.version}/version out. The trouble is that you need a -reference- to the parent's version in the children, and that reference does not seem to resolve any ${...} substitutions, so it needs to be hard coded. In other words, you get to query/replace all of your project's pom.xml files whenever you bump the version number. -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
generating site from parent
How come generating the site from the parent project does not result in a collection of all the sites of all the sub-projects? Is there no aggregate site, or what is the magic XML for that? TIA -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re : Re : Re : Re : Generate source code with a JavaCC parser.
It's ok, I think I got it thanks to plugin dependency. Just have to fix the problem with aggregated Javadoc... FYI, the interesting part of my pom : build plugins plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-sources/phase configuration tasks !-- Do nothing as we only want to create a new source folder. -- /tasks sourceRoot ${project.build.directory}/generated-sources/main/java /sourceRoot /configuration goals goalrun/goal /goals /execution /executions /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdexec-maven-plugin/artifactId executions execution phasegenerate-sources/phase goals goaljava/goal /goals /execution /executions configuration mainClassWebTestCaseGenerator/mainClass arguments argument${basedir}/src/main/java/argument!--Input-- argument${project.build.directory}/generated-sources/main/java/argument!--Output-- /arguments includePluginDependenciestrue/includePluginDependencies includeProjectDependenciesfalse/includeProjectDependencies /configuration dependencies dependency groupIdnet.sourceforge.jwebunit/groupId artifactIdjwebunit-webtestcase-generator/artifactId version1.4-SNAPSHOT/version /dependency /dependencies /plugin /plugins /build - Message d'origine De : Julien HENRY [EMAIL PROTECTED] À : Maven Users List users@maven.apache.org Envoyé le : Mardi, 21 Novembre 2006, 13h38mn 40s Objet : Re : Re : Re : Generate source code with a JavaCC parser. Hi Chris, I have another issues with this configuration (Exec plugin + Empty Ant Task)). First, Javadoc is not generated for the generated class. It is when I call mvn javadoc:javadoc, but not with mvn site. Perhaps because I'm using aggregate=true. Second issue is I add the module containing the JavaCC parser as a dependency in order to the exec plugin to find it. But this module is not required at runtime, and I don't want it in the Eclipse classpath or in the bundle. Can I configure the parser module as a plugin dependency and not as a project dependency? Thanks. Julien - Message d'origine De : Chris Hilton [EMAIL PROTECTED] À : Maven Users List users@maven.apache.org Envoyé le : Vendredi, 17 Novembre 2006, 17h13mn 45s Objet : RE: Re : Re : Generate source code with a JavaCC parser. It might be worthwhile to use the Antrun plugin for the short term with a java task and the sourceRoot config element so that you don't have to mix your generated source code with the regular source (bad CM). Or even using the exec plugin and an empty task Antrun plugin with the new sourceRoot might work. You might also consider adding a feature request to JIRA for the exec plugin to include a way to add a source directory. Chris -Original Message- From: Julien HENRY [mailto:[EMAIL PROTECTED] Sent: Friday, 17 November, 2006 07:08 To: Maven Users List Subject: Re : Re : Generate source code with a JavaCC parser. Finally, it works with another module. I just have to use the javacc plugin in the generate-sources phase of this new module. In the module where I want to generate source, I use the exec plugin to run the Parser. The only problem is I have to generate the new source file in src/main/java because I have no way to specify a second source directory in the pom (for example target/generated-sources). Thanks ! - Message d'origine De : Julien HENRY [EMAIL PROTECTED] À : Maven Users List users@maven.apache.org Envoyé le : Vendredi, 17 Novembre 2006, 9h48mn 58s Objet : Re : Generate source code with a JavaCC parser. Thanks for the reply. I'm currently have a multi-module layout. Could it be possible to put the parser in a new module? The problem I see is the Parser.jar should be installed in the local repository before the generate-sources phase of the module that need it to generate the .java file. Actually, I'm looking for a way to build the
RE: Getting changelog-plugin to Generate 'change.xml' File
-Original Message- From: Emmanuel Hugonnet [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 21, 2006 3:50 AM To: Maven Users List Subject: Re: Getting changelog-plugin to Generate 'change.xml' File Brad Harper a écrit : Hello: Has there been any attempt to link the change-log plugin with the changes-plugin via the 'changes.xml' document format. We're considering adding some sort of mark-up to the SCM commit log messages to identify issue ids and differentiate between additions, fixes, etc. [The goal is to yank info into a format from which release notes could be prepared.] Mark-up along these lines would theoretically let a change-log plugin *aware of the log message tags* generate a 'changes.xml'. Getting the change logs in a neutral xml format would still let us programmatically generate the draft for user release notes, or produce the html output as done currently by the changes-plugin. Or have I missing something? Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] I was thinking about doing this, but i have issues with the scm-plugin so I don't use it :( . I am currently using Subversion and I thought about using : - svn list repository/tags to get the list of tags - svn log --verbose --xml repository/tags to get the entries by tags - svn log --verbose --xml --stop-on-copy repository/trunk to get the latest corrections The --verbose and --xml options give us much more information than what is displayed with changelog as you have the operation: Modify, Added or Removed. Currently I have produced a xml file with the logentries grouped by version and with a tag name per release. With some clever XSLT manipulation I should be able to produce a changes.xml Emmanuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] That's good information. Thanks. Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven release plugin question
yes, your artifact version must be SNAPSHOT, however your dependencies can not be SNAPSHOT. -D On 11/20/06, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED] wrote: Is it required to have SNAPSHOT in the version number of the Maven project in order to use the Maven release plugin with it? For example, if I have a version like 2.0.0 and I would like to create a tag called 2.0.0.0, it looks like I am not able to do this using the plugin. Is this correct? This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
Re: Compiler Plugin Extension
You can always add dependencies directly to the plugin node, but this assumes that you have the artifacts available in your repo. You're going to need to provide more information about these external jars, I think, for us to help you much. Wayne On 11/21/06, Markus Wolf [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Group, is there a way for a custom plugin to add some internal dependencies to the compiler classpath which are not available as maven plugins? In other words is there an API to dynamically add external jars to the compiler classpath? Thanks for any hint Markus Wolf - -- __ Markus Wolf Wedeler Landstrasse 63 22559 Hamburg tel: (+49) 40 / 550 083 70 mob: (+49) 177 / 288 48 67 web: http://www.matrixweb.de icq: #109622365 pgp: http://wwwkeys.de.pgp.net __ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFY2PwYuGbqyQxpHcRAtraAJ9J0G4rqpkcL2RRu31LjDC7GIhNNQCfbEb8 UsILepXMPDOdFcPkTL7WRRc= =AsER -END PGP SIGNATURE- - 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: Loading a POM from the Respository
Terrific - I think I finally have all my puzzle pieces lined up now. Thanks again, - Ole --- Tom Huybrechts [EMAIL PROTECTED] wrote: Read 'specifying a new packaging' in the 'Introduction to the lifecycle' http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html Don't forget to set extensionstrueextensions on the plugin defining your new lifecycle. Tom On 11/21/06, Ole Ersoy [EMAIL PROTECTED] wrote: Wow, Tom - It certainly looks like you hit the nail right on the head there. Terrific. Would you by chance happen to know how I go about configuring the project lifecycle to support a a different artifact type as well? I'm writing a mojo for the JPackage project, and creating a corresponding archetype so that JPackagers can generate RPMS quickly from Maven projects, and I'd like to have the packaging element set to jpackage. However if I do this I get an exception like this one: [INFO] Cannot find lifecycle mapping for packaging: 'jpackage'. Component descriptor cannot be found in the component repository: org.apache.maven.lifecycle.mapping.LifecycleMappingjpackage. Brilliant work on the cookbook. Thanks again! - Ole --- Tom Huybrechts [EMAIL PROTECTED] wrote: If you want to do this in a mojo, look at 'resolving an artifact' in the Mojo Developer Cookbook: http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook Use an artifact of type 'pom'. On 11/21/06, Ole Ersoy [EMAIL PROTECTED] wrote: Hi, I need to to create a path string representing a location of a pom in the local maven repository on Linux. What is the best way of going about this? One thought I had was to just get the USER environment variable and construct the repository path manually, but that assumes that the repository is located under /home/$user/.m2/repository And ideally Maven would be able to inject a parameter telling the plugin where the plugin what the path to the local repository base directory is. ideas? Thanks, - Ole Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.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] Sponsored Link Online degrees - find the right program to advance your career. www.nextag.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] Sponsored Link Rates near 39yr lows. $510,000 Loan for $1698/mo. Calcuate new payment. www.LowerMyBills.com/lre - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using the assembly plugin to build a stand-alone application
On 11/21/06, Larry Meadors [EMAIL PROTECTED] wrote: Hi, I am using maven for the first time, so I apologize if this is a retarded question, but I can't find it anywhere in the docs. I have an app that is a command line app. I want to create an assembly that has my jar, along with the other jars that are listed as dependencies on it. See * http://www.nabble.com/forum/ViewPost.jtp?post=5936062framed=yskin=177 * http://www.nabble.com/forum/ViewPost.jtp?post=5954911framed=yskin=177 for an example of how to do this. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven help plugin
Is there a way to get the help plugin to cough up the goals that a plugin supports? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Classpath
On 11/21/06, Deluigi Marcus [EMAIL PROTECTED] wrote: We ported an existing project from ant to maven and it seems as if the classpath of one module is different to the classpath to the parent modules which causes the junit tests to fail in the parent modules. Since the junit tests fail, it is not possible to proceed to the install phase. I was hoping to be able to print the java class path for the compile phase and the test phase separately. Your classpath is defined in the pom in the dependencies section. Read up on the Dependency Mechanism here: http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html Remember the classpath is transitive so that if you depend upon A and A depends upon B, you end up with B in the classpath too. Also remember that modules are an organisational structure only, they do not provide ANY dependency inclusion. I suspect that you are missing a dependency declaration in your pom, which is why your unit tests fail. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
starting, then deploying to JBoss?
I am wanting to start JBoss the deploy my ear and I can't seem to get a connection: plugin groupIdorg.codehaus.mojo/groupId artifactIdjboss-maven-plugin/artifactId version1.0/version executions execution phasepackage/phase goals goalstart/goal goalundeploy/goal goaldeploy/goal !--goalstop/goal-- /goals configuration jbossHome${jbossPath}/jbossHome port9090/port /configuration /execution /executions /plugin -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson
Re: Don't add dependency?
Hi Check out this, it should be the reason jta isn't added you have to install it manually! http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html Greetings, 2006/11/21, jiangshachina [EMAIL PROTECTED]: Hi guys, I have a Web application project. I added javax.transaction:jta:jta-1.0.1B.jar to dependency, but in fact my project doesn't need the jar. Namely, I don't need it on compile-time, test-time or runtime. I run mvn package, and the build was sucessful. I checked WEB-INF/lib directory, but don't find jta-1.0.1B.jar. I always think that Maven would add any jar file in dependencies. But the case means that I'm wrong. I don't believe one case, please show me clearly. Maven can identify any useless jar and doesn't add it to war file? a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Don%27t-add-dependency--tf2677027s177.html#a7466108 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === Utan tvivel är man inte riktigt klok. (Tage Danielsson)
Creating a web project from a custom archetype
Hi all, I've recently created an archetype for web projects and it seemed to install correctly (due mainly to the help of this user group!). Now I would like to test it by trying to create a project from it. I am trying to use the command below to do this: C:\New Foldermvn archetype:create -DarchetypeVersion=1.0-SNAPSHOT -DarchetypeArtifactId=template-archetype -DarchetypeGroupId=aib.dos -DartifactId=newproject -DgroupId=aib.dos -Dpackaging=war The .war file is held at Z:\aib\dos\template-archetype\1.0-SNAPSHOT and is called template-archetype-1.0-SNAPSHOT.war (The z: drive being my local repository). However, the dos prompt keeps throwing an error, saying it cannot download the artifact and by the looks of things, it seems to be searching for a .jar file instead! Has anyone had this problem before? Thanks in advance for any help! Anthony Ryan
[m2] problem getting latest plugin version to local maven repository
We've got an inhouse mirror of the central repository (MyCompanyCentral). We also publish a company-specific maven-plugin to that same repository. We face the problem that the latest version of our plugin is not downloaded to the local maven repository, if there is already an old version, even not after several days. We also tried with updatePolicyinterval:30/updatePolicy and updatePolicyalways/updatePolicy but no success. It only worked when we deleted the old local versions, or when we run maven with the -U parameter. Should this basically work? Any idea what we might do wrong? We use this settings.xml: settings localRepositoryD:/mavenrepo/localRepository mirrors mirror idMyCompanyCentral/id nameMyCompany Central Repository/name urlhttp://build.mycompany.com/m2/repository/url mirrorOfcentral/mirrorOf /mirror /mirrors profiles profile idMyCompanyDefaultProfile/id repositories repository idMyCompanyCentral/id nameMyCompany Central Repository/name urlhttp://build.mycompany.com/m2/repository/url layoutdefault/layout /repository repository idMyCompanySnapshot/id nameMyCompany Snapshot Repository/name urlhttp://build.mycompany.com/snapshot/url /repository /repositories /profile /profiles activeProfiles activeProfileMyCompanyDefaultProfile/activeProfile /activeProfiles /settings Thanks, Tom __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: release:prepare without user intervention
Hi Dan, Thanks a lot for the info. - Sponsored Link Mortgage rates near 39yr lows. $310,000 Mortgage for $999/mo - Calculate new house payment
RE: was5-plugin for Maven2: documentation?
Hi If you get the source from subversion, and then run mvn site on it, you will get the documentation for it. This includes examples of how to use it. Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Marco Ponzi Sent: Tuesday, November 21, 2006 2:26 PM To: Opstvedt, Hermod Subject: was5-plugin for Maven2: documentation? Dear Hermod, I have found your address in http://repo1.maven.org/maven2/maven-plugins/maven-was5-plugin/2.0.2/maven-was5-plugin-2.0.2.pom I am considering using the plugin you developed in order to manage a set of complex WS5 applications with Maven2. In particular, I am interested in the creation of a WS5 EAR, with generation of stubs etc. for EJB classes. Do you know of any Maven2 documentation that might help me getting started? Is there some Maven1 documentation that you think might help? I have a good knowledge of Maven2, but I have no particular experience with WebSphere. Thank you in advance. Best regards Marco Ponzi -- Marco Ponzi - Sinapsi SpA V.le Bligny, 27 20136 Milan Italy +39 02.582095.25 mailto:[EMAIL PROTECTED] FAX 02.582095.21 http://www.sinapsi.com/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Update Documentation on Integration Test Resources
Hi guys, I would just like to inform you guys that your documentation does not talk about the directory src/it/resources being the test resources for integration tests. Can this be updated please? Tony -- View this message in context: http://www.nabble.com/Update-Documentation-on-Integration-Test-Resources-tf2677018s177.html#a7466082 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Classpath
Try something like this in your POM (or external profiles.xml file... which would probably be better) build plugins plugin artifactIdmaven-antrun-plugin/artifactId executions execution goalsgoalrun/goal/goals phasecompilephase /execution execution goalsgoalrun/goal/goals phasetestphase /execution /executions configuration tasksechojava.class.path=${java.class.path} /echoechoCLASSPATH=${env.CLASSPATH}/echo/tasks /configuration ... Eric On 11/20/06, Deluigi Marcus [EMAIL PROTECTED] wrote: We ported an existing project from ant to maven and it seems as if the classpath of one module is different to the classpath to the parent modules which causes the junit tests to fail in the parent modules. Since the junit tests fail, it is not possible to proceed to the install phase. I was hoping to be able to print the java class path for the compile phase and the test phase separately. Greetings, Marcus -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Montag, 20. November 2006 15:03 To: Maven Users List Subject: Re: Classpath On 11/20/06, Deluigi Marcus [EMAIL PROTECTED] wrote: It seems like a stupid question, but how do I let maven print the actual class path within a specific module? I did not find any information about this anywhere. If you add -X to the command line: mvn install -X it will print out more than you ever wanted to know, including a tree view of the dependencies, and, underneath, [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-compiler-plugin:2.0.1:compile' -- one of the items is classpathElements. HTH, -- Wendy - 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] -- Eric Redmond http://codehaus.org/~eredmond
Re: generating site from parent
This is discussed a couple times every week. Please search this list for parent site or just check out this recent thread: from Morgovsky, Alexander (US - Glen Mills) to users@maven.apache.org date Nov 9, 2006 4:03 PM subject Aggregate site generation Wayne On 11/21/06, Christian Goetze [EMAIL PROTECTED] wrote: How come generating the site from the parent project does not result in a collection of all the sites of all the sub-projects? Is there no aggregate site, or what is the magic XML for that? TIA -- cg - 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: Error when generating Dependencies report (SNAPSHOT)
Hi I have looked into this, and it seems that somebody has deleted (or it was never there) the org.apache.maven.shared.jar.Jar.java class from subversion, meaning that the maven-shared.jar file does not have this class. Hence the error. Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 21, 2006 12:40 PM To: users@maven.apache.org Subject: RE: Error when generating Dependencies report (SNAPSHOT) Hi Somebody has made a dependency to the maven sandbox componenet maven-shared in the maven-project-info-reports-plugin. Set the maven-project-info-reports-plugin version to 2.0.1 to circumvate it. Hermod -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 21, 2006 12:29 PM To: Maven Users List Subject: Re: Error when generating Dependencies report (SNAPSHOT) On 11/21/06, Julien HENRY [EMAIL PROTECTED] wrote: This morning, I try to generate my project site and it failed. Yesterday it works... Any idea? [ERROR] FATAL ERROR [INFO] [INFO] org/apache/maven/shared/jar/Jar [INFO] [INFO] Trace java.lang.NoClassDefFoundError: org/apache/maven/shared/jar/Jar No ideas yet, but you're the second person to report something like this. Unfortunately, I can't reproduce it, but that's probably because I'm running snapshots of nearly everything. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Don't add dependency?
Hi guys, I have a Web application project. I added javax.transaction:jta:jta-1.0.1B.jar to dependency, but in fact my project doesn't need the jar. Namely, I don't need it on compile-time, test-time or runtime. I run mvn package, and the build was sucessful. I checked WEB-INF/lib directory, but don't find jta-1.0.1B.jar. I always think that Maven would add any jar file in dependencies. But the case means that I'm wrong. I don't believe one case, please show me clearly. Maven can identify any useless jar and doesn't add it to war file? a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Don%27t-add-dependency--tf2677027s177.html#a7466108 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Forced builds
Is it possible to have Continuum force build every n hours even if the code in the source code repository hasn't changed? This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
Apply license to all java files?
Hi, does anybody know of a Maven plugin (or some other tool) that makes sure the approperiate header for a certain license is present in every java file? I could ofcourse manually add the notice to every file, but this seems like such a common thing that somebody must have made something already. regards, Wim
Maven repositories: metadata vs pom files?
Hello, Does Maven2 need a pom file in repository to download a jar from there? After examining the repositories' contents it seems that some jars are provided with both pom and metadata files while others only contain metadata files. Specifically, if I have this dependency in my project: dependency groupIdcom.sun.xml.bind/groupId artifactIdjaxb-libs/artifactId version1.0.6/version /dependency mvn compile generates the following message: Downloading: http://repo1.maven.org/maven2/com/sun/xml/bind/jaxb-libs/1.0.6/jaxb-libs-1.0.6.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) When I visit the url I can see the jar and metadata files but no pom. Why is that? Do I need to manually install such a jar in my local repository in order to use it? Thanks, Victor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] problem getting latest plugin version to local maven repository
Just as an idea, try going to the user account that you build under's .m2 directory (${user.dir}/.m2) and delete the plugin-registry.xml file, and re-run. It might be causing you some problems. Eric On 11/20/06, Thomas Will [EMAIL PROTECTED] wrote: We've got an inhouse mirror of the central repository (MyCompanyCentral). We also publish a company-specific maven-plugin to that same repository. We face the problem that the latest version of our plugin is not downloaded to the local maven repository, if there is already an old version, even not after several days. We also tried with updatePolicyinterval:30/updatePolicy and updatePolicyalways/updatePolicy but no success. It only worked when we deleted the old local versions, or when we run maven with the -U parameter. Should this basically work? Any idea what we might do wrong? We use this settings.xml: settings localRepositoryD:/mavenrepo/localRepository mirrors mirror idMyCompanyCentral/id nameMyCompany Central Repository/name urlhttp://build.mycompany.com/m2/repository/url mirrorOfcentral/mirrorOf /mirror /mirrors profiles profile idMyCompanyDefaultProfile/id repositories repository idMyCompanyCentral/id nameMyCompany Central Repository/name urlhttp://build.mycompany.com/m2/repository/url layoutdefault/layout /repository repository idMyCompanySnapshot/id nameMyCompany Snapshot Repository/name urlhttp://build.mycompany.com/snapshot/url /repository /repositories /profile /profiles activeProfiles activeProfileMyCompanyDefaultProfile/activeProfile /activeProfiles /settings Thanks, Tom __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eric Redmond http://codehaus.org/~eredmond
Re: Don't add dependency?
Hi Dawn, Thanks for your reply. I have three POM files, and all of them are very simply. I show the snippets of them. managment-1.0.pom just includes dependency management. modelVersion4.0.0/modelVersion groupIdmygroup/groupId artifactIdmanagement/artifactId packagingpom/packaging version1.0/version dependencyManagement dependencies dependency groupIdjavax.transaction/groupId artifactIdjta/artifactId version1.0.1B/version /dependency dependencies dependencyManagement dependency-1.0.pom just includes dependencies, which are declared in managment-1.0.pom. And the POM extends managment-1.0.pom. parent groupIdcn.net.ce.sod.operation.super/groupId artifactIdsuper-management/artifactId version1.0/version /parent modelVersion4.0.0/modelVersion groupIdmygroup/groupId artifactIddependency/artifactId packagingpom/packaging version1.0/version dependencies dependency groupIdjavax.transaction/groupId artifactIdjta/artifactId /dependency dependencies myapp pom.xml parent groupIdmygroup/groupId artifactIddependency/artifactId version1.0/version /parent modelVersion4.0.0/modelVersion groupIdmygroup/groupId artifactIdmyapp/artifactId packagingwar/packaging namemyapp/name a cup of Java, cheers! Sha Jiang dawn.angelito wrote: Hi Sha Jiang, Did you declare this dependency in your pom? If so, please show us a snippet of your pom.xml. Thanks, Dawn jiangshachina wrote: Hi guys, I have a Web application project. I added javax.transaction:jta:jta-1.0.1B.jar to dependency, but in fact my project doesn't need the jar. Namely, I don't need it on compile-time, test-time or runtime. I run mvn package, and the build was sucessful. I checked WEB-INF/lib directory, but don't find jta-1.0.1B.jar. I always think that Maven would add any jar file in dependencies. But the case means that I'm wrong. I don't believe one case, please show me clearly. Maven can identify any useless jar and doesn't add it to war file? a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Don%27t-add-dependency--tf2677027s177.html#a7469448 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apply license to all java files?
Jalopy will do this. It allows searching each Java file for a header using some query string you define. If not there, it adds a header of your choosing to the file. It will also do the same thing with a trailer, at the end of the file. Jalopy will also reformat the files, indenting and such. It will reorder the fields and methods if you choose. There are a lot of fancy reformattings it will do. There is a part that will check for problems in the code. I haven't used this. (I use Checkstyle for this.) I do it inside Eclipse since I have the Jalopy eclipse-plugin installed. You just pick the parent folder and choose to reformat with Jalopy. It will do all the java files below that in the varioius subdirectories. I'm aware of a way to do it from ant so you could do it inside the antrun maven plugin. There may be other ways. -- Thanks On 11/21/06, emerson cargnin [EMAIL PROTECTED] wrote: I just got it to work using a licence plugin for intelliJ emerson On 21/11/06, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, does anybody know of a Maven plugin (or some other tool) that makes sure the approperiate header for a certain license is present in every java file? I could ofcourse manually add the notice to every file, but this seems like such a common thing that somebody must have made something already. regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Lee Meador Sent from gmail. My real email address is lee AT leemeador.com
Re: Using the assembly plugin to build a stand-alone application
Hi Larry, I'm doing this, too. I think you'll need to create your own assembly descriptor. Here is mine: assembly idbin/id formats formattar.gz/format formatzip/format /formats fileSets fileSet directorytarget/directory outputDirectory/outputDirectory includes include*.jar/include !-- the jar of this project's classes -- /includes /fileSet fileSet directorytarget/scripts/directory outputDirectory/outputDirectory includes include*/include !-- clui scripts to launch the main java class -- /includes fileMode755/fileMode /fileSet fileSet directorytarget/doc/directory outputDirectory/outputDirectory includes include*/include /includes /fileSet /fileSets files file sourceREADME/source outputDirectory//outputDirectory fileMode644/fileMode !-- broken. see http://jira.codehaus.org/browse/MASSEMBLY-153 -- /file /files dependencySets dependencySet /dependencySet /dependencySets /assembly Paul Larry Meadors-2 wrote: Hi, I am using maven for the first time, so I apologize if this is a retarded question, but I can't find it anywhere in the docs. I have an app that is a command line app. I want to create an assembly that has my jar, along with the other jars that are listed as dependencies on it. I tried the jar-with-dependencies approach, and that *almost* works, but one of the jars i am including has some added files in the META-INF directory, and they do not end up getting included, so the app fails. Bummer. :( So, I guess i am looking for one of two things: 1) how can I get *all* the files in the uber jar. -or- 2) how can I get the assembly to just put all the individual dependent jars in a directory somewhere? I think I'd prefer #2, but at this point... I'll take what I can get! :-) TIA, Larry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Using-the-assembly-plugin-to-build-a-stand-alone-application-tf2670816s177.html#a7448665 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven cyclic dependecy issue
I see what you are trying to do... but why? If you do not define a child project's version, it automatically inherits from its parent. Just take version${main.version}/version out. On 11/21/06, Los Morales [EMAIL PROTECTED] wrote: Hi, I'm a bit frustrated on how Maven cycles through its dependency. Currently I have a project consisting of multiple sub projects—2 levels deep. Here's a hierarchy: --main -- sub1 -- sub1sub1 -- sub1sub2 -- sub2 The main project has a POM looking like this: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.project.main/groupId artifactIdmain/artifactId version1.0-SNAPSHOT/version nameMain Project/name urlhttp://maven.apache.org/url packagingpom/packaging properties main.version1.0-SNAPSHOT/main.version /properties modules modulesub1/module modulesub2/module /modules ... /project Now say my sub2 project looks like this: project parent artifactIdmain/artifactId groupIdcom.project.main/groupId version1.0-SNAPSHOT/version /parent modelVersion4.0.0/modelVersion groupIdcom.project.main.core/groupId artifactIdmain-core-api/artifactId nameMain Core API/name version${main.version}/version packagingjar/packaging /project Sub project 1 and its repective subprojects are similar. Now, from my root project (main), I run any mvn command, I get the following error: ### [INFO] Error building POM (may not be this project's POM). Project ID: com.project.main.sub1.sub2:main-sub1-sub2:jar:${main.version} Reason: Cannot find parent: com.project.main.sub1:main-sub1 for project: com.project.main.sub1.sub2:main-sub1-sub2:jar:${main.version} So I go to my sub2 project and run any mvn command, I get the same error. Looks like its not able to figure out the runtime value of {main.version}. Hence I can not continue with any build process. Any help would be appreciated. Thanks in advance. -los _ Fixing up the home? Live Search can help http://imagine-windowslive.com/search/kits/default.aspx?kit=improvelocale=en-USsource=hmemailtaglinenov06FORM=WLMTAG - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eric Redmond http://codehaus.org/~eredmond
Re: Don't add dependency?
Hi, I'm sorry that I didin't represent myself clearly. I have installed jta by manual, and jta-1.0.1B.jar is in my local repository now. If the jar file isn't existent, my build would be failed. a cup of Java, cheers! Sha Jiang Bengt-Erik Fröberg-2 wrote: Hi Check out this, it should be the reason jta isn't added you have to install it manually! http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html Greetings, 2006/11/21, jiangshachina [EMAIL PROTECTED]: Hi guys, I have a Web application project. I added javax.transaction:jta:jta-1.0.1B.jar to dependency, but in fact my project doesn't need the jar. Namely, I don't need it on compile-time, test-time or runtime. I run mvn package, and the build was sucessful. I checked WEB-INF/lib directory, but don't find jta-1.0.1B.jar. I always think that Maven would add any jar file in dependencies. But the case means that I'm wrong. I don't believe one case, please show me clearly. Maven can identify any useless jar and doesn't add it to war file? a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Don%27t-add-dependency--tf2677027s177.html#a7466108 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === Utan tvivel är man inte riktigt klok. (Tage Danielsson) -- View this message in context: http://www.nabble.com/Don%27t-add-dependency--tf2677027s177.html#a7467651 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Loading a POM from the Respository
Wow, Tom - It certainly looks like you hit the nail right on the head there. Terrific. Would you by chance happen to know how I go about configuring the project lifecycle to support a a different artifact type as well? I'm writing a mojo for the JPackage project, and creating a corresponding archetype so that JPackagers can generate RPMS quickly from Maven projects, and I'd like to have the packaging element set to jpackage. However if I do this I get an exception like this one: [INFO] Cannot find lifecycle mapping for packaging: 'jpackage'. Component descriptor cannot be found in the component repository: org.apache.maven.lifecycle.mapping.LifecycleMappingjpackage. Brilliant work on the cookbook. Thanks again! - Ole --- Tom Huybrechts [EMAIL PROTECTED] wrote: If you want to do this in a mojo, look at 'resolving an artifact' in the Mojo Developer Cookbook: http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook Use an artifact of type 'pom'. On 11/21/06, Ole Ersoy [EMAIL PROTECTED] wrote: Hi, I need to to create a path string representing a location of a pom in the local maven repository on Linux. What is the best way of going about this? One thought I had was to just get the USER environment variable and construct the repository path manually, but that assumes that the repository is located under /home/$user/.m2/repository And ideally Maven would be able to inject a parameter telling the plugin where the plugin what the path to the local repository base directory is. ideas? Thanks, - Ole Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.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] Sponsored Link Online degrees - find the right program to advance your career. www.nextag.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apply license to all java files?
Thank you for the pointer to the intellij plugin. It is what I needed! regards, Wim 2006/11/21, Wayne Fay [EMAIL PROTECTED]: This was recently under discussion on the Maven Dev list -- the subject is Plugin license injection. A plugin might be in the works (unsure) but they also suggested the IntelliJ copyright plugin. Wayne On 11/21/06, emerson cargnin [EMAIL PROTECTED] wrote: I just got it to work using a licence plugin for intelliJ emerson On 21/11/06, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, does anybody know of a Maven plugin (or some other tool) that makes sure the approperiate header for a certain license is present in every java file? I could ofcourse manually add the notice to every file, but this seems like such a common thing that somebody must have made something already. regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven cyclic dependecy issue
Thanks for the reply. Well... My most (if not all) of my subprojects will be on the same version. Since I currently have about a dozen sub projects (and there will be more), I hate to go into each sub project and change the version number in the POM. I would rather change it in one place and have it reflected across all sub projects. That's what I thought inheritance of POM's provided. If these sub poms can't inherit the attribute of the super pom's version number, what kind of inheritance is this? Is there another way of doing what I described that works? -los From: Eric Redmond [EMAIL PROTECTED] Reply-To: Maven Users List users@maven.apache.org To: Maven Users List users@maven.apache.org Subject: Re: Maven cyclic dependecy issue Date: Tue, 21 Nov 2006 11:19:02 -0500 I see what you are trying to do... but why? If you do not define a child project's version, it automatically inherits from its parent. Just take version${main.version}/version out. On 11/21/06, Los Morales [EMAIL PROTECTED] wrote: Hi, I'm a bit frustrated on how Maven cycles through its dependency. Currently I have a project consisting of multiple sub projects2 levels deep. Here's a hierarchy: --main -- sub1 -- sub1sub1 -- sub1sub2 -- sub2 The main project has a POM looking like this: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.project.main/groupId artifactIdmain/artifactId version1.0-SNAPSHOT/version nameMain Project/name urlhttp://maven.apache.org/url packagingpom/packaging properties main.version1.0-SNAPSHOT/main.version /properties modules modulesub1/module modulesub2/module /modules ... /project Now say my sub2 project looks like this: project parent artifactIdmain/artifactId groupIdcom.project.main/groupId version1.0-SNAPSHOT/version /parent modelVersion4.0.0/modelVersion groupIdcom.project.main.core/groupId artifactIdmain-core-api/artifactId nameMain Core API/name version${main.version}/version packagingjar/packaging /project Sub project 1 and its repective subprojects are similar. Now, from my root project (main), I run any mvn command, I get the following error: ### [INFO] Error building POM (may not be this project's POM). Project ID: com.project.main.sub1.sub2:main-sub1-sub2:jar:${main.version} Reason: Cannot find parent: com.project.main.sub1:main-sub1 for project: com.project.main.sub1.sub2:main-sub1-sub2:jar:${main.version} So I go to my sub2 project and run any mvn command, I get the same error. Looks like its not able to figure out the runtime value of {main.version}. Hence I can not continue with any build process. Any help would be appreciated. Thanks in advance. -los _ Fixing up the home? Live Search can help http://imagine-windowslive.com/search/kits/default.aspx?kit=improvelocale=en-USsource=hmemailtaglinenov06FORM=WLMTAG - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eric Redmond http://codehaus.org/~eredmond _ Get FREE company branded e-mail accounts and business Web site from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Specialized test / deploy preparation (RESOLVED)
nevermind -- using the maven dependency plugin and instructions from http://docs.codehaus.org/display/MAVENUSER/Maven+and+Selenium got me where i needed to go. On 11/20/06, Trevor Torrez [EMAIL PROTECTED] wrote: Hi again; In part of our framework we are using BIRT (Business Intelligence Reporting Tool) from eclipse with a servlet front-end. In order for it to run it needs the OSGI platform set up in a known directory (when deploying to a webapp, it has to be in WEB-INF/platform). The current way we are handling this is by resolving the zip file as a dependency, and prior to packaging for deploy or prior to the tests we unzip it to where the running environment expects to find it. How do I go about doing the same thing in maven? What part of the lifecycle would this be a part of?
RE: mevenide vs. m2eclipse?
Are there instructions for compiling the latest m2eclipse code from trunk and providing a private update site? I've created a maven-embedder with the fix I would like in the plugin, and I don't know how to create the plugin with it in? org.maven.ide.eclipse\notes.txt seems to be missing information, --Duncan -Original Message- From: Stephan Schwab [mailto:[EMAIL PROTECTED] Sent: Sunday, November 19, 2006 6:12 PM To: users@maven.apache.org Subject: Re: mevenide vs. m2eclipse? Martin van den Bemt wrote: The main focus for me is that people who don't want to know about how maven works, can still use the benefit of making maven projects work in their IDE. Currently at our employer everyone ditched m2eclipse since it doesn't work at all for them and switched to commandline, which is not an ideal situation. I faced a similar situation. So I compiled the latest m2eclipse code from trunk and provided a private update site. We're using the unofficial 0.10 release now and it really does work well and does everything we need for now. From what I can read m2eclipse is waiting for something in the maven embedder and then they can move forward. The m2eclipse compiled from trunk can be used with multi module projects and resolves dependencies from the Eclipse workspace. When you delete a dependency from your workspace and want to use the one provided from your build server, then you might have to do an additional clean and build within Eclipse - or sometimes even close and restart Eclipse -, but in general it does work. Stephan --- Blog http://www.stephan-schwab.com -- View this message in context: http://www.nabble.com/mevenide-vs.-m2eclipse--tf2539922s177.html#a743559 2 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Instrument code for integration test with Cobertura and Cargo
Hi, I use Maven 2 with Cargo and Corbertura (for the moment). I want a dashboard on code coverage for my intergration test (my integration test is selenium test). I have bind my integration test to the test phase. My code is plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId version0.3-SNAPSHOT/version executions execution idstart-container/id phaseprocess-test-sources/phase goals goalstart/goal goaldeploy/goal /goals configuration deployer deployables deployable groupIdmyproj/groupId artifactIdmyproj_ear/artifactId typeear/type pingURLhttp://localhost:8080//pingURL pingTimeout54/pingTimeout /deployable /deployables /deployer waitfalse/wait container containerIdjboss4x/containerId homeC:\tools\jboss-4.0.2/home timeout18/timeout /container /configuration /execution execution idstop-container/id phasetest/phase goals goalstop/goal /goals /execution /executions /plugin mvn test works and with mvn site fails When cobertura instruments the code, second execution of the tests because the cargo start fail. Because, the first step of Cobertura doesn't stop it. I suppose Cobertura uses his own life cycle. Have you got an idea to solve my problem? Thanks a lot. Grégory BOISSINOT BP2S PARIS -- View this message in context: http://www.nabble.com/Instrument-code-for-integration-test-with-Cobertura-and-Cargo-tf2679754s177.html#a7474157 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error when generating Dependencies report (SNAPSHOT)
On 11/21/06, Julien HENRY [EMAIL PROTECTED] wrote: This morning, I try to generate my project site and it failed. Yesterday it works... Any idea? [ERROR] FATAL ERROR [INFO] [INFO] org/apache/maven/shared/jar/Jar [INFO] [INFO] Trace java.lang.NoClassDefFoundError: org/apache/maven/shared/jar/Jar No ideas yet, but you're the second person to report something like this. Unfortunately, I can't reproduce it, but that's probably because I'm running snapshots of nearly everything. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forced builds
No changes in code == no reason to build, right? I don't see the usefulness of this enhancement, personally... Unless of course some PHB has laid down a build all projects every 3 hrs kind of mandate in your organization. Wayne On 11/20/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: Not yet, why? Emmanuel Morgovsky, Alexander (US - Glen Mills) a écrit : Is it possible to have Continuum force build every n hours even if the code in the source code repository hasn't changed? This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
RE: Forced builds
Well, for example, if a Maven dependency changes on the Maven repository but the version stays the same, the pom.xml will not change, but we will need to rebuild to get the new dependency into the build. -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Monday, November 20, 2006 2:22 PM To: continuum-users@maven.apache.org Subject: Re: Forced builds Not yet, why? Emmanuel Morgovsky, Alexander (US - Glen Mills) a écrit : Is it possible to have Continuum force build every n hours even if the code in the source code repository hasn't changed? This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
RE: Forced builds
Well, if dependencies change but the pom.xml's do not change, we would need to do a new build, like if a version of some dependency stays the same but the artifact changes at the Maven repository. -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Monday, November 20, 2006 2:31 PM To: continuum-users@maven.apache.org Subject: Re: Forced builds No changes in code == no reason to build, right? I don't see the usefulness of this enhancement, personally... Unless of course some PHB has laid down a build all projects every 3 hrs kind of mandate in your organization. Wayne On 11/20/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: Not yet, why? Emmanuel Morgovsky, Alexander (US - Glen Mills) a écrit : Is it possible to have Continuum force build every n hours even if the code in the source code repository hasn't changed? This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
Re: Pulling jars into local repository
Brian E. Fox [EMAIL PROTECTED]: The copy mojo doesn't care about the scope because it will copy the artifacts listed in the artifactItems element. The scope is used by copy-dependencies to decide which ones from the project need to be copied since it starts from the entire dependency element. If you don't specify a scope, it will include all. It's copy-dependencies that copies the bundles I'm trying to stop it from copying (the conflicting OSGi framework). Is there a place I can put scope on copy-dependencies? Is that the excludeScope setting? I tried putting this in, but it didn't help, either: plugin groupIdorg.codehaus.mojo/groupId artifactIddependency-maven-plugin/artifactId executions execution idcopy-dependencies/id phaseinstall/phase goals goalcopy-dependencies/goal /goals configuration excludeScopeinstall/excludeScope outputDirectory${user.home}/pde_target_platform/plugins/outputDirectory /configuration ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Classpath
I tried that within my java project: System.out.println(System.property(..)) Unfortunately, it's not working. All I see is a global classpath which points to a Maven jar. Maven is using a customized classloader, so it's hard to get the module-specific classpath. When using the '-X' switch, the only difference that I can see is that a dependent project gets the status 'active' when executing the test from a parent project. This prevents the test from finding some resources from the parents. How does it affect the classpath if a module is active? Marcus -Original Message- From: Eric Redmond [mailto:[EMAIL PROTECTED] Sent: Montag, 20. November 2006 16:12 To: Maven Users List Subject: Re: Classpath Try something like this in your POM (or external profiles.xml file... which would probably be better) build plugins plugin artifactIdmaven-antrun-plugin/artifactId executions execution goalsgoalrun/goal/goals phasecompilephase /execution execution goalsgoalrun/goal/goals phasetestphase /execution /executions configuration tasksechojava.class.path=${java.class.path} /echoechoCLASSPATH=${env.CLASSPATH}/echo/tasks /configuration ... Eric On 11/20/06, Deluigi Marcus [EMAIL PROTECTED] wrote: We ported an existing project from ant to maven and it seems as if the classpath of one module is different to the classpath to the parent modules which causes the junit tests to fail in the parent modules. Since the junit tests fail, it is not possible to proceed to the install phase. I was hoping to be able to print the java class path for the compile phase and the test phase separately. Greetings, Marcus -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Montag, 20. November 2006 15:03 To: Maven Users List Subject: Re: Classpath On 11/20/06, Deluigi Marcus [EMAIL PROTECTED] wrote: It seems like a stupid question, but how do I let maven print the actual class path within a specific module? I did not find any information about this anywhere. If you add -X to the command line: mvn install -X it will print out more than you ever wanted to know, including a tree view of the dependencies, and, underneath, [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-compiler-plugin:2.0.1:compile' -- one of the items is classpathElements. HTH, -- Wendy - 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] -- Eric Redmond http://codehaus.org/~eredmond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forced builds
Not yet, why? Emmanuel Morgovsky, Alexander (US - Glen Mills) a écrit : Is it possible to have Continuum force build every n hours even if the code in the source code repository hasn't changed? This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
Getting changelog-plugin to Generate 'change.xml' File
Hello: Has there been any attempt to link the change-log plugin with the changes-plugin via the 'changes.xml' document format. We're considering adding some sort of mark-up to the SCM commit log messages to identify issue ids and differentiate between additions, fixes, etc. [The goal is to yank info into a format from which release notes could be prepared.] Mark-up along these lines would theoretically let a change-log plugin *aware of the log message tags* generate a 'changes.xml'. Getting the change logs in a neutral xml format would still let us programmatically generate the draft for user release notes, or produce the html output as done currently by the changes-plugin. Or have I missing something? Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: starting, then deploying to JBoss?
Two things come to mind: * It looks like you are missing the 'configure' goal for jboss-maven-plugin. * My team has had trouble with the jboss:start and jboss:stop goals on Windows. The Windows users on my team run the following scripts directly to start and stop the jboss instance: target\jboss\bin\run.sh target\jboss\bin\shutdown.sh -Max Mick Knutson wrote: I am wanting to start JBoss the deploy my ear and I can't seem to get a connection: plugin groupIdorg.codehaus.mojo/groupId artifactIdjboss-maven-plugin/artifactId version1.0/version executions execution phasepackage/phase goals goalstart/goal goalundeploy/goal goaldeploy/goal !--goalstop/goal-- /goals configuration jbossHome${jbossPath}/jbossHome port9090/port /configuration /execution /executions /plugin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generate Script or Batch file
Hi Siegfried, Siegfried Goeschl schrieb: You can also get the classpath using ANT and maven-artifact-ant-2.0.4-dep.jar and then run your stuff. Thanks for your answer, I will try that. Regards Mirko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Print customized messages on failure
Hi. Is there any method to let Maven print a customized message if a phase fails? I want to give a list with the most common configuration mistakes which lead to JUnit test failures. Greetings, Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Manage project version with modules
Hi, I use Maven 2 and i have a root pom.xml with modules (ear, war, it) I want to manage only one version per project, i.e the version module must be the version of the project (the version declared in the root pom.xml) I my pom.xml, i have namemyproj-globals/name groupIdmyproj/groupId version1.0-SNAPSHOT/version and modules modulemyproj_war/module modulemyproj_ear/module modulemyproj_it/module /modules dependencyManagement dependencies dependency groupIdmyproj/groupId artifactIdmyproj_war/artifactId version${project.version}/version typewar/type /dependency dependency groupIdmyproj/groupId artifactIdmyproj_ear/artifactId version${project.version}/version typeearr/type /dependency dependency groupIdmyproj/groupId artifactIdmyproj_it/artifactId version${project.version}/version /dependency /dependencies /dependencyManagement and in a module i have : parent groupIdmyproj/groupId artifactIdmyproj-globals/artifactId version1.0-SNAPSHOT/version /parent I want to remove the parent version. I want it take the root pom.xml version automatically. Have you got an idea? Thanks a lot. Grégory BOISSINOT -- View this message in context: http://www.nabble.com/Manage-project-version-with-modules-tf2679170s177.html#a7472379 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven repositories: metadata vs pom files?
On 11/20/06, Wayne Fay [EMAIL PROTECTED] wrote: This isn't a case of repo has pom but no jar, instead its the opposite, jar with no pom. So I don't think its an artifact which cannot be redistributed. ;-) Oops. Not quite paying enough attention there. :) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Internal problem with version number?
Surely you need to ensure the server SSL certificate has the correct name in it. Or, configure the sun SSL library to ignore it. I guess you could google for how to do that. Yes, you're right! Sorry I didn't notice that. However, the URL: https://username:[EMAIL PROTECTED]/... Only gives me a 401, so the authentication using this kind of URL does not seem to be supported. Tried with file protocol as you suggested, and that worked. Thank you for the help. Cheers, David
Re: Using the assembly plugin to build a stand-alone application
Thanks, Paul - I added that as a file named assembly.xml in the directory with my pom.xml in it. I then added this to my pom (in the build/plugins section): === plugin artifactIdmaven-assembly-plugin/artifactId version2.0-beta-1/version configuration descriptorIdbin/descriptorId descriptors descriptor./assembly.xml/descriptor /descriptors finalNamemarcdelivery/finalName outputDirectorytarget/assembly/outputDirectory workDirectorytarget/assembly/work/workDirectory /configuration /plugin === But it still only creates 4 files: - target/marc-delivery-1.0-SNAPSHOT.jar - target/assembly/marcdelivery-bin.tar.gz - target/assembly/marcdelivery-bin.tar.bz2 - target/assembly/marcdelivery-bin.zip If I remove the descriptorIdbin/descriptorId line from the pom, I get only one file (target/marc-delivery-1.0-SNAPSHOT.jar) and an error. :( How do you have this in your project? Larry On 11/20/06, pjungwir [EMAIL PROTECTED] wrote: Hi Larry, I'm doing this, too. I think you'll need to create your own assembly descriptor. Here is mine: assembly idbin/id formats formattar.gz/format formatzip/format /formats fileSets fileSet directorytarget/directory outputDirectory/outputDirectory includes include*.jar/include !-- the jar of this project's classes -- /includes /fileSet fileSet directorytarget/scripts/directory outputDirectory/outputDirectory includes include*/include !-- clui scripts to launch the main java class -- /includes fileMode755/fileMode /fileSet fileSet directorytarget/doc/directory outputDirectory/outputDirectory includes include*/include /includes /fileSet /fileSets files file sourceREADME/source outputDirectory//outputDirectory fileMode644/fileMode !-- broken. see http://jira.codehaus.org/browse/MASSEMBLY-153 -- /file /files dependencySets dependencySet /dependencySet /dependencySets /assembly Paul Larry Meadors-2 wrote: Hi, I am using maven for the first time, so I apologize if this is a retarded question, but I can't find it anywhere in the docs. I have an app that is a command line app. I want to create an assembly that has my jar, along with the other jars that are listed as dependencies on it. I tried the jar-with-dependencies approach, and that *almost* works, but one of the jars i am including has some added files in the META-INF directory, and they do not end up getting included, so the app fails. Bummer. :( So, I guess i am looking for one of two things: 1) how can I get *all* the files in the uber jar. -or- 2) how can I get the assembly to just put all the individual dependent jars in a directory somewhere? I think I'd prefer #2, but at this point... I'll take what I can get! :-) TIA, Larry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Using-the-assembly-plugin-to-build-a-stand-alone-application-tf2670816s177.html#a7448665 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] use case problem
Hi maven users, I would like to setup a global environment with maven2 for two differents teams: development and integration/support team. The first one would describe their project with a pom.xml and access to the central and other public repositories trough a proxy (proximity) with no restrictions for the development. In the integration phase, the support team would pickup the source and pom from a SCM tagged version and should be able to compile and package the project for two environments: staging and production (differents resources directory). For those packages, the artifact and plugin repositories should be exclusively internals (another proximity repositories without remote peers). The contents, artifacts/version, of those repositories would have been submited by a dedicated validation process. So my question: what is the best solution to setup such environements ? : -settings.xml with mirrors ? But in this case, everyone would acces to public repos, even the support team. -profiles : In pom.xml? Settings.xml ? -How could we detect missing or wrong version artifacts dependencies in the integration phase. If you think I'm wrong with this architectur, please let me know :) Thanks a lot for your answer for this too long questions :-' Rémy --- Cette communication (y compris les pieces jointes) est reservee a l'usage exclusif du destinataire (des destinataires) et peut contenir des informations privilegiees, confidentielles, exemptees de divulgation selon la loi ou protegees par les droits d'auteur. Si vous n'etes pas un destinataire, toute utilisation, divulgation, distribution, reproduction, examen ou copie (totale ou partielle) est non-autorisee et peut etre illegale. Tout message electronique est susceptible d'alteration et son integrite ne peut etre assuree. Sanofi Pasteur decline toute responsabilite au titre de ce message s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur de l'erreur de distribution et de la destruction du message. Merci. This transmission (including any attachments) is intended solely for the use of the addressee(s) and may contain confidential information including trade secrets which are privileged, confidential, exempt from disclosure under applicable law and/or subject to copyright. If you are not an intended recipient, any use, disclosure, distribution, reproduction, review or copying (either whole or partial) is unauthorized and may be unlawful. E-mails are susceptible to alteration and their integrity cannot be guaranteed.Sanofi Pasteur shall not be liable for this e-mail if modified or falsified. If you are not the intended recipient of this e-mail, please delete it immediately from your system and notify the sender of the wrong delivery and the mail deletion. Thank you. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Advanced issues with directory structure
Greetings I've got some questions about directory structure of the Maven2. I am building a web application with many dependencies and I am not sure how to organize the resources to as maven2-friendly as possible. Where should I put XSL templates XSD schemas I suppose they should fit in src/main/resources but there doesn't seem to be any logical reason to be placed on classpath during build. I am also not sure abou XML data for testing XML data form production and development other data form testing purposes, like txt files or certificates thanks for any help Jakub Hozak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error when generating Dependencies report (SNAPSHOT)
Hi Somebody has made a dependency to the maven sandbox componenet maven-shared in the maven-project-info-reports-plugin. Set the maven-project-info-reports-plugin version to 2.0.1 to circumvate it. Hermod -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 21, 2006 12:29 PM To: Maven Users List Subject: Re: Error when generating Dependencies report (SNAPSHOT) On 11/21/06, Julien HENRY [EMAIL PROTECTED] wrote: This morning, I try to generate my project site and it failed. Yesterday it works... Any idea? [ERROR] FATAL ERROR [INFO] [INFO] org/apache/maven/shared/jar/Jar [INFO] [INFO] Trace java.lang.NoClassDefFoundError: org/apache/maven/shared/jar/Jar No ideas yet, but you're the second person to report something like this. Unfortunately, I can't reproduce it, but that's probably because I'm running snapshots of nearly everything. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NoClassDefFoundError when using mvn site
Hello, I'm trying to to a mvn site. It used to work but it seems I got a new snaphost version of something, and I now get this stacktrace when inoking mvn site : ... [INFO] Cobertura Report generation was successful. [INFO] Generate JDepend report. [INFO] Generate Tag List report. [INFO] Generate Continuous Integration report. [INFO] Generate Dependencies report. [INFO] [ERROR] FATAL ERROR [INFO] [INFO] org/apache/maven/shared/jar/Jar [INFO] [INFO] Trace java.lang.NoClassDefFoundError: org/apache/maven/shared/jar/Jar at org.apache.maven.report.projectinfo.dependencies.Dependencies.init(Dependencies.java:74) at org.apache.maven.report.projectinfo.DependenciesReport.executeReport(DependenciesReport.java:126) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:101) at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:67) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:239) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:115) at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:124) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] [INFO] Total time: 10 minutes 25 seconds [INFO] Finished at: Tue Nov 21 12:50:26 CET 2006 [INFO] Final Memory: 37M/63M [INFO] _ Ce message (et toutes les pièces jointes) sont confidentiels ; son contenu ne représente en aucun cas un engagement de la part de DEXIA SOFAXIS. Toute publication, utilisation ou diffusion, même partielle, doit être autorisée préalablement par l'émetteur. Si vous n'êtes pas destinataire de ce message, merci d'en avertir immédiatement l'expéditeur. Conformément aux dispositions de la loi n° 78-17 du 6 janvier 1978 relative à l'informatique, aux fichiers et aux libertés, vous pouvez obtenir communication et, le cas échéant, rectification ou suppression des informations vous concernant en vous adressant à DEXIA SOFAXIS - Route de Creton - 18110 VASSELAY _ Consultez notre site internet http://www.sofaxis.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why don't need maven-scm-plugin and password?
Hello, I checked the matter carefully. Then found that all is my fault. In fact, Maven had downloaed maven-scm-plugin, occasionally, I didn't monitor the action at that time. And I have serveral local repositories, and I searched a wrong one. God! a cup of Java, cheers! Sha Jiang jiangshachina wrote: Although I set the fowllowing at pom.xml plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.0-beta-3/version /plugin maven-scm-plugin wasn't downloaded. a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hi guys, I set scm(CVS) connection in pom.xml scm connection scm:cvs:pserver:[EMAIL PROTECTED]:port:repository:module /connection /scm then I run mvn scm:checkout, the files were checkout sccusessfully. But I'm very puzzled! I didn't set password! maven-scm-plugin didn't downloaded! When I used scm:cvs:pserver:myuser:[EMAIL PROTECTED]:port:repository:module it was sucessful, too. a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Why-don%27t-need-maven-scm-plugin-and-password--tf2663461s177.html#a7468198 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: excluding/including tests in surefire-plugin in different phases
diroussel, Try adding skiptrue/skip in pluginconfiguration (not in execution) and please let me know if it works. I too experienced this behaviour and found it pretty strange. - Yann 2006/11/15, diroussel [EMAIL PROTECTED]: Jan, did you find a solution to this? It looks to me that the exclude feature doesn't work, which is why others seem to be using more elaborate techniques to getting integration tests working (separate module, or using profiles). I found this comment in SurefirePlugin.java (maven-surefire-plugin-2.2) // Have to wrap in an ArrayList as surefire expects an ArrayList instead of a List for some reason This wrapping is only done for the detaul includes and excludes, but not for user supplied values. Note sure how the excludes setter is called, all this mojo stuff is just magic to me. Here is my config, which doesn't exlcude either: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId configuration forkModeonce/forkMode property namejava.util.prefs.PreferencesFactory/name valuecom.euroclear.framework.config.EuroclearPreferencesFactory/value /property /configuration executions execution idunit-test/id phasetest/phase goals goaltest/goal /goals configuration skipfalse/skip includes include**/Test*.java/include include**/*Test.java/include include**/*TestCase.java/include /includes excludes exclude**/*IntTest.java/exclude /excludes /configuration /execution execution idint-test/id phaseintegration-test/phase goals goaltest/goal /goals configuration skipfalse/skip includes include**/*IntTest.java/include /includes excludes exclude**/Test*.java/exclude exclude**/*Test.java/exclude exclude**/*TestCase.java/exclude /excludes /configuration /execution /executions /plugin -- View this message in context: http://www.nabble.com/excluding-including-tests-in-surefire-plugin-in-different-phases-tf2534887s177.html#a7357185 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Use of non-standard directory structure
Hello! It appears that we're using a non-standard directory structure. Due to our hierarchy of projects, we wanted to use short names for our directories, but longer names for the project names. So, our project names do not necessarily have the same value as the directory in which it sits. Because of this, Continuum can't find the source from svn, and I get an error like this: Provider message: The svn command failed. Command output: --- svn: URL 'https://company.com/com/company/group/group-module' doesn't exist --- When the URL should be: https://company.com/com/company/group/module Is my only option to change my directory names? Or can I set the values in my POMs or something? Thank you!
Re: [m2] problem getting latest plugin version to local maven repository
How did you deploy your plugin ? Did you use the release plugin ? If you just do a deploy, add -DupdateReleaseInfo=true Tom On 11/21/06, Tom Will [EMAIL PROTECTED] wrote: We've got an inhouse mirror of the central repository. We also deploy a company-specific maven-plugin to that inhouse mirror. We face the problem that the latest version of our plugin is not downloaded to the local maven repository, if there is already an old local version, even not after several days. We also tried with updatePolicyinterval:30/updatePolicy and updatePolicyalways/updatePolicy but no success. It only worked when we deleted the old local versions, or when we run maven with the -U parameter. Should this basically work? Any idea what we might do wrong? We use this settings.xml: settings localRepositoryD:/mavenrepo/localRepository mirrors mirror idMyCompanyCentral/id nameMyCompany Central Repository/name urlhttp://build.mycompany.com/repository/url mirrorOfcentral/mirrorOf /mirror /mirrors profiles profile idMyCompanyDefaultProfile/id repositories repository idMyCompanyCentral/id nameMyCompany Central Repository/name urlhttp://build.mycompany.com/repository/url layoutdefault/layout /repository repository idMyCompanySnapshot/id nameMyCompany Snapshot Repository/name urlhttp://build.mycompany.com/snapshot/url /repository /repositories /profile /profiles activeProfiles activeProfileMyCompanyDefaultProfile/activeProfile /activeProfiles /settings Thanks, Tom -- View this message in context: http://www.nabble.com/-m2--problem-getting-latest-plugin-version-to-local-maven-repository-tf2677604s177.html#a7467807 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Buiding a simple plugin :(
zze- HUGONNET E ext RD-BIZZ a écrit : Hi, I am trying to build a simple report building. My first error was to use jdk 1.5 enumerations. Thanks to Andrew Williams, it all seems to come from some bad dependency on jdox, and I tried to set it to the correct 1.6.1 version. But my dependecy was not taken into account during the build so I checked and found that this was coming from maven-plugin-tools-java that was referencing the 1.5. I tried to build some local version 2.0.4 of this plugin and referenced the built version in my pom.xml. But this was not the end of it, because to my surprise, the version used to build my plugin was not the 2.0.4 as specified but the 2.0.1:(( After much probing I have found that this comes from maven-plugin-plugin: resolved to version 2.1 from repository central which uses 2.0.1 and no other up-to-date version. The 2.2-SNAPSHOT is of no use either since it goes directly to 2.0.5-SNASPHOT. This is NOT what I excepted at ALL, and my solution was to set the qdox version to 1.6.1 in the pom.xml of maven-plugin-tools-java 2.0.1 on my local repository. This is quite unsatisfactory and I am open to any better solution or explanation. Emmanuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] After more thinking about this problem it looks like this is a kind of chicken-egg problem with Maven2: http://mail-archives.apache.org/mod_mbox/maven-dev/200607.mbox/[EMAIL PROTECTED] . Building plugins seems to create a dependecy to plugin-plugin and transitively to maven 2.0.1, not 2.0.4 (which is the version I currently use). This seems to be to close to the core of Maven to override the dependency using dependencyManager. Is this correct ? Is there a workaround for this king of problem ? Emmanuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: Pulling jars into local repository
ExcludeScope is only available in the 2.0 version, which is snapshot currently and moved to apache. (http://maven.apache.org/plugins/maven-dependency-plugin/). A release is pending very soon. To use the new one: grouporg.apache.maven.plugins/group artifactIdmaven-dependency-plugin/artifactId version2.0-alpha-1-SNAPSHOT/version You'll also need to add the snapshot repo to your settings. repository idmaven-snaps/id urlhttp://people.apache.org/repo/m2-snapshot-repository/url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Steinar Bang Sent: Monday, November 20, 2006 2:36 PM To: users@maven.apache.org Subject: Re: Pulling jars into local repository Brian E. Fox [EMAIL PROTECTED]: The copy mojo doesn't care about the scope because it will copy the artifacts listed in the artifactItems element. The scope is used by copy-dependencies to decide which ones from the project need to be copied since it starts from the entire dependency element. If you don't specify a scope, it will include all. It's copy-dependencies that copies the bundles I'm trying to stop it from copying (the conflicting OSGi framework). Is there a place I can put scope on copy-dependencies? Is that the excludeScope setting? I tried putting this in, but it didn't help, either: plugin groupIdorg.codehaus.mojo/groupId artifactIddependency-maven-plugin/artifactId executions execution idcopy-dependencies/id phaseinstall/phase goals goalcopy-dependencies/goal /goals configuration excludeScopeinstall/excludeScope outputDirectory${user.home}/pde_target_platform/plugins/outputDirecto ry /configuration ... - 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: Don't add dependency?
Hi, I have four tests just now. [1]I added following artifact to dependency dependency groupIdasm/groupId artifactIdasm/artifactId version1.5.3/version /dependency then run mvn package, asm-1.5.3.jar was in WEB-INF/lib [2]I added following scripts to pom.xml dependency groupIdjavax.transaction/groupId artifactIdjta/artifactId version15/version /dependency obviously, there isn't jta-15.jar in real world. Then run mvn package, build was sucessful too, none of error is thrown!!! [3]I just use following dependency groupIdjavax.transaction/groupId artifactIdjta/artifactId version1.0.1B/version /dependency run mvn eclipse:eclipse, jta-1.0.1B.jar was in .classpath. It means that Maven can find the artifact. [4]I just use following dependency groupIdjavax.transaction/groupId artifactIdjta/artifactId version15/version /dependency run mvn eclipse:eclipse, Maven tried to download jta-15.pom, off course found nothing. It means that Maven knows jta-15 isn't existent. The four test above are very strange! How to explain the matter? a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hi, I'm sorry that I didin't represent myself clearly. I have installed jta by manual, and jta-1.0.1B.jar is in my local repository now. If the jar file isn't existent, my build would be failed. a cup of Java, cheers! Sha Jiang Bengt-Erik Fröberg-2 wrote: Hi Check out this, it should be the reason jta isn't added you have to install it manually! http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html Greetings, 2006/11/21, jiangshachina [EMAIL PROTECTED]: Hi guys, I have a Web application project. I added javax.transaction:jta:jta-1.0.1B.jar to dependency, but in fact my project doesn't need the jar. Namely, I don't need it on compile-time, test-time or runtime. I run mvn package, and the build was sucessful. I checked WEB-INF/lib directory, but don't find jta-1.0.1B.jar. I always think that Maven would add any jar file in dependencies. But the case means that I'm wrong. I don't believe one case, please show me clearly. Maven can identify any useless jar and doesn't add it to war file? a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Don%27t-add-dependency--tf2677027s177.html#a7466108 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === Utan tvivel är man inte riktigt klok. (Tage Danielsson) -- View this message in context: http://www.nabble.com/Don%27t-add-dependency--tf2677027s177.html#a7467925 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using the assembly plugin to build a stand-alone application
Hi Larry, I believe the descriptorId is required. You must also reference assembly.xml from your POM by giving the assembly plugin a configuration like this: configuration descriptorassembly.xml/descriptor /configuration But the 4 files result is correct, I think. What's in them? The jar should contain only your current project's classes. That is not the result of the assembly plugin, but of the jar plugin (probably running automatically on account of jar packaging). The other three files are coming from the assembly plugin. What's in them? You should see your jar plus your dependency jars. That's what you wanted, right? Paul Larry Meadors-2 wrote: Thanks, Paul - I added that as a file named assembly.xml in the directory with my pom.xml in it. I then added this to my pom (in the build/plugins section): === plugin artifactIdmaven-assembly-plugin/artifactId version2.0-beta-1/version configuration descriptorIdbin/descriptorId descriptors descriptor./assembly.xml/descriptor /descriptors finalNamemarcdelivery/finalName outputDirectorytarget/assembly/outputDirectory workDirectorytarget/assembly/work/workDirectory /configuration /plugin === But it still only creates 4 files: - target/marc-delivery-1.0-SNAPSHOT.jar - target/assembly/marcdelivery-bin.tar.gz - target/assembly/marcdelivery-bin.tar.bz2 - target/assembly/marcdelivery-bin.zip If I remove the descriptorIdbin/descriptorId line from the pom, I get only one file (target/marc-delivery-1.0-SNAPSHOT.jar) and an error. :( How do you have this in your project? Larry On 11/20/06, pjungwir [EMAIL PROTECTED] wrote: Hi Larry, I'm doing this, too. I think you'll need to create your own assembly descriptor. Here is mine: assembly idbin/id formats formattar.gz/format formatzip/format /formats fileSets fileSet directorytarget/directory outputDirectory/outputDirectory includes include*.jar/include !-- the jar of this project's classes -- /includes /fileSet fileSet directorytarget/scripts/directory outputDirectory/outputDirectory includes include*/include !-- clui scripts to launch the main java class -- /includes fileMode755/fileMode /fileSet fileSet directorytarget/doc/directory outputDirectory/outputDirectory includes include*/include /includes /fileSet /fileSets files file sourceREADME/source outputDirectory//outputDirectory fileMode644/fileMode !-- broken. see http://jira.codehaus.org/browse/MASSEMBLY-153 -- /file /files dependencySets dependencySet /dependencySet /dependencySets /assembly Paul Larry Meadors-2 wrote: Hi, I am using maven for the first time, so I apologize if this is a retarded question, but I can't find it anywhere in the docs. I have an app that is a command line app. I want to create an assembly that has my jar, along with the other jars that are listed as dependencies on it. I tried the jar-with-dependencies approach, and that *almost* works, but one of the jars i am including has some added files in the META-INF directory, and they do not end up getting included, so the app fails. Bummer. :( So, I guess i am looking for one of two things: 1) how can I get *all* the files in the uber jar. -or- 2) how can I get the assembly to just put all the individual dependent jars in a directory somewhere? I think I'd prefer #2, but at this point... I'll take what I can get! :-) TIA, Larry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Using-the-assembly-plugin-to-build-a-stand-alone-application-tf2670816s177.html#a7448665 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Using-the-assembly-plugin-to-build-a-stand-alone-application-tf2670816s177.html#a7449750 Sent from the Maven - Users mailing
RE: Archive Repository
Hello Peter I did nothing with the frontend, I just submitted a documentation on how to setup repositories, I didn't try the latest builds from yesterday, just updated the source repo - svn update your setup looks correct, as you can browse the repository maven should see it. what you can try is to start mvn with the -e option and look at the produced output. - mvn -e verify in the directory where your pom is, this will check the dependencies. I currently run the daily build of Nov 15. and this works fine as a maven proxy, but it's online... Daniel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 20, 2006 6:45 PM To: archiva-users@maven.apache.org Subject: RE: Archive Repository Not sure what you did exactly with the Archiva frontend, but surfing to http://localhost:9091/archiva on my Tomcat produces: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Filter execution threw an exception com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(P ageFilter. java:118) com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(Pa geFilter.j ava:52) com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFil ter(Action ContextCleanUp.java:88) root cause javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found javax.xml.transform.TransformerFactory.newInstance(Unknown Source) com.opensymphony.xwork.util.DomHelper$DOMBuilder.clinit(DomH elper.java :168) com.opensymphony.xwork.util.DomHelper.parse(DomHelper.java:116) com.opensymphony.xwork.config.providers.XmlConfigurationProvid er.loadCon figurationFile(XmlConfigurationProvider.java:642) com.opensymphony.xwork.config.providers.XmlConfigurationProvid er.init(Xm lConfigurationProvider.java:91) com.opensymphony.xwork.config.impl.DefaultConfiguration.reload (DefaultCo nfiguration.java:85) com.opensymphony.xwork.config.ConfigurationManager.getConfigur ation(Conf igurationManager.java:54) com.opensymphony.xwork.DefaultActionProxy.init(DefaultAction Proxy.java :57) com.opensymphony.xwork.DefaultActionProxyFactory.createActionP roxy(Defau ltActionProxyFactory.java:46) com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAct ion(Dispat cherUtils.java:216) com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter( FilterDisp atcher.java:202) com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(P ageFilter. java:118) com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(Pa geFilter.j ava:52) com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFil ter(Action ContextCleanUp.java:88) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs. -- Peter Pilgrim UBS Investment Bank, PTS Portal / IT FIRC OPS LDN, 100 Liverpool Street, London EC2M 2RH, United Kingdom +44 (0) 20 75 75692 :: Java EE / E-Commerce / Enterprise Integration / Development :: -Original Message- From: Mohni, Daniel [mailto:[EMAIL PROTECTED] Sent: 20 November 2006 07:11 To: archiva-users@maven.apache.org Subject: RE: Archive Repository Hello Peter I compiled a client config page for archiva, the page is now in the repository If you get the latest daily checkout, you will find the page after you run mvn site in the target/site mvn site fails on my system with [INFO] -- -- [ERROR] BUILD ERROR [INFO] -- -- [INFO] Error configuring: org.apache.maven.plugins:maven-war-plugin. Reason: ERROR: Cannot override read-only parameter: classesDirectory in goal: war:inplace [INFO] -- -- but the site is already generated... check it out, if this works for you Daniel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, November 17, 2006 5:23 PM To: archiva-users@maven.apache.org Subject: RE: Archive Repository -Original Message- From: Mohni, Daniel [mailto:[EMAIL PROTECTED] Sent: 17 November 2006 12:59 To: archiva-users@maven.apache.org Subject: RE: Archive Repository just a stupid remark... Tomcat default Port is 8080 and not 9091 That is because I changed the tomcat port (as I can do ), especially if I working on a managed server shared with other people! and depending how you deployed the webapp, you will get
RE: [M2] Howto Set Up Quickly an Offline Internal Repository?
Hi With my local to remote M2 Repo converter tool I hit a crunch. I am trying to figure why the maven is going to the internet, even though the maven-metadata.xml is set correctly. Is there another tag paremeter in maven-metadata.xml that I am missing? I do have all the POM/JARs for jetty and the maven-site-plugin in the right place at least in my internal repository. Downloading: http://dist.codehaus.org/org.mortbay.jetty/jars/servlet-api-2.5-6.0.0bet a12.jar [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Error transferring file org.mortbay.jetty:servlet-api-2.5:jar:6.0.0beta12 from the specified remote repositories: central (http://repo1.maven.org/maven2), codehaus (http://dist.codehaus.org), apache.snapshots (http://svn.apache.org/maven-snapshot-repository), snapshots (http://snapshots.maven.codehaus.org/maven2) Path to dependency: 1) org.apache.maven.plugins:maven-site-plugin:maven-plugin:2.0-beta-5 2) org.mortbay.jetty:jetty:jar:6.0.0beta12 3) org.mortbay.jetty:servlet-api-2.5:jar:6.0.0beta12 [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error transferring file org.mortbay.jetty:servlet-api-2.5:jar:6.0.0beta12 from the specified remote repositories: central (http://repo1.maven.org/maven2), codehaus (http://dist.codehaus.org), apache.snapshots (http://svn.apache.org/maven-snapshot-repository), snapshots (http://snapshots.maven.codehaus.org/maven2) Path to dependency: 1) org.apache.maven.plugins:maven-site-plugin:maven-plugin:2.0-beta-5 2) org.mortbay.jetty:jetty:jar:6.0.0beta12 3) org.mortbay.jetty:servlet-api-2.5:jar:6.0.0beta12 -- Peter Pilgrim UBS Investment Bank, PTS Portal / IT FIRC OPS LDN, 100 Liverpool Street, London EC2M 2RH, United Kingdom +44 (0) 20 75 75692 :: Java EE / E-Commerce / Enterprise Integration / Development :: Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting changelog-plugin to Generate 'change.xml' File
Brad Harper a écrit : Hello: Has there been any attempt to link the change-log plugin with the changes-plugin via the 'changes.xml' document format. We're considering adding some sort of mark-up to the SCM commit log messages to identify issue ids and differentiate between additions, fixes, etc. [The goal is to yank info into a format from which release notes could be prepared.] Mark-up along these lines would theoretically let a change-log plugin *aware of the log message tags* generate a 'changes.xml'. Getting the change logs in a neutral xml format would still let us programmatically generate the draft for user release notes, or produce the html output as done currently by the changes-plugin. Or have I missing something? Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] I was thinking about doing this, but i have issues with the scm-plugin so I don't use it :( . I am currently using Subversion and I thought about using : - svn list repository/tags to get the list of tags - svn log --verbose --xml repository/tags to get the entries by tags - svn log --verbose --xml --stop-on-copy repository/trunk to get the latest corrections The --verbose and --xml options give us much more information than what is displayed with changelog as you have the operation: Modify, Added or Removed. Currently I have produced a xml file with the logentries grouped by version and with a tag name per release. With some clever XSLT manipulation I should be able to produce a changes.xml Emmanuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: APT: Images and links
I want this too. Is there already support for this? regards, Wim 2006/6/2, Erhard Schultchen [EMAIL PROTECTED]: Hi, I noticed that with APT, the following constructs are supported: {{}} for hyperlinks, [] to place images in the generated site. Is there some way to combine those, like putting an image which is surrounded by a hyperref? Like {{{http://example.com} [/images/myimage.png]}}. I tried this one, but it simply puts a link named '[/images/myimage.png]' in my site. Regards, Erhard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]