You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by Minto van der Sluis <mi...@multimach.com> on 2006/12/06 10:22:06 UTC

Building archiva failed

Hi folks,

I just tried to build archiva like mentioned in the documentation.
Unfortunately I get 'rewarded' with an error. When I do mvn install I get
the following error:

...
[INFO]
----------------------------------------------------------------------------
[INFO] Building Archiva Runtime Generator
[INFO]    task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [plexus:descriptor {execution: default}]
[WARNING] Specified source directory isn't a directory:
'/home/minto/rommel/test/maven/archiva/archiva-plexus-runtime/src/main/java'.
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [plexus:merge-descriptors {execution: default}]
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar:
/home/minto/rommel/test/maven/archiva/archiva-plexus-runtime/target/archiva-plexus-runtime-1.0-SNAPSHOT.jar
[WARNING] DEPRECATED [descriptor]: Please use descriptors instead
[INFO] [assembly:single {execution: default}]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error creating assembly: You must set at least one file.

[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error creating
assembly:
 You must set at least one file.
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:559)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:454)
...

However everthing seems to compile just fine as mvn compile does not give me
an error.

You guys probably wanna know what revision I am on, so here it is:

    minto@noisy:~/rommel/test/maven/archiva$ svn up
    At revision 482978.

Does anyone have a clue what caused this?

Kind regards,

Minto van der Sluis

-- 
View this message in context: http://www.nabble.com/Building-archiva-failed-tf2766950.html#a7715951
Sent from the archiva-users mailing list archive at Nabble.com.


Re: Building archiva failed

Posted by Minto van der Sluis <mi...@multimach.com>.
I finally discovered what went wrong :-)

I was using JDK 6 rc, switching back to JDK 5 solved my problems. 
Hmm, maybe I should give the official JDK 6 release a try. I will do
so later.

regards,

Minto


Wendy Smoak-3 wrote:
> 
> On 12/6/06, Minto van der Sluis <mi...@multimach.com> wrote:
> 
>> I have maven 2.0.4 as well. I did the following and got the same results:
>>
>>     svn up
>>     mvn -U install
> 
> Archiva just built fine here with Maven 2.0.4.  The only thing I did
> differently was 'mvn clean' prior to 'mvn install'.
> 
> -- 
> Wendy
> 
> 

-- 
View this message in context: http://www.nabble.com/Building-archiva-failed-tf2766950.html#a7857073
Sent from the archiva-users mailing list archive at Nabble.com.


Re: Building archiva failed

Posted by Wendy Smoak <ws...@gmail.com>.
On 12/6/06, Minto van der Sluis <mi...@multimach.com> wrote:

> I have maven 2.0.4 as well. I did the following and got the same results:
>
>     svn up
>     mvn -U install

Archiva just built fine here with Maven 2.0.4.  The only thing I did
differently was 'mvn clean' prior to 'mvn install'.

-- 
Wendy

Re: Building archiva failed

Posted by Minto van der Sluis <mi...@multimach.com>.
I have maven 2.0.4 as well. I did the following and got the same results:

    svn up
    mvn -U install

Even the following patch did not have the desired result. But at least it
reduces 1 warning.

Index: archiva-plexus-runtime/pom.xml
===================================================================
--- archiva-plexus-runtime/pom.xml      (revision 483167)
+++ archiva-plexus-runtime/pom.xml      (working copy)
@@ -132,7 +132,9 @@
           </execution>
         </executions>
         <configuration>
-          <descriptor>src/main/assembly/bin.xml</descriptor>
+          <descriptors>
+            <descriptor>src/main/assembly/bin.xml</descriptor>
+          </descriptors>
           <finalName>archiva</finalName>
         </configuration>
       </plugin>

