Re: eclipse-plugin generates weird classpath entries

2007-08-06 Thread harald . meyer

Quoting Klaus Botschen <[EMAIL PROTECTED]>:


i can't find the reason why i get such strange entries in the classpath file:

 path="M2_REPOant/ant-optional/1.5.1/ant-optional-1.5.1.jar"/>

 
 path="M2_REPOaopalliance/aopalliance/1.0/aopalliance-1.0.jar"/>
 path="M2_REPOasm/asm-attrs/1.5.3/asm-attrs-1.5.3.jar"/>

Hello Klaus,
classpath entries similar to those mentioned above are created by
"maven eclipse:eclipse", the Maven dependencies are mirrored into the
corresponding  elements.  However, you need to
define the classpath variable "M2_REPO" in the Eclipse Build preferences, and
also in the Eclipse Maven preferences. Both values should point to your
local Maven repository (normally located in the hidden directory 
".m2/repository" in your home directory).

Greetings, Harald



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: using alternate Doclet ydoc.doclets.YStandard

2007-06-27 Thread harald . meyer

Quoting Giovanni Azua <[EMAIL PROTECTED]>:


Hi all,
I have tried several recommendations on the web on how to integrate
yDoc with Maven 2 but none seem to work? Anyone knows how to set it up?


I use ydoc in several of my projects, it works greatly. You might take 
a look at an example POM: 
http://rzm-hamy-wsx.rz.uni-karlsruhe.de/viewvc/Brewing-Software/BS-ClipboardObserver/pom.xml?view=co


Greetings, Harald





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: maven 2.0.4 error in site generation

2006-05-08 Thread harald . meyer

Quoting Charlie <[EMAIL PROTECTED]>:
I have just upgrade to 2.0.4 and when I run mvn site I am getting 
ERROR in the log. The error are as follow:


