Re: Upload snapshot on nexus

2010-01-28 Thread Anders Hammar
Why are you using scp and not http?

/Anders

On Fri, Jan 29, 2010 at 03:47, Qureshi,Shahzad [Ontario] <
shahzad.qure...@ec.gc.ca> wrote:

> Ahh, forgot that it should be  and not 
> below
>
> So it should be
>
> 
>
> nexus
>
>  
> scp://serveraddress/usr/local/sonatype-work/nexus/storage/snapshots
> 
> 
>
> Its working now, well not entirely since the account I am usng doesn't
> write permission on the directory I am trying to write this snapshot to but
> that's a different issue and will be solved by tmrw. I will report back when
> I do successfully write the snapshot to the snapshot repo
>
> Thanks for your help Ron
>
> 
> Shahzad Qureshi
> Systems Analyst/Programmer
> Applications Directorate | La direction générale des applications
> Chief Information
> Environment Canada
> 416-739-4702
> shahzad.qure...@ec.gc.ca
>
> -Original Message-
> From: Qureshi,Shahzad [Ontario] [mailto:shahzad.qure...@ec.gc.ca]
> Sent: Thursday, January 28, 2010 9:30 PM
> To: Maven Users List
> Subject: *SPAM* RE: Upload snapshot on nexus
>
> Did that, also added a distributionManagement section in the pom like the
> following
>
> 
>
>nexus
>
>  
> scp://serveraddress/usr/local/sonatype-work/nexus/storage/snapshots
>
> 
>
>
> And I still get the exact same error
>
> 
> Shahzad Qureshi
> Systems Analyst/Programmer
> Applications Directorate | La direction générale des applications Chief
> Information Environment Canada
> 416-739-4702
> shahzad.qure...@ec.gc.ca
>
> -Original Message-
> From: Ron Wheeler [mailto:rwhee...@artifact-software.com]
> Sent: Thursday, January 28, 2010 8:50 PM
> To: Maven Users List
> Subject: Re: Upload snapshot on nexus
>
> http://www.sonatype.com/books/nexus-book/reference/ch14s04.html
>
> Qureshi,Shahzad [Ontario] wrote:
> > Hi all,
> >
> > I am having problem uploading a snapshot of my project to our internal
> > nexus repository. Everything else is working fine, I can download
> > plugins/dependencies, I am able to upload releases using the browser
> > but when I try to do mvn deploy for a snapshot of my project, I get
> >
> > [INFO] Error retrieving previous build number for artifact
> > 'test:Archive:jar': repository metadata for: 'snapshot
> > test:Archive:1.0-SNAPSHOT' could not be retrieved from repository:
> > central due to an error: Authentication failed: Cannot connect. Reason:
> > connection is closed by foreign host
> >
> > I've done what this link mentioned here:
> > http://www.sonatype.com/books/nexus-book/reference/maven-sect-single-g
> > ro up.html i.e. included snapshot repository to the public group and
> > created the settings.xml and everything is working except deploying of
> > the snapshot
> >
> > I don't have  section in my pom file though,
> > does that matter? If so, what should go in there? Because I don't seem
> > to need it when deploying releases
> >
> > It seems to me that the reason its failing is because I need to
> > proivde login and password for the server where I am trying to upload
> > the snapshot("Authentication failed"), where do I specify that?
> >
> > Any help will be great
> >
> > Thanks
> >
> > 
> > Shahzad Qureshi
> >
> >
> >
>
>
> -
> 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
>
>


[2.0.11 RC] Please help us test

2010-01-28 Thread Brett Porter
Hi,

We've been planning a Maven 2.0.11 release for current 2.0.10 users that might 
want access to some fixes that were made but are not wanting to upgrade to 
2.2.1. To get a wider range of feedback before publishing the release, we're 
looking for release candidate testers. Please note that the following are for 
testing purposes only and won't be retained past the next release - please post 
your results to d...@maven.apache.org.

You can find binaries here: 
https://repository.apache.org/content/repositories/maven-016/org/apache/maven/apache-maven/2.0.11-RC1/,
and source distributions here: 
https://repository.apache.org/content/repositories/maven-016/org/apache/maven/maven/2.0.11-RC1/

Here are the issues that have been fixed: 
http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=10500&version=14118 
in this version.

Please test it out and let us know how it goes - particularly if you are 
currently using 2.0.9 or 2.0.10.

Thanks,
Brett



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven download the dependency of a error version?

2010-01-28 Thread Anders Hammar
Well, this is the good thing about m2eclipse. It uses the pom as master.
A repo manager (Nexus for example) will solve your network problems.

/Anders

On Fri, Jan 29, 2010 at 02:28, maven apache  wrote:

