You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by an...@nokia.com on 2006/08/01 18:13:07 UTC

RE: [m2] The packaging for this project did not assign a file to the build artifact

Hi,

Can somebody please enlighten me, how I can add build artefacts in an ant-based plugin? Can it be somewhere set in the plexus/components.xml?

Currently I'm getting the error: 
[INFO] [deploy:deploy]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The packaging for this project did not assign a file to the build artifact
[INFO] ------------------------------------------------------------------------

This is my components.xml:
<component-set>
	<components>
		<component>
			<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
			<role-hint>tigerstripe-application</role-hint>
			<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
			<configuration>
				<phases>
					<generate-sources>ossj.jsr264:maven-tigerstripe-plugin:tigerstripe-generate</generate-sources>-->
					<package>org.apache.maven.plugins:maven-source-plugin:2.0:jar</package>
					<install>org.apache.maven.plugins:maven-install-plugin:install</install>
					<deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
				</phases>
			</configuration>
		</component>
		<component>
			<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
			<role-hint>tigerstripe-application</role-hint>
			<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
			<configuration>
				<extension>jar</extension>
				<type>tigerstripe-application</type>
			</configuration>
		</component>
	</components>
</component-set>


Andreas 

>-----Original Message-----
>From: ext 
>users-return-52746-andreas.ebbert-karroum=nokia.com@maven.apach
>e.org 
>[mailto:users-return-52746-andreas.ebbert-karroum=nokia.com@mav
>en.apache.org] 
>Sent: 28 July, 2006 07:14
>To: users@maven.apache.org
>Subject: Re: [m2] The packaging for this project did not 
>assign a file to the build artifact
>
>I just read the archived mail and actually have the same problem:
> 
>http://www.mail-archive.com/users@maven.apache.org/msg36680.html
> 
>How to assign the build artefact in a custum plugin, that is 
>based on ant tasks? Is there a more elegant way? 
> 
>For me, there's also an additional tweak. I'd like to assign 
>not what comes out of my plugin, but I'm using the 
>maven-source-plugin in a subsequent step in the lifecycle and 
>want to deploy that.
> 
>Any hints appreciated!
> 
>Andreas Ebbert-Karroum
>  Senior Software Design Engineer - Nokia Networks Services / 
>Middleware
>  phone: +49-211-94123928, fax: +49-211-94123838
>  Heltorfer Straße 1, 40472 Düsseldorf, Germany 
>
>
>________________________________
>
>This message is confidential. If you have received this 
>message in error, please delete it from your system. You 
>should not copy it for any purpose, or disclose its contents 
>to any other person. Internet communications are not secure 
>and therefore Nokia GmbH does not accept legal responsibility 
>for the contents of this message as it has been transmitted 
>over a public network. Thank you. 
>
>Nokia GmbH, Nokia Networks is a German Company. Further 
>information about the Company is available from its principal 
>offices at Heltorferstrasse 1, D-40472, Düsseldorf, Germany 
>and from the website at http://www.nokia.com/ 
>________________________________
>
>
>

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


[m2] Assign build artefact from ant (was: The packaging for this project did not assign a file to the build artifact)

Posted by an...@nokia.com.
To put the question differently:

Is there any way to do this:
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
-----------------------------------------------------------------------------------
One final task that is required is for the packaging goal you have created to tell Maven where to find what you built. This is done with code such as the following:

project.getArtifact().setFile( new File( "target/myFile-2.0.jar" ) ); 
------------------------------------------------------------------------------------

In a ant-based plugin?

 _         __                _  _
//\ndreas.[|-bbert-[]/arroum(a)[|\|okia.com
           `-        `
   Andreas Ebbert-Karroum
         Senior Software Design Engineer
                Nokia Networks Services / Middleware 
   phone: +49-211-94123928, fax: +49-211-9412-3838
   Heltorfer Straße 1, 40472 Düsseldorf, Germany 

----------------------------------------------------------------------
This message is confidential. If you have received this message in error,
please delete it from your system. You should not copy it for any purpose,
or disclose its contents to any other person. Internet communications are
not secure and therefore Nokia GmbH does not accept legal responsibility
for the contents of this message as it has been transmitted over a public
network. Thank you.
Nokia GmbH, Nokia Networks is a German Company. Further information
about the Company is available from its principal offices at
Heltorferstrasse 1, D-40472, Düsseldorf, Germany and from the
website at http://www.nokia.com/
----------------------------------------------------------------------

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