[WARNING] Unable to locate Test Source XRef to link to - DISABLED
[ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0
Any Ideas why this is happening? The content seems to be ok but my 
images that sits under /src/site/images hasn't got copied over...
I also got those messages, but the content produced was OK. The manual 
says that you should keep your images in src/site/resources/images, the 
images directory will be
copied as immediate child directory of the generated site branch 
(ommitting the "resources" part of the path).


Harald



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Jar File Creation Destroys Images in Maven2

2006-05-06 Thread harald . meyer
Andrew, the subject of filtering (or NOT filtering) resources is 
described in section 2.6.3 "Preventing Filtering of Binary Resources"

of the excellent book "Better Builds with Maven" by Vincent Massol
and Jason van Zyl. The section also contains a POM snippet for this
purpose.

You can download the book from http://www.mergere.com/m2book_download.jsp

Greetings
Harald


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Jar File Creation Destroys Images in Maven2

2006-05-04 Thread harald . meyer

Quoting [EMAIL PROTECTED]:

I'm creating a jar file which contains several compressed images 
(gifs, and pngs) I noticed that when I retrieve and display them in 
my application inside the packaged jar they display all garbled.  
It's still evedent that they are the images I packaged into the jar, 
but they are messed up.  I also tried opening the jar with winzip and 
much of the image is just not there, part of the image displays 
white.  Does this have something to do with the resources:resources 
plugin?


(I'm sorta to Maven2)

I'm not ab M2 pundit, but I got similar interferences while copying
binary resources by Ant when these resources were filtered on the fly (
e.g., when some kind of resource interpolation or string replacement took
place). Perhaps M2 uses a similar procedure as Ant's filtering
mechanism.  Just my 2ct thoughts

Harald


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Passwort protected repository

2005-04-21 Thread Harald Meyer
Hi,
we have an internal repository where we manage our artifacts. We want 
this repository to be password protected. My current solution is to add 
username and password to the url of the repository.

Is there a better way (similar to that for uploading artifacts) that 
prevents the unencrypted transmission of passwords?

Best regards,
Harald Meyer
--
Harald MeyerHasso-Plattner-Inst. für Softwaresystemtechnik
Fon: +49 3 31 55 09-160   Prof.-Dr.-Helmertstr. 2-3, 14482 Potsdam
Fax: +49 3 31 55 09-189  http://bpt.hpi.uni-potsdam.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Dependency download mechanism

2005-02-28 Thread Harald Meyer
Hi,

> yup. You would have to declare the 0.8 dependency as 
> 0.8-SNAPSHOT. Then it would check the timestamp of the remote 
> file and download it if it's new.
> That's the only workaround I know about. Non snapshots are 
> never downloaded when in the local repository.

ok, that looks promising. I will try that.

Thanks a lot,
Harald Meyer



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Dependency download mechanism

2005-02-28 Thread Harald Meyer
Hi, 

> >>Why do you want to do that? What do you want to achieve?
> > 
> > 
> > the idea is to allow users to specify "partial" version numbers for 
> > dependencies (at least for internal dependencies). So "0.8" means 
> > download the artifact in version "0.8.x" with the highest 
> available x. 
> > The functionality should be similar to snapshots. If a new 
> version of 
> > the dependency appears, it should be used in future builds.
> 
> Why don't you simlpy replace the 0.8 version within the repo 
> then and archive the minors (0.8.x, 0.8.y) elsewhere?

I tried a similar approach first: Version 0.8 was a symbolic link that was
updated every time a new minor version was released. The problem with this
approach is that if somebody already downloaded a 0.8 version he will not
get future 0.8 versions as Maven won't download newer versions. 

Best regards,
Harald Meyer



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Dependency download mechanism

2005-02-28 Thread Harald Meyer
Hi, 

> 
> Harald Meyer wrote:
> > Hi,
> > 
> > is the mechanism that downloads the dependencies specified in the 
> > project object model a plugin or in some way adjustable?
> 
> AFAIK is this part of the maven core.
> 
> > I want to change the dependencies specified in the pom before their 
> > download is tried. Is this possible?
> 
> Why do you want to do that? What do you want to achieve?

the idea is to allow users to specify "partial" version numbers for
dependencies (at least for internal dependencies). So "0.8" means download
the artifact in version "0.8.x" with the highest available x. The
functionality should be similar to snapshots. If a new version of the
dependency appears, it should be used in future builds.

Best regards,
Harald Meyer



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Dependency download mechanism

2005-02-24 Thread Harald Meyer
Hi,
is the mechanism that downloads the dependencies specified in the 
project object model a plugin or in some way adjustable?

I want to change the dependencies specified in the pom before their 
download is tried. Is this possible?

Best regards,
Harald
--
Harald MeyerHasso-Plattner-Inst. für Softwaresystemtechnik
Fon: +49 3 31 55 09-160   Prof.-Dr.-Helmertstr. 2-3, 14482 Potsdam
Fax: +49 3 31 55 09-189  http://bpt.hpi.uni-potsdam.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Subprojects with Subversion

2005-02-08 Thread Harald Meyer
Hi,
I am currently trying to setup preparing and performing a release using 
the SCM plugin 1.5-beta-3. The structure of our subversion repository 
looks like this:

/tags
/trunk/subproject1
/trunk/subproject2
Each of the sub projects is an individual Maven project. When I do a 
prepare release using aa new tag (for example 0.4.0) the tag directory 
looks as follows:

/tags/0.4.0/.
/tags/0.4.0/src
/tags/0.4.0/test
...
the project contents are copied directly under the tag. I expected it 
to look like:
/tags/0.4.0/subproject1
...

The URL I am using is scm:svn:https://adress/svn/trunk/subproject1
Is this the correct format?
Best regards,
Harald Meyer
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: WAR-Plugin include property files

2005-01-31 Thread Harald Meyer
Filip Polsakiewicz wrote:
Thanks. But this didn't work. I remember from some ant-times that I 
needed to copy the resource files

from the src.dir to the classes-dir before creating the war. I just 
don't know how to do this in maven.

Filip,  you might use some kind of java compile "postGoal" in maven.xml, 
e.g.:


 
 add include/exclude patterns...
 

Greetings, Harald
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]