You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Wayne Fay <wa...@gmail.com> on 2009/12/11 20:25:06 UTC

Re: What happens to cause a build to not work after blowing out your repo - how to force so things are always checked locally?

> 2) What happens that causes my initial build to work but then later not work
> if I start with a cleaned out local repository? Does it mean some dependency
> repository got borked somehow? (Again, it would sure be nice to know about

I think there's an extremely good chance you do not have your plugin
versions locked down in your pom files with
<version>[1.2.3]</version>.

Previously, you were using a plugin say version 1.0 that worked fine.
Then your coworker came along a few months later, pulled down a later
version of the plugin that "has issues" and poof, problems.

You rebuild with old repo and it uses the old plugin, no problems. You
delete and retry, pull down new plugin, and problems.

Obviously I'm not positive about this but I'd make a pretty good bet
about it... And in case it wasn't clear, this is not Maven's fault.
Plugins should be locked down in your project poms. Use the enforcer
plugin to be sure.

Wayne

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


Re: What happens to cause a build to not work after blowing out your repo - how to force so things are always checked locally?

Posted by Rick R <ri...@gmail.com>.
On Fri, Dec 11, 2009 at 6:37 PM, Rick R <ri...@gmail.com> wrote:

>
> Now to add to the confusion, not sure it's the firewall at all ... on the
> Mac and Windows machine both behind company firewall...the Mac now gives the
> errors like:
>
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) com.adobe.flex:compiler:pom:3.2.0.3958
>   Path to dependency:
>         1) org.sonatype.flexmojos:flexmojos-maven-plugin:maven-plugin:3.4.2
>         2) com.adobe.flex:compiler:pom:3.2.0.3958
>
>
>
For what it's worth I got past my recent errors by changing the repository
http://repository.sonatype.org/content/groups/public/

Now the project that I provided earlier that was zipped up builds, but I
still have the issue in my current project related to the below. But I'll
work now on debugging better since the archetype works it must be something
conflicting in my code causing an issue. Still really odd my old repo works
with the same code base though. That part has me really stumped.

[WARNING] Not defined if locales should be merged or not
[WARNING] Unable to find license.jar on classpath. Check wiki for
instructions about how to add it:
   https://docs.sonatype.org/display/FLEXMOJOS/FAQ#FAQ-1.3
[FATAL ERROR] org.sonatype.flexmojos.compiler.LibraryMojo#execute() caused a
linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check
the realms:
[FATAL ERROR] Plugin realm =
app0.child-container[org.sonatype.flexmojos:flexmojos-maven-plugin:3.4.2]
....
urls[93] =
file:/Users/rick/.m2/repository/org/apache/maven/shared/maven-plugin-testing-harness/1.1/maven-plugin-testing-harness-1.1.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/Users/rick/java/maven/lib/maven-2.2.1-uber.jar
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] org/jdom/input/SAXBuilder
org.jdom.input.SAXBuilder
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NoClassDefFoundError: org/jdom/input/SAXBuilder
        at
org.sonatype.flexmojos.utilities.FDKConfigResolver.getConfig(FDKConfigResolver.java:95)

Re: What happens to cause a build to not work after blowing out your repo - how to force so things are always checked locally?

Posted by Rick R <ri...@gmail.com>.
On Fri, Dec 11, 2009 at 6:27 PM, Rick R <ri...@gmail.com> wrote:

>
> On Fri, Dec 11, 2009 at 5:22 PM, Wayne Fay <wa...@gmail.com> wrote:
>
>> > runs just fine when going against my OLD repo. With a fresh EMPTY repo
>> I'll
>> > end up with the following:
>> >
>> >
>> app0.child-container[org.sonatype.flexmojos:flexmojos-maven-plugin:3.4.2]
>>
>> What version of the flexmojos-maven-plugin is used in your successful
>> build, against the old repo? Use -X for debug mode if you're not sure.
>>
>>
>
>
> My old repo only has 3.4.2 plugin so isn't that all it can run against?
>
>  But here is the really weird thing (and I'm wondering if it is some issue
> being behind the work firewall?)
>

