Re: When using resources:resources, supply properties from jar
Thanks for the help...it's funny that after some searching...I found the following post and noticed that in our codebase someone had copied and used this same exact code to solve it: stackoverflow.com/questions/1231561/how-to-share-common-properties-among-several-maven-projects/1265428#1265428 -- View this message in context: http://maven.40175.n5.nabble.com/When-using-resources-resources-supply-properties-from-jar-tp5668902p5677051.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
When using resources:resources, supply properties from jar
Is there a way when using resources:resources to supply a property file that is within a jar (dependency for the plugin) that is used during the filtering process of the resources files? -- View this message in context: http://maven.40175.n5.nabble.com/When-using-resources-resources-supply-properties-from-jar-tp5668902p5668902.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Custom plugin - how to resolve wildcards in excludes/includes
So I am creating a custom plugin that we are using for compiling things like Drools Rules. I have successfully injected and used excludes to help exclude files from this compilation. I would like to take advantage of the wildcarding commonly used in includes/excludes like **/*.xls. Is there a Maven/Mojo class that can be used to help resolve or match a String to these expressions, as I assume these aren't standard regular expressions. That way if I have multiple files, I could use this helper class in my custom plugin to match resources files with the exclusion list. Thanks... -- View this message in context: http://maven.40175.n5.nabble.com/Custom-plugin-how-to-resolve-wildcards-in-excludes-includes-tp5665480p5665480.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven sleep plugin/functionality between tasks
I am using a maven-weblogic-plugin to deploy multiple wars to weblogic. And it seems that as I deploy more wars, the memory footprint grows and WLS doesn't have time to garbage collect before the next war. So I thought maybe if I could put a sleep functionality after each run of the maven-weblogic-plugin to deploy a war, I could shift the sleep time to get WLS enough time to garbage collect after a war deploy. I saw this thread using the ant plugin. Is there any other way or plugin to create a sleep period in Maven? http://maven.40175.n5.nabble.com/Let-Maven-wait-between-tests-td77033.html Thanks, Jay -- View this message in context: http://maven.40175.n5.nabble.com/Maven-sleep-plugin-functionality-between-tasks-tp5513732p5513732.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Failed to determine Java version for profile jdk* @
The jdk profile is something I tried to address locally as well by defining my own jdk profiles, but I finally removed them since we are only building against jdk16 and most of the reason I was using the profiles was to fix jdk15 issues. These profiles are gone. The question I have is why do I get the Failed to determine Java version for profile. I know previous versions of m2eclipse did not enable the jdk profile by default. I have my projects set to use the workspace JRE (which is a 1.6.0_21) and for suggested performance, my Helios eclipse.ini points to: -vm C:/Development/dev/java/jdk1.6.0_21/jre/bin/client/jvm.dll Should Maven or m2eclipse establish that my JDK is 1.6 and activate the correct profiles in the 3rd party libraries? The interesting thing is that I pretty much seem to get these related errors with apis that have to interact with XML (and I understand why because of the endorsed). So xstream and hibernate are throwing the same issue. 12/14/11 9:17:10 AM PST: [WARN] The POM for com.thoughtworks.xstream:xstream:jar:1.3.1 is invalid, transitive dependencies (if any) will not be available: 6 problems were encountered while building the effective model for com.thoughtworks.xstream:xstream:1.3.1 [ERROR] Failed to determine Java version for profile jdk15 @ [ERROR] Failed to determine Java version for profile jdk16 @ [ERROR] Failed to determine Java version for profile jdk14 @ [ERROR] Failed to determine Java version for profile jdk16 @ com.thoughtworks.xstream:xstream-parent:1.3.1 [ERROR] Failed to determine Java version for profile jdk15 @ com.thoughtworks.xstream:xstream-parent:1.3.1 [ERROR] Failed to determine Java version for profile jdk14 @ com.thoughtworks.xstream:xstream-parent:1.3.1 12/14/11 9:17:10 AM PST: [WARN] The POM for org.hibernate:hibernate-entitymanager:jar:3.6.0.Final is invalid, transitive dependencies (if any) will not be available: 1 problem was encountered while building the effective model for org.hibernate:hibernate-entitymanager:3.6.0.Final [ERROR] Failed to determine Java version for profile jaxb @ Thanks for all your help. I thoroughly love both projects (Maven and CXF) and we have been doing some awesome stuff with these projects. Jay -- View this message in context: http://maven.40175.n5.nabble.com/Failed-to-determine-Java-version-for-profile-jdk-tp5073097p5075150.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Failed to determine Java version for profile jdk* @
Sorry if this question has already been posted. I have tried running Maven 3.0.3 and Maven 2.2.12 (which is the current version we use for building via Hudson). I have a simple project that has poms it inherits from that were defining a maven-compiler-plugin with the target/source set to jdk1.6. Whether or not this configuration existed, I still get the following error on a project that has dependencies to cxf. I am running Eclipse Helios/m2eclipse. Any thoughts as to why this error exists and how to get rid of it. 12/13/11 3:56:15 PM PST: [WARN] The POM for org.apache.cxf:cxf-rt-frontend-jaxws:jar:2.4.4 is invalid, transitive dependencies (if any) will not be available: 5 problems were encountered while building the effective model for org.apache.cxf:cxf-rt-frontend-jaxws:2.4.4 [ERROR] Failed to determine Java version for profile jdk17 @ [ERROR] Failed to determine Java version for profile jdk15 @ [ERROR] Failed to determine Java version for profile jdk15 @ org.apache.cxf:cxf-parent:2.4.4 [ERROR] Failed to determine Java version for profile jdk17 @ org.apache.cxf:cxf-parent:2.4.4 [ERROR] Failed to determine Java version for profile jdk15 @ org.apache.cxf:cxf:2.4.4 12/13/11 3:56:15 PM PST: [WARN] The POM for org.apache.cxf:cxf-rt-transports-http:jar:2.4.4 is invalid, transitive dependencies (if any) will not be available: 3 problems were encountered while building the effective model for org.apache.cxf:cxf-rt-transports-http:2.4.4 [ERROR] Failed to determine Java version for profile jdk15 @ org.apache.cxf:cxf-parent:2.4.4 [ERROR] Failed to determine Java version for profile jdk17 @ org.apache.cxf:cxf-parent:2.4.4 [ERROR] Failed to determine Java version for profile jdk15 @ org.apache.cxf:cxf:2.4.4 12/13/11 3:56:15 PM PST: [WARN] The POM for org.apache.cxf:cxf-rt-ws-security:jar:2.4.4 is invalid, transitive dependencies (if any) will not be available: 4 problems were encountered while building the effective model for org.apache.cxf:cxf-rt-ws-security:2.4.4 [ERROR] Failed to determine Java version for profile jdk15 @ [ERROR] Failed to determine Java version for profile jdk15 @ org.apache.cxf:cxf-parent:2.4.4 [ERROR] Failed to determine Java version for profile jdk17 @ org.apache.cxf:cxf-parent:2.4.4 [ERROR] Failed to determine Java version for profile jdk15 @ org.apache.cxf:cxf:2.4.4 12/13/11 3:56:15 PM PST: [WARN] The POM for org.apache.ws.security:wss4j:jar:1.6.4 is invalid, transitive dependencies (if any) will not be available: 2 problems were encountered while building the effective model for org.apache.ws.security:wss4j:1.6.4 [ERROR] Failed to determine Java version for profile jdk15 @ [ERROR] Failed to determine Java version for profile jdk16 @ Thanks, Jay -- View this message in context: http://maven.40175.n5.nabble.com/Failed-to-determine-Java-version-for-profile-jdk-tp5073097p5073097.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven Shade - createDependencyReducedPom - exclude dependency
I use the createDependencyReducedPom promoteTransitiveDependencies to have Maven Shade generate the reduced pom file with transitive dependencies. The problem I am having is that I want to exclude some of the transitive dependencies from the dependency-reduced-pom.xml. Is this possible? Thanks...jay -- View this message in context: http://maven.40175.n5.nabble.com/Maven-Shade-createDependencyReducedPom-exclude-dependency-tp4869892p4869892.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven Shade - createDependencyReducedPom - exclude dependency
I think I already found a solution by adding the artifact as a dependency and scope = provided. This helped to remove it from the dependency-reduced-pom.xml. -- View this message in context: http://maven.40175.n5.nabble.com/Maven-Shade-createDependencyReducedPom-exclude-dependency-tp4869892p4869938.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Using Shade to create a full jar (like Spring full jar)
I have developers that receive the Eclipse 87 error because the classpath is too long from too many jar files. I want to recreate a Spring full jar like they used to in 2.5.6, the problem is that if I used jarjar...I would have to build a pom so that all the transitive Spring dependencies were defined in the pom because I only want to jarjar the Spring jars. Can I use Shade instead to resolve this? Can I build a pom file of Spring dependencies and use Shade to jar together the Spring jars only and output a pom file that includes dependencies not added to the new jar? Thanks for the help, Jay -- View this message in context: http://maven.40175.n5.nabble.com/Using-Shade-to-create-a-full-jar-like-Spring-full-jar-tp4800558p4800558.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Reactor:resume goal
So two questions about this 1) When doing the following command, do you use the [] because I added them and then removed them and both times it thought these arguments were part of the path. mvn clean install --resume-from [groupId:artifactId] 2) When doing the following command, I tried doing a ../ to go up one folder. Is this actually possible with this syntax? mvn clean install --resume-from path/to/module Thanks, Jay -- View this message in context: http://maven.40175.n5.nabble.com/Reactor-resume-goal-tp4677902p4736022.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Tar pom.xml dependencies - Maven Assembly Plugin?
Thanks...I went through the example and created a bin.xml that represented the jar-with-dependencies example. assembly xmlns=http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd; !-- TODO: a jarjar format would be better -- idjar-with-dependencies/id formats formatjar/format /formats includeBaseDirectoryfalse/includeBaseDirectory dependencySets dependencySet outputDirectory//outputDirectory useProjectArtifacttrue/useProjectArtifact unpacktrue/unpack scoperuntime/scope /dependencySet /dependencySets /assembly And it throws an error when I try this with a sample pom. [INFO] Scanning for projects... [INFO] [INFO] Building Cookbook :: generate-assembly [INFO]task-segment: [package] [INFO] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [WARNING] DEPRECATED [descriptor]: Please use descriptors instead [INFO] [assembly:single {execution: default}] [WARNING] Cannot include project artifact: org.apache.maven.cookbook:generate-assembly:pom:1.0-SNAPSHOT; it doesn't have an associated file or directory. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to create assembly: Error creating assembly archive jar-with-dependencies: You must set at least one file. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 2 seconds [INFO] Finished at: Tue Jan 11 13:42:25 PST 2011 [INFO] Final Memory: 11M/28M [INFO] Any thoughts?thanks...jay -- View this message in context: http://maven.40175.n5.nabble.com/Tar-pom-xml-dependencies-Maven-Assembly-Plugin-tp3335797p3337379.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Tar pom.xml dependencies - Maven Assembly Plugin?
Is the Maven Assembly Plugin the right way for me to define a pom.xml and be able to tar up the jars that are labeled as a dependency? The only way I know how to do this with my limited knowledge is to make the pom.xml a war and allow the war to pull all the dependency jars into the target directory and then tar those up. Thanks for your help, Jay Blanton -- View this message in context: http://maven.40175.n5.nabble.com/Tar-pom-xml-dependencies-Maven-Assembly-Plugin-tp3335797p3335797.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Customizing maven site
The next question is that it appears when mvn site is running that maven is trying to build the source code. Is it possible to build the site without maven attempting to build the source? Thanks for your help, jay -- View this message in context: http://old.nabble.com/Customizing-maven-site-tp27249142p27327121.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Customizing maven site
Awesome...thanks for the clarification. Again...I building mvn site for COBOL code... hahahahawho knows what kinda sites I will build. jay Dennis Lundberg-2 wrote: On 2010-01-26 19:08, jaybytez wrote: The next question is that it appears when mvn site is running that maven is trying to build the source code. Is it possible to build the site without maven attempting to build the source? If you run this command instead, it will build only the site and nothing else. This will mean that you might loose some of the reports though. mvn site:site Thanks for your help, jay -- Dennis Lundberg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://old.nabble.com/Customizing-maven-site-tp27249142p27328076.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Customizing maven site
We are trying to utilize maven across our different platforms. In fact one of our team members is creating plugins to build code for our OpenVMS platform. What I want to know is that the maven site generation is really tailored to java and the reports it generates. How would I best customize the maven site capabilities/goals, so that the documentation could be generated, but Java specific reports are not generated (like jdepend, javadoc, etc). Do I just need to exclude these plugins in my pom.xml? The generation of a site and documentation accompanying the application codebase would be a huge benefit for centralizing documentation/communication about our OpenVMS applications, even if these individual reports are not generated. Thanks, jay -- View this message in context: http://old.nabble.com/Customizing-maven-site-tp27249142p27249142.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: site.xml for parent/child site which are siblings
Thanks for the suggestion. I will definitely look into it. I tried just doing the following in my child site.xml: menu name=Used By item name=Avitek Parent href=../index.html/ /menu But this didn't work, it didn't even show the link. It's interesting, almost like the parent site.xml doesn't care about the child site.xmls. When I run $ mvn site:stage -DstagingDirectory=c:/beaportal/user_projects/workspaces/default/avitek/published-site/site It correctly takes my structure: -avitekApp (EAR) - pom.xml -avitekParent - src/site/site.xml (menu ref=modules name=Components/) - pom.xml -avitekWeb (WAR) - pom.xml And creates a structure of: -site - Parent Site - avitekApp Site - index.html - avitekWeb Site - index.html - index.html (with links to child sites) It's just that the child sites, don't show a link to the parent. I will try the information you provided in the responses to see if it works. When you run mvn site against a parent pom, does it use the parent site.xml and the child site.xmls to build the generated site? Thanks, Jay -- View this message in context: http://n2.nabble.com/site.xml-for-parent-child-site-which-are-siblings-tp3259842p3268421.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: site.xml for parent/child site which are siblings
Okay...so I verified that each one of the sub projects has a site.xml with a menu ref=parent/ and I verified that I am running site-plugin 2.0-beta-7 and my sub projects still don't produce a link based on menu ref=parent/. I did not change the skin yet, but that should just be based on the CSS exposed...otherwise that shouldn't (I am assuming) effect the generated documentation. Any other thoughts? One other question two...if a project is used by multiple projects...does menu ref=parent/ show a link for all those parent projects? Thanks...jay I have been using menu ref, even as recently as two days ago in one of the multi-module project. Which version of site-plugin are you using? I'm using 2.0-beta-7. Do all the sibling modules have a site descriptor, with menu ref=parent? The breadcrumbs could be a problem in the default skin. I don't use the default skin, if you know velocity, you can download the default skin and peer into where things might be going wrong. (BTW, you can change the skin in site.xml) Thanks, mohan kr -- View this message in context: http://www.nabble.com/site.xml-for-parent-child-site-which-are-siblings-tp24489265p24500967.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: site.xml for parent/child site which are siblings
The schema annotation says the following: xs:documentation source=descriptionA reference to a pre-defined menu, such as a codereports/code, codemodules/code or codeparentProject/code./xs:documentation So it says a value of parentProject as opposed to parent. -- View this message in context: http://www.nabble.com/site.xml-for-parent-child-site-which-are-siblings-tp24489265p24501723.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: site.xml for parent/child site which are siblings
Is this the post: http://n2.nabble.com/Site-generation-tutorials--td327.html#a3239539 Benson Margulies wrote: I've filed a JIRA on this and also posted a workaround, you have to set up the URL for each project yourself. If you can't find my posted workaround I can post it again. -- View this message in context: http://n2.nabble.com/site.xml-for-parent-child-site-which-are-siblings-tp3259842p3265147.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
site.xml for parent/child site which are siblings
I have the following structure for my app: avitek -avitekApp (EAR) - pom.xml -avitekParent - src/site/site.xml - pom.xml -avitekWeb (WAR) - pom.xml My parent pom.xml in avitekParent says the following: [code] modelVersion4.0.0/modelVersion groupIdavitek-sample/groupId artifactIdparent/artifactId packagingpom/packaging version1.0-SNAPSHOT/version nameMaven 2 Portal Sample/name modules module../avitekApp/module module../avitekWeb/module /modules [/code] Then my site.xml for the parent (avitekParent) says this: [code] menu ref=modules name=Components/ [/code] So when I open: C:\beaportal\user_projects\workspaces\default\avitek\avitekParent\target\site\index.html It gives me links to my child projects (modules), but the urls that get generated into the html are like this: C:\beaportal\user_projects\workspaces\default\avitek\avitekParent\target\site\avitekWeb\index.html And they need to look like: C:\beaportal\user_projects\workspaces\default\avitek\avitekWeb\target\site\index.html Any thoughts or suggestions? Thanks...jay -- View this message in context: http://www.nabble.com/site.xml-for-parent-child-site-which-are-siblings-tp24489265p24489265.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: site.xml for parent/child site which are siblings
Looks like it works if use the following at the command line: $ mvn site:stage -DstagingDirectory=c:/beaportal/user_projects/workspaces/default/avitek/published-site/site Is it best to build a site to a staging area and then push that staging area to a remote server? It appears to correctly have created the site with no modifications to POMs. My only outstanding question now is, the menu ref=parent is not working for me in the child poms...any reason for this? Thanks - jay jaybytez wrote: I have the following structure for my app: avitek -avitekApp (EAR) - pom.xml -avitekParent - src/site/site.xml - pom.xml -avitekWeb (WAR) - pom.xml My parent pom.xml in avitekParent says the following: [code] modelVersion4.0.0/modelVersion groupIdavitek-sample/groupId artifactIdparent/artifactId packagingpom/packaging version1.0-SNAPSHOT/version nameMaven 2 Portal Sample/name modules module../avitekApp/module module../avitekWeb/module /modules [/code] Then my site.xml for the parent (avitekParent) says this: [code] menu ref=modules name=Components/ [/code] So when I open: C:\beaportal\user_projects\workspaces\default\avitek\avitekParent\target\site\index.html It gives me links to my child projects (modules), but the urls that get generated into the html are like this: C:\beaportal\user_projects\workspaces\default\avitek\avitekParent\target\site\avitekWeb\index.html And they need to look like: C:\beaportal\user_projects\workspaces\default\avitek\avitekWeb\target\site\index.html Any thoughts or suggestions? Thanks...jay -- View this message in context: http://www.nabble.com/site.xml-for-parent-child-site-which-are-siblings-tp24489265p24489751.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org