Re: Maven and Eclipse
Hi Michael, > Failure to find org.apache.maven:maven-plugin-api:jar:2.0.9 in > https://swimrepo.faa.gov/nexus/content/repositories/Repo-jboss-fuse-06-02-01-Releases > was cached in the local repository, resolution will not be reattempted > until the update interval of SwimRepo has elapsed or updates are > forced -> [Help 1] Firstly, you need to check the "Force updates of snapshots and releases" option. Otherwise, Maven is telling you that this step failed _earlier_ and so it's not going to even try and do it again this time, unless you force it to. Once you force it, you should see a different error message if indeed that artifact is not present in that repository. Do you by chance have a block in your settings.xml? If so, then perhaps your swimrepo.faa.gov mirror does not in fact contain that org.apache.maven:maven-plugin-api:2.0.9 artifact as it is supposed to? -Curtis -- Curtis Rueden LOCI software architect - http://loci.wisc.edu/software On Tue, Jun 14, 2016 at 12:35 PM, <michael.ctr.taru...@faa.gov> wrote: > And one last thing on this. > > So now that I have resolved the Maven Dependencies problem, which it > appears I created myself, I am back to the original problem which is when I > compile from Eclipse (regardless of whether I upgraded to Mars 2 from Luna > as in my Windows environment or fresh installed Mars 2 as in my Linux > environment) I get the following error: > > Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile > (default-compile) on project queue.producer: Execution default-compile of > goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile failed: > Plugin org.apache.maven.plugins:maven-compiler-plugin:2.5.1 or one of its > dependencies could not be resolved: Failure to find > org.apache.maven:maven-plugin-api:jar:2.0.9 in > https://swimrepo.faa.gov/nexus/content/repositories/Repo-jboss-fuse-06-02-01-Releases > was cached in the local repository, resolution will not be reattempted > until the update interval of SwimRepo has elapsed or updates are forced -> > [Help 1] > > And if I recall, this is what both Curtis was explaining (fresh install > vs. upgrade) and Barrie wanted to know about in terms of outcome. > > So thus far the outcome is the same for the upgrade and fresh install > environments, albeit the former is a Windows platform and the later a Linux > platform. I will try a fresh install of Mars 2 in Windows as soon as I > have time to work on it. > > Michael Tarullo > Contractor (Engility Corp) > Software Engineer > FAA WJH Technical Center > (609)485-5294 > > > -Original Message- > From: Barrie Treloar [mailto:baerr...@gmail.com] > Sent: Wednesday, June 08, 2016 7:33 PM > To: Maven Users List > Subject: Re: Maven and Eclipse > > On 9 June 2016 at 01:00, <michael.ctr.taru...@faa.gov> wrote: > > > Thanks Curtis! > > > > That's exactly what I did. > > > > As soon as I get a chance, I'll try a fresh install of Mars 2 and see > > how it goes. I usually do my Eclipse upgrades with fresh installs, > > this is the first time I tried to upgrade from a previous version. > > > > Mike > > > And when you resolve the issue, can you post back your findings for search > engines to find. > > Thanks. >
RE: Maven and Eclipse
And one last thing on this. So now that I have resolved the Maven Dependencies problem, which it appears I created myself, I am back to the original problem which is when I compile from Eclipse (regardless of whether I upgraded to Mars 2 from Luna as in my Windows environment or fresh installed Mars 2 as in my Linux environment) I get the following error: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project queue.producer: Execution default-compile of goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile failed: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.5.1 or one of its dependencies could not be resolved: Failure to find org.apache.maven:maven-plugin-api:jar:2.0.9 in https://swimrepo.faa.gov/nexus/content/repositories/Repo-jboss-fuse-06-02-01-Releases was cached in the local repository, resolution will not be reattempted until the update interval of SwimRepo has elapsed or updates are forced -> [Help 1] And if I recall, this is what both Curtis was explaining (fresh install vs. upgrade) and Barrie wanted to know about in terms of outcome. So thus far the outcome is the same for the upgrade and fresh install environments, albeit the former is a Windows platform and the later a Linux platform. I will try a fresh install of Mars 2 in Windows as soon as I have time to work on it. Michael Tarullo Contractor (Engility Corp) Software Engineer FAA WJH Technical Center (609)485-5294 -Original Message- From: Barrie Treloar [mailto:baerr...@gmail.com] Sent: Wednesday, June 08, 2016 7:33 PM To: Maven Users List Subject: Re: Maven and Eclipse On 9 June 2016 at 01:00, <michael.ctr.taru...@faa.gov> wrote: > Thanks Curtis! > > That's exactly what I did. > > As soon as I get a chance, I'll try a fresh install of Mars 2 and see > how it goes. I usually do my Eclipse upgrades with fresh installs, > this is the first time I tried to upgrade from a previous version. > > Mike And when you resolve the issue, can you post back your findings for search engines to find. Thanks.
RE: Maven and Eclipse
Curtis, Thank you for your reply. It actually gave me an idea that solved my problem. To get Eclipse and Maven recreate the Maven Dependencies in my Java Build Path I ran Maven -> Update Projects. first without a settings.xml file which did recreate the entry, but with the errors because without the settings.xml file Maven could not access my remote repo. Then I ran it again with my settings.xml file in my .m2 directory and all the errors in my Maven Dependencies entry in the Java Build Path are now correct. I have been going back and forth on this for the past few weeks (since my original post) so I cannot say what prompted me to remove the Maven Dependencies from the Java Build Path. It is possible I was just curious to see if Maven -> Update Projects would refresh the entry. I am now going to see if this fixes the situation in my Windows environment. Michael Tarullo Contractor (Engility Corp) Software Engineer FAA WJH Technical Center (609)485-5294 -Original Message- From: ctrueden.w...@gmail.com [mailto:ctrueden.w...@gmail.com] On Behalf Of Curtis Rueden Sent: Tuesday, June 14, 2016 12:09 PM To: Maven Users List Subject: Re: Maven and Eclipse Hi Michael, > I removed the Maven Dependencies entry from the Java Build Bath > Libraries tab I don't understand why you are doing this step. It should never be necessary in my experience, and my intuition is that it could hose things up. The Maven > Update Project... command in the Package Explorer context menu (when you right-click a Maven project) should rebuild the contents of the Maven Dependencies list automatically, and hence keep your build path up to date. The workflow to get up and running on a target system (Windows, Linux or otherwise) should be the same: - Clone the project from your SCM to a local directory - File > Import > Existing Maven Project... - Select the local directory you just cloned - Next a couple of times, and you're done. And updating should be as simple as: - Update from your SCM - *Maybe* quick-fix to "Update Project..." if Eclipse complains about the pom.xml being out of sync. This will likely depend on how you updated from your SCM: through Eclipse or externally. Glad that you figured out about the settings.xml file. Regards, Curtis -- Curtis Rueden LOCI software architect - http://loci.wisc.edu/software ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden Did you know ImageJ has a forum? http://forum.imagej.net/ On Tue, Jun 14, 2016 at 10:53 AM, <michael.ctr.taru...@faa.gov> wrote: > Further information on this issue: > > I earlier reported that my fresh install of Eclipse Mars 2 in a Linux > environment did create a Maven Directories entry when executing Maven > -> Update Project, but that I noticed a problem with the actual jar > files this entry was pointing to and that they were not loaded into my > local repo from my remote repo. > > It appears this behavior was because I neglected to port my > settings.xml file to the .m2 directory and this file contains the > credentials to log in to my remote repo. > > So, I copied my settings.xml file from my Windows environment and > updated the location of my local repo in settings.xml with my Linux > path to my local repo. Then I removed the Maven Dependencies entry > from the Java Build Bath Libraries tab, removed all the directories in > my local repo and executed Maven -> Update Project.; this time I > received the same results that I did in my Windows environment where > my Eclipse upgrade to Mars 2 was not from a fresh install. > > Once again, I hope this is helpful. And sorry for any confusion the > first post may have caused. I just completely forgot about the settings.xml > file. > > Michael Tarullo > Contractor (Engility Corp) > Software Engineer > FAA WJH Technical Center > (609)485-5294 > > > -Original Message----- > From: Barrie Treloar [mailto:baerr...@gmail.com] > Sent: Wednesday, June 08, 2016 7:33 PM > To: Maven Users List > Subject: Re: Maven and Eclipse > > On 9 June 2016 at 01:00, <michael.ctr.taru...@faa.gov> wrote: > > > Thanks Curtis! > > > > That's exactly what I did. > > > > As soon as I get a chance, I'll try a fresh install of Mars 2 and > > see how it goes. I usually do my Eclipse upgrades with fresh > > installs, this is the first time I tried to upgrade from a previous version. > > > > Mike > > > And when you resolve the issue, can you post back your findings for > search engines to find. > > Thanks. >
Re: Maven and Eclipse
Hi Michael, > I removed the Maven Dependencies entry from the Java Build Bath > Libraries tab I don't understand why you are doing this step. It should never be necessary in my experience, and my intuition is that it could hose things up. The Maven > Update Project... command in the Package Explorer context menu (when you right-click a Maven project) should rebuild the contents of the Maven Dependencies list automatically, and hence keep your build path up to date. The workflow to get up and running on a target system (Windows, Linux or otherwise) should be the same: - Clone the project from your SCM to a local directory - File > Import > Existing Maven Project... - Select the local directory you just cloned - Next a couple of times, and you're done. And updating should be as simple as: - Update from your SCM - *Maybe* quick-fix to "Update Project..." if Eclipse complains about the pom.xml being out of sync. This will likely depend on how you updated from your SCM: through Eclipse or externally. Glad that you figured out about the settings.xml file. Regards, Curtis -- Curtis Rueden LOCI software architect - http://loci.wisc.edu/software ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden Did you know ImageJ has a forum? http://forum.imagej.net/ On Tue, Jun 14, 2016 at 10:53 AM, <michael.ctr.taru...@faa.gov> wrote: > Further information on this issue: > > I earlier reported that my fresh install of Eclipse Mars 2 in a Linux > environment did create a Maven Directories entry when executing Maven -> > Update Project, but that I noticed a problem with the actual jar files this > entry was pointing to and that they were not loaded into my local repo from > my remote repo. > > It appears this behavior was because I neglected to port my settings.xml > file to the .m2 directory and this file contains the credentials to log in > to my remote repo. > > So, I copied my settings.xml file from my Windows environment and updated > the location of my local repo in settings.xml with my Linux path to my > local repo. Then I removed the Maven Dependencies entry from the Java > Build Bath Libraries tab, removed all the directories in my local repo and > executed Maven -> Update Project.; this time I received the same > results that I did in my Windows environment where my Eclipse upgrade to > Mars 2 was not from a fresh install. > > Once again, I hope this is helpful. And sorry for any confusion the first > post may have caused. I just completely forgot about the settings.xml file. > > Michael Tarullo > Contractor (Engility Corp) > Software Engineer > FAA WJH Technical Center > (609)485-5294 > > > -Original Message- > From: Barrie Treloar [mailto:baerr...@gmail.com] > Sent: Wednesday, June 08, 2016 7:33 PM > To: Maven Users List > Subject: Re: Maven and Eclipse > > On 9 June 2016 at 01:00, <michael.ctr.taru...@faa.gov> wrote: > > > Thanks Curtis! > > > > That's exactly what I did. > > > > As soon as I get a chance, I'll try a fresh install of Mars 2 and see > > how it goes. I usually do my Eclipse upgrades with fresh installs, > > this is the first time I tried to upgrade from a previous version. > > > > Mike > > > And when you resolve the issue, can you post back your findings for search > engines to find. > > Thanks. >
RE: Maven and Eclipse
Further information on this issue: I earlier reported that my fresh install of Eclipse Mars 2 in a Linux environment did create a Maven Directories entry when executing Maven -> Update Project, but that I noticed a problem with the actual jar files this entry was pointing to and that they were not loaded into my local repo from my remote repo. It appears this behavior was because I neglected to port my settings.xml file to the .m2 directory and this file contains the credentials to log in to my remote repo. So, I copied my settings.xml file from my Windows environment and updated the location of my local repo in settings.xml with my Linux path to my local repo. Then I removed the Maven Dependencies entry from the Java Build Bath Libraries tab, removed all the directories in my local repo and executed Maven -> Update Project.; this time I received the same results that I did in my Windows environment where my Eclipse upgrade to Mars 2 was not from a fresh install. Once again, I hope this is helpful. And sorry for any confusion the first post may have caused. I just completely forgot about the settings.xml file. Michael Tarullo Contractor (Engility Corp) Software Engineer FAA WJH Technical Center (609)485-5294 -Original Message- From: Barrie Treloar [mailto:baerr...@gmail.com] Sent: Wednesday, June 08, 2016 7:33 PM To: Maven Users List Subject: Re: Maven and Eclipse On 9 June 2016 at 01:00, <michael.ctr.taru...@faa.gov> wrote: > Thanks Curtis! > > That's exactly what I did. > > As soon as I get a chance, I'll try a fresh install of Mars 2 and see > how it goes. I usually do my Eclipse upgrades with fresh installs, > this is the first time I tried to upgrade from a previous version. > > Mike And when you resolve the issue, can you post back your findings for search engines to find. Thanks.
RE: Maven and Eclipse
> From: michael.ctr.taru...@faa.gov > To: users@maven.apache.org > Subject: RE: Maven and Eclipse > Date: Tue, 14 Jun 2016 14:33:31 + > > This is a partial update to this issue, which I am posting as requested by > Barrie Treloar. > > I encountered this problem on a Windows install of Eclipse. For the project > I am working on I also needed a Linux Eclipse environment. So I asked our > Linux Sys Admin to install a fresh download of Eclipse Mars 2 in a Linux VM I > have dedicated to my project. > > I created new projects in this environment as Maven projects. A Maven > Dependencies entry was added to my project's Libraries tab for the Java Build > Path. I then ported my source code from my Windows Eclipse environment to > this new Eclipse Linux environment and the related POM files. I removed the > Maven Dependencies entry from the Java Build Path that was created when the > project was created. I then deleted all the entries in my local > .m2/repositories directory because when I executed Maven -> Update > Project from Eclipse I wanted to make sure that both my local repository > and my Java Build Path were refreshed. I then executed Maven -> Update > Project from Eclipse and unlike in my Windows environment where only the > local repo was refreshed not the Maven Dependencies in my Java Build Path, > both the Maven Dependencies in my Java Build Path and my local repo were > refreshed. > > While the problem I was experiencing in my Windows environment where my > Eclipse was upgraded from Luna to Mars 2 without doing a fresh install > appears to be resolved by a fresh install on the Linux platform, I am not > problem free. While the Maven Dependencies entry was added to the Libraries > tab for the Java Build Path and all the jar files specified in my POM were > referenced in the Maven Dependencies, these references are flagged as missing > from my local repo. I am investigating this now. MG>if you are not doing update (mvn -u phase) MG>then local repository will contain hint to maven repository URL that contains artifact the contents will be NameOf.jar.lastUpdated #NOTE: This is an internal implementation file, its format can be changed without prior notice.#Mon May 04 17:28:11 EDT 2016http\://repo1.maven.org/maven2/.error=http\://repo1.maven.org/maven2/.lastUpdated=1430774891971 MG>NB: if there was an error the .error entry will be populated with something like: http\://ws.zones.apache.org/repository2/.error=Could not transfer artifact bouncycastle\:bcprov-jdk13\:pom\:132 from/to apache-ws-snapshots2 (http\://ws.zones.apache.org/repository2)\: Error transferring file\: ws.zones.apache.org MG>.lastUpdated entry will be populated with zulu time of last update MG>.remote.repositories file in that folder will contains entries for central repository location to acquire the artifact: #NOTE: This is an Aether internal implementation file, its format can be changed without prior notice.#Tue Aug 18 09:14:32 EDT 2015bcel-5.1.jar>central=https://repo.maven.apache.org/maven2bcel-5.1.pom>central=https://repo.maven.apache.org/maven2 MG>quick check on which repositories maven can seemvn dependency:list-repositorieshttp://stackoverflow.com/questions/4701532/force-maven-update MG>IMHO : i play safe by requesting the local artifact be downloaded to my local repository with update option e.g.MG> mvn -u MG>installing m2e for your version of eclipse is necessary when attempting to configure eclipse BuildPath from maven pom.xml dependencies http://download.eclipse.org/technology/m2e/releases/ > > I have not had the opportunity to try a fresh install in my Windows > environment. As soon as I have some time to do this I will update the > mailing list again with those results as well. > > I hope this explanation has been helpful. MG>yes..this has been very helpful..thanks > > Michael Tarullo > Contractor (Engility Corp) > Software Engineer > FAA WJH Technical Center > (609)485-5294 > > -Original Message- > From: Barrie Treloar [mailto:baerr...@gmail.com] > Sent: Wednesday, June 08, 2016 7:33 PM > To: Maven Users List > Subject: Re: Maven and Eclipse > > On 9 June 2016 at 01:00, <michael.ctr.taru...@faa.gov> wrote: > > > Thanks Curtis! > > > > That's exactly what I did. > > > > As soon as I get a chance, I'll try a fresh install of Mars 2 and see > > how it goes. I usually do my Eclipse upgrades with fresh installs, > > this is the first time I tried to upgrade from a previous version. > > > > Mike > > > And when you resolve the issue, can you post back your findings for search > engines to find. > > Thanks. > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org
RE: Maven and Eclipse
This is a partial update to this issue, which I am posting as requested by Barrie Treloar. I encountered this problem on a Windows install of Eclipse. For the project I am working on I also needed a Linux Eclipse environment. So I asked our Linux Sys Admin to install a fresh download of Eclipse Mars 2 in a Linux VM I have dedicated to my project. I created new projects in this environment as Maven projects. A Maven Dependencies entry was added to my project's Libraries tab for the Java Build Path. I then ported my source code from my Windows Eclipse environment to this new Eclipse Linux environment and the related POM files. I removed the Maven Dependencies entry from the Java Build Path that was created when the project was created. I then deleted all the entries in my local .m2/repositories directory because when I executed Maven -> Update Project from Eclipse I wanted to make sure that both my local repository and my Java Build Path were refreshed. I then executed Maven -> Update Project from Eclipse and unlike in my Windows environment where only the local repo was refreshed not the Maven Dependencies in my Java Build Path, both the Maven Dependencies in my Java Build Path and my local repo were refreshed. While the problem I was experiencing in my Windows environment where my Eclipse was upgraded from Luna to Mars 2 without doing a fresh install appears to be resolved by a fresh install on the Linux platform, I am not problem free. While the Maven Dependencies entry was added to the Libraries tab for the Java Build Path and all the jar files specified in my POM were referenced in the Maven Dependencies, these references are flagged as missing from my local repo. I am investigating this now. I have not had the opportunity to try a fresh install in my Windows environment. As soon as I have some time to do this I will update the mailing list again with those results as well. I hope this explanation has been helpful. Michael Tarullo Contractor (Engility Corp) Software Engineer FAA WJH Technical Center (609)485-5294 -Original Message- From: Barrie Treloar [mailto:baerr...@gmail.com] Sent: Wednesday, June 08, 2016 7:33 PM To: Maven Users List Subject: Re: Maven and Eclipse On 9 June 2016 at 01:00, <michael.ctr.taru...@faa.gov> wrote: > Thanks Curtis! > > That's exactly what I did. > > As soon as I get a chance, I'll try a fresh install of Mars 2 and see > how it goes. I usually do my Eclipse upgrades with fresh installs, > this is the first time I tried to upgrade from a previous version. > > Mike And when you resolve the issue, can you post back your findings for search engines to find. Thanks. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven and Eclipse
On 9 June 2016 at 01:00,wrote: > Thanks Curtis! > > That's exactly what I did. > > As soon as I get a chance, I'll try a fresh install of Mars 2 and see how > it goes. I usually do my Eclipse upgrades with fresh installs, this is the > first time I tried to upgrade from a previous version. > > Mike And when you resolve the issue, can you post back your findings for search engines to find. Thanks.
RE: Maven and Eclipse
Thanks Curtis! That's exactly what I did. As soon as I get a chance, I'll try a fresh install of Mars 2 and see how it goes. I usually do my Eclipse upgrades with fresh installs, this is the first time I tried to upgrade from a previous version. Mike Michael Tarullo Contractor (Engility Corp) Software Engineer FAA WJH Technical Center (609)485-5294 -Original Message- From: ctrueden.w...@gmail.com [mailto:ctrueden.w...@gmail.com] On Behalf Of Curtis Rueden Sent: Wednesday, June 08, 2016 11:08 AM To: Maven Users List Subject: Re: Maven and Eclipse Hi Michael, > That is why I was wondering if the problem was either the new Mars 2 > version of Eclipse or possibly the m2e plugin. For what it's worth, M2E works great on my system with Eclipse Mars.2. I would suggest testing with a fresh installation of Eclipse and a clean workspace -- if you migrated your workspace from Luna it might be that something got hosed up there. Regards, Curtis -- Curtis Rueden LOCI software architect - http://loci.wisc.edu/software ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden Did you know ImageJ has a forum? http://forum.imagej.net/ On Wed, Jun 8, 2016 at 9:58 AM, <michael.ctr.taru...@faa.gov> wrote: > Yes the compile (of course with the exact same POM) works from the > command line. That is why I was wondering if the problem was either > the new Mars 2 version of Eclipse or possibly the m2e plugin. As per > the question in your reply and my answer here, I will post something > to the m2e mailing list, as you suggest. > > Michael Tarullo > Contractor (Engility Corp) > Software Engineer > FAA WJH Technical Center > (609)485-5294 > > -Original Message- > From: Barrie Treloar [mailto:baerr...@gmail.com] > Sent: Tuesday, June 07, 2016 5:13 PM > To: Maven Users List > Subject: Re: Maven and Eclipse > > On 8 June 2016 at 01:33, <michael.ctr.taru...@faa.gov> wrote: > > > I have recently been doing Maven builds from Eclipse Luna with no > problems. > > > > Recently I upgraded Eclipse to Mars 2 and Maven builds that worked > > in the past no longer work. I have posted the error I'm getting at > > the end of this email. In addition, it appears that the Maven -> > > Update > project > > Feature is no longer working. When I do this from Eclipse Mars 2 on > > an empty local repo, the local repo is populated from my remote repo > > fine, but the Java Build Path Libraries are not populated, when I > > start with both an empty local repo and no libraries other than the JDK. > > > > I am using the m2e-workspace v0.3.1. Does this need to be changed > > as a result of my upgrade from Luna to Mars 2? > > > > [ERROR] Failed to execute goal > > org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile > > (default-compile) on project queue.producer: > > Execution default-compile of goal > > org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile failed: > > Plugin org.apache.maven.plugins:maven-compiler-plugin:2.5.1 > > or one of its dependencies could not be resolved: > > Failure to find org.apache.maven:maven-plugin-api:jar:2.0.9 > > in > > > https://swimrepo.faa.gov/nexus/content/repositories/Repo-jboss-fuse-06 > -02-01-Releases > > was cached in the local repository, resolution will not be > > reattempted until the update interval of SwimRepo > > has elapsed or updates are forced -> [Help 1] > > > Does this work on the command line ? > If yes, then you need to email the m2e mailing list to troubleshoot > further. > https://dev.eclipse.org/mailman/listinfo/m2e-users > > This error doesn't look like a problem with maven or m2e. > This looks like org.apache.maven:maven-plugin-api:jar:2.0.9 is not in > your organisations nexus proxy. > > From the path in the url to the nexus repo it looks like a jboss fuse > cache. > My last recollection of the jboss caches were they were bastardized > copies of central to work with jboss. > I'd recommend making that cache the last thing the nexus proxy > attempts to check. > > - > 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 and Eclipse
Hi Michael, > That is why I was wondering if the problem was either the new Mars 2 > version of Eclipse or possibly the m2e plugin. For what it's worth, M2E works great on my system with Eclipse Mars.2. I would suggest testing with a fresh installation of Eclipse and a clean workspace -- if you migrated your workspace from Luna it might be that something got hosed up there. Regards, Curtis -- Curtis Rueden LOCI software architect - http://loci.wisc.edu/software ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden Did you know ImageJ has a forum? http://forum.imagej.net/ On Wed, Jun 8, 2016 at 9:58 AM, <michael.ctr.taru...@faa.gov> wrote: > Yes the compile (of course with the exact same POM) works from the command > line. That is why I was wondering if the problem was either the new Mars 2 > version of Eclipse or possibly the m2e plugin. As per the question in your > reply and my answer here, I will post something to the m2e mailing list, as > you suggest. > > Michael Tarullo > Contractor (Engility Corp) > Software Engineer > FAA WJH Technical Center > (609)485-5294 > > -Original Message- > From: Barrie Treloar [mailto:baerr...@gmail.com] > Sent: Tuesday, June 07, 2016 5:13 PM > To: Maven Users List > Subject: Re: Maven and Eclipse > > On 8 June 2016 at 01:33, <michael.ctr.taru...@faa.gov> wrote: > > > I have recently been doing Maven builds from Eclipse Luna with no > problems. > > > > Recently I upgraded Eclipse to Mars 2 and Maven builds that worked in > > the past no longer work. I have posted the error I'm getting at the > > end of this email. In addition, it appears that the Maven -> Update > project > > Feature is no longer working. When I do this from Eclipse Mars 2 on > > an empty local repo, the local repo is populated from my remote repo > > fine, but the Java Build Path Libraries are not populated, when I > > start with both an empty local repo and no libraries other than the JDK. > > > > I am using the m2e-workspace v0.3.1. Does this need to be changed as > > a result of my upgrade from Luna to Mars 2? > > > > [ERROR] Failed to execute goal > > org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile > > (default-compile) on project queue.producer: > > Execution default-compile of goal > > org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile failed: > > Plugin org.apache.maven.plugins:maven-compiler-plugin:2.5.1 or > > one of its dependencies could not be resolved: > > Failure to find org.apache.maven:maven-plugin-api:jar:2.0.9 in > > > https://swimrepo.faa.gov/nexus/content/repositories/Repo-jboss-fuse-06-02-01-Releases > > was cached in the local repository, resolution will not be > > reattempted until the update interval of SwimRepo > > has elapsed or updates are forced -> [Help 1] > > > Does this work on the command line ? > If yes, then you need to email the m2e mailing list to troubleshoot > further. > https://dev.eclipse.org/mailman/listinfo/m2e-users > > This error doesn't look like a problem with maven or m2e. > This looks like org.apache.maven:maven-plugin-api:jar:2.0.9 is not in your > organisations nexus proxy. > > From the path in the url to the nexus repo it looks like a jboss fuse > cache. > My last recollection of the jboss caches were they were bastardized copies > of central to work with jboss. > I'd recommend making that cache the last thing the nexus proxy attempts to > check. > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org >
RE: Maven and Eclipse
Yes the compile (of course with the exact same POM) works from the command line. That is why I was wondering if the problem was either the new Mars 2 version of Eclipse or possibly the m2e plugin. As per the question in your reply and my answer here, I will post something to the m2e mailing list, as you suggest. Michael Tarullo Contractor (Engility Corp) Software Engineer FAA WJH Technical Center (609)485-5294 -Original Message- From: Barrie Treloar [mailto:baerr...@gmail.com] Sent: Tuesday, June 07, 2016 5:13 PM To: Maven Users List Subject: Re: Maven and Eclipse On 8 June 2016 at 01:33, <michael.ctr.taru...@faa.gov> wrote: > I have recently been doing Maven builds from Eclipse Luna with no problems. > > Recently I upgraded Eclipse to Mars 2 and Maven builds that worked in > the past no longer work. I have posted the error I'm getting at the > end of this email. In addition, it appears that the Maven -> Update > project > Feature is no longer working. When I do this from Eclipse Mars 2 on > an empty local repo, the local repo is populated from my remote repo > fine, but the Java Build Path Libraries are not populated, when I > start with both an empty local repo and no libraries other than the JDK. > > I am using the m2e-workspace v0.3.1. Does this need to be changed as > a result of my upgrade from Luna to Mars 2? > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile > (default-compile) on project queue.producer: > Execution default-compile of goal > org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile failed: > Plugin org.apache.maven.plugins:maven-compiler-plugin:2.5.1 or > one of its dependencies could not be resolved: > Failure to find org.apache.maven:maven-plugin-api:jar:2.0.9 in > https://swimrepo.faa.gov/nexus/content/repositories/Repo-jboss-fuse-06-02-01-Releases > was cached in the local repository, resolution will not be > reattempted until the update interval of SwimRepo > has elapsed or updates are forced -> [Help 1] Does this work on the command line ? If yes, then you need to email the m2e mailing list to troubleshoot further. https://dev.eclipse.org/mailman/listinfo/m2e-users This error doesn't look like a problem with maven or m2e. This looks like org.apache.maven:maven-plugin-api:jar:2.0.9 is not in your organisations nexus proxy. From the path in the url to the nexus repo it looks like a jboss fuse cache. My last recollection of the jboss caches were they were bastardized copies of central to work with jboss. I'd recommend making that cache the last thing the nexus proxy attempts to check. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven and Eclipse
On 8 June 2016 at 01:33, <michael.ctr.taru...@faa.gov> wrote: > I have recently been doing Maven builds from Eclipse Luna with no problems. > > Recently I upgraded Eclipse to Mars 2 and Maven builds that worked in the > past no longer work. I have posted the error I'm getting at the end of > this email. In addition, it appears that the Maven -> Update project > Feature is no longer working. When I do this from Eclipse Mars 2 on an > empty local repo, the local repo is populated from my remote repo fine, but > the Java Build Path Libraries are not populated, when I start with both an > empty local repo and no libraries other than the JDK. > > I am using the m2e-workspace v0.3.1. Does this need to be changed as a > result of my upgrade from Luna to Mars 2? > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile > (default-compile) on project queue.producer: > Execution default-compile of goal > org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile failed: > Plugin org.apache.maven.plugins:maven-compiler-plugin:2.5.1 or one > of its dependencies could not be resolved: > Failure to find org.apache.maven:maven-plugin-api:jar:2.0.9 in > https://swimrepo.faa.gov/nexus/content/repositories/Repo-jboss-fuse-06-02-01-Releases > was cached in the local repository, resolution will not be > reattempted until the update interval of SwimRepo > has elapsed or updates are forced -> [Help 1] Does this work on the command line ? If yes, then you need to email the m2e mailing list to troubleshoot further. https://dev.eclipse.org/mailman/listinfo/m2e-users This error doesn't look like a problem with maven or m2e. This looks like org.apache.maven:maven-plugin-api:jar:2.0.9 is not in your organisations nexus proxy. >From the path in the url to the nexus repo it looks like a jboss fuse cache. My last recollection of the jboss caches were they were bastardized copies of central to work with jboss. I'd recommend making that cache the last thing the nexus proxy attempts to check.
Maven and Eclipse
I have recently been doing Maven builds from Eclipse Luna with no problems. Recently I upgraded Eclipse to Mars 2 and Maven builds that worked in the past no longer work. I have posted the error I'm getting at the end of this email. In addition, it appears that the Maven -> Update project Feature is no longer working. When I do this from Eclipse Mars 2 on an empty local repo, the local repo is populated from my remote repo fine, but the Java Build Path Libraries are not populated, when I start with both an empty local repo and no libraries other than the JDK. I am using the m2e-workspace v0.3.1. Does this need to be changed as a result of my upgrade from Luna to Mars 2? [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project queue.producer: Execution default-compile of goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile failed: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.5.1 or one of its dependencies could not be resolved: Failure to find org.apache.maven:maven-plugin-api:jar:2.0.9 in https://swimrepo.faa.gov/nexus/content/repositories/Repo-jboss-fuse-06-02-01-Releases was cached in the local repository, resolution will not be reattempted until the update interval of SwimRepo has elapsed or updates are forced -> [Help 1] Thank you. Michael Tarullo Contractor (Engility Corp) Software Engineer FAA WJH Technical Center (609)485-5294
SVN Password when executing maven from Eclipse on Ubuntu
Hello together, I've been using maven for a while now, professionally and privately and have always been quite happy with it, even as I've just scratched the surface (but there are already two maven books on my reading list to change that). But you know how it is, sometimes you stumble upon a problem that seems pretty hard, even if it's probably something trivial For a given task I need to execute an SVN blame via maven (the sonar:sonar goal does that, to be more exact), typically from eclipse. This worked fine, until today, when my password to the SVN server was changed. Eclipse reacted as expected, asked for the new password and that was it. But now the maven execution fails with... Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on project xxx: Error when executing blame for file src/main/java/etc/something.java: svn: E170001: Authentication required for 'http://svn.ourserver.net:80 Subversion Repositories' - [Help 1] I already tried to reset the password of the ubuntu subversion installation (clearing .subversion, then checking something out - worked fine, asked for password, now checking out via svn doesn't require password anymore) but that didn't work for maven, same error as before. Also removed the password from the gnome keyring manually (which lead to the same thing, asks for the password again, stores it, but for maven that doesn't seen to be enough). Unfortunately I have no idea where maven gets the (old, now incorrect) password from, so that I can change it there. Obviously it's neither the eclipse settings nor the subversion configuration. Regards, Flo - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven using eclipse
Hi, I was wondering if there is a feature in maven which helps with the following. Suppose I have 20 projects in eclipse. The projects I'm not using I delete from eclipse. But every now and then I need to import them and it's dependencies. Does maven have a feature in which you can say with mvn eclipse:eclipse I'm working in this project create the dependencies for me automatically. When I'm importing the project I want to work on and only import those projects which are needed. Josip -- View this message in context: http://maven.40175.n5.nabble.com/Maven-using-eclipse-tp5709408.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 using eclipse
With the latest version of the eclipse maven plugin, you can import a pom directly into eclipse without the command line step. If you then just close the eclipse project your not using, the dependencies will automatically change from the eclipse project to the last published version in your repository. Hope that helps. John On 22 May 2012 10:57, josipj jos...@hotmail.com wrote: Hi, I was wondering if there is a feature in maven which helps with the following. Suppose I have 20 projects in eclipse. The projects I'm not using I delete from eclipse. But every now and then I need to import them and it's dependencies. Does maven have a feature in which you can say with mvn eclipse:eclipse I'm working in this project create the dependencies for me automatically. When I'm importing the project I want to work on and only import those projects which are needed. Josip -- View this message in context: http://maven.40175.n5.nabble.com/Maven-using-eclipse-tp5709408.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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven using eclipse
Another option is a multiproject layout. Guess you have the following layout in svn/git: -- project a - dependency a -- dependency a-2 - dependency b -- project b depdendency c If you checkout project a you receive the dependencies and can right click on it and import existing maven modules. This will create all the projects for dependency a, a-2 and b. On Tue, May 22, 2012 at 12:39 PM, John Patrick nhoj.patr...@gmail.comwrote: With the latest version of the eclipse maven plugin, you can import a pom directly into eclipse without the command line step. If you then just close the eclipse project your not using, the dependencies will automatically change from the eclipse project to the last published version in your repository. Hope that helps. John On 22 May 2012 10:57, josipj jos...@hotmail.com wrote: Hi, I was wondering if there is a feature in maven which helps with the following. Suppose I have 20 projects in eclipse. The projects I'm not using I delete from eclipse. But every now and then I need to import them and it's dependencies. Does maven have a feature in which you can say with mvn eclipse:eclipse I'm working in this project create the dependencies for me automatically. When I'm importing the project I want to work on and only import those projects which are needed. Josip -- View this message in context: http://maven.40175.n5.nabble.com/Maven-using-eclipse-tp5709408.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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven using eclipse
Why? It is always a good question to start with. What Maven Repo are you using? There is usually no need to have a project open in Eclipse to use the project's output (jar) in another project. Eclipse and Maven will automatically get the imported dependencies from any artifact that you declare as a dependency (including your own) in the POM. We have 60+ Eclipse projects in our SCM but a developer would normally only checkout the ones that he/she is working on. The other dependencies would be loaded from our Nexus repo as Maven does the builds. Ron On 22/05/2012 5:57 AM, josipj wrote: Hi, I was wondering if there is a feature in maven which helps with the following. Suppose I have 20 projects in eclipse. The projects I'm not using I delete from eclipse. But every now and then I need to import them and it's dependencies. Does maven have a feature in which you can say with mvn eclipse:eclipse I'm working in this project create the dependencies for me automatically. When I'm importing the project I want to work on and only import those projects which are needed. Josip -- View this message in context: http://maven.40175.n5.nabble.com/Maven-using-eclipse-tp5709408.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 -- Ron Wheeler President Artifact Software Inc email: rwhee...@artifact-software.com skype: ronaldmwheeler phone: 866-970-2435, ext 102 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Can Maven tell Eclipse/m2eclipse to include generated code in classpath?
I'm using the cxf-codegen-plugin to generate code from wsdl. The generated code goes into /target/generated/cxf. Is there a way to specify in the pom file that this code should be included in the Eclipse classpath? I need to reference this code from my code, but I don't want to put the generated code under version control and therefore don't want to move it to /src/main/java. However, if I leave it under /target/generated/cxf, then I have to configure my project in Eclipse to include /target/generated/cxf in the Eclipse classpath. This is no fun as I have to make this step part of the setup procedures that other developers have to do before they can start working with the code. Someone told me that this is not an issue when using NetBeans because the NetBeans/Maven component automatically includes the generated code in the classpath. Is there a better solution? Is there any articles on this topic that lays out the possible approaches and carefully weighs the pros and cons of each? Thanks, Nathan
Re: Can Maven tell Eclipse/m2eclipse to include generated code in classpath?
On Tue, Mar 13, 2012 at 6:49 AM, Ward, Nathan nw...@merlin-intl.com wrote: I'm using the cxf-codegen-plugin to generate code from wsdl. The generated code goes into /target/generated/cxf. Is there a way to specify in the pom file that this code should be included in the Eclipse classpath? I need to reference this code from my code, but I don't want to put the generated code under version control and therefore don't want to move it to /src/main/java. However, if I leave it under /target/generated/cxf, then I have to configure my project in Eclipse to include /target/generated/cxf in the Eclipse classpath. This is no fun as I have to make this step part of the setup procedures that other developers have to do before they can start working with the code. Someone told me that this is not an issue when using NetBeans because the NetBeans/Maven component automatically includes the generated code in the classpath. Is there a better solution? Is there any articles on this topic that lays out the possible approaches and carefully weighs the pros and cons of each? If this is a m2eclipse question, you should direct it to the m2e mailing list. http://www.eclipse.org/m2e/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Using maven in eclipse
I see lot of discussion using maven eclipse plugin to import the project in eclipse. I am wondering why we need to do this as m2eclipse seems to be working perfectly fine and works directly with pom file. So far, m2eclipse has worked flawlessly for me. Is there a preferred plugin to use because of drawbacks/issues in other? Thanks, Niranjan - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Using maven in eclipse
On Tue, Jul 5, 2011 at 3:31 PM, Niranjan Rao nhr...@gmail.com wrote: I see lot of discussion using maven eclipse plugin to import the project in eclipse. I am wondering why we need to do this as m2eclipse seems to be working perfectly fine and works directly with pom file. So far, m2eclipse has worked flawlessly for me. Is there a preferred plugin to use because of drawbacks/issues in other? maven eclipse plugin (m-e-p) predates m2e. For a lot of people it works well enough and there is little benefit it reconfiguring their tooling to take advantage of m2e. For others some of the more complicated builds don't work as expected in m2e but work fine in m-e-p. YMMV. If you are happy with m2e, I wouldn't worry about m-e-p except to remember its in your tool box if you happen to need it. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Where is the global settings.xml for built-in (embedded) Maven in Eclipse?
Eclipse says: Embedded Runtime is always used for dependency resolution, but does not use global settings when it is used to launch Maven. So i think, there is just no global configuration file for this runtime, because it doesn't use one. You have to use the user configuration file or an external Maven. Manuel - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Where is the global settings.xml for built-in (embedded) Maven in Eclipse?
Yes, I know the global settings file for a stand-alone Maven is in MAVENINSTALLDIR\conf\settings.xml But where is that corresponding file if I use the built-in, embedded Maven in Eclipse (v3.6.1) ? Ben - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Where is the global settings.xml for built-in (embedded) Maven in Eclipse?
Don't think there is one, but you could probably get a better answer on the m2e mailing list. /Anders On Tue, Jan 4, 2011 at 13:56, Ben Stover bxsto...@yahoo.co.uk wrote: Yes, I know the global settings file for a stand-alone Maven is in MAVENINSTALLDIR\conf\settings.xml But where is that corresponding file if I use the built-in, embedded Maven in Eclipse (v3.6.1) ? Ben - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Where is the global settings.xml for built-in (embedded) Maven in Eclipse?
did u have a check on some dir like {user_home}/.m2/ ? like c:\user\Joseph\.m2\... 2011-01-05 Joseph 发件人: Ben Stover 发送时间: 2011-01-04 20:57:34 收件人: Maven Users 抄送: 主题: Where is the global settings.xml for built-in (embedded) Maven in Eclipse? Yes, I know the global settings file for a stand-alone Maven is in MAVENINSTALLDIR\conf\settings.xml But where is that corresponding file if I use the built-in, embedded Maven in Eclipse (v3.6.1) ? Ben - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Where is the global settings.xml for built-in (embedded) Maven in Eclipse?
That's the user-specific one, not the global one. /Anders On Wed, Jan 5, 2011 at 02:17, Joseph wutong...@gmail.com wrote: did u have a check on some dir like {user_home}/.m2/ ? like c:\user\Joseph\.m2\... 2011-01-05 Joseph 发件人: Ben Stover 发送时间: 2011-01-04 20:57:34 收件人: Maven Users 抄送: 主题: Where is the global settings.xml for built-in (embedded) Maven in Eclipse? Yes, I know the global settings file for a stand-alone Maven is in MAVENINSTALLDIR\conf\settings.xml But where is that corresponding file if I use the built-in, embedded Maven in Eclipse (v3.6.1) ? Ben - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Problems building Maven with Eclipse and running Integration Tests
Hello everyone, I can't build Maven properly with the m2eclipse plugin, below are the errors I get in Eclipse. Almost all maven subprojects fail to build with m2eclipse... http://www.ideone.com/vBVg6 With the command line, I can build Maven ok but most of the integration tests fail to run. I corrected the version in the pom.xml from 2.2.2-RC2-SNAPSHOT to 2.2.1 and used mvn test in the maven-core-it-runner folder. Here are the results of the integration tests: http://www.ideone.com/Ppx48 I am using the 2.2.1 sources downloaded from the website. Does anyone know what am I doing wrong here? Please let me know if you need more info. Thanks in advance, Victor Freire
How can I configure these projects with maven and eclipse?
Hi, I'm starting with maven. I'm working with eclipse. I've these projects PROJECT A depends on PROJECT B and PROJECT C PROJECT D depends on PROJECT B and PROJECT C PROJECT E depends on PROJECT A and PROJECT D I've migrate PROJECT B and PROJECT C as java projects a packaging it as jar I've a workspace on I put all the projects: PROJECT A..E what is the best practice to do it, is it possible? Lot of thanks, Marcial
Re: How can I configure these projects with maven and eclipse?
PROJECT A depends on PROJECT B and PROJECT C PROJECT D depends on PROJECT B and PROJECT C PROJECT E depends on PROJECT A and PROJECT D what is the best practice to do it, is it possible? What's the problem, exactly? I suggest you use m2eclipse. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How can I configure these projects with maven and eclipse?
Hi , I'm using Eclipse IAM. The problem is that I don't know how can I configure the pom. With m2eclipse can I do it easily? I've see this url previously: http://maven.apache.org/guides/mini/guide-ide-eclipse.html. Lot of thanks, Marcial El mar, 20-04-2010 a las 09:02 -0500, Wayne Fay escribió: PROJECT A depends on PROJECT B and PROJECT C PROJECT D depends on PROJECT B and PROJECT C PROJECT E depends on PROJECT A and PROJECT D what is the best practice to do it, is it possible? What's the problem, exactly? I suggest you use m2eclipse. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org Marcial Atiénzar Navarro Analista de Sistemas de Información Avda. Real Monasterio de Poblet nº20 Población 46930-Quart de Poblet (Valencia) Tel.: 961 849 249 (corto 1249) Móvil: 629 201 240 (corto 44249) Fax: 915 525 321 matien...@umivale.es www.umivale.es www.sumaintermutual.es El presente mensaje y los documentos que, en su caso, lleve anexos, pueden contener información confidencial. Se informa a quién lo reciba por error, que su uso no autorizado está prohibido legalmente. Comunique dicha situación por la misma vía o telefónicamente al 902 365 012, no lo remita a terceros y proceda a su eliminación inmediata. Antes de imprimir cualquier documento, asegúrese de que es necesario. El medio ambiente está en nuestra mano.
Re: How can I configure these projects with maven and eclipse?
The problem is that I don't know how can I configure the pom. With m2eclipse can I do it easily? Ask on the m2eclipse mailing list: http://old.nabble.com/Maven-Eclipse-(m2eclipse)-f14524.html Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How can I configure these projects with maven and eclipse?
I don't use IAM, but any decent Maven IDE integration shouldn't require changes to you poms. On Apr 20, 2010, at 10:12 AM, Marcial Atienzar Navarro matien...@umivale.es wrote: Hi , I'm using Eclipse IAM. The problem is that I don't know how can I configure the pom. With m2eclipse can I do it easily? I've see this url previously: http://maven.apache.org/guides/mini/guide-ide-eclipse.html. Lot of thanks, Marcial El mar, 20-04-2010 a las 09:02 -0500, Wayne Fay escribió: PROJECT A depends on PROJECT B and PROJECT C PROJECT D depends on PROJECT B and PROJECT C PROJECT E depends on PROJECT A and PROJECT D what is the best practice to do it, is it possible? What's the problem, exactly? I suggest you use m2eclipse. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org *Marcial Atiénzar Navarro* Analista de Sistemas de Información Avda. Real Monasterio de Poblet nº20 Población 46930-Quart de Poblet (Valencia) Tel.: 961 849 249 (corto 1249) Móvil: 629 201 240 (corto 44249) Fax: 915 525 321 matien...@umivale.es em...@umivale.es www.umivale.es www.sumaintermutual.es El presente mensaje y los documentos que, en su caso, lleve anexos, pueden contener información confidencial. Se informa a quién lo reciba por error, que su uso no autorizado está prohibido legalmente. Comunique dicha situación por la misma vía o telefónicamente al 902 365 012, no lo remita a terceros y proceda a su eliminación inmediata. Antes de imprimir cualquier documento, asegúrese de que es necesario. El medio ambiente está en nuestra mano.
Re: use maven in eclipse without m2eclipse
There is also a maven plugin for eclipse: http://maven.apache.org/plugins/maven-eclipse-plugin/ However, I wouldn't recommend going that pth. M2Eclipse is much better as you'll get real integration of Maven in Eclipse. If you haven't done so, try the latest dev version of M2Eclipse (0.9.9-dev). /Anders On Sat, Dec 5, 2009 at 05:12, maven apache apachemav...@gmail.com wrote: Hi; These days I was confusing with some problems about the m2eclipse,so I wonder if I can use maven without m2elcipse.? For example,when I use m2eclipse after I add a dependency I click maven - update dependencies ,now what to do without the m2elicpse for updating dependencies? And other commands?
Re: use maven in eclipse without m2eclipse
2009/12/5 Anders Hammar and...@hammar.net There is also a maven plugin for eclipse: http://maven.apache.org/plugins/maven-eclipse-plugin/ However, I wouldn't recommend going that pth. M2Eclipse is much better as you'll get real integration of Maven in Eclipse. If you haven't done so, try the latest dev version of M2Eclipse (0.9.9-dev). :) In fact it is just the 0.9.9 which caused the problem,and I tried to use the 0.9.8 however I can not download the plugin through eclipse,the sonatpye are too slow to connect I wonder why don't they provide a zip file and I can install them without network... I am looking for a proxy,but little hope. :( /Anders On Sat, Dec 5, 2009 at 05:12, maven apache apachemav...@gmail.com wrote: Hi; These days I was confusing with some problems about the m2eclipse,so I wonder if I can use maven without m2elcipse.? For example,when I use m2eclipse after I add a dependency I click maven - update dependencies ,now what to do without the m2elicpse for updating dependencies? And other commands?
use maven in eclipse without m2eclipse
Hi; These days I was confusing with some problems about the m2eclipse,so I wonder if I can use maven without m2elcipse.? For example,when I use m2eclipse after I add a dependency I click maven - update dependencies ,now what to do without the m2elicpse for updating dependencies? And other commands?
Re: Maven and Eclipse (WTP)
On 2009-10-18, at 8:52 PM, Damon Silver wrote: Off-topic: On that note, I've tried half a dozen times to subscribe to the M2Eclipse Users list via the link on that page to no avail. Is there some other avenue to use instead, or someone who has to be notified that the subscription link is broken? Yup. It's m2eclipse-user-subscr...@sonatype.org. Sorry about that, links have been fixed on the M2Eclipse site. Thanks, Damon -Original Message- From: Jason van Zyl [mailto:ja...@sonatype.com] Sent: Saturday, October 17, 2009 11:58 AM To: Maven Users List Subject: Re: Maven and Eclipse (WTP) Use the M2Eclipse user list for M2Eclipse questions. http://m2eclipse.sonatype.org/project-information.html On 2009-10-17, at 12:23 PM, Formenti, Giovanni wrote: Hi, I have to manage a JEE project with Eclipse and Maven. We'd like to use M2Eclise and WTP (but we can also use JBoss Tools) to deploy an EAR (3 module: JAR, WAR and EAR) in JBoss running inside the IDE, i.e. our development environment. Has someone tips on how to manage this configuration? Do you have guideline about how to configure maven and eclipse to allow these tools integration? Thank you in advance for any suggestions... Best Regards Giovanni /PREp style=font-family:arial;color:grey style=font-size: 13pxThis message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message./ pPRE Thanks, Jason -- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl -- - 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 Thanks, Jason -- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl -- - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven and Eclipse (WTP)
Hi Giovanni, Currently at job, I'm doing this. We have some projects using maven-j2ee-archetype. We have some web modules, an ear module, and some jar modules. If you can wait until tomorrow, I wrote a guide at work that I can send you. Do you understand some Spanish? If not, I can translate into english. Regards. 2009/10/17 Formenti, Giovanni giovanni.forme...@capgemini.com Hi, I have to manage a JEE project with Eclipse and Maven. We'd like to use M2Eclise and WTP (but we can also use JBoss Tools) to deploy an EAR (3 module: JAR, WAR and EAR) in JBoss running inside the IDE, i.e. our development environment. Has someone tips on how to manage this configuration? Do you have guideline about how to configure maven and eclipse to allow these tools integration? Thank you in advance for any suggestions... Best Regards Giovanni /PREp style=font-family:arial;color:grey style=font-size:13pxThis message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message./pPRE -- Computer science is not about computers any more than astronomy is about telescopes. E.W. Dijkstra (1930-2002)
RE: Maven and Eclipse (WTP)
Off-topic: On that note, I've tried half a dozen times to subscribe to the M2Eclipse Users list via the link on that page to no avail. Is there some other avenue to use instead, or someone who has to be notified that the subscription link is broken? Thanks, Damon -Original Message- From: Jason van Zyl [mailto:ja...@sonatype.com] Sent: Saturday, October 17, 2009 11:58 AM To: Maven Users List Subject: Re: Maven and Eclipse (WTP) Use the M2Eclipse user list for M2Eclipse questions. http://m2eclipse.sonatype.org/project-information.html On 2009-10-17, at 12:23 PM, Formenti, Giovanni wrote: Hi, I have to manage a JEE project with Eclipse and Maven. We'd like to use M2Eclise and WTP (but we can also use JBoss Tools) to deploy an EAR (3 module: JAR, WAR and EAR) in JBoss running inside the IDE, i.e. our development environment. Has someone tips on how to manage this configuration? Do you have guideline about how to configure maven and eclipse to allow these tools integration? Thank you in advance for any suggestions... Best Regards Giovanni /PREp style=font-family:arial;color:grey style=font-size: 13pxThis message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message./pPRE Thanks, Jason -- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl -- - 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 and Eclipse (WTP)
All else fails you could access via Nabble: http://www.nabble.com/Maven-Eclipse---User-f14525.html . Cheers Brett On Mon, Oct 19, 2009 at 2:52 PM, Damon Silver damon.sil...@diio.net wrote: Off-topic: On that note, I've tried half a dozen times to subscribe to the M2Eclipse Users list via the link on that page to no avail. Is there some other avenue to use instead, or someone who has to be notified that the subscription link is broken? Thanks, Damon -Original Message- From: Jason van Zyl [mailto:ja...@sonatype.com] Sent: Saturday, October 17, 2009 11:58 AM To: Maven Users List Subject: Re: Maven and Eclipse (WTP) Use the M2Eclipse user list for M2Eclipse questions. http://m2eclipse.sonatype.org/project-information.html On 2009-10-17, at 12:23 PM, Formenti, Giovanni wrote: Hi, I have to manage a JEE project with Eclipse and Maven. We'd like to use M2Eclise and WTP (but we can also use JBoss Tools) to deploy an EAR (3 module: JAR, WAR and EAR) in JBoss running inside the IDE, i.e. our development environment. Has someone tips on how to manage this configuration? Do you have guideline about how to configure maven and eclipse to allow these tools integration? Thank you in advance for any suggestions... Best Regards Giovanni /PREp style=font-family:arial;color:grey style=font-size: 13pxThis message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message./pPRE Thanks, Jason -- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl -- - 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 and Eclipse (WTP)
Hi, I have to manage a JEE project with Eclipse and Maven. We'd like to use M2Eclise and WTP (but we can also use JBoss Tools) to deploy an EAR (3 module: JAR, WAR and EAR) in JBoss running inside the IDE, i.e. our development environment. Has someone tips on how to manage this configuration? Do you have guideline about how to configure maven and eclipse to allow these tools integration? Thank you in advance for any suggestions... Best Regards Giovanni /PREp style=font-family:arial;color:grey style=font-size:13pxThis message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message./pPRE
Re: Maven and Eclipse (WTP)
Use the M2Eclipse user list for M2Eclipse questions. http://m2eclipse.sonatype.org/project-information.html On 2009-10-17, at 12:23 PM, Formenti, Giovanni wrote: Hi, I have to manage a JEE project with Eclipse and Maven. We'd like to use M2Eclise and WTP (but we can also use JBoss Tools) to deploy an EAR (3 module: JAR, WAR and EAR) in JBoss running inside the IDE, i.e. our development environment. Has someone tips on how to manage this configuration? Do you have guideline about how to configure maven and eclipse to allow these tools integration? Thank you in advance for any suggestions... Best Regards Giovanni /PREp style=font-family:arial;color:grey style=font-size: 13pxThis message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message./pPRE Thanks, Jason -- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl -- - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven and Eclipse (WTP)
Yes, I'm doing at work. Tomorrow Iwill tell you, writing in iPhone is difficult Enviado desde mi iPod El 17/10/2009, a las 20:23, Formenti, Giovanni giovanni.forme...@capgemini.com escribió: Hi, I have to manage a JEE project with Eclipse and Maven. We'd like to use M2Eclise and WTP (but we can also use JBoss Tools) to deploy an EAR (3 module: JAR, WAR and EAR) in JBoss running inside the IDE, i.e. our development environment. Has someone tips on how to manage this configuration? Do you have guideline about how to configure maven and eclipse to allow these tools integration? Thank you in advance for any suggestions... Best Regards Giovanni /PREp style=font-family:arial;color:grey style=font-size: 13pxThis message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message./pPRE - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Ant vs Maven vs Eclipse, IntelliJ, NetBeans – Expl oring Incremental Builds
We’re looking into incremental builds — trying to document the differences in popularity productivity between using tools like Ant and Maven versus IDEs. We haven’t seen a study like this before, and we’ve already received responses from over 550 developers. We’d like this report to be as accurate as responsible, so if you can take 2 mins to answer the 3 multiple-choice questions in this Google Form, we’d really appreciate it. https://spreadsheets.google.com/viewform?formkey=dHlRT1dCb2xnUldpUzRUZ3hNNlBOdkE6MA .. Thanks, Dave
Re: maven spring eclipse and properties/spring config
Hi Justin, What is the license? http://www.box-spring.org/license.html doesn't yet list one . Brett Edelson, Justin wrote: This is getting a little off-topic, but I feel obliged to mention that we recently open sourced our generalized solution for dealing with the problem of environmental-specific Spring configuration, known as BoxSpring. Our experience with both Spring and our prior DI container lead to the conclusion that property placeholder was not a suitable solution. You can read the details of this project at http://www.box-spring.org/. Justin From: Mohan KR [mailto:kmoh@gmail.com] Sent: Sat 7/11/2009 1:31 PM To: 'Maven Users List' Subject: RE: maven spring eclipse and properties/spring config Yup, that is a decision you have to make. But in general, the approach I have been using is this: - You spring-context files rarely should be different for each environment (if you think hard enough, you can achieve it :)). - We externalize all environment specific information from Spring Context files as properties and use Spring PPC (property placeholder) to substitute the relevant values during the Bean Factory lifecycle. - You can do all the resource filtering (maven) on *those* properties files above that are externalized. It will take a very long message or an article to show an example :), but information above should get you going, I hope. Thanks, mohan kr -Original Message- From: Tim O'Brien [mailto:tobr...@discursive.com] Sent: Saturday, July 11, 2009 11:03 AM To: Maven Users List Subject: Re: maven spring eclipse and properties/spring config On Fri, Jul 10, 2009 at 1:54 PM, Vincent Fumoneo...@gmail.com wrote: I'm converting an old project to maven and I have a question re: spring. This project has about 20 spring config files and it reads them all in on startup and uses the In addition I have 4 properties files (local/dev/qa/prod) that I'd like to use to inject/filter/substitute values into them depending on the build. Lastly I am using the eclipse plugin to generate an eclipse project. What I need to know is the following : 1) where should I put the spring files? I am considering src/main/resources/spring If you load them from the classpath, put them in src/main/resources. By default everything in this directory will end up in target/classes (if your project uses a packaging of jar) 2) how should I best filter the props files? Should I use maven for this (using profiles in some way), or should I load the files in the app and use the spring properties configurator? I don't think anyone on this list is qualified to make this architectural decision for you. But, if you wanted to use Maven Resource filtering, you could. You would have a single properties file: whatever.properties which would contain references to arbitrary properties such as ${whatever.jdbc.url}, then you would use profiles and configure resource filtering on this properties file. 3) what is the best way to use the eclipse plugin to generate a project where I can run the app and it can see the newly filtered spring files (instead of the src ones)? m2eclipse is going to automatically call process-resources resources:testResources every time you change a resource and copy the result to target/classes. You can control the profile via your project's Maven preferences in m2eclipse. Can anyone help me out? I'd certainly give more info if needed. - 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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: maven spring eclipse and properties/spring config
ASL 2. Listed correctly here: http://kenai.com/projects/boxspring, but didn't make it into the site build. Justin -Original Message- From: Brett Randall [mailto:javabr...@gmail.com] Sent: Monday, July 13, 2009 2:51 AM To: Maven Users List Subject: Re: maven spring eclipse and properties/spring config Hi Justin, What is the license? http://www.box-spring.org/license.html doesn't yet list one . Brett Edelson, Justin wrote: This is getting a little off-topic, but I feel obliged to mention that we recently open sourced our generalized solution for dealing with the problem of environmental-specific Spring configuration, known as BoxSpring. Our experience with both Spring and our prior DI container lead to the conclusion that property placeholder was not a suitable solution. You can read the details of this project at http://www.box-spring.org/. Justin From: Mohan KR [mailto:kmoh@gmail.com] Sent: Sat 7/11/2009 1:31 PM To: 'Maven Users List' Subject: RE: maven spring eclipse and properties/spring config Yup, that is a decision you have to make. But in general, the approach I have been using is this: - You spring-context files rarely should be different for each environment (if you think hard enough, you can achieve it :)). - We externalize all environment specific information from Spring Context files as properties and use Spring PPC (property placeholder) to substitute the relevant values during the Bean Factory lifecycle. - You can do all the resource filtering (maven) on *those* properties files above that are externalized. It will take a very long message or an article to show an example :), but information above should get you going, I hope. Thanks, mohan kr -Original Message- From: Tim O'Brien [mailto:tobr...@discursive.com] Sent: Saturday, July 11, 2009 11:03 AM To: Maven Users List Subject: Re: maven spring eclipse and properties/spring config On Fri, Jul 10, 2009 at 1:54 PM, Vincent Fumoneo...@gmail.com wrote: I'm converting an old project to maven and I have a question re: spring. This project has about 20 spring config files and it reads them all in on startup and uses the In addition I have 4 properties files (local/dev/qa/prod) that I'd like to use to inject/filter/substitute values into them depending on the build. Lastly I am using the eclipse plugin to generate an eclipse project. What I need to know is the following : 1) where should I put the spring files? I am considering src/main/resources/spring If you load them from the classpath, put them in src/main/resources. By default everything in this directory will end up in target/classes (if your project uses a packaging of jar) 2) how should I best filter the props files? Should I use maven for this (using profiles in some way), or should I load the files in the app and use the spring properties configurator? I don't think anyone on this list is qualified to make this architectural decision for you. But, if you wanted to use Maven Resource filtering, you could. You would have a single properties file: whatever.properties which would contain references to arbitrary properties such as ${whatever.jdbc.url}, then you would use profiles and configure resource filtering on this properties file. 3) what is the best way to use the eclipse plugin to generate a project where I can run the app and it can see the newly filtered spring files (instead of the src ones)? m2eclipse is going to automatically call process-resources resources:testResources every time you change a resource and copy the result to target/classes. You can control the profile via your project's Maven preferences in m2eclipse. Can anyone help me out? I'd certainly give more info if needed. - 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 - 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 spring eclipse and properties/spring config
On Fri, Jul 10, 2009 at 1:54 PM, Vincent Fumoneo...@gmail.com wrote: I'm converting an old project to maven and I have a question re: spring. This project has about 20 spring config files and it reads them all in on startup and uses the In addition I have 4 properties files (local/dev/qa/prod) that I'd like to use to inject/filter/substitute values into them depending on the build. Lastly I am using the eclipse plugin to generate an eclipse project. What I need to know is the following : 1) where should I put the spring files? I am considering src/main/resources/spring If you load them from the classpath, put them in src/main/resources. By default everything in this directory will end up in target/classes (if your project uses a packaging of jar) 2) how should I best filter the props files? Should I use maven for this (using profiles in some way), or should I load the files in the app and use the spring properties configurator? I don't think anyone on this list is qualified to make this architectural decision for you. But, if you wanted to use Maven Resource filtering, you could. You would have a single properties file: whatever.properties which would contain references to arbitrary properties such as ${whatever.jdbc.url}, then you would use profiles and configure resource filtering on this properties file. 3) what is the best way to use the eclipse plugin to generate a project where I can run the app and it can see the newly filtered spring files (instead of the src ones)? m2eclipse is going to automatically call process-resources resources:testResources every time you change a resource and copy the result to target/classes. You can control the profile via your project's Maven preferences in m2eclipse. Can anyone help me out? I'd certainly give more info if needed. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: maven spring eclipse and properties/spring config
Yup, that is a decision you have to make. But in general, the approach I have been using is this: - You spring-context files rarely should be different for each environment (if you think hard enough, you can achieve it :)). - We externalize all environment specific information from Spring Context files as properties and use Spring PPC (property placeholder) to substitute the relevant values during the Bean Factory lifecycle. - You can do all the resource filtering (maven) on *those* properties files above that are externalized. It will take a very long message or an article to show an example :), but information above should get you going, I hope. Thanks, mohan kr -Original Message- From: Tim O'Brien [mailto:tobr...@discursive.com] Sent: Saturday, July 11, 2009 11:03 AM To: Maven Users List Subject: Re: maven spring eclipse and properties/spring config On Fri, Jul 10, 2009 at 1:54 PM, Vincent Fumoneo...@gmail.com wrote: I'm converting an old project to maven and I have a question re: spring. This project has about 20 spring config files and it reads them all in on startup and uses the In addition I have 4 properties files (local/dev/qa/prod) that I'd like to use to inject/filter/substitute values into them depending on the build. Lastly I am using the eclipse plugin to generate an eclipse project. What I need to know is the following : 1) where should I put the spring files? I am considering src/main/resources/spring If you load them from the classpath, put them in src/main/resources. By default everything in this directory will end up in target/classes (if your project uses a packaging of jar) 2) how should I best filter the props files? Should I use maven for this (using profiles in some way), or should I load the files in the app and use the spring properties configurator? I don't think anyone on this list is qualified to make this architectural decision for you. But, if you wanted to use Maven Resource filtering, you could. You would have a single properties file: whatever.properties which would contain references to arbitrary properties such as ${whatever.jdbc.url}, then you would use profiles and configure resource filtering on this properties file. 3) what is the best way to use the eclipse plugin to generate a project where I can run the app and it can see the newly filtered spring files (instead of the src ones)? m2eclipse is going to automatically call process-resources resources:testResources every time you change a resource and copy the result to target/classes. You can control the profile via your project's Maven preferences in m2eclipse. Can anyone help me out? I'd certainly give more info if needed. - 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 spring eclipse and properties/spring config
This is getting a little off-topic, but I feel obliged to mention that we recently open sourced our generalized solution for dealing with the problem of environmental-specific Spring configuration, known as BoxSpring. Our experience with both Spring and our prior DI container lead to the conclusion that property placeholder was not a suitable solution. You can read the details of this project at http://www.box-spring.org/. Justin From: Mohan KR [mailto:kmoh@gmail.com] Sent: Sat 7/11/2009 1:31 PM To: 'Maven Users List' Subject: RE: maven spring eclipse and properties/spring config Yup, that is a decision you have to make. But in general, the approach I have been using is this: - You spring-context files rarely should be different for each environment (if you think hard enough, you can achieve it :)). - We externalize all environment specific information from Spring Context files as properties and use Spring PPC (property placeholder) to substitute the relevant values during the Bean Factory lifecycle. - You can do all the resource filtering (maven) on *those* properties files above that are externalized. It will take a very long message or an article to show an example :), but information above should get you going, I hope. Thanks, mohan kr -Original Message- From: Tim O'Brien [mailto:tobr...@discursive.com] Sent: Saturday, July 11, 2009 11:03 AM To: Maven Users List Subject: Re: maven spring eclipse and properties/spring config On Fri, Jul 10, 2009 at 1:54 PM, Vincent Fumoneo...@gmail.com wrote: I'm converting an old project to maven and I have a question re: spring. This project has about 20 spring config files and it reads them all in on startup and uses the In addition I have 4 properties files (local/dev/qa/prod) that I'd like to use to inject/filter/substitute values into them depending on the build. Lastly I am using the eclipse plugin to generate an eclipse project. What I need to know is the following : 1) where should I put the spring files? I am considering src/main/resources/spring If you load them from the classpath, put them in src/main/resources. By default everything in this directory will end up in target/classes (if your project uses a packaging of jar) 2) how should I best filter the props files? Should I use maven for this (using profiles in some way), or should I load the files in the app and use the spring properties configurator? I don't think anyone on this list is qualified to make this architectural decision for you. But, if you wanted to use Maven Resource filtering, you could. You would have a single properties file: whatever.properties which would contain references to arbitrary properties such as ${whatever.jdbc.url}, then you would use profiles and configure resource filtering on this properties file. 3) what is the best way to use the eclipse plugin to generate a project where I can run the app and it can see the newly filtered spring files (instead of the src ones)? m2eclipse is going to automatically call process-resources resources:testResources every time you change a resource and copy the result to target/classes. You can control the profile via your project's Maven preferences in m2eclipse. Can anyone help me out? I'd certainly give more info if needed. - 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 spring eclipse and properties/spring config
I'm converting an old project to maven and I have a question re: spring. This project has about 20 spring config files and it reads them all in on startup and uses the In addition I have 4 properties files (local/dev/qa/prod) that I'd like to use to inject/filter/substitute values into them depending on the build. Lastly I am using the eclipse plugin to generate an eclipse project. What I need to know is the following : 1) where should I put the spring files? I am considering src/main/resources/spring 2) how should I best filter the props files? Should I use maven for this (using profiles in some way), or should I load the files in the app and use the spring properties configurator? 3) what is the best way to use the eclipse plugin to generate a project where I can run the app and it can see the newly filtered spring files (instead of the src ones)? Can anyone help me out? I'd certainly give more info if needed.
Re: Manual Steps for Integrating Maven with Eclipse...
baerrach wrote: On Wed, Jun 24, 2009 at 3:28 AM, Shesadri Parthasarathysparthasarat...@sapient.com wrote: Hi , We are working for one of our clients and all our development happens thru Eclipse 3.1. We are using Maven Project for Build and deployment process. As there is some issues in doing the installation of the maven plugin in Eclipse, we want to know the manual steps involved in achieving the same what plug-in installation does. Is it possible for you to provide the steps (changes to folder or workspace, inclusion of list of executable etc) as part of Maven integration into Eclipse so that we can do it manually. Quick response on this would be appreciated. Thanks, Sesha. This question belongs on the users list. Have a look at the http://maven.apache.org/plugins/maven-eclipse-plugin/ There is nothing special about Eclipse and Maven projects. You just need configure Eclipse to have all the jars that you pom.xml defines as dependencies (and their transitive dependencies) The maven-eclipse-plugin automates that for you. Yes, doing 'mvn eclipse:eclipse' is quite reliable and currently the best way to import maven-projects to eclipse. Are you sure that you use eclipse 3.1? It is definetely outdated, current version is 3.4. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/Re%3A-Manual-Steps-for-Integrating-Maven-with-Eclipse...-tp24175722p24193609.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: Manual Steps for Integrating Maven with Eclipse...
On Wed, Jun 24, 2009 at 3:28 AM, Shesadri Parthasarathysparthasarat...@sapient.com wrote: Hi , We are working for one of our clients and all our development happens thru Eclipse 3.1. We are using Maven Project for Build and deployment process. As there is some issues in doing the installation of the maven plugin in Eclipse, we want to know the manual steps involved in achieving the same what plug-in installation does. Is it possible for you to provide the steps (changes to folder or workspace, inclusion of list of executable etc) as part of Maven integration into Eclipse so that we can do it manually. Quick response on this would be appreciated. Thanks, Sesha. This question belongs on the users list. Have a look at the http://maven.apache.org/plugins/maven-eclipse-plugin/ There is nothing special about Eclipse and Maven projects. You just need configure Eclipse to have all the jars that you pom.xml defines as dependencies (and their transitive dependencies) The maven-eclipse-plugin automates that for you. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Better AJDT support for maven generated eclipse projects
Hi all, Some of you might be interested in some new features in AJDT that we put in to help support maven users who are using the aspectj plugin and the maven-eclipse-plugin. 1) The maven-eclipse-plugin would include the javabuilder in the generated .project file. This is usually fine, except that AJDT is incompatible with the javabuilder. It requires the ajbuilder instead. This was causing many problems for maven and ajdt users who had their projects generated without the ajbuilder (or with *both* the javabuilder and the ajbuilder). Now, on import of an ajdt project, ajdt ensures that the builders are properly installed (ie- if necessary, the javabuilder is removed and the ajbuilder is added). 2) The maven-eclipse-plugin does not recognize jars that should be on the aspect path (ie- aspect libraries). Aspect libraries would have to be added inside of eclipse after the project was imported (note that m2eclipse already has support for this, but not everyone uses m2eclipse). So, now, the ajbuilder recognizes some builder arguments. These arguments can add jars to the aspect path. Here is an example. Let's say that you want to add the spring aspects jar and the spring aop jar to your aspect path, here is what you can add to your pom.xml (this goes inside your maven-eclipse-plugin configuration section): additionalBuildcommands buildCommand nameorg.eclipse.ajdt.core.ajbuilder/name arguments aspectPathorg.springframework.aspects,org.springframework.aop/aspectPath /arguments /buildCommand /additionalBuildcommands additionalProjectnatures projectnatureorg.eclipse.ajdt.ui.ajnature/projectnature /additionalProjectnatures Please let me know if this is useful for you and if you have any questions/issues. For more information, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=270554 https://bugs.eclipse.org/bugs/show_bug.cgi?id=270552 --andrew - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Better AJDT support for maven generated eclipse projects
On Mon, Apr 6, 2009 at 2:03 AM, Andrew Eisenberg and...@eisenberg.as wrote: Hi all, Some of you might be interested in some new features in AJDT that we put in to help support maven users who are using the aspectj plugin and the maven-eclipse-plugin. Do you want to raise bugs (if they dont already exist) against maven-eclipse-plugin? While its handy for ajdt to work around these issues it probably better that m-e-p does the right thing. There are a number of test cases already for ajdt so it should be hard to fix support properly. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Better AJDT support for maven generated eclipse projects
I can raise those bugs, but it is less important now that AJDT works around it. Some AJDT users required the functionality *now*, and it was a relatively easy fix on our side, so we did it. On Sun, Apr 5, 2009 at 3:17 PM, Barrie Treloar baerr...@gmail.com wrote: On Mon, Apr 6, 2009 at 2:03 AM, Andrew Eisenberg and...@eisenberg.as wrote: Hi all, Some of you might be interested in some new features in AJDT that we put in to help support maven users who are using the aspectj plugin and the maven-eclipse-plugin. Do you want to raise bugs (if they dont already exist) against maven-eclipse-plugin? While its handy for ajdt to work around these issues it probably better that m-e-p does the right thing. There are a number of test cases already for ajdt so it should be hard to fix support properly. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Using maven with eclipse
Hi Farrukh, If you're interested in development that involves the maven-eclipse-plugin, I created a series of tutorials (80+) a few months ago that cover Java development using Eclipse and Maven. The main approach using this technique is to execute maven commands on projects via Eclipse external tool configurations (so that you can click on a project and run a maven goal on that project). In this approach, Eclipse/Maven integration is very minimal (you basically let maven be maven most of the time). Topics include Eclipse user libraries, web applications, and a multi-module project. The tutorials are located at: http://www.avajava.com/tutorials/categories/maven http://www.avajava.com/tutorials/categories/maven If you're interested in tightly integrated features rather than the bare bones approach, the m2eclipse plugin is great. The ability to search for classes and automatically add a dependency to your project in Eclipse is a really fantastic feature. Deron Eriksson -- View this message in context: http://www.nabble.com/Using-maven-with-eclipse-tp21478705p21498725.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Using maven with eclipse
Hello, I am experienced with maven but new to Eclipse IDE. I have used maven with Netbeans IDE and the mevenide Netbeans plugin. WHat I liked about it was how Netbeans was completely driven by the pom configuration and how natural and familiar everything was for a maven user. I would like to try Eclipse IDE with my existing multi-module project. What is the best approack for doing this? Which plugin should I use? Please share any links and pointers. Thanks. -- Regards, Farrukh Web: http://www.wellfleetsoftware.com - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Using maven with eclipse
On Thursday 15 January 2009 Farrukh Najmi wrote: I am experienced with maven but new to Eclipse IDE. I have used maven with Netbeans IDE and the mevenide Netbeans plugin. WHat I liked about it was how Netbeans was completely driven by the pom configuration and how natural and familiar everything was for a maven user. I would like to try Eclipse IDE with my existing multi-module project. What is the best approack for doing this? Which plugin should I use? Please share any links and pointers. Thanks. See [0] for a comparison of the available plugins. The maven-eclipse-plugin just creates eclipse configuration files for your projects, no further intergration. This is simple, quite robust but doesn't provide as much comfort as the other two options. I didn't use m2eclipse or q4e recently but they follow a completely different approach. They are plugins for eclipse and try to adapt your IDE and add new features to it. If you search the list archive you should find some more information. This question is asked every now and then. hth, - martin [0] http://docs.codehaus.org/display/MAVENUSER/Eclipse+Integration signature.asc Description: This is a digitally signed message part.
RE: Using maven with eclipse
Try this if you want an Eclipse plug-in to manage the integration: http://m2eclipse.sonatype.org/ [1] Try this if you want a Maven plug-in instead: http://maven.apache.org/plugins/maven-eclipse-plugin/ [2] I tend to lean to [2], but then I'm happier just using command line mojos to get some of the additional value add that's in [1] (and it does have some pretty slick features, which you'll see if you try it). For example, I'd do something like mvn dependency:tree deps.log etc. Just feels like an instinctively lighter approach which I prefer. Adam -Original Message- From: Farrukh Najmi [mailto:farr...@wellfleetsoftware.com] Sent: 15 January 2009 14:30 To: users@maven.apache.org Subject: Using maven with eclipse Hello, I am experienced with maven but new to Eclipse IDE. I have used maven with Netbeans IDE and the mevenide Netbeans plugin. WHat I liked about it was how Netbeans was completely driven by the pom configuration and how natural and familiar everything was for a maven user. I would like to try Eclipse IDE with my existing multi-module project. What is the best approack for doing this? Which plugin should I use? Please share any links and pointers. Thanks. -- Regards, Farrukh Web: http://www.wellfleetsoftware.com - 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: Using maven with eclipse
Adam Leggett wrote: I tend to lean to [2], but then I'm happier just using command line mojos to get some of the additional value add that's in [1] (and it does have some pretty slick features, which you'll see if you try it). For example, I'd do something like mvn dependency:tree deps.log etc. Just feels like an instinctively lighter approach which I prefer. The m2eclipse provides a nice an interactive UI for that command. You can see how it look like at http://docs.codehaus.org/display/M2ECLIPSE/Maven+POM+editor#MavenPOMeditor-DependencyHierarchyviewer The upcoming m2eclipse 0.9.7 release should be very exiting. The following wiki page provides and overview of the new and noteworthy features http://docs.codehaus.org/display/M2ECLIPSE/New+and+Noteworthy#NewandNoteworthy-latest regards, Eugene -- View this message in context: http://www.nabble.com/Using-maven-with-eclipse-tp21478705p21480290.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: Using maven with eclipse
there's also Eclipse IAM (formerly Q4E) http://code.google.com/p/q4e/ re: dependency tree, I use all the time Q4E dependency analysis http://code.google.com/p/q4e/wiki/DependencyAnalysis On Thu, Jan 15, 2009 at 3:43 PM, Adam Leggett adam.legg...@upco.co.uk wrote: Try this if you want an Eclipse plug-in to manage the integration: http://m2eclipse.sonatype.org/ [1] Try this if you want a Maven plug-in instead: http://maven.apache.org/plugins/maven-eclipse-plugin/ [2] I tend to lean to [2], but then I'm happier just using command line mojos to get some of the additional value add that's in [1] (and it does have some pretty slick features, which you'll see if you try it). For example, I'd do something like mvn dependency:tree deps.log etc. Just feels like an instinctively lighter approach which I prefer. Adam -Original Message- From: Farrukh Najmi [mailto:farr...@wellfleetsoftware.com] Sent: 15 January 2009 14:30 To: users@maven.apache.org Subject: Using maven with eclipse Hello, I am experienced with maven but new to Eclipse IDE. I have used maven with Netbeans IDE and the mevenide Netbeans plugin. WHat I liked about it was how Netbeans was completely driven by the pom configuration and how natural and familiar everything was for a maven user. I would like to try Eclipse IDE with my existing multi-module project. What is the best approack for doing this? Which plugin should I use? Please share any links and pointers. Thanks. -- Regards, Farrukh Web: http://www.wellfleetsoftware.com - 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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven + GWT + Eclipse
We have projects used Maven + MyEclipse in the past. There is a new project we want to use GWT. I am having trouble integrating the 3. There is a GWT maven plugin and I tried out with the simplesample project from google. The issues: 1) GWT compile seems to generate java classes in the source folder. Is it possible to generate them and put them in a separate folder so that we can do svn ignore on the folder? 2) Is it possible to run hosted mode in MyEclipse? 3) Is it possible to deploy to MyEclipse's application server? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven + GWT + Eclipse
If you are using the Mojo project GWT plugin ( mojo.codehaus.org/gwt-maven-plugin) I can help you as I maintain it. Nicolas. 2008/9/17 Lam, Hayward [EMAIL PROTECTED] We have projects used Maven + MyEclipse in the past. There is a new project we want to use GWT. I am having trouble integrating the 3. There is a GWT maven plugin and I tried out with the simplesample project from google. The issues: 1) GWT compile seems to generate java classes in the source folder. Is it possible to generate them and put them in a separate folder so that we can do svn ignore on the folder? 2) Is it possible to run hosted mode in MyEclipse? 3) Is it possible to deploy to MyEclipse's application server? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Best Practice for DLLs in Maven with Eclipse
One of the many things I like about Maven is that the binaries are in repositiories and not in CVS. For normal Jars this works perfect but DLLs and .so files are often also packed in jars and then put into the repositories. These jars have to be unpacked before they can be used when running the Project within Eclipse. My old way to use these DLLs was to put them into the project root (single module) and then put everything in CVS. When s.o. was checking this out with Eclipse from CVS everything worked and the project could be run directly. I can do the same now with M2E projects but it feels wrong to put the DLLs in the CVS and to not use the repo for that. My question is how people are handling this problem. The idea is that when someone joins the team he can checkout the project and start it right away (without the DLLs being in CVS). Jan Schoppenhorst GDV Gesellschaft für geografische Datenverarbeitung mbH Binger Straße 49-51 55218 Ingelheim Tel.: 06132/7148-19 Fax.: 06132/7148-28 www.gdv.com www.gdv-mapbuilder.de Sitz der Gesellschaft: Ingelheim Amtsgericht Mainz HRB 23123 Gerichtsstand Mainz Geschäftsführer: Thomas Riehl, Dirk Hübener - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven and Eclipse Project
Thanks for the suggestion. It does not work. No error reported. The build path still does not show any project dependency. -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: August 21, 2008 3:40 PM To: Maven Users List Subject: Re: Maven and Eclipse Project You need to configure the eclipse plugin as Arnaud said: http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html It will be something like: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId configuration workspace.../workspace /configuration /plugin Wayne On 8/21/08, Lam Hayward [EMAIL PROTECTED] wrote: I tried setting the following properties in pom.xml or command line: workspace eclipse.workspace maven.eclipse.workspace The command does not report any error. However, the eclipse buildpath of project B or project C still do not reference project A. Any idea? -Original Message- From: Arnaud HERITIER [mailto:[EMAIL PROTECTED] Sent: August 21, 2008 1:55 PM To: Maven Users List Subject: Re: Maven and Eclipse Project using the workspace property the eclipse plugin can find references to others projects and link them. Otherwise without having an inheritence but a reactor pom with 3 modules will also link them together. On Thu, Aug 21, 2008 at 4:51 PM, Lam Hayward [EMAIL PROTECTED]wrote: Hi there, I have an issue with maven classpath generation (mvn eclipse:eclipse) for eclipse. I have 3 independent projects (say A, B and C) with no common root. Project A is the common project (jar) which project B and C will include. In pom.xml in project B and project C, there is a dependency defined for A. However, in eclipse, I'd like to have project B and project C to include the project A as reference project instead of the jar. Is this possible without using the project hierarchy approach? HL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- .. Arnaud HERITIER .. OCTO Technology - aheritier AT octo DOT com www.octo.com | blog.octo.com .. ASF - aheritier AT apache DOT org www.apache.org | maven.apache.org ... - 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: Maven and Eclipse Project
I installed the eclipse plugin from http://mvnlink.googlecode.com/svn/mvnlink-update-site/ and restarted eclipse. According to the project page, some top level menu should have MvnLink, there is no none. Is there some configuration I am missing? -Original Message- From: Andrew Close [mailto:[EMAIL PROTECTED] Sent: August 21, 2008 4:29 PM To: Maven Users List Subject: Re: Maven and Eclipse Project On Thu, Aug 21, 2008 at 9:51 AM, Lam Hayward [EMAIL PROTECTED] wrote: Hi there, I have an issue with maven classpath generation (mvn eclipse:eclipse) for eclipse. I have 3 independent projects (say A, B and C) with no common root. Project A is the common project (jar) which project B and C will include. In pom.xml in project B and project C, there is a dependency defined for A. However, in eclipse, I'd like to have project B and project C to include the project A as reference project instead of the jar. Is this possible without using the project hierarchy approach? maybe you want to look into this: http://code.google.com/p/mvnlink/ it sounds like it does what you're looking for. -- Andrew Close - 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 and Eclipse Project
Michael McCallum-3 wrote: maybe you want to look into this: http://code.google.com/p/mvnlink/ it sounds like it does what you're looking for. use the m2eclipse.codehaus.org plugin and then run mvn eclipse:m2eclipse If you are using m2eclipse, I wouldn't recommend using eclipse:m2eclipse. Instead use one of the project import wizards provided by m2eclipse. They allow to import multiple projects from local system, checkout from SCM or import by Maven coordinates. See http://tinyurl.com/5qzyzx This way project interdependencies and configuration for other Eclipse tools, such as AJDT or WTP will be done automatically. See for example WTP howto. http://tinyurl.com/5zoawl Michael McCallum-3 wrote: far better solution... there is one caveat make sure that maven and eclipse have different output folders... eclipse generates class are not meant to be packaged up... Because of several issues with option for using separate output folders between Eclipse and Maven CLI, we had to remove it in m2eclipse 0.9.5. If you are not jumping back and forth between Eclipse and command line it works much better for the IDE and the only caveat is that you need to not forget to perform Refresh and Project / Clean after you done something with the project outside IDE. We are still looking at better solution for this issue. In a mean time, if you prefer to use separate output folders, you can do that with a custom profile. See more details at http://tinyurl.com/373bkh#ProjectFAQ-outputFolders regards, Eugene -- View this message in context: http://www.nabble.com/Release-fails-during-SVN-commit-tp19084270p19108305.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven and Eclipse Project
Out of curiosity, why don't you give a try to m2eclipse? http://m2eclipse.codehaus.org/ among lot of other things, it would automatically handle project import for you and will configure imported projects for other Eclipse tools. regards, Eugene Lam Hayward wrote: Thanks for the suggestion. It does not work. No error reported. The build path still does not show any project dependency. -Original Message- From: Wayne Fay Sent: August 21, 2008 3:40 PM To: Maven Users List Subject: Re: Maven and Eclipse Project You need to configure the eclipse plugin as Arnaud said: http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html It will be something like: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId configuration workspace.../workspace /configuration /plugin Wayne -- View this message in context: http://www.nabble.com/Release-fails-during-SVN-commit-tp19084270p19108349.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven and Eclipse Project
Hi there, I have an issue with maven classpath generation (mvn eclipse:eclipse) for eclipse. I have 3 independent projects (say A, B and C) with no common root. Project A is the common project (jar) which project B and C will include. In pom.xml in project B and project C, there is a dependency defined for A. However, in eclipse, I'd like to have project B and project C to include the project A as reference project instead of the jar. Is this possible without using the project hierarchy approach? HL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven and Eclipse Project
using the workspace property the eclipse plugin can find references to others projects and link them. Otherwise without having an inheritence but a reactor pom with 3 modules will also link them together. On Thu, Aug 21, 2008 at 4:51 PM, Lam Hayward [EMAIL PROTECTED]wrote: Hi there, I have an issue with maven classpath generation (mvn eclipse:eclipse) for eclipse. I have 3 independent projects (say A, B and C) with no common root. Project A is the common project (jar) which project B and C will include. In pom.xml in project B and project C, there is a dependency defined for A. However, in eclipse, I'd like to have project B and project C to include the project A as reference project instead of the jar. Is this possible without using the project hierarchy approach? HL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- .. Arnaud HERITIER .. OCTO Technology - aheritier AT octo DOT com www.octo.com | blog.octo.com .. ASF - aheritier AT apache DOT org www.apache.org | maven.apache.org ...
RE: Maven and Eclipse Project
I tried setting the following properties in pom.xml or command line: workspace eclipse.workspace maven.eclipse.workspace The command does not report any error. However, the eclipse buildpath of project B or project C still do not reference project A. Any idea? -Original Message- From: Arnaud HERITIER [mailto:[EMAIL PROTECTED] Sent: August 21, 2008 1:55 PM To: Maven Users List Subject: Re: Maven and Eclipse Project using the workspace property the eclipse plugin can find references to others projects and link them. Otherwise without having an inheritence but a reactor pom with 3 modules will also link them together. On Thu, Aug 21, 2008 at 4:51 PM, Lam Hayward [EMAIL PROTECTED]wrote: Hi there, I have an issue with maven classpath generation (mvn eclipse:eclipse) for eclipse. I have 3 independent projects (say A, B and C) with no common root. Project A is the common project (jar) which project B and C will include. In pom.xml in project B and project C, there is a dependency defined for A. However, in eclipse, I'd like to have project B and project C to include the project A as reference project instead of the jar. Is this possible without using the project hierarchy approach? HL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- .. Arnaud HERITIER .. OCTO Technology - aheritier AT octo DOT com www.octo.com | blog.octo.com .. ASF - aheritier AT apache DOT org www.apache.org | maven.apache.org ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven and Eclipse Project
You need to configure the eclipse plugin as Arnaud said: http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html It will be something like: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId configuration workspace.../workspace /configuration /plugin Wayne On 8/21/08, Lam Hayward [EMAIL PROTECTED] wrote: I tried setting the following properties in pom.xml or command line: workspace eclipse.workspace maven.eclipse.workspace The command does not report any error. However, the eclipse buildpath of project B or project C still do not reference project A. Any idea? -Original Message- From: Arnaud HERITIER [mailto:[EMAIL PROTECTED] Sent: August 21, 2008 1:55 PM To: Maven Users List Subject: Re: Maven and Eclipse Project using the workspace property the eclipse plugin can find references to others projects and link them. Otherwise without having an inheritence but a reactor pom with 3 modules will also link them together. On Thu, Aug 21, 2008 at 4:51 PM, Lam Hayward [EMAIL PROTECTED]wrote: Hi there, I have an issue with maven classpath generation (mvn eclipse:eclipse) for eclipse. I have 3 independent projects (say A, B and C) with no common root. Project A is the common project (jar) which project B and C will include. In pom.xml in project B and project C, there is a dependency defined for A. However, in eclipse, I'd like to have project B and project C to include the project A as reference project instead of the jar. Is this possible without using the project hierarchy approach? HL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- .. Arnaud HERITIER .. OCTO Technology - aheritier AT octo DOT com www.octo.com | blog.octo.com .. ASF - aheritier AT apache DOT org www.apache.org | maven.apache.org ... - 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 and Eclipse Project
On Thu, Aug 21, 2008 at 9:51 AM, Lam Hayward [EMAIL PROTECTED] wrote: Hi there, I have an issue with maven classpath generation (mvn eclipse:eclipse) for eclipse. I have 3 independent projects (say A, B and C) with no common root. Project A is the common project (jar) which project B and C will include. In pom.xml in project B and project C, there is a dependency defined for A. However, in eclipse, I'd like to have project B and project C to include the project A as reference project instead of the jar. Is this possible without using the project hierarchy approach? maybe you want to look into this: http://code.google.com/p/mvnlink/ it sounds like it does what you're looking for. -- Andrew Close - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven and Eclipse Project
On Fri, 22 Aug 2008 08:28:36 Andrew Close wrote: On Thu, Aug 21, 2008 at 9:51 AM, Lam Hayward [EMAIL PROTECTED] wrote: Hi there, I have an issue with maven classpath generation (mvn eclipse:eclipse) for eclipse. I have 3 independent projects (say A, B and C) with no common root. Project A is the common project (jar) which project B and C will include. In pom.xml in project B and project C, there is a dependency defined for A. However, in eclipse, I'd like to have project B and project C to include the project A as reference project instead of the jar. Is this possible without using the project hierarchy approach? maybe you want to look into this: http://code.google.com/p/mvnlink/ it sounds like it does what you're looking for. use the m2eclipse.codehaus.org plugin and then run mvn eclipse:m2eclipse far better solution... there is one caveat make sure that maven and eclipse have different output folders... eclipse generates class are not meant to be packaged up... -- Michael McCallum Enterprise Engineer mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is is possible to start maven in Eclipse?
I use maven1 and Eclipse 3.3.x. Now when I compile a project or run other maven commands, I have to open Command Prompt and enter the maven command. I wonder if one can simple run maven command in Eclipse directly, such as right click the project and choose run maven command in the context menu. -- View this message in context: http://www.nabble.com/Is-is-possible-to-start-maven-in-Eclipse--tp18614085p18614085.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is is possible to start maven in Eclipse?
You can define an external tool. Go in the Eclipse tool bar just at the right of the play button and choose 'External tool configuration'. Just create the command and make it appears in the menu. Pierre - Original Message From: thomas2004 [EMAIL PROTECTED] To: users@maven.apache.org Sent: Wednesday, July 23, 2008 11:55:15 AM Subject: Is is possible to start maven in Eclipse? I use maven1 and Eclipse 3.3.x. Now when I compile a project or run other maven commands, I have to open Command Prompt and enter the maven command. I wonder if one can simple run maven command in Eclipse directly, such as right click the project and choose run maven command in the context menu. -- View this message in context: http://www.nabble.com/Is-is-possible-to-start-maven-in-Eclipse--tp18614085p18614085.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at http://ca.toolbar.yahoo.com.
maven 2.0.9 eclipse 3.2.2 problems
Anyone experiencing this: [WARN] Failed to load plugin: org.apache.maven.plugins:maven-clean-plugin. Adding to late-bound plugins list. Reason: Failed to load plugin. Reason: The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not exist or no valid version could be found [WARN] Failed to load plugin: org.apache.maven.plugins:maven-clean-plugin. Adding to late-bound plugins list. Reason: Failed to load plugin. Reason: The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not exist or no valid version could be found [INFO] statemgmt:resolve-late-bound-plugin [ERROR] mojo-execute : statemgmt:resolve-late-bound-plugin Diagnosis: Failed to load late-bound plugin: org.apache.maven.plugins:maven-clean-plugin FATAL ERROR: Error executing Maven for a project [ERROR] project-execute : m2utils:prop-override:maven-plugin:1.0-SNAPSHOT ( task-segment: [clean] ) Diagnosis: Failed to load late-bound plugin: org.apache.maven.plugins:maven-clean-plugin FATAL ERROR: Error executing Maven for a project
Re: Maven and Eclipse: getting started
Profuse thanks, Chris, for helping me get started here. Russ [EMAIL PROTECTED] wrote: And I've tried running mvn eclipse realizing that that is way too naive as a starting point. I'm guessing that to create a Dynamic Web Project under Maven control for use in Eclipse, I have to create a BLANK PROJECT on the command line in Maven, but there's something about the Eclipse workbench plugin that will give me all the right directories and a fully WTP-armed POM. Then, I can copy (?) this blank somewhere and use it ever after (or just use Maven to create a new blank every time I need one)? Look at archetypes. (Hint: http://docs.codehaus.org/display/M2ECLIPSE/New+and+Noteworthy) More importantly, have a look at: http://www.sonatype.com/book/ Also, use this: http://m2eclipse.codehaus.org/ The questions I'm looking to answer are: - How do I invoke the Maven plugin inside Eclipse to tell Maven to create me a fully WTP-armed POM? mvn archetype:create ^ -DarchetypeGroupId=group id of the appropriate archetype ^ -DarchetypeArtifactId=aart. id of the appropriate archetype ^ -DarchetypeVersion=1.0-SNAPSHOT ^ -DgroupId=Project Group Id ^ -DartifactId=Project Name cd Project Name mvn eclipse:eclipse That will get you started. We've set up a parent POM that has this section in it: build pluginManagement plugins plugin artifactIdmaven-eclipse-plugin/artifactId version${maven-eclipse-plugin.version}/version configuration downloadSources${ide.download.sources}/ downloadSources downloadJavadocs${ide.download.javadoc}/ downloadJavadocs wtpversion${eclipse.wtp.version}/wtpversion /configuration /plugin /plugins /pluginManagement /build properties maven-eclipse-plugin.version2.5.1/maven-eclipse-plugin.version ide.download.sourcestrue/ide.download.sources ide.download.javadocfalse/ide.download.javadoc eclipse.wtp.version1.5/eclipse.wtp.version /properties - What does it leave lying around that tells me this has succeeded? - What Maven command do I use on the Windoz/DOS command line to create this mythical project with Eclipse .classpath/.metadata/etc. stuff in it? That is what the mvn eclipse:eclipse tasks does (by it's very definition) - How do I import the new project into Eclipse so I can get developing? Import it like any other (existing) eclipse project... - Will the full-octane, WTP-armed POM and project hierarchy come with /faces-config.xml/, /web.xml/, etc. Depends on what archetypes you've used/parent pom's you've inherited from. I have heard that this is possible and that Maven is going to do all these cools things for me, but after hours of research reading link after followed link, I've only stumbled on more or less how to install and nothing about how to use. I'm not looking for anyone to do the work for me, but a list of URLs or some pointers would be greatly helpful. Not not that far ahead of you myself, and yes it is painfully difficult...
Maven and Eclipse: getting started
I'm looking for help getting going with Maven and Eclipse. I've read lots, but have been unable to synthesis what I've read into a practical, working procedure. I'm looking for some direction (URLs or other suggestions). Where am I? I have downloaded Maven and run it successfully to create the sample myapp Hello World project. I have found and downloaded Maven plugins for Eclipse, though I haven't figured out where to put them yet. For now, I've tucked them away in a folder parallel to my Tomcat installation. *C:\Program Files\Apache Software Foundation\apache-maven-2.0.9\plugins dir Directory of C:\Program Files\Apache Software Foundation\apache-maven-2.0.9\plugins 04/30/2008 07:38 PMDIR . 04/30/2008 07:38 PMDIR .. 04/30/2008 07:37 PM 409,126 maven-eclipse-plugin-2.5.1-javadoc.jar 04/30/2008 07:37 PM 181,400 maven-eclipse-plugin-2.5.1.jar 04/30/2008 07:38 PM 7,174 maven-eclipse-plugin-2.5.1.pom 3 File(s)597,700 bytes 2 Dir(s) 95,256,113,152 bytes free* I have used Eclipse's Sofware Update/Find and Install facility to fetch down a plugin for Eclipse. These would apparently be the famous Q plugins for use FROM Eclipse while the previous ones are those used FROM Maven. Or so my reading encourages me to believe. *C:\tutorial\eclipse\pluginsdir *maven* Directory of C:\tutorial\eclipse\plugins 04/30/2008 09:04 PM 2,047,318 org.apache.maven.embedder_2.1.0.627670.jar 04/30/2008 09:04 PM41,565 org.apache.maven.shared.dependency.tree_1.1.0.v200802050958.jar 04/30/2008 09:04 PM 426,398 org.devzuz.q.maven.core_0.6.0.200804131445.jar 04/30/2008 09:04 PM63,497 org.devzuz.q.maven.dependency.analysis_0.6.0.200804131445.jar 04/30/2008 09:04 PM17,652 org.devzuz.q.maven.dependencyviewer_0.6.0.200804131446.jar 04/30/2008 09:04 PM48,308 org.devzuz.q.maven.jdt.core_0.6.0.200804131445.jar 04/30/2008 09:04 PM54,760 org.devzuz.q.maven.jdt.ui_0.6.0.200804131445.jar 04/30/2008 09:04 PM 665,387 org.devzuz.q.maven.ui_0.6.0.200804131445.jar 04/30/2008 09:04 PM 148,246 org.devzuz.q.maven.wizard_0.6.0.200804131445.jar 04/30/2008 09:04 PM 7,834 org.devzuz.q.maven.wtp.core_0.6.0.200804131446.jar 10 File(s) 3,520,965 bytes 0 Dir(s) 95,256,096,768 bytes free* And I've tried running mvn eclipse realizing that that is way too naive as a starting point. I'm guessing that to create a Dynamic Web Project under Maven control for use in Eclipse, I have to create a BLANK PROJECT on the command line in Maven, but there's something about the Eclipse workbench plugin that will give me all the right directories and a fully WTP-armed POM. Then, I can copy (?) this blank somewhere and use it ever after (or just use Maven to create a new blank every time I need one)? The questions I'm looking to answer are: - How do I invoke the Maven plugin inside Eclipse to tell Maven to create me a fully WTP-armed POM? - What does it leave lying around that tells me this has succeeded? - What Maven command do I use on the Windoz/DOS command line to create this mythical project with Eclipse .classpath/.metadata/etc. stuff in it? - How do I import the new project into Eclipse so I can get developing? - Will the full-octane, WTP-armed POM and project hierarchy come with /faces-config.xml/, /web.xml/, etc. I have heard that this is possible and that Maven is going to do all these cools things for me, but after hours of research reading link after followed link, I've only stumbled on more or less how to install and nothing about how to use. I'm not looking for anyone to do the work for me, but a list of URLs or some pointers would be greatly helpful. Thanks in advance, Russ Bateman
Re: Maven and Eclipse: getting started
And I've tried running mvn eclipse realizing that that is way too naive as a starting point. I'm guessing that to create a Dynamic Web Project under Maven control for use in Eclipse, I have to create a BLANK PROJECT on the command line in Maven, but there's something about the Eclipse workbench plugin that will give me all the right directories and a fully WTP-armed POM. Then, I can copy (?) this blank somewhere and use it ever after (or just use Maven to create a new blank every time I need one)? Look at archetypes. (Hint: http://docs.codehaus.org/display/M2ECLIPSE/New+and+Noteworthy) More importantly, have a look at: http://www.sonatype.com/book/ Also, use this: http://m2eclipse.codehaus.org/ The questions I'm looking to answer are: - How do I invoke the Maven plugin inside Eclipse to tell Maven to create me a fully WTP-armed POM? mvn archetype:create ^ -DarchetypeGroupId=group id of the appropriate archetype ^ -DarchetypeArtifactId=aart. id of the appropriate archetype ^ -DarchetypeVersion=1.0-SNAPSHOT ^ -DgroupId=Project Group Id ^ -DartifactId=Project Name cd Project Name mvn eclipse:eclipse That will get you started. We've set up a parent POM that has this section in it: build pluginManagement plugins plugin artifactIdmaven-eclipse-plugin/artifactId version${maven-eclipse-plugin.version}/version configuration downloadSources${ide.download.sources}/ downloadSources downloadJavadocs${ide.download.javadoc}/ downloadJavadocs wtpversion${eclipse.wtp.version}/wtpversion /configuration /plugin /plugins /pluginManagement /build properties maven-eclipse-plugin.version2.5.1/maven-eclipse-plugin.version ide.download.sourcestrue/ide.download.sources ide.download.javadocfalse/ide.download.javadoc eclipse.wtp.version1.5/eclipse.wtp.version /properties - What does it leave lying around that tells me this has succeeded? - What Maven command do I use on the Windoz/DOS command line to create this mythical project with Eclipse .classpath/.metadata/etc. stuff in it? That is what the mvn eclipse:eclipse tasks does (by it's very definition) - How do I import the new project into Eclipse so I can get developing? Import it like any other (existing) eclipse project... - Will the full-octane, WTP-armed POM and project hierarchy come with /faces-config.xml/, /web.xml/, etc. Depends on what archetypes you've used/parent pom's you've inherited from. I have heard that this is possible and that Maven is going to do all these cools things for me, but after hours of research reading link after followed link, I've only stumbled on more or less how to install and nothing about how to use. I'm not looking for anyone to do the work for me, but a list of URLs or some pointers would be greatly helpful. Not not that far ahead of you myself, and yes it is painfully difficult... ** CAUTION - This message is intended for the addressee named above. It may contain privileged or confidential information. If you are not the intended recipient of this message you must: - Not use, copy, distribute or disclose it to anyone other than the addressee; - Notify the sender via return email; and - Delete the message (and any related attachments) from your computer immediately. Internet emails are not necessarily secure. Australian Associated Motors Insurers Limited ABN 92 004 791 744 (AAMI), and its related entities, do not accept responsibility for changes made to this message after it was sent. Unless otherwise stated, views expressed within this email are the author's own and do not represent those of AAMI. **
problem with maven and eclipse rcp
hi Am having trouble trying to download eclipse plugin using maven . these are the steps i followed 1) viisited the link http://docs.codehaus.org/display/MAVENUSER/Eclipse+Plugin 2) opened a cmd (in windows) and ran the 2nd command in the link page : mvn eclipse:make-artifacts \ -DeclipseDir=/path/to/eclipse/install \ -DdeployTo=external_free::default::scp://NUCLEUS/usr/local/www/default/m aven2_repositories/external_free Of course i gave my own path where eclipse was installed and also the path for the repository 3) the error got was : [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'plugin'. [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Required goal not found: plugin:download in org.apache.maven.plugins:mave n-plugin-plugin:2.4.1 [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Wed Apr 23 11:03:01 IST 2008 [INFO] Final Memory: 1M/4M [INFO] can some one help me out plz with regards, glen vishal sequeira Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
Maven with Eclipse
Hi, I am using maven plug-in with myeclipse 6.0. But while coding even if I add rubbish to the code, I can not see any error line(the usual red line at the point of syntactic error). Could anyone help with that? I am using the org.maven.ide.eclipse_0.0.11.20070603-1200 plug in. Regards, Amit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven with Eclipse
There is a newer version of the M2Eclipse plugin (0.0.12) which might make a difference. Also, there are settings in Eclipse to control the highlighting (see Windows-Preferences-Java-Editor and see if the Report problems as you type box is checked). Ben -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: 29 January 2008 08:07 To: Maven Users List Subject: Maven with Eclipse Hi, I am using maven plug-in with myeclipse 6.0. But while coding even if I add rubbish to the code, I can not see any error line(the usual red line at the point of syntactic error). Could anyone help with that? I am using the org.maven.ide.eclipse_0.0.11.20070603-1200 plug in. Regards, Amit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail is confidential and intended solely for the use of the individual(s) to whom it is addressed. Any views or opinions expressed are those of the author. If you are not the intended recipient, please be advised that any use, dissemination, printing or copying of this email is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven with Eclipse
I was not able to locale 0.12 version of m2eclipse plug at http://m2eclipse.codehaus.org/update-dev/plugins/ Ben I would definitely try the plug in you had mentioned because my experience with m2eclipse plug in for eclipse is not so cool in terms of reliability while working from Eclipse console ( in case of downloading artifacts, searching the repository and compiling results etc. ). The problem is resolved for 0.11 version as well, there was some problem with Linking of sources in eclipse, which is tackled now. Thanks a ton. Regards, Amit On Jan 29, 2008 3:43 PM, Thomas Lutz [EMAIL PROTECTED] wrote: You could try http://code.google.com/p/q4e/ Other maven plugin, not as well known as mevenide or M2Eclipse plugin, but for me it works a lot better... Tom Ben Lidgey schrieb: There is a newer version of the M2Eclipse plugin (0.0.12) which might make a difference. Also, there are settings in Eclipse to control the highlighting (see Windows-Preferences-Java-Editor and see if the Report problems as you type box is checked). Ben -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: 29 January 2008 08:07 To: Maven Users List Subject: Maven with Eclipse Hi, I am using maven plug-in with myeclipse 6.0. But while coding even if I add rubbish to the code, I can not see any error line(the usual red line at the point of syntactic error). Could anyone help with that? I am using the org.maven.ide.eclipse_0.0.11.20070603-1200 plug in. Regards, Amit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail is confidential and intended solely for the use of the individual(s) to whom it is addressed. Any views or opinions expressed are those of the author. If you are not the intended recipient, please be advised that any use, dissemination, printing or copying of this email is strictly prohibited. - 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: Maven with Eclipse
You could try http://code.google.com/p/q4e/ Other maven plugin, not as well known as mevenide or M2Eclipse plugin, but for me it works a lot better... Tom Ben Lidgey schrieb: There is a newer version of the M2Eclipse plugin (0.0.12) which might make a difference. Also, there are settings in Eclipse to control the highlighting (see Windows-Preferences-Java-Editor and see if the Report problems as you type box is checked). Ben -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: 29 January 2008 08:07 To: Maven Users List Subject: Maven with Eclipse Hi, I am using maven plug-in with myeclipse 6.0. But while coding even if I add rubbish to the code, I can not see any error line(the usual red line at the point of syntactic error). Could anyone help with that? I am using the org.maven.ide.eclipse_0.0.11.20070603-1200 plug in. Regards, Amit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail is confidential and intended solely for the use of the individual(s) to whom it is addressed. Any views or opinions expressed are those of the author. If you are not the intended recipient, please be advised that any use, dissemination, printing or copying of this email is strictly prohibited. - 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 with Eclipse
You need http://m2eclipse.codehaus.org/update/plugins/ for the released plugin versions (0.0.12 is there), as http://m2eclipse.codehaus.org/update-dev/plugins/ is for the development version of the plugins as documented on http://m2eclipse.codehaus.org/ There are also mailing lists for the m2eclipse plugin specifically -- see http://m2eclipse.codehaus.org/mail-lists.html. Mailing to that list would probably get a better response for issues with the plugin itself. We are using the m2eclipse plugin here for our development with no major issues, especially since using 0.0.12. Ben -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: 29 January 2008 10:27 To: Maven Users List Subject: Re: Maven with Eclipse I was not able to locale 0.12 version of m2eclipse plug at http://m2eclipse.codehaus.org/update-dev/plugins/ Ben I would definitely try the plug in you had mentioned because my experience with m2eclipse plug in for eclipse is not so cool in terms of reliability while working from Eclipse console ( in case of downloading artifacts, searching the repository and compiling results etc. ). The problem is resolved for 0.11 version as well, there was some problem with Linking of sources in eclipse, which is tackled now. Thanks a ton. Regards, Amit On Jan 29, 2008 3:43 PM, Thomas Lutz [EMAIL PROTECTED] wrote: You could try http://code.google.com/p/q4e/ Other maven plugin, not as well known as mevenide or M2Eclipse plugin, but for me it works a lot better... Tom Ben Lidgey schrieb: There is a newer version of the M2Eclipse plugin (0.0.12) which might make a difference. Also, there are settings in Eclipse to control the highlighting (see Windows-Preferences-Java-Editor and see if the Report problems as you type box is checked). Ben -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: 29 January 2008 08:07 To: Maven Users List Subject: Maven with Eclipse Hi, I am using maven plug-in with myeclipse 6.0. But while coding even if I add rubbish to the code, I can not see any error line(the usual red line at the point of syntactic error). Could anyone help with that? I am using the org.maven.ide.eclipse_0.0.11.20070603-1200 plug in. Regards, Amit --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail is confidential and intended solely for the use of the individual(s) to whom it is addressed. Any views or opinions expressed are those of the author. If you are not the intended recipient, please be advised that any use, dissemination, printing or copying of this email is strictly prohibited. - 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] This e-mail is confidential and intended solely for the use of the individual(s) to whom it is addressed. Any views or opinions expressed are those of the author. If you are not the intended recipient, please be advised that any use, dissemination, printing or copying of this email is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Kill maven from eclipse launcher
Is it possible to kill maven.bat after launch from within eclipse? Seems that maven continues to run and only the launcher stop. Thank you -- View this message in context: http://www.nabble.com/Kill-maven-from-eclipse-launcher-tp14477952s177p14477952.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 1.1 : eclipse-plugin : Hide target
I have run into this problem as well with both build and target folders. I came across a solution at http://robmayhew.com/eclipse-ignore-folder/ All you have to do is right-click the target folder, select properties, and mark this resource as derived. The open resource dialog will ignore derived resources by default. Tanguy von Stebut-2 wrote: Hi ! I'm using eclipse-plugin under maven 1.x, and I'd like my target dirs to be excluded from package view and also from Type and resources Search, to avoid editing sources like jsp in to target. Actually, I thing output folders should be automatically hidden by eclipe, since it's not happening to me. -- Cordialement, Tanguy von Stebut 75, bd de Ménilmontant 75011 PARIS 06 60 90 21 03 -- View this message in context: http://www.nabble.com/Maven-1.1-%3A-eclipse-plugin-%3A-Hide-target-tf4675947s177.html#a13994042 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven/Subversion/Eclipse/Subclipse Configuration
Simon Taylor-2 wrote: Were using Maven2, Subversion accessible via WebDAV, Eclipse with both Subclipse and Maven2Eclipse plugin. We created a new Maven2 project in Eclipse. We have an existing project structure that we want to convert to Maven 2 and check in to the repository so we can then check it out and work on it in Eclipse. In eclipse it seems you can only check out from the repository As a new project - if we do this then we don't get the Maven2 structure. One alternative is to create the Maven2 project structure import the src code from the filesystem and then commit the whole project to Subversion - but ths also commits the target dir and all the compiled classes which to my mind shouldn't live in the repository. Yes, I like the second approach, you simply unselect target and bin not to commit them, and you add the svn:ignore property on it. -- Régis -- View this message in context: http://www.nabble.com/Maven-Subversion-Eclipse-Subclipse-Configuration-tf4757978s177.html#a13623976 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven/Subversion/Eclipse/Subclipse Configuration
Were configuring our first Maven project and wondering if we have the right approach. Were using Maven2, Subversion accessible via WebDAV, Eclipse with both Subclipse and Maven2Eclipse plugin. We created a new Maven2 project in Eclipse. We have an existing project structure that we want to convert to Maven 2 and check in to the repository so we can then check it out and work on it in Eclipse. In eclipse it seems you can only check out from the repository As a new project - if we do this then we don't get the Maven2 structure. One alternative is to create the Maven2 project structure import the src code from the filesystem and then commit the whole project to Subversion - but ths also commits the target dir and all the compiled classes which to my mind shouldn't live in the repository. Whats the right way to use Maven2, Subversion and Eclipse. Thanks Simon Simon Taylor Service Tools Solutions (STS) Engineer Nortel Email [EMAIL PROTECTED] Office +44.1279 402291 (ESN 6 742 2291) Mobile +44.7740.533743 (ESN 748 3743)
Re: Maven/Subversion/Eclipse/Subclipse Configuration
I agree with you, Vanja. And if the developers on the project are definitely using Eclipse, you can create a Maven Builder for Eclipse that hooks into the Eclipse build lifecycle. See the additionalBuildCommands tag here: http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html. You'd then check in the Builder/External Launcher configuration file to SVN, and when a developer checks the project out and runs mvn eclipse:eclipse on the project, the .project file will reflect the new builder. Then you can build (or filter resources) on incremental builds or full clean/builds in Eclipse without having to invoke Maven directly. On Nov 6, 2007 9:08 AM, Vanja Petreski [EMAIL PROTECTED] wrote: Check config file for the subversion. There you can find global-ignores option, where you can set filtering for target and other non-maven files (like IDE specific files). I am following the procedure: 1) Create Maven project structure 2) Import to the Subversion (with mentioned global-ignores) 3) Now everybody can checkout 4) Every developer now can choose IDE (for example mvn eclipse:eclipse) I don't use Eclipse plugins for Maven at all, because no one is good enough for me. I am using Subclipse as the SVN client, but import and checkout I am doing manually (using svn command). Regards, Vanja On Nov 6, 2007 2:13 PM, Simon Taylor [EMAIL PROTECTED] wrote: Were configuring our first Maven project and wondering if we have the right approach. Were using Maven2, Subversion accessible via WebDAV, Eclipse with both Subclipse and Maven2Eclipse plugin. We created a new Maven2 project in Eclipse. We have an existing project structure that we want to convert to Maven 2 and check in to the repository so we can then check it out and work on it in Eclipse. In eclipse it seems you can only check out from the repository As a new project - if we do this then we don't get the Maven2 structure. One alternative is to create the Maven2 project structure import the src code from the filesystem and then commit the whole project to Subversion - but ths also commits the target dir and all the compiled classes which to my mind shouldn't live in the repository. Whats the right way to use Maven2, Subversion and Eclipse. Thanks Simon Simon Taylor Service Tools Solutions (STS) Engineer Nortel Email [EMAIL PROTECTED] Office +44.1279 402291 (ESN 6 742 2291) Mobile +44.7740.533743 (ESN 748 3743) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven 1.1 : eclipse-plugin : Hide target
Hi ! I'm using eclipse-plugin under maven 1.x, and I'd like my target dirs to be excluded from package view and also from Type and resources Search, to avoid editing sources like jsp in to target. Actually, I thing output folders should be automatically hidden by eclipe, since it's not happening to me. -- Cordialement, Tanguy von Stebut 75, bd de Ménilmontant 75011 PARIS 06 60 90 21 03
Re: checkstyle plugins: maven and eclipse
this is the answer I got from checkstyle mailing list :-) I would suggest trying the mailing lists for Maven and the Eclipse plug-in. Anyway, all previous answers are very probably the best solutions at this time. Christian-Luc Wayne Fay wrote: You'll probably have better luck with this question in an Eclipse mailing list. Or possibly even the main Checkstyle user list. Wayne On 10/3/07, houzecl [EMAIL PROTECTED] wrote: Hi I am using maven-checkstyle-plugin with a specific configuration file (I made it as a resource in a jar and the plugin configuration works fine: checkstyle - or the plugin - is clever enough to get the xml file out of the dependency jar) I'd like to do the same within eclipse with the eclipse-checkstyle-plugin (so that checkstyle can be active during eclipse work, not just when building with maven) Unfortunately the checkstyle preference window does not seem to allow a reference to a jar. it needs an xml file This is not really a maven question but someone may know if my request is possible ??? thanks for any hint Christian-Luc -- View this message in context: http://www.nabble.com/checkstyle-plugins%3A-maven-and-eclipse-tf4562913s177.html#a13022606 Sent from the Maven - Users mailing list archive at Nabble.com. - 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] -- View this message in context: http://www.nabble.com/checkstyle-plugins%3A-maven-and-eclipse-tf4562913s177.html#a13058359 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: checkstyle plugins: maven and eclipse
Hi Greg. A couple of questions: The .checkstyle file can point to the xml file in the maven repo. - how does it do this? Can you please provide an example? There's only one source xml config file, but it gets deployed twice. - Are you doing that manually? Do you have it done with maven? Is so, could you provide an example of that or point me in the right direction? Thanks for your time! Jim On 10/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks for mentioning that, Dimitris. I forgot about that piece. They're not mutually exclusive though. The .checkstyle file can point to the xml file in the maven repo. houzecl, I don't think I was clear enough in my first message. I have both the xml in a jar and the xml out of a jar in the maven repo. Maven uses the one in the jar. The eclipse plugin uses the one out of the jar. There's only one source xml config file, but it gets deployed twice. It's not quite optimal, but it was close enough for our purposes. Someone else commented that you can add extra info in a parent pom for the eclipse plugin that will add the metadata for checkstyle when eclipse:eclipse goal is run. We went with more of Dimitris' approach here. The .checkstyle file is part of our archetypes to make the eclipse plugin happy. But we do use the jar file for maven invocation. -Greg Vaughn Dimitris Kapanidis [EMAIL PROTECTED] wrote on 10/04/2007 03:47:17 AM: I have another solution to this problem, which is not the maven way but works equally. I have uploaded the file on a web server and accessing it from there: Eclipse is using .checkstyle config to see the remote location of the configuration (there is an option for remote file) Maven is using the parent pom.xml to see the same remote location of the configuration. plugin artifactIdmaven-checkstyle-plugin/artifactId configuration configLocationhttp://www.someplace.net/scytl_checkstyle.xml /configLocation /configuration /plugin I'd prefer the jar solution though, is much cleaner. houzecl wrote: Yes, the last part of your post is what we'd like to do: One mavenized projet holding a set of configuration files. So that you can version, deploy, and access the jar containing the appropriate set of rules. We do not want to embed the rules inside the project(s) that will be using the rules. we want these rules to be common (as sun_checks). Therefore, once the rules'jar is available in the repository, it can be accessed by maven (no probs) BUT how can you make it available to eclipse at the same time ? (do you explode the jar in the repository when you deploy it ?, so that eclipse checkstyle can reference the xml files ...) anyway, I posted the question in checkstyle mailing list. If I get an answer, I'll post it good day, Christian-Luc Greg_Vaughn wrote: I am using maven-checkstyle-plugin with a specific configuration file (I made it as a resource in a jar and the plugin configuration works fine: checkstyle - or the plugin - is clever enough to get the xml file out of the dependency jar) I'd like to do the same within eclipse with the eclipse-checkstyle-plugin (so that checkstyle can be active during eclipse work, not just when building with maven) Unfortunately the checkstyle preference window does not seem to allow a reference to a jar. it needs an xml file This is not really a maven question but someone may know if my request is possible ??? We did this last year, but the details aren't fresh on my mind. Let me know if this general approach is not enough. We attached the checkstyle xml file to the project so it was deployed along with the jar file to our corporate maven repository. Since that repository is available via http, we configured the eclipse plugin to use that url. Now we have one mavenized project to manage the checkstyle rules. When we deploy it, the checkstyle rules become available to both maven and eclipse at the same time. -Greg Vaughn == Confidentiality Notice: The information contained in and transmitted with this communication is strictly confidential, is intended only for the use of the intended recipient, and is the property of Countrywide Financial Corporation or its affiliates and subsidiaries. If you are not the intended recipient, you are hereby notified that any use of the information contained in or transmitted with the communication or dissemination, distribution, or copying of this communication is strictly prohibited by law. If you have received this communication in error, please immediately return this communication to the sender and delete the original message
Re: checkstyle plugins: maven and eclipse
For the .checkstyle file, I just configured the eclipse prefs UI to point to a http url. It was pretty straightforward IIRC. Just poke through the checkstyle plugin UI. I think I did it in the project specific settings (project properties?). That's what creates the .checkstyle file. Otherwise it's stored in the workspace. On the other point, use build-helper-maven-plugin to deploy the xml file as well as the jar. http://mojo.codehaus.org/build-helper-maven-plugin/howto.html attach-artifact section has an example. -Greg Jim Sellers [EMAIL PROTECTED] wrote on 10/05/2007 08:15:32 AM: Hi Greg. A couple of questions: The .checkstyle file can point to the xml file in the maven repo. - how does it do this? Can you please provide an example? There's only one source xml config file, but it gets deployed twice. - Are you doing that manually? Do you have it done with maven? Is so, could you provide an example of that or point me in the right direction? Thanks for your time! Jim On 10/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks for mentioning that, Dimitris. I forgot about that piece. They're not mutually exclusive though. The .checkstyle file can point to the xml file in the maven repo. houzecl, I don't think I was clear enough in my first message. I have both the xml in a jar and the xml out of a jar in the maven repo. Maven uses the one in the jar. The eclipse plugin uses the one out of the jar. There's only one source xml config file, but it gets deployed twice. It's not quite optimal, but it was close enough for our purposes. Someone else commented that you can add extra info in a parent pom for the eclipse plugin that will add the metadata for checkstyle when eclipse:eclipse goal is run. We went with more of Dimitris' approach here. The .checkstyle file is part of our archetypes to make the eclipse plugin happy. But we do use the jar file for maven invocation. -Greg Vaughn Dimitris Kapanidis [EMAIL PROTECTED] wrote on 10/04/2007 03:47:17 AM: I have another solution to this problem, which is not the maven way but works equally. I have uploaded the file on a web server and accessing it from there: Eclipse is using .checkstyle config to see the remote location of the configuration (there is an option for remote file) Maven is using the parent pom.xml to see the same remote location of the configuration. plugin artifactIdmaven-checkstyle-plugin/artifactId configuration configLocationhttp://www.someplace.net/scytl_checkstyle.xml /configLocation /configuration /plugin I'd prefer the jar solution though, is much cleaner. houzecl wrote: Yes, the last part of your post is what we'd like to do: One mavenized projet holding a set of configuration files. So that you can version, deploy, and access the jar containing the appropriate set of rules. We do not want to embed the rules inside the project(s) that will be using the rules. we want these rules to be common (as sun_checks). Therefore, once the rules'jar is available in the repository, it can be accessed by maven (no probs) BUT how can you make it available to eclipse at the same time ? (do you explode the jar in the repository when you deploy it ?, so that eclipse checkstyle can reference the xml files ...) anyway, I posted the question in checkstyle mailing list. If I get an answer, I'll post it good day, Christian-Luc Greg_Vaughn wrote: I am using maven-checkstyle-plugin with a specific configuration file (I made it as a resource in a jar and the plugin configuration works fine: checkstyle - or the plugin - is clever enough to get the xml file out of the dependency jar) I'd like to do the same within eclipse with the eclipse-checkstyle-plugin (so that checkstyle can be active during eclipse work, not just when building with maven) Unfortunately the checkstyle preference window does not seem to allow a reference to a jar. it needs an xml file This is not really a maven question but someone may know if my request is possible ??? We did this last year, but the details aren't fresh on my mind. Let me know if this general approach is not enough. We attached the checkstyle xml file to the project so it was deployed along with the jar file to our corporate maven repository. Since that repository is available via http, we configured the eclipse plugin to use that url. Now we have one mavenized project to manage the checkstyle rules. When we deploy it, the checkstyle rules become available to both maven and eclipse at the same time. -Greg Vaughn
Re: checkstyle plugins: maven and eclipse
I have another solution to this problem, which is not the maven way but works equally. I have uploaded the file on a web server and accessing it from there: Eclipse is using .checkstyle config to see the remote location of the configuration (there is an option for remote file) Maven is using the parent pom.xml to see the same remote location of the configuration. plugin artifactIdmaven-checkstyle-plugin/artifactId configuration configLocationhttp://www.someplace.net/scytl_checkstyle.xml/configLocation /configuration /plugin I'd prefer the jar solution though, is much cleaner. houzecl wrote: Yes, the last part of your post is what we'd like to do: One mavenized projet holding a set of configuration files. So that you can version, deploy, and access the jar containing the appropriate set of rules. We do not want to embed the rules inside the project(s) that will be using the rules. we want these rules to be common (as sun_checks). Therefore, once the rules'jar is available in the repository, it can be accessed by maven (no probs) BUT how can you make it available to eclipse at the same time ? (do you explode the jar in the repository when you deploy it ?, so that eclipse checkstyle can reference the xml files ...) anyway, I posted the question in checkstyle mailing list. If I get an answer, I'll post it good day, Christian-Luc Greg_Vaughn wrote: I am using maven-checkstyle-plugin with a specific configuration file (I made it as a resource in a jar and the plugin configuration works fine: checkstyle - or the plugin - is clever enough to get the xml file out of the dependency jar) I'd like to do the same within eclipse with the eclipse-checkstyle-plugin (so that checkstyle can be active during eclipse work, not just when building with maven) Unfortunately the checkstyle preference window does not seem to allow a reference to a jar. it needs an xml file This is not really a maven question but someone may know if my request is possible ??? We did this last year, but the details aren't fresh on my mind. Let me know if this general approach is not enough. We attached the checkstyle xml file to the project so it was deployed along with the jar file to our corporate maven repository. Since that repository is available via http, we configured the eclipse plugin to use that url. Now we have one mavenized project to manage the checkstyle rules. When we deploy it, the checkstyle rules become available to both maven and eclipse at the same time. -Greg Vaughn == Confidentiality Notice: The information contained in and transmitted with this communication is strictly confidential, is intended only for the use of the intended recipient, and is the property of Countrywide Financial Corporation or its affiliates and subsidiaries. If you are not the intended recipient, you are hereby notified that any use of the information contained in or transmitted with the communication or dissemination, distribution, or copying of this communication is strictly prohibited by law. If you have received this communication in error, please immediately return this communication to the sender and delete the original message and any copy of it in your possession. == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: checkstyle plugins: maven and eclipse
In my organization we have created a super pom that all projects inherit from. Within that super pom, we have configured the eclipse plugin to generate a standard .checkstyle file that includes the same rules that are applied by the maven build. This works well but you do have to keep the two in sync. See : http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html#a dditionalConfig -Original Message- From: houzecl [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 4:02 AM To: users@maven.apache.org Subject: Re: checkstyle plugins: maven and eclipse Yes, the last part of your post is what we'd like to do: One mavenized projet holding a set of configuration files. So that you can version, deploy, and access the jar containing the appropriate set of rules. We do not want to embed the rules inside the project(s) that will be using the rules. we want these rules to be common (as sun_checks). Therefore, once the rules'jar is available in the repository, it can be accessed by maven (no probs) BUT how can you make it available to eclipse at the same time ? (do you explode the jar in the repository when you deploy it ?, so that eclipse checkstyle can reference the xml files ...) anyway, I posted the question in checkstyle mailing list. If I get an answer, I'll post it good day, Christian-Luc Greg_Vaughn wrote: I am using maven-checkstyle-plugin with a specific configuration file (I made it as a resource in a jar and the plugin configuration works fine: checkstyle - or the plugin - is clever enough to get the xml file out of the dependency jar) I'd like to do the same within eclipse with the eclipse-checkstyle-plugin (so that checkstyle can be active during eclipse work, not just when building with maven) Unfortunately the checkstyle preference window does not seem to allow a reference to a jar. it needs an xml file This is not really a maven question but someone may know if my request is possible ??? We did this last year, but the details aren't fresh on my mind. Let me know if this general approach is not enough. We attached the checkstyle xml file to the project so it was deployed along with the jar file to our corporate maven repository. Since that repository is available via http, we configured the eclipse plugin to use that url. Now we have one mavenized project to manage the checkstyle rules. When we deploy it, the checkstyle rules become available to both maven and eclipse at the same time. -Greg Vaughn == Confidentiality Notice: The information contained in and transmitted with this communication is strictly confidential, is intended only for the use of the intended recipient, and is the property of Countrywide Financial Corporation or its affiliates and subsidiaries. If you are not the intended recipient, you are hereby notified that any use of the information contained in or transmitted with the communication or dissemination, distribution, or copying of this communication is strictly prohibited by law. If you have received this communication in error, please immediately return this communication to the sender and delete the original message and any copy of it in your possession. == -- View this message in context: http://www.nabble.com/checkstyle-plugins%3A-maven-and-eclipse-tf4562913s 177.html#a13034381 Sent from the Maven - Users mailing list archive at Nabble.com. - 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: checkstyle plugins: maven and eclipse
Thanks for mentioning that, Dimitris. I forgot about that piece. They're not mutually exclusive though. The .checkstyle file can point to the xml file in the maven repo. houzecl, I don't think I was clear enough in my first message. I have both the xml in a jar and the xml out of a jar in the maven repo. Maven uses the one in the jar. The eclipse plugin uses the one out of the jar. There's only one source xml config file, but it gets deployed twice. It's not quite optimal, but it was close enough for our purposes. Someone else commented that you can add extra info in a parent pom for the eclipse plugin that will add the metadata for checkstyle when eclipse:eclipse goal is run. We went with more of Dimitris' approach here. The .checkstyle file is part of our archetypes to make the eclipse plugin happy. But we do use the jar file for maven invocation. -Greg Vaughn Dimitris Kapanidis [EMAIL PROTECTED] wrote on 10/04/2007 03:47:17 AM: I have another solution to this problem, which is not the maven way but works equally. I have uploaded the file on a web server and accessing it from there: Eclipse is using .checkstyle config to see the remote location of the configuration (there is an option for remote file) Maven is using the parent pom.xml to see the same remote location of the configuration. plugin artifactIdmaven-checkstyle-plugin/artifactId configuration configLocationhttp://www.someplace.net/scytl_checkstyle.xml/configLocation /configuration /plugin I'd prefer the jar solution though, is much cleaner. houzecl wrote: Yes, the last part of your post is what we'd like to do: One mavenized projet holding a set of configuration files. So that you can version, deploy, and access the jar containing the appropriate set of rules. We do not want to embed the rules inside the project(s) that will be using the rules. we want these rules to be common (as sun_checks). Therefore, once the rules'jar is available in the repository, it can be accessed by maven (no probs) BUT how can you make it available to eclipse at the same time ? (do you explode the jar in the repository when you deploy it ?, so that eclipse checkstyle can reference the xml files ...) anyway, I posted the question in checkstyle mailing list. If I get an answer, I'll post it good day, Christian-Luc Greg_Vaughn wrote: I am using maven-checkstyle-plugin with a specific configuration file (I made it as a resource in a jar and the plugin configuration works fine: checkstyle - or the plugin - is clever enough to get the xml file out of the dependency jar) I'd like to do the same within eclipse with the eclipse-checkstyle-plugin (so that checkstyle can be active during eclipse work, not just when building with maven) Unfortunately the checkstyle preference window does not seem to allow a reference to a jar. it needs an xml file This is not really a maven question but someone may know if my request is possible ??? We did this last year, but the details aren't fresh on my mind. Let me know if this general approach is not enough. We attached the checkstyle xml file to the project so it was deployed along with the jar file to our corporate maven repository. Since that repository is available via http, we configured the eclipse plugin to use that url. Now we have one mavenized project to manage the checkstyle rules. When we deploy it, the checkstyle rules become available to both maven and eclipse at the same time. -Greg Vaughn == Confidentiality Notice: The information contained in and transmitted with this communication is strictly confidential, is intended only for the use of the intended recipient, and is the property of Countrywide Financial Corporation or its affiliates and subsidiaries. If you are not the intended recipient, you are hereby notified that any use of the information contained in or transmitted with the communication or dissemination, distribution, or copying of this communication is strictly prohibited by law. If you have received this communication in error, please immediately return this communication to the sender and delete the original message and any copy of it in your possession. == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] == Confidentiality Notice: The information contained in and transmitted with this communication is strictly confidential, is intended only for the use of the intended
checkstyle plugins: maven and eclipse
Hi I am using maven-checkstyle-plugin with a specific configuration file (I made it as a resource in a jar and the plugin configuration works fine: checkstyle - or the plugin - is clever enough to get the xml file out of the dependency jar) I'd like to do the same within eclipse with the eclipse-checkstyle-plugin (so that checkstyle can be active during eclipse work, not just when building with maven) Unfortunately the checkstyle preference window does not seem to allow a reference to a jar. it needs an xml file This is not really a maven question but someone may know if my request is possible ??? thanks for any hint Christian-Luc -- View this message in context: http://www.nabble.com/checkstyle-plugins%3A-maven-and-eclipse-tf4562913s177.html#a13022606 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: checkstyle plugins: maven and eclipse
You'll probably have better luck with this question in an Eclipse mailing list. Or possibly even the main Checkstyle user list. Wayne On 10/3/07, houzecl [EMAIL PROTECTED] wrote: Hi I am using maven-checkstyle-plugin with a specific configuration file (I made it as a resource in a jar and the plugin configuration works fine: checkstyle - or the plugin - is clever enough to get the xml file out of the dependency jar) I'd like to do the same within eclipse with the eclipse-checkstyle-plugin (so that checkstyle can be active during eclipse work, not just when building with maven) Unfortunately the checkstyle preference window does not seem to allow a reference to a jar. it needs an xml file This is not really a maven question but someone may know if my request is possible ??? thanks for any hint Christian-Luc -- View this message in context: http://www.nabble.com/checkstyle-plugins%3A-maven-and-eclipse-tf4562913s177.html#a13022606 Sent from the Maven - Users mailing list archive at Nabble.com. - 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]