You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Trent Rosenbaum <tr...@gmail.com> on 2006/02/08 02:50:04 UTC
[m2] - Installing new archetypes
Hi there,
Can anyone offer any thoughts on the following. I have downloaded
maven-archetype-j2ee module and have packaged + installed the Jar artifact.
When I go to inspect my local repo I find the following:
org\apache\maven\archetypes\maven-archetype-j2ee
under this directory I find the following files:
maven-metadata-local.xml, (this contains info about my archetype jar file)
maven-metadata-central.xml, (this contains the data example below)
<?xml version="1.0" encoding="UTF-8" ?>
- <#> <metadata>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-j2ee</artifactId>
<version>RELEASE</version>
</metadata>
when I go to use the archetype I get the following problem
---
[INFO] Failed to resolve artifact.
GroupId: org.apache.maven.archetypes
ArtifactId: maven-archetype-j2ee
Version: RELEASE
Reason: Unable to determine the release version
org.apache.maven.archetypes:maven-archetype-j2ee:jar:RELEASE
---
If I specify the archetypeVersion on the command line the archetype plugin
is able to locate and use the correct version of the j2ee archetype.
Am I right in thinking this issue is caused by the
maven-metadata-central.xml file?
When I look under other archetypes for example maven-archetype-quickstart,
the maven-metadata-central.xml file contains data
appropriate to the version installed locally. Does maven or the archetype
plugin contain a flag to update the data so I do not have use specify the
version on the command line?
Trent
Re: [m2] - Installing new archetypes
Posted by Trent Rosenbaum <tr...@gmail.com>.
Hi there,
The only maven-metadata-central.xml file I saw, (in the local repo) was in
the following location:
D:\maven_repo\org\apache\maven\archetypes\maven-archetype-j2ee
The had the following data
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-j2ee</artifactId>
<version>RELEASE</version>
</metadata>
Other than that I only saw maven-metadata-local.xml files again at the
artifact level and the
version level. I have only install this artifact into my local repo. Is
there a document that explains the xml files located
within the local and remote repos?
Trent
On 08/02/06, John Casey <jd...@yahoo.com> wrote:
>
> which maven-metadata-central.xml did you look at? what was it's path in
> the repository? There is group-level, artifact-level, and version-level
> metadata, and all (IIRC) share this file name.
>
>
Re: [m2] - Installing new archetypes
Posted by John Casey <jd...@yahoo.com>.
which maven-metadata-central.xml did you look at? what was it's path in
the repository? There is group-level, artifact-level, and version-level
metadata, and all (IIRC) share this file name.
-john
Trent Rosenbaum wrote:
> Thanks for the help John, I have reinstalled the j2ee archetype after making
> sure all the files were deleted.
> I have gone back to the file maven-metadata-central.xml and this still has
> the same information inside it.
>
> The archetype plugin can now use this archetype without any issues, so what
> have I updated if it is not this file?
>
> Trent
>
> On 08/02/06, John Casey <jd...@yahoo.com> wrote:
>> try re-installing it with the following command line option:
>>
>> -DupdateReleaseInfo=true
>>
>> That will update the RELEASE metadata. It would seem that there should
>> be a way to specify the archetype-artifact's version, though...
>>
>> -john
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] - Installing new archetypes
Posted by Trent Rosenbaum <tr...@gmail.com>.
Thanks for the help John, I have reinstalled the j2ee archetype after making
sure all the files were deleted.
I have gone back to the file maven-metadata-central.xml and this still has
the same information inside it.
The archetype plugin can now use this archetype without any issues, so what
have I updated if it is not this file?
Trent
On 08/02/06, John Casey <jd...@yahoo.com> wrote:
>
> try re-installing it with the following command line option:
>
> -DupdateReleaseInfo=true
>
> That will update the RELEASE metadata. It would seem that there should
> be a way to specify the archetype-artifact's version, though...
>
> -john
>
>
Re: [m2] - Installing new archetypes
Posted by John Casey <jd...@yahoo.com>.
try re-installing it with the following command line option:
-DupdateReleaseInfo=true
That will update the RELEASE metadata. It would seem that there should
be a way to specify the archetype-artifact's version, though...
-john
Trent Rosenbaum wrote:
> Hi there,
>
> Can anyone offer any thoughts on the following. I have downloaded
> maven-archetype-j2ee module and have packaged + installed the Jar artifact.
> When I go to inspect my local repo I find the following:
>
> org\apache\maven\archetypes\maven-archetype-j2ee
>
> under this directory I find the following files:
>
> maven-metadata-local.xml, (this contains info about my archetype jar file)
> maven-metadata-central.xml, (this contains the data example below)
>
>
> <?xml version="1.0" encoding="UTF-8" ?>
> - <#> <metadata>
> <groupId>org.apache.maven.archetypes</groupId>
> <artifactId>maven-archetype-j2ee</artifactId>
> <version>RELEASE</version>
> </metadata>
>
> when I go to use the archetype I get the following problem
>
> ---
> [INFO] Failed to resolve artifact.
>
> GroupId: org.apache.maven.archetypes
> ArtifactId: maven-archetype-j2ee
> Version: RELEASE
>
> Reason: Unable to determine the release version
>
> org.apache.maven.archetypes:maven-archetype-j2ee:jar:RELEASE
> ---
>
> If I specify the archetypeVersion on the command line the archetype plugin
> is able to locate and use the correct version of the j2ee archetype.
> Am I right in thinking this issue is caused by the
> maven-metadata-central.xml file?
> When I look under other archetypes for example maven-archetype-quickstart,
> the maven-metadata-central.xml file contains data
> appropriate to the version installed locally. Does maven or the archetype
> plugin contain a flag to update the data so I do not have use specify the
> version on the command line?
>
>
> Trent
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org