zhangjingl02 / activejdbc

Automatically exported from code.google.com/p/activejdbc
0 stars 0 forks source link

Clean svn checkout does not build on ubuntu #160

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install maven, javac etc.
2. svn co 
3. mvn clean install -Dmaven.test.skip=true -X 

What is the expected output? What do you see instead?
Have a activejdbc jar file and work with java like I'm used too in RoR ;). I 
really want to give activejdbc a go but building this is a pain also maven 
downloads hundreds of packages and then at the end it fails on me :(.

What version of the product are you using? On what operating system?
Ubuntu 12.1

Please provide any additional information below.
I get errors : failed to read artifactdescriptor for 
org.javalite:activejdbc-instrumentation ...

[INFO] 
[INFO] JavaLite Common Classes ........................... SUCCESS [1.895s]
[INFO] ActiveJDBC - Instrumentation Maven Plugin ......... SUCCESS [1.183s]
[INFO] ActiveJDBC - Da Framework ......................... FAILURE [0.005s]
[INFO] ActiveJDBC - Framework Root ....................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.251s
[INFO] Finished at: Thu May 24 17:01:02 CEST 2012
[INFO] Final Memory: 8M/90M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.javalite:activejdbc-instrumentation:1.2.3-SNAPSHOT or one of 
its dependencies could not be resolved: Failed to read artifact descriptor for 
org.javalite:activejdbc-instrumentation:jar:1.2.3-SNAPSHOT: Could not find 
artifact org.javalite:activejdbc-instrumentation:pom:1.2.3-SNAPSHOT -> [Help 1]
org.apache.maven.plugin.PluginResolutionException: Plugin 
org.javalite:activejdbc-instrumentation:1.2.3-SNAPSHOT or one of its 
dependencies could not be resolved: Failed to read artifact descriptor for 
org.javalite:activejdbc-instrumentation:jar:1.2.3-SNAPSHOT
    at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:129)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:142)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getMojoDescriptor(DefaultMavenPluginManager.java:261)
    at org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor(DefaultBuildPluginManager.java:185)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.setupMojoExecution(DefaultLifecycleExecutionPlanCalculator.java:152)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.setupMojoExecutions(DefaultLifecycleExecutionPlanCalculator.java:139)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:116)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:129)
    at org.apache.maven.lifecycle.internal.BuilderCommon.resolveBuildPlan(BuilderCommon.java:92)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException: Failed 
to read artifact descriptor for 
org.javalite:activejdbc-instrumentation:jar:1.2.3-SNAPSHOT
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:296)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:186)
    at org.sonatype.aether.impl.internal.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:279)
    at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:115)
    ... 25 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could 
not find artifact org.javalite:activejdbc-instrumentation:pom:1.2.3-SNAPSHOT
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:281)
    ... 28 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not 
find artifact org.javalite:activejdbc-instrumentation:pom:1.2.3-SNAPSHOT
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:528)
    ... 31 more
[ERROR] 
[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/PluginResolutionException
wschrep@wschrep-Latitude-E6520:~/activejdbc$ 

Original issue reported on code.google.com by schrepp...@gmail.com on 24 May 2012 at 3:04

GoogleCodeExporter commented 9 years ago
Two things:
1. I cannot replicate your problem, a clean build is running for me locally 
even after blowing away local Maven repo
2. Why do you need to build it? Do you intend to work with sources?
Why not simply get it from Maven central: 
http://search.maven.org/#artifactdetails|org.javalite|activejdbc|1.2.2|jar

Original comment by ipolevoy@gmail.com on 24 May 2012 at 4:20

GoogleCodeExporter commented 9 years ago
Still I'm getting the error consistently... Guess linux got me into building 
from source instead of blindly accepting binaries. I do the same for ruby 
install from sources and my gems well they are always in source code, not 
binary jars that could contain exploits couldn't they? ;). Anyway was just to 
play a little around with the java orm idea so will try maven central instead. 

Thanks for the tip!

Original comment by schrepp...@gmail.com on 24 May 2012 at 4:39

GoogleCodeExporter commented 9 years ago
this is strange, but in any case, Java is not Ruby, people get sources when 
they want to contribute to a project, other than that, they get binary

By the way, are you building a web app? If so, check out this:
http://code.google.com/p/activeweb/

Original comment by ipolevoy@gmail.com on 24 May 2012 at 4:49

GoogleCodeExporter commented 9 years ago

Original comment by ipolevoy@gmail.com on 9 Aug 2012 at 7:18