> 2010/1/28 Anders Hammar 
>
> > You should use m2eclipse. You want to have one dev environment setup, not
> > having to manage two separate ones - the POM should be the master. And
> you
> > would get many nice features like dep graphs and easier management of
> your
> > deps.
>
> Yes, it is true,I can check the dependency more clearly, However there is a
> rather unbearable problem, m2eclipse will update the maven dependency as
> soon as I modify the pom(most time I just config some plugins rather add or
> remove the dependency),and if the web connecttion is bad or some artifact
> is
> not available, it will take too long.
>
> > And eventuelly you'll also get much fast builds (incremental builds,
> > already partly in place in 0.9.9-dev). And, maybe most importantly, the
> > maven configuration and eclipse configuration will be synced. We're not
> > there yet though, but I believe we will be for the major plugins in v1.0
> of
> > m2e.
> >
> > But make sure you use the latest 0.9.9-dev build, not v0.9.8 of m2e.
> >
> > /Anders
> >
> > On Thu, Jan 28, 2010 at 10:22, maven apache 
> > wrote:
> >
> > > BTW, do you think it is a good idea to use m2eclipse? or other IDE
> > > integrate
> > > with maven?
> > >
> > > Beacuse I found if I work without m2eclipse, each I edit the pom, I
> > should
> > > use mvn eclipse:eclipse to update the .classpath ,however the m2eclipse
> > > work
> > > rather slowly :(.
> > > How about your?
> > >
> > > 2010/1/28 Anders Hammar 
> > >
> > > > I also see that they add other repositories in their pom. A total
> > mess...
> > > >
> > > > /A
> > > >
> > > > On Thu, Jan 28, 2010 at 10:05, Stephen Connolly <
> > > > stephen.alan.conno...@gmail.com> wrote:
> > > >
> > > > > Correct, based on their pom this is one of those examples of
> why
> > it
> > > > is
> > > > > a
> > > > > bad plan to add dependencies in a profile that is activated based
> on
> > > the
> > > > > build JDK and/or OS
> > > > >
> > > > > 2010/1/28 maven apache 
> > > > >
> > > > > > 2010/1/28 Anders Hammar 
> > > > > >
> > > > > > > Here you go:
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> http://repo1.maven.org/maven2/org/apache/rampart/rampart-project/1.4/rampart-project-1.4.pom
> > > > > > >
> > > > > > > I didn't look closely enough. The JDK1.4 profile is active by
> > > > default,
> > > > > do
> > > > > > > as
> > > > > > > you're NOT using JDK 1.5 that profile is not going to kick in.
> > > > > > >
> > > > > > Oh, my fault, I did not check it clearly enouth.
> > > > > > You mean not matter which jdk I use( configed in the compile
> > > version?),
> > > > > as
> > > > > > long as the version is not 1.5(for my case , it is 1.6), the
> jdk14
> > > > > profile
> > > > > > will be actived?
> > > > > >
> > > > > > >
> > > > > > > /Anders
> > > > > > >
> > > > > > > On Thu, Jan 28, 2010 at 09:30, maven apache <
> > > apachemav...@gmail.com>
> > > > > > > wrote:
> > > > > > >
> > > > > > > > 2010/1/28 Anders Hammar 
> > > > > > > >
> > > > > > > > > You're building with JDK 1.4, not JDK 1.5.
> > > > > > > >
> > > > > > > > How? I did not sepcify 1.4 or .1.5.
> > > > > > > > In the parent pom of my project I config the compile version
> to
> > > > 1.6,
> > > > > > and
> > > > > > > my
> > > > > > > > eclipse are using jdk1.6_18
> > > > > > > >
> > > > > > > >
> > > > > > > > > There are profiles in the pom of
> > > > > > > > >
> > > > > > > > > org.apache.rampart:rampart-policy:jar:1.4
> > > > > > > > >
> > > > > > > > > (Actually, the profiles are in the parent of that project).
> > > > > > > > >
> > > > > > > > Yes, I know this, I have check the pom.
> > > > > > > >
> > > > > > > > >
> > > > > > > > > The homepage which you refer to isn't telling the complete
> > > > truth...
> > > > > > > > >
> > > > > > > > > /Anders
> > > > > > > > > On Thu, Jan 28, 2010 at 09:15, maven apache <
> > > > > apachemav...@gmail.com>
> > > > > > > > > wrote:
> > > > > > > > >
> > > > > > > > > > Hi:
> > > > > > > > > > I found a strange problem, it seems that maven may
> download
> > a
> > > > > wrong
> > > > > > > > > version
> > > > > > > > > > for a transitive dependency.
> > > > > > > > > > Details can be found here :
> > > > > > > > > > http://dpaste.com/151511/
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>


Re: How do I find the Jar that conatains this method signature?

2010-01-28 Thread stug23

You can easily research the class by using the very handy jarvana.com web
site:

  


>From the search link above you can drill into the class to see all of the
methods.

For example:

   



laredotornado wrote:
> 
> Hi,
> 
> I'm using an older version of Maven (1.1) for my project.  I am getting
> the error when running unit tests ...
> 
> org.apache.xpath.compiler.FunctionTable.installFunction(Ljava/lang/String;Ljava/lang/Class;)I
> java.lang.NoSuchMethodError:
> org.apache.xpath.compiler.FunctionTable.installFunction(Ljava/lang/String;Ljava/lang/Class;)I
> at
> com.gargoylesoftware.htmlunit.html.xpath.XPathAdapter.initFunctionTable(XPathAdapter.java:52)
> at
> com.gargoylesoftware.htmlunit.html.xpath.XPathAdapter.(XPathAdapter.java:68)
> at
> com.gargoylesoftware.htmlunit.html.xpath.XPathUtils.evaluateXPath(XPathUtils.java:128)
> at
> com.gargoylesoftware.htmlunit.html.xpath.XPathUtils.getByXPath(XPathUtils.java:72)
> at
> com.gargoylesoftware.htmlunit.javascript.host.HTMLCollection.computeElements(HTMLCollection.java:245)
> 
> 
> Does anyone know how I can figure out what JAR and its specific version
> contains the class and method with the specified signature?  I want to use
> htmlunit 2.5 and as such, thought I had included all the relevant JARs in
> my dependency list, but I guess not.  
> 
> Project.xml is below.  Thanks, - Dave
> 
> 
> Begin project.xml ==
> 
> 
>   ../project.xml
>   myco-dor-online-interlock-test
>   myco-dor-online-interlock-test
>   myco Interlock Tests
>   myco Interlock Tests
>   
>   
>   src/main/test
>   
>   
>   **/*Test.java
>   
>   
>   
>   
>   
> ${basedir}/src/main/resources
>   
>   **/*.xml
>   **/*.properties
>   
>   
>   
>   
> ${basedir}/../service/src/main/resources
>   
>   **/*.xml
>   
>   
>   
>   
>   
>   
>   myco.dor.online.interlock
>   myco-dor-online-interlock-model
>   ${pom.currentVersion}
>   
>   true
>   true
>   
>   
>   
>   myco.dor.online.interlock
>   
> myco-dor-online-interlock-service
>   ${pom.currentVersion}
>   jar
>   
> 
>   
>   net.sourceforge.jwebunit
>   jwebunit-htmlunit-plugin
>   2.2
>   
>   
>   junit
>   junit
>   3.8.1
>   
>   
>   net.sourceforge.cssparser
>   cssparser
>   0.9.5
>   
>   
>   net.sourceforge.htmlunit
>   htmlunit
>   2.5
>   
>   
>   net.sourceforge.htmlunit
>   htmlunit-core-js
>   2.5
>   
>   
>   net.sourceforge.jwebunit
>   jwebunit-commons-tests
>   2.2
>   
>   
>   net.sourceforge.jwebunit
>   jwebunit-core
>   2.2
>   
>   
>   net.sourceforge.nekohtml
>   nekohtml
>   1.9.12
>   
>   
>   org.mockito
>   mockito-all
>   1.7
>   
>   
>   org.mortbay.jetty
>   jetty
>   6.1.12
>   
>   
>   
>   org.slf4j
>   slf4j-api
>   1.5.0
>   
>   
>   org.slf4j
>   slf4j-log4j12
>   1.5.0
>   
>   
>   org.w3c.css
>   s

Re: maven download the dependency of a error version?

2010-01-28 Thread maven apache
2010/1/28 maven apache 

>
>
> 2010/1/28 Anders Hammar 
>
>> Here you go:
>>
>>
>> http://repo1.maven.org/maven2/org/apache/rampart/rampart-project/1.4/rampart-project-1.4.pom
>>
>> I didn't look closely enough. The JDK1.4 profile is active by default, do
>> as
>> you're NOT using JDK 1.5 that profile is not going to kick in.
>>
> Oh, my fault, I did not check it clearly enouth.
> You mean not matter which jdk I use( configed in the compile version?),
>
It seems that I was wrong.



jdk14

true
1.4// Yesterday I thought this
parameter "jdk" is configed in the maven.compile.plugin using the
source and target parameter,
  // However, I have made
a test, I found that this parameter depends on the real jdk !




bouncycastle
bcprov-jdk13
${bcprov.jdk13.version}



-





> as long as the version is not 1.5(for my case , it is 1.6), the jdk14
> profile will be actived?
>
>>
>> /Anders
>>
>> On Thu, Jan 28, 2010 at 09:30, maven apache 
>> wrote:
>>
>> > 2010/1/28 Anders Hammar 
>> >
>> > > You're building with JDK 1.4, not JDK 1.5.
>> >
>> > How? I did not sepcify 1.4 or .1.5.
>> > In the parent pom of my project I config the compile version to 1.6, and
>> my
>> > eclipse are using jdk1.6_18
>> >
>> >
>> > > There are profiles in the pom of
>> > >
>> > > org.apache.rampart:rampart-policy:jar:1.4
>> > >
>> > > (Actually, the profiles are in the parent of that project).
>> > >
>> > Yes, I know this, I have check the pom.
>> >
>> > >
>> > > The homepage which you refer to isn't telling the complete truth...
>> > >
>> > > /Anders
>> > > On Thu, Jan 28, 2010 at 09:15, maven apache 
>> > > wrote:
>> > >
>> > > > Hi:
>> > > > I found a strange problem, it seems that maven may download a wrong
>> > > version
>> > > > for a transitive dependency.
>> > > > Details can be found here :
>> > > > http://dpaste.com/151511/
>> > > >
>> > >
>> >
>>
>
>


RE: Upload snapshot on nexus

2010-01-28 Thread Qureshi,Shahzad [Ontario]
Ahh, forgot that it should be  and not  below

So it should be



nexus

scp://serveraddress/usr/local/sonatype-work/nexus/storage/snapshots

  

Its working now, well not entirely since the account I am usng doesn't write 
permission on the directory I am trying to write this snapshot to but that's a 
different issue and will be solved by tmrw. I will report back when I do 
successfully write the snapshot to the snapshot repo

Thanks for your help Ron


Shahzad Qureshi
Systems Analyst/Programmer
Applications Directorate | La direction générale des applications
Chief Information 
Environment Canada
416-739-4702
shahzad.qure...@ec.gc.ca

-Original Message-
From: Qureshi,Shahzad [Ontario] [mailto:shahzad.qure...@ec.gc.ca] 
Sent: Thursday, January 28, 2010 9:30 PM
To: Maven Users List
Subject: *SPAM* RE: Upload snapshot on nexus

Did that, also added a distributionManagement section in the pom like the 
following



nexus

scp://serveraddress/usr/local/sonatype-work/nexus/storage/snapshots

 


And I still get the exact same error


Shahzad Qureshi
Systems Analyst/Programmer
Applications Directorate | La direction générale des applications Chief 
Information Environment Canada
416-739-4702
shahzad.qure...@ec.gc.ca

-Original Message-
From: Ron Wheeler [mailto:rwhee...@artifact-software.com]
Sent: Thursday, January 28, 2010 8:50 PM
To: Maven Users List
Subject: Re: Upload snapshot on nexus

http://www.sonatype.com/books/nexus-book/reference/ch14s04.html

Qureshi,Shahzad [Ontario] wrote:
> Hi all,
>
> I am having problem uploading a snapshot of my project to our internal 
> nexus repository. Everything else is working fine, I can download 
> plugins/dependencies, I am able to upload releases using the browser 
> but when I try to do mvn deploy for a snapshot of my project, I get
>
> [INFO] Error retrieving previous build number for artifact
> 'test:Archive:jar': repository metadata for: 'snapshot 
> test:Archive:1.0-SNAPSHOT' could not be retrieved from repository:
> central due to an error: Authentication failed: Cannot connect. Reason:
> connection is closed by foreign host
>
> I've done what this link mentioned here:
> http://www.sonatype.com/books/nexus-book/reference/maven-sect-single-g
> ro up.html i.e. included snapshot repository to the public group and 
> created the settings.xml and everything is working except deploying of 
> the snapshot
>
> I don't have  section in my pom file though, 
> does that matter? If so, what should go in there? Because I don't seem 
> to need it when deploying releases
>
> It seems to me that the reason its failing is because I need to 
> proivde login and password for the server where I am trying to upload 
> the snapshot("Authentication failed"), where do I specify that?
>
> Any help will be great
>
> Thanks
>
> 
> Shahzad Qureshi
>
>
>   


-
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: Upload snapshot on nexus

2010-01-28 Thread Qureshi,Shahzad [Ontario]
Did that, also added a distributionManagement section in the pom like the 
following



nexus

scp://serveraddress/usr/local/sonatype-work/nexus/storage/snapshots

 


And I still get the exact same error


Shahzad Qureshi
Systems Analyst/Programmer
Applications Directorate | La direction générale des applications
Chief Information 
Environment Canada
416-739-4702
shahzad.qure...@ec.gc.ca

-Original Message-
From: Ron Wheeler [mailto:rwhee...@artifact-software.com] 
Sent: Thursday, January 28, 2010 8:50 PM
To: Maven Users List
Subject: Re: Upload snapshot on nexus

http://www.sonatype.com/books/nexus-book/reference/ch14s04.html

Qureshi,Shahzad [Ontario] wrote:
> Hi all,
>
> I am having problem uploading a snapshot of my project to our internal 
> nexus repository. Everything else is working fine, I can download 
> plugins/dependencies, I am able to upload releases using the browser 
> but when I try to do mvn deploy for a snapshot of my project, I get
>
> [INFO] Error retrieving previous build number for artifact
> 'test:Archive:jar': repository metadata for: 'snapshot 
> test:Archive:1.0-SNAPSHOT' could not be retrieved from repository:
> central due to an error: Authentication failed: Cannot connect. Reason:
> connection is closed by foreign host
>
> I've done what this link mentioned here:
> http://www.sonatype.com/books/nexus-book/reference/maven-sect-single-g
> ro up.html i.e. included snapshot repository to the public group and 
> created the settings.xml and everything is working except deploying of 
> the snapshot
>
> I don't have  section in my pom file though, 
> does that matter? If so, what should go in there? Because I don't seem 
> to need it when deploying releases
>
> It seems to me that the reason its failing is because I need to 
> proivde login and password for the server where I am trying to upload 
> the snapshot("Authentication failed"), where do I specify that?
>
> Any help will be great
>
> Thanks
>
> 
> Shahzad Qureshi
>
>
>   


-
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: Upload snapshot on nexus

2010-01-28 Thread Ron Wheeler

http://www.sonatype.com/books/nexus-book/reference/ch14s04.html

Qureshi,Shahzad [Ontario] wrote:

Hi all,

I am having problem uploading a snapshot of my project to our internal
nexus repository. Everything else is working fine, I can download
plugins/dependencies, I am able to upload releases using the browser but
when I try to do mvn deploy for a snapshot of my project, I get 


[INFO] Error retrieving previous build number for artifact
'test:Archive:jar': repository metadata for: 'snapshot
test:Archive:1.0-SNAPSHOT' could not be retrieved from repository:
central due to an error: Authentication failed: Cannot connect. Reason:
connection is closed by foreign host

I've done what this link mentioned here:
http://www.sonatype.com/books/nexus-book/reference/maven-sect-single-gro
up.html i.e. included snapshot repository to the public group and
created the settings.xml and everything is working except deploying of
the snapshot

I don't have  section in my pom file though,
does that matter? If so, what should go in there? Because I don't seem
to need it when deploying releases

It seems to me that the reason its failing is because I need to proivde
login and password for the server where I am trying to upload the
snapshot("Authentication failed"), where do I specify that?

Any help will be great

Thanks


Shahzad Qureshi


  



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven download the dependency of a error version?

2010-01-28 Thread maven apache
2010/1/28 Anders Hammar 

> You should use m2eclipse. You want to have one dev environment setup, not
> having to manage two separate ones - the POM should be the master. And you
> would get many nice features like dep graphs and easier management of your
> deps.

Yes, it is true,I can check the dependency more clearly, However there is a
rather unbearable problem, m2eclipse will update the maven dependency as
soon as I modify the pom(most time I just config some plugins rather add or
remove the dependency),and if the web connecttion is bad or some artifact is
not available, it will take too long.

> And eventuelly you'll also get much fast builds (incremental builds,
> already partly in place in 0.9.9-dev). And, maybe most importantly, the
> maven configuration and eclipse configuration will be synced. We're not
> there yet though, but I believe we will be for the major plugins in v1.0 of
> m2e.
>
> But make sure you use the latest 0.9.9-dev build, not v0.9.8 of m2e.
>
> /Anders
>
> On Thu, Jan 28, 2010 at 10:22, maven apache 
> wrote:
>
> > BTW, do you think it is a good idea to use m2eclipse? or other IDE
> > integrate
> > with maven?
> >
> > Beacuse I found if I work without m2eclipse, each I edit the pom, I
> should
> > use mvn eclipse:eclipse to update the .classpath ,however the m2eclipse
> > work
> > rather slowly :(.
> > How about your?
> >
> > 2010/1/28 Anders Hammar 
> >
> > > I also see that they add other repositories in their pom. A total
> mess...
> > >
> > > /A
> > >
> > > On Thu, Jan 28, 2010 at 10:05, Stephen Connolly <
> > > stephen.alan.conno...@gmail.com> wrote:
> > >
> > > > Correct, based on their pom this is one of those examples of why
> it
> > > is
> > > > a
> > > > bad plan to add dependencies in a profile that is activated based on
> > the
> > > > build JDK and/or OS
> > > >
> > > > 2010/1/28 maven apache 
> > > >
> > > > > 2010/1/28 Anders Hammar 
> > > > >
> > > > > > Here you go:
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> http://repo1.maven.org/maven2/org/apache/rampart/rampart-project/1.4/rampart-project-1.4.pom
> > > > > >
> > > > > > I didn't look closely enough. The JDK1.4 profile is active by
> > > default,
> > > > do
> > > > > > as
> > > > > > you're NOT using JDK 1.5 that profile is not going to kick in.
> > > > > >
> > > > > Oh, my fault, I did not check it clearly enouth.
> > > > > You mean not matter which jdk I use( configed in the compile
> > version?),
> > > > as
> > > > > long as the version is not 1.5(for my case , it is 1.6), the jdk14
> > > > profile
> > > > > will be actived?
> > > > >
> > > > > >
> > > > > > /Anders
> > > > > >
> > > > > > On Thu, Jan 28, 2010 at 09:30, maven apache <
> > apachemav...@gmail.com>
> > > > > > wrote:
> > > > > >
> > > > > > > 2010/1/28 Anders Hammar 
> > > > > > >
> > > > > > > > You're building with JDK 1.4, not JDK 1.5.
> > > > > > >
> > > > > > > How? I did not sepcify 1.4 or .1.5.
> > > > > > > In the parent pom of my project I config the compile version to
> > > 1.6,
> > > > > and
> > > > > > my
> > > > > > > eclipse are using jdk1.6_18
> > > > > > >
> > > > > > >
> > > > > > > > There are profiles in the pom of
> > > > > > > >
> > > > > > > > org.apache.rampart:rampart-policy:jar:1.4
> > > > > > > >
> > > > > > > > (Actually, the profiles are in the parent of that project).
> > > > > > > >
> > > > > > > Yes, I know this, I have check the pom.
> > > > > > >
> > > > > > > >
> > > > > > > > The homepage which you refer to isn't telling the complete
> > > truth...
> > > > > > > >
> > > > > > > > /Anders
> > > > > > > > On Thu, Jan 28, 2010 at 09:15, maven apache <
> > > > apachemav...@gmail.com>
> > > > > > > > wrote:
> > > > > > > >
> > > > > > > > > Hi:
> > > > > > > > > I found a strange problem, it seems that maven may download
> a
> > > > wrong
> > > > > > > > version
> > > > > > > > > for a transitive dependency.
> > > > > > > > > Details can be found here :
> > > > > > > > > http://dpaste.com/151511/
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>


Upload snapshot on nexus

2010-01-28 Thread Qureshi,Shahzad [Ontario]
Hi all,

I am having problem uploading a snapshot of my project to our internal
nexus repository. Everything else is working fine, I can download
plugins/dependencies, I am able to upload releases using the browser but
when I try to do mvn deploy for a snapshot of my project, I get 

[INFO] Error retrieving previous build number for artifact
'test:Archive:jar': repository metadata for: 'snapshot
test:Archive:1.0-SNAPSHOT' could not be retrieved from repository:
central due to an error: Authentication failed: Cannot connect. Reason:
connection is closed by foreign host

I've done what this link mentioned here:
http://www.sonatype.com/books/nexus-book/reference/maven-sect-single-gro
up.html i.e. included snapshot repository to the public group and
created the settings.xml and everything is working except deploying of
the snapshot

I don't have  section in my pom file though,
does that matter? If so, what should go in there? Because I don't seem
to need it when deploying releases

It seems to me that the reason its failing is because I need to proivde
login and password for the server where I am trying to upload the
snapshot("Authentication failed"), where do I specify that?

Any help will be great

Thanks


Shahzad Qureshi



Re: Maven central has corrupted artifact org.apache.xbean:xbean-finder-shaded:jar:3.6

2010-01-28 Thread Brian Fox
I'll fix them on the apache repo.

On Thu, Jan 28, 2010 at 2:55 PM, kevan  wrote:
>
>
>
> Wendy Smoak-3 wrote:
>>
>> On Wed, Jan 27, 2010 at 7:16 AM, Markku Saarela 
>> wrote:
>>
>>> org.apache.xbean:xbean-finder-shaded:jar:3.6 artifact MD5 checksum does
>>> not
>>> match, so our Artifactory reject it's download.
>>>
>>> So where can i get original jar file?
>>
>> I wouldn't assume the jar is wrong without verifying the gpg
>> signature... which I can't do because the public key is nowhere to be
>> found.
>>
>> This needs to be addressed by the XBean project developers, not here.
>> I forwarded your note to d...@geronimo (assuming it doesn't bounce; I'm
>> not subscribed) to ask the developers about the problem.
>>
>
> The jar file signature verifies for me. It's signed by David Jencks from the
> Geronimo project (XBean is a subproject). His key can be found in
> http://www.apache.org/dist/geronimo/KEYS
>
> There is a problem with the md5/sha checksum. IIUC, Maven 2.2 was used in
> creating the xbean 3.6 release. Evidently 2.2 had an issue uploading files
> to Nexus twice and calculating checksums on the doubled files (apologies if
> I have the details wrong).
>
> Any recommendations on how we can get these xbean 3.6 checksums fixed?
>
> --kevan
>
> --
> View this message in context: 
> http://old.nabble.com/Maven-central-has-corrupted-artifact-org.apache.xbean%3Axbean-finder-shaded%3Ajar%3A3.6-tp27340027p27358784.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 central has corrupted artifact org.apache.xbean:xbean-finder-shaded:jar:3.6

2010-01-28 Thread kevan



Wendy Smoak-3 wrote:
> 
> On Wed, Jan 27, 2010 at 7:16 AM, Markku Saarela 
> wrote:
> 
>> org.apache.xbean:xbean-finder-shaded:jar:3.6 artifact MD5 checksum does
>> not
>> match, so our Artifactory reject it's download.
>>
>> So where can i get original jar file?
> 
> I wouldn't assume the jar is wrong without verifying the gpg
> signature... which I can't do because the public key is nowhere to be
> found.
> 
> This needs to be addressed by the XBean project developers, not here.
> I forwarded your note to d...@geronimo (assuming it doesn't bounce; I'm
> not subscribed) to ask the developers about the problem.
> 

The jar file signature verifies for me. It's signed by David Jencks from the
Geronimo project (XBean is a subproject). His key can be found in
http://www.apache.org/dist/geronimo/KEYS

There is a problem with the md5/sha checksum. IIUC, Maven 2.2 was used in
creating the xbean 3.6 release. Evidently 2.2 had an issue uploading files
to Nexus twice and calculating checksums on the doubled files (apologies if
I have the details wrong). 

Any recommendations on how we can get these xbean 3.6 checksums fixed?

--kevan

-- 
View this message in context: 
http://old.nabble.com/Maven-central-has-corrupted-artifact-org.apache.xbean%3Axbean-finder-shaded%3Ajar%3A3.6-tp27340027p27358784.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: Dependency plugin strange behavior

2010-01-28 Thread Brian Fox
I would phrase it differently:

The copy/unpack goals where designed to manipulate files that aren't
normal classpath "dependencies" of your project such as zips. The
plugin does its own resolution of these artifacts, but doesn't support
ranges or artifacts in the reactor.

The xxx-dependencies goals are designed to manipulate files that ARE
listed in your dependency list and it relies on Maven Core resolving
the artifacts prior to the plugin execution.

2010/1/26 Stephen Connolly :
> dependency:unpack works on artifacts that are not produced as part of your
> build and are not listed as dependencies, as a result you must specify the
> full GAV coordinates to resolve the artifact, and if you are foolish enough
> to use it for an artifact that is produced as part of the same build that
> your project is part of, then you will not be able to release that
> multi-module project with the maven-release-plugin.
>
> dependency:unpack-dependencies works on artifacts that are produced in the
> reactor (i.e. all the projects in the multi-module build that your project
> is part of).
>
> This same pairing exists with dependency:copy vs
> dependency:copy-dependencies
>
> -Stephen
>
> 2010/1/26 Thiago Moreira (timba) 
>
>>  Hi there,
>>
>>  I'm facing a strange behavior with the dependency plugin. Here is my
>> configuration
>>
>> 
>>  org.apache.maven.plugins
>> maven-dependency-plugin
>>  2.1
>> 
>> 
>>  copy-dependencies
>> process-sources
>>  
>> copy-dependencies
>> 
>>  
>> ${basedir}/target/site/demo
>>  false
>> true
>>  true
>> true
>>  
>> 
>> 
>>  unpack
>> process-sources
>>  
>> unpack
>> 
>>  
>> 
>> 
>>  net.sourceforge.floggy
>> floggy-persistence-weaver
>>  ${basedir}/target/site
>> schema/*
>>  
>> 
>>   
>>  
>> 
>> 
>>
>>  For the copy-dependencies execution it works fine but for the unpack
>> execution it claims that cannot revolve the dependency
>> net.sourceforge.floggy:floggy-persistence-weaver BUT this dependency is
>> declared at dependencies section and it is a sibling project of the current
>> one in a multi module project. The only difference that I can observe is
>> that in one execution (unpack ID) I made an explicit reference to the
>> dependency.
>>  Any clue why? Any workaround?
>>
>>  Thanks
>>
>>  Thiago Moreira
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: How do I find the Jar that conatains this method signature?

2010-01-28 Thread Wayne Fay
> org.apache.xpath.compiler.FunctionTable.installFunction(Ljava/lang/String;Ljava/lang/Class;)I
> java.lang.NoSuchMethodError:
> org.apache.xpath.compiler.FunctionTable.installFunction(Ljava/lang/String;Ljava/lang/Class;)I
>at
> com.gargoylesoftware.htmlunit.html.xpath.XPathAdapter.initFunctionTable(XPathAdapter.java:52)

Perhaps the XPath team can help since this appears to be their
codebase. Otherwise ask htmlunit team maybe?

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



How do I find the Jar that conatains this method signature?

2010-01-28 Thread laredotornado

Hi,

I'm using an older version of Maven (1.1) for my project.  I am getting the
error when running unit tests ...

org.apache.xpath.compiler.FunctionTable.installFunction(Ljava/lang/String;Ljava/lang/Class;)I
java.lang.NoSuchMethodError:
org.apache.xpath.compiler.FunctionTable.installFunction(Ljava/lang/String;Ljava/lang/Class;)I
at
com.gargoylesoftware.htmlunit.html.xpath.XPathAdapter.initFunctionTable(XPathAdapter.java:52)
at
com.gargoylesoftware.htmlunit.html.xpath.XPathAdapter.(XPathAdapter.java:68)
at
com.gargoylesoftware.htmlunit.html.xpath.XPathUtils.evaluateXPath(XPathUtils.java:128)
at
com.gargoylesoftware.htmlunit.html.xpath.XPathUtils.getByXPath(XPathUtils.java:72)
at
com.gargoylesoftware.htmlunit.javascript.host.HTMLCollection.computeElements(HTMLCollection.java:245)


Does anyone know how I can figure out what JAR and its specific version
contains the class and method with the specified signature?  I want to use
htmlunit 2.5 and as such, thought I had included all the relevant JARs in my
dependency list, but I guess not.  

Project.xml is below.  Thanks, - Dave


Begin project.xml ==


../project.xml
myco-dor-online-interlock-test
myco-dor-online-interlock-test
myco Interlock Tests
myco Interlock Tests


src/main/test


**/*Test.java





${basedir}/src/main/resources

**/*.xml
**/*.properties




${basedir}/../service/src/main/resources

**/*.xml






myco.dor.online.interlock
myco-dor-online-interlock-model
${pom.currentVersion}

true
true



myco.dor.online.interlock

myco-dor-online-interlock-service
${pom.currentVersion}
jar



net.sourceforge.jwebunit
jwebunit-htmlunit-plugin
2.2


junit
junit
3.8.1


net.sourceforge.cssparser
cssparser
0.9.5


net.sourceforge.htmlunit
htmlunit
2.5


net.sourceforge.htmlunit
htmlunit-core-js
2.5


net.sourceforge.jwebunit
jwebunit-commons-tests
2.2


net.sourceforge.jwebunit
jwebunit-core
2.2


net.sourceforge.nekohtml
nekohtml
1.9.12


org.mockito
mockito-all
1.7


org.mortbay.jetty
jetty
6.1.12



org.slf4j
slf4j-api
1.5.0


org.slf4j
slf4j-log4j12
1.5.0


org.w3c.css
sac
1.3


org.apache.regexp
regexp
1.3


xalan
xalan
2.7.1


xerces
xercesImpl
2.8.1


xml-apis
xml-apis
 

Re: Plugin executions vs. POM inheritance

2010-01-28 Thread Lóránt Pintér
Thanks, this works with the dependency plugin now. But I cannot get it
working with the assembly plugin. I do the same, though: add
false to the execution in the parent, and only
add the ID of this execution in the child module. What am I still
doing wrong?

Lóránt

On Thu, Jan 28, 2010 at 13:50, Stephen Connolly
 wrote:
> false
>
> 2010/1/28 Lóránt Pintér 
>
>> Hi,
>>
>> I'm using the dependency plugin a lot to copy stuff around (mostly to
>> get around the assembly plugin not allowing me to add arbitrary
>> artifacts to assemblies). Some uses are general, and are needed in
>> more than one module. AFAIK I should define these "general" executions
>> in a parent POM, under the  section, and "call" them
>> from the actual modules by just specifying their execution ID, like:
>>
>> 
>>        maven-dependency-plugin
>>        
>>                
>>                        unpack-all-swt
>>                
>>                
>>                        unpack-all-native
>>                
>>        
>> 
>>
>> However, the thing above does not only execute the "unpack-all-swt"
>> and "unpack-all-native" executions, but all other executions defined
>> in the parent POM. This also applies if I don't refer to executions
>> defined in parent at all, but define a new dependency plugin execution
>> in the child module.
>>
>> It seems to me that if I "mention" a plugin in a child module, I get
>> all its executions defined in  in the parent as
>> well. Is this as designed?
>>
>> If this is the way it should work, is there a way to achieve what I
>> want? I.e. define some utility executions in parent that can be called
>> in child modules, but independent of other executions.
>>
>> --
>> Regards,
>> Lóránt
>>
>> -
>> 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: Mavenizing solr webapp

2010-01-28 Thread Licinio Fernández Maurelo
Thanks for your replies Antonio, i'll take a better approach and refuse the
reuse of ant build reuse.

2010/1/28 Antonio Petrelli 

> 2010/1/28 Licinio Fernández Maurelo :
> > *Step one*: pom calls the ant-target that generates the artifacts
> >...
> > Step two: maven compiles de webapp including in the classpath some of the
> > previous' phase generated jar's.
>
> Notice that I don't like this approach, since I am a purist.
> Anyway, I suggest you to compile only once your code altogether
> (libraries and webapp-related code) and then package the jars where
> they belong.
> It's almost impossible to compile, in maven, putting a local library
> in the classpath of the compiler.
>
> Antonio
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
Lici
~Java Developer~


Re: Mavenizing solr webapp

2010-01-28 Thread Antonio Petrelli
2010/1/28 Licinio Fernández Maurelo :
> *Step one*: pom calls the ant-target that generates the artifacts
>...
> Step two: maven compiles de webapp including in the classpath some of the
> previous' phase generated jar's.

Notice that I don't like this approach, since I am a purist.
Anyway, I suggest you to compile only once your code altogether
(libraries and webapp-related code) and then package the jars where
they belong.
It's almost impossible to compile, in maven, putting a local library
in the classpath of the compiler.

Antonio

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Re: Adding variable in eclipse project

2010-01-28 Thread roberto . caldas
Thank you.

I did this:


${env.tool_LICENSE}


inside the "project" context but nothing happened. I didn't explain my 
problem well, I want to add a variable that's already defined in eclipse, 
that is, I want the eclipse plugin to add

in the .classpath file.

Roberto 
This message is intended solely for the use of its addressee and may 
contain privileged or confidential information. All information contained 
herein shall be treated as confidential and shall not be disclosed to any 
third party without Embraer?s prior written approval. If you are not the 
addressee you should not distribute, copy or file this message. In this 
case, please notify the sender and destroy its contents immediately.
Esta mensagem é para uso exclusivo de seu destinatário e pode conter 
informações privilegiadas e confidenciais. Todas as informações aqui 
contidas devem ser tratadas como confidenciais e não devem ser divulgadas 
a terceiros sem o prévio consentimento por escrito da Embraer. Se você não 
é o destinatário não deve distribuir, copiar ou arquivar a mensagem. Neste 
caso, por favor, notifique o remetente da mesma e destrua imediatamente a 
mensagem.

Re: Mavenizing solr webapp

2010-01-28 Thread Licinio Fernández Maurelo
You're right Antonio, but as we modified code the public solr artifacts
don't work for us. Let me explain the sequence i want to implement in the
build process.

*Step one*: pom calls the ant-target that generates the artifacts

  
build.xml dist target
process-sources

run











Step two: maven compiles de webapp including in the classpath some of the
previous' phase generated jar's.

(my question)

Step three: Package the war file with the compiled webapp code, static
resources and some of the libraries generated in phase 1.


Step four: Install the resultant artifact into local repository






2010/1/28 Antonio Petrelli 

> 2010/1/28 Licinio Fernández Maurelo :
> > As we are changing part of the code we just want to integrate the
> > solr-webapp into our projects. As i said, don't want to mavenize the
> whole
> > project.
>
> Wait a Minute, I see that Solr packages are already available at the
> main repository, with the exception of the War itself...
> IMHO you need to put only the correct dependencies. Or does the
> build.xml do strange things in the final package?
>
> Antonio
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
Lici
~Java Developer~


Re: Mavenizing solr webapp

2010-01-28 Thread Antonio Petrelli
2010/1/28 Licinio Fernández Maurelo :
> As we are changing part of the code we just want to integrate the
> solr-webapp into our projects. As i said, don't want to mavenize the whole
> project.

Wait a Minute, I see that Solr packages are already available at the
main repository, with the exception of the War itself...
IMHO you need to put only the correct dependencies. Or does the
build.xml do strange things in the final package?

Antonio

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Adding variable in eclipse project

2010-01-28 Thread bernd . adamowicz
Add the build-helper-maven-plugin to your project's POM. This may look 
something like this:

 65 
 66 org.codehaus.mojo
 67 build-helper-maven-plugin
 68 1.1
 69 
 70 
 71 add-source
 72 generate-sources
 73 
 74 add-source
 75 
 76 
 77 
 78 ${basedir}path/to/your/keyfile.file
 79 
 80 
 81 
 82 
 83 

Have a look at the documentation of this plugin because in your case it 
might be better to use the 'add-resourc' goal than the 'add-source'.

However, before doing this you should check if it isn't a better choice to 
place your file below 'src/main/resources' which will make it 
automatically available in the classpath without any change to the POM.

Bernd





roberto.cal...@embraer.com.br wrote on 28.01.2010 13:47:32:

> [image removed] 
> 
> Adding variable in eclipse project
> 
> roberto.caldas 
> 
> to:
> 
> users
> 
> 28.01.2010 16:17
> 
> Please respond to "Maven Users List"
> 
> I am using the eclipse plugin to generate eclipse projects but I have 
this 
> project wtih a dependency that uses a key file located in a certain 
> directory. So everytime I create the project I must manually add this 
path 
> as a variable using the build path option on the project properties on 
> eclipse. How do I add this in the pom file?
> Thank you.
> 
> Roberto
> 
> This message is intended solely for the use of its addressee and may 
> contain privileged or confidential information. All information 
contained 
> herein shall be treated as confidential and shall not be disclosed to 
any 
> third party without Embraer?s prior written approval. If you are not the 

> addressee you should not distribute, copy or file this message. In this 
> case, please notify the sender and destroy its contents immediately.
> Esta mensagem é para uso exclusivo de seu destinatário e pode conter 
> informações privilegiadas e confidenciais. Todas as informações aqui 
> contidas devem ser tratadas como confidenciais e não devem ser 
divulgadas 
> a terceiros sem o prévio consentimento por escrito da Embraer. Se você 
não 
> é o destinatário não deve distribuir, copiar ou arquivar a mensagem. 
Neste 
> caso, por favor, notifique o remetente da mesma e destrua imediatamente 
a 
> mensagem.


InterComponentWare AG:  
Vorstand: Peter Kirschbauer (Vors.), Jörg Stadler / Aufsichtsratsvors.: Prof. 
Dr. Christof Hettich  
Firmensitz: 69190 Walldorf, Industriestraße 41 / AG Mannheim HRB 351761 / 
USt.-IdNr.: DE 198388516  

Re: Adding variable in eclipse project

2010-01-28 Thread Antonio Petrelli
2010/1/28  :
> I am using the eclipse plugin to generate eclipse projects but I have this
> project wtih a dependency that uses a key file located in a certain
> directory. So everytime I create the project I must manually add this path
> as a variable using the build path option on the project properties on
> eclipse. How do I add this in the pom file?


/path/to/it


Antonio

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Adding variable in eclipse project

2010-01-28 Thread roberto . caldas
I am using the eclipse plugin to generate eclipse projects but I have this 
project wtih a dependency that uses a key file located in a certain 
directory. So everytime I create the project I must manually add this path 
as a variable using the build path option on the project properties on 
eclipse. How do I add this in the pom file?
Thank you.

Roberto

This message is intended solely for the use of its addressee and may 
contain privileged or confidential information. All information contained 
herein shall be treated as confidential and shall not be disclosed to any 
third party without Embraer?s prior written approval. If you are not the 
addressee you should not distribute, copy or file this message. In this 
case, please notify the sender and destroy its contents immediately.
Esta mensagem é para uso exclusivo de seu destinatário e pode conter 
informações privilegiadas e confidenciais. Todas as informações aqui 
contidas devem ser tratadas como confidenciais e não devem ser divulgadas 
a terceiros sem o prévio consentimento por escrito da Embraer. Se você não 
é o destinatário não deve distribuir, copiar ou arquivar a mensagem. Neste 
caso, por favor, notifique o remetente da mesma e destrua imediatamente a 
mensagem.

Re: starting tomcat in pre-integrations-test haults build

2010-01-28 Thread Douglas Ferguson
I'm running the ant run plugin and in ant I'm using the exec target. 
I got the same results with the maven exec plugin.

Inside the ant task I exec a script that runs the installer for my app, which 
stops tomcat at the beginning and then starts it.

this causes maven to hang.

My work around is to call a wrapper script that runs the installer then stops 
tomcat.
Then i have a second ant task that start tomcat with spawn=true.

I will take some time later to set it back and run with -X option..

D/

On Jan 28, 2010, at 8:52 AM, Anders Hammar wrote:

> You have to provide more info, like log outputs etc., for us to help. What
> plugins are you using, what's your config?
> 
> First of all, try debugging by executing
> mvn install -X
> 
> /Anders
> 
> On Thu, Jan 28, 2010 at 15:24, Douglas Ferguson
> wrote:
> 
>> If I start tomcat in the pre-integration-test the build hangs.
>> 
>> Why is this?
>> 
>> D/
>> 
>> -
>> 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: starting tomcat in pre-integrations-test haults build

2010-01-28 Thread Anders Hammar
You have to provide more info, like log outputs etc., for us to help. What
plugins are you using, what's your config?

First of all, try debugging by executing
mvn install -X

/Anders

On Thu, Jan 28, 2010 at 15:24, Douglas Ferguson
wrote:

> If I start tomcat in the pre-integration-test the build hangs.
>
> Why is this?
>
> D/
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: maven archetype from command line vs from eclipse

2010-01-28 Thread Martin Höller
Hi!

* m2eclipse is a plugin for eclipse that integrates maven into the IDE.
* maven-eclipse-plugin is a maven plugin that produces eclipse configartion 
  files.

See http://docs.codehaus.org/display/MAVENUSER/Eclipse+Integration for some 
details.

hth,
- martin

On Thursday 28 January 2010 veena pandit wrote:
> I am confused.I am using m2eclipse,  I thought that was the eclipse
> plugin. Maybe that is where the problem is.
>
> Thanks,
>
> Sonia
>
> On Wed, Jan 27, 2010 at 5:10 PM, Wayne Fay  wrote:
> >> However, when I import the same project into eclipse and select
> >> index.jsp and click run on server, I get a 404.
> >> Not sure what I have to configure.
> >
> > Try using m2eclipse instead of the eclipse plugin.
> >
> > Wayne
> >
> > -
> > 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




signature.asc
Description: This is a digitally signed message part.


Re: Mavenizing solr webapp

2010-01-28 Thread Licinio Fernández Maurelo
As we are changing part of the code we just want to integrate the
solr-webapp into our projects. As i said, don't want to mavenize the whole
project.

2010/1/28 Antonio Petrelli 

> 2010/1/28 Licinio Fernández Maurelo :
> > Hi everybody. I'm trying to build apache-solr *webapp* (not the whole
> > project) using maven .
>
> I think this is the big mistake: if you mavenize a project, then all
> of the dependencies should be available, at least, as maven artifacts.
> That means, usually, that all the dependencies must be mavenized for
> good. If you don't do it, your POM will be simply a wrapper to Ant
> targets.
> Is there a reason not to mavenize the whole project?
>
> Antonio
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
Lici
~Java Developer~


connectionUrl to accurev provider

2010-01-28 Thread eyal edri
i'm trying to use the accurev provider plugin:

 
  org.apache.maven.scm
  maven-scm-provider-accurev
  1.3
  

  


i understood the connectionUrl has been changed since ISSUE 445?

i can't find an example anywhere, can someone help with an example of
configuration including the connection url?

for the scm/release plugin to work.

thanks!


-- 
Eyal Edri


Re: maven archetype from command line vs from eclipse

2010-01-28 Thread veena pandit
I am confused.I am using m2eclipse,  I thought that was the eclipse plugin.
Maybe that is where the problem is.

Thanks,

Sonia

On Wed, Jan 27, 2010 at 5:10 PM, Wayne Fay  wrote:
>> However, when I import the same project into eclipse and select
>> index.jsp and click run on server, I get a 404.
>> Not sure what I have to configure.
>
> Try using m2eclipse instead of the eclipse plugin.
>
> Wayne
>
> -
> 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: Mavenizing solr webapp

2010-01-28 Thread Antonio Petrelli
2010/1/28 Licinio Fernández Maurelo :
> Hi everybody. I'm trying to build apache-solr *webapp* (not the whole
> project) using maven .

I think this is the big mistake: if you mavenize a project, then all
of the dependencies should be available, at least, as maven artifacts.
That means, usually, that all the dependencies must be mavenized for
good. If you don't do it, your POM will be simply a wrapper to Ant
targets.
Is there a reason not to mavenize the whole project?

Antonio

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Profile propagation

2010-01-28 Thread Ron Wheeler
If I was doing this, I would make projects to hold the shared code and 
build these into libraries.
Then I would make a OS specific project that had these libraries as 
dependencies.
I would add an Maven Assembly to each of the top level projects that 
built a package consisting of the OS-specific top level stuff combined 
with all of the dependencies including my shared libraries.


Projects
LIB1 contains shared OS-independent code relating to functional area 1
LIB2 contains shared OS-independent code relating to functional area 2
LIB3 contains shared Windows code relating to functional area xxx
LIB4 contains shared Linux code relating to functional area yyy
PROJ5 contains main Windows Code and depends on
   - LIB1
   - LIB2
   - LIB3
PROJ6 contains main Windows Code and depends on
   - LIB1
   - LIB2
   - LIB4

PROJ5 and PROJ6 have Assemblies that build an output artifact containing 
all the code required to run on their respective OS's.


Ron


Stephen Connolly wrote:

You have project A which has your source

Then you have project A-linux which depends on A and adds the linux deps

project A-win which depends on A and adds the windows deps

Then if you need the windows specific version, you depend on A-win, and
depend on A-linux for the linux specific version.

Alternatively, if the windows deps do not overlap the linux deps (i.e. they
don't provide the same classes) then you could just add both sets of deps to
A with true, or perhaps use provided scope and remember
to add them back in.

-Stephen

2010/1/27 

  

Thank you for answering, Stephen. I'll do two projects, but new questions
arise from this:

1 - how can I create 2 projects (2 poms) that uses the same src?

2 - If I have this project A that uses dependencies based on system, I'll
create a A_win and A_linux. I have many other projects B, C, D, E that
uses A, will I have to create 2 projects for each of them?

Thanks

Roberto Soares Caldas

Stephen Connolly wrote:

dependencies included in profiles activated based on jdk or os is a "bad
thing"

the dependencies will be pulled in based on the _system doing the build_
not
on the _target system_

better is to produce two separate projects which add the required
dependencies

2010/1/27 



I am using profiles to build a jar with different dependencies -
  

sometimes


I have to use a dependency for linux64 and sometimes for win32. I have
another project that adds this project as dependency and I'm not able to
somehow "propagate" this profile utilization to this other project, that
is, when I try to make "mvn install -Plinux64" I always get a MANIFEST
with the win32 dependency - the active by default.  So my question is,
  

if


I have a project whose its dependency has multiple profiles, how do I
activate them when trying to install this project?

I'm using Maven 2.0.9.

Sorry for my bad English, please tell me if I was not clear.
Thank you.

Roberto
  

This message is intended solely for the use of its addressee and may
contain privileged or confidential information. All information contained
herein shall be treated as confidential and shall not be disclosed to any
third party without Embraer?s prior written approval. If you are not the
addressee you should not distribute, copy or file this message. In this
case, please notify the sender and destroy its contents immediately.
Esta mensagem é para uso exclusivo de seu destinatário e pode conter
informações privilegiadas e confidenciais. Todas as informações aqui
contidas devem ser tratadas como confidenciais e não devem ser divulgadas
a terceiros sem o prévio consentimento por escrito da Embraer. Se você não
é o destinatário não deve distribuir, copiar ou arquivar a mensagem. Neste
caso, por favor, notifique o remetente da mesma e destrua imediatamente a
mensagem.




  




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



starting tomcat in pre-integrations-test haults build

2010-01-28 Thread Douglas Ferguson
If I start tomcat in the pre-integration-test the build hangs.

Why is this?

D/

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Mavenizing solr webapp

2010-01-28 Thread Licinio Fernández Maurelo
Hi everybody. I'm trying to build apache-solr *webapp* (not the whole
project) using maven . Also want to reuse the build.xml ant file.

The directory structure is:

+build
+client
+contrib
.
+src
 +webapp/src --webapp code
+dist --generated artifacts by the ant script
  --must be copied to the webapp WEB-INF/lib
  --some of them are also needed for webapp code compilation

I've successfully called the ant target that compiles and populates the dist
dir.

What I need is to:

1) Include some of the jars that reside in the dist directory to compile the
webapp code.

2) Package some of the jars in the war artifact maven builds.

Any help would be much appreciated


-- 
Lici
~Java Developer~


Re: Plugin executions vs. POM inheritance

2010-01-28 Thread Stephen Connolly
false

2010/1/28 Lóránt Pintér 

> Hi,
>
> I'm using the dependency plugin a lot to copy stuff around (mostly to
> get around the assembly plugin not allowing me to add arbitrary
> artifacts to assemblies). Some uses are general, and are needed in
> more than one module. AFAIK I should define these "general" executions
> in a parent POM, under the  section, and "call" them
> from the actual modules by just specifying their execution ID, like:
>
> 
>maven-dependency-plugin
>
>
>unpack-all-swt
>
>
>unpack-all-native
>
>
> 
>
> However, the thing above does not only execute the "unpack-all-swt"
> and "unpack-all-native" executions, but all other executions defined
> in the parent POM. This also applies if I don't refer to executions
> defined in parent at all, but define a new dependency plugin execution
> in the child module.
>
> It seems to me that if I "mention" a plugin in a child module, I get
> all its executions defined in  in the parent as
> well. Is this as designed?
>
> If this is the way it should work, is there a way to achieve what I
> want? I.e. define some utility executions in parent that can be called
> in child modules, but independent of other executions.
>
> --
> Regards,
> Lóránt
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


maven-surefire-plugin 2.5 with POJO test provider :: public int test* methods are not called.

2010-01-28 Thread Menelaos Perdikeas

I am using maven-surefire-plugin 2.5 with POJO tests (JDK 1.4 assert).
Though the documentation at:
http://maven.apache.org/plugins/maven-surefire-plugin/usage.html

states that :
"They [POJO Tests] behave in the same way, running all test* methods
that are public in the class, but the API dependency is not required."

in reality I have found that "public void test*" methods are indeed
called but not "public int test*" methods.

May somebody should correct the documentation at the page above.

--
Menelaos Perdikeas




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven download the dependency of a error version?

2010-01-28 Thread Anders Hammar
You should use m2eclipse. You want to have one dev environment setup, not
having to manage two separate ones - the POM should be the master. And you
would get many nice features like dep graphs and easier management of your
deps. And eventuelly you'll also get much fast builds (incremental builds,
already partly in place in 0.9.9-dev). And, maybe most importantly, the
maven configuration and eclipse configuration will be synced. We're not
there yet though, but I believe we will be for the major plugins in v1.0 of
m2e.

But make sure you use the latest 0.9.9-dev build, not v0.9.8 of m2e.

/Anders

On Thu, Jan 28, 2010 at 10:22, maven apache  wrote:

> BTW, do you think it is a good idea to use m2eclipse? or other IDE
> integrate
> with maven?
>
> Beacuse I found if I work without m2eclipse, each I edit the pom, I should
> use mvn eclipse:eclipse to update the .classpath ,however the m2eclipse
> work
> rather slowly :(.
> How about your?
>
> 2010/1/28 Anders Hammar 
>
> > I also see that they add other repositories in their pom. A total mess...
> >
> > /A
> >
> > On Thu, Jan 28, 2010 at 10:05, Stephen Connolly <
> > stephen.alan.conno...@gmail.com> wrote:
> >
> > > Correct, based on their pom this is one of those examples of why it
> > is
> > > a
> > > bad plan to add dependencies in a profile that is activated based on
> the
> > > build JDK and/or OS
> > >
> > > 2010/1/28 maven apache 
> > >
> > > > 2010/1/28 Anders Hammar 
> > > >
> > > > > Here you go:
> > > > >
> > > > >
> > > >
> > >
> >
> http://repo1.maven.org/maven2/org/apache/rampart/rampart-project/1.4/rampart-project-1.4.pom
> > > > >
> > > > > I didn't look closely enough. The JDK1.4 profile is active by
> > default,
> > > do
> > > > > as
> > > > > you're NOT using JDK 1.5 that profile is not going to kick in.
> > > > >
> > > > Oh, my fault, I did not check it clearly enouth.
> > > > You mean not matter which jdk I use( configed in the compile
> version?),
> > > as
> > > > long as the version is not 1.5(for my case , it is 1.6), the jdk14
> > > profile
> > > > will be actived?
> > > >
> > > > >
> > > > > /Anders
> > > > >
> > > > > On Thu, Jan 28, 2010 at 09:30, maven apache <
> apachemav...@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > 2010/1/28 Anders Hammar 
> > > > > >
> > > > > > > You're building with JDK 1.4, not JDK 1.5.
> > > > > >
> > > > > > How? I did not sepcify 1.4 or .1.5.
> > > > > > In the parent pom of my project I config the compile version to
> > 1.6,
> > > > and
> > > > > my
> > > > > > eclipse are using jdk1.6_18
> > > > > >
> > > > > >
> > > > > > > There are profiles in the pom of
> > > > > > >
> > > > > > > org.apache.rampart:rampart-policy:jar:1.4
> > > > > > >
> > > > > > > (Actually, the profiles are in the parent of that project).
> > > > > > >
> > > > > > Yes, I know this, I have check the pom.
> > > > > >
> > > > > > >
> > > > > > > The homepage which you refer to isn't telling the complete
> > truth...
> > > > > > >
> > > > > > > /Anders
> > > > > > > On Thu, Jan 28, 2010 at 09:15, maven apache <
> > > apachemav...@gmail.com>
> > > > > > > wrote:
> > > > > > >
> > > > > > > > Hi:
> > > > > > > > I found a strange problem, it seems that maven may download a
> > > wrong
> > > > > > > version
> > > > > > > > for a transitive dependency.
> > > > > > > > Details can be found here :
> > > > > > > > http://dpaste.com/151511/
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>


Plugin executions vs. POM inheritance

2010-01-28 Thread Lóránt Pintér
Hi,

I'm using the dependency plugin a lot to copy stuff around (mostly to
get around the assembly plugin not allowing me to add arbitrary
artifacts to assemblies). Some uses are general, and are needed in
more than one module. AFAIK I should define these "general" executions
in a parent POM, under the  section, and "call" them
from the actual modules by just specifying their execution ID, like:


maven-dependency-plugin


unpack-all-swt


unpack-all-native




However, the thing above does not only execute the "unpack-all-swt"
and "unpack-all-native" executions, but all other executions defined
in the parent POM. This also applies if I don't refer to executions
defined in parent at all, but define a new dependency plugin execution
in the child module.

It seems to me that if I "mention" a plugin in a child module, I get
all its executions defined in  in the parent as
well. Is this as designed?

If this is the way it should work, is there a way to achieve what I
want? I.e. define some utility executions in parent that can be called
in child modules, but independent of other executions.

-- 
Regards,
Lóránt

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Maven Release Plugin and Mercurial???

2010-01-28 Thread Jacob Bergöö

Hi All,
have anybody used maven-release-plugin with Mercurial and if so, how did you
set it up?

Thanks
Jacob
-- 
View this message in context: 
http://old.nabble.com/Maven-Release-Plugin-and-Mercurialtp27353174p27353174.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 download the dependency of a error version?

2010-01-28 Thread maven apache
BTW, do you think it is a good idea to use m2eclipse? or other IDE integrate
with maven?

Beacuse I found if I work without m2eclipse, each I edit the pom, I should
use mvn eclipse:eclipse to update the .classpath ,however the m2eclipse work
rather slowly :(.
How about your?

2010/1/28 Anders Hammar 

> I also see that they add other repositories in their pom. A total mess...
>
> /A
>
> On Thu, Jan 28, 2010 at 10:05, Stephen Connolly <
> stephen.alan.conno...@gmail.com> wrote:
>
> > Correct, based on their pom this is one of those examples of why it
> is
> > a
> > bad plan to add dependencies in a profile that is activated based on the
> > build JDK and/or OS
> >
> > 2010/1/28 maven apache 
> >
> > > 2010/1/28 Anders Hammar 
> > >
> > > > Here you go:
> > > >
> > > >
> > >
> >
> http://repo1.maven.org/maven2/org/apache/rampart/rampart-project/1.4/rampart-project-1.4.pom
> > > >
> > > > I didn't look closely enough. The JDK1.4 profile is active by
> default,
> > do
> > > > as
> > > > you're NOT using JDK 1.5 that profile is not going to kick in.
> > > >
> > > Oh, my fault, I did not check it clearly enouth.
> > > You mean not matter which jdk I use( configed in the compile version?),
> > as
> > > long as the version is not 1.5(for my case , it is 1.6), the jdk14
> > profile
> > > will be actived?
> > >
> > > >
> > > > /Anders
> > > >
> > > > On Thu, Jan 28, 2010 at 09:30, maven apache 
> > > > wrote:
> > > >
> > > > > 2010/1/28 Anders Hammar 
> > > > >
> > > > > > You're building with JDK 1.4, not JDK 1.5.
> > > > >
> > > > > How? I did not sepcify 1.4 or .1.5.
> > > > > In the parent pom of my project I config the compile version to
> 1.6,
> > > and
> > > > my
> > > > > eclipse are using jdk1.6_18
> > > > >
> > > > >
> > > > > > There are profiles in the pom of
> > > > > >
> > > > > > org.apache.rampart:rampart-policy:jar:1.4
> > > > > >
> > > > > > (Actually, the profiles are in the parent of that project).
> > > > > >
> > > > > Yes, I know this, I have check the pom.
> > > > >
> > > > > >
> > > > > > The homepage which you refer to isn't telling the complete
> truth...
> > > > > >
> > > > > > /Anders
> > > > > > On Thu, Jan 28, 2010 at 09:15, maven apache <
> > apachemav...@gmail.com>
> > > > > > wrote:
> > > > > >
> > > > > > > Hi:
> > > > > > > I found a strange problem, it seems that maven may download a
> > wrong
> > > > > > version
> > > > > > > for a transitive dependency.
> > > > > > > Details can be found here :
> > > > > > > http://dpaste.com/151511/
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>


Re: maven download the dependency of a error version?

2010-01-28 Thread Anders Hammar
I also see that they add other repositories in their pom. A total mess...

/A

On Thu, Jan 28, 2010 at 10:05, Stephen Connolly <
stephen.alan.conno...@gmail.com> wrote:

> Correct, based on their pom this is one of those examples of why it is
> a
> bad plan to add dependencies in a profile that is activated based on the
> build JDK and/or OS
>
> 2010/1/28 maven apache 
>
> > 2010/1/28 Anders Hammar 
> >
> > > Here you go:
> > >
> > >
> >
> http://repo1.maven.org/maven2/org/apache/rampart/rampart-project/1.4/rampart-project-1.4.pom
> > >
> > > I didn't look closely enough. The JDK1.4 profile is active by default,
> do
> > > as
> > > you're NOT using JDK 1.5 that profile is not going to kick in.
> > >
> > Oh, my fault, I did not check it clearly enouth.
> > You mean not matter which jdk I use( configed in the compile version?),
> as
> > long as the version is not 1.5(for my case , it is 1.6), the jdk14
> profile
> > will be actived?
> >
> > >
> > > /Anders
> > >
> > > On Thu, Jan 28, 2010 at 09:30, maven apache 
> > > wrote:
> > >
> > > > 2010/1/28 Anders Hammar 
> > > >
> > > > > You're building with JDK 1.4, not JDK 1.5.
> > > >
> > > > How? I did not sepcify 1.4 or .1.5.
> > > > In the parent pom of my project I config the compile version to 1.6,
> > and
> > > my
> > > > eclipse are using jdk1.6_18
> > > >
> > > >
> > > > > There are profiles in the pom of
> > > > >
> > > > > org.apache.rampart:rampart-policy:jar:1.4
> > > > >
> > > > > (Actually, the profiles are in the parent of that project).
> > > > >
> > > > Yes, I know this, I have check the pom.
> > > >
> > > > >
> > > > > The homepage which you refer to isn't telling the complete truth...
> > > > >
> > > > > /Anders
> > > > > On Thu, Jan 28, 2010 at 09:15, maven apache <
> apachemav...@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > Hi:
> > > > > > I found a strange problem, it seems that maven may download a
> wrong
> > > > > version
> > > > > > for a transitive dependency.
> > > > > > Details can be found here :
> > > > > > http://dpaste.com/151511/
> > > > > >
> > > > >
> > > >
> > >
> >
>


Re: maven download the dependency of a error version?

2010-01-28 Thread Stephen Connolly
Correct, based on their pom this is one of those examples of why it is a
bad plan to add dependencies in a profile that is activated based on the
build JDK and/or OS

2010/1/28 maven apache 

> 2010/1/28 Anders Hammar 
>
> > Here you go:
> >
> >
> http://repo1.maven.org/maven2/org/apache/rampart/rampart-project/1.4/rampart-project-1.4.pom
> >
> > I didn't look closely enough. The JDK1.4 profile is active by default, do
> > as
> > you're NOT using JDK 1.5 that profile is not going to kick in.
> >
> Oh, my fault, I did not check it clearly enouth.
> You mean not matter which jdk I use( configed in the compile version?), as
> long as the version is not 1.5(for my case , it is 1.6), the jdk14 profile
> will be actived?
>
> >
> > /Anders
> >
> > On Thu, Jan 28, 2010 at 09:30, maven apache 
> > wrote:
> >
> > > 2010/1/28 Anders Hammar 
> > >
> > > > You're building with JDK 1.4, not JDK 1.5.
> > >
> > > How? I did not sepcify 1.4 or .1.5.
> > > In the parent pom of my project I config the compile version to 1.6,
> and
> > my
> > > eclipse are using jdk1.6_18
> > >
> > >
> > > > There are profiles in the pom of
> > > >
> > > > org.apache.rampart:rampart-policy:jar:1.4
> > > >
> > > > (Actually, the profiles are in the parent of that project).
> > > >
> > > Yes, I know this, I have check the pom.
> > >
> > > >
> > > > The homepage which you refer to isn't telling the complete truth...
> > > >
> > > > /Anders
> > > > On Thu, Jan 28, 2010 at 09:15, maven apache 
> > > > wrote:
> > > >
> > > > > Hi:
> > > > > I found a strange problem, it seems that maven may download a wrong
> > > > version
> > > > > for a transitive dependency.
> > > > > Details can be found here :
> > > > > http://dpaste.com/151511/
> > > > >
> > > >
> > >
> >
>


Re: Re: Profile propagation

2010-01-28 Thread Stephen Connolly
You have project A which has your source

Then you have project A-linux which depends on A and adds the linux deps

project A-win which depends on A and adds the windows deps

Then if you need the windows specific version, you depend on A-win, and
depend on A-linux for the linux specific version.

Alternatively, if the windows deps do not overlap the linux deps (i.e. they
don't provide the same classes) then you could just add both sets of deps to
A with true, or perhaps use provided scope and remember
to add them back in.

-Stephen

2010/1/27 

> Thank you for answering, Stephen. I'll do two projects, but new questions
> arise from this:
>
> 1 - how can I create 2 projects (2 poms) that uses the same src?
>
> 2 - If I have this project A that uses dependencies based on system, I'll
> create a A_win and A_linux. I have many other projects B, C, D, E that
> uses A, will I have to create 2 projects for each of them?
>
> Thanks
>
> Roberto Soares Caldas
>
> Stephen Connolly wrote:
>
> dependencies included in profiles activated based on jdk or os is a "bad
> thing"
>
> the dependencies will be pulled in based on the _system doing the build_
> not
> on the _target system_
>
> better is to produce two separate projects which add the required
> dependencies
>
> 2010/1/27 
>
> > I am using profiles to build a jar with different dependencies -
> sometimes
> > I have to use a dependency for linux64 and sometimes for win32. I have
> > another project that adds this project as dependency and I'm not able to
> > somehow "propagate" this profile utilization to this other project, that
> > is, when I try to make "mvn install -Plinux64" I always get a MANIFEST
> > with the win32 dependency - the active by default.  So my question is,
> if
> > I have a project whose its dependency has multiple profiles, how do I
> > activate them when trying to install this project?
> >
> > I'm using Maven 2.0.9.
> >
> > Sorry for my bad English, please tell me if I was not clear.
> > Thank you.
> >
> > Roberto
>
> This message is intended solely for the use of its addressee and may
> contain privileged or confidential information. All information contained
> herein shall be treated as confidential and shall not be disclosed to any
> third party without Embraer?s prior written approval. If you are not the
> addressee you should not distribute, copy or file this message. In this
> case, please notify the sender and destroy its contents immediately.
> Esta mensagem é para uso exclusivo de seu destinatário e pode conter
> informações privilegiadas e confidenciais. Todas as informações aqui
> contidas devem ser tratadas como confidenciais e não devem ser divulgadas
> a terceiros sem o prévio consentimento por escrito da Embraer. Se você não
> é o destinatário não deve distribuir, copiar ou arquivar a mensagem. Neste
> caso, por favor, notifique o remetente da mesma e destrua imediatamente a
> mensagem.
>


Re: maven download the dependency of a error version?

2010-01-28 Thread maven apache
2010/1/28 Anders Hammar 

> Here you go:
>
> http://repo1.maven.org/maven2/org/apache/rampart/rampart-project/1.4/rampart-project-1.4.pom
>
> I didn't look closely enough. The JDK1.4 profile is active by default, do
> as
> you're NOT using JDK 1.5 that profile is not going to kick in.
>
Oh, my fault, I did not check it clearly enouth.
You mean not matter which jdk I use( configed in the compile version?), as
long as the version is not 1.5(for my case , it is 1.6), the jdk14 profile
will be actived?

>
> /Anders
>
> On Thu, Jan 28, 2010 at 09:30, maven apache 
> wrote:
>
> > 2010/1/28 Anders Hammar 
> >
> > > You're building with JDK 1.4, not JDK 1.5.
> >
> > How? I did not sepcify 1.4 or .1.5.
> > In the parent pom of my project I config the compile version to 1.6, and
> my
> > eclipse are using jdk1.6_18
> >
> >
> > > There are profiles in the pom of
> > >
> > > org.apache.rampart:rampart-policy:jar:1.4
> > >
> > > (Actually, the profiles are in the parent of that project).
> > >
> > Yes, I know this, I have check the pom.
> >
> > >
> > > The homepage which you refer to isn't telling the complete truth...
> > >
> > > /Anders
> > > On Thu, Jan 28, 2010 at 09:15, maven apache 
> > > wrote:
> > >
> > > > Hi:
> > > > I found a strange problem, it seems that maven may download a wrong
> > > version
> > > > for a transitive dependency.
> > > > Details can be found here :
> > > > http://dpaste.com/151511/
> > > >
> > >
> >
>


Re: maven download the dependency of a error version?

2010-01-28 Thread Anders Hammar
Here you go:
http://repo1.maven.org/maven2/org/apache/rampart/rampart-project/1.4/rampart-project-1.4.pom

I didn't look closely enough. The JDK1.4 profile is active by default, do as
you're NOT using JDK 1.5 that profile is not going to kick in.

/Anders

On Thu, Jan 28, 2010 at 09:30, maven apache  wrote:

> 2010/1/28 Anders Hammar 
>
> > You're building with JDK 1.4, not JDK 1.5.
>
> How? I did not sepcify 1.4 or .1.5.
> In the parent pom of my project I config the compile version to 1.6, and my
> eclipse are using jdk1.6_18
>
>
> > There are profiles in the pom of
> >
> > org.apache.rampart:rampart-policy:jar:1.4
> >
> > (Actually, the profiles are in the parent of that project).
> >
> Yes, I know this, I have check the pom.
>
> >
> > The homepage which you refer to isn't telling the complete truth...
> >
> > /Anders
> > On Thu, Jan 28, 2010 at 09:15, maven apache 
> > wrote:
> >
> > > Hi:
> > > I found a strange problem, it seems that maven may download a wrong
> > version
> > > for a transitive dependency.
> > > Details can be found here :
> > > http://dpaste.com/151511/
> > >
> >
>


Re: running tests in parallel

2010-01-28 Thread Douglas Ferguson
Also,

I just found this on somebodies blog, but I can't find anything on this 
configuration settings...

  
  maven-surefire-plugin
  2.5-SNAPSHOT
  
  classes
  true
  80
  true
  
  


On Jan 28, 2010, at 2:20 AM, Douglas Ferguson wrote:

> Can somebody elaborate on this?
> 
> 1) This says TestNG allows you to... but it is a configuration for sure fire?
> 2) It also says "including JUnit tests" So I'm a bit confused..
> 
> I'd just like to know how to get my junit tests to run in parallel.
> 
> 
> TestNG allows you to run your tests in parallel, including JUnit tests. To do 
> this, you must set the parallel parameter, and may change the threadCount 
> parameter if the default of 5 is not sufficient. For example:
> 
>[...]
>  
>org.apache.maven.plugins
>maven-surefire-plugin
>2.5
>
>  methods
>  10
>
>  
>[...]
> 
> This is particularly useful for slow tests that can have high concurrency, or 
> to quickly and roughly assess the independance and thread safety of your 
> tests and code.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven download the dependency of a error version?

2010-01-28 Thread maven apache
2010/1/28 Anders Hammar 

> You're building with JDK 1.4, not JDK 1.5.

How? I did not sepcify 1.4 or .1.5.
In the parent pom of my project I config the compile version to 1.6, and my
eclipse are using jdk1.6_18


> There are profiles in the pom of
>
> org.apache.rampart:rampart-policy:jar:1.4
>
> (Actually, the profiles are in the parent of that project).
>
Yes, I know this, I have check the pom.

>
> The homepage which you refer to isn't telling the complete truth...
>
> /Anders
> On Thu, Jan 28, 2010 at 09:15, maven apache 
> wrote:
>
> > Hi:
> > I found a strange problem, it seems that maven may download a wrong
> version
> > for a transitive dependency.
> > Details can be found here :
> > http://dpaste.com/151511/
> >
>


Re: maven download the dependency of a error version?

2010-01-28 Thread Anders Hammar
You're building with JDK 1.4, not JDK 1.5. There are profiles in the pom of

org.apache.rampart:rampart-policy:jar:1.4

(Actually, the profiles are in the parent of that project).

The homepage which you refer to isn't telling the complete truth...

/Anders
On Thu, Jan 28, 2010 at 09:15, maven apache  wrote:

> Hi:
> I found a strange problem, it seems that maven may download a wrong version
> for a transitive dependency.
> Details can be found here :
> http://dpaste.com/151511/
>


Re: Re: Profile propagation

2010-01-28 Thread roberto . caldas
Thank you for answering, Stephen. I'll do two projects, but new questions 
arise from this:

1 - how can I create 2 projects (2 poms) that uses the same src?

2 - If I have this project A that uses dependencies based on system, I'll 
create a A_win and A_linux. I have many other projects B, C, D, E that 
uses A, will I have to create 2 projects for each of them?

Thanks

Roberto Soares Caldas

Stephen Connolly wrote:

dependencies included in profiles activated based on jdk or os is a "bad
thing"

the dependencies will be pulled in based on the _system doing the build_ 
not
on the _target system_

better is to produce two separate projects which add the required
dependencies

2010/1/27 

> I am using profiles to build a jar with different dependencies - 
sometimes
> I have to use a dependency for linux64 and sometimes for win32. I have
> another project that adds this project as dependency and I'm not able to
> somehow "propagate" this profile utilization to this other project, that
> is, when I try to make "mvn install -Plinux64" I always get a MANIFEST
> with the win32 dependency - the active by default.  So my question is, 
if
> I have a project whose its dependency has multiple profiles, how do I
> activate them when trying to install this project?
>
> I'm using Maven 2.0.9.
>
> Sorry for my bad English, please tell me if I was not clear.
> Thank you.
>
> Roberto

This message is intended solely for the use of its addressee and may 
contain privileged or confidential information. All information contained 
herein shall be treated as confidential and shall not be disclosed to any 
third party without Embraer?s prior written approval. If you are not the 
addressee you should not distribute, copy or file this message. In this 
case, please notify the sender and destroy its contents immediately.
Esta mensagem é para uso exclusivo de seu destinatário e pode conter 
informações privilegiadas e confidenciais. Todas as informações aqui 
contidas devem ser tratadas como confidenciais e não devem ser divulgadas 
a terceiros sem o prévio consentimento por escrito da Embraer. Se você não 
é o destinatário não deve distribuir, copiar ou arquivar a mensagem. Neste 
caso, por favor, notifique o remetente da mesma e destrua imediatamente a 
mensagem.

Re: title block broken in maven-site-plugin-2.1?

2010-01-28 Thread Marat Radchenko
Filed: http://jira.codehaus.org/browse/DOXIA-379

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven-Assembly-Plugin throwing (InvalidArtifactRTException).

2010-01-28 Thread Caio Formiga

Hello everybody, I solve my problem, but for that I had to changed the plugin
version of maven-assembly-plugin again, this time I decide to 2.2-beta-2, so
on follows my plugin config at pom.xml file.


maven-assembly-plugin
2.2-beta-2
 


jar-with-dependencies

${project.build.finalName}-bin
false

   

Anyway would be good if someone could help me to understand why the
exception is threw ... anyone?
-- 
View this message in context: 
http://n2.nabble.com/Maven-Assembly-Plugin-throwing-InvalidArtifactRTException-tp4466929p4471619.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



running tests in parallel

2010-01-28 Thread Douglas Ferguson
Can somebody elaborate on this?

1) This says TestNG allows you to... but it is a configuration for sure fire?
2) It also says "including JUnit tests" So I'm a bit confused..

I'd just like to know how to get my junit tests to run in parallel.


TestNG allows you to run your tests in parallel, including JUnit tests. To do 
this, you must set the parallel parameter, and may change the threadCount 
parameter if the default of 5 is not sufficient. For example:

[...]
  
org.apache.maven.plugins
maven-surefire-plugin
2.5

  methods
  10

  
[...]

This is particularly useful for slow tests that can have high concurrency, or 
to quickly and roughly assess the independance and thread safety of your tests 
and code.


Re: site:deploy hangs on chmod?

2010-01-28 Thread Lukas Theussl


Try to find out why it hangs first (run with -X or execute the same command 
remotely on the command line). Site plugin 2.1 lets you customize the chmod 
command [1] so you might be able to work around it.


HTH,
-Lukas

[1] http://maven.apache.org/plugins/maven-site-plugin/deploy-mojo.html


Bram Van Dam wrote:

G'day,

I've got my pom configured to upload a site through SFTP:


  website
  sftp://f...@bar/site


Doing a site:deploy works just fine, in the sense that the site gets 
uploaded. However, then a chmod is attempted and the whole thing hangs 
forevermore.


Transfer finished. 4209 bytes copied in 0.542 seconds
Executing command: chmod -Rf g+w,a+rX /site

Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_18

Any suggestions on how to fix this?

 - Bram

-
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: title block broken in maven-site-plugin-2.1?

2010-01-28 Thread Lukas Theussl


It's probably a bug in the apt parser, doxia 1.1 now processes comments (which 
doxia 1.0 ignored), please file a jira.


Thanks,
-Lukas


Marat Radchenko wrote:

No, trailing -- doesn't change anything.

Page only starts rendering correctly if I put title block before
commented copyright banner, so title block becomes the very first
element.

-
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