Giter Club home page Giter Club logo

indy's Introduction

Indy is a simple repository manager for Apache Maven and other build tools using the Maven repository format.

After building, a variety of standalone application launchers are available:

To use a launcher, simply unpack it to the directory of your choice (it will create an indy subdirectory). Then, run bin/indy.sh.

For more information, see the Indy Docs.

indy's People

Contributors

barreiro avatar bxf12315 avatar commonjava-bot avatar dependabot[bot] avatar geored avatar gorgija avatar hjmodi avatar jdcasey avatar ligangty avatar matejonnet avatar michalszynkiewicz avatar pkocandr avatar pslegr avatar ralphbean avatar ruhan1 avatar shokakucarrier avatar sswguo avatar vibe13 avatar whitingjr avatar yma96 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

indy's Issues

repository creator add-on

support a virtual artifact type that triggers aggregation of all runtime/testtime/etc. dependencies into an archive for a given top-level GAV.

Allow configuration for global excludes, etc. in a /var/lib/db/repozip.d/.json file

This add-on will probably require the tensor add-on to help calculate the full transitive closure.

How to configure the things to include in the repo.zip? Probably in the JSON file...

Things we might want:

  • full runtime closure
  • build-time dependency closure
  • build-time artifact closure (include extensions, plugins, and plugin-level deps)

NOTE: All closures should include appropriate parent POMs and BOMs to make included artifact POMs traversable.

Implement basic status / endpoint listing

Need to report version/commitId/builder/built-on in basic status, and need to allow lookup of available endpoints for this aprox instance.

The base status should be reflected in the footer of the Monorail UI.

Endpoint listing will eventually help in autoprox add-on, for avoiding the need to try a HTTP request to see if the endpoint exists to be proxied. Also should help with fine-grained UI tuning of autoprox for a specific upstream server, if I get around to that.

Aprox Koji build failure - problem encountered building the effective model

Looks like a pom issue:

DEBUG util.py:264: [INFO] Plugin Resolved: maven-enforcer-plugin-1.0.jar
DEBUG util.py:264: [INFO] ------------------------------------------------------------------------
DEBUG util.py:264: [INFO] Reactor Summary:
DEBUG util.py:264: [INFO]
DEBUG util.py:264: [INFO] AProx :: Parent POM ............................... FAILURE [1.454s]
DEBUG util.py:264: [INFO] AProx :: API ...................................... SKIPPED
DEBUG util.py:264: [INFO] AProx :: Test-Harness Parent ...................... SKIPPED
DEBUG util.py:264: [INFO] AProx :: Database TCK ............................. SKIPPED
DEBUG util.py:264: [INFO] AProx :: Databases Parent ......................... SKIPPED
DEBUG util.py:264: [INFO] AProx :: In-Memory Database ....................... SKIPPED
DEBUG util.py:264: [INFO] AProx :: Filer TCK ................................ SKIPPED
DEBUG util.py:264: [INFO] AProx :: File-Managers Parent ..................... SKIPPED
DEBUG util.py:264: [INFO] AProx :: Default File Manager ..................... SKIPPED
DEBUG util.py:264: [INFO] AProx :: Subsystems Parent ........................ SKIPPED
DEBUG util.py:264: [INFO] AProx :: HTTP Client Subsystem .................... SKIPPED
DEBUG util.py:264: [INFO] AProx :: Build-Time Tooling ....................... SKIPPED
DEBUG util.py:264: [INFO] AProx :: Assemblies ............................... SKIPPED
DEBUG util.py:264: [INFO] AProx :: Core ..................................... SKIPPED
DEBUG util.py:264: [INFO] AProx :: Flat-File Subsystem ...................... SKIPPED
DEBUG util.py:264: [INFO] AProx :: Maven Component Subsystem ................ SKIPPED
DEBUG util.py:264: [INFO] AProx :: Flat-File Database ....................... SKIPPED
DEBUG util.py:264: [INFO] AProx :: Filer TCK ................................ SKIPPED
DEBUG util.py:264: [INFO] AProx :: Add-Ons .................................. SKIPPED
DEBUG util.py:264: [INFO] AProx :: Auto-Proxy Add-On ........................ SKIPPED
DEBUG util.py:264: [INFO] AProx :: Tensor Integration ....................... SKIPPED
DEBUG util.py:264: [INFO] AProx :: Dot-Maven (.m2 WebDAV) Add-On ............ SKIPPED
DEBUG util.py:264: [INFO] AProx :: Index Merger ............................. SKIPPED
DEBUG util.py:264: [INFO] AProx :: WARs ..................................... SKIPPED
DEBUG util.py:264: [INFO] AProx :: Minimal REST WAR ......................... SKIPPED
DEBUG util.py:264: [INFO] AProx :: UIs ...................................... SKIPPED
DEBUG util.py:264: [INFO] AProx :: Monorail UI Overlay (WAR) ................ SKIPPED
DEBUG util.py:264: [INFO] AProx :: Basic WAR ................................ SKIPPED
DEBUG util.py:264: [INFO] AProx :: Savant ................................... SKIPPED
DEBUG util.py:264: [INFO] AProx :: EasyProx ................................. SKIPPED
DEBUG util.py:264: [INFO] ------------------------------------------------------------------------
DEBUG util.py:264: [INFO] BUILD FAILURE
DEBUG util.py:264: [INFO] ------------------------------------------------------------------------
DEBUG util.py:264: [INFO] Total time: 2.695s
DEBUG util.py:264: [INFO] Finished at: Wed May 29 12:32:46 CEST 2013
DEBUG util.py:264: [INFO] Final Memory: 12M/340M
DEBUG util.py:264: [INFO] ------------------------------------------------------------------------
DEBUG util.py:264: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.1:resolve-plugins (default-cli) on project aprox-parent: Nested: 1 problem was encountered while building the effective model for org.apache.maven.plugins:maven-enforcer-plugin:1.0
DEBUG util.py:264: [ERROR] [FATAL] Non-resolvable parent POM for org.apache.maven:maven-parent:17: Failure to find org.apache:apache:pom:7 in http://hub.localdomain/kojifiles/repos/fedora-18-addons-build/44/maven was cached in the local repository, resolution will not be reattempted until the update interval of koji-maven-repo-fedora-18-addons-build-44 has elapsed or updates are forced @ org.apache.maven:maven-parent:17, /builddir/.m2/repository/org/apache/maven/maven-parent/17/maven-parent-17.pom, line 25, column 11
DEBUG util.py:264: [ERROR] for project org.apache.maven.plugins:maven-enforcer-plugin:1.0 for project org.apache.maven.plugins:maven-enforcer-plugin:1.0
DEBUG util.py:264: [ERROR] -> [Help 1]
DEBUG util.py:264: [ERROR]
DEBUG util.py:264: [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
DEBUG util.py:264: [ERROR] Re-run Maven using the -X switch to enable full debug logging.
DEBUG util.py:264: [ERROR]
DEBUG util.py:264: [ERROR] For more information about the errors and possible solutions, please read the following articles:
DEBUG util.py:264: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
DEBUG util.py:354: Child return code was: 1

Depbase add-on

Graph POM dependencies (project deps, managed deps, plugins, extensions, parent poms) when a POM is proxied

Add auto-proxy feature

allow auto-creation of group/repository/deploy-point on-demand (will be configured automatically first time URL is hit). Also allow automatically proxying repositories/groups/deploy-points on a remote AProx instance...

Allow deploy-through to deploy artifacts to remote AProx deploy points?

Compilation Error - package org.commonjava.tensor.web.base.filter does not exist

From /aprox/addons I execute:

mvn -Dmaven.test.skip=true clean install

Error below:

[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ aprox-tensor ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ aprox-tensor ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 18 source files to /home/sbadakhc/sandbox/aprox/addons/tensor/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/sbadakhc/sandbox/aprox/addons/tensor/src/main/java/org/commonjava/aprox/tensor/web/AproxTensorWSHandlerFilter.java:[5,45] package org.commonjava.tensor.web.base.filter does not exist

dependencies not imported correctedly

After identifying dependencies from a previous build failure I:

  1. Execute get-maven-artefacts XXX
  2. import-maven *

The commands execute correctly and triggers a repo regen. I then execute a build but it fails with the previous set of errors:

Looking in the buildroot directories I can confirm the files that should have been imported are indeed missing. The directories are there both nothing else other than a a single file:

/home/mock/fedora-18-addons-build-64-68/root/builddir/.m2/repository/org/apache/maven/plugins/maven-dependency-plugin/2.1/maven-dependency-plugin-2.1.pom.lastUpdated
/home/mock/fedora-18-addons-build-64-68/root/builddir/.m2/repository/org/apache/maven/plugins/maven-deploy-plugin/2.5/maven-deploy-plugin-2.5.pom.lastUpdated
/home/mock/fedora-18-addons-build-64-68/root/builddir/.m2/repository/org/apache/maven/plugins/maven-release-plugin/2.2.1/maven-release-plugin-2.2.1.pom.lastUpdated
/home/mock/fedora-18-addons-build-64-68/root/builddir/.m2/repository/org/commonjava/maven/restdoc-maven-plugin/0.1/restdoc-maven-plugin-0.1.pom.lastUpdated
/home/mock/fedora-18-addons-build-66-68/root/builddir/.m2/repository/org/apache/maven/plugins/maven-dependency-plugin/2.1/maven-dependency-plugin-2.1.pom.lastUpdated
/home/mock/fedora-18-addons-build-66-68/root/builddir/.m2/repository/org/apache/maven/plugins/maven-deploy-plugin/2.5/maven-deploy-plugin-2.5.pom.lastUpdated
/home/mock/fedora-18-addons-build-66-68/root/builddir/.m2/repository/org/apache/maven/plugins/maven-release-plugin/2.2.1/maven-release-plugin-2.2.1.pom.lastUpdated
/home/mock/fedora-18-addons-build-66-68/root/builddir/.m2/repository/org/commonjava/maven/restdoc-maven-plugin/0.1/restdoc-maven-plugin-0.1.pom.lastUpdated
/home/mock/fedora-18-addons-build-67-69/root/builddir/.m2/repository/org/apache/maven/plugins/maven-dependency-plugin/2.1/maven-dependency-plugin-2.1.pom.lastUpdated
/home/mock/fedora-18-addons-build-67-69/root/builddir/.m2/repository/org/apache/maven/plugins/maven-deploy-plugin/2.5/maven-deploy-plugin-2.5.pom.lastUpdated
/home/mock/fedora-18-addons-build-67-69/root/builddir/.m2/repository/org/apache/maven/release/maven-release/2.2.1/maven-release-2.2.1.pom.lastUpdated
/home/mock/fedora-18-addons-build-67-69/root/builddir/.m2/repository/org/commonjava/maven/restdoc-maven-plugin/0.1/restdoc-maven-plugin-0.1.pom.lastUpdated
/home/mock/fedora-18-addons-build-68-70/root/builddir/.m2/repository/org/apache/maven/plugins/maven-dependency-plugin/2.1/maven-dependency-plugin-2.1.pom.lastUpdated
/home/mock/fedora-18-addons-build-68-70/root/builddir/.m2/repository/org/apache/maven/plugins/maven-deploy-plugin/2.5/maven-deploy-plugin-2.5.pom.lastUpdated
/home/mock/fedora-18-addons-build-68-70/root/builddir/.m2/repository/org/apache/maven/release/maven-release/2.2.1/maven-release-2.2.1.pom.lastUpdated

The artifacts are:

maven

org.apache.maven.plugins:maven-deploy-plugin:2.5
org.apache.maven.plugins:maven-dependency-plugin:2.1
org.apache.maven.plugins:maven-release-plugin:2.2.1

The errors I see are "no dependency information available" and "one of its dependencies could not be resolved"

Add security

Currently the system is wide open for anyone with access to the app to modify anything. To deploy this in a multi-user environment, it would be better to be able to assign different roles to different users, and be able to restrict who can use the service.

This will setup a situation where audit logging is much more feasible.

Aprox Koji build failure - missing jars

Looks like an issue with the parent pom.xml

I retrieved and imported the following missing pom files:

import-maven web-commons-bom-4.pom
import-maven shelflife-bom-0.3.pom
import-maven arquillian-bom-1.0.1.Final.pom

However its still missing some jar files:

DEBUG util.py:264: [ERROR] 'dependencies.dependency.version' for org.jboss.resteasy:resteasy-jaxrs:jar is missing. @ line 305, column 17
DEBUG util.py:264: [ERROR] 'dependencies.dependency.version' for javax.enterprise:cdi-api:jar is missing. @ line 310, column 17
DEBUG util.py:264: [ERROR] 'dependencies.dependency.version' for org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:jar is missing. @ line 315, column 17

Full error below:

DEBUG util.py:264: [ERROR] The build could not read 1 project -> [Help 1]
DEBUG util.py:264: org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
DEBUG util.py:264: [ERROR] Non-resolvable import POM: Could not find artifact org.jboss.arquillian:arquillian-bom:pom:1.0.1.Final in koji-maven-repo-fedora-18-addons-build-13 (http://hub.localdomain/kojifiles/repos/fedora-18-addons-build/13/maven) @ org.commonjava.boms:web-commons-bom:4
DEBUG util.py:264: [ERROR] Non-resolvable import POM: Could not find artifact org.commonjava.shelflife:shelflife-bom:pom:0.3 in koji-maven-repo-fedora-18-addons-build-13 (http://hub.localdomain/kojifiles/repos/fedora-18-addons-build/13/maven) @ line 87, column 19
DEBUG util.py:264: [ERROR] Non-resolvable import POM: Failure to find org.jboss.arquillian:arquillian-bom:pom:1.0.1.Final in http://hub.localdomain/kojifiles/repos/fedora-18-addons-build/13/maven was cached in the local repository, resolution will not be reattempted until the update interval of koji-maven-repo-fedora-18-addons-build-13 has elapsed or updates are forced @ line 95, column 19
DEBUG util.py:264: [ERROR] 'dependencies.dependency.version' for org.jboss.resteasy:resteasy-jaxrs:jar is missing. @ line 305, column 17
DEBUG util.py:264: [ERROR] 'dependencies.dependency.version' for javax.enterprise:cdi-api:jar is missing. @ line 310, column 17
DEBUG util.py:264: [ERROR] 'dependencies.dependency.version' for org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:jar is missing. @ line 315, column 17
DEBUG util.py:264: at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:339)
DEBUG util.py:264: at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:632)
DEBUG util.py:264: at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:581)
DEBUG util.py:264: at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:233)
DEBUG util.py:264: at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
DEBUG util.py:264: at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
DEBUG util.py:264: at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
DEBUG util.py:264: at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
DEBUG util.py:264: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
DEBUG util.py:264: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
DEBUG util.py:264: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
DEBUG util.py:264: at java.lang.reflect.Method.invoke(Method.java:601)
DEBUG util.py:264: at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
DEBUG util.py:264: at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
DEBUG util.py:264: at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
DEBUG util.py:264: at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
DEBUG util.py:264: [ERROR]
DEBUG util.py:264: [ERROR] The project org.commonjava.aprox:aprox-parent:0.7-SNAPSHOT (/maven/build/aprox/pom.xml) has 6 errors
DEBUG util.py:264: [ERROR] Non-resolvable import POM: Could not find artifact org.jboss.arquillian:arquillian-bom:pom:1.0.1.Final in koji-maven-repo-fedora-18-addons-build-13 (http://hub.localdomain/kojifiles/repos/fedora-18-addons-build/13/maven) @ org.commonjava.boms:web-commons-bom:4 -> [Help 2]
DEBUG util.py:264: org.apache.maven.model.resolution.UnresolvableModelException: Could not find artifact org.jboss.arquillian:arquillian-bom:pom:1.0.1.Final in koji-maven-repo-fedora-18-addons-build-13 (http://hub.localdomain/kojifiles/repos/fedora-18-addons-build/13/maven)
DEBUG util.py:264: at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:159)
DEBUG util.py:264: at org.apache.maven.model.building.DefaultModelBuilder.importDependencyManagement(DefaultModelBuilder.java:942)
DEBUG util.py:264: at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:403)
DEBUG util.py:264: at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:374)
DEBUG util.py:264: at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:365)
DEBUG util.py:264: at org.apache.maven.model.building.DefaultModelBuilder.importDependencyManagement(DefaultModelBuilder.java:973)
DEBUG util.py:264: at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:403)
DEBUG util.py:264: at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:374)
DEBUG util.py:264: at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:536)
DEBUG util.py:264: at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:328)
DEBUG util.py:264: at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:632)
DEBUG util.py:264: at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:581)
DEBUG util.py:264: at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:233)
DEBUG util.py:264: at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
DEBUG util.py:264: at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
DEBUG util.py:264: at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
DEBUG util.py:264: at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
DEBUG util.py:264: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
DEBUG util.py:264: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
DEBUG util.py:264: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
DEBUG util.py:264: at java.lang.reflect.Method.invoke(Method.java:601)
DEBUG util.py:264: at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
DEBUG util.py:264: at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
DEBUG util.py:264: at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
DEBUG util.py:264: at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
DEBUG util.py:264: Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact org.jboss.arquillian:arquillian-bom:pom:1.0.1.Final in koji-maven-repo-fedora-18-addons-build-13 (http://hub.localdomain/kojifiles/repos/fedora-18-addons-build/13/maven)
DEBUG util.py:264: at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:541)
DEBUG util.py:264: at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:220)
DEBUG util.py:264: at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:197)
DEBUG util.py:264: at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:323)
DEBUG util.py:264: at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:155)
DEBUG util.py:264: ... 24 more
DEBUG util.py:264: Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact org.jboss.arquillian:arquillian-bom:pom:1.0.1.Final in koji-maven-repo-fedora-18-addons-build-13 (http://hub.localdomain/kojifiles/repos/fedora-18-addons-build/13/maven)
DEBUG util.py:264: at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:945)
DEBUG util.py:264: at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:940)
DEBUG util.py:264: at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:695)
DEBUG util.py:264: at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:689)
DEBUG util.py:264: at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.get(WagonRepositoryConnector.java:445)
DEBUG util.py:264: at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:460)
DEBUG util.py:264: ... 28 more
DEBUG util.py:264: [ERROR] Non-resolvable import POM: Could not find artifact org.commonjava.shelflife:shelflife-bom:pom:0.3 in koji-maven-repo-fedora-18-addons-build-13 (http://hub.localdomain/kojifiles/repos/fedora-18-addons-build/13/maven) @ line 87, column 19 -> [Help 2]
DEBUG util.py:264: org.apache.maven.model.resolution.UnresolvableModelException: Could not find artifact org.commonjava.shelflife:shelflife-bom:pom:0.3 in koji-maven-repo-fedora-18-addons-build-13 (http://hub.localdomain/kojifiles/repos/fedora-18-addons-build/13/maven)
DEBUG util.py:264: at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:159)
DEBUG util.py:264: at org.apache.maven.model.building.DefaultModelBuilder.importDependencyManagement(DefaultModelBuilder.java:942)
DEBUG util.py:264: at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:403)
DEBUG util.py:264: at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:374)
DEBUG util.py:264: at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:536)
DEBUG util.py:264: at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:328)
DEBUG util.py:264: at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:632)
DEBUG util.py:264: at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:581)
DEBUG util.py:264: at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:233)
DEBUG util.py:264: at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
DEBUG util.py:264: at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
DEBUG util.py:264: at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
DEBUG util.py:264: at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
DEBUG util.py:264: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
DEBUG util.py:264: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
DEBUG util.py:264: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
DEBUG util.py:264: at java.lang.reflect.Method.invoke(Method.java:601)
DEBUG util.py:264: at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
DEBUG util.py:264: at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
DEBUG util.py:264: at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
DEBUG util.py:264: at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
DEBUG util.py:264: Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact org.commonjava.shelflife:shelflife-bom:pom:0.3 in koji-maven-repo-fedora-18-addons-build-13 (http://hub.localdomain/kojifiles/repos/fedora-18-addons-build/13/maven)
DEBUG util.py:264: at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:541)
DEBUG util.py:264: at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:220)
DEBUG util.py:264: at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:197)
DEBUG util.py:264: at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:323)
DEBUG util.py:264: at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:155)
DEBUG util.py:264: ... 20 more
DEBUG util.py:264: Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact org.commonjava.shelflife:shelflife-bom:pom:0.3 in koji-maven-repo-fedora-18-addons-build-13 (http://hub.localdomain/kojifiles/repos/fedora-18-addons-build/13/maven)
DEBUG util.py:264: at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:945)
DEBUG util.py:264: at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:940)
DEBUG util.py:264: at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:695)
DEBUG util.py:264: at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:689)
DEBUG util.py:264: at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.get(WagonRepositoryConnector.java:445)
DEBUG util.py:264: at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:460)
DEBUG util.py:264: ... 24 more
DEBUG util.py:264: [ERROR] Non-resolvable import POM: Failure to find org.jboss.arquillian:arquillian-bom:pom:1.0.1.Final in http://hub.localdomain/kojifiles/repos/fedora-18-addons-build/13/maven was cached in the local repository, resolution will not be reattempted until the update interval of koji-maven-repo-fedora-18-addons-build-13 has elapsed or updates are forced @ line 95, column 19 -> [Help 2]
DEBUG util.py:264: org.apache.maven.model.resolution.UnresolvableModelException: Failure to find org.jboss.arquillian:arquillian-bom:pom:1.0.1.Final in http://hub.localdomain/kojifiles/repos/fedora-18-addons-build/13/maven was cached in the local repository, resolution will not be reattempted until the update interval of koji-maven-repo-fedora-18-addons-build-13 has elapsed or updates are forced
DEBUG util.py:264: at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:159)
DEBUG util.py:264: at org.apache.maven.model.building.DefaultModelBuilder.importDependencyManagement(DefaultModelBuilder.java:942)
DEBUG util.py:264: at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:403)
DEBUG util.py:264: at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:374)
DEBUG util.py:264: at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:536)
DEBUG util.py:264: at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:328)
DEBUG util.py:264: at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:632)
DEBUG util.py:264: at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:581)
DEBUG util.py:264: at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:233)
DEBUG util.py:264: at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
DEBUG util.py:264: at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
DEBUG util.py:264: at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
DEBUG util.py:264: at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
DEBUG util.py:264: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
DEBUG util.py:264: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
DEBUG util.py:264: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
DEBUG util.py:264: at java.lang.reflect.Method.invoke(Method.java:601)
DEBUG util.py:264: at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
DEBUG util.py:264: at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
DEBUG util.py:264: at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
DEBUG util.py:264: at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
DEBUG util.py:264: Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Failure to find org.jboss.arquillian:arquillian-bom:pom:1.0.1.Final in http://hub.localdomain/kojifiles/repos/fedora-18-addons-build/13/maven was cached in the local repository, resolution will not be reattempted until the update interval of koji-maven-repo-fedora-18-addons-build-13 has elapsed or updates are forced
DEBUG util.py:264: at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:541)
DEBUG util.py:264: at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:220)
DEBUG util.py:264: at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:197)
DEBUG util.py:264: at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:323)
DEBUG util.py:264: at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:155)
DEBUG util.py:264: ... 20 more
DEBUG util.py:264: Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find org.jboss.arquillian:arquillian-bom:pom:1.0.1.Final in http://hub.localdomain/kojifiles/repos/fedora-18-addons-build/13/maven was cached in the local repository, resolution will not be reattempted until the update interval of koji-maven-repo-fedora-18-addons-build-13 has elapsed or updates are forced
DEBUG util.py:264: at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:190)
DEBUG util.py:264: at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:430)
DEBUG util.py:264: ... 24 more
DEBUG util.py:264: [ERROR] 'dependencies.dependency.version' for org.jboss.resteasy:resteasy-jaxrs:jar is missing. @ line 305, column 17
DEBUG util.py:264: [ERROR] 'dependencies.dependency.version' for javax.enterprise:cdi-api:jar is missing. @ line 310, column 17
DEBUG util.py:264: [ERROR] 'dependencies.dependency.version' for org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:jar is missing. @ line 315, column 17
DEBUG util.py:264: [ERROR]
DEBUG util.py:264: [ERROR]
DEBUG util.py:264: [ERROR] For more information about the errors and possible solutions, please read the following articles:
DEBUG util.py:264: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
DEBUG util.py:264: [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
DEBUG util.py:354: Child return code was: 1
DEBUG util.py:314: Executing command: ['/bin/umount', '-n', '-l', '/var/lib/mock/fedora-18-addons-build-13-13/root/dev/pts'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}
DEBUG util.py:354: Child return code was: 0
DEBUG util.py:314: Executing command: ['/bin/umount', '-n', '-l', '/var/lib/mock/fedora-18-addons-build-13-13/root/dev/shm'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}
DEBUG util.py:354: Child return code was: 0
DEBUG util.py:314: Executing command: ['/bin/umount', '-n', '-l', '/var/lib/mock/fedora-18-addons-build-13-13/root/sys'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}
DEBUG util.py:354: Child return code was: 0
DEBUG util.py:314: Executing command: ['/bin/umount', '-n', '-l', '/var/lib/mock/fedora-18-addons-build-13-13/root/proc'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}
DEBUG util.py:354: Child return code was: 0
DEBUG util.py:116: kill orphans

shift 'repository' to http repository; provide other repository types

Repositories are read-only sources for artifacts. Currently, they are also defined as proxies to remote repositories. We need other types of repositories that aren't deploy-points as well. Need to shift the http-repository notion to be a special implementation that has a local cache component, then add other types:

  • zip repository (archived local cache without a "remote" component?)
  • read-only directory repo (conventional local cache without a "remote" component?)

not sure there are real use cases for other types of remote repository transports...most of these non-http types in the maven world are hacks of one form or another.

Adjustable timeouts for files

Need ability to timeout/expire merged files in groups, along with contents of proxied repositories. Should allow the timeouts to be adjusted down to 30 seconds or so, which will approximate no-storage proxies (though we will store for short period to help trunk multiple / related requests for the same artifact)

Build Failure - org.commonjava.aprox:aprox-api:jar:0.8.3-SNAPSHOT

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.357s
[INFO] Finished at: Fri Sep 06 20:45:29 CEST 2013
[INFO] Final Memory: 123M/3925M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project aprox-api: Could not resolve dependencies for project org.commonjava.aprox:aprox-api:jar:0.8.3-SNAPSHOT: Could not find artifact org.commonjava.maven.galley:galley-transport-httpclient:jar:0.3.0-SNAPSHOT -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :aprox-api

merge archetype-catalog.xml

When archetype-catalog.xml is requested from a group, it needs to be merged, just like maven-metadata.xml is now.

Refactor API to model classes, wrap for DB storage

Revert the design change that made the basic model (Repository, Group, DeployPoint) interfaces in the api project, and reinstate them as actual implementations. Then, wrap these implementations for storage in places like CouchDB.

NOTE: Accommodate older documents representing the old way (CouchDB docs that were the model instances) using a version flag to determine how to deserialize. ALWAYS store using current model version (2, in this case).

Aprox Koji build failure: Cannot run program "npm"

191s]
DEBUG util.py:264: [INFO] AProx :: Add-Ons .................................. SUCCESS [0.092s]
DEBUG util.py:264: [INFO] AProx :: Auto-Proxy Add-On ........................ SUCCESS [1.450s]
DEBUG util.py:264: [INFO] AProx :: Tensor Integration ....................... SUCCESS [4.348s]
DEBUG util.py:264: [INFO] AProx :: Dot-Maven (.m2 WebDAV) Add-On ............ SUCCESS [0.645s]
DEBUG util.py:264: [INFO] AProx :: Index Merger ............................. SUCCESS [1.333s]
DEBUG util.py:264: [INFO] AProx :: WARs ..................................... SUCCESS [0.083s]
DEBUG util.py:264: [INFO] AProx :: Minimal REST WAR ......................... SUCCESS [2.276s]
DEBUG util.py:264: [INFO] AProx :: UIs ...................................... SUCCESS [0.050s]
DEBUG util.py:264: [INFO] AProx :: Monorail UI Overlay (WAR) ................ FAILURE [0.125s]
DEBUG util.py:264: [INFO] AProx :: Basic WAR ................................ SKIPPED
DEBUG util.py:264: [INFO] AProx :: Savant ................................... SKIPPED
DEBUG util.py:264: [INFO] AProx :: EasyProx ................................. SKIPPED
DEBUG util.py:264: [INFO] ------------------------------------------------------------------------
DEBUG util.py:264: [INFO] BUILD FAILURE
DEBUG util.py:264: [INFO] ------------------------------------------------------------------------
DEBUG util.py:264: [INFO] Total time: 46.535s
DEBUG util.py:264: [INFO] Finished at: Fri May 31 03:48:04 CEST 2013
DEBUG util.py:264: [INFO] Final Memory: 57M/623M
DEBUG util.py:264: [INFO] ------------------------------------------------------------------------
DEBUG util.py:264: [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (npm-install) on project aprox-ui-monorail: Command execution failed. Cannot run program "npm" (in directory "/maven/build/aprox/uis/monorail/target/spine-app"): error=2, No such file or directory -> [Help 1

Produce plain-text file containing mock Maven console output for artifact downloads

Some tooling parses the console log output from Maven looking for 'Downloading...' lines, then grabs those lines to assemble a full repository for that build.

We should have a depgraph/downloads/* url that will mock up a very dense version of a Maven console log that can be fed into these tools...it should be configured using POSTed JSON with graph root(s), preset filter, and classifier/type tuples for attachment resolution.

cannot find symbol [ERROR] symbol: class ServletSerializerUtils

[sbadakhc@localhost aprox]$ mvn -Dmaven.test.skip=true clean install

8<--snip
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.264s
[INFO] Finished at: Fri Aug 02 19:53:50 CEST 2013
[INFO] Final Memory: 35M/347M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project aprox-core: Compilation failure: Compilation failure:
[ERROR] /home/sbadakhc/sandbox/aprox/core/src/main/java/org/commonjava/aprox/core/model/io/AProxModelSerializer.java:[3,42] cannot find symbol
[ERROR] symbol: class ServletSerializerUtils
[ERROR] location: package org.commonjava.web.json.ser
[ERROR] /home/sbadakhc/sandbox/aprox/core/src/main/java/org/commonjava/aprox/core/model/io/AProxModelSerializer.java:[3,1] static import only from classes and interfaces
[ERROR] /home/sbadakhc/sandbox/aprox/core/src/main/java/org/commonjava/aprox/core/model/io/AProxModelSerializer.java:[39,16] cannot find symbol
[ERROR] symbol: method fromRequestBody(javax.servlet.http.HttpServletRequest,org.commonjava.web.json.ser.JsonSerializer,java.lang.Class<org.commonjava.aprox.model.Repository>)
[ERROR] location: class org.commonjava.aprox.core.model.io.AProxModelSerializer
[ERROR] /home/sbadakhc/sandbox/aprox/core/src/main/java/org/commonjava/aprox/core/model/io/AProxModelSerializer.java:[44,16] cannot find symbol
[ERROR] symbol: method fromRequestBody(javax.servlet.http.HttpServletRequest,org.commonjava.web.json.ser.JsonSerializer,java.lang.Class<org.commonjava.aprox.model.Group>)
[ERROR] location: class org.commonjava.aprox.core.model.io.AProxModelSerializer
[ERROR] /home/sbadakhc/sandbox/aprox/core/src/main/java/org/commonjava/aprox/core/model/io/AProxModelSerializer.java:[49,16] cannot find symbol
[ERROR] symbol: method fromRequestBody(javax.servlet.http.HttpServletRequest,org.commonjava.web.json.ser.JsonSerializer,java.lang.Class<org.commonjava.aprox.model.DeployPoint>)
[ERROR] location: class org.commonjava.aprox.core.model.io.AProxModelSerializer
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :aprox-core
[sbadakhc@localhost aprox]$ find /home/sbadakhc/.m2/ | grep org.commonjava.web.json.ser
/home/sbadakhc/.m2/repository/org/commonjava/web/json-serialization
/home/sbadakhc/.m2/repository/org/commonjava/web/json-serialization/0.4
/home/sbadakhc/.m2/repository/org/commonjava/web/json-serialization/0.4/json-serialization-0.4.pom.sha1
/home/sbadakhc/.m2/repository/org/commonjava/web/json-serialization/0.4/_maven.repositories
/home/sbadakhc/.m2/repository/org/commonjava/web/json-serialization/0.4/json-serialization-0.4.pom
/home/sbadakhc/.m2/repository/org/commonjava/web/json-serialization/0.4/json-serialization-0.4.jar
/home/sbadakhc/.m2/repository/org/commonjava/web/json-serialization/0.4/json-serialization-0.4.jar.sha1

Store definition changes for flat-file manager in git repository

Init the git repo in /var/lib/aprox/db/aprox if necessary, and store any changes in commits so we can eventually recover them if something happens.

This may also prove to be a vector for cloning an Aprox instance, though I'm not sure it would be better than the ReplicationResource for that.

Failing to enumerate constant "repository" in URL string

Following instructions as per https://mojo.redhat.com/docs/DOC-16833 (Tensor Dependency Graph Getting Started)

I get the folowwing exception when executing step 2 against my working instance.

The command is:

curl http://hub.localdomain:8080/aprox/api/1.0/depgraph/resolve/rel/repository:jb-fuse-6-rhel-6-build/org.jboss.fuse/jboss-fuse-full/6.0.0.redhat-024?wsid=1

Looks like issue with the URL. Full output below:

[root@localhost deployments]# curl http://hub.localdomain:8080/aprox/api/1.0/depgraph/resolve/rel/repository:jb-fuse-6-rhel-6-build/org.jboss.fuse/jboss-fuse-full/6.0.0.redhat-024?wsid=1

<title>JBoss Web/7.0.0.SNAPSHOT - Error report</title><style></style>

HTTP Status 500 -


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalArgumentException: No enum constant org.commonjava.aprox.model.StoreType.rel/repository
    org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:340)
    org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214)
    org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190)
    org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:540)
    org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502)
    org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
    org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
    org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
    org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)
    org.commonjava.aprox.depgraph.filter.WorkspaceHandlerFilter.doFilter(WorkspaceHandlerFilter.java:61)

root cause

java.lang.IllegalArgumentException: No enum constant org.commonjava.aprox.model.StoreType.rel/repository
    java.lang.Enum.valueOf(Enum.java:236)
    org.commonjava.aprox.model.StoreType.valueOf(StoreType.java:22)
    org.commonjava.aprox.model.StoreKey.fromString(StoreKey.java:117)
    org.commonjava.aprox.depgraph.discover.AproxDiscoverySourceManager.createSourceURI(AproxDiscoverySourceManager.java:44)
    org.commonjava.aprox.depgraph.discover.AproxDiscoverySourceManager$Proxy$_$$_WeldClientProxy.createSourceURI(AproxDiscoverySourceManager$Proxy$_$$_WeldClientProxy.java)
    org.commonjava.aprox.depgraph.rest.resolve.ResolverResource.resolveGraph(ResolverResource.java:70)
    org.commonjava.aprox.depgraph.rest.resolve.ResolverResource$Proxy$_$$_WeldClientProxy.resolveGraph(ResolverResource$Proxy$_$$_WeldClientProxy.java)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    java.lang.reflect.Method.invoke(Method.java:606)
    org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:155)
    org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257)
    org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222)
    org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211)
    org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:525)
    org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502)
    org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
    org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
    org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
    org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)
    org.commonjava.aprox.depgraph.filter.WorkspaceHandlerFilter.doFilter(WorkspaceHandlerFilter.java:61)

note The full stack trace of the root cause is available in the JBoss Web/7.0.0.SNAPSHOT logs.


JBoss Web/7.0.0.SNAPSHOT

Produce JSON mapping of GAV to set of URLs for artifact downloads in a dependency graph

Need a way to provide external tools with a mapping of GAV to a list of URLs corresponding to POM, jar, and attachment artifact downloads.

This will be added to the depgraph/downloads/* REST endpoints, and accept JSON configuration containing root GAV(s), source repository/group/deploy-point, preset filter, and attachment classifier/type tuples.

Aprox Build Failure

Failed to execute goal on project aprox-api: Could not resolve dependencies for project org.commonjava.aprox:aprox-api:jar:0.8.2-SNAPSHOT: Could not find artifact org.commonjava.maven.galley:galley-transport-httpclient:jar:0.2.0-SNAPSHOT

Checking deps.

Monorail UI drag-n-drop/edit not working with fresh repos/groups

Not sure if this was caused by the model refactor or not, but when you create a new Repository, then immediately try to edit, delete, or add that repo to a group, it won't work.

It seems some of the key model fields are missing for the new Repository item. This needs to be repaired.

Add X.509 support

Should support pasting PEM contents for key-and-cert, and also optionally for server cert. Also need to provide storage for key password, since Java keys MUST have a non-empty password (it appears to be a bug).

This needs to be configurable per repository via the UI.

org.apache.maven.plugins:maven-war-plugin is missing

In the koji root.log for the build I see the following:

DEBUG util.py:264: [WARNING]
DEBUG util.py:264: [WARNING] Some problems were encountered while building the effective model for org.commonjava.aprox.ui:aprox-ui-monorail:war:0.6.2
DEBUG util.py:264: [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missing. @ line 79, column 15
DEBUG util.py:264: [WARNING]
DEBUG util.py:264: [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
DEBUG util.py:264: [WARNING]
DEBUG util.py:264: [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
DEBUG util.py:264: [WARNING]

I edited uis/monorail/pom.xml and added the version to the stanza (version 2.3) and proceeded to run get-maven-artefacts followed by maven-import. The artefacts were successfully imported and the repo regenerated.

I then executed:

rm -rf ~/.m2
mvn clean
mvn -B dependency:resolve-plugins deploy -Dmaven.test.skip=true -DaltDeploymentRepository=local-output::default::file:///tmp/output >> /tmp/aprox-build.log 2>&1
maven-load-dependancies /tmp/aprox-build.log
koji maven-build --scratch fedora-18-addons git+https://github.com/jdcasey/aprox.git#80549dc

But I still see the error.

Aprox Koji build failure - artifact org.sonatype.oss:oss-parent:pom:7

Koji building fails with the following error:

DEBUG util.py:264: [ERROR] The build could not read 1 project -> [Help 1]
DEBUG util.py:264: org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
DEBUG util.py:264: [FATAL] Non-resolvable parent POM: Could not find artifact org.sonatype.oss:oss-parent:pom:7 in koji-maven-repo-fedora-18-addons-build-11 (http://hub.localdomain/kojifiles/repos/fedora-18-addons-build/11/maven) and 'parent.relativePath' points at wrong local POM @ line 19, column 11

add HTTP proxy support

Proxy configuration per-repository should be supported, including proxy url, user/password, and proxy type (?)

Replication endpoint

Allow the administrator/UI to submit a JSON doc containing remote Aprox URL and a set of action definitions, and replicate the repository/group/deploy-point definitions on that remote server.

Replication should have two methods:

  1. cloning/mirroring - copy the repo/group/deploy definitions to the local Aprox instance
  2. proxying - setup a new repository instance to pull from each of the repo/group/deploy stores on the remote Aprox side.

Also need support for an overwrite flag to allow redefining existing definitions in the local server, and ability to specify proxy information at two levels:

  1. global config level, for accessing the remote server's definitions/endpoints
  2. action config level, for injecting proxy configuration into the new repo/group/deploy definitions.

Later it may make sense to enable injection of X.509, authentication, and timeout configs too.

urlmap and downlog ends with NPE when no extras are requested

When I omit the "extras" section completely or when it is left empty (i.e. "[]"), the request ends up with a NullPointerException.

java.lang.NullPointerException
    org.commonjava.aprox.core.filer.DefaultFileManager.retrieve(DefaultFileManager.java:159)
    org.commonjava.aprox.core.filer.DefaultFileManager.retrieve(DefaultFileManager.java:141)
    org.commonjava.aprox.core.filer.DefaultFileManager$Proxy$_$$_WeldClientProxy.retrieve(DefaultFileManager$Proxy$_$$_WeldClientProxy.java)
    org.commonjava.aprox.depgraph.discover.AproxProjectGraphDiscoverer.getVersions(AproxProjectGraphDiscoverer.java:232)
    org.commonjava.aprox.depgraph.discover.AproxProjectGraphDiscoverer.resolveSpecificVersion(AproxProjectGraphDiscoverer.java:152)
    org.commonjava.aprox.depgraph.discover.AproxProjectGraphDiscoverer$Proxy$_$$_WeldClientProxy.resolveSpecificVersion(AproxProjectGraphDiscoverer$Proxy$_$$_WeldClientProxy.java)
    org.commonjava.maven.cartographer.ops.ResolveOps.resolve(ResolveOps.java:101)
    org.commonjava.maven.cartographer.ops.ResolveOps.resolveRepositoryContents(ResolveOps.java:167)
    org.commonjava.maven.cartographer.ops.ResolveOps$Proxy$_$$_WeldClientProxy.resolveRepositoryContents(ResolveOps$Proxy$_$$_WeldClientProxy.java)
    org.commonjava.aprox.depgraph.rest.render.RepositoryResource.resolveContents(RepositoryResource.java:296)
    org.commonjava.aprox.depgraph.rest.render.RepositoryResource.getUrlMap(RepositoryResource.java:82)
    org.commonjava.aprox.depgraph.rest.render.RepositoryResource$Proxy$_$$_WeldClientProxy.getUrlMap(RepositoryResource$Proxy$_$$_WeldClientProxy.java)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    java.lang.reflect.Method.invoke(Method.java:606)
    org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:167)
    org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269)
    org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227)
    org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216)
    org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:542)
    org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:524)
    org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:126)
    org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
    org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
    org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    org.commonjava.aprox.core.webctl.DebugFilter.doFilter(DebugFilter.java:38)
    org.commonjava.aprox.depgraph.filter.WorkspaceHandlerFilter.doFilter(WorkspaceHandlerFilter.java:61)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.