Duplicate repository ids in JPA archetypes' POMs #8

Closed
tjweir opened this Issue May 16, 2009 · 5 comments

Projects

None yet

3 participants

@tjweir
Member
tjweir commented May 16, 2009

The POMs generated by the JPA archetypes contain repository entries that have the same id value for both the snapshots repo and the releases repo. The result is that maven only uses the first one, which is snapshots, and any dependency in the releases repo is not found.

Steps to encounter the problem: 1) Remove your local maven repo

  1. Generate a lift JPA 1.1-M1 project: :> mvn archetype:generate -DarchetypeRepository=http://scala-tools.org/repo-releases -DarchetypeGroupId=net.liftweb -DarchetypeArtifactId=lift-archetype-jpa-basic -DarchetypeVersion=1.1-M1 -DgroupId=com.test -DartifactId=test

  2. Try to build the project and should get an error about unable to download lift-core 1.1-M1: :> cd test :> mvn clean install

@tjweir
Member
tjweir commented May 16, 2009

Derek: Confirmed. We really should remove the repo info from the POM, since we're working on getting maven central sync up and running so that the scala-tools.org stuff is globally available.

@dchenbecker
Member

Fixed in commit e29d25519bf8e4255fbf4d470ce517932817164c

@dchenbecker dchenbecker was assigned Mar 1, 2012
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment