Re: Process webapp files between "copying webapp resources" and "building war"
OK. There are different ways to solve this I think. Please understand that the steps below are written theoretically, I haven't actually tried them. I leave that for you to do and report back to the community. :-) Solution 1: 1. Create a new folder where you put the files you want to be processed. 2. Bind the antrun plugin to a suitable phase and configure it to process the files. The processed files should be placed in some folder in target/ (the build dir). 3. Configure the war plugin (war:war) to include this folder (target/xxx) as a webResource. You can see how to do this here: http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html Solution 2: 1. Bind the antrun plugin to a suitable phase and configure it to process the files in the src\main\webapp folder you want to process. Either place the processed files in the correct folder structure under target/ (the build dir) so that they end up correctly in the war file, or put the in a new/separate output folder under target/. The latter will force you to configure the war plugin according to step 3 in solution 1. 2. Configure the war plugin to exclude the files that you process through the antrun plguin. Examples of this are found here: http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html I'd say that solution 1 is the more robust solution. Solution 2 is cleaner folder wise, but more error prune. Hope it helps, /Anders PS. If you really need special processing you might want to consider writing a real maven plugin for that, instead of using the antrun plugin. On Fri, Nov 27, 2009 at 07:56, S5 wrote: > I would like to run an ant plugin here to process some custom strings in > the > resource files. Maven's filtering won't work for our case. > > Thanks > > On Fri, Nov 27, 2009 at 12:20 PM, Anders Hammar wrote: > > > I think it will be easier for us to help you if you tell us what kind of > > processing you want to do. > > > > You cannot insert a process step within the war plugin execution of the > war > > goal (which is what you say in your log output). TO do that you need to > > adapt the plugin itself. However, the war plugin supports filtering (a > type > > of processing) and you can also have several web resources. Depending on > > what you want to do one of these possibilities could be your solution, > > possibly together with some other plugin (doing the processing). > > > > /Anders > > > > On Fri, Nov 27, 2009 at 05:58, S5 wrote: > > > > > Hello > > > > > > I am using Maven 2.2.1 > > > > > > In my project I want to process some of the resource files. This needs > to > > > happen after "copying webapp resources" step and before "building war" > > > step. > > > > > > Here's the log: > > > > > > [war:war {execution: default-war}] > > > [INFO] Packaging webapp > > > [INFO] Assembling webapp[myapp] in [**\target\myapp-1.0-SNAPSHOT] > > > [INFO] Processing war project > > > [INFO] Copying webapp resources[myapp\src\main\webapp] > > > > Need to process my resources here > > > [INFO] Building war: myapp\target\myapp-1.0-SNAPSHOT.war > > > > > > Is there a way to accomplish this? > > > > > > Thanks > > > > > >
Re: Process webapp files between "copying webapp resources" and "building war"
I would like to run an ant plugin here to process some custom strings in the resource files. Maven's filtering won't work for our case. Thanks On Fri, Nov 27, 2009 at 12:20 PM, Anders Hammar wrote: > I think it will be easier for us to help you if you tell us what kind of > processing you want to do. > > You cannot insert a process step within the war plugin execution of the war > goal (which is what you say in your log output). TO do that you need to > adapt the plugin itself. However, the war plugin supports filtering (a type > of processing) and you can also have several web resources. Depending on > what you want to do one of these possibilities could be your solution, > possibly together with some other plugin (doing the processing). > > /Anders > > On Fri, Nov 27, 2009 at 05:58, S5 wrote: > > > Hello > > > > I am using Maven 2.2.1 > > > > In my project I want to process some of the resource files. This needs to > > happen after "copying webapp resources" step and before "building war" > > step. > > > > Here's the log: > > > > [war:war {execution: default-war}] > > [INFO] Packaging webapp > > [INFO] Assembling webapp[myapp] in [**\target\myapp-1.0-SNAPSHOT] > > [INFO] Processing war project > > [INFO] Copying webapp resources[myapp\src\main\webapp] > > > Need to process my resources here > > [INFO] Building war: myapp\target\myapp-1.0-SNAPSHOT.war > > > > Is there a way to accomplish this? > > > > Thanks > > >
Re: Process webapp files between "copying webapp resources" and "building war"
I think it will be easier for us to help you if you tell us what kind of processing you want to do. You cannot insert a process step within the war plugin execution of the war goal (which is what you say in your log output). TO do that you need to adapt the plugin itself. However, the war plugin supports filtering (a type of processing) and you can also have several web resources. Depending on what you want to do one of these possibilities could be your solution, possibly together with some other plugin (doing the processing). /Anders On Fri, Nov 27, 2009 at 05:58, S5 wrote: > Hello > > I am using Maven 2.2.1 > > In my project I want to process some of the resource files. This needs to > happen after "copying webapp resources" step and before "building war" > step. > > Here's the log: > > [war:war {execution: default-war}] > [INFO] Packaging webapp > [INFO] Assembling webapp[myapp] in [**\target\myapp-1.0-SNAPSHOT] > [INFO] Processing war project > [INFO] Copying webapp resources[myapp\src\main\webapp] > > Need to process my resources here > [INFO] Building war: myapp\target\myapp-1.0-SNAPSHOT.war > > Is there a way to accomplish this? > > Thanks >
Process webapp files between "copying webapp resources" and "building war"
Hello I am using Maven 2.2.1 In my project I want to process some of the resource files. This needs to happen after "copying webapp resources" step and before "building war" step. Here's the log: [war:war {execution: default-war}] [INFO] Packaging webapp [INFO] Assembling webapp[myapp] in [**\target\myapp-1.0-SNAPSHOT] [INFO] Processing war project [INFO] Copying webapp resources[myapp\src\main\webapp] > Need to process my resources here [INFO] Building war: myapp\target\myapp-1.0-SNAPSHOT.war Is there a way to accomplish this? Thanks
Re: Resources in source folder
On Thu, Nov 26, 2009 at 5:57 PM, Martin Seebach wrote: > Hi, > > Thanks for the response. > > 2009/11/26 Barrie Treloar >> Did you check the plugin's documentation? >> http://maven.apache.org/plugins/maven-eclipse-plugin/ > > I tried to look for it, but I guess I focused too much on the > resources plugin, rather than the eclipse plugin. > >> See the example on specifying source path inclusions and exclusions >> for more details on how to change this behavior. > > I tried that, but I can't get it to change. My plugin section looks > like this now: > > > org.apache.maven.plugins > maven-eclipse-plugin > 2.6 > > true > > **/.svn/** > > > **/*.html > **/*.css > **/*.png > **/*.gif > > > > > but the classpathentry remains the same. I tried to run it with -X, > but couldn't find any references to this in the output. Hmm. I dont know. mvn -X eclipse:eclipse wont print out that it is including/excluding these values as I can see no debugs, but they should be listed in the configuration details of the plugin. Actually, I think 2.6 didn't support this feature. Yes, http://jira.codehaus.org/browse/MECLIPSE-104 was added in 2.7 - which is the latest release. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Upload files to remote host
2 executions of wagon:upload-single dont work? -D On Wed, Nov 25, 2009 at 5:11 AM, Aleksey Didik wrote: > Hello all, > Do you have any ideas, how to upload some project files to another host? > I have found wagon-maven-plugin, but it's upload goal is very poor (imho). > I want to upload 2 files from different folders, but I can define only one > "fromDir". > But if I define "fromDir" as ${basedir} and set includes with full file > path, wagon copy it with full path, not only file to "toDir" > > :( > > > org.codehaus.mojo > wagon-maven-plugin > > > deploy > > upload > > > > file://host/_releases/_app/${project.version} > /target/app.war, > src/main/scripts/db/delta-${project.version}.sql > > > > > > Aleksey. > > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Error running release:perform
Please ignore my above question, the issue has been resolved. -- View this message in context: http://old.nabble.com/Error-running-release%3Aperform-tp26525584p26533026.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Plugin to terminate another plugin
Hi Csaba, Gajo Csaba wrote at Donnerstag, 26. November 2009 17:21: > Hello, > > I use the exec plugin to run some external processes. It is possible for > one of these processes to get into an eternal loop, so the build will > hang. Is there a way to terminate this goal after, let's say, 10 > seconds? Not that I am aware of. > If there's no thing that's already made, is there a way to > write a custom plugin which would terminate the exec plugin after 10 > seconds? I would not want to modify the exec plugin itself. Why not? Checkout the source, add a parameter to its configuration and implement the feature, create a patch (with tests) and put it into a JIRA issue for the plugin. While the official release does not contain your change the version in the POM simply to something like x.y-svn-ZZ, so you know to which version in trunk you actually applied your patch, add your own distribution section and deploy the built plugin into your repo. When the official plugin contains your patch, you can simply exchange its version in the pluginMgmt section and forget about your modified one. - Jörg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Plugin to terminate another plugin
Hello, I use the exec plugin to run some external processes. It is possible for one of these processes to get into an eternal loop, so the build will hang. Is there a way to terminate this goal after, let's say, 10 seconds? If there's no thing that's already made, is there a way to write a custom plugin which would terminate the exec plugin after 10 seconds? I would not want to modify the exec plugin itself. Thanks, Csaba - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Error running release:perform
Thanks for your response, this fixed the problem! However, another issue comes up - release:perform almost worked out except at the very end it failed to upload the artifact to the repo, and the error is [INFO] [INFO] Error deploying artifact: Failed to transfer file: .. Return code is: 401 I believe this is a permission related issue. But I've got the correct server username/password pairs in settings.xml and running the deploy goal in the lifecycle has no problem having the artifact deployed, it's just the release:perform that gets stuck withe permission problem. Anyone knows why this happens please? matinh wrote: > > Hi! > > Am Donnerstag, 26. November 2009 14:15:24 schrieb zyd08: >> I've managed to find out the cause of the issue: during the prepare, the >> tag was given at the project root directory (which contains branches, >> tags >> and trunk) at the svn repo instead of the project_root/trunk directory; >> therefore, when release:perform checks out the working copy of the given >> tag, it has branches, tags and trunk sub-directories all checked out, and >> pom.xml is contained under trunk. >> >> So the question has become how can I set prepare tag the trunk directory >> rather than the project root directory correctly? Apologies for this >> newbie >> question, any help is highly appreciated! > > Have a look at the section in your POM. or > eventually are the tags that define the root of your project > in > SCM. Google should bring more information if you need them. > > hth, > - martin > > > -- View this message in context: http://old.nabble.com/Error-running-release%3Aperform-tp26525584p26531164.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven release plugin is not applying scmcommentprefix while tagging
In central: http://repo2.maven.org/maven2/org/apache/maven/plugins/maven-release-plugin/2.0-beta-8/ /Anders On Thu, Nov 26, 2009 at 14:36, DebasisM wrote: > > Thanks.But in the repository i did not get the 2.0-beta-8 source. > I need 2.0-beta-8 source of maven-release-plugin and maven-release-manager > plugin. > > Could you please provide me the url? > > Thanks, > Debasis > > djrobo wrote: > > > > That is a known issue with 2.0-beta-9 of the release plugin. Try using > > 2.0-beta-8 instead. > > > > -Michael > > > > > > DebasisM wrote: > >> > >> Hi All, > >> Even if i am giving the scmcommentprefix then also release:prepare goal > >> is not taking into consideration while tagging.it is starting from > >> -[maven-scm] copy for tag. > >> I am using scmbug that every commit should be started with a bug id > like > >> bug bugno:message. > >> > >> I have given in the scmcommentprefix .it is working fine while > >> checkingin the pom file but while tagging it is failing. > >> > >> Thanks, > >> Debasis > >> > > > > > > -- > View this message in context: > http://old.nabble.com/maven-release-plugin-is-not-applying-scmcommentprefix-while-tagging-tp26528667p26529507.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
Re: maven+netbeans+cpp newbie question
Hi Stephan, Netbeans doesn't work well with Maven and C++ project. We use the nar maven plugin to compile C++ project. Actually, we build from CLI but I use Netbeans for Java too. I think Netbeans doesn't know about "nar" package. So some editor features don't work anymore. For example, the src directory isn't display in project view. I don't know about the other native plugin. Regards, Vincent Hardion Le 26 nov. 2009 à 09:53, stephane ancelot a écrit : Hi, I have got a problem ! I have to use netbeans in multiproject environment. multiproject means I have to generate a package that is composed of many C/C++ applications executable. however, it looks like netbeans does not support well multiproject environment. So, may be using maven will solve this problem ? I would like to know if I can use maven with netbeans in this context, my project structure would be similar to : project1/ project2/ somelib1/ somelibx/ What are necessary customisations in order doing this ? I tried making a pom.xml with native settings, importing it in netbeans but it creates some java files. Inside the IDE , when I add new files to the project, I would like it to be transparent for the user. I do not want him to hack some pom files ...Is it working ? Best Regards Steph - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven release plugin is not applying scmcommentprefix while tagging
Thanks.But in the repository i did not get the 2.0-beta-8 source. I need 2.0-beta-8 source of maven-release-plugin and maven-release-manager plugin. Could you please provide me the url? Thanks, Debasis djrobo wrote: > > That is a known issue with 2.0-beta-9 of the release plugin. Try using > 2.0-beta-8 instead. > > -Michael > > > DebasisM wrote: >> >> Hi All, >> Even if i am giving the scmcommentprefix then also release:prepare goal >> is not taking into consideration while tagging.it is starting from >> -[maven-scm] copy for tag. >> I am using scmbug that every commit should be started with a bug id like >> bug bugno:message. >> >> I have given in the scmcommentprefix .it is working fine while >> checkingin the pom file but while tagging it is failing. >> >> Thanks, >> Debasis >> > > -- View this message in context: http://old.nabble.com/maven-release-plugin-is-not-applying-scmcommentprefix-while-tagging-tp26528667p26529507.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Error running release:perform
Hi! Am Donnerstag, 26. November 2009 14:15:24 schrieb zyd08: > I've managed to find out the cause of the issue: during the prepare, the > tag was given at the project root directory (which contains branches, tags > and trunk) at the svn repo instead of the project_root/trunk directory; > therefore, when release:perform checks out the working copy of the given > tag, it has branches, tags and trunk sub-directories all checked out, and > pom.xml is contained under trunk. > > So the question has become how can I set prepare tag the trunk directory > rather than the project root directory correctly? Apologies for this newbie > question, any help is highly appreciated! Have a look at the section in your POM. or eventually are the tags that define the root of your project in SCM. Google should bring more information if you need them. hth, - martin signature.asc Description: This is a digitally signed message part.
Re: Error running release:perform
Thanks for the above responses. I've managed to find out the cause of the issue: during the prepare, the tag was given at the project root directory (which contains branches, tags and trunk) at the svn repo instead of the project_root/trunk directory; therefore, when release:perform checks out the working copy of the given tag, it has branches, tags and trunk sub-directories all checked out, and pom.xml is contained under trunk. So the question has become how can I set prepare tag the trunk directory rather than the project root directory correctly? Apologies for this newbie question, any help is highly appreciated! -- View this message in context: http://old.nabble.com/Error-running-release%3Aperform-tp26525584p26529286.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven release plugin is not applying scmcommentprefix while tagging
That is a known issue with 2.0-beta-9 of the release plugin. Try using 2.0-beta-8 instead. -Michael DebasisM wrote: > > Hi All, > Even if i am giving the scmcommentprefix then also release:prepare goal > is not taking into consideration while tagging.it is starting from > -[maven-scm] copy for tag. > I am using scmbug that every commit should be started with a bug id like > bug bugno:message. > > I have given in the scmcommentprefix .it is working fine while checkingin > the pom file but while tagging it is failing. > > Thanks, > Debasis > -- View this message in context: http://old.nabble.com/maven-release-plugin-is-not-applying-scmcommentprefix-while-tagging-tp26528667p26529221.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Error installing artifact's metadata:
If you're using Nexus 1.4 it's in the repository's configuration ("Deployment Policy"). If you're using Nexus 1.3.x it's a lot more work. I think there's something about this on the Nexus FAQ. /Anders On Thu, Nov 26, 2009 at 13:30, Ekaterina Ilina wrote: > We are using Nexus. Do you know where these settings are in Nexus? > > Ekaterina > > -Original Message- > From: Wayne Fay [mailto:wayne...@gmail.com] > Sent: Wednesday, November 25, 2009 6:58 PM > To: Maven Users List > Subject: Re: Error installing artifact's metadata: > > > It occurred, that maven-metadata.xml was corrupted (maven-metadata.xml is > > attached). It seems that it was corrupted because 2 processes tried to > > deploy the same jar. We removed this file (maven-metadata.xml) and it > > helped. Is it possible to do smth to prevent such a situation? > > What MRM tool are you using (Nexus, Artifactory, Archiva, etc)? There > are generally settings in the MRM to manage and prevent > re-deployments. > > Wayne > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
RE: Error installing artifact's metadata:
We are using Nexus. Do you know where these settings are in Nexus? Ekaterina -Original Message- From: Wayne Fay [mailto:wayne...@gmail.com] Sent: Wednesday, November 25, 2009 6:58 PM To: Maven Users List Subject: Re: Error installing artifact's metadata: > It occurred, that maven-metadata.xml was corrupted (maven-metadata.xml is > attached). It seems that it was corrupted because 2 processes tried to > deploy the same jar. We removed this file (maven-metadata.xml) and it > helped. Is it possible to do smth to prevent such a situation? What MRM tool are you using (Nexus, Artifactory, Archiva, etc)? There are generally settings in the MRM to manage and prevent re-deployments. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
maven release plugin is not applying scmcommentprefix while tagging
Hi All, Even if i am giving the scmcommentprefix then also release:prepare goal is not taking into consideration while tagging.it is starting from -[maven-scm] copy for tag. I am using scmbug that every commit should be started with a bug id like bug bugno:message. I have given in the scmcommentprefix .it is working fine while checkingin the pom file but while tagging it is failing. Thanks, Debasis -- View this message in context: http://old.nabble.com/maven-release-plugin-is-not-applying-scmcommentprefix-while-tagging-tp26528667p26528667.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Error running release:perform
Hi! The thread Anders is talking about is probably this one: http://old.nabble.com/Putting-a-Release-in-the-Repository-to26432264.html Do you have a flat multi-module project? hth, - martin Am Donnerstag, 26. November 2009 12:15:27 schrieb zyd08: > I have some issues with using the release plugin. Basically, > release:prepare can be run with no problems; but when it came to > release:perform, the build failed with the following error: > > [INFO] [ERROR] BUILD ERROR > [INFO] [INFO] > > [INFO] [INFO] Cannot execute mojo: resources. It requires a project with an > existing pom.xml, but the build is not using one. > > My understanding of this message is that it cannot find pom.xml which does > exist in my project directory. So can anyone explain how to resolve this > please? Thanks very much in advance! signature.asc Description: This is a digitally signed message part.
Re: Error running release:perform
I believe that the very same issue was discussed some time ago. release:perform does a checkout based on the label. It's that pom that it cannot find (after the checkout). Check that the scm url is correct. Also have a look at what has been checkout, it could point at the issue: http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html#workingDirectory /Anders On Thu, Nov 26, 2009 at 12:15, zyd08 wrote: > > I have some issues with using the release plugin. Basically, > release:prepare > can be run with no problems; but when it came to release:perform, the build > failed with the following error: > > [INFO] [ERROR] BUILD ERROR > [INFO] [INFO] > > [INFO] [INFO] Cannot execute mojo: resources. It requires a project with an > existing pom.xml, but the build is not using one. > > My understanding of this message is that it cannot find pom.xml which does > exist in my project directory. So can anyone explain how to resolve this > please? Thanks very much in advance! > -- > View this message in context: > http://old.nabble.com/Error-running-release%3Aperform-tp26525584p26525584.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
Error running release:perform
I have some issues with using the release plugin. Basically, release:prepare can be run with no problems; but when it came to release:perform, the build failed with the following error: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] [INFO] [INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one. My understanding of this message is that it cannot find pom.xml which does exist in my project directory. So can anyone explain how to resolve this please? Thanks very much in advance! -- View this message in context: http://old.nabble.com/Error-running-release%3Aperform-tp26525584p26525584.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: how to preserve artifact time from repository to local repository
I was thinking more about it. There is stable date for an artifact, ie META-INF/MANIFEST.MF inside the jar, it should allways be the date of the artifact creation 2009/11/25 Henri Gomez : > 3.0.x, good, that's the target version for us (m2eclipse users) > > 2009/11/25 Wayne Fay : >>> Question, If I should file it as an enhancement, it should be for : >>> 2.1.x, 2.2.x and 3.0.x ? >> >> I would file for 3.0.x simply because that is where the most activity >> is happening lately. >> >> But it sounds like Marat has a better suggestion, which I would pursue >> before going down this road. >> >> Wayne >> >> - >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Maven Shade Plugin 1.2.2 Released
The Maven team is pleased to announce the release of the Maven Shade Plugin, version 1.2.2. This plugin provides the capability to package the artifact in an uber-jar, including its dependencies and to shade - i.e. rename - the packages of some of the dependencies. See the plugin's site for more details: http://maven.apache.org/plugins/maven-shade-plugin/ To use the updated plugin in your projects, you need to add the following snippet to the plugins or plugin management section of your POM: org.apache.maven.plugins maven-shade-plugin 1.2.2 Release Notes - Maven 2.x Shade Plugin - Version 1.2.2 ** Bug * [MSHADE-47] - Shade misses class references stored as strings during relocation * [MSHADE-53] - Shade createDependencyReducedPom ignores artifacts with classifier * [MSHADE-54] - not respected when generating the package * [MSHADE-60] - [PATCH] maven shade plugin fails if artifact dependencies contain artifacts that cannot be opened with JarFile class * [MSHADE-64] - Relocating does not work, when an annotation references an enum * [MSHADE-66] - Creation of dependency reduced POM fails for project with uninstalled local parent using Maven 3 ** Improvement * [MSHADE-58] - Add sample configuration for AppendingTransformer in docs Enjoy, -The Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven+netbeans+cpp newbie question
On Thu, Nov 26, 2009 at 9:53 AM, stephane ancelot wrote: > Hi, > > I have got a problem ! > > I have to use netbeans in multiproject environment. multiproject means I > have to generate a package that is composed of many C/C++ applications > executable. > > however, it looks like netbeans does not support well multiproject > environment. > > So, may be using maven will solve this problem ? > depends. check first whether after using maven you still get most/all of the c++ editor features you get in the C++ projects. The support could be bound exclusively to these and be absent in maven projects.. > > I would like to know if I can use maven with netbeans in this context, my > project structure would be similar to : > > project1/ > project2/ > somelib1/ > somelibx/ > > > What are necessary customisations in order doing this ? > I tried making a pom.xml with native settings, importing it in netbeans > but it creates some java files. > you will need to find maven plugins specific to c++ developement and see from there how the maven project is to be customized. > > Inside the IDE , when I add new files to the project, I would like it to > be transparent for the user. > I do not want him to hack some pom files ...Is it working ? > It should as far as I can tell. Milos > > Best Regards > Steph > > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
RE: how to set environment variables
seems there's really no easy way to set env vars directly in general I think that this is ok and you should not set env vars directly, but I have a good exception to this rule: it is described in the paragraph "Using Saxon (but not as default)" of http://martin-trummer.blogspot.com/2009/11/wysiwyg-gotchas.html Blog: WYSIWYG gotchas the solution I came up with is to write my own little mojo that I can pass the env-vars I want to set. I bind the plugin execution to the early validate phase and pass the properties like this:in the mojo I simply call System.setProperty() for all given environment vars - this works for my usecase. However, beware that you should only use this if absolutely necessary -- View this message in context: http://old.nabble.com/how-to-set-environment-variables-tp25960613p26525313.html Sent from the Maven - Users mailing list archive at Nabble.com. javax.xml.transform.TransformerFactory com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
maven+netbeans+cpp newbie question
Hi, I have got a problem ! I have to use netbeans in multiproject environment. multiproject means I have to generate a package that is composed of many C/C++ applications executable. however, it looks like netbeans does not support well multiproject environment. So, may be using maven will solve this problem ? I would like to know if I can use maven with netbeans in this context, my project structure would be similar to : project1/ project2/ somelib1/ somelibx/ What are necessary customisations in order doing this ? I tried making a pom.xml with native settings, importing it in netbeans but it creates some java files. Inside the IDE , when I add new files to the project, I would like it to be transparent for the user. I do not want him to hack some pom files ...Is it working ? Best Regards Steph - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Calling an other Mojo from own Mojo ?
Hi James, James William Dumay wrote at Donnerstag, 26. November 2009 08:50: > Take a look at the mojo executor. I think this is what you want > http://code.google.com/p/mojo-executor/ I wish every user of that plugin good luck to maintain ever a larger build with some submodules. Unless they never come here to the list and ask because of surprising effects that break their build. - Jörg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Calling an other Mojo from own Mojo ?
Hi, Wurzelseppi wrote at Donnerstag, 26. November 2009 08:45: > > Hi All, > > i trying to develop an maven plugin and have problems at a certain point. > > My Mojo has to call an other mojo and needs to pass required parameters > which i´m defining in my own plugins configuration section. The question > is: how do i do that ? > somehow i can´t get a handle to the configuration paramters of my mojo > other than the directly injected ones. > Is there a way to get a map or something like that of the parameters and > pass them to the other mojo ? In short: Don't do it, it is not supported by the Maven classloader. Long version: Maven loads every plugin/Mojo only once either because it is used in the POM by the user or because some malicious plugin loads it as dependency. Now, if the user and the malicious plugin do not agree over the plugin's version and the plugin versions are no longer compatible, the build simply breaks. - Jörg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org