Re: mvn eclipse plugin for multimodule proyect

2011-04-20 Thread Barrie Treloar
On Wed, Apr 20, 2011 at 10:24 PM, Fernando Wermus wrote: [del] > I am trying to run mvn eclipse:eclipse in parent pom.xml without any > success. > I am not sure if pom.xml for constructing developer environment run mvn > eclipse:eclipse in pom.xml parent or in itself. I am almost sure that is > do

Re: java file path in exec:java

2011-04-20 Thread Zilvinas Vilutis
yes, I can do that, however "${project.build.outputDirectory}" still generates "C:\folder1\folder2\..." & etc :) Žilvinas Vilutis Mobile:   (+370) 652 38353 E-mail:   cika...@gmail.com On Wed, Apr 20, 2011 at 2:57 PM, Asmann, Roland wrote: > What I meant was: don't use ${file.separator} and w

Re: Only partial filtering of .bat with assembly

2011-04-20 Thread Wayne Fay
> i try to have some .bat files filtered by assembly plugin. However, for some > reason, any batch line that starts with a @ is ignored by filterer :/ > This is a big problem considering 90% of the script lines starts with a @. Is > there some way to have filter don't ignore those lines? Pretty su

Re: java file path in exec:java

2011-04-20 Thread Asmann, Roland
What I meant was: don't use ${file.separator} and write '/' in your POM. Or do you have a reason you need the variable? On 20-04-11 23:51, Zilvinas Vilutis wrote: > Exactly, but I need *maven* to generate those "/" :) > > I need the ${project.build.outputDirectory}${file.separator}orm.properties

Re: java file path in exec:java

2011-04-20 Thread Zilvinas Vilutis
Exactly, but I need *maven* to generate those "/" :) I need the ${project.build.outputDirectory}${file.separator}orm.properties to contain "/" in the output, but it generates the path with "\" slashes, e.g. C:\\target\classes\orm.properties Regards Žilvinas Vilutis Mobile:   (+370) 652 38353 E-

Only partial filtering of .bat with assembly

2011-04-20 Thread David Delbecq
Hello, i try to have some .bat files filtered by assembly plugin. However, for some reason, any batch line that starts with a @ is ignored by filterer :/ This is a big problem considering 90% of the script lines starts with a @. Is there some way to have filter don't ignore those lines? my

Re: java file path in exec:java

2011-04-20 Thread Asmann, Roland
Just use the character '/', it works on Windows! On 20-04-11 21:45, Zilvinas Vilutis wrote: > Hi maven users! > > I'm trying to execute a java command and pass a path to a file as an argument: > > >org.codehaus.mojo >exec-maven-plugin > > java > ${project.build.outputDirect

java file path in exec:java

2011-04-20 Thread Zilvinas Vilutis
Hi maven users! I'm trying to execute a java command and pass a path to a file as an argument: org.codehaus.mojo exec-maven-plugin java ${project.build.outputDirectory} runtime -c ${project.build.outputDirectory}${file.separator}orm.properties com.company.d

2.8.2 release?

2011-04-20 Thread James Neal
Does anyone have any idea when 2.8.2 will come out?

Re: mvn test and classpath: do I need to execute install?

2011-04-20 Thread Wayne Fay
> if module2 depends on module1 and I execute "mvn clean test" at the top > "shared" parent, the classpath for module2 would look at > module1/target/classes vs ...module1.jar.  Correct? Yes, and you can confirm this via "mvn -X clean test" which will show the actual classpaths that are being used

Re: Packaged jar cannot access class of a dependency??

2011-04-20 Thread Chris24300
I added a tag and it included the classpath in the manifest, I thought I was getting somewhere but still get the same error.. I ended up using a new eclipse project and copying my stuff over and exporting as exec jar and it works... -- View this message in context: http://maven.40175.n5.nabble

Re: mvn eclipse plugin for multimodule proyect

2011-04-20 Thread Asmann, Roland
Hello Fernando, You can call me 'Roland', that is my first name. ;-) If I understand correctly, you have a POM-file on your computer and run Maven on it. This will download/checkout/copy/... everything to your computer. Now, I presume that the POM you are using is *not* the one you call 'pare

Re: mvn test and classpath: do I need to execute install?

2011-04-20 Thread leojhartiv-2
So just so I understand completely: if module2 depends on module1 and I execute "mvn clean test" at the top "shared" parent, the classpath for module2 would look at module1/target/classes vs ...module1.jar. Correct? -- View this message in context: http://maven.40175.n5.nabble.com/mvn-test-and-

