After JFrog released the source code for Artifactory 7.10.2, I tried to build it, without success.
The project seems to be a maven one (there is a pom.xml in the root project, so I guess so).
From the root of the project I gave the usual mvn package, but this resulted in an error:
$ mvn package
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.artifactory:artifactory-parent:7.10.2: Failure to find org.jfrog.common:jfrog-parent-pom:pom:7.10.2 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM # line 21, column 13
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.artifactory:artifactory-parent:7.10.2 (/tmp/jfrog-artifactory-7.10.2/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.artifactory:artifactory-parent:7.10.2: Failure to find org.jfrog.common:jfrog-parent-pom:pom:7.10.2 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM # line 21, column 13 -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
It seems that the project itself requires a local dependency, that it is not available to the tar.gz released though.
Looking at the 6.23.x source code there is a reference to artifactory-parent that is missing here, but I don't think it will compile using the old dependency.
Finally, I checked the build/ci folder, where there is a pipelines_build.sh script, but when launching it I have another error:
./pipelines_build.sh
./pipelines_build.sh: line 6: /tmp/build/ci/scripts/lib/buildInfoUtils.sh: No such file or directory
It seems that also here the tarball doesn't contain all the information in order to build the product.
For what it matters, I found the source code from this answer: Where is the Artifactory OSS source code located?
I'm doing something wrong? Can anyone help me building Artifactory?
You need to use JCenter not Maven central. Goto jcenter and download the settings.xml and then try again.
Related
I'm trying to install maven on four projects. Let me explain the context :
I have a project (not mine), and I'm trying to run it but I have errors in the code and it's obviously maven errors. I have configured the Maven Environnement with this tuto : http://www.tutorialspoint.com/maven/maven_environment_setup.htm and it seems to work.
About the project, the entire project is dividing in four projects. I own only this four project, maybe they don't give me all the sources of the project (stupid) but why not.
So I'm trying to install maven in each projects and I have some errors, could you tell me what it means please ? And what should I do to resolve it ?
Text version :
C:\Users\Lison\workspace\Persyst_1.4>mvn clean install -U
[INFO] Scanning for projects...
Downloading:
https://repo.maven.apache.org/maven2/eu/akka/AkkaToulouseSuperPom/1
.0/AkkaToulouseSuperPom-1.0.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for fr.inra.grignon:persyst:1.0-SNAPSHOT: Coul
d not find artifact eu.akka:AkkaToulouseSuperPom:pom:1.0 in central (https://rep
o.maven.apache.org/maven2) and 'parent.relativePath' points at wrong local POM #
line 6, column 10
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project fr.inra.grignon:persyst:1.0-SNAPSHOT (C:\Users\Lison\works
pace\Persyst_1.4\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for fr.inra.grignon:persyst:1.0-SNAPSHOT:
Could not find artifact eu.akka:AkkaToulouseSuperPom:pom:1.0 in central (https:/
/repo.maven.apache.org/maven2) and 'parent.relativePath' points at wrong local P
OM # line 6, column 10 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
gException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableMo
delException
**EDIT : **
Project 1
>src
>compile
>pom.xml
Project 2
>src
>pom.xml
Project 3
>src
>pom.xml
Project 4
>src
>pom.xml
It is showing
Non-resolvable parent POM for fr.inra.grignon:persyst:1.0-snapshot
it means this indicates that maven did search locally for the parent pom, but found that it was not the correct pom or missing. if the project is multimodule it should have parent project.
Reference For multimodule Project you may check this link:
https://maven.apache.org/guides/mini/guide-multiple-modules.html
Hi guys I have a Maven project working well since 9 months.
But today I get a error in Maven build
[ERROR] Failed to execute goal on project bon: Could not resolve dependencies for project com.mydev:bon:war:1.0.20.1: Failure to find com.mydev:utils:jar:1.0.0-BUILD-SNAPSHOT in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of maven2 has elapsed or updates are forced -> [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
The project is a Dynamic Web Project with maven
In pom I have a dependency to local jar
<dependency>
<groupId>com.mydev</groupId>
<artifactId>utils</artifactId>
<version>1.0.0-BUILD-SNAPSHOT</version>
</dependency>
The project com.mydev.utils has installed in my PC in .m2 folder, I check the folder D:\.m2\repository\com\mydev\utils\1.0.0-BUILD-SNAPSHOT\ and everything seems in order
_rzi_0.118
_rzi_0.227
_maven.repositories
utils-1.0.0-BUILD-SNAPSHOT.jar
utils-1.0.0-BUILD-SNAPSHOT.jar.lastUpdate
utils-1.0.0-BUILD-SNAPSHOT.pom
utils-1.0.0-BUILD-SNAPSHOT.pom.lastUpdate
m2e.lastUpdate.properties
maven-metadata-local.xml
resolver-status.properties
I do not think the problem is the pom, I have not changed anything
I tried to build another project with the same unit, and get the same error.
I install software yesterday (DB2 Express-C database server), not if maven may have lost some settings for it. wheninstall the software, do not restart
Today try to generate the war, but I get the error, I reboot the PC, but I have the same error
Edit:
One more thing you do not need to do copy and paste thing , you can just easily modify your maven setting.xml for maven repo and in eclipse point it to correct file. In above scree shot user setting path should be you maven installation dir like <your dir>\apache-maven-xxx\conf\settings.xml
settings.xml
<localRepository>D:\.m2</localRepository>
I have an open source project (https://github.com/mikera/vectorz) that uses a parent pom that is deployed on Maven Central (http://search.maven.org/#artifactdetails%7Cnet.mikera%7Cmikera-pom%7C0.2.0%7Cpom)
However I have started to get a strange error:
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project net.mikera:vectorz:0.39.1-SNAPSHOT (C:\Users\Mike\git\vect
orz\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact net.mikera:mikera
-pom:pom:0.2.0 in clojars.org (http://clojars.org/repo) and 'parent.relativePath
' points at wrong local POM # line 9, column 10 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
gException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableMo
delException
What could be causing this? Note that:
I'm 99% certain the parent pom has been successfully released on Central
clojars repo shouldn't even be required for the build
I'm running on Windows (though the issue seems to be affecting others on Linux too)
I have had projects like this working previously, however I recently upgraded to Maven 3.2.2 - could that be causing this error?
P.S. I tried checking my local .m2 repository and all it contains is a .lastUpdated file with the folloing content:
#NOTE: This is an Aether internal implementation file, its format can be changed without prior notice.
#Mon Aug 11 13:23:30 SGT 2014
http\://repo.maven.apache.org/maven2/.lastUpdated=1407734610196
http\://clojars.org/repo/.lastUpdated=1407734609627
http\://clojars.org/repo/.error=
http\://repo.maven.apache.org/maven2/.error=
Any ideas how to resolve this?
The samples and documentation in question can be found here: http://static.springsource.org/spring-flex/docs/1.5.0.M1/
The reference doc ( here ) tells us to download the sample application:
Included in the project distribution
is a collection of samples called the
Spring BlazeDS Integration Test Drive.
This samples project is set up to be
built with Maven and then imported
into Eclipse for running the
application via WTP.
The samples in question, must either be spring-flex-testdrive-spring3.zip which is linked to in the document or spring-flex-testdrive-spring3.zip based on the notion that this is release 1.5.0.M1 (docs and samples).
After I configure maven as described with the proper environment variable:
MAVEN_OPTS="-Xms256m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=256m"
I then execute (per instruction) the command to install: mvn clean install from the extracted samples directory (in my case C:\spring-flex-testdrive ), I receive the following error:
C:\spring-flex-testdrive>mvn clean install
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.springframework.flex.samples:spring-flex-testdrive:1.5.0.M1 (C:\spring-flex-testdrive\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Failure to find org.springframework.flex:spring-flex-parent:pom:1.5.0.M1 in http://maven.springframework.org/external was cached in the local repository, resolution will not be
reattempted until the update interval of spring-external has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM # line 5, column 10 -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
C:\spring-flex-testdrive>
I have managed to get a "Spring BlazeDS" application working (with Flex), but now I'm at the point where I need to implement security, and if the samples would compile and run correctly, it'd be a huge help. I am new to Maven, but any help would be greatly appreciated!
Thanks in advance StackOverflow community!
Brian, please add the following snippet to the pom.xml in the root of the samples (from where you execute mvn clean install) and re-run Maven:
<repository>
<id>spring-milestone</id>
<name>Spring Milestone Repository</name>
<url>http://maven.springframework.org.s3.amazonaws.com/milestone</url>
</repository>
Hope that helps.
Christian
I get the same error. Spring Flex 1.5M2 will be out very soon. So maybe give it another try with that.
I would recommend that if go with Parsley for Actionscript/Flex framework. It is more mature in may ways than Spring-Actionscript. Moreover it is a required library for much of Cairngorm 3. Good luck.
I am using maven 3.0.2 version.
mvn --version works fine on command line but when I try
mvn install it does not work & shows following error.
Z:\dev\hector rantav>mvn install
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project me.prettyprint:hector:0.7.0-24-SNAPSHOT (Z:\dev\hector ran
tav\pom.xml) has 1 error
[ERROR] Unresolveable build extension: Plugin org.apache.maven.scm:maven-scm
-manager-plexus:1.3 or one of its dependencies could not be resolved: Could not
transfer artifact junit:junit:jar:3.8.2 from/to central (http://repo1.maven.org/
maven2): Error transferring file: repo1.maven.org: Unknown host repo1.maven.org
-> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
gException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException
Please let me how I can fix this.
Proxy usage is a factor, hope this will help: Maven Guide to Using Proxies
If your proxy requires NTLM authentication, you'll also probably need cntlm
The http://repo1.maven.org/maven2/ repository is down quite often, so maybe you were just out of luck that time.