You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Lochschmied, Alexander" <Al...@Vishay.com> on 2008/06/06 09:41:28 UTC
2.2 is not building
Hi,
I've posted this on users mailing list already but I didn't get any
response. Could somebody here please help? I cannot build 2.2 from svn
checkout (revision 663844). I tried it on different machines and maven
always fails to resolve a certain artifact. Here is what I am trying:
svn co http://svn.apache.org/repos/asf/cocoon/trunk
cd trunk
rm -rf ~/.m2/repository
mvn -Dmaven.test.skip=true -P allblocks install
This results in the following build error:
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.apache.cocoon:cocoon-pipeline-impl:test-jar:tests:1.1.0-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.cocoon
-DartifactId=cocoon-pipeline-impl \
-Dversion=1.1.0-SNAPSHOT -Dclassifier=tests
-Dpackaging=test-jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there: mvn deploy:deploy-file -DgroupId=org.apache.cocoon
-DartifactId=cocoon-pipeline-impl \
-Dversion=1.1.0-SNAPSHOT -Dclassifier=tests
-Dpackaging=test-jar -Dfile=/path/to/file \
-Durl=[url] -DrepositoryId=[id]
Path to dependency:
1)
org.apache.cocoon:cocoon-pipeline-components:jar:1.1.0-SNAPSHOT
2)
org.apache.cocoon:cocoon-pipeline-impl:test-jar:tests:1.1.0-SNAPSHOT
----------
1 required artifact is missing.
for artifact:
org.apache.cocoon:cocoon-pipeline-components:jar:1.1.0-SNAPSHOT
from the specified remote repositories:
apache.snapshots
(http://people.apache.org/repo/m2-snapshot-repository),
central (http://repo1.maven.org/maven2)
Thanks,
Alexander
RE: 2.2 is not building
Posted by "Lochschmied, Alexander" <Al...@Vishay.com>.
>> svn co http://svn.apache.org/repos/asf/cocoon/trunk
>> cd trunk
>> rm -rf ~/.m2/repository
>> mvn -Dmaven.test.skip=true -P allblocks install
> Why do you skip tests?
> Try without skipping them.
Grzegorz, that (mvn -P allblocks install) results in the same problem
now for r663985.
org.apache.cocoon:cocoon-pipeline-impl:jar:1.1.0-SNAPSHOT
is still missing, see attached log if you want
Thanks,
Alexander
Re: 2.2 is not building
Posted by Grzegorz Kossakowski <gr...@tuffmail.com>.
Lochschmied, Alexander pisze:
>>>>> org.apache.cocoon:cocoon-pipeline-impl:jar:1.1.0-SNAPSHOT
>>>>> is still missing, see attached log if you want
>>>> Sorry, actually it's a little different now. The missing artifact
> now is
>>>> org.apache.cocoon:cocoon-configuration-api:jar:1.0.3-SNAPSHOT
>>> I'm testing this locally.
>>>
>>> BTW. What version of Maven do you use?
>>>
>>> You might try without allblock profile first.
>
>> I've built latest trunk (allblocks) without any trouble so this must
> be something specific to your
>> configuration.
>
>> Do you use latest Maven release?
>
> Grzegorz, I was using Maven 2.0.7 and I tried it with latest (2.0.9) and
> I tried plain 'mvn install' (with Java 1.6.0_02), it still gives build
> error because of missing
> 'org.apache.cocoon:cocoon-configuration-api:jar:1.0.3-SNAPSHOT'. I've
> tried this for now r664664.
>
> One really confusing thing is that it does work (!) with a backup
> version (from May) of ~/.m2/repository and it fails if this directory is
> empty.
Alexander, I don't really know what the exact problem is with your configuration but David
stumbled[1] across a similar problem to yours and resolved[2] it rather easily.
Could you try following list of commands:
mvn clean -P allblocks
rm -rf ~/.m2/repository
mvn install -P allblocks
All with Maven 2.0.9.
I hope it'll finally work for you.
[1] http://article.gmane.org/gmane.text.xml.cocoon.user/64789
[2] http://article.gmane.org/gmane.text.xml.cocoon.user/64798
--
Grzegorz Kossakowski
RE: 2.2 is not building
Posted by "Lochschmied, Alexander" <Al...@Vishay.com>.
>>>> org.apache.cocoon:cocoon-pipeline-impl:jar:1.1.0-SNAPSHOT
>>>> is still missing, see attached log if you want
>>>
>>> Sorry, actually it's a little different now. The missing artifact
now is
>>> org.apache.cocoon:cocoon-configuration-api:jar:1.0.3-SNAPSHOT
>>
>> I'm testing this locally.
>>
>> BTW. What version of Maven do you use?
>>
>> You might try without allblock profile first.
> I've built latest trunk (allblocks) without any trouble so this must
be something specific to your
> configuration.
> Do you use latest Maven release?
Grzegorz, I was using Maven 2.0.7 and I tried it with latest (2.0.9) and
I tried plain 'mvn install' (with Java 1.6.0_02), it still gives build
error because of missing
'org.apache.cocoon:cocoon-configuration-api:jar:1.0.3-SNAPSHOT'. I've
tried this for now r664664.
One really confusing thing is that it does work (!) with a backup
version (from May) of ~/.m2/repository and it fails if this directory is
empty.
Appreciating your help,
Alexander
Re: 2.2 is not building
Posted by Grzegorz Kossakowski <gr...@tuffmail.com>.
Grzegorz Kossakowski pisze:
> Lochschmied, Alexander pisze:
>> now for r663985.
>>> org.apache.cocoon:cocoon-pipeline-impl:jar:1.1.0-SNAPSHOT
>>> is still missing, see attached log if you want
>>
>> Sorry, actually it's a little different now. The missing artifact now is
>> org.apache.cocoon:cocoon-configuration-api:jar:1.0.3-SNAPSHOT
>
> I'm testing this locally.
>
> BTW. What version of Maven do you use?
>
> You might try without allblock profile first.
Alexander,
I've built latest trunk (allblocks) without any trouble so this must be something specific to your
configuration.
Do you use latest Maven release?
--
Grzegorz Kossakowski
Re: 2.2 is not building
Posted by Grzegorz Kossakowski <gr...@tuffmail.com>.
Lochschmied, Alexander pisze:
> now for r663985.
>> org.apache.cocoon:cocoon-pipeline-impl:jar:1.1.0-SNAPSHOT
>> is still missing, see attached log if you want
>
> Sorry, actually it's a little different now. The missing artifact now is
> org.apache.cocoon:cocoon-configuration-api:jar:1.0.3-SNAPSHOT
I'm testing this locally.
BTW. What version of Maven do you use?
You might try without allblock profile first.
--
Grzegorz Kossakowski
RE: 2.2 is not building
Posted by "Lochschmied, Alexander" <Al...@Vishay.com>.
>>> svn co http://svn.apache.org/repos/asf/cocoon/trunk
>>> cd trunk
>>> rm -rf ~/.m2/repository
>>> mvn -Dmaven.test.skip=true -P allblocks install
>> Why do you skip tests?
>> Try without skipping them.
> Grzegorz, that (mvn -P allblocks install) results in the same problem
now for r663985.
> org.apache.cocoon:cocoon-pipeline-impl:jar:1.1.0-SNAPSHOT
> is still missing, see attached log if you want
Sorry, actually it's a little different now. The missing artifact now is
org.apache.cocoon:cocoon-configuration-api:jar:1.0.3-SNAPSHOT
Re: 2.2 is not building
Posted by Grzegorz Kossakowski <gr...@tuffmail.com>.
Lochschmied, Alexander pisze:
> Hi,
>
> I've posted this on users mailing list already but I didn't get any
> response. Could somebody here please help? I cannot build 2.2 from svn
> checkout (revision 663844). I tried it on different machines and maven
> always fails to resolve a certain artifact. Here is what I am trying:
>
> svn co http://svn.apache.org/repos/asf/cocoon/trunk
> cd trunk
> rm -rf ~/.m2/repository
> mvn -Dmaven.test.skip=true -P allblocks install
Why do you skip tests?
Try without skipping them.
--
Grzegorz Kossakowski
RE: 2.2 is not building
Posted by "Lochschmied, Alexander" <Al...@Vishay.com>.
> rm -rf ~/.m2/repository
I think the problem is really when clearing local maven repository. I
managed to build 2.2 using an old local maven repository (restored from
May 16). Could it be that there is something wrong with artifacts on
central maven repo?