Re: mvn test and classpath: do I need to execute install?

2011-04-20 Thread Wayne Fay
> So I'm wondering: do I need to actually use the install for modules to "know > about" changes to their dependencies?  In other words, could I just do: > > -Navigate to top > -Execute "mvn clean test" > > and module2 would be smart enough to use the target folder of module1 in its > classpath to e

Re: Packaged jar cannot access class of a dependency??

2011-04-20 Thread Chris24300
Thanks for the link, I'll look into it. I want to create a library that will handle everything for me so I can pass it an Object to store, I need to test the client first to make sure it can store.. -- View this message in context: http://maven.40175.n5.nabble.com/Packaged-jar-cannot-access-clas

Re: Release plugin: release project from within subdirectory

2011-04-20 Thread werdex
Hi, The following did trick for me: deploy -f Sources/pom.xml -- View this message in context: http://maven-users.828.n2.nabble.com/Release-plugin-release-project-from-within-subdirectory-tp5057222p6290891.html Sent from the maven users mailing list

Re: Packaged jar cannot access class of a dependency??

2011-04-20 Thread Timothy Mcginnis
Are you expecting this to run as part of the default packaging phase? If so, I believe you are missing an section for the assembly plugin that binds the 'single' goal to the packaging phase. [...] [...] maven-assembly-plugin 2.2.1

mvn test and classpath: do I need to execute install?

2011-04-20 Thread leojhartiv-2
I've been using Maven for some time, so I'm a bit embarrassed to ask this question. That said... If I have a multimodule project: top -module1 -module2 and the modules have the following dependencies: module1 depends on top module2 depends on top module2 depends on module1 When I want

Re: Deploy artifact programmatically

2011-04-20 Thread kgiannou
its now ok I found the problems in my code.. One last question...Except from uploading the jar file, shouldn't I upload the corresponding .pom file to the same directory? Thank you very much for your effort! -- View this message in context: http://maven.40175.n5.nabble.com/Deploy-artifact-progr

Re: Deploy artifact programmatically

2011-04-20 Thread kgiannou
I still can not upload using the following code...any help would be valuable String webPage = "http://myServer.com";; String name = "admin"; String password = "admin";

RE: Maven and Subversion.

2011-04-20 Thread tpatch
I am still working through the discussion - just wanted to say thanks for the feedback. Todd - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

Re: Advantages of using a Repository Manager

2011-04-20 Thread Sony Antony
Thank you for the link. I had looked at this section from teh book around a year back. I couldnt find any clear advantage since we have a pre approved and pre decided list of plugins and dependencies. Currently we have a master repository which is populated only when project decides to add a new

Re: Deploy artifact programmatically

2011-04-20 Thread Jochen Wiedmann
Yes, as I said, that's what URLConnection.getOutputStream() is for. And don't forget to invoke URLconnection.setDoOutput(true) in advance. On Wed, Apr 20, 2011 at 2:44 PM, kgiannou wrote: > ok done with the authentication.. > > Shouldn't I somehow put the contents of the jar file to be uploaded t

Re: mvn eclipse plugin for multimodule proyect

2011-04-20 Thread Fernando Wermus
Asmann, I will explain everything We have a pom.xml for constructing all the developer environment separate from the pom's projects. We have, 1. use scm to checkout all proyects and bootstrap it. 2. copy eclipse to developer machine. 3. copy app server to developer machine 4. run eclipse:ecl

Re: Maven and Subversion.

2011-04-20 Thread Marc Rohlfs
On 20/04/11 14:41, Marc Rohlfs wrote: On 20/04/11 13:55, Wendy Smoak wrote: On Wed, Apr 20, 2011 at 6:59 AM, Marc Rohlfs wrote: I was just thinking a bit about this. You're facing different problems You won't be able all at once: 1. You could create the releases of the sub modules independentl

Re: Deploy artifact programmatically

2011-04-20 Thread kgiannou
ok done with the authentication.. Shouldn't I somehow put the contents of the jar file to be uploaded to my request? -- View this message in context: http://maven.40175.n5.nabble.com/Deploy-artifact-programmatically-tp4315124p4315695.html Sent from the Maven - Users mailing list archive at Nabbl

Re: Maven and Subversion.

