Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Archetype Snapshots

It is not currently possible to force archetype snapshot update from
m2e. There is workspace preference to honour repository update policy
(the default is to force "never" for all repositories), but it affects
all maven artifact resolution requests and turning it off will result in
undesired/unexpected snapshot updates during workbench restart, for example.

--
Regards,
Igor

On 11-08-19 8:57 AM, paul.warren@xxxxxxx wrote:
Hi Folks,

I’ve got an archetype project whose version is currently set to
1.0-SNAPSHOT.

I deploy this to a snapshot repository.

My repository has an archetypes catalog as follows:-

<?xmlversion=/"1.0"/ encoding=/"UTF-8"/?>

<archetype-catalogxmlns=/"http://maven.apache.org/plugins/maven-archetype-plugin/archetype-catalog/1.0.0"/
xmlns:xsi=/"http://www.w3.org/2001/XMLSchema-instance"/

xsi:schemaLocation=/"http://maven.apache.org/plugins/maven-archetype-plugin/archetype-catalog/1.0.0
http://maven.apache.org/xsd/archetype-catalog-1.0.0.xsd"/>

<archetypes>

<archetype>

<groupId>acme</groupId>

<artifactId>my-archetype</artifactId>

<version>1.0-SNAPSHOT</version>

<repository>http://localhost:2910/archetypes/</repository>

<description>My Archetype</description>

</archetype>

</archetypes>

</archetype-catalog>

I’ve added this repo to eclipse and it is in the New Maven Project
wizard. First time I create a project from my archetype, after deleting
it from my local repo, the snapshot gets downloaded and instantiated
just fine.

If I then update the archetype, re-build/deploy, leave my local repo as
it is and then try creating another project - it is always created using
the first snapshot not the latest. I believe m2eclipse is failing
download the latest snapshot but I don’t know why.

Do I need to generate any extra metadata? Any steps I can follow to
debug this.

Cheers,

_Paul



_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users


Back to the top