Re: Remote repository with self signed cert
Hello, I managed to deploy/download from https sites with client side authentication following this guide: http://maven.apache.org/guides/mini/guide-repository-ssl.html Maybe you could provide more information on your configuration (pom + settings) ? Regards, -- Arnaud Bailly, PhD OQube - Software Engineering http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Packaging HTML/JavaScript files into WAR from outside project
When building the java webapp, I'd like some HTML and JS files to be packaged into the WAR, but those files live in the html and javascript directories instead of in java/src/main/webapp. What's the appropriate plugin to use in this case? Hello, Don't know if it's possible, but the preferred maven way I think would be to package them into separate maven projects, of war type, and use the implicit mechanism of war overlays: just add wars as dependencies in your main war and you'll get everything packed in. Alternatively, you could use maven-dependency-plugin (http://maven.apache.org/plugins/maven-dependency-plugin/) to retrieve your artifacts and unpack them if you don't/cannot pack them as war. Finally, you can add supplementary web-resources I think, to the war plugin, that will get packaged with the artifact (see http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#webResources). Regards, -- Arnaud Bailly, PhD OQube - Software Engineering http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where to find the mirror for spring*. jars?
Hi all, I use spring in my project. And I use maven2. In the pom.xml I have to set the version of the dependencies. I wonder where can I the mirror site which suply the spring*.jar with version number. I go to the spring homepage and there are different version of spring package. But each of them just contains the jar without version number. Surely this not happend to spring but also to other jars such as commons-*.jar. Somebody knows how to handle such a situation? Regards Thomas - Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie Yahoo! zu Ihrer Startseite!
Re: Where to find the mirror for spring*. jars?
On Sat, 2008-01-12 at 11:20 +0100, Thomas Chang wrote: Hi all, I use spring in my project. And I use maven2. In the pom.xml I have to set the version of the dependencies. I wonder where can I the mirror site which suply the spring*.jar with version number. I go to the spring homepage and there are different version of spring package. But each of them just contains the jar without version number. Surely this not happend to spring but also to other jars such as commons-*.jar. Somebody knows how to handle such a situation? Maven comes with a number of built-in repositories. You can see them all by looking at the documentation for the root pom on the maven website. However one of them is here: http://repo1.maven.org/maven2 As you can see, most java projects have their jars already here. Spring certainly does: http://repo1.maven.org/maven2/org/springframework/ Please read the Learning About Maven documentation on the maven website. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Continuum: what does default mean?
Ah, I see. So clicking on build at the higher level will only run nested build definitions with default=true. That makes sense. Thanks Olivier Wendy for your help. I'll subscribe to the continuum list and ask there if I have any further questions. On Fri, 2008-01-11 at 22:23 +0100, Olivier Lamy wrote: Hi, In fact, we're not talking about the same field ;-). The default you talk is to say this builddefinition will be used when the user will force a build from the project group menu page. Concerning build definition template this feature is available in 1.1 final (the myfaces continuum instance is 1.1-beta-2). -- Olivier PS : if you have more questions please use the continuum users ml (thanks) 2008/1/11, simon [EMAIL PROTECTED]: Hi Olivier, I think we're talking about the same field, but unfortunately I don't understand your answer. I'll try to be more precise... When looking at an existing build definition, the columns are: goals arguments build file schedule profile from build fresh default This default setting is a boolean value. I'm talking specifically about the continuum server at myfaces.zones.apache.org:8080/continuum although unfortunately you won't be able to see anything there without a login account. There are lots of definitions there with default=true, and lots with default=false. In particular, it appears that definitions for building jars is typically default=true while building sites is typically default=false. But I don't understand why things are set up this way.. What is a default maven2 template? I see in the continuum docs a section about build templates, although I see no such menu in the myfaces continuum site. Maybe I don't have sufficient privileges to see the menu; if so, how would I find out whether default=true is what I want or not for a new build definition? And what does one do anyway? Thanks, Simon On Wed, 2008-01-09 at 17:58 +0100, Olivier Lamy wrote: Hi, You mean when adding a project in the Build Definition list box ? If yes it's the default build definition for the project type (maven1, maven2, ant). If you are adding a m2 project : Default == default maven2 template. Sure it's a little verbose here because we repeat the same things. -- Olivier 2008/1/9, Simon Kitching [EMAIL PROTECTED]: Hi, On a continuum site, what does the default setting mean for a project? Thanks, Simon - 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: Cobertura
Use configuration formats formatxml/format formathtml/format /formats /configuration The xml file is a standard cobertura xml report On Jan 11, 2008 8:43 PM, Wayne Fay [EMAIL PROTECTED] wrote: Modify the Cobertura plugin so it does what you want. ;-) It is open source, after all. http://mojo.codehaus.org/cobertura-maven-plugin/ Wayne On 1/11/08, Hilco Wijbenga [EMAIL PROTECTED] wrote: I'd like to do something like this: http://www.devx.com/Java/Article/36231 but not with Ant but with Maven. (In summary, it extracts the line coverage rate from the coverage.xml file created by Cobertura and uses it to make sure future builds can only do better, not worse.) The problem is that the Cobertura Maven plugin doesn't seem to make the resulting coverage percentage public. I can do a cobertura:dump-datafile but this doesn't output to a file. Besides there does not seem to be a way to tell the plugin to use any kind of configuration file. The only solution I can think of is to go the AntRun plugin route... Does anyone have a better idea? Cheers, Hilco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error: Cannot invoke Tomcat manager by running tomcat:deploy
Please have a look at the documentation for the Tomcat Manager Application: http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html Thomas Chang wrote: Yes. I can open http://localhost:8080/manager/html. In this page this is a table where there is /manager. If I click it, I got the error. It seems it will call up the manager app but failed. Jeff MAURY [EMAIL PROTECTED] schrieb: What url do you use ? The URL to use is http://localhost:8080/manager/html and not *http://localhost:8080/manager* Jeff On Jan 11, 2008 3:04 PM, Thomas Chang wrote: You are right. I change the tomcat-users.xml as you wrote, it runs. Thank! But, if I open the Tomcat and go into the Manager page. When I click the link manager, I will get error of HTTP Status 404 - /manager/. Do you know why? Jeff MAURY schrieb: By default, the tomcat plugin uses admin as a user name and no password. If you don't specify them in your POM, your use modify your tomcat-users.xmlfile as follows: ** Jeff On Jan 11, 2008 2:36 PM, Thomas Chang wrote: Now I change the tomcat-users.xml as follow, but it's the same. Jeff MAURY schrieb: You must have the manager role so supply tomcat as user and password. Regards Jeff On Jan 11, 2008 2:03 PM, Thomas Chang wrote: Sure. My tomcat-users.xml looks as follow. Is it OK? Jeff MAURY schrieb: You must specify user and password because the manager application is protected by default. Jeff On Jan 11, 2008 1:27 PM, Thomas Chang wrote: Hi all, I try to deploy a WAR to Tomcat using mvn tomcat:deploy -Dmaven.tomcat.url=http://localhost:8585/manager;. But I got error as follow. What's wrong? [ERROR] BUILD ERROR [INFO] [INFO] Cannot invoke Tomcat manager Embedded error: Server returned HTTP response code: 401 for URL: http://localhos t:8585/manager/deploy?path=%2FTestWebwar= [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 10 seconds [INFO] Finished at: Fri Jan 11 13:19:55 CET 2008 [INFO] Final Memory: 6M/11M [INFO] C:\Projects\eclipse_workspace\TestWeb - Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. -- La mélancolie c'est communiste Tout le monde y a droit de temps en temps La mélancolie n'est pas capitaliste C'est même gratuit pour les perdants La mélancolie c'est pacifiste On ne lui rentre jamais dedans La mélancolie oh tu sais ça existe Elle se prend même avec des gants La mélancolie c'est pour les syndicalistes Il faut juste sa carte de permanent Miossec (2006) http://www.jeffmaury.com http://riadiscuss.jeffmaury.com - Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie Yahoo! zu Ihrer Startseite! -- La mélancolie c'est communiste Tout le monde y a droit de temps en temps La mélancolie n'est pas capitaliste C'est même gratuit pour les perdants La mélancolie c'est pacifiste On ne lui rentre jamais dedans La mélancolie oh tu sais ça existe Elle se prend même avec des gants La mélancolie c'est pour les syndicalistes Il faut juste sa carte de permanent Miossec (2006) http://www.jeffmaury.com http://riadiscuss.jeffmaury.com - Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. -- La mélancolie c'est communiste Tout le monde y a droit de temps en temps La mélancolie n'est pas capitaliste C'est même gratuit pour les perdants La mélancolie c'est pacifiste On ne lui rentre jamais dedans La mélancolie oh tu sais ça existe Elle se prend même avec des gants La mélancolie c'est pour les syndicalistes Il faut juste sa carte de permanent Miossec (2006) http://www.jeffmaury.com http://riadiscuss.jeffmaury.com - Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie Yahoo! zu Ihrer Startseite! -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Packaging HTML/JavaScript files into WAR from outside project
David Harkness wrote: When building the java webapp, I'd like some HTML and JS files to be packaged into the WAR, but those files live in the html and javascript directories instead of in java/src/main/webapp. What's the appropriate plugin to use in this case? On a side note, there are other JavaScript files from those same directories that get packaged into WEB-INF/classes since they need to be available as resources to the Java code and not as files via HTTP. This works great, and I want something similar that makes them available via HTTP instead of to the Java code. Check out our maven-jstools-plugin [1], see Packaging JS [2]. Using that as a normal (i.e non-plugin) dependency in your java webapp will allow you to make HTTP requests to JS files or other static resources (images, html etc.). This works through a highly configurable servlet filter [3]. This will also work for your html and javascript directories, if you tell maven to treat them as resources. [1] http://dev.abiss.gr/mvn-jstools/ [2] http://dev.abiss.gr/mvn-jstools/js-packaging.html [3] http://dev.abiss.gr/mvn-jstools/apidocs/gr/abiss/mvn/plugins/jstools/web/JavascriptDependencyFilter.html hth, Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed
Hello guys i read the previous threads about exclusion with interest because i am always confronted with the excludes problem i followed all the steps: changed my settings.xml to enable snapshot plugin repositories... (http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html) everything is working except the excludes tag my pom.xml looks like this: ... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.2-SNAPSHOT/version executions execution goals goaljar/goal /goals configuration excludes**/*.xsd/excludes schemaDirectorysrc/main/resources/xml/schemaDirectory /configuration /execution /executions /plugin ... and when i run maven with the following command: mvn -Papache package i've got this exception! ... [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-jar-plugin:2.2-SNAPSHOT (found static expression: '**/*.xsd' which may act as a default value). Cause: Cannot assign configuration entry 'excludes' to 'class [Ljava.lang.String;' from '**/*.xsd', which is of type class java.lang.String [INFO] [INFO] For more information, run Maven with the -e switch ... do i forget something during my builds?? regards supareno - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed
Hi, Can you try with : excludes exclude**/*.xsd/exclude /excludes -- Olivier 2008/1/12, supareno [EMAIL PROTECTED]: Hello guys i read the previous threads about exclusion with interest because i am always confronted with the excludes problem i followed all the steps: changed my settings.xml to enable snapshot plugin repositories... (http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html) everything is working except the excludes tag my pom.xml looks like this: ... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.2-SNAPSHOT/version executions execution goals goaljar/goal /goals configuration excludes**/*.xsd/excludes schemaDirectorysrc/main/resources/xml/schemaDirectory /configuration /execution /executions /plugin ... and when i run maven with the following command: mvn -Papache package i've got this exception! ... [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-jar-plugin:2.2-SNAPSHOT (found static expression: '**/*.xsd' which may act as a default value). Cause: Cannot assign configuration entry 'excludes' to 'class [Ljava.lang.String;' from '**/*.xsd', which is of type class java.lang.String [INFO] [INFO] For more information, run Maven with the -e switch ... do i forget something during my builds?? regards supareno - 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: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed
On Jan 12, 2008 3:59 PM, supareno [EMAIL PROTECTED] wrote: [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-jar-plugin:2.2-SNAPSHOT (found static expression: '**/*.xsd' which may act as a default value). Configuration problem on your side, use excludes exclude**/*.xsd/exclude /excludes Jochen -- Look, that's why there's rules, understand? So that you think before you break 'em. -- (Terry Pratchett, Thief of Time) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed
The excludes configuration is a set of things to exclude. It needs to be configured like this: excludes exclude**/*.xsd/exclude /excludes supareno wrote: Hello guys i read the previous threads about exclusion with interest because i am always confronted with the excludes problem i followed all the steps: changed my settings.xml to enable snapshot plugin repositories... (http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html) everything is working except the excludes tag my pom.xml looks like this: ... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.2-SNAPSHOT/version executions execution goals goaljar/goal /goals configuration excludes**/*.xsd/excludes schemaDirectorysrc/main/resources/xml/schemaDirectory /configuration /execution /executions /plugin ... and when i run maven with the following command: mvn -Papache package i've got this exception! ... [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-jar-plugin:2.2-SNAPSHOT (found static expression: '**/*.xsd' which may act as a default value). Cause: Cannot assign configuration entry 'excludes' to 'class [Ljava.lang.String;' from '**/*.xsd', which is of type class java.lang.String [INFO] [INFO] For more information, run Maven with the -e switch ... do i forget something during my builds?? regards supareno - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Generating a site for the company pom
I'm busy with making a company pom and now I wanted to generate a site for it. This site should contain information about the declared dependencies, the configuration of the reporting and such. Has someone already tried this and have some pointers or examples? With regards, Nick Stolwijk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Remote repository with self signed cert
Thanks for the info. I've actually already performed those steps, its what I did to import the certificate in order to get the dav deployment to work with a self signed cert. It turns out that this was a routing issue with the VPN routing. Its since been fixed. Thanks to everyone for all the help you've provided. On Jan 12, 2008 3:11 AM, Insitu [EMAIL PROTECTED] wrote: Hello, I managed to deploy/download from https sites with client side authentication following this guide: http://maven.apache.org/guides/mini/guide-repository-ssl.html Maybe you could provide more information on your configuration (pom + settings) ? Regards, -- Arnaud Bailly, PhD OQube - Software Engineering http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: internationalization (i18n) of XML files during process-resources phase
It turns out my requirements were fairly specialized where for each localizable string I needed to add several elements (one for each locale). I have decided to use xslt-maven-plugin for the task. Thanks. Wayne Fay wrote: Tell us more about what exactly you're trying to do (what's your input, and what do you want as output), and perhaps someone will have specific suggestions that will be helpful. Wayne On 1/5/08, Farrukh Najmi [EMAIL PROTECTED] wrote: Can any one guide me as to best practice for doing internationalization (i18n) of XML files using standard java properties files in a maven2 project. TIA. -- Regards, Farrukh Najmi - 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] -- Regards, Farrukh Najmi Web: http://www.wellfleetsoftware.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed
Thanks Olivier (and Jochen and Dennis), it is now building without any error but the xsd files is always here i'm gonna try with Ant task to if it is working ! regards Hi, Can you try with : excludes exclude**/*.xsd/exclude /excludes -- Olivier 2008/1/12, supareno [EMAIL PROTECTED]: Hello guys i read the previous threads about exclusion with interest because i am always confronted with the excludes problem i followed all the steps: changed my settings.xml to enable snapshot plugin repositories... (http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html) everything is working except the excludes tag my pom.xml looks like this: ... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.2-SNAPSHOT/version executions execution goals goaljar/goal /goals configuration excludes**/*.xsd/excludes schemaDirectorysrc/main/resources/xml/schemaDirectory /configuration /execution /executions /plugin ... and when i run maven with the following command: mvn -Papache package i've got this exception! ... [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-jar-plugin:2.2-SNAPSHOT (found static expression: '**/*.xsd' which may act as a default value). Cause: Cannot assign configuration entry 'excludes' to 'class [Ljava.lang.String;' from '**/*.xsd', which is of type class java.lang.String [INFO] [INFO] For more information, run Maven with the -e switch ... do i forget something during my builds?? regards supareno - 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: Where to find the mirror for spring*. jars?
Also use www.mvnrepository.com search engine to find the proper dependency nodes to use for a given dependency you are searching to add to your project. For example, here's a search for spring: http://www.mvnrepository.com/search.html?query=spring The search engine (and Maven in general) does assume that you have a pretty good idea of what you need to add to your project, especially for things like Spring which have a number of modules. Wayne On 1/12/08, simon [EMAIL PROTECTED] wrote: On Sat, 2008-01-12 at 11:20 +0100, Thomas Chang wrote: Hi all, I use spring in my project. And I use maven2. In the pom.xml I have to set the version of the dependencies. I wonder where can I the mirror site which suply the spring*.jar with version number. I go to the spring homepage and there are different version of spring package. But each of them just contains the jar without version number. Surely this not happend to spring but also to other jars such as commons-*.jar. Somebody knows how to handle such a situation? Maven comes with a number of built-in repositories. You can see them all by looking at the documentation for the root pom on the maven website. However one of them is here: http://repo1.maven.org/maven2 As you can see, most java projects have their jars already here. Spring certainly does: http://repo1.maven.org/maven2/org/springframework/ Please read the Learning About Maven documentation on the maven website. - 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]
Where to find mirros for spring2?
HI all, I am looking for the mirrors for spring2. I've looked into several central mirrors but htey just have spring1. Somebody knows? Regards Thomas - Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker.
Re: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed
The excludes field in the jar plugin is to exclude content from ${project.build.outputDirectory} not to exclude resources. In order to exclude resources have a look here [1]. I don't really understand your jar plugin configuration. Can you try a more simple : plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration excludes exclude**/*.xsd/exclude /excludes /configuration /plugin -- Olivier [1] http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html 2008/1/12, supareno [EMAIL PROTECTED]: Thanks Olivier (and Jochen and Dennis), it is now building without any error but the xsd files is always here i'm gonna try with Ant task to if it is working ! regards Hi, Can you try with : excludes exclude**/*.xsd/exclude /excludes -- Olivier 2008/1/12, supareno [EMAIL PROTECTED]: Hello guys i read the previous threads about exclusion with interest because i am always confronted with the excludes problem i followed all the steps: changed my settings.xml to enable snapshot plugin repositories... (http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html) everything is working except the excludes tag my pom.xml looks like this: ... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.2-SNAPSHOT/version executions execution goals goaljar/goal /goals configuration excludes**/*.xsd/excludes schemaDirectorysrc/main/resources/xml/schemaDirectory /configuration /execution /executions /plugin ... and when i run maven with the following command: mvn -Papache package i've got this exception! ... [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-jar-plugin:2.2-SNAPSHOT (found static expression: '**/*.xsd' which may act as a default value). Cause: Cannot assign configuration entry 'excludes' to 'class [Ljava.lang.String;' from '**/*.xsd', which is of type class java.lang.String [INFO] [INFO] For more information, run Maven with the -e switch ... do i forget something during my builds?? regards supareno - 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: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed
thanks for your Olivier , it works now! i forgot to make a clean in the target folder so that's why the files were always present ! regards The excludes field in the jar plugin is to exclude content from ${project.build.outputDirectory} not to exclude resources. In order to exclude resources have a look here [1]. I don't really understand your jar plugin configuration. Can you try a more simple : plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration excludes exclude**/*.xsd/exclude /excludes /configuration /plugin -- Olivier [1] http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html 2008/1/12, supareno [EMAIL PROTECTED]: Thanks Olivier (and Jochen and Dennis), it is now building without any error but the xsd files is always here i'm gonna try with Ant task to if it is working ! regards Hi, Can you try with : excludes exclude**/*.xsd/exclude /excludes -- Olivier 2008/1/12, supareno [EMAIL PROTECTED]: Hello guys i read the previous threads about exclusion with interest because i am always confronted with the excludes problem i followed all the steps: changed my settings.xml to enable snapshot plugin repositories... (http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html) everything is working except the excludes tag my pom.xml looks like this: ... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.2-SNAPSHOT/version executions execution goals goaljar/goal /goals configuration excludes**/*.xsd/excludes schemaDirectorysrc/main/resources/xml/schemaDirectory /configuration /execution /executions /plugin ... and when i run maven with the following command: mvn -Papache package i've got this exception! ... [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-jar-plugin:2.2-SNAPSHOT (found static expression: '**/*.xsd' which may act as a default value). Cause: Cannot assign configuration entry 'excludes' to 'class [Ljava.lang.String;' from '**/*.xsd', which is of type class java.lang.String [INFO] [INFO] For more information, run Maven with the -e switch ... do i forget something during my builds?? regards supareno - 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: No OSGi APIs in Maven repositories
I am sorry; I did not check correctly. I see them in m2 repository, but the groupId is still org.apache.felix. Should such standard artifact not be available with a vendor neutral groupId? Thanks, Sahoo Sahoo wrote: [posting to both felix and maven user forums] Hi, I don't seem to find OSGi API jars in standard Maven repositories. I find a version in http://people.apache.org/repo/m2-incubating-repository/ under the groupId org.apache.felix. But, I was expecting to find these standard APIs in the standard repository with a vendor neutral groupId artifactId. Thanks, Sahoo - 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]
No OSGi APIs in Maven repositories
[posting to both felix and maven user forums] Hi, I don't seem to find OSGi API jars in standard Maven repositories. I find a version in http://people.apache.org/repo/m2-incubating-repository/ under the groupId org.apache.felix. But, I was expecting to find these standard APIs in the standard repository with a vendor neutral groupId artifactId. Thanks, Sahoo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No OSGi APIs in Maven repositories
On 13/01/2008, Sahoo [EMAIL PROTECTED] wrote: I am sorry; I did not check correctly. I see them in m2 repository, but the groupId is still org.apache.felix. Should such standard artifact not be available with a vendor neutral groupId? you mean like: http://repo1.maven.org/maven2/org/osgi which contains the R4 core and compendium API artifacts... Thanks, Sahoo Sahoo wrote: [posting to both felix and maven user forums] Hi, I don't seem to find OSGi API jars in standard Maven repositories. I find a version in http://people.apache.org/repo/m2-incubating-repository/ under the groupId org.apache.felix. But, I was expecting to find these standard APIs in the standard repository with a vendor neutral groupId artifactId. Thanks, Sahoo - 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] -- Cheers, Stuart
Maven jetty:run loads resources from wrong directory
Hello Maven Users, My question is related to the maven jetty plugin with the goal jetty:run. I'm trying to use this plugin to cut down the build/test/change cycle time. However, when I try to use MyClass.class.getClassLoader().getResourceAsStream(foo.bar), it tries to load foo.bar from src/main/webapp/WEB-INF/classes instead of from src/main/resources. This method works fine when I use jetty:run-war. I was hoping to use jetty:run's hot deployment features to speed up development without resorting to mvn package commands. Any tips? While we're on the topic, I would also like to know how to enable JPDA on the jetty server for debugging the application while running. Your help will be greatly appreciated. -- Regards, Shalin Shekhar Mangar. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to find mirros for spring2?
As Simon sent earlier: http://repo1.maven.org/maven2/org/springframework/spring-core/ (look at the version numbers... latest is 2.5.1) Wayne On 1/12/08, Thomas Chang [EMAIL PROTECTED] wrote: HI all, I am looking for the mirrors for spring2. I've looked into several central mirrors but htey just have spring1. Somebody knows? Regards Thomas - Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie: libraries out of date in repository
Sorry for such a noob question: How do get the most up-to-date libraries into my project? I'm using Eclipse with the m2eclipse plug-in. I enable dependency management, pick Add Dependency off the menu, and try to add the Quartz library. The Repository Search dialog offers me only Quartz 1.5.2 as the most recent version, when 1.6 is the current stable version. What are my choices for dealing with this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No OSGi APIs in Maven repositories
Stuart McCulloch wrote: On 13/01/2008, Sahoo [EMAIL PROTECTED] wrote: I am sorry; I did not check correctly. I see them in m2 repository, but the groupId is still org.apache.felix. Should such standard artifact not be available with a vendor neutral groupId? you mean like: http://repo1.maven.org/maven2/org/osgi which contains the R4 core and compendium API artifacts... Yes, that was what I was looking for. Thank you. Sahoo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie: libraries out of date in repository
As shown in the mvnrepository.com search engine: http://www.mvnrepository.com/artifact/quartz/quartz Quartz 1.5.2 is the most recent release available in Maven. You will need to contact the Quartz dev team and ask them to please deploy/upload a newer version into the repo. Wayne On 1/12/08, Chris [EMAIL PROTECTED] wrote: Sorry for such a noob question: How do get the most up-to-date libraries into my project? I'm using Eclipse with the m2eclipse plug-in. I enable dependency management, pick Add Dependency off the menu, and try to add the Quartz library. The Repository Search dialog offers me only Quartz 1.5.2 as the most recent version, when 1.6 is the current stable version. What are my choices for dealing with this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven 2.1 release
I think John is wrapping up a few issues before an alpha goes out. -Original Message- From: Graham Leggett [mailto:[EMAIL PROTECTED] Sent: Friday, January 11, 2008 11:11 AM To: Maven Users List Subject: Maven 2.1 release Hi all, Is there any expected timeframe for the first stab (an alpha or beta) release of maven 2.1? I found this claiming around December time, is there any update? http://mail-archives.apache.org/mod_mbox/maven-users/200710.mbox/%3CFE7E [EMAIL PROTECTED] 3E Regards, Graham -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Getting version at runtime
My app needs to know its version at runtime (so it can log it). I could just hardcode the version into one of the classes, but I'm concerned that the hardcoded version could get out of sync with the version tag in the pom file. Is there a way for Maven to write the version in the pom into a class at build time? Or conversely, get the version out of a class at build time? (The latter would be better). What's the most maven-ish way to handle this problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting version at runtime
When Maven builds a jar, it writes a file named pom.properties to: /META-INF/maven/groupId/artifactId/pom.properties It looks like this: #Generated by Maven #Thu Sep 13 15:43:41 PDT 2007 version=2.0 groupId=org.apache.maven.plugins artifactId=maven-ant-plugin You can just read this file directly to access the version, using ClassLoader.getResourceAsStream(). Wayne On 1/12/08, Chris [EMAIL PROTECTED] wrote: My app needs to know its version at runtime (so it can log it). I could just hardcode the version into one of the classes, but I'm concerned that the hardcoded version could get out of sync with the version tag in the pom file. Is there a way for Maven to write the version in the pom into a class at build time? Or conversely, get the version out of a class at build time? (The latter would be better). What's the most maven-ish way to handle 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]
[solved] any maven support for macros ?
FYI, I've found an interesting solution in apache CXF : mvn -Psetup -- does a fast-minimal build and runs eclipse:eclipse The idea is to use a profile to bind some plugins to validate phase. Nico. 2008/1/9, nicolas de loof [EMAIL PROTECTED]: The assembly plugin requires the package goal to be run prior (to get acces to modules). mvn assembly:assembly fails with xx-ear project has no file ! - mvn package assembly:attached (as described in plugin doc) My project has some modules that builds maven plugins, used on other modules, so install is required - mvn install assembly:attached Next, my custom plugin works on the tar.gz produced by the assembly, so must run next - mvn install assembly:attached com.mycompany:myplugin:custom-goal I could force an @execute goal=assembly:assembly in my custom plugin, but still nedd to run package before the assembly to work. 2008/1/8, Michael McCallum [EMAIL PROTECTED]: why are you trying to 'release' with the install plugin? you should use the release plugin and bind the assembly and custom plugin to a phase of the project lifecycle, its all very well documented all over the place plugin artifactIdmaven-assembly-plugin/artifactId version2.2-beta-1/version executions execution phasepackage/phase goals goalattached/goal /goals configuration descriptors descriptorsrc/main/assembly/aggregation.xml/descriptor /descriptors outputDirectorytarget/assembly/outputDirectory workDirectorytarget/assembly/work/workDirectory /configuration /execution /executions /plugin On Wed, 09 Jan 2008 09:19:44 nicolas de loof wrote: Hello, To release my project I need to call a rather complex maven command : mvn install assembly:attached com.mycompany:myplugin:post-goal I'd like to provide in my corporate POM some macro command to define custom goals / lifecycle phases to run such commands. example : mvn release to create the release. Is there any way to create such macro-commands with maven, when the standard lifecycle is not enough ? I don't thing so, but maybe some combination of profiles and invoker plugin could help ? Nico. -- Michael McCallum Enterprise Engineer mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where is the version scheme in Maven documented?
Hi, Where is the version scheme for Maven specified? I have found some links [1,2,3] where it is briefly described, but none seems to be complete. Thanks, Sahoo [1] http://docs.codehaus.org/display/MAVEN/Extending+Maven+2.0+Dependencies [2] http://docs.codehaus.org/display/MAVEN/Versioning [3] http://svn.apache.org/viewvc/maven/artifact/trunk/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java?view=markup - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]