Hi Brian,

I am sorry, I do not know, you you exactly mean. For me it is a problem, because maven does not install my main artifact: com.blueclaim:logging-api:jar:0.0.4-SNAPSHOT

Following is my pom:
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
<modelVersion>4.0.0</modelVersion>
<groupId>com.blueclaim</groupId>
<artifactId>logging-api</artifactId>
<packaging>jar</packaging>
<version>0.0.4-SNAPSHOT</version>
<name>logging-api</name>
<description>logging</description>
<url>http://maven.apache.org</url>
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<testSourceDirectory>src/test/java</testSourceDirectory>
<outputDirectory>target</outputDirectory>
<testOutputDirectory>target</testOutputDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<!--
<executions>
<execution>
<phase>clean</phase>
</execution>
</executions>
              -->
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
<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>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.1</version>
<configuration>
<archive>
<manifestSections>
<manifestSection>
<name>com.blueclaim.logging-api</name>
<manifestEntries>
<Implementation-Title>logging-api</Implementation-Title>
<Implementation-Version>${project.version}</Implementation-Version>
<Implementation-Vendor>"blueclaim.com"</Implementation-Vendor>
</manifestEntries>
</manifestSection>
</manifestSections>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<!--
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
        -->
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>generate-version-info</id>
<goals>
<goal>run</goal>
</goals>
<phase>process-sources</phase>
<configuration>
<tasks>
<ant antfile="${basedir}/build-version-info.xml" target="buildInfo" />
</tasks>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.3.1</version>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.jdom</groupId>
<artifactId>jdom</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.blueclaim</groupId>
<artifactId>commons</artifactId>
<version>0.0.1</version>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>


Thanks lot for any hint

Thomas










Am 26.08.2010 14:30, schrieb Brian Fox:
this means you have no artifact with an empty classifier. This is not
necessarily a problem, if you're using the build helper or assembly to
build attached artifacts.

On Thu, Aug 26, 2010 at 8:20 AM, Thomas Trepper
<[email protected]>  wrote:
  Hi all,

this is a snippet from my build, which says, that I have an artifact and
attached artifacts, but, whatever I am doing, I always get the message: No
primary artifact to install, installing attached artifacts instead.

Can anybody point me to the right direction please?

Thanks a lot and best regards,

Thomas

P.S: I start my build from eclipse with the following targets:
  clean validate initialize  resources:resources compiler:compile  jar:jar
source:jar source:test-jar jar:test-jar javadoc:jar test install:install



[INFO]
[INFO] --- maven-install-plugin:2.3:install (default-cli) @ logging-api ---
[DEBUG] Created new class realm
plugin>org.apache.maven.plugins:maven-install-plugin:2.3
[DEBUG] Populating class realm
plugin>org.apache.maven.plugins:maven-install-plugin:2.3
[DEBUG]   Included:
org.apache.maven.plugins:maven-install-plugin:maven-plugin:2.3
[DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:1.5.6
[DEBUG]   Included: junit:junit:jar:3.8.1
[DEBUG]   Included: org.codehaus.plexus:plexus-digest:jar:1.0
[DEBUG]   Excluded: org.apache.maven:maven-plugin-api:jar:2.0.6
[DEBUG]   Excluded: org.apache.maven:maven-project:jar:2.0.6
[DEBUG]   Excluded: org.apache.maven:maven-settings:jar:2.0.6
[DEBUG]   Excluded: org.apache.maven:maven-model:jar:2.0.6
[DEBUG]   Excluded:
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1
[DEBUG]   Excluded: classworlds:classworlds:jar:1.1-alpha-2
[DEBUG]   Excluded: org.apache.maven:maven-profile:jar:2.0.6
[DEBUG]   Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.6
[DEBUG]   Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.6
[DEBUG]   Excluded: org.apache.maven:maven-artifact:jar:2.0.6
[DEBUG]   Excluded: org.apache.maven:maven-plugin-registry:jar:2.0.6
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-install-plugin:2.3:install' with basic
configurator -->
[DEBUG]   (f) artifact = com.blueclaim:logging-api:jar:0.0.4-SNAPSHOT
[DEBUG]   (f) attachedArtifacts =
[com.blueclaim:logging-api:java-source:sources:0.0.4-SNAPSHOT,
com.blueclaim:logging-api:java-source:test-sources:0.0.4-SNAPSHOT,
com.blueclaim:logging-api:test-jar:tests:0.0.4-SNAPSHOT,
com.blueclaim:logging-api:javadoc:javadoc:0.0.4-SNAPSHOT]
[DEBUG]   (f) createChecksum = false
[DEBUG]   (f) localRepository =        id: local
      url: file:///C:/eclipse-SDK-3.6/maven-repository/
   layout: none

[DEBUG]   (f) packaging = jar
[DEBUG]   (f) pomFile = E:\workspace.utils\logging-api\pom.xml
[DEBUG]   (f) updateReleaseInfo = false
[DEBUG] -- end configuration --
[INFO] No primary artifact to install, installing attached artifacts
instead.
[INFO] Installing E:\workspace.utils\logging-api\pom.xml to
C:\eclipse-SDK-3.6\maven-repository\com\blueclaim\logging-api\0.0.4-SNAPSHOT\logging-api-0.0.4-SNAPSHOT.pom
[INFO] Installing
E:\workspace.utils\logging-api\target\logging-api-0.0.4-SNAPSHOT-sources.jar
to
C:\eclipse-SDK-3.6\maven-repository\com\blueclaim\logging-api\0.0.4-SNAPSHOT\logging-api-0.0.4-SNAPSHOT-sources.jar
[INFO] Installing
E:\workspace.utils\logging-api\target\logging-api-0.0.4-SNAPSHOT-test-sources.jar
to
C:\eclipse-SDK-3.6\maven-repository\com\blueclaim\logging-api\0.0.4-SNAPSHOT\logging-api-0.0.4-SNAPSHOT-test-sources.jar
[INFO] Installing
E:\workspace.utils\logging-api\target\logging-api-0.0.4-SNAPSHOT-tests.jar
to
C:\eclipse-SDK-3.6\maven-repository\com\blueclaim\logging-api\0.0.4-SNAPSHOT\logging-api-0.0.4-SNAPSHOT-tests.jar
[INFO] Installing
E:\workspace.utils\logging-api\target\logging-api-0.0.4-SNAPSHOT-javadoc.jar
to
C:\eclipse-SDK-3.6\maven-repository\com\blueclaim\logging-api\0.0.4-SNAPSHOT\logging-api-0.0.4-SNAPSHOT-javadoc.jar
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to