Re: .m2 folder creation

2014-04-22 Thread Bernd Eckenfels
Am Mon, 21 Apr 2014 18:52:44 -0700 (PDT) schrieb Mayank mayankanan...@gmail.com: I have started using by unzipping its binary.zip and setting the environment variables and got the mvn -version executed successfully but after that none of the command worked, probably because of setting.xml

Re: .m2 folder creation

2014-04-22 Thread reena upadhyay
Hi, There are two ways to generate maven project structure: First way: Download the maven package, unzip it and set the maven path up to bin enviornmnet variable. Now once you are done with this you can generate the maven project structure through command prompt using below command: mvn

Re: Generating war and Jar from same codebase

2014-04-22 Thread Anders Hammar
#2 is the Maven way in a structural sense, although you shouldn't put all dependencies in the parent but where they are used. So the jar project will get most of the deps and the war project will have a dependency to the jar artifact (and possibly some other web related deps). Also, as the jar

Re: Generating war and Jar from same codebase

2014-04-22 Thread Aldrin Leal
I believe the Tomcat Plugin offers a way to create a fat jar with tomcat + your deps. http://tomcat.apache.org/maven-plugin-2.2/executable-war-jar.html Wouldn't it help perhaps? -- -- Aldrin Leal, ald...@leal.eng.br Master your EC2-fu! Get the latest ekaterminal public beta

Re: Generating war and Jar from same codebase

2014-04-22 Thread Stephen Connolly
On 22 April 2014 01:18, Narayanan K knarayana...@gmail.com wrote: Hi We have a default pom file with packaging war for our codebase. From the same code base we also want to generate a normal jar and a fat jar with dependencies. Currently solution that has been implemented is another

can't download jar is my server blacklisted

2014-04-22 Thread Lars Carlsson
Hi Is my new vps blocked from the maven repo i have tried different mirrors same problem 94.247.169.236 server: ping repo.maven.apache.org (185.31.17.192) wget http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.jar 2014-04-22

Re: .m2 folder creation

2014-04-22 Thread Ron Wheeler
Try using the Eclipse STS from Spring. It is Eclipse with all the bits and pieces that you need to do Maven and most Java development. This will save a ton of time every time you need to set up a new workstation or upgrade an existing one. You can use the Eclipse preference screens to manage

Re: can't download jar is my server blacklisted

2014-04-22 Thread Dan Tran
I am seeing the same error. I also encounter similar issue, could you check if you see the same thing and add your into the mentioned Jira http://maven.40175.n5.nabble.com/Strange-maven-central-response-do-you-see-the-same-thing-td5791549.html Thanks -Dan On Tue, Apr 22, 2014 at 1:39 AM,

Re: Perforce Maven Integration ??

2014-04-22 Thread Dan Tran
Hi Brian, since you already upload p4java 2013.1, could you upload the latest 2013.2? [1] Very much appreciated -D [1] http://ftp.perforce.com/perforce/r13.2/bin.java/ On Wed, Apr 16, 2014 at 2:25 PM, Brian Jackson br...@jaxzin.com wrote: On Tue, Apr 15, 2014 at 10:33 PM, Dan Tran

Re: Perforce Maven Integration ??

2014-04-22 Thread Dan Tran
and It solves my issue [1] Thanks -D [1] http://forums.perforce.com/index.php?/topic/3222-p4maven-supports-ssl/ On Tue, Apr 15, 2014 at 7:33 PM, Dan Tran dant...@gmail.com wrote: Hello, I am currently not able to get Perforce with SSL connection working. My guess here is both

Re: Generating war and Jar from same codebase

