building, installing, using maven COMPLETELY OFFLINE (setting up local mini repository)

2010-02-18 Thread Edward Peschko
All, I need to support a project where I cannot access the internet, even by proxy. And I'd like to use some tools that require maven support for building (apache commons, for example). I see offline mode, and gave it a try, but it STILL seems to still want to connect to the internet when both

Ant javac task on Maven Source directory

2010-02-18 Thread Tony2010
Hi, I am facing some issue with Running Ant javac task on Maven POM file. (Maven 2.1 and Ant 1.7.1) I am using Maven Ant Task. My ant build.xml content. artifact:pom id=maven.project file=pom.xml / javac srcdir=${maven.project.build.sourceDirectory} / it gives me error saying that Maven

What subversion (version) to use?

2010-02-18 Thread sehgal.prithvi
Dear All, I am trying a very small example in maven till the cycle of continous integration. I will use continum as my CI server just for the start. I am using book Better builds with Maven and i have the following queries. 1- Which subversion version i need to use? Do i need to download

Re: building, installing, using maven COMPLETELY OFFLINE (setting up local mini repository)

2010-02-18 Thread Brett Porter
I run a repository manager (Archiva) on my local machine, allowing me to clean my local repository at any time without concern, and getting other advantages like less configuration, whitelist/blacklist, search, etc. What type of errors are you getting in offline mode? Is it missing artifacts

RE: What subversion (version) to use?

2010-02-18 Thread Ilya Kazakevich
You do not need SVN to work with maven although version control is very usefull tool and it should exist in any project. Tortoise is just a shell (explorer) plugin which helps communicate with svn server. You can use command line client as well (and its much butter IMHO). Here is a good book

Maven rar plugin: bizarre behavior?

2010-02-18 Thread Laird Nelson
The documentation for the maven-rar-plugin says: By default, the generated JAR file is included in the RAR file. I see no such .jar file produced, let alone included into the final artifact. I set my project's packaging to rar. That's it. The output is a .rar file that contains my project's

Re: Maven rar plugin: bizarre behavior?

2010-02-18 Thread Stephen Connolly
you really should have the rar classes as a separate module, much like the recommended best practice for war files (not that many follow that best practice as it makes quick development with jetty:run a pain) On 18 February 2010 14:04, Laird Nelson ljnel...@gmail.com wrote: The documentation

API to find effective-direct dependencies

2010-02-18 Thread lukewpatterson
-- It was suggested [1] that I ask this question in a new thread, it might have gotten lost in the noise -- I'm looking for existing API that will give me a MavenProject's effective-direct dependencies, taking into account grouped dependencies [2]. By effective-direct dependencies, I mean: all

Read all repos exclude someone privilege

2010-02-18 Thread Aleksey Didik
Hello all, my question is: Can I add privilege to CRUD, view, upload and download artifacts from any repository except someone? Thanks for you response, Aleksey Didik. - To unsubscribe, e-mail:

Re: Read all repos exclude someone privilege

2010-02-18 Thread Aleksey Didik
Sorry for this message, it's for nexus group. Aleksey. 18.02.2010 18:25, Aleksey Didik пишет: Hello all, my question is: Can I add privilege to CRUD, view, upload and download artifacts from any repository except someone? Thanks for you response, Aleksey Didik.

Re: building, installing, using maven COMPLETELY OFFLINE (setting up local mini repository)

2010-02-18 Thread Ron Wheeler
Brett Porter wrote: I run a repository manager (Archiva) on my local machine, allowing me to clean my local repository at any time without concern, and getting other advantages like less configuration, whitelist/blacklist, search, etc. What type of errors are you getting in offline mode? Is

Re: API to find effective-direct dependencies

2010-02-18 Thread Ron Wheeler
How is this different from what Eclipse shows? Can you use their code from the Pom editor? Ron lukewpatterson wrote: -- It was suggested [1] that I ask this question in a new thread, it might have gotten lost in the noise -- I'm looking for existing API that will give me a MavenProject's

Deployment Properties file

2010-02-18 Thread Jim Collings
OK, so I've a project that uses two different containers. Sun Webserver 7 and Weblogic. I'm trying to set up an automated deployment that is easily configurable for the individual developers, cause they all have their stuff in different places. What I want is a properties file that the dev can

Re: Deployment Properties file

2010-02-18 Thread Wayne Fay
all have their stuff in different places.  What I want is a properties file that the dev can stash in his home directory which will be read by Maven to establish installation parameters and JVM options for each Maybe use settings.xml in user home dir? Otherwise this calls for a profile. Wayne

Re: Deployment Properties file

