Great article on your plugin.

7 views
Skip to first unread message

Peder Jakobsen

unread,
Sep 27, 2007, 10:41:24 PM9/27/07
to Israfil Mojo User Discussions

Christian Gruber

unread,
Sep 28, 2007, 8:48:41 AM9/28/07
to israfil-m...@googlegroups.com
Nice! I'm a little concerned that he tried to build the plugin from
scratch, rather than just use the published binaries, but it's a good
article. I posted a comment.

Christian.

On 27-Sep-07, at 10:41 PM, Peder Jakobsen wrote:

>
> Check it out
>
> http://maximporges.blogspot.com/2007/09/build-tools-maven-flex-plugins.html
>
>
> >

maxim.porges

unread,
Sep 28, 2007, 9:53:03 PM9/28/07
to Israfil Mojo User Discussions
Christian,

Thanks again for the post on my blog. Here's one of the build files as
requested. They all failed for the same reason.

I checked the public repository and I didn't see the it-1.1-
SNAPSHOT under the following path: http://repo1.maven.org/maven2/net/israfil/mojo/maven-flex2-plugin/
- is that the reason that it's failing? Again, I'm pretty new to
Maven.

========================

+ Error stacktraces are turned on.
Maven version: 2.0.6
[DEBUG] Building Maven user-level plugin registry from: '/Users/
porgesm/.m2/plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: '/Users/
porgesm/Documents/Software and Installs/Downloads/maven-2.0.6/conf/
plugin-registry.xml'
[INFO] Scanning for projects...
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[DEBUG] maven-flex2-plugin: using locally installed snapshot
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: net.israfil.mojo
ArtifactId: maven-flex2-plugin
Version: it-1.1-SNAPSHOT

Reason: Unable to download the artifact from any repository

net.israfil.mojo:maven-flex2-plugin:pom:it-1.1-SNAPSHOT

from the specified remote repositories:
central (http://repo1.maven.org/maven2)


[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to
build project for plugin 'net.israfil.mojo:maven-flex2-plugin': POM
'net.israfil.mojo:maven-flex2-plugin' not found in repository: Unable
to download the artifact from any repository

net.israfil.mojo:maven-flex2-plugin:pom:it-1.1-SNAPSHOT

from the specified remote repositories:
central (http://repo1.maven.org/maven2)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:
1274)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.findArtifactTypeHandlers(DefaultLifecycleExecutor.java:
1176)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.findExtensions(DefaultLifecycleExecutor.java:
178)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
141)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:
315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:
430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to
build project for plugin 'net.israfil.mojo:maven-flex2-plugin': POM
'net.israfil.mojo:maven-flex2-plugin' not found in repository: Unable
to download the artifact from any repository

net.israfil.mojo:maven-flex2-plugin:pom:it-1.1-SNAPSHOT

from the specified remote repositories:
central (http://repo1.maven.org/maven2)

at
org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:
276)
at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:
192)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:
171)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:
1257)
... 14 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM
'net.israfil.mojo:maven-flex2-plugin' not found in repository: Unable
to download the artifact from any repository

net.israfil.mojo:maven-flex2-plugin:pom:it-1.1-SNAPSHOT

from the specified remote repositories:
central (http://repo1.maven.org/maven2)

at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:
573)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:
234)
at
org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:
260)
... 17 more
Caused by:
org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable
to download the artifact from any repository

net.israfil.mojo:maven-flex2-plugin:pom:it-1.1-SNAPSHOT

from the specified remote repositories:
central (http://repo1.maven.org/maven2)

at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:
197)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:
73)
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:
526)
... 19 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException:
Unable to download the artifact from any repository
at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:
324)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:
185)
... 21 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Sep 28 21:45:17 EDT 2007
[INFO] Final Memory: 1M/2M
[INFO]
------------------------------------------------------------------------

========================

On Sep 28, 8:48 am, Christian Gruber <christianedwardgru...@gmail.com>
wrote:

> >http://maximporges.blogspot.com/2007/09/build-tools-maven-flex-plugin...

maxim.porges

unread,
Sep 28, 2007, 10:07:27 PM9/28/07
to Israfil Mojo User Discussions
Not sure if this helps further, but here is the info from my
settings.xml file too. I generally don't have any issues resolving
dependencies from repo1.maven.org so long as the Artifactory instance
is running.

<?xml version="1.0" encoding="UTF-8"?>
<settings>
<servers>
<server>
<id>artifactory</id>
<username>admin</username>
<password>password</password>
</server>
<server>
<id>localArtifactory</id>
<username>admin</username>
<password>password</password>
</server>
</servers>
<mirrors>
<mirror>
<id>artifactory</id>
<name>Artifactory</name>
<url>http://mortrec:8081/artifactory/3rdp-releases</url>
<mirrorOf>*</mirrorOf>
</mirror>
<mirror>
<id>localArtifactory</id>
<name>Artifactory</name>
<url>http://localhost:8081/artifactory/3rdp-releases</url>
<mirrorOf>*</mirrorOf>
</mirror>
</mirrors>
</settings>

Christian Gruber

unread,
Sep 29, 2007, 12:09:31 AM9/29/07
to israfil-m...@googlegroups.com
Since you built it yourself, this shouldn't be a problem, but I'm
wondering why you're using a repository interceptor like that. Is
artifactory running archiva or something?

regards,
Christian.

Christian Gruber

unread,
Sep 29, 2007, 12:12:22 AM9/29/07
to israfil-m...@googlegroups.com
That's bizarre. You're using 2.0.6 which should be fine. Try re-
bulding it with -U, because you may not have had the latest maven-
install-plugin. For some reason the integration test pre-test phase
thingy isn't installing a copy of the built plugin with version it-1.1-
SNAPSHOT, which it should before you get to the point of needing to
resolve it as a dependency within the integration test.

Hmm. Also, you should be using 1.2-SNAPSHOT if you're pulling off the
trunk, as v1.1 was already released. I need to think about this. Can
you do a maven -X install on the plugin and post the output? I'd like
to see what's happening during the intergation test preparation.

Christian

> sun
> .reflect
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
> at
> sun
> .reflect
> .DelegatingMethodAccessorImpl
> .invoke(DelegatingMethodAccessorImpl.java:

> at
> org
> .apache
> .maven
> .plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:
> 171)
> at
> org
> .apache
> .maven
> .lifecycle
> .DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:

Christian Gruber

unread,
Sep 29, 2007, 12:14:29 AM9/29/07
to israfil-m...@googlegroups.com
Sorry, I should also say thanks for reviewing the plugin. It was a
pleasant surprise.

Also, it-1.1-SNAPSHOT won't be in the repo - it's only for use in your
local repository during the integration test phase (hence, it-1.1-
SNAPSHOT... it for integration test) The build itself should install
it with that altered version number.

christian.

On 28-Sep-07, at 9:53 PM, maxim.porges wrote:

Reply all
Reply to author
Forward
0 new messages