Thursday, 15 September 2011

java - Maven Run Error "maven-clean-plugin:2.5 or one of its dependencies could not be resolved" -


Using İntelliJIdea, I have downloaded the project from Subversion for 12 times.

Deleted. 7-8 times for M2 / repository

Reimported, 15 times for the downloaded source. Tried every possibility, but still my project can not be run.

Here is my maven run profile and project hierarchy

project hiyerarchy

And here it is my Maven output

[ERROR] Plugin org.apache.maven.plugins: maven-clean -Plugin: 2.5 or any of its dependencies One can not be solved: Can not access mid () in offline mode and artistry org.apache.maven.plugins: maven-clean-plugin: jar: 2.5 before it has not been downloaded -> [Help 1 ]

Project Some Meven files is nothing wrong I do it I am running on my computer, but my personality.

Update1 : After I have deleted the "A" parameter in the Maven run configuration, here is my new log and here is the image URL

Update2 : I run this command on CMD, C: \ MAYA \ MAD4> MVN Dependency: Tree-DABBOS result is success and in my code C: \ USER See also \ tayfuny \ .m2 \ repository \ org \ codehaus \ plexus \ plexus-digest \ 1.0 \ plexus-di gest-1.0.jar . Here's the latest Maven Output

Update: Switzerland - Code> -o parameter is specified in the command line in the section: . This console parameter is off to offline Maven;) Remove it and you should be all good. Source:

Update 2: OK the initial problem has been solved - shows two more things to fix your logs (one of these alternatives, but highly recommended ): 1.) Alerts You have duplicate dependency / version announcements at the beginning of creation - this should be easy to decide, for example, to get an overview on duplicate, mvn dependence: tree-devos Can use (And which is the definition in the end). Second Actual Build Error I think you are not aware of the installed plugin that you are using, but I think you are missing this dependency: (or any other class that can not be found - which Also adjust the version as needed).

Answer about offline mode:

Delete the parameter -o until it should not work in offline mode only

Another possible reason with your local repositories is clearly establishing Maven for working in offline mode (for example only to consult the local repository to resolve the dependency) IDE From within (Joe Maven to the -o parameter behind the scenario ).

General Settings / Project Settings:

File - & gt; Settings - & gt; Build, execution, deployment - & gt; Create a device - & gt; Maven

(unless you really want to work with local stores, the first option work offline should be disabled / unchecked).

These settings are inherited by Maven-run configuration by default, but it can be overwritten on two levels

Default run configuration: < / Em>

Enter image details here (those default configurations by specific run configuration It will be inherited. Note that changes in the general setting apply to newly created run configuration Not only will be populated for existing and existing ones).

Specific run configuration: Enter image details here < / P>

Make sure that no option is selected. Finally, if you use a specific launch configuration, make sure that the option is not selected in that specific configuration and to change the higher levels for the convenience if it Makes sense)


No comments:

Post a Comment