You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Papapara Tudu <pa...@poczta.onet.pl> on 2008/02/15 17:46:33 UTC

Local repository not downloading Eclipse plugins from the internal repository

Hello,
my project is using an internal repository for all dependencies.
For some reason I cannot run any of the Eclipse Maven plugins, however all
other dependencies get downloaded correctly from the internal repository.
For example, when I run
mvn eclipse:eclipse, I get the following error:

[INFO] Searching repository for plugin with prefix: 'eclipse'.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-eclipse-plugin' does not
exist
 or no valid version could be found
[INFO]
------------------------------------------------------------------------

I deleted the whole \org\apache\maven\plugins folder from my local
repository but that didn't change. I also tested deleting that folder on the
internal repository and then running eclipse:eclipse on that machine and it
went fine, the plugin got installed correctly. But my local repository
doesn't pick up that plugin from the internal repository. 
Also the Eclipse plugins like eclipse:eclipse and eclipse:clean were
definitely working for me before, which I don't understand. I'm using maven
2.0.7. 

Any ideas why that might be happening? 

Thanks,
Papapara Tudu


-- 
View this message in context: http://www.nabble.com/Local-repository-not-downloading-Eclipse-plugins-from-the-internal-repository-tp15502970s177p15502970.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Local repository not downloading Eclipse plugins from the internal repository

Posted by Papapara Tudu <pa...@poczta.onet.pl>.


Wendy Smoak-3 wrote:
> 
> 
> No <pluginRespositories> ?  You'll need to repeat the repository as a
> pluginRepository if you want Maven to check it for plugins.
> 
> Also check the repository metadata for the Eclipse plugin.  Plugins
> won't work unless the metadata contains the 'release' and 'latest'
> elements.  (Possibly only one of those is necessary, but if both are
> missing, it won't work.)
> 
> 

Hi Wendy,
thank you for helping me out again (last time on the Archiva users forum) :)
Yes you were right again, it was the missing <pluginRespositories> tag. I
guess it worked before because I had some old versions of Eclipse plugins on
the machines where I have my local and internal repository which were
created earlier, before the project was set up with the internal repo.

Thanks,
Papapara Tudu


-- 
View this message in context: http://www.nabble.com/Local-repository-not-downloading-Eclipse-plugins-from-the-internal-repository-tp15502970s177p15560496.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Local repository not downloading Eclipse plugins from the internal repository

Posted by Wendy Smoak <ws...@gmail.com>.
On Feb 18, 2008 10:31 AM, Papapara Tudu <pa...@poczta.onet.pl> wrote:

> I'm using Archiva 1.0.1 and Maven 2.0.8.
> My Maven settings.xml are the default ones, no changes (on both machines).
> My pom.xml has the following entry:
...
>         <repositories>
...

No <pluginRespositories> ?  You'll need to repeat the repository as a
pluginRepository if you want Maven to check it for plugins.

Also check the repository metadata for the Eclipse plugin.  Plugins
won't work unless the metadata contains the 'release' and 'latest'
elements.  (Possibly only one of those is necessary, but if both are
missing, it won't work.)

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Local repository not downloading Eclipse plugins from the internal repository

Posted by Papapara Tudu <pa...@poczta.onet.pl>.

Wayne Fay wrote:
> 
> What software are you using to run your internal repository? And how
> did you get the plugin there (mvn deploy; manual copy of files;
> something else)? Make sure the metadata is present for the Eclipse
> plugin in your repo.
> 

I'm using Archiva 1.0.1 and Maven 2.0.8.
My Maven settings.xml are the default ones, no changes (on both machines).
My pom.xml has the following entry:

	<distributionManagement>
		<snapshotRepository>
			<id>projectrepo</id>
			<url>
				dav:http://here.build.machine.ip/archiva/repository/projectrepo/
			</url>
		</snapshotRepository>
	</distributionManagement>

	<repositories>
		<repository>
			<id>projectrepo</id>
			<name>projectreponame</name>
			<url>http://here.build.machine.ip/archiva/repository/projectrepo/</url>
			<releases>
				<enabled>true</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</repository>
	</repositories>

The problem is, I have noticed that even when I run a build on the build
machine, where the Archiva repository is located, it also doesn't download
any Maven plugins.

The only way for me to download and install the Maven plugins both on the
build and my local machine is to set a proxy in my settings.xml and comment
out the <distributionManagement> and <repositories> elements from pom.xml -
so when I bypass the internal repository, it works fine. 

What could be wrong there?

Thanks,
Papapara Tudu


-- 
View this message in context: http://www.nabble.com/Local-repository-not-downloading-Eclipse-plugins-from-the-internal-repository-tp15502970s177p15547059.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Local repository not downloading Eclipse plugins from the internal repository

Posted by Wayne Fay <wa...@gmail.com>.
What software are you using to run your internal repository? And how
did you get the plugin there (mvn deploy; manual copy of files;
something else)? Make sure the metadata is present for the Eclipse
plugin in your repo.

Wayne

On 2/15/08, Papapara Tudu <pa...@poczta.onet.pl> wrote:
>
> Hello,
> my project is using an internal repository for all dependencies.
> For some reason I cannot run any of the Eclipse Maven plugins, however all
> other dependencies get downloaded correctly from the internal repository.
> For example, when I run
> mvn eclipse:eclipse, I get the following error:
>
> [INFO] Searching repository for plugin with prefix: 'eclipse'.
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.maven.plugins:maven-eclipse-plugin' does not
> exist
>  or no valid version could be found
> [INFO]
> ------------------------------------------------------------------------
>
> I deleted the whole \org\apache\maven\plugins folder from my local
> repository but that didn't change. I also tested deleting that folder on the
> internal repository and then running eclipse:eclipse on that machine and it
> went fine, the plugin got installed correctly. But my local repository
> doesn't pick up that plugin from the internal repository.
> Also the Eclipse plugins like eclipse:eclipse and eclipse:clean were
> definitely working for me before, which I don't understand. I'm using maven
> 2.0.7.
>
> Any ideas why that might be happening?
>
> Thanks,
> Papapara Tudu
>
>
> --
> View this message in context: http://www.nabble.com/Local-repository-not-downloading-Eclipse-plugins-from-the-internal-repository-tp15502970s177p15502970.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org