You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by zalym <mo...@gmail.com> on 2007/05/08 17:24:30 UTC

Dependency not getting resolved

I have a war project which depends on another jar.  When I build and deploy
the jar, and then compile the war, it works fine.  

Now when another guy tries to compile the war, it gets this jar dependency
from the repository, adds it to the class path but gives compile time
errors.

I really don't understand this.  The jar dependency is something like spring
and when spring works, this also should work.  

I am sure I am doing something wrong here but unable to pinpoint the exact
reason.  
-- 
View this message in context: http://www.nabble.com/Dependency-not-getting-resolved-tf3710301s177.html#a10377932
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: Dependency not getting resolved

Posted by zalym <mo...@gmail.com>.
Thanks Maria,

Found out the issue.  It was because I had attached the source plugin to the
pom, and the jar contained only java files and no class files.  When I
removed the source plugin from the build cycle, it worked, as it should.

My other question is:
How do I deploy sources to the repo as part of the build lifecycle?  This is
what I used.
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<executions>
					<execution>
						<phase>install</phase>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

Regards,
Saleem
-- 
View this message in context: http://www.nabble.com/Dependency-not-getting-resolved-tf3710301s177.html#a10595473
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: How to deploy source jar generated by source plug-in into repository when running mvn deploy?

Posted by Tomasz Pik <to...@gmail.com>.
On 5/9/07, JesseLiu <je...@ecvision.com> wrote:
> Hi,all
> How to deploy source jar generated by source plug-in into repository when running mvn deploy?

For SNAPSHOT versions right?
Try "mvn -DperformRelease=true deploy"

Regards,
Tomek

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


Re: How to deploy source jar generated by source plug-in into repository when running mvn deploy?

Posted by Stephane Nicoll <st...@gmail.com>.
On 5/10/07, Barrett Nuzum <Ba...@valtech.com> wrote:
> Hi folks.
>
> For one of our clients, we just have the CI server call 'mvn clean source:jar deploy'
> and Maven includes the source jars when it deploys.

That's the same as adding it explicitely in an execution.

>
> File under "what is the simplest thing that could possibly work".

Indeed :)

Stéphane
>
> Barrett
>
> ::
> Barrett Nuzum
> Consultant, Skill Development
> Direct: 918.640.4414
> Fax: 972.789.1340
>
> Valtech Technologies, Inc.
> 5080 Spectrum Drive
> Suite 700 West
> Addison, Texas 75001
> www.valtech.com <http://www.valtech.com/>
> making IT business friendly
>
>
> ________________________________
>
> From: Maria Odea Ching [mailto:oching@exist.com]
> Sent: Wed 5/9/2007 9:01 PM
> To: Maven Users List
> Subject: Re: How to deploy source jar generated by source plug-in into repository when running mvn deploy?
>
>
>
> Hmm.. yeah it makes more sense.
>
> Thanks for correcting me :)
>
> - Deng
>
> Stephane Nicoll wrote:
> > On 5/9/07, Maria Odea Ching <oc...@exist.com> wrote:
> >>
> >> Try mvn deploy:deploy-file :-)
> >
> > ?
> >
> > Not sure it's the right advice.  If you want to deploy the source
> > within the standard deploy phase, you need to bind the source plugin
> > to the lifecycle. To do so, configure the source plugin as follows:
> >
> > <plugin>
> >    <groupId>org.apache.maven.plugins</groupId>
> >    <artifactId>maven-source-plugin</artifactId>
> >    <executions>
> >        <execution>
> >            <id>attach-sources</id>
> >            <goals>
> >                <goal>jar</goal>
> >            </goals>
> >         </execution>
> >     </executions>
> > </plugin>
> >
> > HTH,
> > Stéphane
> >
> >>
> >> http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html
> >>
> >>
> >> - Deng
> >>
> >>
> >> JesseLiu wrote:
> >> > Hi,all
> >> > How to deploy source jar generated by source plug-in into
> >> repository when running mvn deploy?
> >> >
> >> >
> >> > >
> >> >
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
> > !DSPAM:602,46419d83126011969219952!
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


RE: How to deploy source jar generated by source plug-in into repository when running mvn deploy?

Posted by Barrett Nuzum <Ba...@Valtech.com>.
Hi folks.
 
For one of our clients, we just have the CI server call 'mvn clean source:jar deploy'
and Maven includes the source jars when it deploys.
 
File under "what is the simplest thing that could possibly work".
 
Barrett
 
::   
Barrett Nuzum
Consultant, Skill Development
Direct: 918.640.4414
Fax: 972.789.1340 

Valtech Technologies, Inc.
5080 Spectrum Drive
Suite 700 West
Addison, Texas 75001
www.valtech.com <http://www.valtech.com/>   
making IT business friendly


________________________________

