dependency resolution

2010-06-22 Thread @work

Hello,

in which way resolve maven inherited dependencys. 
E.G. module1.v1 -> depends module2.v1 and module3.v1
  module2.v1 -> depends module3.v2
Which version of module3 is used and give maven a error or at least a
warning?

Yours Rüdiger

-- 
View this message in context: 
http://maven-users.828.n2.nabble.com/dependency-resolution-tp5208742p5208742.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 release plugin and subversion externals

2010-02-05 Thread @work


Karl Heinz Marbaise wrote:
> 
> ...
> If you do an mvn release:perform ...aren't you asked for the release
> version etc. during the process ? 
> ...
> 
I'm asked for the release version for all modules but only asked for the new
SNAPSHOT version for the parent module.



Karl Heinz Marbaise wrote:
> 
> ...
> Why not putting all modules in the folder structure
> 
> Root
>   +--- module1
>   +--- module2
> 
> without using svn:externals ?
> ...
> 
Thats a company policy. The modules are in different svn repositorys. 


Yours Rüdiger


-- 
View this message in context: 
http://n2.nabble.com/maven-release-plugin-and-subversion-externals-tp4514253p4519649.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 release plugin and subversion externals

2010-02-05 Thread @work


Karl Heinz Marbaise wrote:
> 
> ...
> first: Have you defined scm section in your root pom ?
> 

Yes, each module and the parent has its own scm section. 
If we remove the  section from the parent we can 
release the modules and the parent in single steps.


Karl Heinz Marbaise wrote:
> 
>> we are using svn:externals to add our modules into the parent directory. 
>> We can build, test, deploy ... but we can't create a release. The release
>> is
>> only 
> How do you use the externals ? fixed to a particular release via tag 
> name or trunk with a particular revision ?
> ...
> 

we are referencing the trunk of the modules without a revision

http://svn/repo/module1/trunk  module1
http://svn/repo/module2/trunk  module2


Yours Rüdiger




-- 
View this message in context: 
http://n2.nabble.com/maven-release-plugin-and-subversion-externals-tp4514253p4518752.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



maven release plugin and subversion externals

2010-02-04 Thread @work

Hello,

we are using svn:externals to add our modules into the parent directory. 
We can build, test, deploy ... but we can't create a release. The release is
only 
created for the parent (which is only a pom module). There are no tags in
subversion 
and no artifacts released to the repository. 

In our parent the modules are referenced as


A
B>/module>



We are calling: mvn release.clean release:prepare release:perform 
and there are no error messages.

What is going wrong with the releases?


Yours Rüdiger

-- 
View this message in context: 
http://n2.nabble.com/maven-release-plugin-and-subversion-externals-tp4514253p4514253.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



maven downloading SNAPSHOTs which have not changed

2009-11-30 Thread ssenecal . work
I have been noticing that Maven is redownloading some SNAPSHOTs every day,  
despite the fact that the files have not changed. I ran my build using "mvn  
-X clean package" and I can see that an HTTP 304 is being returned  
(verified on the server), yet the file is downloaded anyway. Is there some  
sort of a setting which would force snapshots to be redownloaded even if  
the server is reporting a 304?


Maven version:

$> mvn --version
Apache Maven 2.2.0 (r788681; 2009-06-26 22:04:01+0900)
Java version: 1.6.0_16
Java home: /usr/lib/jvm/java-6-sun-1.6.0.16/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.28-14-generic" arch: "amd64" Family: "unix"



Output:

...
[DEBUG] Connecting to repository: 'company-repository' with  
url: 'http://maven/maven/maven2'.
Downloading:  
http://maven/maven/maven2/com/company/sp/reports/1.0-SNAPSHOT/reports-1.0-SNAPSHOT.jar

[DEBUG] sending ==> If-Modified-Since: Mon, 30-Nov-09 01:08:30 GMT
(125954331)
2824/4410K^M2828/4410K^M2832/4410K^M2836/4410K^M2839/4410K^M2840/4410K^M2842/4410K^M2843/4410K^M[DEBUG]  
http://maven/maven/maven2/com/company/sp/reports/1.0-SNAPSHOT/reports-1.0-SNAPSHOT.jar  
-  
Status code: 304