Next I will try to do a full rebuild from scratch (mvn clean install). Let's
see if that helps.
No it did not :-( . I still have the same results

[INFO] [jar:jar]
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar:
/home/minto/rommel/test/maven/archiva/archiva-plexus-runtime/target/archiva-plexus-runtime-1.0-SNAPSHOT.jar
[INFO] [assembly:single {execution: default}]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error creating assembly: You must set at least one file.

Anyone with more clues?

Kind regards, 

Minto van der Sluis



Arnaud HERITIER wrote:
> 
> Which version of maven 2 are you using ?
> I built it successfully with maven 2.0.4 and some plugins updated (mvn -U)
> 
> Arnaud
> 
> 
> Minto van der Sluis wrote:
>> 
>> Hi folks,
>> 
>> I just tried to build archiva like mentioned in the documentation.
>> Unfortunately I get 'rewarded' with an error. When I do mvn install I get
>> the following error:
>> 
>> ...
>> [INFO]
>> ----------------------------------------------------------------------------
>> [INFO] Building Archiva Runtime Generator
>> [INFO]    task-segment: [install]
>> [INFO]
>> ----------------------------------------------------------------------------
>> [INFO] [plexus:descriptor {execution: default}]
>> [WARNING] Specified source directory isn't a directory:
>> '/home/minto/rommel/test/maven/archiva/archiva-plexus-runtime/src/main/java'.
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [plexus:merge-descriptors {execution: default}]
>> [INFO] [compiler:compile]
>> [INFO] No sources to compile
>> [INFO] [resources:testResources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [compiler:testCompile]
>> [INFO] No sources to compile
>> [INFO] [surefire:test]
>> [INFO] No tests to run.
>> [INFO] [jar:jar]
>> [WARNING] JAR will be empty - no content was marked for inclusion!
>> [INFO] Building jar:
>> /home/minto/rommel/test/maven/archiva/archiva-plexus-runtime/target/archiva-plexus-runtime-1.0-SNAPSHOT.jar
>> [WARNING] DEPRECATED [descriptor]: Please use descriptors instead
>> [INFO] [assembly:single {execution: default}]
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Error creating assembly: You must set at least one file.
>> 
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> org.apache.maven.lifecycle.LifecycleExecutionException: Error creating
>> assembly:
>>  You must set at least one file.
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>> ultLifecycleExecutor.java:559)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>> fecycle(DefaultLifecycleExecutor.java:475)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>> ltLifecycleExecutor.java:454)
>> ...
>> 
>> However everthing seems to compile just fine as mvn compile does not give
>> me an error.
>> 
>> You guys probably wanna know what revision I am on, so here it is:
>> 
>>     minto@noisy:~/rommel/test/maven/archiva$ svn up
>>     At revision 482978.
>> 
>> Does anyone have a clue what caused this?
>> 
>> Kind regards,
>> 
>> Minto van der Sluis
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Building-archiva-failed-tf2766950.html#a7725087
Sent from the archiva-users mailing list archive at Nabble.com.


Re: Building archiva failed

Posted by Arnaud HERITIER <ah...@gmail.com>.
Which version of maven 2 are you using ?
I built it successfully with maven 2.0.4 and some plugins updated (mvn -U)

Arnaud


Minto van der Sluis wrote:
> 
> Hi folks,
> 
> I just tried to build archiva like mentioned in the documentation.
> Unfortunately I get 'rewarded' with an error. When I do mvn install I get
> the following error:
> 
> ...
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Archiva Runtime Generator
> [INFO]    task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] [plexus:descriptor {execution: default}]
> [WARNING] Specified source directory isn't a directory:
> '/home/minto/rommel/test/maven/archiva/archiva-plexus-runtime/src/main/java'.
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [plexus:merge-descriptors {execution: default}]
> [INFO] [compiler:compile]
> [INFO] No sources to compile
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] No tests to run.
> [INFO] [jar:jar]
> [WARNING] JAR will be empty - no content was marked for inclusion!
> [INFO] Building jar:
> /home/minto/rommel/test/maven/archiva/archiva-plexus-runtime/target/archiva-plexus-runtime-1.0-SNAPSHOT.jar
> [WARNING] DEPRECATED [descriptor]: Please use descriptors instead
> [INFO] [assembly:single {execution: default}]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error creating assembly: You must set at least one file.
> 
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error creating
> assembly:
>  You must set at least one file.
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:559)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> fecycle(DefaultLifecycleExecutor.java:475)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:454)
> ...
> 
> However everthing seems to compile just fine as mvn compile does not give
> me an error.
> 
> You guys probably wanna know what revision I am on, so here it is:
> 
>     minto@noisy:~/rommel/test/maven/archiva$ svn up
>     At revision 482978.
> 
> Does anyone have a clue what caused this?
> 
> Kind regards,
> 
> Minto van der Sluis
> 
> 

