Error building Alfresco CE 5.0a in eclipse - java

I am trying to build Alfresco CE 5.0a in Eclipse.I followed steps according to this link. The checkout was successful.But while building the sourcecode using maven(using clean install) I am getting the following error.
[ERROR] Failed to execute goal on project alfresco-core: Could not resolve dependencies for project org.alfresco:alfresco-core:jar:5.0.a: The following artifacts could not be resolved: org.mybatis:mybatis:jar:3.0.4-alfresco-patched, org.springframework.extensions.surf:spring-surf-core-configservice:jar:1.2.1-M16, org.springframework.extensions.surf:spring-surf-core:jar:1.2.1-M16, org.springframework:spring-web:jar:3.0.5.RELEASE, javax.servlet:servlet-api:jar:2.4: Could not transfer artifact org.mybatis:mybatis:jar:3.0.4-alfresco-patched from/to alfresco-public (https ://artifacts.alfresco.com/nexus/content/groups/public): No response received after 60000 -> [Help 1]
I guess this is because of this jar file under the Alfresco Core 5.0.a
Downloaded: http ://repo.maven.apache.org/maven2/org/mockito/mockito-all/1.9.5/mockito-all-1.9.5.jar
I couldn't find that jar file in the specified URL.
So how can I solve this.Can I change the dependancy in pom.xml?
Help Needed.Thanks in Advance.

First Question Will be ,Why you would like to compile alfresco source code?Are you aware that We can do many customization without customizing alfresco source code.
Above was only for your information.
First try to compile it without using eclipse.Due to that you are facing error.
If still problem persist, remove dependencies from your .m2 directory of your maven and make maven download this dependencies again.If you face similar error again for different jar than remove it from .m2 and again fire clean install command.
This will definitely solve your problem.
It may be that , above mentioned error is listing your all corrupted jar files so remove first and try it again

Related

while doing maven clean install i am getting this kind of error in eclipse smart home

while doing maven clean install i am getting this kind of error in eclipse smart home
" Failed to execute goal on project eclipsesmarthome-incubation: Could not resolve dependencies for project org.eclipse.smarthome:eclipsesmarthome-incubation:pom:0.10.0-SNAPSHOT: Could not find artifact org.eclipse.smarthome.products:org.eclipse.smarthome.repo:zip:0.10.0-SNAPSHOT -> [Help 1]"
can any one help me out
The artifact
org.eclipse.smarthome.products:org.eclipse.smarthome.repo:zip:0.10.0-SNAPSHOT
is not available. This could have several reasons:
if this artifact is supposed to come from a Maven repository on the internet, make sure that this Maven repository is added to the setttings.xml
if you are behind a proxy/firewall, make sure your Maven can go through it.
if you just downloaded the artifact, you need to add it to your local repository with the help of the Maven install plugin.

Maven Build Error - Firefly Plugin - No plugin found

I have tried several methods to resolve this issue.
I am trying to install the Vaadin Starter App "Bakery"
Version using : Java, Shiro, Vaadin Platforms.
Error on build failure:
No plugin found for prefix 'firefly' in the current project and in the plugin groups
I've tried methods listed [here][1]
and another post by deleting my .m2/resources and letting it repopulate. and also a mvn clean install, but I keep getting same error messages.
Here is a [link][1] to the error messages:
Above the plugin error are some type of fetch cant get meta data messages.
I'm thinking it needs a different version of a plugin, needs pom file or settings file edited, but just have not found solution yet.
No plugin found for prefix 'firefly' in the current project and in the plugin groups
I believe it was with the plugin causing a problem. I went to this link, found the file, over-wrote the existing file with the one at the link, did a rebuild and it worked.
Maven-compiler-plugin

How to resolve missing artifact error when using Eclipse AWS plugin?

I am using the aws Java plugin for Eclipse. I didn't have any issues during the installation process but after I used the plugin to create a sample DynamoDB project, I got this error
Missing artifact com.amazonaws:aws-java-sdk-cl....watchmetris.jar:1.11.123(click for 156 more...).
clicking didn't do anything.
I thought the error was due to the fact that I didn't install that jar during the installation process - I only installed "AWS Toolkit for Eclipse".
I went back into Eclipse and installed every non optional plugin from the aws(see below)
After I restarted Eclipse and tried creating my DynamoDB project again, I get a different failed to read artifact descriptor error(see below)
Has anyone experienced this issue before or know what the solution is? Elastic load balancer should be apart of AWS Toolkit which I installed. I've tried removing and reinstalling the aws plugin but I'am still getting missing artifact errors. I've looked at other threads on AWS plugin for Eclipse as well.
For anyone dealing with this issue with this issue, I got it to work! I can't really explain why it works though - maybe Maven's way of resetting some setting.
What I did was go inside pom.xml, the configuration file for Maven, and into the Dependencies tab. This is what I saw
I reasoned that the missing artifact was in the aws-java-sdk jar so I removed it. I then deleted the project from disk and created a new one. The new project came with the correct dependencies and no compiler errors!
The problem is not your AWS Toolkit, it's a problem of your Maven. Please try to create a project with Maven to check if Maven's setting is correct. If Maven is correct, please see your pom file in XML and check the dependency is correct? If you cannot create Maven project, it's means that your Maven setting is wrong somewhere!
I received a similar error "failure to transfer com.amazonaws:aws-java-sdk ...". The pom resolution could work, but here's another solution. So, when you start an aws project for the first time, certain artifacts necessary for maven are stored under .m2\repository\com\amazonaws.
What happened to me was that when I deleted one of my aws projects, I also deleted the resources being referred to which was somewhere in the aforementioned directory. And because the directory existed, eclipse's aws toolkit didn't bother downloading it again. I solved it by just deleting the $home.m2\repository\com\amazonaws directory. So next time I created a new aws project, it had to download all the artifacts.

Could not resolve dependencies while building in Maven

Hi I am trying to build a maven project.
After building initial projects successfully, its failing. The error shows that it failed to collect dependency from a particular location in the local repository.
When I went to that location the jar files are missing in it. So I guess it is supposed to download from the remote repository.
I am wondering whether it fails to download or I am getting anything wrong? Also a few posts suggest to delete the .m2 folder. Will that cause any problems or am I suppose to delete the few folders in it?
Thanks
Try to force update dependencies with the switch -U. At least you can be sure that it is not because of your local error in .m2.

Java exception: java.lang.UnsupportedOperationException

I'm trying to execute Maven -> Update project in Eclipse. Every time i do it i get the following error:
An internal error occurred during: "Updating Maven Project".
"java.lang.UnsupportedOperationException".
If i look in the code there aren't any files marked with errors, neither the pom.xml.
Other people working on the same project don't have this problem.
What could be causing this? What details do you need to get an idea about this?
it looks you have problem with one of artifacts you have in local repository try to delete .m2 and clean install project again but you have to be connected to internet, if this not solving your issue check the version of maven you are using and compare it with others.

Categories

Resources