[DEBUG] Artifact resolved
2844/4410K
...



Testing the httpd server for 304 support:

$> telnet maven 80
Trying 172.25.16.21...
Connected to maven.company.com.
Escape character is '^]'.
GET  
/maven/maven2/com/company/sp/reports/1.0-SNAPSHOT/reports-1.0-SNAPSHOT.jar  
HTTP/1.0

User-Agent: Mozilla/5.0
From: something.somewhere.net
Accept: text/html,text/plain,application/*
Host: maven.company.com
If-Modified-Since: Mon, 30-Nov-09 01:08:30 GMT

HTTP/1.1 304 Not Modified
Date: Tue, 01 Dec 2009 05:30:00 GMT
Server: Apache/2.0.53 (Unix) DAV/2 mod_ssl/2.0.53 OpenSSL/0.9.7g SVN/1.4.5
Connection: close
ETag: "234f4-40bfa6-9f0a32c0"


Re: [maven1] Classes that use javax.xml.parsers.SAXParserFactory.setXIncludeAware(boolean) do not compile

2006-01-11 Thread Minds Work
Hi Doug

These property are already  in my project.properties

But these properties has nothing with classes or methods the compiler does
not find.
(For example, you can use classes/methods that only exists in Jdk1.5 (like
java.util.Fotmatter) and compile with maven.compile.source=1.4 and
maven.compile.target=1.4, it will compile, however it will not run
correclty in a JVM 1.4, it will throw a Method/ClassNotFoundError)

And I have other classes that use the new JDk1.5 source features (like
List), those classes would not compile if the problem was source/target
version.

My Problem is that for some odd reason maven is using a different
javax.xml.parsers.SAXParserFactory frm the one that exists in my JAVA_HOME
jdk...
I see this happen with no other class



On 1/11/06, Doug Douglass <[EMAIL PROTECTED]> wrote:
>
> Freddy,
>
> Add the following to you project.properties and try maven java:compile
> again:
>
> maven.compile.source=1.5
> maven.compile.target=1.5
>
> Doug
>
> Minds Work wrote:
>
> >Hi
> >I have a class that uses the method "setXIncludeAware(boolean)" from "
> >javax.xml.parsers.SAXParserFactory" ( jdk1.5)
> >The class compiles in eclipse.
> >But when I run maven, maven does not compile the class, it says that this
> >method does not exists.
> >I tried in others machines, but the error is alwalys the same:
> >
>
> >C:\Mantissa\workspace\biogenie-client\src\java\br\com\mindsatwork\biogenie\ui\BioGenieApplication.java:1309:
> >cannot find symbol
> >
> >symbol : method setXIncludeAware(boolean)
> >
> >location: class javax.xml.parsers.SAXParserFactory
> >
> >SAXParserFactory.newInstance().setXIncludeAware( false );
> >
> >Does anyone know why this is happening??
> >
> >PS: If I coment the line that uses the "setXIncludeAware(boolean)", maven
>
> >compiles the class.
> >PS2: The JAVA_HOME env var is set to the same JVM that I use in eclipse.
> >PS3: I'm running maven 1.0.2 and eclipse 3.1, in windows XP
> >[]s
> >Freddy
> >
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


[maven1] Classes that use javax.xml.parsers.SAXParserFactory.setXIncludeAware(boolean) do not compile

2006-01-11 Thread Minds Work
Hi
I have a class that uses the method "setXIncludeAware(boolean)" from "
javax.xml.parsers.SAXParserFactory" (jdk1.5)
The class compiles in eclipse.
But when I run maven, maven does not compile the class, it says that this
method does not exists.
I tried in others machines, but the error is alwalys the same:

C:\Mantissa\workspace\biogenie-client\src\java\br\com\mindsatwork\biogenie\ui\BioGenieApplication.java:1309:
cannot find symbol

symbol : method setXIncludeAware(boolean)

location: class javax.xml.parsers.SAXParserFactory

SAXParserFactory.newInstance().setXIncludeAware( false );

Does anyone know why this is happening??

PS: If I coment the line that uses the "setXIncludeAware(boolean)", maven
compiles the class.
PS2: The JAVA_HOME env var is set to the same JVM that I use in eclipse.
PS3: I'm running maven 1.0.2 and eclipse 3.1, in windows XP
[]s
Freddy


[m1]How to ignore dependencies from the parent projet??

2005-11-17 Thread Minds Work
Hi
I Have a project that extends from other project.xml ( the parent project),
but I want to ignore some dependencies of the parent project, is there a way
to do this???
[]s
Freddy


Re: can a goal executing in a project execute goals in other projects?

2005-11-01 Thread Minds Work
It works,
Thank you
[]s
Freddy

 On 11/1/05, Dion Gillard <[EMAIL PROTECTED]> wrote:
>
> Couldn't you make it a system property:
>
> ${systemScope.put('name', varFromTstamp)}
>
> On 11/2/05, Minds Work <[EMAIL PROTECTED]> wrote:
> > Thanks, it works,
> > I have another related question
> >
> > I want to known if there is a way declare a global property to be used
> in
> > the goals called with maven:maven
> > My proplem is that i want to tag some projects (in the repository) with
> the
> > same tag, but the tag name is based on the current date (the dateToday
> ant
> > property created by the code below):
> >
> > 
> > 
> > 
> >
> > This way each project is taged with a different date (a difference of
> second
> > or minutes, but a difference)
> >
> > If i could declare a global property i could set the data as a global
> > property and reuse it.
> >
> > On 10/31/05, Arnaud HERITIER <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi Freddy,
> > >
> > > You can use the maven:maven tag in Jelly :
> > > http://maven.apache.org/maven-1.x/tags.html#maven:maven
> > >
> > > Arnaud
> > >
> > >
> > > > -Message d'origine-
> > > > De : Minds Work [mailto:[EMAIL PROTECTED]
> > > > Envoyé : lundi 31 octobre 2005 19:16
> > > > À : Maven Users List
> > > > Objet : can a goal executing in a project execute goals in
> > > > other projects?
> > > >
> > > > Is there a way (without using the exec ant task...) to make a
> > > > goal call another goal but execute it in other project?
> > > > Example, I execute the goal "myGoal" in project Foo, and the
> > > > goal "myGoal"
> > > > execute the "jar" goal in project "Bar"?
> > > > []s
> > > > Freddy
> > > >
> > >
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
>
>
> --
> http://www.multitask.com.au/people/dion/
> "You are going to let the fear of poverty govern your life and your
> reward will be that you will eat, but you will not live." - George
> Bernard Shaw
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: can a goal executing in a project execute goals in other projects?

2005-11-01 Thread Minds Work
Thanks, it works,
 I have another related question

I want to known if there is a way declare a global property to be used in
the goals called with maven:maven
 My proplem is that i want to tag some projects (in the repository) with the
same tag, but the tag name is based on the current date (the dateToday ant
property created by the code below):





This way each project is taged with a different date (a difference of second
or minutes, but a difference)

If i could declare a global property i could set the data as a global
property and reuse it.

 On 10/31/05, Arnaud HERITIER <[EMAIL PROTECTED]> wrote:
>
> Hi Freddy,
>
> You can use the maven:maven tag in Jelly :
> http://maven.apache.org/maven-1.x/tags.html#maven:maven
>
> Arnaud
>
>
> > -Message d'origine-
> > De : Minds Work [mailto:[EMAIL PROTECTED]
> > Envoyé : lundi 31 octobre 2005 19:16
> > À : Maven Users List
> > Objet : can a goal executing in a project execute goals in
> > other projects?
> >
> > Is there a way (without using the exec ant task...) to make a
> > goal call another goal but execute it in other project?
> > Example, I execute the goal "myGoal" in project Foo, and the
> > goal "myGoal"
> > execute the "jar" goal in project "Bar"?
> > []s
> > Freddy
> >
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


can a goal executing in a project execute goals in other projects?

2005-10-31 Thread Minds Work
Is there a way (without using the exec ant task...) to make a goal call
another goal but execute it in other project?
Example, I execute the goal "myGoal" in project Foo, and the goal "myGoal"
execute the "jar" goal in project "Bar"?
[]s
Freddy


executin goals - Can I pass arguments to a goal??

2005-10-31 Thread Minds Work
[maven 1.0.x]
Can I pass arguments to a goal when I execute maven ? And with the
attaingoal tag?
[]s
Freddy