Error using Maven in Red Hat 5
Hi I installed maven 2.0.9 on my red had 5 machine And when I run it I get the following error mvn --version + Error stacktraces are turned on. Maven version: 2.0.9 Java version: 1.6.0_29 OS name: linux version: 2.6.18-238.el5 arch: amd64 Family: unix [DEBUG] Building Maven user-level plugin registry from: '/home/oracle/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/home/oracle/apache-maven-2.0.9/conf/plugin-registry.xml' [INFO] Scanning for projects... [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Invalid task 'MAVEN_OPTS=-Xms512m': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal [INFO] [DEBUG] Trace org.apache.maven.BuildFailureException: Invalid task 'MAVEN_OPTS=-Xms512m': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1521) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:405) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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:597) 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: 1 second [INFO] Finished at: Thu Dec 01 09:09:22 IST 2011 [INFO] Final Memory: 2M/245M [INFO] I have JAVA_HOME properly configured Thanks Ron -- View this message in context: http://maven.40175.n5.nabble.com/Error-using-Maven-in-Red-Hat-5-tp5037792p5037792.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: repositories acting up?
Hello, Note there is a relocation here curl -I http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.properties HTTP/1.1 302 Moved Temporarily Server: nginx/1.0.1 Date: Thu, 01 Dec 2011 08:40:13 GMT Content-Type: text/html Content-Length: 160 Connection: keep-alive Location: http://mirrors.ibiblio.org/pub/mirrors/maven2/dot-index/nexus-maven-repository-index.properties So if you pass tru any corporate proxy to download that, you must add karma for that. 2011/11/30 Maven User maven.2.u...@gmail.com: Hi all - Are people having any issues connecting to repo1 via their repo managers today? I'm unable to connect: jvm 1 | org.sonatype.nexus.proxy.RemoteStorageException: Transport error while executing GET method [repositoryId=central, requestPath=/.index/ nexus-maven-repository-index.pr operties, remoteUrl= http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.properties ] If I try to wget that same index file, I get a 403 - forbidden. Nexus seems unable to resolve that same file. If I put that url into my browser, things work just fine. Any suggestions? -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Vote started for Apache Maven 3.0.4 (take 2)
Hello, FYI, a second vote has started for Apache Maven 3.0.4 see http://markmail.org/message/beso4bgthzk3i5ul Thanks, -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
WebLogic MBean Maker and Maven (without a local WSL installation)
I'm trying to get a Maven build that uses WebLogic's MBean Maker (v10.3.3.0) to produce a MBean jar to work without requiring a local WSL installation. So far I have failed and I wonder if there's anyone out there who has succeeded? I want the build to only use dependencies from the repo and not have any system scope dependencies or similar references to a locally installed WebLogic Server installation. /Anders - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: repositories acting up?
Heh! What do you mean by karma? I tried pointing directly at that mirror and didn't have any luck (same error messages). Thank you all for posting tips/help - I appreciate it! On Thu, Dec 1, 2011 at 3:41 AM, Olivier Lamy ol...@apache.org wrote: Hello, Note there is a relocation here curl -I http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.properties HTTP/1.1 302 Moved Temporarily Server: nginx/1.0.1 Date: Thu, 01 Dec 2011 08:40:13 GMT Content-Type: text/html Content-Length: 160 Connection: keep-alive Location: http://mirrors.ibiblio.org/pub/mirrors/maven2/dot-index/nexus-maven-repository-index.properties So if you pass tru any corporate proxy to download that, you must add karma for that. 2011/11/30 Maven User maven.2.u...@gmail.com: Hi all - Are people having any issues connecting to repo1 via their repo managers today? I'm unable to connect: jvm 1| org.sonatype.nexus.proxy.RemoteStorageException: Transport error while executing GET method [repositoryId=central, requestPath=/.index/ nexus-maven-repository-index.pr operties, remoteUrl= http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.properties ] If I try to wget that same index file, I get a 403 - forbidden. Nexus seems unable to resolve that same file. If I put that url into my browser, things work just fine. Any suggestions? -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: repositories acting up?
As it looks you are probably/maybe in an enterprise secured env. You probably go to repo1.maven.org tru a proxy. So as there is a redirect maybe the proxy block access to redirection to http://mirrors.ibiblio.org/pub/mirrors/maven2. If not and as it looks to be an issue with your nexus installation the best is probably to ask on nexus user mailing list. 2011/12/1 Maven User maven.2.u...@gmail.com: Heh! What do you mean by karma? I tried pointing directly at that mirror and didn't have any luck (same error messages). Thank you all for posting tips/help - I appreciate it! On Thu, Dec 1, 2011 at 3:41 AM, Olivier Lamy ol...@apache.org wrote: Hello, Note there is a relocation here curl -I http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.properties HTTP/1.1 302 Moved Temporarily Server: nginx/1.0.1 Date: Thu, 01 Dec 2011 08:40:13 GMT Content-Type: text/html Content-Length: 160 Connection: keep-alive Location: http://mirrors.ibiblio.org/pub/mirrors/maven2/dot-index/nexus-maven-repository-index.properties So if you pass tru any corporate proxy to download that, you must add karma for that. 2011/11/30 Maven User maven.2.u...@gmail.com: Hi all - Are people having any issues connecting to repo1 via their repo managers today? I'm unable to connect: jvm 1 | org.sonatype.nexus.proxy.RemoteStorageException: Transport error while executing GET method [repositoryId=central, requestPath=/.index/ nexus-maven-repository-index.pr operties, remoteUrl= http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.properties ] If I try to wget that same index file, I get a 403 - forbidden. Nexus seems unable to resolve that same file. If I put that url into my browser, things work just fine. Any suggestions? -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Problem resolving property
Hi all, I have a problem that maven doesn't resolve a property. In a project A we have the following dependency: dependency groupIdcomponents/groupId artifactIdlibrary-bundle/artifactId version3.12/version typepom/type /dependency In dependent project library-bundle (Version 3.12) we have the following property declared: profile idutilization/id activation activeByDefaulttrue/activeByDefault /activation dependency groupIdmy.jdbc.driver/groupId artifactIdmydriver/artifactId version${oracle.jdbc.driver.version}/version /dependency /profile Project A and project library-bundle have a common parent POM in which the variable ${oracle.jdbc.driver.version} is declared: profile idcontext_x/id activation property nameenv.PROJECT/name valuecontext_x/value /property /activation properties oracle.jdbc.driver.version11.1.0.7.0/oracle.jdbc.driver.version /properties /profile When trying to build project A under profile 'context_x' (with the correct environment variable PROJECT set to 'context_x') it fails: [INFO] Failed to resolve artifact. Missing: -- 1) component.oracle.jdbc.driver:ojdbc6:jar:${oracle.jdbc.driver.version} The missing artifact is definetly existing with the specified in the local repository. Anybody has an idea why maven can't resolve the dependency? Regards, Abid -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
maven failing at the end of a build with a plexus error
Maven 2.2.1. This only happens inside Jenkins, but even when not using the jenkins maven plugin. What is it trying to tell us? [INFO] Running tasks tasks [INFO] com.basistech.rex2009.common.TaskSequence [INFO] com.basistech.rex2009.common.data.CorpusNexmlReader [INFO] /basis/treez/jenkins/ciderpress-home/jobs/RexRegressionTestsCmd/workspace/lang/eng_uc/target/corpora/en/locked [INFO] [ERROR] FATAL ERROR [INFO] org.codehaus.classworlds.NoSuchRealmException: plexus.core at org.codehaus.classworlds.ClassWorld.getRealm(ClassWorld.java:128) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:434) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-assembly-plugin StackOverflowError
I ended up getting this resolved some time ago but I figure I post the best solution. The stackoverflow isnt a product of infinite recursion it's just a matter of recursion that is simply too deep because of how far down the file directory tree goes. Simply increasing the stack size with -Xss. We increased it to 2m and the assembler plugin was able to handle the recursive stack size. -- View this message in context: http://maven.40175.n5.nabble.com/maven-assembly-plugin-StackOverflowError-tp3321403p5039058.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
gpg plugin signing poms, 2nd finalName part not substituted?
I have a project which specifies in the build a finalName which has 2 substitutable parts: finalName${project.artifactId}_${parsedVersion.osgiVersion}/finalName where the parsedVersion.osgiVersion property is set by the build-helper-maven-plugin, in the first life-cycle-phase. This property is correctly substituted by the maven-jar-plugin - in that it builds a jar with the name xyz_2.4.0.jar (assuming for example, that the project.artifactId is xyz). This property is correctly substituted by the maven-sources-plugin, too - building xyz_2.4.0-sources.jar. However, the maven gpg plugin uses this bit of code to copy the pom to the target, prior to signing it: // // POM // File pomToSign = new File( project.getBuild().getDirectory(), project.getBuild().getFinalName() + .pom ); The file it produces is xyz_${parsedVersion.osgiVersion}.pom. For some reason, the only the 1st property (${project.artifactId}) is being substituted, but the 2nd value is not. The GPG plugin runs after the other plugins - the jar and the sources plugins, so the property already has a value. Any ideas on what to do to get the GPG plugin to substitute this value? (I'm using version 1.3 of the maven-gpg-plugin). -Marshall - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: repositories acting up?
Comments below: On Thu, Dec 1, 2011 at 9:12 AM, Olivier Lamy ol...@apache.org wrote: As it looks you are probably/maybe in an enterprise secured env. Very true! You probably go to repo1.maven.org tru a proxy. That's also true, but the problem with the secured enterprise environment is there tends to be more fingers in the pie than one can count. So the understanding varies a bit from person to person. So as there is a redirect maybe the proxy block access to redirection to http://mirrors.ibiblio.org/pub/mirrors/maven2. Yep, I have that as the url for the main maven repository: http://mirrors.ibiblio.org/pub/mirrors/maven2/ And still have the same issue. If not and as it looks to be an issue with your nexus installation the best is probably to ask on nexus user mailing list. I will/have been - just wanted to make sure there wasn't anything funky going on with repo1 that I should take into account. Thank you very much for all the replies/help - I appreciate it! 2011/12/1 Maven User maven.2.u...@gmail.com: Heh! What do you mean by karma? I tried pointing directly at that mirror and didn't have any luck (same error messages). Thank you all for posting tips/help - I appreciate it! On Thu, Dec 1, 2011 at 3:41 AM, Olivier Lamy ol...@apache.org wrote: Hello, Note there is a relocation here curl -I http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.properties HTTP/1.1 302 Moved Temporarily Server: nginx/1.0.1 Date: Thu, 01 Dec 2011 08:40:13 GMT Content-Type: text/html Content-Length: 160 Connection: keep-alive Location: http://mirrors.ibiblio.org/pub/mirrors/maven2/dot-index/nexus-maven-repository-index.properties So if you pass tru any corporate proxy to download that, you must add karma for that. 2011/11/30 Maven User maven.2.u...@gmail.com: Hi all - Are people having any issues connecting to repo1 via their repo managers today? I'm unable to connect: jvm 1| org.sonatype.nexus.proxy.RemoteStorageException: Transport error while executing GET method [repositoryId=central, requestPath=/.index/ nexus-maven-repository-index.pr operties, remoteUrl= http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.properties ] If I try to wget that same index file, I get a 403 - forbidden. Nexus seems unable to resolve that same file. If I put that url into my browser, things work just fine. Any suggestions? -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
how to mirror a repo.
Hi All, I am facing an issue while downloading mule artifacts from below repository. I have not declared this repo anywhere but some how it is coming through transitive dependencies POM configs, not sure. http://dev.ee.mulesource.com/repository/content/repositories/ext-release s The repository is not up, so I need to mirror it using my organization artifactory. But not getting what to put in mirrorOf tag. It should be a url or some id. Any idea will be very useful. Thanks Jagjit. This message, including any attachments, is intended only for the recipient(s) named above. It may contain confidential and privileged information. If you have received this communication in error, please notify the sender immediately and destroy or delete the original message. Also, please be aware that if you are not the intended recipient, any review, disclosure, copying, distribution or any action or reliance based on this message is prohibited by law.
Re: repositories acting up?
Before I give up here - is there an secured version of repo1? On Thu, Dec 1, 2011 at 11:20 AM, Maven User maven.2.u...@gmail.com wrote: Comments below: On Thu, Dec 1, 2011 at 9:12 AM, Olivier Lamy ol...@apache.org wrote: As it looks you are probably/maybe in an enterprise secured env. Very true! You probably go to repo1.maven.org tru a proxy. That's also true, but the problem with the secured enterprise environment is there tends to be more fingers in the pie than one can count. So the understanding varies a bit from person to person. So as there is a redirect maybe the proxy block access to redirection to http://mirrors.ibiblio.org/pub/mirrors/maven2. Yep, I have that as the url for the main maven repository: http://mirrors.ibiblio.org/pub/mirrors/maven2/ And still have the same issue. If not and as it looks to be an issue with your nexus installation the best is probably to ask on nexus user mailing list. I will/have been - just wanted to make sure there wasn't anything funky going on with repo1 that I should take into account. Thank you very much for all the replies/help - I appreciate it! 2011/12/1 Maven User maven.2.u...@gmail.com: Heh! What do you mean by karma? I tried pointing directly at that mirror and didn't have any luck (same error messages). Thank you all for posting tips/help - I appreciate it! On Thu, Dec 1, 2011 at 3:41 AM, Olivier Lamy ol...@apache.org wrote: Hello, Note there is a relocation here curl -I http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.properties HTTP/1.1 302 Moved Temporarily Server: nginx/1.0.1 Date: Thu, 01 Dec 2011 08:40:13 GMT Content-Type: text/html Content-Length: 160 Connection: keep-alive Location: http://mirrors.ibiblio.org/pub/mirrors/maven2/dot-index/nexus-maven-repository-index.properties So if you pass tru any corporate proxy to download that, you must add karma for that. 2011/11/30 Maven User maven.2.u...@gmail.com: Hi all - Are people having any issues connecting to repo1 via their repo managers today? I'm unable to connect: jvm 1| org.sonatype.nexus.proxy.RemoteStorageException: Transport error while executing GET method [repositoryId=central, requestPath=/.index/ nexus-maven-repository-index.pr operties, remoteUrl= http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.properties ] If I try to wget that same index file, I get a 403 - forbidden. Nexus seems unable to resolve that same file. If I put that url into my browser, things work just fine. Any suggestions? -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Handling Non-Public runtime packages
I am perplexed by the following situation: I work for a very large corporation with strict bureaucratic rules about what you can use. Nonetheless, they have a maven repository administered by very helpful people. However the maven repository people don't talk so much to the technical standards people (they don't even know each other) and therein lies the problem. The technical standards folks mandate that certain versions of application servers (for example, JBoss) must be used. These are not the publicly available versions commonly found but enterprise versions that are either built by RedHat for specific corporate clients or available to any paying corporate client, I'm not sure which. These come packaged in .zip files that may be downloaded from an internal corporate web site. That would be okay if all I was concerned about was creating a server to develop on. But I also need to develop against the targeted runtime of that server, and I want to use Maven, as I could with the publicly available versions of the server. To do that, I need to have these server runtime jars as Provided dependencies in my project. However, there are no poms included with this zip file. I could load every jar in the package into a team-private third party repo in the central repo, but this would then be just a bunch of jars with no inter-dependency information available. Even if POMs were available, getting them all into the repository is a non-trivial task. How does one cope with this situation? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Vote started for Apache Maven 3.0.4 (take 2)
Hello Olivier, I used the new 3.0.4 on a few projects and it seems to work fine. However the images at new ref page at http://maven.apache.org/ref/3.0.4/ are to big for my 1280x800 resolution in Chrome as they are spread on two rows, which makes me scroll a lot. Really like the new fluido-skin, though. Regards Mirko On Thu, Dec 1, 2011 at 10:23, Olivier Lamy ol...@apache.org wrote: Hello, FYI, a second vote has started for Apache Maven 3.0.4 see http://markmail.org/message/beso4bgthzk3i5ul Thanks, -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - 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
Handling Non-Public runtime packages
I am perplexed by the following situation: I work for a very large corporation with strict bureaucratic rules about what you can use. Nonetheless, they have a maven repository administered by very helpful people. However the maven repository people don't talk so much to the technical standards people (they don't even know each other) and therein lies the problem. The technical standards folks mandate that certain versions of application servers (for example, JBoss) must be used. These are not the publicly available versions commonly found but enterprise versions that are either built by RedHat for specific corporate clients or available to any paying corporate client, I'm not sure which. These come packaged in .zip files that may be downloaded from an internal corporate web site. That would be okay if all I was concerned about was creating a server to develop on. But I also need to develop against the targeted runtime of that server, and I want to use Maven, as I could with the publicly available versions of the server. To do that, I need to have these server runtime jars as Provided dependencies in my project. However, there are no poms included with this zip file. I could load every jar in the package into a team-private third party repo in the central repo, but this would then be just a bunch of jars with no inter-dependency information available. Even if POMs were available, getting them all into the repository is a non-trivial task. How does one cope with this situation? smime.p7s Description: S/MIME Cryptographic Signature
BUILD FAILURE : FactoryBean does not take parameters
Hi, Someone have an idea why maven is not able to compile the code using generic java 1.5. ValueDomainServiceFactory is the class that contains the generic code. see below the commands for the compilation: In order: mvn version mvn help:effective-pom mvn clean mvn compile The file -ValueDomainServiceFactory.java- contain the code where maven gives an error: ValueDomainServiceFactory.java:[24,61] type org.springframework.beans.factory.FactoryBean does not take parameters (See attached file: effective-pom.txt)(See attached file: mvn version.txt) (See attached file: mvn-clean.txt)(See attached file: mvn-compile.txt)(See attached file: ValueDomainServiceFactory.java) -- David Bernard Intact Corporation Financière Intégrateur / integrator T: 514-495-6370, poste 60699 F: 514-493-9636 C: david.bern...@intact.net Ce messsage et toutes les pièces jointes qu'il contient sont confidentiels et établis à l'intention exclusive des ses destinataires. Si vous recevez ce message par erreur, veuillez en avertir immédiatement l'expéditeur et le supprimer. Toute autre utilisation , divulgation, diffusion ou reproduction de ce message est strictement interdite. Pensez à l'environnement avant d'imprimer ce message. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: generate-test-resources lifecycle question
The processing that I am writing about is not in the parent POM, it is in my child POM. -- View this message in context: http://maven.40175.n5.nabble.com/generate-test-resources-lifecycle-question-tp5032543p5040180.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
Eclipse project under maven with JBoss-packaging plug-in
Hello, I'm trying to get a JBoss ESB project working under Maven in Eclipse. I downloaded the jboss-packaging-maven-plugin-2.2.jar and put it into c:\program files\Apache Software Foundation\apache-maven-3.0.3\lib\ with other jars (Question 1: is that the right place?). Then I tried to make a new Maven project in Eclipse but the jboss-packaging archetype doesn't show up in the dropdown list. (Question 2: when I point to that jar in the Add archetype it still doesn't appear, even after closing and re-opening Eclipse. How do I get it into the list?) And, when I go to this page: http://mojo.codehaus.org/jboss-packaging-maven-plugin/examples/example-basic.html there is a discussion of changes to an xml file. (Question 3: Where is that file?). Those are a lot of questions for one post, I know, but any leads on any of them would be appreciated! Barney
Re: Eclipse project under maven with JBoss-packaging plug-in
On Fri, Dec 2, 2011 at 7:50 AM, Barney Sperlin bsperli...@yahoo.com wrote: Hello, I'm trying to get a JBoss ESB project working under Maven in Eclipse. I downloaded the jboss-packaging-maven-plugin-2.2.jar and put it into c:\program files\Apache Software Foundation\apache-maven-3.0.3\lib\ with other jars (Question 1: is that the right place?). Then I tried to make a new Maven project in Eclipse but the jboss-packaging archetype doesn't show up in the dropdown list. (Question 2: when I point to that jar in the Add archetype it still doesn't appear, even after closing and re-opening Eclipse. How do I get it into the list?) And, when I go to this page: http://mojo.codehaus.org/jboss-packaging-maven-plugin/examples/example-basic.html there is a discussion of changes to an xml file. (Question 3: Where is that file?). Those are a lot of questions for one post, I know, but any leads on any of them would be appreciated! Barney Mate, I can tell from this email this is probably the first time you've used Maven. Congratulations! And enjoy your journey. But you are trying to be a master painter when you haven't even tried finger painting. Take a deep breath and relax, do yourself a favour and just get some basic skills. I recommend: * Browse around http://maven.apache.org/ ** Under Learning Maven ** Read Run Maven http://maven.apache.org/run-maven/index.html ** Read Use Maven http://maven.apache.org/users/index.html *** Especially The 5 minute test - Learn how to use Maven in 5 minutes http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html If you have someone locally who already knows Maven you might want to ask them if they can spare some time to help you out. If not, don't worry but it would help speed up the process. There is a list of free books at http://maven.apache.org/articles.html Both Apache Maven 2: Effective Implementation and Maven: The Definitive Guide are good books to read/skim. After this, you should be able to answer your own questions easily. cheers, Barrie - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
YUI Compressor Maven plugin executed at wrong time and tomcat plugin not using yui-compressor output
Hello everyone! I'm trying to get some basic maven build processes configured correctly with my Java project, and beyond Stackoverflow, I'm not sure where else to turn. I'd like to compress all of my javascript files and aggregate them using YUICompressor, and I saw that there was a maven plugin to allow me to do this. I got it working for the most part. I am also using the Mojo tomcat plugin as well. When i go to run the tomcat:run goal, tomcat does not read from the target's output directory (this is where the YUI compressor put my javascript files) - but rather, it reads from the actual source files in my src/main/ webapp/scripts directory. Of course, the aggregated javascript file (all.js) is not there. This makes sense, but is a big problem for me. I have a few questions. 1. How can I get the tomcat plugin to read the target's output folder that the yui compressor plugin created? 2. Do I have to run the yui compressor maven goal every time I want to update my javascript files during development while my tomcat instance is running? 3. How can tell Maven that I want to run the YUI compressor AFTER Maven copies over the `src/main/webapp` directory? Currently, Maven runs the YUI compressor, but then overwrites all of the compressed css and javascript files with the original source files, defeating the purposes of compressing them ;) 4. Is there a better way to achieve my objective rather than using the YUI compressor? Essentially, my end goal is to be able to develop JavaScript code in separate files and test my source files in development mode without having to aggregate them... but I want to compress and aggregate the files and use the `all.js` script when the application is running in production mode. While the Rails people have certainly figured this out, this seems to be a non-trivial thing to do with Maven and Spring. I would appreciate any and all assistance on how I can get this running correctly. Thanks!
Re: Handling Non-Public runtime packages
I recognize your situation and here's what I've done for JBoss EAP (4.3 and 5.0): For all the runtime artifacts of the platform, I've created a tool that analyzes the dependencies between those artifacts. Based on this information I've created poms for all the artifact with this dependency info. The approach has been a best-effort, and might not be absolutely correct. For example, I'm not sure that dependencies due to annotations will be reflected. For the GAVs I've decided to give all artifacts the same groupId (mycompany-jbosseap), the artifactId is the original name of the jar and the version is the version number of the complete platform (5.0.0.GA for example). The reason for the groupId was to make sure that there would never be clash with something that JBoss/Red Hat would release. Using the version number of the platform is because it almost impossible to figure out the original version of some of the artifacts. Also, I've created import poms with dependencyManagement for all the artifacts. I have such an import pom for server side (the production server config) and one for client side. This approach works ok, but there are drawbacks. Also, some of the original decision I would probably do differently today if I started from a clean sheet. One drawback is that you could get the same artifact included twice, if some 3rd party dependency uses it's original GA. For example, servlet-api as it's original groupId is javax.servlet and not mycompany-jbosseap. This is not a problem for a knowledgeable Maven user as you just add exclusions. But for normal developers I find that this is magic and they normally never analyze their dependency tree. If I would do this again, I would spend time figuring out the correct groupId (and artifactId) for the artifactId, at least for the non-jboss ones (many of the jboss ones have changed groupId recently, which make them tricky). The version number could then be some thing like 5.0.0.GA-jbosseap to make sure it would not interfere with any official version. All developers are instructed to use these artifacts instead of any other, if possible. This will ensure that even compilation is done towards what will be the runtime platform. Then unit testing will use the same artifacts as are used in runtime. Any issues will be found as early as possible, which is important IMHO. A (customized) zip of the platform is also available from the repo. Which makes it possible to use Codehaus Cargo to automate ITs where the app server is installed, configured, started, and the application deployed to, as part of a Maven build. Quite nifty if you ask me. If you're in fact using JBoss EAP, I should inform you that Red Hat has created their own EAP 5.0 Maven repo. However, they do not have any dependency information in their poms which make their solution less good than mine IMO. They claim this will be fixed for the EAP 6.0 repo as Maven will then be used to build the platform. If I recall correctly they have the correct groupIds and artifactIds though. Search for Project Wolf to find out more. /Anders On Thu, Dec 1, 2011 at 21:00, Steve Cohen stevec...@comcast.net wrote: I am perplexed by the following situation: I work for a very large corporation with strict bureaucratic rules about what you can use. Nonetheless, they have a maven repository administered by very helpful people. However the maven repository people don't talk so much to the technical standards people (they don't even know each other) and therein lies the problem. The technical standards folks mandate that certain versions of application servers (for example, JBoss) must be used. These are not the publicly available versions commonly found but enterprise versions that are either built by RedHat for specific corporate clients or available to any paying corporate client, I'm not sure which. These come packaged in .zip files that may be downloaded from an internal corporate web site. That would be okay if all I was concerned about was creating a server to develop on. But I also need to develop against the targeted runtime of that server, and I want to use Maven, as I could with the publicly available versions of the server. To do that, I need to have these server runtime jars as Provided dependencies in my project. However, there are no poms included with this zip file. I could load every jar in the package into a team-private third party repo in the central repo, but this would then be just a bunch of jars with no inter-dependency information available. Even if POMs were available, getting them all into the repository is a non-trivial task. How does one cope with this situation? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
prevent changes on tags
Hi together, I tried to prevent commits into tags in subversion. I did it with an pre-commit hook. It worked fine until I tried to create a new branch (of basis of a release), because on every branchcreation a commit to the release is send (changing the pom, but without any changes) I googled it and found that it is a unsolved bug of the Maven-Release-Plugin (http://jira.codehaus.org/browse/MRELEASE-335). Had anybody the same problems on preventing commits to tags? And how did you solve it? Thanks Chris *** Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. This email may contain confidential and/or privileged information. If you are not the intended recipient (or have received this email in error) please notify the sender immediately and destroy this email. Any unauthorized copying, disclosure or distribution of the material in this email is strictly forbidden. *** - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org