Re: Unable to find resource 'org.glassfish:javax.ejb:pom:3.0'

2010-06-30 Thread Thomas Porschberg
I solved the problem with http://www.mvnbrowser.com and glassfish Maven Repository Glassfish default http://download.java.net/maven/glassfish false Thomas Am Wed, 30 Jun 2010 18:00:01 +0200 schrieb Thomas Porschberg : > Hi, > > I'm now in chapter 6 of "Java EE 6 Platform with Gla

RE: maven runtime error java.net.UnknownHostException: repo1.maven.org.

2010-06-30 Thread Andrew Bucknell
Thanks for the suggestion Brett but it appears that wasn’t the right fix. I updated to jdk 1.6.0_20. Im getting the same error in the same place. Caused by: java.net.UnknownHostException: repo1.maven.org -Original Message- From: Brett Randall [mailto:javabr...@gmail.com] Sent: Thursday,

Re: Passing ${basedir} into Exec plugin

2010-06-30 Thread Dan Tran
lookup maven profile where you can configure your properties to ${basedir}\\target when on windows platform -D On Wed, Jun 30, 2010 at 9:26 PM, cowwoc wrote: > > Hi, > > I need to invoke an external command using the Exec plugin, with one of the > arguments equal to "${basedir}/target". The prob

Passing ${basedir} into Exec plugin

2010-06-30 Thread cowwoc
Hi, I need to invoke an external command using the Exec plugin, with one of the arguments equal to "${basedir}/target". The problem is that under Windows this expands to "c:\\temp\\project/target" because ${basedir} uses Windows-style slashes whereas the rest of the argument uses Unix-style slash

Re: maven runtime error java.net.UnknownHostException: repo1.maven.org.

2010-06-30 Thread Brett Randall
Someone else posted similar a few weeks back with the same JDK version, which is pretty old: http://maven.40175.n5.nabble.com/Maven-in-5-minutes-doesn-t-work-tt510820.html#a510820 "Thanks for the support guys, it was not a proxy issue. I upgraded my JDK/JRE from 1.6.0_03 to 1.6.0_20 and it all cam

maven runtime error java.net.UnknownHostException: repo1.maven.org.

2010-06-30 Thread Andrew Bucknell
I downloaded maven 2.2.1 on to my debian box and am having problems with it. I am not using a proxy or a firewall yet I am getting the following debug messages - most notably Caused by: java.net.UnknownHostException: repo1.maven.org. I am able to resolve the hostname using nslookup from th

Directory name for assembly plugin's directory-single goal (M2)

2010-06-30 Thread Jeff French
With Maven 2, is there a way to change the name of the directory created under target when using the assembly plugin's directory-single goal? By default it is called ${project.artifactId}-${project.version}-DESCRIPTOR_ID.dir. I know I can change the name of the directory inside ${project.artifact

WAR packaging question

2010-06-30 Thread CassUser CassUser
When the maven war plugin packages the maven project, the war includes my xml resource in the root directory as well as in the WEB-INF/classes. Is there any way to not include the one in the root directory of the WAR? Thanks!

Re: making a repository read-only

2010-06-30 Thread Brian Fox
Use nexus and give different users different permissions. On Jun 30, 2010, at 1:38 AM, Jemos Infra wrote: > No, we don't use Nexus, just the file system. We've got a single account > (sys_account) who is entitled to upload to this repository through ssh > using an infrastructure given key, so al

Re: standardized Maven GAV URN?

2010-06-30 Thread Brian Fox
Neither, it's extension. Type, packaging and extension are often the same but not always. Type sources actually means classifier sources and extension jar for example. Packaging maven-plugin actually means extension jar. Sent from my iPad On Jun 29, 2010, at 2:34 AM, nicolas de loof wrote: > i

Re: dependencies classifier problem

2010-06-30 Thread Anders Hammar
Maven Golden Rule is that one project only has one primary artifact. For a project, there is only one pom so all artifacts will share it. So having more than one artifact from one project makes you experience these kind of issues you're describing. It's as designed. /Anders On Wed, Jun 30, 2010 a

Re: Multi project release without SCM