From: Maria Odea Ching [mailto:oching@exist.com]
Sent: Wed 5/9/2007 9:01 PM
To: Maven Users List
Subject: Re: How to deploy source jar generated by source plug-in into repository when running mvn deploy?



Hmm.. yeah it makes more sense.

Thanks for correcting me :)

- Deng

Stephane Nicoll wrote:
> On 5/9/07, Maria Odea Ching <oc...@exist.com> wrote:
>>
>> Try mvn deploy:deploy-file :-)
>
> ?
>
> Not sure it's the right advice.  If you want to deploy the source
> within the standard deploy phase, you need to bind the source plugin
> to the lifecycle. To do so, configure the source plugin as follows:
>
> <plugin>
>    <groupId>org.apache.maven.plugins</groupId>
>    <artifactId>maven-source-plugin</artifactId>
>    <executions>
>        <execution>
>            <id>attach-sources</id>
>            <goals>
>                <goal>jar</goal>
>            </goals>
>         </execution>
>     </executions>
> </plugin>
>
> HTH,
> Stéphane
>
>>
>> http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html
>>
>>
>> - Deng
>>
>>
>> JesseLiu wrote:
>> > Hi,all
>> > How to deploy source jar generated by source plug-in into
>> repository when running mvn deploy?
>> >
>> >
>> > >
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
> !DSPAM:602,46419d83126011969219952!
>


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




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


Re: How to deploy source jar generated by source plug-in into repository when running mvn deploy?

Posted by Maria Odea Ching <oc...@exist.com>.
Hmm.. yeah it makes more sense.

Thanks for correcting me :)

- Deng

Stephane Nicoll wrote:
> On 5/9/07, Maria Odea Ching <oc...@exist.com> wrote:
>>
>> Try mvn deploy:deploy-file :-)
>
> ?
>
> Not sure it's the right advice.  If you want to deploy the source
> within the standard deploy phase, you need to bind the source plugin
> to the lifecycle. To do so, configure the source plugin as follows:
>
> <plugin>
>    <groupId>org.apache.maven.plugins</groupId>
>    <artifactId>maven-source-plugin</artifactId>
>    <executions>
>        <execution>
>            <id>attach-sources</id>
>            <goals>
>                <goal>jar</goal>
>            </goals>
>         </execution>
>     </executions>
> </plugin>
>
> HTH,
> Stéphane
>
>>
>> http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html 
>>
>>
>> - Deng
>>
>>
>> JesseLiu wrote:
>> > Hi,all
>> > How to deploy source jar generated by source plug-in into 
>> repository when running mvn deploy?
>> >
>> >
>> > >
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
> !DSPAM:602,46419d83126011969219952!
>


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


Re: How to deploy source jar generated by source plug-in into repository when running mvn deploy?

Posted by Stephane Nicoll <st...@gmail.com>.
On 5/9/07, Maria Odea Ching <oc...@exist.com> wrote:
>
> Try mvn deploy:deploy-file :-)

?

Not sure it's the right advice.  If you want to deploy the source
within the standard deploy phase, you need to bind the source plugin
to the lifecycle. To do so, configure the source plugin as follows:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-source-plugin</artifactId>
    <executions>
        <execution>
            <id>attach-sources</id>
            <goals>
                <goal>jar</goal>
            </goals>
         </execution>
     </executions>
</plugin>

HTH,
Stéphane

>
> http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html
>
> - Deng
>
>
> JesseLiu wrote:
> > Hi,all
> > How to deploy source jar generated by source plug-in into repository when running mvn deploy?
> >
> >
> > !DSPAM:602,4641443a36371546544105!
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


Re: How to deploy source jar generated by source plug-in into repository when running mvn deploy?

Posted by Maria Odea Ching <oc...@exist.com>.
Try mvn deploy:deploy-file :-)

http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html

- Deng


JesseLiu wrote:
> Hi,all
> How to deploy source jar generated by source plug-in into repository when running mvn deploy?
>
>
> !DSPAM:602,4641443a36371546544105!
>
>   


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


How to deploy source jar generated by source plug-in into repository when running mvn deploy?

Posted by JesseLiu <je...@ecvision.com>.
Hi,all
How to deploy source jar generated by source plug-in into repository when running mvn deploy?

Re: Dependency not getting resolved

Posted by Maria Odea Ching <oc...@exist.com>.
Hi,

What is this jar dependency?
Could you provide the stack trace of the build error?

- Deng

zalym wrote:
> I have a war project which depends on another jar.  When I build and deploy
> the jar, and then compile the war, it works fine.  
>
> Now when another guy tries to compile the war, it gets this jar dependency
> from the repository, adds it to the class path but gives compile time
> errors.
>
> I really don't understand this.  The jar dependency is something like spring
> and when spring works, this also should work.  
>
> I am sure I am doing something wrong here but unable to pinpoint the exact
> reason.  
>   


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