Now to add to the confusion, not sure it's the firewall at all ... on the
Mac and Windows machine both behind company firewall...the Mac now gives the
errors like:

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) com.adobe.flex:compiler:pom:3.2.0.3958
  Path to dependency:
        1) org.sonatype.flexmojos:flexmojos-maven-plugin:maven-plugin:3.4.2
        2) com.adobe.flex:compiler:pom:3.2.0.3958


Yet on Windows it's the same thing as I saw on the home linux box (not
behind a firewall):

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) com.adobe.flex.framework:flex-framework:pom:3.2.0.3958
  Path to dependency:
        1) net.reumann:swc:swc:1.0-SNAPSHOT
        2) com.adobe.flex.framework:flex-framework:pom:3.2.0.3958
----------
1 required artifact is missing.
for artifact:
  net.reumann:swc:swc:1.0-SNAPSHOT
from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

RE: What happens to cause a build to not work after blowing out your repo - how to force so things are always checked locally?

Posted by Martin Gainty <mg...@hotmail.com>.
i could'nt locate that artifact

can you repoint to sonatype?
http://repository.sonatype.org/service/local/repositories/flex/content/org/graniteds/granite-generator-share/2.0.0.GA/granite-generator-share-2.0.0.GA.pom

hth
Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Fri, 11 Dec 2009 18:27:11 -0500
> Subject: Re: What happens to cause a build to not work after blowing out your 	repo - how to force so things are always checked locally?
> From: rickcr@gmail.com
> To: users@maven.apache.org
> 
> On Fri, Dec 11, 2009 at 5:22 PM, Wayne Fay <wa...@gmail.com> wrote:
> 
> > > runs just fine when going against my OLD repo. With a fresh EMPTY repo
> > I'll
> > > end up with the following:
> > >
> > > app0.child-container[org.sonatype.flexmojos:flexmojos-maven-plugin:3.4.2]
> >
> > What version of the flexmojos-maven-plugin is used in your successful
> > build, against the old repo? Use -X for debug mode if you're not sure.
> >
> >
> 
> 
> My old repo only has 3.4.2 plugin so isn't that all it can run against?
> 
>  But here is the really weird thing (and I'm wondering if it is some issue
> being behind the work firewall?) I took that same test project that I posted
> and used it from a linux box not behind the company firewall (with a
> completely fresh repo as well) and I end up with the following error
> instead:
> 
> 
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> 
> Missing:
> ----------
> 1) com.adobe.flex.framework:flex-framework:pom:3.2.0.3958
>   Path to dependency:
>         1) net.reumann:swc:swc:1.0-SNAPSHOT
>         2) com.adobe.flex.framework:flex-framework:pom:3.2.0.3958
> 
> ----------
> 1 required artifact is missing.
> 
> for artifact:
>   net.reumann:swc:swc:1.0-SNAPSHOT
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> 
> 
> AND NOW.... back on the mac machine, when running that test fresh again I
> now notice these kinds of messages which don't look good:
> 
> Downloading:
> http://repo1.maven.org/maven2/org/graniteds/granite-generator-share/2.0.0.GA/granite-generator-share-2.0.0.GA.pom
> [INFO] Unable to find resource 'org.graniteds:granite-generator-share:pom:
> 2.0.0.GA' in repository central (http://repo1.maven.org/maven2)
> Downloading:
> http://repo1.maven.org/maven2/org/sonatype/flexmojos/flexmojos-generator-constraints/3.4.2/flexmojos-generator-constraints-3.4.2.pom
> 
> Downloading:
> http://repo1.maven.org/maven2/com/adobe/flex/compiler/3.2.0.3958/compiler-3.2.0.3958.pom
> [INFO] Unable to find resource 'com.adobe.flex:compiler:pom:3.2.0.3958' in
> repository central (http://repo1.maven.org/maven2)
> Downloading:
> http://repo1.maven.org/maven2/com/adobe/flex/compiler/3.2.0.3958/compiler-3.2.0.3958.pom
> [INFO] Unable to find resource 'com.adobe.flex:compiler:pom:3.2.0.3958' in
> repository central (http://repo1.maven.org/maven2)
> Downloading:
> http://repo1.maven.org/maven2/com/adobe/flex/compiler/asdoc/3.2.0.3958/asdoc-3.2.0.3958.pom
> [INFO] Unable to find resource
> 'com.adobe.flex.compiler:asdoc:pom:3.2.0.3958' in repository central (
> http://repo1.maven.org/maven2)
> Downloading:
> http://repo1.maven.org/maven2/com/adobe/flex/compiler/asdoc/3.2.0.3958/asdoc-3.2.0.3958.pom
> [INFO] Unable to find resource
> 'com.adobe.flex.compiler:asdoc:pom:3.2.0.3958' in repository central (
> http://repo1.maven.org/maven2)
> 
> and the error is completely DIFFERENT now:
> 
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> 
> Missing:
> ----------
> 1) com.adobe.flex:compiler:pom:3.2.0.3958
>   Path to dependency:
>         1) org.sonatype.flexmojos:flexmojos-maven-plugin:maven-plugin:3.4.2
>         2) com.adobe.flex:compiler:pom:3.2.0.3958
> 
> ... and 5 others missing as well
> 
> I'm going nuts:)
 		 	   		  
_________________________________________________________________
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141664/direct/01/

Re: What happens to cause a build to not work after blowing out your repo - how to force so things are always checked locally?

Posted by Rick R <ri...@gmail.com>.
On Fri, Dec 11, 2009 at 5:22 PM, Wayne Fay <wa...@gmail.com> wrote:

> > runs just fine when going against my OLD repo. With a fresh EMPTY repo
> I'll
> > end up with the following:
> >
> > app0.child-container[org.sonatype.flexmojos:flexmojos-maven-plugin:3.4.2]
>
> What version of the flexmojos-maven-plugin is used in your successful
> build, against the old repo? Use -X for debug mode if you're not sure.
>
>


My old repo only has 3.4.2 plugin so isn't that all it can run against?

 But here is the really weird thing (and I'm wondering if it is some issue
being behind the work firewall?) I took that same test project that I posted
and used it from a linux box not behind the company firewall (with a
completely fresh repo as well) and I end up with the following error
instead:


[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) com.adobe.flex.framework:flex-framework:pom:3.2.0.3958
  Path to dependency:
        1) net.reumann:swc:swc:1.0-SNAPSHOT
        2) com.adobe.flex.framework:flex-framework:pom:3.2.0.3958