2010-02-18 Thread Manfred Moser
On Thursday February 18 2010, Jim Collings wrote: OK, so I've a project that uses two different containers. Sun Webserver 7 and Weblogic. I'm trying to set up an automated deployment that is easily configurable for the individual developers, cause they all have their stuff in different places.

Re: Deployment Properties file

2010-02-18 Thread Jim Collings
all have their stuff in different places.  What I want is a properties file that the dev can stash in his home directory which will be read by Maven to establish installation parameters and JVM options for each Maybe use settings.xml in user home dir? Otherwise this calls for a profile.

Re: Maven rar plugin: bizarre behavior?

2010-02-18 Thread Laird Nelson
On Thu, Feb 18, 2010 at 9:09 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: you really should have the rar classes as a separate module, much like the recommended best practice for war files (not that many follow that best practice as it makes quick development with jetty:run a

RE: Deployment Properties file

2010-02-18 Thread EJ Ciramella
Profiles are used to just swap between configurations, run plugins that normally don't run, etc. Stuff you'd like to be able to switch on and off. If your goal is to just load properties, that seems like a good approach. Now if you had a properties file for each server type, then you'd put

Re: Deployment Properties file

2010-02-18 Thread Jim Collings
Profiles are used to just swap between configurations, run plugins that normally don't run, etc. Stuff you'd like to be able to switch on and off. If your goal is to just load properties, that seems like a good approach. Now if you had a properties file for each server type, then you'd

Re: Deployment Properties file

2010-02-18 Thread Wayne Fay
Profiles? Aren't those used for different platforms?  I think you mistake my meaning. We have a project that has two subcomponents, one of which runs on a full J2EE container, Weblogic and the other which runs on Sun Webserver 7. Any time you are thinking I need to do X for some builds of

Deployment to Sun Weserver7 - Was: Deployment Properties file

2010-02-18 Thread Jim Collings
For those just starting this, I'm automating a deployment of a two-part project that has one part on Sun Webserver 7 and another on Weblogic. Each dev should be able to have his or her own special configuration so in the previous thread I figured out how to load stuff from a centralized properties

Re: Deployment Properties file

2010-02-18 Thread Jim Collings
On Thu, Feb 18, 2010 at 2:56 PM, Wayne Fay wayne...@gmail.com wrote: Profiles? Aren't those used for different platforms?  I think you mistake my meaning. We have a project that has two subcomponents, one of which runs on a full J2EE container, Weblogic and the other which runs on Sun

Re: Deployment to Sun Weserver7 - Was: Deployment Properties file

2010-02-18 Thread Anders Hammar
By writing a container extension for Cargo? http://cargo.codehaus.org/Adding+a+container /Anders On Thu, Feb 18, 2010 at 20:57, Jim Collings jlistn...@gmail.com wrote: For those just starting this, I'm automating a deployment of a two-part project that has one part on Sun Webserver 7 and

deploy large file to nexus requires huge memory

2010-02-18 Thread Dan Tran
Hi I have to set my MAVEN_OPTS=-Xmx1024m in order to deploy 500M ISO file via http ( ie nexus ) Is it normal? I am using deploy-plugin 2.5 Thanks -Dan - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For

Re: Deployment to Sun Weserver7 - Was: Deployment Properties file

2010-02-18 Thread Wayne Fay
Is there a plugin out there that I've not yet found which will deploy to Webserver 7 in a more friendly/agnostic fashion or will I have to use a bunch of exec commands to utilize the command line interface for Webserver 7? Perhaps ask Sun/Oracle or the proper Sun Webserver Users list for a

Problem for access local .m2 installed snapshot dependency

2010-02-18 Thread pawan gandhi
Hi Everyone, I have two m2 projects. Both are snapshot versions. When i do mvn clean install on first project (say A), it is installed into .m2 repository with A-1.0-SNAPSHOT.jar file. Now i specify A as dependency in project B's POM. When i try mvn clean install for B, it says.

Re: Deployment to Sun Weserver7 - Was: Deployment Properties file

2010-02-18 Thread Jim C.
On 2/18/2010 3:20 PM, Anders Hammar wrote: By writing a container extension for Cargo? http://cargo.codehaus.org/Adding+a+container /Anders I was looking at that. Do you know if it is only for full J2EE containers? From the looks of what I saw, the answer seemed to be Yes. Might bear

Weblogic plugin early exit

2010-02-18 Thread Jon Strayer
I have a not very interesting pom that builds an ear from a war. I recently added two tasks. The first task (antrun) copies the ear to a known location. The second task deploys the ear to a weblogic server using the Codehaus weblogic plugin. I've attached the antrun task to package and the

Re: Problem for access local .m2 installed snapshot dependency

2010-02-18 Thread Wayne Fay
A-1.0-SNAPSHOT.jar file. com.dowjones.omc.provisioning:ProvisioningCommons-components:jar:1.0-7-SNAPSHOT 1.0-SNAPSHOT is not equivalent to 1.0.7-SNAPSHOT, right? Wayne - To unsubscribe, e-mail:

Re: Problem for access local .m2 installed snapshot dependency

2010-02-18 Thread pawan gandhi
Hi Wayne, More more clarity on this, com.dowjones.omc.provisioning:ProvisioningCommons-components:jar:1.0-7-SNAPSHOT is my A artifact. I have it in my .m2 but my second project is not able to get it. But when i do an explicit install:install-file on

Re: Problem for access local .m2 installed snapshot dependency

2010-02-18 Thread Wayne Fay
No, I don't get it. Let's make it super simple... What commands (exactly) are you typing? I don't need to see the output. What does the dependency on A in B's pom.xml file look like? Wayne - To unsubscribe, e-mail:

Re: deploy large file to nexus requires huge memory

2010-02-18 Thread Brett Porter
Yes, I've experienced the same. I'd need to check again, but my memory says this was being done in the JDK so couldn't be worked around. does using 'dav:http://' (effectively using httpclient instead) help? - Brett On 19/02/2010, at 7:31 AM, Dan Tran wrote: Hi I have to set my

Re: Problem for access local .m2 installed snapshot dependency

2010-02-18 Thread pawan gandhi
The command that i run 1.mvn clean install for installing A and mvn clean compile for B. 2. B's pom has A dependency declared like this dependency groupIdcom/.groupId artifactsIdA/artifactId version1.0-0-SNAPSHOT/version /dependency Wayne Fay wrote: No, I don't get it. Let's

Re: Problem for access local .m2 installed snapshot dependency

2010-02-18 Thread Wayne Fay
   version1.0-0-SNAPSHOT/version What's the version element in A's pom look like? I'm guess it does not match the version1.0-0-SNAPSHOT/version that B is looking for... Wayne - To unsubscribe, e-mail:

Re: Problem for access local .m2 installed snapshot dependency

2010-02-18 Thread pawan gandhi
'A' has its pom version1.0-0-SNAPSHOT/version Wayne Fay wrote:    version1.0-0-SNAPSHOT/version What's the version element in A's pom look like? I'm guess it does not match the version1.0-0-SNAPSHOT/version that B is looking for... Wayne

Re: Problem for access local .m2 installed snapshot dependency

2010-02-18 Thread Ryan Connolly
I can't see how it could be possible that the dependency declares a version of of 1.0.-0 when the output of your build is reporting a missing version of 1.0-7. I would double check the versions in all poms and do a clean install on both projects again. On Feb 18, 2010 8:17 PM, pawan gandhi

learning about dependencies of a plugin

2010-02-18 Thread Kai Hackemesser
Hi there, I'm writing my first plugin. My plugin will have a dependency to another library/artifact that needs to be added to the classpath when the plugin executes its work. How can I find the artifact that the plugin is depending to, when the plugin is running? The maven-dependency-plugin

not able to get maven war plugin to filter out unwanted resources from my .war file.

2010-02-18 Thread buildlackey
Hi, For some reason this simple little task is making my head spin... I am trying to filter out some files from my war using webResources/resource/excludesBut everything i try to exclude ends up being put into the .war. There does seem to be a bug related to the issue I'm having

Re: learning about dependencies of a plugin

2010-02-18 Thread Brett Porter
The dependency of the plugin will be in the classloader of the plugin already - you don't need to do anything else. You can use mvn -X ... to see the full construction of your plugin for more information. Or are you trying to dynamically use a dependency of the project the plugin is operating

Re: Deployment to Sun Weserver7 - Was: Deployment Properties file

2010-02-18 Thread Anders Hammar
Cargo supports Jetty and Tomcat, so it's not only for full Java EE containers no. /Anders On Thu, Feb 18, 2010 at 22:32, Jim C. jlistn...@gmail.com wrote: On 2/18/2010 3:20 PM, Anders Hammar wrote: By writing a container extension for Cargo? http://cargo.codehaus.org/Adding+a+container

Re: not able to get maven war plugin to filter out unwanted resources from my .war file.

2010-02-18 Thread Wayne Fay
If anyone sees a problem with how i invoked the plugin, or knows of a work-around, please do let me know !  i'd be very grateful. Well... an obvious workaround would be to simply move the files to a directory not being packaged by Maven, or just delete them. I am guessing this is not