Re: Problem with multi-module site
Hi Russel, I checked your project at http://russgold.github.io/russgold/maven-video/sample10.zip Your site directory is in the project's root directory, it should be in src/site/ HTH, Lukas Russell Gold wrote: Hi Lukas, My problem is that the custom menus don't even show up in the parent, nor do the breadcrumbs. The docs suggest that the site descriptors are not attached automatically in maven 3, but they certainly were in my single-module trial, and they seem to be in Ryan's example, as well. I suspect the docs are a bit out of date. Thanks, Russ On Jun 20, 2013, at 8:53 AM, Lukas Theussl ltheu...@apache.org wrote: Custom menus are not inherited by default, I guess you have read the docs: http://maven.apache.org/plugins/maven-site-plugin/examples/multimodule.html The breadcrumbs should be inherited as long as the parent defines some: http://maven.apache.org/plugins/maven-site-plugin/examples/sitedescriptor.html#Breadcrumbs HTH, -Lukas Russell Gold wrote: Thanks for the suggestion; all of the sub-modules are indeed in properly named directories, as far as I can tell. The top-level project wasn't, but fixing that didn't do anything. Thanks, Russ On Jun 20, 2013, at 1:17 AM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: If I remember correctly, one problem is, when the name/directory of the module does not equal the artifactId of the module. Regards Mirko -- Sent from my mobile On Jun 20, 2013 1:04 AM, Russell Gold r...@gold-family.us wrote: I am using the site-maven-plugin (version 3.3) and cannot seem to get it to work. Using the exact same site.xml and additional files (faq, apt and xhtml types) that worked fine in a single project site, I am not getting breadcrumbs or custom menu items. I do get the submodules with their own sites, each of which is inheriting the reports from the parent, but that's it. My (58K) project is at http://russgold.github.io/russgold/maven-video/sample10.zip Thanks Russ - Come read my webnovel, Take a Lemon http://www.takealemon.com, and listen to the Misfile radio play http://www.gold-family.us/audio/misfile.html! - Come read my webnovel, Take a Lemon http://www.takealemon.com, and listen to the Misfile radio play http://www.gold-family.us/audio/misfile.html! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - Come read my webnovel, Take a Lemon http://www.takealemon.com, and listen to the Misfile radio play http://www.gold-family.us/audio/misfile.html! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Problem with multi-module site
Lukas, Thank you so much! I looked at it again and again and just never noticed that! Russ On Jun 21, 2013, at 4:53 AM, Lukas Theussl ltheu...@apache.org wrote: Hi Russel, I checked your project at http://russgold.github.io/russgold/maven-video/sample10.zip Your site directory is in the project's root directory, it should be in src/site/ HTH, Lukas Russell Gold wrote: Hi Lukas, My problem is that the custom menus don't even show up in the parent, nor do the breadcrumbs. The docs suggest that the site descriptors are not attached automatically in maven 3, but they certainly were in my single-module trial, and they seem to be in Ryan's example, as well. I suspect the docs are a bit out of date. Thanks, Russ On Jun 20, 2013, at 8:53 AM, Lukas Theussl ltheu...@apache.org wrote: Custom menus are not inherited by default, I guess you have read the docs: http://maven.apache.org/plugins/maven-site-plugin/examples/multimodule.html The breadcrumbs should be inherited as long as the parent defines some: http://maven.apache.org/plugins/maven-site-plugin/examples/sitedescriptor.html#Breadcrumbs HTH, -Lukas Russell Gold wrote: Thanks for the suggestion; all of the sub-modules are indeed in properly named directories, as far as I can tell. The top-level project wasn't, but fixing that didn't do anything. Thanks, Russ On Jun 20, 2013, at 1:17 AM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: If I remember correctly, one problem is, when the name/directory of the module does not equal the artifactId of the module. Regards Mirko -- Sent from my mobile On Jun 20, 2013 1:04 AM, Russell Gold r...@gold-family.us wrote: I am using the site-maven-plugin (version 3.3) and cannot seem to get it to work. Using the exact same site.xml and additional files (faq, apt and xhtml types) that worked fine in a single project site, I am not getting breadcrumbs or custom menu items. I do get the submodules with their own sites, each of which is inheriting the reports from the parent, but that's it. My (58K) project is at http://russgold.github.io/russgold/maven-video/sample10.zip Thanks Russ - Come read my webnovel, Take a Lemon http://www.takealemon.com, and listen to the Misfile radio play http://www.gold-family.us/audio/misfile.html! - Come read my webnovel, Take a Lemon http://www.takealemon.com, and listen to the Misfile radio play http://www.gold-family.us/audio/misfile.html! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - Come read my webnovel, Take a Lemon http://www.takealemon.com, and listen to the Misfile radio play http://www.gold-family.us/audio/misfile.html! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - Come read my webnovel, Take a Lemon http://www.takealemon.com, and listen to the Misfile radio play http://www.gold-family.us/audio/misfile.html!
Re: dependency:list -DincludeScope=compile lists compile scope for transitive dependencies of test scope items
Oh, it's a bug (http://jira.codehaus.org/browse/MNG-3089) explained in this thread http://www.mail-archive.com/dev@maven.apache.org/msg68011.html but not fixed. Peter On Thu, Jun 20, 2013 at 6:03 PM, Peter Kahn citizenk...@gmail.com wrote: Hi all, Do I have a problem with maven-dependency-plugin 2.8 or with my understanding of dependency scope? I run mvn dependency:list -DincludeScope=compile and see items which are transitive dependencies of test scope items. My project depends on org.apache.httpcomponents:httpclient:jar:4.1*:test* and httpclient depends on org.apache.httpcomponents:httpcore:jar:4.1:* compile* If I look at compile scope dependencies, I do not expect to see anything below httpclient because it's test scope and the branch of dependencies beneath it should be filtered out. However, mvn dependency:list -DincludeScope=compile -DexcludeScope=test|grep -i http.*core lists httpcore [INFO]org.apache.httpcomponents:httpcore:jar:4.1:compile *My Project's dependency:tree output *[INFO] +- org.apache.httpcomponents:httpclient:jar:4.1:*test* [INFO] | +- org.apache.httpcomponents:httpcore:jar:4.1:*compile* [INFO] | +- commons-logging:commons-logging:jar:1.1:test [INFO] | \- commons-codec:commons-codec:jar:1.4:compile Am I missing a flag that handles this properly or am I misunderstanding what proper is in this situation. Thanks for the help Peter -- Peter Kahn citizenk...@gmail.com http://www.google.com/profiles/citizenkahn Awareness - Intention - Action -- Peter Kahn citizenk...@gmail.com http://www.google.com/profiles/citizenkahn Awareness - Intention - Action
RE: Error adding file-set for 'org.apache.axis2:addressing:mar:1.6.2' to archive
I looked at the War plugin link but I don't think I got anything out of it. I Google'd for what an assembly descriptor file is and I think this is where I need to exclude the org.apache.axis2:addressing instruction. I've tried all areas in both the fileSets and dependencySets area but no luck. I'm not even sure if org.apache.axis2:addressing is the right string to use. Here is my assembly.xml assembly xmlns=http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd; idjar-with-dependencies/id formats formatjar/format /formats includeBaseDirectoryfalse/includeBaseDirectory fileSets fileSet directorytarget/classes/directory lineEndingkeep/lineEnding outputDirectory//outputDirectory includes include**/**/include /includes /fileSet fileSet outputDirectorylib/outputDirectory includes includesrc/main/dlls/*.dll/include /includes excludes excludeorg.apache.axis2:addressing/exclude /excludes /fileSet fileSet outputDirectory//outputDirectory includes includesrc/main/dlls/*.dll/include /includes /fileSet /fileSets dependencySets dependencySet useProjectArtifactfalse/useProjectArtifact useTransitiveDependenciesfalse/useTransitiveDependencies outputDirectorylib/outputDirectory excludes excludecom.p1s.mps:common/exclude /excludes /dependencySet dependencySet useProjectArtifactfalse/useProjectArtifact useTransitiveDependenciestrue/useTransitiveDependencies useTransitiveFilteringtrue/useTransitiveFiltering outputDirectorylib/outputDirectory includes includecom.p1s.mps:common/include /includes /dependencySet /dependencySets /assembly -Original Message- From: Alan Buck [mailto:alan.b...@pharmacyonesource.com] Sent: Thursday, June 20, 2013 1:27 PM To: Maven Users List Subject: RE: Error adding file-set for 'org.apache.axis2:addressing:mar:1.6.2' to archive The .mar file is necessary and does not seem to be available as a .jar. My first excursion into Maven (2 days ago) was to add the Axis2 dependency to the database connectivity project. It took me most of the 2 days to figure out how to use Axis2 and Maven but I got through it. A .mar file is a module archive file (I think this is the correct definition). I ran across some Google discussions about the limitations of Axis2 choosing .mar extension but skimmed past them. I also ran across a vague reference to the .mar problem being a file that shouldn't be unpacked. I think that is what the m-assembly-p is trying to do. This is our agile IPM day so I'm going to have to go silent for the rest of the day. I'll follow your link tomorrow and hopefully it will help. Thank you. -Original Message- From: Wayne Fay [mailto:wayne...@gmail.com] Sent: Thursday, June 20, 2013 1:13 PM To: Maven Users List Subject: Re: Error adding file-set for 'org.apache.axis2:addressing:mar:1.6.2' to archive I've tried to exclude the .mar file in this plugin but I kept getting the error or a syntax error. I know little about Axis2 and nothing about mar files. Are you certain this mar file is required for what you're doing and not also available as a jar? It seems the assembly plugin does not know what to do with a mar file. Here's a JIRA entry related to the War plugin about a similar problem a while back: http://jira.codehaus.org/browse/MWAR-193 I'm not sure what the assembly descriptor file is. I'm could post the whole project file for monitor but I'm hesitant to paste 568 lines. This is not necessary as you are simply using jar-with-dependencies which is built-in to the assembly plugin. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org B CB [ X ܚX KK[XZ[ \ \ ][ X ܚX PX] [ \X K ܙ B ܈Y][ۘ[ [X[ K[XZ[ \ \ Z[X] [ \X K ܙ B - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Error adding file-set for 'org.apache.axis2:addressing:mar:1.6.2' to archive
I looked at the War plugin link but I don't think I got anything out of it. I Google'd for what an assembly descriptor file is and I think this is where I need to exclude the org.apache.axis2:addressing instruction. I've tried all areas in both the fileSets and dependencySets area but no luck. I'm not even sure if org.apache.axis2:addressing is the right string to use. Here is my assembly.xml I don't think you need to do any of that. I'm really unclear on what you are trying to accomplish. Does your application require this mar file? If so, you should not exclude it which means you need another solution to this problem. If not, then you can exclude that dependency far more easily. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Error adding file-set for 'org.apache.axis2:addressing:mar:1.6.2' to archive
Again I'm showing my noobie status. I needed to create a client web service for the database connectivity module. This is where I added the dependency on axis2. Without the .mar file the response coding for the client request call fails. dependency groupIdorg.apache.axis2/groupId artifactIdaxis2-adb/artifactId version${apache.axis2.version}/version /dependency dependency groupIdorg.apache.axis2/groupId artifactIdaxis2-transport-http/artifactId version${apache.axis2.version}/version /dependency dependency groupIdorg.apache.axis2/groupId artifactIdaxis2-transport-local/artifactId version${apache.axis2.version}/version /dependency dependency groupIdorg.apache.axis2/groupId artifactIdaddressing/artifactId version${apache.axis2.version}/version typemar/type /dependency In building the monitor module I have no need for the axis2 dependencies but I do need the database connectivity module. Maven seems to be a very good tool but the complexity is a little overwhelming for someone who is into just his fourth day of trying to absorb the details. So the error while compiling the monitor module is: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2: single (assembly) on project monitor: Failed to create assembly: Error adding file-set for 'org.apache.axis2:addressing:mar:1.6.2' to archive: Error adding archived file-set. PlexusIoResourceCollection not found for: C:\Users\alan.buck\.m2\repository\org\apache\axis2\addressing\1.6.2\addressing-1.6.2.mar: No such archiver: 'mar'. - [Help 1] [ERROR] So I'm trying to tell Maven not to add this file-set during the monitor module compilation. My understanding may be faulty but I thought that the assembly.xml file is a kind of 'parent configuration' to the m-assembly-p plugin because of the idjar-with-dependencies/id tag in it. Trying to exclude the .mar file inside the m-assembly-p of the pom.xml didn't seem to work. So I'm trying to exclude it inside of the assembly.xml but that isn't working either. At this point I'm either looking in the wrong areas or using the wrong string (org.apache.axis2:addressing:mar:1.6.2) to exclude it. Thanks for your input it did make me aware of the assembly.xml file and that has added to my understanding of Maven. -Original Message- From: Wayne Fay [mailto:wayne...@gmail.com] Sent: Friday, June 21, 2013 9:21 AM To: Maven Users List Subject: Re: Error adding file-set for 'org.apache.axis2:addressing:mar:1.6.2' to archive I looked at the War plugin link but I don't think I got anything out of it. I Google'd for what an assembly descriptor file is and I think this is where I need to exclude the org.apache.axis2:addressing instruction. I've tried all areas in both the fileSets and dependencySets area but no luck. I'm not even sure if org.apache.axis2:addressing is the right string to use. Here is my assembly.xml I don't think you need to do any of that. I'm really unclear on what you are trying to accomplish. Does your application require this mar file? If so, you should not exclude it which means you need another solution to this problem. If not, then you can exclude that dependency far more easily. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Error adding file-set for 'org.apache.axis2:addressing:mar:1.6.2' to archive
I needed to create a client web service for the database connectivity module. This is where I added the dependency on axis2. Without the .mar file the response coding for the client request call fails. I understand this. You also said the monitor project uses the database connectivity module. Do you know if the monitor project would fail if you got rid of the axis2 addressing mar file? Or would it work with no issues? My understanding may be faulty but I thought that the assembly.xml file is a kind of 'parent configuration' to the m-assembly-p plugin because of the idjar-with-dependencies/id tag in it. EITHER you use a default, built-in descriptor (like jar-with-dependencies) when you are using the assembly plugin and then don't specify your own assembly.xml file **or** you build your own custom assembly.xml and tell the assembly plugin about it. Pick one. And if you want to do something custom, please don't use jar-with-dependencies as the id as that already has a definition in Maven. Use alans-custom-id or anything else. Trying to exclude the .mar file inside the m-assembly-p of the pom.xml didn't seem to work. So I'm trying to exclude it inside of the assembly.xml but that isn't working either. At this point I'm either looking in the wrong areas or using the wrong string (org.apache.axis2:addressing:mar:1.6.2) to exclude it. There should be no need to make your own assembly.xml if you simply want to exclude a dependency from being packaged along with the rest of it. You could simply exclude it in one of several places in the pom.xml file. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Error adding file-set for 'org.apache.axis2:addressing:mar:1.6.2' to archive
Thanks you have been very helpful. The monitor project does not need the axis2 addressing mar but it is 'grabbing' it. In the monitor's assembly.xml file and pom.xml there is no reference to axis2. The only reference to it is in the database connectivity project. I'm starting to read the Maven: The Complete Reference. This application has many moving parts and I'm trying to see how Maven is used to manage it. I'm thinking that maybe I don't need to declare the addressing mar file as a dependency. It's needed for the axis2 jars but I might be able to handle it by copying it into the appropriate directory. As I said earlier I'm a .NET developer that has inherited a lot of Maven functionality when the team's maven guru left. So I'm going to do some reading at the request of the team's lead. Maybe on Monday I'll have more questions. -Original Message- From: Wayne Fay [mailto:wayne...@gmail.com] Sent: Friday, June 21, 2013 1:06 PM To: Maven Users List Subject: Re: Error adding file-set for 'org.apache.axis2:addressing:mar:1.6.2' to archive I needed to create a client web service for the database connectivity module. This is where I added the dependency on axis2. Without the .mar file the response coding for the client request call fails. I understand this. You also said the monitor project uses the database connectivity module. Do you know if the monitor project would fail if you got rid of the axis2 addressing mar file? Or would it work with no issues? My understanding may be faulty but I thought that the assembly.xml file is a kind of 'parent configuration' to the m-assembly-p plugin because of the idjar-with-dependencies/id tag in it. EITHER you use a default, built-in descriptor (like jar-with-dependencies) when you are using the assembly plugin and then don't specify your own assembly.xml file **or** you build your own custom assembly.xml and tell the assembly plugin about it. Pick one. And if you want to do something custom, please don't use jar-with-dependencies as the id as that already has a definition in Maven. Use alans-custom-id or anything else. Trying to exclude the .mar file inside the m-assembly-p of the pom.xml didn't seem to work. So I'm trying to exclude it inside of the assembly.xml but that isn't working either. At this point I'm either looking in the wrong areas or using the wrong string (org.apache.axis2:addressing:mar:1.6.2) to exclude it. There should be no need to make your own assembly.xml if you simply want to exclude a dependency from being packaged along with the rest of it. You could simply exclude it in one of several places in the pom.xml file. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Error adding file-set for 'org.apache.axis2:addressing:mar:1.6.2' to archive
The monitor project does not need the axis2 addressing mar but it is 'grabbing' it. In the monitor's assembly.xml file and pom.xml there is no reference to axis2. The only reference to it is in the database connectivity project. In that case, most likely you can simply adjust your current dependency in the monitor project's pom file to something like this: dependency groupIdcom.p1s.mps/groupId !-- a guess -- artifactIdcommon/artifactId !-- another guess -- exclusions exclusion groupIdorg.apache.axis2/groupId artifactIdaddressing/artifactId version${apache.axis2.version}/version typemar/type /exclusion /exclusions /dependency Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org