To build the src at
http://people.apache.org/~dain/1.2-beta/geronimo-1.2-beta-src.zip with
a clean local m2 repo I needed to add
http://people.apache.org/~dain/stage/ to the list of repositories and
plugin repositories in the root pom to pick up the genesis stuff.
That's fine since I assume the genesis binaries will get published in
one of the maven repos concurrently with release of geronimo-1.2-beta.
But then I hit this build error:
[INFO] -------------------------------------------------------------------------
---
[INFO] Building Geronimo :: Persistence JPA1.0 :: Builder
[INFO] task-segment: [install]
[INFO] -------------------------------------------------------------------------
---
[INFO] [tools:require-java-version {execution: validate-java-version}]
[INFO] [tools:copy-legal-files {execution: install-legal-files}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING]
Artifact junit:junit:jar:3.8.1:test retains local scope 'test' overridin
g broader scope 'compile'
given by a dependency. If this is not intended, modify or remove the loc
al scope.
Downloading: http://people.apache.org/~dain/stage/org/apache/geronimo/schema/ger
onimo-schema-jee_5/1.0/geronimo-schema-jee_5-1.0.pom
[WARNING] Unable to get resource from repository dains-repo (http://people.apach
e.org/~dain/stage)
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/ger
onimo/schema/geronimo-schema-jee_5/1.0/geronimo-schema-jee_5-1.0.pom
[WARNING] Unable to get resource from repository apache-snapshots (http://people
.apache.org/repo/m2-snapshot-repository)
Downloading: http://people.apache.org/repo/m2-incubating-repository//org/apache/
geronimo/schema/geronimo-schema-jee_5/1.0/geronimo-schema-jee_5-1.0.pom
[WARNING] Unable to get resource from repository apache.incubator (http://people
.apache.org/repo/m2-incubating-repository/)
Downloading: http://people.apache.org/~dain/stage//org/apache/geronimo/schema/ge
ronimo-schema-jee_5/1.0/geronimo-schema-jee_5-1.0.pom
[WARNING] Unable to get resource from repository dain.repo (http://people.apache
.org/~dain/stage/)
Downloading: http://people.apache.org/repo/m2-incubating-repository//org/apache/
geronimo/schema/geronimo-schema-jee_5/1.0/geronimo-schema-jee_5-1.0.pom
[WARNING] Unable to get resource from repository apache-incubator (http://people
.apache.org/repo/m2-incubating-repository/)
Downloading: http://repository.codehaus.org/org/apache/geronimo/schema/geronimo-
schema-jee_5/1.0/geronimo-schema-jee_5-1.0.pom
[WARNING] Unable to get resource from repository codehaus (http://repository.cod
ehaus.org)
Downloading: http://repo1.maven.org/maven2/org/apache/geronimo/schema/geronimo-s
chema-jee_5/1.0/geronimo-schema-jee_5-1.0.pom
[WARNING] Unable to get resource from repository central (http://repo1.maven.org
/maven2)
Downloading: http://people.apache.org/~dain/stage/org/apache/geronimo/schema/ger
onimo-schema-jee_5/1.0/geronimo-schema-jee_5-1.0.jar
[WARNING] Unable to get resource from repository dains-repo (http://people.apach
e.org/~dain/stage)
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/ger
onimo/schema/geronimo-schema-jee_5/1.0/geronimo-schema-jee_5-1.0.jar
[WARNING] Unable to get resource from repository apache-snapshots (http://people
.apache.org/repo/m2-snapshot-repository)
Downloading: http://people.apache.org/repo/m2-incubating-repository//org/apache/
geronimo/schema/geronimo-schema-jee_5/1.0/geronimo-schema-jee_5-1.0.jar
[WARNING] Unable to get resource from repository apache.incubator (http://people
.apache.org/repo/m2-incubating-repository/)
Downloading: http://people.apache.org/~dain/stage//org/apache/geronimo/schema/ge
ronimo-schema-jee_5/1.0/geronimo-schema-jee_5-1.0.jar
[WARNING] Unable to get resource from repository dain.repo (http://people.apache
.org/~dain/stage/)
Downloading: http://people.apache.org/repo/m2-incubating-repository//org/apache/
geronimo/schema/geronimo-schema-jee_5/1.0/geronimo-schema-jee_5-1.0.jar
[WARNING] Unable to get resource from repository apache-incubator (http://people
.apache.org/repo/m2-incubating-repository/)
Downloading: http://repository.codehaus.org/org/apache/geronimo/schema/geronimo-
schema-jee_5/1.0/geronimo-schema-jee_5-1.0.jar
[WARNING] Unable to get resource from repository codehaus (http://repository.cod
ehaus.org)
Downloading: http://repo1.maven.org/maven2/org/apache/geronimo/schema/geronimo-s
chema-jee_5/1.0/geronimo-schema-jee_5-1.0.jar
[WARNING] Unable to get resource from repository central (http://repo1.maven.org
/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.apache.geronimo.schema:geronimo-schema-jee_5:jar:1.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.geronimo.schema -DartifactId
=geronimo-schema-jee_5 \
-Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file
Path to dependency:
1) org.apache.geronimo.modules:geronimo-persistence-jpa10-builder:jar:1.
2-SNAPSHOT
2) org.apache.geronimo.schema:geronimo-schema-jee_5:jar:1.0
----------
1 required artifact is missing.
for artifact:
org.apache.geronimo.modules:geronimo-persistence-jpa10-builder:jar:1.2-SNAPSHO
T
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
apache.incubator (http://people.apache.org/repo/m2-incubating-repository/),
apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
codehaus (http://repository.codehaus.org),
dain.repo (http://people.apache.org/~dain/stage/),
apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository),
codehaus-snapshots (http://snapshots.repository.codehaus.org),
apache-incubator (http://people.apache.org/repo/m2-incubating-repository/),
dains-repo (http://people.apache.org/~dain/stage)
I think this is happening because the root pom points at version 1.0:
<dependency>
<groupId>org.apache.geronimo.schema</groupId>
<artifactId>geronimo-schema-jee_5</artifactId>
<version>1.0</version>
</dependency>
I only see a 1.0-SNAPSHOT available in the apache snapshot repo.
Looking in geronimo-tomcat-j2ee-1.2-beta.zip I see that it contains
geronimo-schema-jee_5-1.0.jar in its repository. Where should my
build be picking up version 1.0?
Best wishes,
Paul
On 12/14/06, David Blevins <[EMAIL PROTECTED]> wrote:
On Dec 14, 2006, at 3:00 PM, toby cabot wrote:
> On Thu, Dec 14, 2006 at 02:08:25PM -0800, Dain Sundstrom wrote:
>> On Dec 14, 2006, at 1:31 PM, Paul McMahan wrote:
>>
>>> When I tried to build from src I got the error message below. Do I
>>> need to add the repo at http://people.apache.org/~dain/stage/ to
>>> a pom
>>> somewhere to make it build?
>>
>> Unfortunately, yes. This release has a deep dependency list of G
>> projects. The next 1.2 release won't have this problem.
>
> Apologies for being the one to wave to maven-naive flag, but where do
> I need to add this? I added this repo to the project root's pom.xml
> like so:
>
> Index: pom.xml
> ===================================================================
> --- pom.xml (revision 487372)
> +++ pom.xml (working copy)
> @@ -980,6 +980,16 @@
>
> <pluginRepositories>
> <pluginRepository>
> + <id>dains-plugin-repository</id>
> + <url>http://people.apache.org/~dain/stage/</url>
> + <snapshots>
> + <enabled>true</enabled>
> + </snapshots>
> + <releases>
> + <enabled>false</enabled>
Change that line to '<enabled>true' and it should work.
-David
> + </releases>
> + </pluginRepository>
> + <pluginRepository>
> <id>Codehaus Snapshots</id>
> <url>http://snapshots.repository.codehaus.org/</url>
> <snapshots>
> @@ -1235,6 +1245,21 @@
> -->
>
> <repository>
> + <id>dains-repo</id>
> + <name>Apache Snapshots Repository</name>
> + <url>http://people.apache.org/~dain/stage</url>
> + <layout>default</layout>
> + <snapshots>
> + <enabled>true</enabled>
> + <updatePolicy>daily</updatePolicy>
> + <checksumPolicy>ignore</checksumPolicy>
> + </snapshots>
> + <releases>
> + <enabled>true</enabled>
> + </releases>
> + </repository>
> +
> + <repository>
> <id>apache-snapshots</id>
> <name>Apache Snapshots Repository</name>
> <url>http://people.apache.org/repo/m2-snapshot-
> repository</url>
>
>
> But I still can't build:
>
> [INFO] Geronimo Assemblies :: J2EE + Tomcat
> [INFO] Geronimo Assemblies :: Minimal + Tomcat
> [INFO] Searching repository for plugin with prefix: 'install'.
> [INFO] org.apache.maven.plugins: checking for updates from codehaus
> [INFO] org.apache.maven.plugins: checking for updates from central
> [INFO] org.codehaus.mojo: checking for updates from codehaus
> [INFO] org.codehaus.mojo: checking for updates from central
> Downloading: http://repository.codehaus.org/org/apache/geronimo/
> genesis/plugins/tools-maven-plugin/1.1/tools-maven-plugin-1.1.jar
> [WARNING] Unable to get resource from repository codehaus (http://
> repository.codehaus.org)
> Downloading: http://repo1.maven.org/maven2/org/apache/geronimo/
> genesis/plugins/tools-maven-plugin/1.1/tools-maven-plugin-1.1.jar
> [WARNING] Unable to get resource from repository central (http://
> repo1.maven.org/maven2)
> [INFO] Cannot find mojo descriptor for: 'install:install-file' -
> Treating as non-aggregator.
> Downloading: http://repository.codehaus.org/org/apache/geronimo/
> genesis/plugins/tools-maven-plugin/1.1/tools-maven-plugin-1.1.jar
> [WARNING] Unable to get resource from repository codehaus (http://
> repository.codehaus.org)
> Downloading: http://repo1.maven.org/maven2/org/apache/geronimo/
> genesis/plugins/tools-maven-plugin/1.1/tools-maven-plugin-1.1.jar
> [WARNING] Unable to get resource from repository central (http://
> repo1.maven.org/maven2)
> [INFO]
> ----------------------------------------------------------------------
> --
> [ERROR] BUILD ERROR
> [INFO]
> ----------------------------------------------------------------------
> --
> [INFO] Plugin could not be found - check that the goal name is
> correct: Unable to download the artifact from any repository
>
>
> Do I need to add the ~dain repository somewhere else, too?
>
> Thanks,
> Toby
>