-- 
View this message in context: http://www.nabble.com/Building-archiva-failed-tf2766950.html#a7718699
Sent from the archiva-users mailing list archive at Nabble.com.


Re: Building archiva failed

Posted by Minto van der Sluis <mi...@multimach.com>.
Issues is filed under MRM-252

http://jira.codehaus.org/browse/MRM-252

regards,

Minto


Emmanuel Venisse wrote:
> 
> Can you file an issue? We'll look at it later.
> 
> Emmanuel
> 
> Minto van der Sluis a écrit :
>> Hi folks,
>> 
>> Just tried building archiva with JDK 6 and it fails again. Has anyone
>> else
>> tried to build archiva with JDK 6?
>> 
>> Building with JDK 5 works fine.
>> 
>> regards,
>> 
>> Minto van der Sluis
>> 
>> 
>> 
>> 
>> 
>> Minto van der Sluis wrote:
>>> Hi folks,
>>>
>>> I just tried to build archiva like mentioned in the documentation.
>>> Unfortunately I get 'rewarded' with an error. When I do mvn install I
>>> get
>>> the following error:
>>>
>>> ...
>>> [INFO]
>>> ----------------------------------------------------------------------------
>>> [INFO] Building Archiva Runtime Generator
>>> [INFO]    task-segment: [install]
>>> [INFO]
>>> ----------------------------------------------------------------------------
>>> [INFO] [plexus:descriptor {execution: default}]
>>> [WARNING] Specified source directory isn't a directory:
>>> '/home/minto/rommel/test/maven/archiva/archiva-plexus-runtime/src/main/java'.
>>> [INFO] [resources:resources]
>>> [INFO] Using default encoding to copy filtered resources.
>>> [INFO] [plexus:merge-descriptors {execution: default}]
>>> [INFO] [compiler:compile]
>>> [INFO] No sources to compile
>>> [INFO] [resources:testResources]
>>> [INFO] Using default encoding to copy filtered resources.
>>> [INFO] [compiler:testCompile]
>>> [INFO] No sources to compile
>>> [INFO] [surefire:test]
>>> [INFO] No tests to run.
>>> [INFO] [jar:jar]
>>> [WARNING] JAR will be empty - no content was marked for inclusion!
>>> [INFO] Building jar:
>>> /home/minto/rommel/test/maven/archiva/archiva-plexus-runtime/target/archiva-plexus-runtime-1.0-SNAPSHOT.jar
>>> [WARNING] DEPRECATED [descriptor]: Please use descriptors instead
>>> [INFO] [assembly:single {execution: default}]
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] BUILD ERROR
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Error creating assembly: You must set at least one file.
>>>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Trace
>>> org.apache.maven.lifecycle.LifecycleExecutionException: Error creating
>>> assembly:
>>>  You must set at least one file.
>>>         at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>>> ultLifecycleExecutor.java:559)
>>>         at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>>> fecycle(DefaultLifecycleExecutor.java:475)
>>>         at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>>> ltLifecycleExecutor.java:454)
>>> ...
>>>
>>> However everthing seems to compile just fine as mvn compile does not
>>> give
>>> me an error.
>>>
>>> You guys probably wanna know what revision I am on, so here it is:
>>>
>>>     minto@noisy:~/rommel/test/maven/archiva$ svn up
>>>     At revision 482978.
>>>
>>> Does anyone have a clue what caused this?
>>>
>>> Kind regards,
>>>
>>> Minto van der Sluis
>>>
>>>
>> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Building-archiva-failed-tf2766950.html#a7986882
Sent from the archiva-users mailing list archive at Nabble.com.


Re: Building archiva failed

Posted by Emmanuel Venisse <em...@venisse.net>.
Can you file an issue? We'll look at it later.

Emmanuel