2010-06-30 Thread Anders Hammar
Yes. The Versions Maven Plugin ( http://mojo.codehaus.org/versions-maven-plugin/) could help you. /Anders On Tue, Jun 29, 2010 at 20:13, tbee wrote: > > I have a good working multiproject release but no SCM setup yet (I'm > waiting > for BRZ to be installed to replace CVS). > > Currently the pa

maven-nar-plugin library loading - how to make use of native libraries opaque

2010-06-30 Thread Peter Schuller
Hello, I'm not sure I understand the intended usage of maven-nar-plugin, and after diving around in the source I'm not very much wiser. Given: * project C (junixsocket in this case) using maven-nar-plugin to build and deploy jar and nar artifacts * project B, depending on C * project A, depending

Unable to find resource 'org.glassfish:javax.ejb:pom:3.0'

2010-06-30 Thread Thomas Porschberg
Hi, I'm now in chapter 6 of "Java EE 6 Platform with GlassFish 3" and I try to build the example with mvn. In my pom.xml there is: ... org.glassfish javax.ejb 3.0 org.glassfish.embedded glassfish-embedded-all 3.0 test ... but a "mvn package" gives me: Downloading: http://www.eclip

making a zip of a bunch of jar-with-dependency jars stored in Nexus

2010-06-30 Thread Ron Wheeler
I am still struggling with this little task. I am trying to get a tar that contains a bunch of jars that were created using the assembly plug-in as "jar-with-dependency". How can this be done? Using the assembly plug-in with dependencyset gets the jars that I want but also adds all of the jar

JSPC plugin generates invalid xml fragment

2010-06-30 Thread Gary.Bauer
Hi I'm using jspc-maven-plugin 1.4.6 to pre-compile jsp pages. All works fine, but there is an annoyance. I'm also using Eclipse, and the jsp-web.xml fragment that the plugin produces is highlighted as invalid, making it look like my project is in error. I'm not even sure how the jsp-web.xml is

Re: standardized Maven GAV URN?

2010-06-30 Thread Andreas Sewe
Luke, are you aiming at IANA registration of the namespace identifier? (If not, please use a x- prefix to mark the NID as experimental: .) Best wishes, Andreas - To unsubscrib

Re: standardized Maven GAV URN?

2010-06-30 Thread Justin Edelson
On 6/30/10 8:42 AM, Stephen Connolly wrote: > is : valid within a urn? Yes. > > On 30 June 2010 13:34, lukewpatterson wrote: > >> >> >> Stan Devitt-2 wrote: >>> >>> Why would the recommended format here be different than the format used >> by >>> the dependency plugin? >>> (e.g. junit:junit:ja

Re: standardized Maven GAV URN?

2010-06-30 Thread Stephen Connolly
is : valid within a urn? On 30 June 2010 13:34, lukewpatterson wrote: > > > Stan Devitt-2 wrote: > > > > Why would the recommended format here be different than the format used > by > > the dependency plugin? > > (e.g. junit:junit:jar:3.8.1:test ) > > > > I was looking more for a URN for Maven

RE: standardized Maven GAV URN?

2010-06-30 Thread lukewpatterson
Stan Devitt-2 wrote: > > Why would the recommended format here be different than the format used by > the dependency plugin? > (e.g. junit:junit:jar:3.8.1:test ) > I was looking more for a URN for Maven coordinates, which is slightly different than the flattened form of elements. e.g. the

Re: "mvn test" and shell functions

2010-06-30 Thread Stephen Connolly
Thomas, please keep on-list so that others may benefit/help you when I get too busy. AFAIK java will start a shell to launch any external process. you can configure the surefire plugin to not fork (see the surefire pages to find out how) but you really want forkMode of at least once... always wi

Re: "mvn test" and shell functions

2010-06-30 Thread Stephen Connolly
surefire forks a java process (unless you set forkmode to none) On 30 June 2010 09:06, Thomas Porschberg wrote: > Hi, > > after my trouble with the surefire plugin my test is running successful > now. > > But I wonder about some output from shell functions I have defined in > my environment, lik

Re: Site docs in Maven 3

2010-06-30 Thread Olivier Lamy
Hi, Have a look here : https://cwiki.apache.org/confluence/x/sokr Note : doesn't work with beta-1 (you have to use beta-7 or current maven3 trunk) 2010/6/30 Kathryn Huxtable : > Is there a version of the report generation that works? > > -K > >

Site docs in Maven 3

2010-06-30 Thread Kathryn Huxtable
Is there a version of the report generation that works? -K - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

RE: standardized Maven GAV URN?

2010-06-30 Thread Stan Devitt
Why would the recommended format here be different than the format used by the dependency plugin? (e.g. junit:junit:jar:3.8.1:test ) Stan -Original Message- From: Brian Fox [mailto:bri...@infinity.nu] Sent: Monday, June 28, 2010 9:56 PM To: Maven Users List Subject: Re: standardized

"mvn test" and shell functions

2010-06-30 Thread Thomas Porschberg
Hi, after my trouble with the surefire plugin my test is running successful now. But I wonder about some output from shell functions I have defined in my environment, like: /bin/sh: getReturnCode: line 0: unexpected EOF while looking for matching ``' /bin/sh: getReturnCode: line 5: syntax error

Re: org.apache.maven.plugins:maven-surefire-plugin problem

2010-06-30 Thread Thomas Porschberg
After deleting the surefire-directory in the maven repository a rerun of "mvn test" worked. regards Thomas Am Wed, 30 Jun 2010 08:47:24 +0200 schrieb Thomas Porschberg : > Hi, > > I'm doing my first steps with mvn and try to run the examples from > "Java EE 6 Platform with Glassfish 3". > >

Re: making a repository read-only

2010-06-30 Thread Siegfried Goeschl
Use a cron job to change file permission and owners of the repostioty content. Cheers, Siegfried Goeschl On 30.06.10 07:38, Jemos Infra wrote: No, we don't use Nexus, just the file system. We've got a single account (sys_account) who is entitled to upload to this repository through ssh using