2014-04-22 Thread Narayanan K
Thanks all for replying. So having a parent pom and inheriting common dependencies to the 2 child poms is the best solution. My new maven project structure will be : . | -- pom.xml (parent pom) | -- pom-war.xml (inherits from parent, generates a war) | -- pom-jar.xml (inherits from parent,

Re: Generating war and Jar from same codebase

2014-04-22 Thread Ron Wheeler
Code is in jar project. Jar produces x.jar, No code in Parent No code in war. War depends on jar project output x.jar. It includes web resources but no code. Produces x.war. Ron On 22/04/2014 1:15 PM, Narayanan K wrote: Thanks all for replying. So having a parent pom and inheriting common

Re: DependencyTreeBuilder vs. DependencyGraphBuilder

2014-04-22 Thread Tonio Caputo
Hi, Interesting problem, I've just faced, using aether and maven 3.1, I developed a plugin for creating a special kind of 'war' file for a plugin infrastructure. I was using aether directly, I faced the problem aether was changed, so just looking into maven dependency plugin, and looking at

Re: Generating war and Jar from same codebase

2014-04-22 Thread Anders Hammar
My new maven project structure will be : . | -- pom.xml (parent pom) | -- pom-war.xml (inherits from parent, generates a war) | -- pom-jar.xml (inherits from parent, generates a jar) There are no modules in the project. All poms are going to be in the root path of the project. Wrong!

[ANNOUNCE] Release Mojo's JDepend Maven Plugin version 2.0

2014-04-22 Thread Karl Heinz Marbaise
Hi, The Mojo team is pleased to announce the release of the JDepend Maven Plugin version 2.0. This plugin produces a nicely formatted metrics report based on your project. http://mojo.codehaus.org/jdepend-maven-plugin/ To get this update, simply specify the version in your project's plugin

[ANNOUNCE] Release Mojo's Exec Maven Plugin version 1.3

2014-04-22 Thread Karl Heinz Marbaise
Hi, The Mojo team is pleased to announce the release of the Exec Maven Plugin version 1.3. The plugin provides 2 goals to help execute system and Java programs. http://mojo.codehaus.org/exec-maven-plugin/ To get this update, simply specify the version in your project's plugin configuration:

Re: Generating war and Jar from same codebase

2014-04-22 Thread Olivier Lamy
Have a look at this option: http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#archiveClasses On 23 April 2014 03:15, Narayanan K knarayana...@gmail.com wrote: Thanks all for replying. So having a parent pom and inheriting common dependencies to the 2 child poms is the best

BUILD FAILED - apache-maven-3.2.1

2014-04-22 Thread Ewerton Belchior
Dear Maven developers, I am trying to install apache-maven-3.2.1 http://ftp.unicamp.br/pub/apache/maven/maven-3/3.2.1/source/apache-maven-3.2.1-src.tar.gz with the following variables export M2_HOME=/opt/apache-maven-3-2-1-SNAPSHOT PATH=$M2_HOME/bin:$PATH under linux and I am getting the error

Re: Error of after running 'mvn package' command

2014-04-22 Thread snallami
I faced exact same issue , replying to this mail chain so that other can benefit. It looks like Hudson project is moved to eclipse.org hence in plugin pom.xml we need to changed parent declaration as below parent groupIdorg.eclipse.hudson.plugins/groupId

Re: BUILD FAILED - apache-maven-3.2.1

2014-04-22 Thread Wayne Fay
I am trying to install apache-maven-3.2.1 http://ftp.unicamp.br/pub/apache/maven/maven-3/3.2.1/source/apache-maven-3.2.1-src.tar.gz No, you are trying to BUILD Maven 3.2.1. If you simply want to install it, grab the binaries. Who's JDK/JVM are you using and what version is it? Wayne

Trouble downloading a dependency

2014-04-22 Thread Paul Benedict
Output from Maven... Downloading: http://repo1.maven.org/maven2/org/jboss/spec/javax/ejb/jboss-ejb-api_3.2_spec/1.0.0.Final/jboss-ejb-api_3.2_spec-1.0.0.Final.pom ...and then this error: connect: Address is invalid on local machine, or port is not valid on remote machine I don't understand the

Re: Generating war and Jar from same codebase

2014-04-22 Thread Narayanan K
Hi Anders The codebase is the same. So having 2 separate directories (for modules) and pom in each of them is not required right ? I can have modules in parent pom to specify the 2 child poms that are present in the same project level. Tried below and seems it is working. parent pom will have :

Re: Generating war and Jar from same codebase

2014-04-22 Thread Ron Wheeler
If you are going to get serious about development, you should install a Maven repo. We use the Community version of Nexus and it works very well. What are the restrictions on your development? Almost every other company that uses Maven works as Anders suggests. Ron On 23/04/2014 12:15 AM,

Re: Generating war and Jar from same codebase

2014-04-22 Thread Barrie Treloar
On 23 April 2014 13:45, Narayanan K knarayana...@gmail.com wrote: Hi Anders The codebase is the same. So having 2 separate directories (for modules) and pom in each of them is not required right ? I can have modules in parent pom to specify the 2 child poms that are present in the same

Re: Trouble downloading a dependency

2014-04-22 Thread Anders Hammar
Web proxy not configured for Maven? /Anders (mobile) Den 23 apr 2014 05:10 skrev Paul Benedict pbened...@apache.org: Output from Maven... Downloading: http://repo1.maven.org/maven2/org/jboss/spec/javax/ejb/jboss-ejb-api_3.2_spec/1.0.0.Final/jboss-ejb-api_3.2_spec-1.0.0.Final.pom ...and