You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ole Ersoy <ol...@yahoo.com> on 2007/02/21 23:45:43 UTC
Possible Archetype Copy bug WRT PNG Images?
Hi,
I have an archetype containing a png image.
When I create an archetype instance, the png image is
not the same as the one in the archetype definition.
Has anyone else seen this?
Ideas?
Thanks,
- Ole
____________________________________________________________________________________
Don't get soaked. Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Formation rules for repositories
Posted by Wendy Smoak <ws...@gmail.com>.
On 2/22/07, Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco)
<ma...@cisco.com> wrote:
> Thanks, Wendy. I'll have a look. I've written up a few things for my
> own use. It isn't complete, but it would be a start.
I started a new one, with the info Carlos provided:
http://docs.codehaus.org/display/MAVENUSER/Repository+Metadata
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Formation rules for repositories
Posted by "Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco)" <ma...@cisco.com>.
Thanks, Wendy. I'll have a look. I've written up a few things for my
own use. It isn't complete, but it would be a start.
--Marilyn
-----Original Message-----
From: Wendy Smoak [mailto:wsmoak@gmail.com]
Sent: Wednesday, February 21, 2007 9:21 PM
To: Maven Users List
Subject: Re: Formation rules for repositories
On 2/21/07, Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco)
<ma...@cisco.com> wrote:
> Is there a definition someplace of what constitutes a valid
repository?
> I would like the definition both for local repositories and for remote
> repositories.
If you find it, let me know. :) It's on my list to document, I've run
into mysterious errors, the "fix" for which is "delete your local
repository". I know that Maven is picky about the repository metadata
for snapshots and plugins, (but not so much for releases.)
If you're interested in helping with this, the Maven wiki would be a
great place to start. This page looks like a possible candidate (or
feel free to create a new one):
http://docs.codehaus.org/display/MAVENUSER/Maven+Concepts+Repositories
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Formation rules for repositories
Posted by Wendy Smoak <ws...@gmail.com>.
On 2/21/07, Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco)
<ma...@cisco.com> wrote:
> Is there a definition someplace of what constitutes a valid repository?
> I would like the definition both for local repositories and for remote
> repositories.
If you find it, let me know. :) It's on my list to document, I've run
into mysterious errors, the "fix" for which is "delete your local
repository". I know that Maven is picky about the repository metadata
for snapshots and plugins, (but not so much for releases.)
If you're interested in helping with this, the Maven wiki would be a
great place to start. This page looks like a possible candidate (or
feel free to create a new one):
http://docs.codehaus.org/display/MAVENUSER/Maven+Concepts+Repositories
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Formation rules for repositories
Posted by Carlos Sanchez <ca...@apache.org>.
plugins need maven-metadata.xml files listing all plugins available in a groupId
for instance http://repo1.maven.org/maven2/org/apache/maven/plugins/
All artifacts need maven-metadata.xml listing all versions, although
only for some operations, like version ranges
eg http://repo1.maven.org/maven2/org/apache/maven/maven-artifact/maven-metadata.xml
Snapshot artifacts need maven-metadata.xml in the version folder to
resolve snapshots
eg. http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/maven-artifact/2.1-SNAPSHOT/
On 2/21/07, Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco)
<ma...@cisco.com> wrote:
> Is there a definition someplace of what constitutes a valid repository?
> I would like the definition both for local repositories and for remote
> repositories. I've read and searched BBwM; read the docs in the "Maven
> Getting Started Guide" on the Maven web site, as well as other docs on
> that site. I've google searched for documentation. The best I've found
> is one that I can't seem to find again. It was an early spec for what
> M2 repository data should look like, very good as far as it went, but
> not complete. I need the formation rules and the semantics.
>
> I'm trying to create a file:// repository. I've tried a variety of
> approaches trying to be clever and only populate it with what our build
> needs. Then I tried brute force, simply copying over the contents of a
> maven proxy repository here into the location where I want the file
> repository. In any case, a build does not get far before getting the
> message "The plugin 'org.apache.maven.pluging:maven-clean-plugin' does
> not exist or no valid version could be found".
>
> The odd thing is, it does get part way into the build, finding and
> selecting versions for runtime. However, I think the jars and versions
> being selected are actually the ones in $M2_HOME/lib.
>
> I did run cp -r -p to preserve permissions and dates and stuff, but I
> did not do a tar or cpio copy.
>
> Can anyone help?
>
> thanks,
> --Marilyn Sander
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Formation rules for repositories
Posted by "Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco)" <ma...@cisco.com>.
Thanks, that's very interesting. I'll try it out tomorrow.
--Marilyn
-----Original Message-----
From: Kalle Korhonen [mailto:kalle.o.korhonen@gmail.com]
Sent: Wednesday, February 21, 2007 9:41 PM
To: Maven Users List
Subject: Re: Formation rules for repositories
This won't get you any further in finding the missing documentation, but
couldn't you just use the assembly plugin to create the repository (
http://maven.apache.org/plugins/maven-assembly-plugin/howto.html)?
Kalle
On 2/21/07, Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco) <
marilysa@cisco.com> wrote:
>
> Is there a definition someplace of what constitutes a valid
repository?
> I would like the definition both for local repositories and for remote
> repositories. I've read and searched BBwM; read the docs in the
> "Maven Getting Started Guide" on the Maven web site, as well as other
> docs on that site. I've google searched for documentation. The best
I've found
> is one that I can't seem to find again. It was an early spec for
what
> M2 repository data should look like, very good as far as it went, but
> not complete. I need the formation rules and the semantics.
>
> I'm trying to create a file:// repository. I've tried a variety of
> approaches trying to be clever and only populate it with what our
> build needs. Then I tried brute force, simply copying over the
> contents of a maven proxy repository here into the location where I
> want the file repository. In any case, a build does not get far
> before getting the message "The plugin
> 'org.apache.maven.pluging:maven-clean-plugin' does not exist or no
valid version could be found".
>
> The odd thing is, it does get part way into the build, finding and
> selecting versions for runtime. However, I think the jars and
> versions being selected are actually the ones in $M2_HOME/lib.
>
> I did run cp -r -p to preserve permissions and dates and stuff, but I
> did not do a tar or cpio copy.
>
> Can anyone help?
>
> thanks,
> --Marilyn Sander
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Formation rules for repositories
Posted by Kalle Korhonen <ka...@gmail.com>.
This won't get you any further in finding the missing documentation, but
couldn't you just use the assembly plugin to create the repository (
http://maven.apache.org/plugins/maven-assembly-plugin/howto.html)?
Kalle
On 2/21/07, Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco) <
marilysa@cisco.com> wrote:
>
> Is there a definition someplace of what constitutes a valid repository?
> I would like the definition both for local repositories and for remote
> repositories. I've read and searched BBwM; read the docs in the "Maven
> Getting Started Guide" on the Maven web site, as well as other docs on
> that site. I've google searched for documentation. The best I've found
> is one that I can't seem to find again. It was an early spec for what
> M2 repository data should look like, very good as far as it went, but
> not complete. I need the formation rules and the semantics.
>
> I'm trying to create a file:// repository. I've tried a variety of
> approaches trying to be clever and only populate it with what our build
> needs. Then I tried brute force, simply copying over the contents of a
> maven proxy repository here into the location where I want the file
> repository. In any case, a build does not get far before getting the
> message "The plugin 'org.apache.maven.pluging:maven-clean-plugin' does
> not exist or no valid version could be found".
>
> The odd thing is, it does get part way into the build, finding and
> selecting versions for runtime. However, I think the jars and versions
> being selected are actually the ones in $M2_HOME/lib.
>
> I did run cp -r -p to preserve permissions and dates and stuff, but I
> did not do a tar or cpio copy.
>
> Can anyone help?
>
> thanks,
> --Marilyn Sander
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Formation rules for repositories
Posted by "Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco)" <ma...@cisco.com>.
Is there a definition someplace of what constitutes a valid repository?
I would like the definition both for local repositories and for remote
repositories. I've read and searched BBwM; read the docs in the "Maven
Getting Started Guide" on the Maven web site, as well as other docs on
that site. I've google searched for documentation. The best I've found
is one that I can't seem to find again. It was an early spec for what
M2 repository data should look like, very good as far as it went, but
not complete. I need the formation rules and the semantics.
I'm trying to create a file:// repository. I've tried a variety of
approaches trying to be clever and only populate it with what our build
needs. Then I tried brute force, simply copying over the contents of a
maven proxy repository here into the location where I want the file
repository. In any case, a build does not get far before getting the
message "The plugin 'org.apache.maven.pluging:maven-clean-plugin' does
not exist or no valid version could be found".
The odd thing is, it does get part way into the build, finding and
selecting versions for runtime. However, I think the jars and versions
being selected are actually the ones in $M2_HOME/lib.
I did run cp -r -p to preserve permissions and dates and stuff, but I
did not do a tar or cpio copy.
Can anyone help?
thanks,
--Marilyn Sander
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Possible Archetype Copy bug WRT PNG Images?
Posted by Ole Ersoy <ol...@yahoo.com>.
Well,
I was expecting a picture of Cindy Crawford, and
instead it's a picture of my mother in law :-)
I think something happens due to maven attempting
parameter replacement, because I get this when I run
the archetype:
[WARNING]
org.apache.velocity.runtime.exception.ReferenceException:
reference : template =
archetype-resources/src/main/resources/images/123.png
[line 9,column 50] : $I is not a valid reference.
[WARNING]
org.apache.velocity.runtime.exception.ReferenceException:
reference : template =
archetype-resources/src/main/resources/images/123.png
[line 11,column 115] : $I is not a valid reference.
I think Maven is playing with the file after having
read it.
I've rerun the build several times with clean install,
and I get the same result each time.
Thoughts?
Thanks,
- Ole
--- Wayne Fay <wa...@gmail.com> wrote:
> Not the same meaning what exactly? The binary files
> are not identical?
> Or you were expecting a picture of a cat and it was
> replaced with a
> picture of a dog? ;-)
>
> Did you try extracting the file from the archetype
> jar (in your m2
> repo) and confirm the file was stored properly?
> There's only so many
> places where a binary file might get corrupted.
>
> Wayne
>
> On 2/21/07, Ole Ersoy <ol...@yahoo.com> wrote:
> > Hi,
> >
> > I have an archetype containing a png image.
> >
> > When I create an archetype instance, the png image
> is
> > not the same as the one in the archetype
> definition.
> >
> > Has anyone else seen this?
> >
> > Ideas?
> >
> > Thanks,
> > - Ole
> >
> >
> >
> >
> >
>
____________________________________________________________________________________
> > Don't get soaked. Take a quick peak at the
> forecast
> > with the Yahoo! Search weather shortcut.
> >
> http://tools.search.yahoo.com/shortcuts/#loc_weather
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> > For additional commands, e-mail:
> users-help@maven.apache.org
> >
> >
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> For additional commands, e-mail:
> users-help@maven.apache.org
>
>
____________________________________________________________________________________
Now that's room service! Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Possible Archetype Copy bug WRT PNG Images?
Posted by Wayne Fay <wa...@gmail.com>.
Not the same meaning what exactly? The binary files are not identical?
Or you were expecting a picture of a cat and it was replaced with a
picture of a dog? ;-)
Did you try extracting the file from the archetype jar (in your m2
repo) and confirm the file was stored properly? There's only so many
places where a binary file might get corrupted.
Wayne
On 2/21/07, Ole Ersoy <ol...@yahoo.com> wrote:
> Hi,
>
> I have an archetype containing a png image.
>
> When I create an archetype instance, the png image is
> not the same as the one in the archetype definition.
>
> Has anyone else seen this?
>
> Ideas?
>
> Thanks,
> - Ole
>
>
>
>
> ____________________________________________________________________________________
> Don't get soaked. Take a quick peak at the forecast
> with the Yahoo! Search weather shortcut.
> http://tools.search.yahoo.com/shortcuts/#loc_weather
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org