Re: JNLP Plugin not working in 1.0
The bug can be fixed if someone is interested. On Fri, 13 Aug 2004 23:54:41 +0200, Daniel Frey <[EMAIL PROTECTED]> wrote: > Thanks for the hint. I am a little bit helpless in understanding the real > solution out of the description and comments. Additionally this bug won't > get fixed? > > It seems to me as a newbe to internals of maven that the two java files > could be the solution. The diff indicates that these files exists somewhere. > But where? I don't find any files like that in the .maven or the install > directory. Any hints for how to install the patch (if it is one)? > > Thanks a lot > Daniel > > > -UrsprÃngliche Nachricht- > > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Gesendet: Freitag, 13. August 2004 22:34 > > An: Maven Users List > > Betreff: Re: JNLP Plugin not working in 1.0 > > > > > > > > It is a bug in plugin.jelly. See: > > http://jira.codehaus.org/browse/MPJNLP-13 > > > > Marcin Werla > > > > WiadomoÅÄ Oryginalna > > Od: Daniel Frey <[EMAIL PROTECTED]> > > Do: 'Maven Users List' <[EMAIL PROTECTED]> > > Data: Fri, 13 Aug 2004 19:00:00 +0200 > > Temat: JNLP Plugin not working in 1.0 > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- http://www.multitask.com.au/people/dion/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven jar override does not work?
'll notice it works for concurrent. I think override has a bug with '-'. I think it already exists in JIRA. You might like to find and watch it. (or submit a patch!) On Thu, 12 Aug 2004 21:49:35 -0700 (PDT), Robin Wu <[EMAIL PROTECTED]> wrote: > Hello > > I use maven on Windows XP to build a open source crawler - Heritrix. In > project.properties, maven.jar.override property is set to override the dependencies > stated in the project.xml with JAR artifacts in the local system. But, when using > maven to build the project. it still tried to download the dependencies from remote > repository, and failed. I wonder why the override does not work. > > In project.properties, jar override is set as following: > maven.jar.override = on > maven.jar.commons-httpclient = ${basedir}/lib/commons-httpclient-2.0.jar > maven.jar.commons-logging = ${basedir}/lib/commons-logging-1.0.3.jar > //many jars omitted here > maven.jar.commons-net = ${basedir}/lib/commons-net-1.1.0.jar > maven.jar.concurrent = ${basedir}/lib/concurrent-1.3.2.jar > > build the project, the results show as below. > F:\Heritrix\maven > __ __ > | \/ |__ _Apache__ ___ > | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ > |_| |_\__,_|\_/\___|_||_| v. 1.0 > commons-net-1.1.0.jar > Error retrieving artifact from > [http://www.ibiblio.org/maven/commons-net/jars/commons-net-1.1.0.jar]: > java.net.UnknownHostException: www.ibiblio.org > ?? commons-net-1.1.0.jar ???? > commons-httpclient-2.0.jar > Error retrieving artifact from > [http://www.ibiblio.org/maven/commons-httpclient/jars/commons-httpclient-2.0.jar]: > java.net.UnknownHostException: www.ibiblio.org > ?? commons-httpclient-2.0.jar ???? > commons-logging-1.0.3.jar > Error retrieving artifact from > [http://www.ibiblio.org/maven/commons-logging/jars/commons-logging-1.0.3.jar]: > java.net.UnknownHostException: www.ibiblio.org > ?? commons-logging-1.0.3.jar ???? > Total time: 19 seconds > Finished at: Fri Aug 13 12:10:39 CST 2004 > > thanks > robin > > > - > Do you Yahoo!? > New and Improved Yahoo! Mail - 100MB free storage! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Improvements suggestion for WAR plugin
The goal I proposed is completely optional, and I don't think it conflicts with the specification. The packaging just puts all the *.class files into a JAR under WEB-INF/lib instead of leaving them in WEB-INF/classes. Anyway I checked the Servlet Spec 2.4 and I found the following under SRV 9.5 Directory Structure : "The contents of the WEB-INF directory are: • The/WEB-INF/web.xmldeployment descriptor. • The/WEB-INF/classes/ directory for servlet and utility classes. The classes in this directory must be available to the application class loader. • The/WEB-INF/lib/*.jar area for Java Archive files. These files contain servlets, beans, and other utility classes useful to the Web application. The Web application class loader must be able to load classes from any of these archive files. The Web application class loader must load classes from the WEB-INF/classes directory first, and then from library JARs in the WEB-INF/lib directory. Also, any requests from the client to access the resources in WEB-INF/ directory must be returned with aSC_NOT_FOUND(404) response. " It seems therefore allowed to put servlets and other resources in JARs and even have an empty WEB-INF/classes directory. However I fully understand that this patch might not have it's place in the WAR plugin although I think it might (I don't really see where else to put it), but I was just proposing it in case somebody was interested in this functionality. Regards, Serge Huber. On Aug 12, 2004, at 6:58 PM, Carlos Sanchez wrote: Hi, You can raise a feature request in JIRA, but IMHO this patch is not a good idea as including *.class in /WEB-INF/classes just follows the webapp specification. Regards Carlos Sanchez A Coruña, Spain Oness Project http://oness.sourceforge.net -Original Message- From: Serge Huber [mailto:[EMAIL PROTECTED] Sent: Thursday, August 12, 2004 5:41 PM To: [EMAIL PROTECTED] Subject: Improvements suggestion for WAR plugin Hi all, Here is a quick & dirty suggestion for the WAR plugin for those of you who don't want to package WAR files with tons of stuff in the WEB-INF/classes directory. This little preGoal will allow you to package either just the *.class files into a JAR, or the whole content of the WEB-INF/classes directory. First of all here are the properties : # set to true if you want the contents of WEB-INF/classes to be packaged into a JAR in WEB-INF/lib maven.war.jarclasses=true # the name of the JAR in WEB-INF/lib maven.war.jarclasses.name=${pom.artifactId}-${pom.currentVersion}.jar # set to true if you only want the *.class files in the JAR, false will include the whole contents of WEB-INF/classes maven.war.jarclasses.justclasses=true Here is the preGoal : basedir="${maven.build.dir}/${pom.artifactId}/WEB-INF/classes" includes="**/*.class" /> basedir="${maven.build.dir}/${pom.artifactId}/WEB-INF/classes" includes="**/*" /> I hope this could be included into the WAR plugin as it is very useful to me and maybe to others. How should this happen, can someone take this up or should I try to modify the plugin myself. Please be informed my Jelly knowledge is *very* limited. Regards, Serge Huber. - -- --- -=[ shuber2 at jahia dot com ]= --- -- - www.jahia.org : A collaborative source CMS and Portal Server - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven Test Suite Failing
Hi for some reason my test:test case is failing, it is working great in intellij and intellij is using the generated classpath from maven idea.. just wondering if anyone has any ideas what might be wrong. Here is the normal output: Thanks for any ideas in advance, I'm wondering do I need to tell my test classes to have the path of my normal classes? ie test outputs to /target/test-classes and my normal source goes to /target/classes?? C:\projects\NADA>maven test:test __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0 build:start: java:prepare-filesystem: java:compile: [echo] Compiling to C:\projects\NADA/target/classes BUILD FAILED File.. C:\Documents and Settings\halcy\.maven\cache\maven-test-plugin-1.6.2\ plugin.jelly Element... junit Line.. 133 Column 41 java.lang.NoClassDefFoundError Total time: 2 seconds Finished at: Fri Aug 13 17:27:37 MDT 2004 and the verbose output: build:start: java:prepare-filesystem: java:compile: [echo] Compiling to C:\projects\NADA/target/classes BUILD FAILED java.lang.NoClassDefFoundError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou rce) at java.lang.reflect.Constructor.newInstance(Unknown Source) at junit.framework.TestSuite.createTest(TestSuite.java:131) at junit.framework.TestSuite.addTestMethod(TestSuite.java:114) at junit.framework.TestSuite.(TestSuite.java:75) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.(J UnitTestRunner.java:261) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.(J UnitTestRunner.java:219) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JU nitTask.java:822) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitT ask.java:556) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitT ask.java:532) at org.apache.tools.ant.Task.perform(Task.java:341) at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:232) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233) at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTa g.java:79) at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.perfor mAction(MavenGoalTag.java:110) at com.werken.werkz.Goal.fire(Goal.java:639) at com.werken.werkz.Goal.attain(Goal.java:575) at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java: 634) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266) at org.apache.maven.cli.App.doMain(App.java:486) at org.apache.maven.cli.App.main(App.java:1215) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) File.. C:\Documents and Settings\halcy\.maven\cache\maven-test-plugin-1.6.2\ plugin.jelly Element... junit Line.. 133 Column 41 java.lang.NoClassDefFoundError Total time: 2 seconds Finished at: Fri Aug 13 17:28:08 MDT 2004 and the debug + verbose output: [junit] [DEBUG] Finding class org.dbunit.operation.DatabaseOperation [junit] [DEBUG] Class org.dbunit.operation.DatabaseOperation loaded from ant loader BUILD FAILED java.lang.NoClassDefFoundError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou rce) at java.lang.reflect.Constructor.newInstance(Unknown Source) at junit.framework.TestSuite.createTest(TestSuite.java:131) at junit.framework.TestSuite.addTestMethod(TestSuite.java:114) at junit.framework.TestSuite.(TestSuite.java:75) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.(J UnitTestRunner.java:261) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.(J UnitTestRunner.java:219) at o
Re: JNLP Plugin not working in 1.0
Change the maven.final.name variable used as the ouput to pom.artifactId should fix the issue afaik.. Mvgr, Martin On Fri, 2004-08-13 at 23:54, Daniel Frey wrote: > Thanks for the hint. I am a little bit helpless in understanding the real > solution out of the description and comments. Additionally this bug won't > get fixed? > > It seems to me as a newbe to internals of maven that the two java files > could be the solution. The diff indicates that these files exists somewhere. > But where? I don't find any files like that in the .maven or the install > directory. Any hints for how to install the patch (if it is one)? > > Thanks a lot > Daniel > > > -Ursprüngliche Nachricht- > > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Gesendet: Freitag, 13. August 2004 22:34 > > An: Maven Users List > > Betreff: Re: JNLP Plugin not working in 1.0 > > > > > > It is a bug in plugin.jelly. See: > > http://jira.codehaus.org/browse/MPJNLP-13 > > > > Marcin Werla > > > > Wiadomość Oryginalna > > Od: Daniel Frey <[EMAIL PROTECTED]> > > Do: 'Maven Users List' <[EMAIL PROTECTED]> > > Data: Fri, 13 Aug 2004 19:00:00 +0200 > > Temat: JNLP Plugin not working in 1.0 > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- Mvgr, Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A Goal that can execute a class' main method?
If you don't use fork, you've got to deal with the fact that maven has a copy of Xerces in its endorsed directory ${maven.home}/lib/endorsed...this could cause classloader issues, I'd imagine. Anyway, I think fork="true" is usually a good idea regardless. -j David Erickson wrote: Ok I got it to work by having ant spawn my class in a different JVM.. using fork="true" spawn="true". I think there some 'issues' with running something that needs xml access from inprocess with maven.. i cant remember the circumstances I ran into last time but it was similar and drove me nuts.. fortunaetly this works great. Thanks everyone for the help!! -David - Original Message - From: "David Erickson" <[EMAIL PROTECTED]> To: "Maven Users List" <[EMAIL PROTECTED]> Sent: Friday, August 13, 2004 4:52 PM Subject: Re: A Goal that can execute a class' main method? Thanks got everything working as its supposed to I *think* except I am having major XML issues.. it seems like I ran into something similar like this previously, I wasnt sure if its because maven has xml stuff loaded or what.. but heres the errors: [echo] C:\projects\NADA/target/classes/NADA-.1.jar [echo] Additional Classpath: C:\projects\NADA\src\resources\dataSource-Example [java] JVM args ignored when same JVM is used. log4j:WARN No appenders could be found for logger (org.springframework.beans.factory.xml.XmlBeanDefinitionReader). log4j:WARN Please initialize the log4j system properly. [java] [ERROR] java.lang.NoClassDefFoundError: org/w3c/dom/Document BUILD SUCCESSFUL and yet within my project I have: xerces xerces 2.4.0 xerces xercesImpl 2.4.0 xerces xmlParserAPIs 2.2.1 Any ideas? Thanks, David - Original Message - From: "John Casey" <[EMAIL PROTECTED]> To: "Maven Users List" <[EMAIL PROTECTED]> Sent: Friday, August 13, 2004 4:12 PM Subject: Re: A Goal that can execute a class' main method? 1) Is there a webpage somewhere that lists all the variables that maven makes available that can be accessed in maven.xml? I hate having to ask stupid questions about that even though I cant find a listing =/ No single page, I don't think...(maybe I'm not up to date on that, though). You might have some luck here: http://maven.apache.org/reference/plugins/index.html 2) Here is what I've got in there now: However I forgot that the actual files generated by the project arent on the dependency list, is there a variable that holds the path to the target jar file that is generated? I need it for my classpath. You might try adding a classpath refid to maven.build.dest Also this line I used: is that gonna fly? basically I just need to pass a variable from the current jvm system property into the spawned version from ant's java? I think so, but I've never actually used it. Thanks, David - Original Message - From: "John Casey" <[EMAIL PROTECTED]> To: "Maven Users List" <[EMAIL PROTECTED]> Sent: Friday, August 13, 2004 3:49 PM Subject: Re: A Goal that can execute a class' main method? 1) within the I need to somehow iterate through the list of The short answer is to use ${maven.dependency.classpath}...see below: From the aspectj-3.0 plugin: sourceRootCopyFilter="${maven.aspectj.sourceRootCopyFilter}" debug="${maven.aspectj.debug}" emacssym="${maven.aspectj.emacssym}" verbose="${maven.aspectj.verbose}"> . . . . . . . . . 2) Secondly if the user specifies multiple classpath entries, like maven -DadditionalClasspath="/path/to/something.jar;/path/to/anotherjar.jar" is there someway for me to break that up into classpath entries? Try this: ${additionalClasspath} 3) and i lied one more question, to access VM variables do I simply do {variableName} from maven.xml? What types of args are you trying to gain access to? You might be able to access them as system properties (for example: ${java.vm.version} or something)...beyond that, I'm not sure. Thanks, David - Original Message - From: "John Casey" <[EMAIL PROTECTED]> To: "Maven Users List" <[EMAIL PROTECTED]> Sent: Friday, August 13, 2004 3:21 PM Subject: Re: A Goal that can execute a class' main method? You might want to try Ant's task for this. To use it, you should try embedding in a custom goal within your project's maven.xml file. I'll look something like this: which you might then invoke using the following command: maven -DmyData=/path/to/my/data -DmyPath=/path/to/my/classes dbLoad You can find more info on the Ant java task at: http://ant.apache.org/manual/CoreTasks/java.html HTH, john David Erickson wrote: Hi guys got a couple questions. Ive got a project that has a class that updates a database with information. What I was wondering is if it would be possible to make a maven goal that executes that class, thus making it easy on the end user (since the majority of the dependencies are li
Re: A Goal that can execute a class' main method?
Ok I got it to work by having ant spawn my class in a different JVM.. using fork="true" spawn="true". I think there some 'issues' with running something that needs xml access from inprocess with maven.. i cant remember the circumstances I ran into last time but it was similar and drove me nuts.. fortunaetly this works great. Thanks everyone for the help!! -David - Original Message - From: "David Erickson" <[EMAIL PROTECTED]> To: "Maven Users List" <[EMAIL PROTECTED]> Sent: Friday, August 13, 2004 4:52 PM Subject: Re: A Goal that can execute a class' main method? > Thanks got everything working as its supposed to I *think* except I am > having major XML issues.. it seems like I ran into something similar like > this previously, I wasnt sure if its because maven has xml stuff loaded or > what.. but heres the errors: > > [echo] C:\projects\NADA/target/classes/NADA-.1.jar > [echo] Additional Classpath: > C:\projects\NADA\src\resources\dataSource-Example > [java] JVM args ignored when same JVM is used. > log4j:WARN No appenders could be found for logger > (org.springframework.beans.factory.xml.XmlBeanDefinitionReader). > log4j:WARN Please initialize the log4j system properly. > [java] [ERROR] java.lang.NoClassDefFoundError: org/w3c/dom/Document > BUILD SUCCESSFUL > > and yet within my project I have: > > xerces > xerces > 2.4.0 > > > xerces > xercesImpl > 2.4.0 > > > xerces > xmlParserAPIs > 2.2.1 > > > Any ideas? > Thanks, > David > - Original Message - > From: "John Casey" <[EMAIL PROTECTED]> > To: "Maven Users List" <[EMAIL PROTECTED]> > Sent: Friday, August 13, 2004 4:12 PM > Subject: Re: A Goal that can execute a class' main method? > > > > > > > > > 1) Is there a webpage somewhere that lists all the variables that maven > > > makes available that can be accessed in maven.xml? I hate having to ask > > > stupid questions about that even though I cant find a listing =/ > > > > > > > No single page, I don't think...(maybe I'm not up to date on that, > > though). You might have some luck here: > > > > http://maven.apache.org/reference/plugins/index.html > > > > > > > 2) Here is what I've got in there now: > > > > > > > > > > > > However I forgot that the actual files generated by the project arent on > the > > > dependency list, is there a variable that holds the path to the target > jar > > > file that is generated? I need it for my classpath. > > > > You might try adding a classpath refid to maven.build.dest > > > > > > > > Also this line I used: > > > is that gonna fly? basically I just need to pass a variable from the > > > current jvm system property into the spawned version from ant's java? > > > > I think so, but I've never actually used it. > > > > > > > > Thanks, > > > David > > > - Original Message - > > > From: "John Casey" <[EMAIL PROTECTED]> > > > To: "Maven Users List" <[EMAIL PROTECTED]> > > > Sent: Friday, August 13, 2004 3:49 PM > > > Subject: Re: A Goal that can execute a class' main method? > > > > > > > > > > > >>>1) within the I need to somehow iterate through the > list > > > > > > of > > > > > >>The short answer is to use ${maven.dependency.classpath}...see below: > > >> > > >> From the aspectj-3.0 plugin: > > >> > > >>> >> fork="${maven.aspectj.fork}" > > >> maxmem="${maven.aspectj.maxmem}" > > >> incremental="${maven.aspectj.incremental}" > > >> destDir="${maven.build.dest}" > > >> sourceRootCopyFilter="${maven.aspectj.sourceRootCopyFilter}" > > >> debug="${maven.aspectj.debug}" > > >> emacssym="${maven.aspectj.emacssym}" > > >> verbose="${maven.aspectj.verbose}"> > > >> > > >>. > > >>. > > >>. > > >> > > >> > > >> > > >> > > >>. > > >>. > > >>. > > >> > > >> > > >> > > >>. > > >>. > > >>. > > >> > > >> > > >> > > >> > > >> > > >>>2) Secondly if the user specifies multiple classpath entries, like > > >>> > > > > > > > maven -DadditionalClasspath="/path/to/something.jar;/path/to/anotherjar.jar" > > > > > >>>is there someway for me to break that up into classpath entries? > > >> > > >>Try this: > > >> > > >> > >>xmlns:util="jelly:util" > > >>delim=";" > > >>trim="true" > > >>var="myPaths"> > > >>${additionalClasspath} > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >>>3) and i lied one more question, to access VM variables do I simply do > > >>>{variableName} from maven.xml? > > >> > > >>What types of args are you trying to gain access to? You might be able > > >>to access them as system properties (for example: ${java.vm.version} or > > >>something)...beyond that, I'm not sure. > > >> > > >> > > >>>Thanks, > > >>>David > > >>> > > >>>- Original Message - > > >>>From: "John Casey" <[EMAIL PROTECTED]> > > >>>To: "Maven Users List" <[EMAIL PROTECTED]> > > >>>Sent: Friday, August 13, 2004 3:21 PM > > >>>Subject: Re: A Goal that
Re: A Goal that can execute a class' main method?
Thanks got everything working as its supposed to I *think* except I am having major XML issues.. it seems like I ran into something similar like this previously, I wasnt sure if its because maven has xml stuff loaded or what.. but heres the errors: [echo] C:\projects\NADA/target/classes/NADA-.1.jar [echo] Additional Classpath: C:\projects\NADA\src\resources\dataSource-Example [java] JVM args ignored when same JVM is used. log4j:WARN No appenders could be found for logger (org.springframework.beans.factory.xml.XmlBeanDefinitionReader). log4j:WARN Please initialize the log4j system properly. [java] [ERROR] java.lang.NoClassDefFoundError: org/w3c/dom/Document BUILD SUCCESSFUL and yet within my project I have: xerces xerces 2.4.0 xerces xercesImpl 2.4.0 xerces xmlParserAPIs 2.2.1 Any ideas? Thanks, David - Original Message - From: "John Casey" <[EMAIL PROTECTED]> To: "Maven Users List" <[EMAIL PROTECTED]> Sent: Friday, August 13, 2004 4:12 PM Subject: Re: A Goal that can execute a class' main method? > > > > 1) Is there a webpage somewhere that lists all the variables that maven > > makes available that can be accessed in maven.xml? I hate having to ask > > stupid questions about that even though I cant find a listing =/ > > > > No single page, I don't think...(maybe I'm not up to date on that, > though). You might have some luck here: > > http://maven.apache.org/reference/plugins/index.html > > > > 2) Here is what I've got in there now: > > > > > > > However I forgot that the actual files generated by the project arent on the > > dependency list, is there a variable that holds the path to the target jar > > file that is generated? I need it for my classpath. > > You might try adding a classpath refid to maven.build.dest > > > > > Also this line I used: > > is that gonna fly? basically I just need to pass a variable from the > > current jvm system property into the spawned version from ant's java? > > I think so, but I've never actually used it. > > > > > Thanks, > > David > > - Original Message - > > From: "John Casey" <[EMAIL PROTECTED]> > > To: "Maven Users List" <[EMAIL PROTECTED]> > > Sent: Friday, August 13, 2004 3:49 PM > > Subject: Re: A Goal that can execute a class' main method? > > > > > > > >>>1) within the I need to somehow iterate through the list > > > > of > > > >>The short answer is to use ${maven.dependency.classpath}...see below: > >> > >> From the aspectj-3.0 plugin: > >> > >>>> fork="${maven.aspectj.fork}" > >> maxmem="${maven.aspectj.maxmem}" > >> incremental="${maven.aspectj.incremental}" > >> destDir="${maven.build.dest}" > >> sourceRootCopyFilter="${maven.aspectj.sourceRootCopyFilter}" > >> debug="${maven.aspectj.debug}" > >> emacssym="${maven.aspectj.emacssym}" > >> verbose="${maven.aspectj.verbose}"> > >> > >>. > >>. > >>. > >> > >> > >> > >> > >>. > >>. > >>. > >> > >> > >> > >>. > >>. > >>. > >> > >> > >> > >> > >> > >>>2) Secondly if the user specifies multiple classpath entries, like > >>> > > > > maven -DadditionalClasspath="/path/to/something.jar;/path/to/anotherjar.jar" > > > >>>is there someway for me to break that up into classpath entries? > >> > >>Try this: > >> > >> >>xmlns:util="jelly:util" > >>delim=";" > >>trim="true" > >>var="myPaths"> > >>${additionalClasspath} > >> > >> > >> > >> > >> > >> > >> > >>>3) and i lied one more question, to access VM variables do I simply do > >>>{variableName} from maven.xml? > >> > >>What types of args are you trying to gain access to? You might be able > >>to access them as system properties (for example: ${java.vm.version} or > >>something)...beyond that, I'm not sure. > >> > >> > >>>Thanks, > >>>David > >>> > >>>- Original Message - > >>>From: "John Casey" <[EMAIL PROTECTED]> > >>>To: "Maven Users List" <[EMAIL PROTECTED]> > >>>Sent: Friday, August 13, 2004 3:21 PM > >>>Subject: Re: A Goal that can execute a class' main method? > >>> > >>> > >>> > >>> > You might want to try Ant's task for this. To use it, you should > try embedding in a custom goal within your project's maven.xml file. > I'll look something like this: > > > > > > > > > > > > > > > > which you might then invoke using the following command: > > maven -DmyData=/path/to/my/data -DmyPath=/path/to/my/classes dbLoad > > You can find more info on the Ant java task at: > http://ant.apache.org/manual/CoreTasks/java.html > > HTH, > john > > David Erickson wrote: > > > >Hi guys got a couple questions. Ive got a project that has a class > > > > that > > > >updates a database with information. What I was wondering is if it > >>> >
Re: A Goal that can execute a class' main method?
1) Is there a webpage somewhere that lists all the variables that maven makes available that can be accessed in maven.xml? I hate having to ask stupid questions about that even though I cant find a listing =/ No single page, I don't think...(maybe I'm not up to date on that, though). You might have some luck here: http://maven.apache.org/reference/plugins/index.html 2) Here is what I've got in there now: However I forgot that the actual files generated by the project arent on the dependency list, is there a variable that holds the path to the target jar file that is generated? I need it for my classpath. You might try adding a classpath refid to maven.build.dest Also this line I used: is that gonna fly? basically I just need to pass a variable from the current jvm system property into the spawned version from ant's java? I think so, but I've never actually used it. Thanks, David - Original Message - From: "John Casey" <[EMAIL PROTECTED]> To: "Maven Users List" <[EMAIL PROTECTED]> Sent: Friday, August 13, 2004 3:49 PM Subject: Re: A Goal that can execute a class' main method? 1) within the I need to somehow iterate through the list of The short answer is to use ${maven.dependency.classpath}...see below: From the aspectj-3.0 plugin: . . . . . . . . . 2) Secondly if the user specifies multiple classpath entries, like maven -DadditionalClasspath="/path/to/something.jar;/path/to/anotherjar.jar" is there someway for me to break that up into classpath entries? Try this: ${additionalClasspath} 3) and i lied one more question, to access VM variables do I simply do {variableName} from maven.xml? What types of args are you trying to gain access to? You might be able to access them as system properties (for example: ${java.vm.version} or something)...beyond that, I'm not sure. Thanks, David - Original Message - From: "John Casey" <[EMAIL PROTECTED]> To: "Maven Users List" <[EMAIL PROTECTED]> Sent: Friday, August 13, 2004 3:21 PM Subject: Re: A Goal that can execute a class' main method? You might want to try Ant's task for this. To use it, you should try embedding in a custom goal within your project's maven.xml file. I'll look something like this: which you might then invoke using the following command: maven -DmyData=/path/to/my/data -DmyPath=/path/to/my/classes dbLoad You can find more info on the Ant java task at: http://ant.apache.org/manual/CoreTasks/java.html HTH, john David Erickson wrote: Hi guys got a couple questions. Ive got a project that has a class that updates a database with information. What I was wondering is if it would be possible to make a maven goal that executes that class, thus making it easy on the end user (since the majority of the dependencies are listed within the dep list). The requirements are these: 1) I'd need to be able to pass in a java environment variable (from the command line) for where the datafiles are at to be ported into the db 2) I'd need to be able to add elements to the classpath of the class that will be executed (From the command line) in addition to the dependencies that are listed within maven Is something like this possible? And if so, if you could point me in the direction on how to implement it I'd be greatly appreciative. Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: A Goal that can execute a class' main method?
Thanks a ton to John and Carlos you guys have been extremely helpful. Couple more Q's 1) Is there a webpage somewhere that lists all the variables that maven makes available that can be accessed in maven.xml? I hate having to ask stupid questions about that even though I cant find a listing =/ 2) Here is what I've got in there now: ${additionalClasspath} However I forgot that the actual files generated by the project arent on the dependency list, is there a variable that holds the path to the target jar file that is generated? I need it for my classpath. Also this line I used: is that gonna fly? basically I just need to pass a variable from the current jvm system property into the spawned version from ant's java? Thanks, David - Original Message - From: "John Casey" <[EMAIL PROTECTED]> To: "Maven Users List" <[EMAIL PROTECTED]> Sent: Friday, August 13, 2004 3:49 PM Subject: Re: A Goal that can execute a class' main method? > > 1) within the I need to somehow iterate through the list of > > The short answer is to use ${maven.dependency.classpath}...see below: > > From the aspectj-3.0 plugin: > >fork="${maven.aspectj.fork}" >maxmem="${maven.aspectj.maxmem}" >incremental="${maven.aspectj.incremental}" >destDir="${maven.build.dest}" >sourceRootCopyFilter="${maven.aspectj.sourceRootCopyFilter}" >debug="${maven.aspectj.debug}" >emacssym="${maven.aspectj.emacssym}" >verbose="${maven.aspectj.verbose}"> > > . > . > . > > > > > . > . > . > > > > . > . > . > > > > > > > > > 2) Secondly if the user specifies multiple classpath entries, like > > maven -DadditionalClasspath="/path/to/something.jar;/path/to/anotherjar.jar" > > is there someway for me to break that up into classpath entries? > > Try this: > > xmlns:util="jelly:util" > delim=";" > trim="true" > var="myPaths"> > ${additionalClasspath} > > > > > > > > > > > 3) and i lied one more question, to access VM variables do I simply do > > {variableName} from maven.xml? > > What types of args are you trying to gain access to? You might be able > to access them as system properties (for example: ${java.vm.version} or > something)...beyond that, I'm not sure. > > > Thanks, > > David > > > > - Original Message - > > From: "John Casey" <[EMAIL PROTECTED]> > > To: "Maven Users List" <[EMAIL PROTECTED]> > > Sent: Friday, August 13, 2004 3:21 PM > > Subject: Re: A Goal that can execute a class' main method? > > > > > > > >>You might want to try Ant's task for this. To use it, you should > >>try embedding in a custom goal within your project's maven.xml file. > >>I'll look something like this: > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >>which you might then invoke using the following command: > >> > >>maven -DmyData=/path/to/my/data -DmyPath=/path/to/my/classes dbLoad > >> > >>You can find more info on the Ant java task at: > >>http://ant.apache.org/manual/CoreTasks/java.html > >> > >>HTH, > >>john > >> > >>David Erickson wrote: > >> > >>>Hi guys got a couple questions. Ive got a project that has a class that > >>>updates a database with information. What I was wondering is if it > > > > would be > > > >>>possible to make a maven goal that executes that class, thus making it > > > > easy > > > >>>on the end user (since the majority of the dependencies are listed > > > > within > > > >>>the dep list). The requirements are these: > >>>1) I'd need to be able to pass in a java environment variable (from the > >>>command line) for where the datafiles are at to be ported into the db > >>>2) I'd need to be able to add elements to the classpath of the class > > > > that > > > >>>will be executed (From the command line) in addition to the dependencies > >>>that are listed within maven > >>> > >>>Is something like this possible? And if so, if you could point me in > > > > the > > > >>>direction on how to implement it I'd be greatly appreciative. > >>>Thanks, > >>>David > >>> > >>> > >>>- > >>>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>For additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > >>> > >> > >> > >>- > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > - >
JNLP Plugin not working in 1.0
Thanks for the hint. I am a little bit helpless in understanding the real solution out of the description and comments. Additionally this bug won't get fixed? It seems to me as a newbe to internals of maven that the two java files could be the solution. The diff indicates that these files exists somewhere. But where? I don't find any files like that in the .maven or the install directory. Any hints for how to install the patch (if it is one)? Thanks a lot Daniel > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Gesendet: Freitag, 13. August 2004 22:34 > An: Maven Users List > Betreff: Re: JNLP Plugin not working in 1.0 > > > It is a bug in plugin.jelly. See: > http://jira.codehaus.org/browse/MPJNLP-13 > > Marcin Werla > > Wiadomość Oryginalna > Od: Daniel Frey <[EMAIL PROTECTED]> > Do: 'Maven Users List' <[EMAIL PROTECTED]> > Data: Fri, 13 Aug 2004 19:00:00 +0200 > Temat: JNLP Plugin not working in 1.0 > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > smime.p7s Description: S/MIME cryptographic signature
Re: A Goal that can execute a class' main method?
1) within the I need to somehow iterate through the list of The short answer is to use ${maven.dependency.classpath}...see below: From the aspectj-3.0 plugin: . . . . . . . . . 2) Secondly if the user specifies multiple classpath entries, like maven -DadditionalClasspath="/path/to/something.jar;/path/to/anotherjar.jar" is there someway for me to break that up into classpath entries? Try this: ${additionalClasspath} 3) and i lied one more question, to access VM variables do I simply do {variableName} from maven.xml? What types of args are you trying to gain access to? You might be able to access them as system properties (for example: ${java.vm.version} or something)...beyond that, I'm not sure. Thanks, David - Original Message - From: "John Casey" <[EMAIL PROTECTED]> To: "Maven Users List" <[EMAIL PROTECTED]> Sent: Friday, August 13, 2004 3:21 PM Subject: Re: A Goal that can execute a class' main method? You might want to try Ant's task for this. To use it, you should try embedding in a custom goal within your project's maven.xml file. I'll look something like this: which you might then invoke using the following command: maven -DmyData=/path/to/my/data -DmyPath=/path/to/my/classes dbLoad You can find more info on the Ant java task at: http://ant.apache.org/manual/CoreTasks/java.html HTH, john David Erickson wrote: Hi guys got a couple questions. Ive got a project that has a class that updates a database with information. What I was wondering is if it would be possible to make a maven goal that executes that class, thus making it easy on the end user (since the majority of the dependencies are listed within the dep list). The requirements are these: 1) I'd need to be able to pass in a java environment variable (from the command line) for where the datafiles are at to be ported into the db 2) I'd need to be able to add elements to the classpath of the class that will be executed (From the command line) in addition to the dependencies that are listed within maven Is something like this possible? And if so, if you could point me in the direction on how to implement it I'd be greatly appreciative. Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: A Goal that can execute a class' main method?
> -Original Message- > From: David Erickson [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 11:30 PM > To: Maven Users List > Subject: Re: A Goal that can execute a class' main method? > > 1) ok so when I call maven from the command line like "maven > mygoal" how do I specify these things? like "maven mygoal > -Dmyoption=myvalue" ? yes > 2) how can I get a handle on that variable from within my > goal scripts? For concrete syntax you can check the announcement plugin "plugin.jelly" for example > 3) how can I get a handle on the classpath from the > dependencies in my project.xml? You can check the java plugin > Thanks, > David > > - Original Message - > From: "Carlos Sanchez" <[EMAIL PROTECTED]> > To: "'Maven Users List'" <[EMAIL PROTECTED]> > Sent: Friday, August 13, 2004 3:19 PM > Subject: RE: A Goal that can execute a class' main method? > > > Hi, > > You can implement it with ant tasks ( I think) in maven.xml > 1) -Dvar=value > 2) can have nested classpath > > Regards > > Carlos Sanchez > A Coruña, Spain > > Oness Project > http://oness.sourceforge.net > > > > -Original Message- > > From: David Erickson [mailto:[EMAIL PROTECTED] > > Sent: Friday, August 13, 2004 11:11 PM > > To: Maven User List > > Subject: A Goal that can execute a class' main method? > > > > Hi guys got a couple questions. Ive got a project that has a > > class that updates a database with information. What I was > > wondering is if it would be possible to make a maven goal > > that executes that class, thus making it easy on the end user > > (since the majority of the dependencies are listed within the > > dep list). The requirements are these: > > 1) I'd need to be able to pass in a java environment variable > > (from the command line) for where the datafiles are at to be > > ported into the db > > 2) I'd need to be able to add elements to the classpath of > > the class that will be executed (From the command line) in > > addition to the dependencies that are listed within maven > > > > Is something like this possible? And if so, if you could > > point me in the direction on how to implement it I'd be > > greatly appreciative. > > Thanks, > > David > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A Goal that can execute a class' main method?
John, Thanks that helps tremendously, my other 2 remaining questions would be 1) within the I need to somehow iterate through the list of project dependencies, something like: Is there someway to do something similar to this? 2) Secondly if the user specifies multiple classpath entries, like maven -DadditionalClasspath="/path/to/something.jar;/path/to/anotherjar.jar" is there someway for me to break that up into classpath entries? 3) and i lied one more question, to access VM variables do I simply do {variableName} from maven.xml? Thanks, David - Original Message - From: "John Casey" <[EMAIL PROTECTED]> To: "Maven Users List" <[EMAIL PROTECTED]> Sent: Friday, August 13, 2004 3:21 PM Subject: Re: A Goal that can execute a class' main method? > You might want to try Ant's task for this. To use it, you should > try embedding in a custom goal within your project's maven.xml file. > I'll look something like this: > > > > > > > > > > > > > > > > which you might then invoke using the following command: > > maven -DmyData=/path/to/my/data -DmyPath=/path/to/my/classes dbLoad > > You can find more info on the Ant java task at: > http://ant.apache.org/manual/CoreTasks/java.html > > HTH, > john > > David Erickson wrote: > > Hi guys got a couple questions. Ive got a project that has a class that > > updates a database with information. What I was wondering is if it would be > > possible to make a maven goal that executes that class, thus making it easy > > on the end user (since the majority of the dependencies are listed within > > the dep list). The requirements are these: > > 1) I'd need to be able to pass in a java environment variable (from the > > command line) for where the datafiles are at to be ported into the db > > 2) I'd need to be able to add elements to the classpath of the class that > > will be executed (From the command line) in addition to the dependencies > > that are listed within maven > > > > Is something like this possible? And if so, if you could point me in the > > direction on how to implement it I'd be greatly appreciative. > > Thanks, > > David > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A Goal that can execute a class' main method?
1) ok so when I call maven from the command line like "maven mygoal" how do I specify these things? like "maven mygoal -Dmyoption=myvalue" ? 2) how can I get a handle on that variable from within my goal scripts? 3) how can I get a handle on the classpath from the dependencies in my project.xml? Thanks, David - Original Message - From: "Carlos Sanchez" <[EMAIL PROTECTED]> To: "'Maven Users List'" <[EMAIL PROTECTED]> Sent: Friday, August 13, 2004 3:19 PM Subject: RE: A Goal that can execute a class' main method? Hi, You can implement it with ant tasks ( I think) in maven.xml 1) -Dvar=value 2) can have nested classpath Regards Carlos Sanchez A Coruña, Spain Oness Project http://oness.sourceforge.net > -Original Message- > From: David Erickson [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 11:11 PM > To: Maven User List > Subject: A Goal that can execute a class' main method? > > Hi guys got a couple questions. Ive got a project that has a > class that updates a database with information. What I was > wondering is if it would be possible to make a maven goal > that executes that class, thus making it easy on the end user > (since the majority of the dependencies are listed within the > dep list). The requirements are these: > 1) I'd need to be able to pass in a java environment variable > (from the command line) for where the datafiles are at to be > ported into the db > 2) I'd need to be able to add elements to the classpath of > the class that will be executed (From the command line) in > addition to the dependencies that are listed within maven > > Is something like this possible? And if so, if you could > point me in the direction on how to implement it I'd be > greatly appreciative. > Thanks, > David > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A Goal that can execute a class' main method?
You might want to try Ant's task for this. To use it, you should try embedding in a custom goal within your project's maven.xml file. I'll look something like this: which you might then invoke using the following command: maven -DmyData=/path/to/my/data -DmyPath=/path/to/my/classes dbLoad You can find more info on the Ant java task at: http://ant.apache.org/manual/CoreTasks/java.html HTH, john David Erickson wrote: Hi guys got a couple questions. Ive got a project that has a class that updates a database with information. What I was wondering is if it would be possible to make a maven goal that executes that class, thus making it easy on the end user (since the majority of the dependencies are listed within the dep list). The requirements are these: 1) I'd need to be able to pass in a java environment variable (from the command line) for where the datafiles are at to be ported into the db 2) I'd need to be able to add elements to the classpath of the class that will be executed (From the command line) in addition to the dependencies that are listed within maven Is something like this possible? And if so, if you could point me in the direction on how to implement it I'd be greatly appreciative. Thanks, David - 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: A Goal that can execute a class' main method?
Hi, You can implement it with ant tasks ( I think) in maven.xml 1) -Dvar=value 2) can have nested classpath Regards Carlos Sanchez A Coruña, Spain Oness Project http://oness.sourceforge.net > -Original Message- > From: David Erickson [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 11:11 PM > To: Maven User List > Subject: A Goal that can execute a class' main method? > > Hi guys got a couple questions. Ive got a project that has a > class that updates a database with information. What I was > wondering is if it would be possible to make a maven goal > that executes that class, thus making it easy on the end user > (since the majority of the dependencies are listed within the > dep list). The requirements are these: > 1) I'd need to be able to pass in a java environment variable > (from the command line) for where the datafiles are at to be > ported into the db > 2) I'd need to be able to add elements to the classpath of > the class that will be executed (From the command line) in > addition to the dependencies that are listed within maven > > Is something like this possible? And if so, if you could > point me in the direction on how to implement it I'd be > greatly appreciative. > Thanks, > David > > > - > 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]
A Goal that can execute a class' main method?
Hi guys got a couple questions. Ive got a project that has a class that updates a database with information. What I was wondering is if it would be possible to make a maven goal that executes that class, thus making it easy on the end user (since the majority of the dependencies are listed within the dep list). The requirements are these: 1) I'd need to be able to pass in a java environment variable (from the command line) for where the datafiles are at to be ported into the db 2) I'd need to be able to add elements to the classpath of the class that will be executed (From the command line) in addition to the dependencies that are listed within maven Is something like this possible? And if so, if you could point me in the direction on how to implement it I'd be greatly appreciative. Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JNLP Plugin not working in 1.0
It is a bug in plugin.jelly. See: http://jira.codehaus.org/browse/MPJNLP-13 Marcin Werla Wiadomość Oryginalna Od: Daniel Frey <[EMAIL PROTECTED]> Do: 'Maven Users List' <[EMAIL PROTECTED]> Data: Fri, 13 Aug 2004 19:00:00 +0200 Temat: JNLP Plugin not working in 1.0 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNLP Plugin not working in 1.0
Hi there I am building my JNLP Application the first time since the change to 1.0 final. I have removed all plugins and the .maven directory when I switched to 1.0. However, the jnlp task behaves strange. Instead of signing all the JARs I get a directory with one ".jar" file, the jnlp file and the project jar: ch.xmatrix.ups.ust.jnlpch.xmatrix.ups.ust-1.0-20040813.jar.jar Maven does not generate an error: jnlp:generate-jnlp: [mkdir] Created dir: E:\Daten\UPS\UST\target\jnlp [echo] Creating E:\Daten\UPS\UST/target/jnlp/ch.xmatrix.ups.ust.jnlp ... [mkdir] Created dir: E:\Daten\UPS\UST\target\jnlp_tempUpdate Manifest in ch.xmatrix.ups.ust-1.0-20040813.jarUpdate Manifest in commons-io-20040220.051900.jarUpdate Manifest in binding-0.9.21.jarUpdate Manifest in forms-1.0.5-20040813.jarUpdate Manifest in looks-1.3-20040813.jarUpdate Manifest in uif-1.4-20040813.jarUpdate Manifest in uif-extras-1.4-20040813.jarUpdate Manifest in log4j-1.2.8.jarUpdate Manifest in commons-lang-2.0.jarUpdate Manifest in hsqldb-1.7.2-rc5.jarUpdate Manifest in model-0.1-200404211524.jarUpdate Manifest in hsqldbimpl-0.1-200404211738.jarUpdate Manifest in xmatrix-1.0.jarUpdate Manifest in taxa-1.0.jarUpdate Manifest in ch.jfactory.component.FixedFormatTextField-SNAPSHOT.jarUpdate Manifest in ch.jfactory.component.tree.filter-SNAPSHOT.jarUpdate Manifest in ch.jfactory.component.tree-SNAPSHOT.jarUpdate Manifest in ch.jfactory.resource-SNAPSHOT.jarUpdate Manifest in ch.jfactory.action-SNAPSHOT.jarUpdate Manifest in ch.jfactory.file-SNAPSHOT.jarUpdate Manifest in ostermiller-utils-1.03.00.jar [echo] Found a store...signing jars [echo] Signing jar files ... [echo] Not Using JarDiff ... [signjar] Signing Jar : E:\Daten\UPS\UST\target\jnlp_temp\ch.xmatrix.ups.ust-1.0-20040813.jar [signjar] Signing Jar : E:\Daten\UPS\UST\target\jnlp_temp\commons-io-20040220.051900.jarBUILD SUCCESSFULTotal time: 24 seconds Sombody met that problem, or even knows what it could be? Thanks in advance, Daniel smime.p7s Description: S/MIME cryptographic signature
RE: .property file in source folder being ignored by war:install
Hi, You should store resources in another folder, not java source folder. Then use a resources tag in POM. ${basedir}/src/conf **/** Regards Carlos Sanchez A Coruña, Spain Oness Project http://oness.sourceforge.net > -Original Message- > From: Karan-Sahni (Contractor) [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 3:31 PM > To: Maven Users List > Subject: .property file in source folder being ignored by war:install > > I have a 'resources' package in my WAR source folder with a > applicationResources.properties file. When I execute the > war:install goal, all the java files are compiled and the > respective class files are placed in WEB-INF/classes in the > war. But the .property file is ignored. How can I get the > property file to go to WEB/INF/classes too? > > > - > 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]
.property file in source folder being ignored by war:install
I have a 'resources' package in my WAR source folder with a applicationResources.properties file. When I execute the war:install goal, all the java files are compiled and the respective class files are placed in WEB-INF/classes in the war. But the .property file is ignored. How can I get the property file to go to WEB/INF/classes too? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven Source Code
I think CVS is all there is. Or use CVSGrab. I am surprised that the new jersey institute of tech is worried about using CVS. Eric > -Original Message- > From: Puneet Garg [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 2:46 PM > To: Maven Users List > Subject: Maven Source Code > > > > > Can any body tell me where do I find zip file for the source code of > maven ?? > > - > 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 Source Code
If you dont have access to CVS due to FW issues, get CVSGrab from "http://cvsgrab.sourceforge.net/index.html";. You can run it from the commandline like this to get a copy of Maven's source or any other CVS source for that matter: cvsgrab -rootUrl http://cvs.apache.org/viewcvs.cgi/ -packagePath maven -destDir . -cvsRoot :pserver:[EMAIL PROTECTED]:/home/cvspublic Enjoy !!! -ikaros > > Can any body tell me where do I find zip file for the source code of > maven ?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven Source Code
Can any body tell me where do I find zip file for the source code of maven ?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: source folder not recognised unless already existing
Hi, in my project I use "scm:checkout-project" plugin inside a "forEach" loop, in order to, checkout all modules I need. In this loop I set "maven.scm.cvs.module" with module name, and "maven.scm.bootstrap.pom.dir" this way: value="${basedir}/${maven.scm.cvs.module}". This is checkout directory: maven.scm.checkout.dir=. It works perfectly. Regards, Roberto de Castro Analista de Suporte Cetip - Desus Rio de Janeiro +55 21 2276-7439 mailto:[EMAIL PROTECTED] -Mensagem original- De: Carlos Sanchez [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 12 de agosto de 2004 13:46 Para: 'Maven Users List' Assunto: RE: source folder not recognised unless already existing Hi, Check scm:perform-release goal, I think that's exactly what you need instead of changing maven.src.dir. Regards Carlos Sanchez A Coruña, Spain Oness Project http://oness.sourceforge.net > -Original Message- > From: Karan-Sahni (Contractor) [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 12, 2004 4:38 PM > To: Maven Users List > Subject: source folder not recognised unless already existing > > I am defining my source folder in the project.properties as > > maven.src.dir=${maven.scm.checkout.dir}/${maven.scm.cvs.module} > > because I have subprojects that I call using reactor. Each > subproject downloads files from cvs , then builds the jar. > > Problem is that if the specific > ${maven.scm.checkout.dir}/${maven.scm.cvs.module} do not > exist before I run maven, the source folder is not recognised > and the resulting jar is empty. > > what can I do to work around this problem? > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logo in a multiproject
Where should one place the logo in a multiproject so that it gets picked up by the xdoc plugin when building the site? The proj structure is: myproject |base | |sub proj1 | |sub proj2 | |xdocs | |images | |logo.gif thanks ikaros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Autoresponders :-(
I use a special address for mailing lists, because the spammers harvest emails from the mailing lists. I'm not sure which ones but the email that I only use for mailing lists gets lots of spam now. Anyway, if you do that, you can use filters to put it in a separate folder and/or delete non-mailing list emails. Works for me. My real address is never used for things like mailing lists, websites, etc. > -Message d'origine- > De : Dan R Greening [mailto:[EMAIL PROTECTED] > Envoye : jeudi 12 aout 2004 05:25 > A : 'Maven Users List' > Objet : RE: Autoresponders :-( > > > My deepest apologies to my victims. I've decided that using a > whitelist is > too obnoxious for mailing lists, and so as of now I turned it off. > > If you haven't removed me from the maven list, please don't. I'm a heavy > user, and I'm starting to contribute patches. I turned my whitelist > processor off. Hopefully someone will find a way to block spam > effectively, > before I drown in it. :( > > Dan Greening, Ph.D. CEO BigTribe http://dan.greening.name/contact.htm > > > > -Original Message- > > From: Dennis Lundberg [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, August 11, 2004 1:55 PM > > To: Maven Users List > > Subject: Autoresponders :-( > > > > Hi all > > > > Can someone please remove this person from this list: > >Dan Greening [EMAIL PROTECTED] > > > > For every mail that I send to the list, I get an automated > > reply from him saying that my message might be spam. > > > > To Dan, if you read this: > > If you want to be on this email-list I suggest that you put > > the maven user list in your whitelist. > > > > -- > > Dennis Lundberg > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- This E-mail is confidential. It may also be legally privileged. If you are not the addressee you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return E-mail. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]