2011-04-20 Thread Marc Rohlfs
On 20/04/11 13:55, Wendy Smoak wrote: On Wed, Apr 20, 2011 at 6:59 AM, Marc Rohlfs wrote: I was just thinking a bit about this. You're facing different problems You won't be able all at once: 1. You could create the releases of the sub modules independently (first You'd have to create a rele

Re: Advantages of using a Repository Manager

2011-04-20 Thread Tamás Cservenák
See here for reasons: http://www.sonatype.com/books/nexus-book/reference/sect-repoman-reasons.html Thanks, ~t~ On Wed, Apr 20, 2011 at 2:23 PM, Sony Antony wrote: > Im trying to evaluate whether we should use a repository manager. > > Will somebody post at least a few of the advantages here >

Re: Packaged jar cannot access class of a dependency??

2011-04-20 Thread Chris24300
What confuses me is that it doesn't complain about the other two classes, ObjectContainer and ObjectSet? -- View this message in context: http://maven.40175.n5.nabble.com/Packaged-jar-cannot-access-class-of-a-dependency-tp4315587p4315664.html Sent from the Maven - Users mailing list archive a

Re: Packaged jar cannot access class of a dependency??

2011-04-20 Thread Chris24300
Thanks for replying with the link, I've already included the main class in my pom Majority of my pom Db4oServer maven-compiler-plugin

Advantages of using a Repository Manager

2011-04-20 Thread Sony Antony
Im trying to evaluate whether we should use a repository manager. Will somebody post at least a few of the advantages here Our project uses a list of pre approved ( and pre downloaded ) dependencies and plugins. --sony

Re: Packaged jar cannot access class of a dependency??

2011-04-20 Thread Thomas Sundberg
On Wed, Apr 20, 2011 at 14:12, Chris24300 wrote: > I thought maven would include the db4o jar in my project jar? > > If I specify -classpath and point to db4o.jar then java can't find my test > class. > > bash-3.2$ java -classpath ./db4o-8.0.184.15484-all-java5.jar -jar > Db4oServer.jar > > Does n

Re: Maven and Subversion.

2011-04-20 Thread Marc Rohlfs
Didn't notice that parameter before. Sounds interesting - if it would really create a separate release tag for every module. But it wouldn't solve the problem of releasing just one (or some) of the modules in the reactor. On 20/04/11 14:01, Stephen Connolly wrote: I've never set up a test pr

Re: Packaged jar cannot access class of a dependency??

2011-04-20 Thread Chris24300
I thought maven would include the db4o jar in my project jar? If I specify -classpath and point to db4o.jar then java can't find my test class. bash-3.2$ java -classpath ./db4o-8.0.184.15484-all-java5.jar -jar Db4oServer.jar Does not even run.. -- View this message in context: http://maven

Re: Maven and Subversion.

2011-04-20 Thread Stephen Connolly
I've never set up a test project to see exactly what it does, but I thought http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#commitByProject might do something nice... or not! On 20 April 2011 11:59, Marc Rohlfs wrote: > I was just thinking a bit about this. You're facing d

Re: Packaged jar cannot access class of a dependency??

2011-04-20 Thread Anders Hammar
But you're not including the jb4o jar in the classpath when you're executing? As you're executing your Java program the standard Java way Maven is not involved. /Anders On Wed, Apr 20, 2011 at 13:54, Chris24300 wrote: > Hi all, > > I'm trying to test out db4o (new to db in general) and so I cre

Re: Maven and Subversion.

2011-04-20 Thread Wendy Smoak
On Wed, Apr 20, 2011 at 6:59 AM, Marc Rohlfs wrote: > I was just thinking a bit about this. You're facing different problems You > won't be able all at once: > > 1. You could create the releases of the sub modules independently (first > You'd have to create a release of the parent, using 'mvn rele

Packaged jar cannot access class of a dependency??

2011-04-20 Thread Chris24300
Hi all, I'm trying to test out db4o (new to db in general) and so I created a new project to test dumping some random data in. I use three classes import com.db4o.ObjectContainer; import com.db4o.ObjectSet; import com.db4o.cs.Db4oClientServer; In my pom.xml I include the db4o repository and the

Re: Deploy artifact programmatically

2011-04-20 Thread Jochen Wiedmann
Create an instance of java.net.URL, add user name and password as described in [1], call setMethod("PUT") on the URLconnection, set doOutput to true and write the file to the output stream. 1) http://www.avajava.com/tutorials/lessons/how-do-i-connect-to-a-url-using-basic-authentication.html On

Re: Deploy artifact programmatically

2011-04-20 Thread kgiannou
Hi again :) I have seen this post http://maven.40175.n5.nabble.com/Re-Looking-for-help-on-interacting-with-Nexus-programmatically-upload-files-tt132165.html but I dont know how to add authentication headers and how to add the jar file to be uploaded to the request. Do you have any concrete examp