----------
1 required artifact is missing.

for artifact:
  net.reumann:swc:swc:1.0-SNAPSHOT

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


AND NOW.... back on the mac machine, when running that test fresh again I
now notice these kinds of messages which don't look good:

Downloading:
http://repo1.maven.org/maven2/org/graniteds/granite-generator-share/2.0.0.GA/granite-generator-share-2.0.0.GA.pom
[INFO] Unable to find resource 'org.graniteds:granite-generator-share:pom:
2.0.0.GA' in repository central (http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/org/sonatype/flexmojos/flexmojos-generator-constraints/3.4.2/flexmojos-generator-constraints-3.4.2.pom

Downloading:
http://repo1.maven.org/maven2/com/adobe/flex/compiler/3.2.0.3958/compiler-3.2.0.3958.pom
[INFO] Unable to find resource 'com.adobe.flex:compiler:pom:3.2.0.3958' in
repository central (http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/com/adobe/flex/compiler/3.2.0.3958/compiler-3.2.0.3958.pom
[INFO] Unable to find resource 'com.adobe.flex:compiler:pom:3.2.0.3958' in
repository central (http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/com/adobe/flex/compiler/asdoc/3.2.0.3958/asdoc-3.2.0.3958.pom
[INFO] Unable to find resource
'com.adobe.flex.compiler:asdoc:pom:3.2.0.3958' in repository central (
http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/com/adobe/flex/compiler/asdoc/3.2.0.3958/asdoc-3.2.0.3958.pom
[INFO] Unable to find resource
'com.adobe.flex.compiler:asdoc:pom:3.2.0.3958' in repository central (
http://repo1.maven.org/maven2)

and the error is completely DIFFERENT now:

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) com.adobe.flex:compiler:pom:3.2.0.3958
  Path to dependency:
        1) org.sonatype.flexmojos:flexmojos-maven-plugin:maven-plugin:3.4.2
        2) com.adobe.flex:compiler:pom:3.2.0.3958

... and 5 others missing as well

I'm going nuts:)

Re: What happens to cause a build to not work after blowing out your repo - how to force so things are always checked locally?

Posted by Wayne Fay <wa...@gmail.com>.
> runs just fine when going against my OLD repo. With a fresh EMPTY repo I'll
> end up with the following:
>
> app0.child-container[org.sonatype.flexmojos:flexmojos-maven-plugin:3.4.2]

What version of the flexmojos-maven-plugin is used in your successful
build, against the old repo? Use -X for debug mode if you're not sure.

Wayne

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


Re: What happens to cause a build to not work after blowing out your repo - how to force so things are always checked locally?

Posted by Rick R <ri...@gmail.com>.
On Fri, Dec 11, 2009 at 2:25 PM, Wayne Fay <wa...@gmail.com> wrote:

>
> I think there's an extremely good chance you do not have your plugin
> versions locked down in your pom files with
> <version>[1.2.3]</version>.
>


I'm pretty sure my small project hasn't changed version numbers of plugins
so I'm completely stumped. For example, here is a created archetype if
someone wants to run mvn clean install in the root (it's small, it'll break
when trying to do the unit test for flash without the plugin but i don't
care about that, if you got to that point you got passed the error I'm
seeing.)  http://dl.dropbox.com/u/86998/flex-project.zip

This is what is odd, is that project above which I just made from the
following archetype cmd

mvn archetype:generate -DarchetypeRepository=
http://repository.sonatype.org/content/groups/flexgroup-DarchetypeGroupId=org.sonatype.flexmojos
-DarchetypeArtifactId=flexmojos-archetypes-modular-webapp
-DarchetypeVersion=3.4.1  (as described in the 3rd archetype here
http://flexmojos.sonatype.org/getting-started.html )

runs just fine when going against my OLD repo. With a fresh EMPTY repo I'll
end up with the following:

~/projects/flex-project $ mvn clean install
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Unnamed - net.reumann:flex-project:pom:1.0-SNAPSHOT
[INFO]   swc Library
[INFO]   swf Application
[INFO]   Unnamed - net.reumann:war:war:1.0-SNAPSHOT
[WARNING] POM for 'classworlds:classworlds:pom:1.1:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'jaxen:jaxen:pom:1.1:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[INFO]
------------------------------------------------------------------------
[INFO] Building Unnamed - net.reumann:flex-project:pom:1.0-SNAPSHOT
[INFO]    task-segment: [clean, install]
[INFO]
------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing /Users/rick/projects/flex-project/pom.xml to
/Users/rick/.m2/repository/net/reumann/flex-project/1.0-SNAPSHOT/flex-project-1.0-SNAPSHOT.pom
[INFO]
------------------------------------------------------------------------
[INFO] Building swc Library
[INFO]    task-segment: [clean, install]
[INFO]
------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory /Users/rick/projects/flex-project/swc/target
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (MacRoman actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
/Users/rick/projects/flex-project/swc/src/main/resources
[INFO] [flexmojos:compile-swc {execution: default-compile-swc}]
[INFO] Flexmojos 3.4.2 - Apache License (NO WARRANTY) - See COPYRIGHT file
[WARNING] Not defined if locales should be merged or not
[WARNING] Unable to find license.jar on classpath. Check wiki for
instructions about how to add it:
   https://docs.sonatype.org/display/FLEXMOJOS/FAQ#FAQ-1.3
[FATAL ERROR] org.sonatype.flexmojos.compiler.LibraryMojo#execute() caused a
linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check
the realms:
[FATAL ERROR] Plugin realm =
app0.child-container[org.sonatype.flexmojos:flexmojos-maven-plugin:3.4.2]
urls[0] =
file:/Users/rick/.m2/repository/org/sonatype/flexmojos/flexmojos-maven-plugin/3.4.2/flexmojos-maven-plugin-3.4.2.jar
urls[1] =
file:/Users/rick/.m2/repository/org/sonatype/flexmojos/flexmojos-generator-api/3.4.2/flexmojos-generator-api-3.4.2.jar
urls[2]..etc etc
urls[3]....
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/Users/rick/java/maven/lib/maven-2.2.1-uber.jar
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] org/jdom/input/SAXBuilder
org.jdom.input.SAXBuilder
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NoClassDefFoundError: org/jdom/input/SAXBuilder
        at
org.sonatype.flexmojos.utilities.FDKConfigResolver.getConfig(FDKConfigResolver.java:95)