Minto van der Sluis a écrit :
> Hi folks,
> 
> Just tried building archiva with JDK 6 and it fails again. Has anyone else
> tried to build archiva with JDK 6?
> 
> Building with JDK 5 works fine.
> 
> regards,
> 
> Minto van der Sluis
> 
> 
> 
> 
> 
> Minto van der Sluis wrote:
>> Hi folks,
>>
>> I just tried to build archiva like mentioned in the documentation.
>> Unfortunately I get 'rewarded' with an error. When I do mvn install I get
>> the following error:
>>
>> ...
>> [INFO]
>> ----------------------------------------------------------------------------
>> [INFO] Building Archiva Runtime Generator
>> [INFO]    task-segment: [install]
>> [INFO]
>> ----------------------------------------------------------------------------
>> [INFO] [plexus:descriptor {execution: default}]
>> [WARNING] Specified source directory isn't a directory:
>> '/home/minto/rommel/test/maven/archiva/archiva-plexus-runtime/src/main/java'.
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [plexus:merge-descriptors {execution: default}]
>> [INFO] [compiler:compile]
>> [INFO] No sources to compile
>> [INFO] [resources:testResources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [compiler:testCompile]
>> [INFO] No sources to compile
>> [INFO] [surefire:test]
>> [INFO] No tests to run.
>> [INFO] [jar:jar]
>> [WARNING] JAR will be empty - no content was marked for inclusion!
>> [INFO] Building jar:
>> /home/minto/rommel/test/maven/archiva/archiva-plexus-runtime/target/archiva-plexus-runtime-1.0-SNAPSHOT.jar
>> [WARNING] DEPRECATED [descriptor]: Please use descriptors instead
>> [INFO] [assembly:single {execution: default}]
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Error creating assembly: You must set at least one file.
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> org.apache.maven.lifecycle.LifecycleExecutionException: Error creating
>> assembly:
>>  You must set at least one file.
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>> ultLifecycleExecutor.java:559)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>> fecycle(DefaultLifecycleExecutor.java:475)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>> ltLifecycleExecutor.java:454)
>> ...
>>
>> However everthing seems to compile just fine as mvn compile does not give
>> me an error.
>>
>> You guys probably wanna know what revision I am on, so here it is:
>>
>>     minto@noisy:~/rommel/test/maven/archiva$ svn up
>>     At revision 482978.
>>
>> Does anyone have a clue what caused this?
>>
>> Kind regards,
>>
>> Minto van der Sluis
>>
>>
> 


Re: Building archiva failed

Posted by Minto van der Sluis <mi...@multimach.com>.
Hi folks,

Just tried building archiva with JDK 6 and it fails again. Has anyone else
tried to build archiva with JDK 6?

Building with JDK 5 works fine.

regards,

Minto van der Sluis





Minto van der Sluis wrote:
> 
> Hi folks,
> 
> I just tried to build archiva like mentioned in the documentation.
> Unfortunately I get 'rewarded' with an error. When I do mvn install I get
> the following error:
> 
> ...
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Archiva Runtime Generator
> [INFO]    task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] [plexus:descriptor {execution: default}]
> [WARNING] Specified source directory isn't a directory:
> '/home/minto/rommel/test/maven/archiva/archiva-plexus-runtime/src/main/java'.
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [plexus:merge-descriptors {execution: default}]
> [INFO] [compiler:compile]
> [INFO] No sources to compile
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] No tests to run.
> [INFO] [jar:jar]
> [WARNING] JAR will be empty - no content was marked for inclusion!
> [INFO] Building jar:
> /home/minto/rommel/test/maven/archiva/archiva-plexus-runtime/target/archiva-plexus-runtime-1.0-SNAPSHOT.jar
> [WARNING] DEPRECATED [descriptor]: Please use descriptors instead
> [INFO] [assembly:single {execution: default}]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error creating assembly: You must set at least one file.
> 
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error creating
> assembly:
>  You must set at least one file.
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:559)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> fecycle(DefaultLifecycleExecutor.java:475)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:454)
> ...
> 
> However everthing seems to compile just fine as mvn compile does not give
> me an error.
> 
> You guys probably wanna know what revision I am on, so here it is:
> 
>     minto@noisy:~/rommel/test/maven/archiva$ svn up
>     At revision 482978.
> 
> Does anyone have a clue what caused this?
> 
> Kind regards,
> 
> Minto van der Sluis
> 
> 

-- 
View this message in context: http://www.nabble.com/Building-archiva-failed-tf2766950.html#a7927564
Sent from the archiva-users mailing list archive at Nabble.com.