Re: Maven and Subversion.

2011-04-20 Thread Marc Rohlfs
I was just thinking a bit about this. You're facing different problems You won't be able all at once: 1. You could create the releases of the sub modules independently (first You'd have to create a release of the parent, using 'mvn release:prepare release:perform -N'). Problem: the dependencie

Re: Maven - Aether - Repositories from settings.xml

2011-04-20 Thread Benjamin Bentmann
Karl Heinz Marbaise wrote: Isn't there a better solution to the information about the repositories from the current settings.xml file or from the system configuration settings.xml file. http://maven.apache.org/ref/3.0.3/maven-settings-builder/apidocs/org/apache/maven/settings/building/Settings

Betr.: Re: Hudson: rebuild option

2011-04-20 Thread Hugo de Oude
Oh sorry, Was this the wrong list? Thanks anyway for your answer. Very good!!! Which list to use for Hudson questions on the new nabble site? Hugo >>> "Olivier Lamy [via Maven]" >>> 10:37 20-04-2011 >>> Hello, Wrong list ? anyway : have a look here https://wiki.jenkins-ci.org/display/JENK

Re: Hudson: rebuild option

2011-04-20 Thread Olivier Lamy
Hello, Wrong list ? anyway : have a look here https://wiki.jenkins-ci.org/display/JENKINS/Rebuild+Plugin 2011/4/20 Hugo de Oude : > It would be nice to have a rebuild option in Hudson. > Because it is possible to add parameters to a build, it would be very nice > if there was a rebuild button. Th

Hudson: rebuild option

2011-04-20 Thread Hugo de Oude
It would be nice to have a rebuild option in Hudson. Because it is possible to add parameters to a build, it would be very nice if there was a rebuild button. That button could pick up all the latest provided paramters for that same project. Now I do have to figure out first which parameters are u

profile activation

2011-04-20 Thread raymond
Hello, I like to activate profiles from within a profile. (Or is there an other way to achieve my goal ?) For example I have multiple profiles which are activated in different circumstances. Sometimes none of them are activated and sometimes more are activated: - integration-test-tomcat-profile -

Maven - Aether - Repositories from settings.xml

2011-04-20 Thread Karl Heinz Marbaise
Hi, i'm using Aether to get the available versions of an artifact so far so good...but currently i have line in the code which i would like to solve in a different way instead of hard coding it: Artifact artifact = new DefaultArtifact( "com.soebes.subversion.sapm", "sapm", null, "[0,)");

Re: Deploy artifact programmatically

2011-04-20 Thread kgiannou
Thank you both for your quick and informative answers! I will try it and let you know -- View this message in context: http://maven.40175.n5.nabble.com/Deploy-artifact-programmatically-tp4315124p4315178.html Sent from the Maven - Users mailing list archive at Nabble.com. ---

Re: Deploy artifact programmatically

2011-04-20 Thread Anders Hammar
I believe you should have a look at Aether, which is the repository API. Or, depending on the repo manager you're using you could use some proprietary interface. If you're using Nexus, it has a REST API. /Anders On Wed, Apr 20, 2011 at 09:43, kgiannou wrote: > As a separate step, but no with c

Re: Deploy artifact programmatically

2011-04-20 Thread Jochen Wiedmann
Question is, whether you really want to use Maven in that case. Using Maven is the proper thing to do, if you want to be able to deploy to multiple targets by just specifying a different URL, as in scp://... or https:// If you have a fixed target (like a Nexus repository), it is much more lik

Re: Deploy artifact programmatically

2011-04-20 Thread kgiannou
As a separate step, but no with command line but with Java code if possible :) -- View this message in context: http://maven.40175.n5.nabble.com/Deploy-artifact-programmatically-tp4315124p4315136.html Sent from the Maven - Users mailing list archive at Nabble.com. ---

Re: Deploy artifact programmatically

2011-04-20 Thread Anders Hammar
As part of the build process or as a separate step? As a separate step you could use deploy:deploy-file. /Anders On Wed, Apr 20, 2011 at 09:29, kgiannou wrote: > Hi, > > I want to upload an artifact with Java code but without having the > distributionmanagement tag in the settings.xml or in pom

Deploy artifact programmatically

2011-04-20 Thread kgiannou
Hi, I want to upload an artifact with Java code but without having the distributionmanagement tag in the settings.xml or in pom.xml files. Is it possible to do it programmatically? thank you -- View this message in context: http://maven.40175.n5.nabble.com/Deploy-artifact-programmatically-tp